![]() |
![]() |
Iterator to loop over the input/output variable configuration. More...
#include <VarProcessor.h>
Public Member Functions | |
operator bool () const | |
test for end of iterator | |
ConfIterator & | operator() (Variable::Flags mask) |
apply property flags mask to variable at current position | |
Variable::Flags | operator* () const |
return the current input variable flags | |
ConfIterator | operator++ (int dummy) |
move to next input variable | |
ConfIterator & | operator++ () |
move to next input variable | |
ConfIterator & | operator<< (const ConfIterator &origin) |
add a new output variable that inherits values from origin | |
ConfIterator & | operator<< (Config config_) |
add a new output variable configuration config_ | |
ConfIterator & | operator<< (Variable::Flags mask) |
add a new output variable configuration with mask mask | |
Protected Member Functions | |
ConfIterator (BitSet::Iterator cur, ConfigCtx &config) | |
Private Attributes | |
ConfigCtx & | config |
BitSet::Iterator | cur |
Friends | |
class | VarProcessor |
Iterator to loop over the input/output variable configuration.
Iterator to loop over the input/output variable values.
Definition at line 128 of file VarProcessor.h.
PhysicsTools::VarProcessor::ConfIterator::ConfIterator | ( | BitSet::Iterator | cur, |
ConfigCtx & | config | ||
) | [inline, protected] |
PhysicsTools::VarProcessor::ConfIterator::operator bool | ( | ) | const [inline] |
test for end of iterator
Definition at line 155 of file VarProcessor.h.
References cur.
{ return cur; }
ConfIterator& PhysicsTools::VarProcessor::ConfIterator::operator() | ( | Variable::Flags | mask | ) | [inline] |
apply property flags mask to variable at current position
Definition at line 131 of file VarProcessor.h.
{ config[cur()].mask = (Variable::Flags)(config[cur()].mask & mask); return *this; }
Variable::Flags PhysicsTools::VarProcessor::ConfIterator::operator* | ( | void | ) | const [inline] |
ConfIterator PhysicsTools::VarProcessor::ConfIterator::operator++ | ( | int | dummy | ) | [inline] |
move to next input variable
Definition at line 161 of file VarProcessor.h.
References operator++().
{ ConfIterator orig = *this; operator ++ (); return orig; }
ConfIterator& PhysicsTools::VarProcessor::ConfIterator::operator++ | ( | void | ) | [inline] |
move to next input variable
Definition at line 158 of file VarProcessor.h.
References cur.
Referenced by operator++().
{ ++cur; return *this; }
ConfIterator& PhysicsTools::VarProcessor::ConfIterator::operator<< | ( | const ConfIterator & | origin | ) | [inline] |
add a new output variable that inherits values from origin
Definition at line 147 of file VarProcessor.h.
{ return *this << Config(config[origin.cur()].mask, origin.cur()); }
ConfIterator& PhysicsTools::VarProcessor::ConfIterator::operator<< | ( | Config | config_ | ) | [inline] |
add a new output variable configuration config_
Definition at line 139 of file VarProcessor.h.
References config, and PhysicsTools::VarProcessor::ConfigCtx::push_back().
{ config.push_back(config_); return *this; }
ConfIterator& PhysicsTools::VarProcessor::ConfIterator::operator<< | ( | Variable::Flags | mask | ) | [inline] |
add a new output variable configuration with mask mask
Definition at line 143 of file VarProcessor.h.
{ return *this << Config(mask, 0); }
friend class VarProcessor [friend] |
Definition at line 165 of file VarProcessor.h.
Definition at line 172 of file VarProcessor.h.
Referenced by operator()(), operator*(), and operator<<().
Definition at line 171 of file VarProcessor.h.
Referenced by operator bool(), operator()(), operator*(), operator++(), and operator<<().