fsf::CTypeNode< Type > Class Template Reference
[Nodes]

Type node template class. More...

#include <FsfTypeNode.h>

Inherits fsf::CTypeNodeBase.

Collaboration diagram for fsf::CTypeNode< Type >:

Collaboration graph
[legend]

List of all members.

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 CNodeclone () 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
CTypeNodeoperator= (const CTypeNode &rhs)
 Assignment operator.
void setData (const Type &val)
 Sets payload value.


Detailed Description

template<typename Type>
class fsf::CTypeNode< Type >

Type node template class.

Defines a template for nodes with a single variable payload of any type. Type must have functionning copy constructor and assignment operator.


Constructor & Destructor Documentation

template<typename Type>
fsf::CTypeNode< Type >::CTypeNode (  )  [inline]

0-parameter constructor

template<typename Type>
fsf::CTypeNode< Type >::CTypeNode ( CNode pParent,
Time  tTime = 0 
) [inline]

2 parameter constructor: parent and timestamp

template<typename Type>
fsf::CTypeNode< Type >::CTypeNode ( const std::string &  strName,
CNode pParent = NULL,
Time  tTime = 0 
) [inline]

3-parameter constructor: name, parent and timestamp

template<typename Type>
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

template<typename Type>
fsf::CTypeNode< Type >::CTypeNode ( const CTypeNode< Type > &  rhs  )  [inline]

Copy constructor.


Member Function Documentation

template<typename Type>
virtual CNode* fsf::CTypeNode< Type >::clone (  )  const [inline, virtual]

Cloning: necessary for run-time polymorphism.

Reimplemented from fsf::CTypeNodeBase.

template<typename Type>
const Type& fsf::CTypeNode< Type >::getData (  )  const [inline]

Returns payload value.

template<typename Type>
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]

Returns factory mapping key.

Reimplemented from fsf::CTypeNodeBase.

template<typename Type >
CTypeNode< Type > & CTypeNode::operator= ( const CTypeNode< Type > &  rhs  )  [inline]

Assignment operator.

template<typename Type>
void fsf::CTypeNode< Type >::setData ( const Type &  val  )  [inline]

Sets payload value.


The documentation for this class was generated from the following files:

Generated on Thu Oct 21 11:47:38 2010 for MFSM by  doxygen 1.5.9