sot-core  4.11.8
Hierarchical task solver plug-in for dynamic-graph.
dynamicgraph::sot::Flags Class Reference

#include <sot/core/flags.hh>

Public Member Functions

 Flags (const bool &b=false)
 
 Flags (const char *flags)
 
 Flags (const std::vector< bool > &flags)
 
void add (const bool &b)
 
Flags operator! (void) const
 
Flagsoperator&= (const Flags &f2)
 
Flagsoperator|= (const Flags &f2)
 
bool operator() (const int &i) const
 
 operator bool (void) const
 
void unset (const unsigned int &i)
 
void set (const unsigned int &i)
 

Protected Attributes

std::vector< bool > flags
 
bool outOfRangeFlag
 

Friends

SOT_CORE_EXPORT friend Flags operator& (const Flags &f1, const Flags &f2)
 
SOT_CORE_EXPORT friend Flags operator| (const Flags &f1, const Flags &f2)
 
SOT_CORE_EXPORT friend std::ostream & operator<< (std::ostream &os, const Flags &fl)
 
SOT_CORE_EXPORT friend std::istream & operator>> (std::istream &is, Flags &fl)
 

Constructor & Destructor Documentation

◆ Flags() [1/3]

dynamicgraph::sot::Flags::Flags ( const bool &  b = false)

◆ Flags() [2/3]

dynamicgraph::sot::Flags::Flags ( const char *  flags)

◆ Flags() [3/3]

dynamicgraph::sot::Flags::Flags ( const std::vector< bool > &  flags)

Member Function Documentation

◆ add()

void dynamicgraph::sot::Flags::add ( const bool &  b)

◆ operator bool()

dynamicgraph::sot::Flags::operator bool ( void  ) const

◆ operator!()

Flags dynamicgraph::sot::Flags::operator! ( void  ) const

◆ operator&=()

Flags& dynamicgraph::sot::Flags::operator&= ( const Flags f2)

◆ operator()()

bool dynamicgraph::sot::Flags::operator() ( const int &  i) const

◆ operator|=()

Flags& dynamicgraph::sot::Flags::operator|= ( const Flags f2)

◆ set()

void dynamicgraph::sot::Flags::set ( const unsigned int &  i)

◆ unset()

void dynamicgraph::sot::Flags::unset ( const unsigned int &  i)

Friends And Related Function Documentation

◆ operator&

SOT_CORE_EXPORT friend Flags operator& ( const Flags f1,
const Flags f2 
)
friend

◆ operator<<

SOT_CORE_EXPORT friend std::ostream& operator<< ( std::ostream &  os,
const Flags fl 
)
friend

◆ operator>>

SOT_CORE_EXPORT friend std::istream& operator>> ( std::istream &  is,
Flags fl 
)
friend

◆ operator|

SOT_CORE_EXPORT friend Flags operator| ( const Flags f1,
const Flags f2 
)
friend

Member Data Documentation

◆ flags

std::vector<bool> dynamicgraph::sot::Flags::flags
protected

◆ outOfRangeFlag

bool dynamicgraph::sot::Flags::outOfRangeFlag
protected

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