gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
Gambit::SafeBool Class Reference

#include <safebool.hpp>

Public Member Functions

 SafeBool (bool ok)
 
 operator bool () const
 

Private Attributes

bool _ok
 

Detailed Description

Definition at line 37 of file safebool.hpp.

Constructor & Destructor Documentation

◆ SafeBool()

Gambit::SafeBool::SafeBool ( bool  ok)
inlineexplicit

Definition at line 41 of file safebool.hpp.

41 : _ok(ok) {}

Member Function Documentation

◆ operator bool()

Gambit::SafeBool::operator bool ( ) const
inlineexplicit

Definition at line 42 of file safebool.hpp.

References _ok.

42 { return _ok; }

Member Data Documentation

◆ _ok

bool Gambit::SafeBool::_ok
private

Definition at line 39 of file safebool.hpp.

Referenced by operator bool().


The documentation for this class was generated from the following file: