sot::Selector Class Reference
#include <sot-pattern-generator/selector.h>
List of all members.
Public Member Functions |
| Selector (const std::string &name) |
virtual | ~Selector (void) |
template<class T > |
unsigned int | createSignal (const std::string &shortname, const int &sigId=-1) |
void | resetSignals (const unsigned int &nbEntries, const unsigned int &nbSignals) |
virtual void | commandLine (const std::string &cmdLine, std::istringstream &cmdArgs, std::ostream &os) |
Static Public Member Functions |
template<class T > |
static T & | computeSelection (const unsigned int &sigNum, std::vector< dg::SignalBase< int > * > &entriesSIN, T &res, const int &time) |
Public Attributes |
dg::SignalPtr< unsigned int, int > | selectorSIN |
std::vector< std::vector
< dg::SignalBase< int > * > > | inputsSIN |
std::vector< dg::SignalBase
< int > * > | outputsSOUT |
Static Public Attributes |
static const std::string | CLASS_NAME |
Protected Attributes |
unsigned int | nbSignals |
| Number of signal type.
|
unsigned int | nbEntries |
| Number of possible values for the selector.
|
Constructor & Destructor Documentation
sot::Selector::Selector |
( |
const std::string & |
name |
) |
|
virtual sot::Selector::~Selector |
( |
void |
|
) |
[virtual] |
Member Function Documentation
virtual void sot::Selector::commandLine |
( |
const std::string & |
cmdLine, |
|
|
std::istringstream & |
cmdArgs, |
|
|
std::ostream & |
os | |
|
) |
| | [virtual] |
template<class T >
static T& sot::Selector::computeSelection |
( |
const unsigned int & |
sigNum, |
|
|
std::vector< dg::SignalBase< int > * > & |
entriesSIN, |
|
|
T & |
res, |
|
|
const int & |
time | |
|
) |
| | [inline, static] |
template<class T >
unsigned int sot::Selector::createSignal |
( |
const std::string & |
shortname, |
|
|
const int & |
sigId = -1 | |
|
) |
| | [inline] |
void sot::Selector::resetSignals |
( |
const unsigned int & |
nbEntries, |
|
|
const unsigned int & |
nbSignals | |
|
) |
| | |
Member Data Documentation
Number of possible values for the selector.
For each entry, you have one signal of each type.
Number of signal type.
For each signal type, you have one output and <nbEntries> inputs.