#include <FsfTypeNode.h>
Inherits fsf::CTypeNodeBase.

Public Member Functions | |
Creators | |
| CTypeNode () | |
| 0-parameter constructor | |
| CTypeNode (CNode *pParent, Time tTime=0) | |
| 2 parameter constructor: parent and timestamp | |
| CTypeNode (const std::string &strName, CNode *pParent=NULL, Time tTime=0) | |
| 3-parameter constructor: name, parent and timestamp | |
| CTypeNode (const Type &val, const std::string &strName, CNode *pParent=NULL, Time tTime=0) | |
| 4-parameter constructor: initial value for payload, node name, parent and timestamp | |
| CTypeNode (const CTypeNode &rhs) | |
| Copy constructor. | |
| virtual CNode * | clone () const |
| Cloning: necessary for run-time polymorphism. | |
Accessors | |
| virtual void | getTypeID (std::string &str) const |
| Returns factory mapping key. | |
| void | getData (Type &val) const |
| Copies the payload value into parameter. | |
| const Type & | getData () const |
| Returns payload value. | |
Manipulators | |
| CTypeNode & | operator= (const CTypeNode &rhs) |
| Assignment operator. | |
| void | setData (const Type &val) |
| Sets payload value. | |
Defines a template for nodes with a single variable payload of any type. Type must have functionning copy constructor and assignment operator.
| fsf::CTypeNode< Type >::CTypeNode | ( | ) | [inline] |
0-parameter constructor
| fsf::CTypeNode< Type >::CTypeNode | ( | CNode * | pParent, | |
| Time | tTime = 0 | |||
| ) | [inline] |
2 parameter constructor: parent and timestamp
| fsf::CTypeNode< Type >::CTypeNode | ( | const std::string & | strName, | |
| CNode * | pParent = NULL, |
|||
| Time | tTime = 0 | |||
| ) | [inline] |
3-parameter constructor: name, parent and timestamp
| fsf::CTypeNode< Type >::CTypeNode | ( | const Type & | val, | |
| const std::string & | strName, | |||
| CNode * | pParent = NULL, |
|||
| Time | tTime = 0 | |||
| ) | [inline] |
4-parameter constructor: initial value for payload, node name, parent and timestamp
| fsf::CTypeNode< Type >::CTypeNode | ( | const CTypeNode< Type > & | rhs | ) | [inline] |
Copy constructor.
| virtual CNode* fsf::CTypeNode< Type >::clone | ( | ) | const [inline, virtual] |
| const Type& fsf::CTypeNode< Type >::getData | ( | ) | const [inline] |
Returns payload value.
| void fsf::CTypeNode< Type >::getData | ( | Type & | val | ) | const [inline] |
Copies the payload value into parameter.
| void fsf::StringNode::getTypeID | ( | std::string & | str | ) | const [inline, virtual] |
| CTypeNode< Type > & CTypeNode::operator= | ( | const CTypeNode< Type > & | rhs | ) | [inline] |
Assignment operator.
| void fsf::CTypeNode< Type >::setData | ( | const Type & | val | ) | [inline] |
Sets payload value.
1.5.9