Public Member Functions | Protected Attributes | Friends | List of all members
dynamicgraph::sot::Flags Class Reference

#include <flags.hh>

Public Member Functions

void add (const bool &b)
 
 Flags (const bool &b=false)
 
 Flags (const char *flags)
 
 Flags (const std::vector< bool > &flags)
 
Flagsoperator &= (const Flags &f2)
 
 operator bool (void) const
 
Flags operator! (void) const
 
bool operator() (const int &i) const
 
Flagsoperator|= (const Flags &f2)
 
void set (const unsigned int &i)
 
void unset (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 std::ostream & operator<< (std::ostream &os, const Flags &fl)
 
SOT_CORE_EXPORT friend std::istream & operator>> (std::istream &is, Flags &fl)
 
SOT_CORE_EXPORT friend Flags operator| (const Flags &f1, const Flags &f2)
 

Detailed Description

Definition at line 33 of file flags.hh.

Constructor & Destructor Documentation

◆ Flags() [1/3]

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

Definition at line 30 of file flags.cpp.

◆ Flags() [2/3]

Flags::Flags ( const char *  flags)

Definition at line 32 of file flags.cpp.

◆ Flags() [3/3]

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

Definition at line 51 of file flags.cpp.

Member Function Documentation

◆ add()

void Flags::add ( const bool &  b)

Definition at line 69 of file flags.cpp.

◆ operator &=()

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

◆ operator bool()

Flags::operator bool ( void  ) const

Definition at line 54 of file flags.cpp.

◆ operator!()

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

Definition at line 84 of file flags.cpp.

◆ operator()()

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

Definition at line 63 of file flags.cpp.

◆ operator|=()

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

Definition at line 114 of file flags.cpp.

◆ set()

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

Definition at line 72 of file flags.cpp.

◆ unset()

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

Definition at line 76 of file flags.cpp.

Friends And Related Function Documentation

◆ operator &

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

Definition at line 91 of file flags.cpp.

◆ operator<<

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

Definition at line 126 of file flags.cpp.

◆ operator>>

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

Definition at line 131 of file flags.cpp.

◆ operator|

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

Definition at line 97 of file flags.cpp.

Member Data Documentation

◆ flags

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

Definition at line 35 of file flags.hh.

◆ outOfRangeFlag

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

Definition at line 36 of file flags.hh.


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


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:27