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

Enumerator
True 
False 
Maybe 

Definition at line 11 of file tribool.hxx.

Constructor & Destructor Documentation

opengm::Tribool::Tribool ( )
inline

Definition at line 39 of file tribool.hxx.

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

Definition at line 44 of file tribool.hxx.

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

Definition at line 59 of file tribool.hxx.

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

Definition at line 51 of file tribool.hxx.

Member Function Documentation

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

Definition at line 144 of file tribool.hxx.

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

Definition at line 132 of file tribool.hxx.

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

Definition at line 138 of file tribool.hxx.

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

Definition at line 124 of file tribool.hxx.

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

Definition at line 161 of file tribool.hxx.

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

Definition at line 69 of file tribool.hxx.

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

Definition at line 82 of file tribool.hxx.

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

Definition at line 94 of file tribool.hxx.

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

Definition at line 104 of file tribool.hxx.

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

Definition at line 115 of file tribool.hxx.

Friends And Related Function Documentation

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

Definition at line 151 of file tribool.hxx.