OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | Friends | List of all members
opengm::Tribool Class Reference

Variable with three values (true=1, false=0, maybe=-1 ) More...

#include <tribool.hxx>

+ Collaboration diagram for opengm::Tribool:

Public Types

enum  State { True =1, False =0, Maybe =-1 }
 

Public Member Functions

 Tribool ()
 
 Tribool (const Tribool &)
 
template<class T >
 Tribool (const T)
 
 Tribool (Tribool::State state)
 
Tribooloperator= (const Tribool &)
 
template<class T >
Tribooloperator= (T)
 
Tribooloperator= (Tribool::State state)
 
bool operator== (const bool a) const
 
template<class T >
bool operator== (T a) const
 
bool operator!= (const bool a) const
 
 operator bool () const
 
bool operator! () const
 
bool maybe () const
 
void operator &= (Tribool::State state)
 

Friends

std::ostream & operator<< (std::ostream &out, const Tribool &t)
 

Detailed Description

Variable with three values (true=1, false=0, maybe=-1 )

Definition at line 8 of file tribool.hxx.

Member Enumeration Documentation

§ State

Enumerator
True 
False 
Maybe 

Definition at line 11 of file tribool.hxx.

Constructor & Destructor Documentation

§ Tribool() [1/4]

opengm::Tribool::Tribool ( )
inline

Definition at line 39 of file tribool.hxx.

+ Here is the caller graph for this function:

§ Tribool() [2/4]

opengm::Tribool::Tribool ( const Tribool val)
inline

Definition at line 44 of file tribool.hxx.

+ Here is the call graph for this function:

§ Tribool() [3/4]

template<class T >
opengm::Tribool::Tribool ( const T  val)
inline

Definition at line 59 of file tribool.hxx.

§ Tribool() [4/4]

opengm::Tribool::Tribool ( Tribool::State  state)
inline

Definition at line 51 of file tribool.hxx.

+ Here is the call graph for this function:

Member Function Documentation

§ maybe()

bool opengm::Tribool::maybe ( ) const
inline

Definition at line 144 of file tribool.hxx.

§ operator &=()

void opengm::Tribool::operator&= ( Tribool::State  state)
+ Here is the caller graph for this function:

§ operator bool()

opengm::Tribool::operator bool ( ) const
inline

Definition at line 132 of file tribool.hxx.

§ operator!()

bool opengm::Tribool::operator! ( ) const
inline

Definition at line 138 of file tribool.hxx.

§ operator!=()

bool opengm::Tribool::operator!= ( const bool  a) const
inline

Definition at line 124 of file tribool.hxx.

§ operator=() [1/3]

Tribool & opengm::Tribool::operator= ( const Tribool rhs)
inline

Definition at line 69 of file tribool.hxx.

§ operator=() [2/3]

template<class T >
Tribool & opengm::Tribool::operator= ( val)
inline

Definition at line 82 of file tribool.hxx.

§ operator=() [3/3]

Tribool & opengm::Tribool::operator= ( Tribool::State  state)
inline

Definition at line 94 of file tribool.hxx.

§ operator==() [1/2]

bool opengm::Tribool::operator== ( const bool  a) const
inline

Definition at line 104 of file tribool.hxx.

§ operator==() [2/2]

template<class T >
bool opengm::Tribool::operator== ( a) const
inline

Definition at line 115 of file tribool.hxx.

Friends And Related Function Documentation

§ operator<<

std::ostream& operator<< ( std::ostream &  out,
const Tribool t 
)
friend

Definition at line 151 of file tribool.hxx.