Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cTriState Class Reference

#include <cTriState.h>

Public Member Functions

 cTriState (BITOP_TYPE eVal=BITOP_TOGGLE)
 
 cTriState (bool bVal)
 
bool isInternalValidState () const
 
bool isTriState () const
 
bool get_Bool () const
 
bool GetBoolDef (bool bDefault=false) const
 
BITOP_TYPE get_Tri () const
 
void put_Tri (BITOP_TYPE eVal)
 
 operator BITOP_TYPE () const
 

Detailed Description

a value with 3 states, like boost::tribool Similar to .NET VB TriState or bool? or Nullable<bool>.

Constructor & Destructor Documentation

◆ cTriState() [1/2]

Gray::cTriState::cTriState ( BITOP_TYPE  eVal = BITOP_TOGGLE)
inline

default = BITOP_TOGGLE

◆ cTriState() [2/2]

Gray::cTriState::cTriState ( bool  bVal)
inline

Member Function Documentation

◆ get_Bool()

bool Gray::cTriState::get_Bool ( ) const
inline

ASSUME Must not be tristate.

◆ get_Tri()

BITOP_TYPE Gray::cTriState::get_Tri ( ) const
inline

◆ GetBoolDef()

bool Gray::cTriState::GetBoolDef ( bool  bDefault = false) const
inline

Get the bool with supplied default if tristate.

◆ isInternalValidState()

bool Gray::cTriState::isInternalValidState ( ) const
inline

Is it one of the 3 valid values ?

◆ isTriState()

bool Gray::cTriState::isTriState ( ) const
inline

◆ operator BITOP_TYPE()

Gray::cTriState::operator BITOP_TYPE ( ) const
inline

◆ put_Tri()

void Gray::cTriState::put_Tri ( BITOP_TYPE  eVal)
inline

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