SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::core::visual::tristate Struct Reference

#include <Tristate.h>

Public Attributes

enum sofa::core::visual::tristate::state_t state
 

Public Member Functions

 tristate (bool b)
 
 tristate ()
 
 tristate (state_t state)
 
 operator bool () const
 
bool operator== (const tristate &t) const
 
bool operator!= (const tristate &t) const
 
bool operator== (const state_t &s) const
 
bool operator!= (const state_t &s) const
 

Friends

tristate fusion_tristate (const tristate &lhs, const tristate &rhs)
 
tristate merge_tristate (const tristate &previous, const tristate &current)
 
tristate difference_tristate (const tristate &previous, const tristate &current)
 

Attribute details

◆ state

enum sofa::core::visual::tristate::state_t sofa::core::visual::tristate::state

Constructor details

◆ tristate() [1/3]

sofa::core::visual::tristate::tristate ( bool  b)
inline

◆ tristate() [2/3]

sofa::core::visual::tristate::tristate ( )
inline

◆ tristate() [3/3]

sofa::core::visual::tristate::tristate ( state_t  state)
inline

Function details

◆ operator bool()

sofa::core::visual::tristate::operator bool ( ) const
inline

◆ operator!=() [1/2]

bool sofa::core::visual::tristate::operator!= ( const state_t s) const
inline

◆ operator!=() [2/2]

bool sofa::core::visual::tristate::operator!= ( const tristate t) const
inline

◆ operator==() [1/2]

bool sofa::core::visual::tristate::operator== ( const state_t s) const
inline

◆ operator==() [2/2]

bool sofa::core::visual::tristate::operator== ( const tristate t) const
inline

Enum details

◆ state_t

Enumerator
false_value 
true_value 
neutral_value 

Related details

◆ difference_tristate

tristate difference_tristate ( const tristate previous,
const tristate current 
)
friend

◆ fusion_tristate

tristate fusion_tristate ( const tristate lhs,
const tristate rhs 
)
friend

◆ merge_tristate

tristate merge_tristate ( const tristate previous,
const tristate current 
)
friend