#include <sot-pattern-generator/selector.h>
List of all members.
Public Member Functions |
| DYNAMIC_GRAPH_ENTITY_DECL () |
| 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) |
void | initCommands (void) |
virtual void | commandLine (const std::string &cmdLine, std::istringstream &cmdArgs, std::ostream &os) |
void | create (const std::string &name, const std::string &type, const int &sigId) |
std::string | getTypeList (void) |
void | getTypeList (std::ostream &os) |
Static Public Member Functions |
template<class T > |
static T & | computeSelection (const unsigned int &sigNum, std::vector< SignalBase< int > * > &entriesSIN, T &res, const int &time) |
Public Attributes |
SignalPtr< unsigned int, int > | selectorSIN |
std::vector< std::vector
< SignalBase< int > * > > | inputsSIN |
std::vector< SignalBase< int > * > | outputsSOUT |
Protected Attributes |
unsigned int | nbSignals |
| Number of signal type.
|
unsigned int | nbEntries |
| Number of possible values for the selector.
|
Constructor & Destructor Documentation
dynamicgraph::sot::Selector::Selector |
( |
const std::string & |
name | ) |
|
virtual dynamicgraph::sot::Selector::~Selector |
( |
void |
| ) |
[virtual] |
Member Function Documentation
virtual void dynamicgraph::sot::Selector::commandLine |
( |
const std::string & |
cmdLine, |
|
|
std::istringstream & |
cmdArgs, |
|
|
std::ostream & |
os |
|
) |
| [virtual] |
template<class T >
static T& dynamicgraph::sot::Selector::computeSelection |
( |
const unsigned int & |
sigNum, |
|
|
std::vector< SignalBase< int > * > & |
entriesSIN, |
|
|
T & |
res, |
|
|
const int & |
time |
|
) |
| [static] |
void dynamicgraph::sot::Selector::create |
( |
const std::string & |
name, |
|
|
const std::string & |
type, |
|
|
const int & |
sigId |
|
) |
| |
template<class T >
unsigned int dynamicgraph::sot::Selector::createSignal |
( |
const std::string & |
shortname, |
|
|
const int & |
sigId = -1 |
|
) |
| |
dynamicgraph::sot::Selector::DYNAMIC_GRAPH_ENTITY_DECL |
( |
| ) |
|
std::string dynamicgraph::sot::Selector::getTypeList |
( |
void |
| ) |
|
void dynamicgraph::sot::Selector::getTypeList |
( |
std::ostream & |
os | ) |
|
void dynamicgraph::sot::Selector::initCommands |
( |
void |
| ) |
|
void dynamicgraph::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.