| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
OutputConfig< T > Class Template ReferenceStores an item for each joint, can be accessed via joint name or array offset. More...
Inheritance diagram for OutputConfig< T >:
![]() Detailed Descriptiontemplate<typename T>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| OutputConfig (unsigned int firstOffset, unsigned int numOutputsToStore, const T &defValue) | |
| constructor | |
| virtual ObjectBase & | getEntry (const std::string &name) |
| strips trailing '~' characters from name before doing usual lookup | |
| T & | getEntry (size_t index) |
| return the value at position index, which must exist (no range checking) | |
| T & | operator[] (size_t index) |
| return the value at position index, which must exist (no range checking, equivalent to getEntry(index)) | |
| void | saveXML (xmlNode *node, bool onlyOverwrite, std::set< std::string > &seen) const |
| small trick -- override to save outputs in indexed order instead of alphabetical order | |
Protected Member Functions | |
| bool | loadXMLNode (const std::string &key, xmlNode *val, const std::string &comment) |
| strips trailing '~' characters from name before doing usual lookup | |
Protected Attributes | |
| unsigned int | offset |
| the index offset of the first entry in outputs | |
| std::vector< T > | outputs |
| storage of data for each output | |
| OutputConfig< T >::OutputConfig | ( | unsigned int | firstOffset, | |
| unsigned int | numOutputsToStore, | |||
| const T & | defValue | |||
| ) |
| T& OutputConfig< T >::getEntry | ( | size_t | index | ) |
| virtual ObjectBase& OutputConfig< T >::getEntry | ( | const std::string & | name | ) | [virtual] |
strips trailing '~' characters from name before doing usual lookup
Reimplemented from plist::DictionaryOf< PO, Alloc >.
Definition at line 74 of file Config.h.
Referenced by OutputConfig< plist::Primitive< float > >::getEntry().
| bool OutputConfig< T >::loadXMLNode | ( | const std::string & | key, | |
| xmlNode * | val, | |||
| const std::string & | comment | |||
| ) | [protected, virtual] |
strips trailing '~' characters from name before doing usual lookup
Reimplemented from ConfigDictionary.
Definition at line 90 of file Config.h.
Referenced by OutputConfig< plist::Primitive< float > >::loadXMLNode().
| T& OutputConfig< T >::operator[] | ( | size_t | index | ) |
| void OutputConfig< T >::saveXML | ( | xmlNode * | node, | |
| bool | onlyOverwrite, | |||
| std::set< std::string > & | seen | |||
| ) | const [virtual] |
small trick -- override to save outputs in indexed order instead of alphabetical order
Reimplemented from plist::DictionaryBase.
unsigned int OutputConfig< T >::offset [protected] |
the index offset of the first entry in outputs
Definition at line 95 of file Config.h.
Referenced by OutputConfig< T >::saveXML().
std::vector<T> OutputConfig< T >::outputs [protected] |
storage of data for each output
Definition at line 96 of file Config.h.
Referenced by OutputConfig< plist::Primitive< float > >::getEntry(), OutputConfig< plist::Primitive< float > >::operator[](), OutputConfig< plist::Primitive< float > >::OutputConfig(), and OutputConfig< T >::saveXML().
|
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:13 2016 by Doxygen 1.6.3 |