FieldRegistry Class Reference

Holds information about a class like name, description and field informations. More...

#include <FieldRegistry.h>

Collaboration diagram for FieldRegistry:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FieldRegistry (void)
 ~FieldRegistry (void)
void registerField (Field const &f)
 Method for registering a variable types as fields.
Field const & getField (size_t id) const
 Return the field information of the field specified by id.
Field const * findField (string const &name) const
 Return the field information of the field specified by name.
size_t nFields (void)
 Return the number of fields of the corresponding class.


Detailed Description

Holds information about a class like name, description and field informations.

See also Setting and getting field values

Definition at line 13 of file FieldRegistry.h.


Constructor & Destructor Documentation

FieldRegistry::FieldRegistry ( void   ) 

Definition at line 3 of file FieldRegistry.cpp.

FieldRegistry::~FieldRegistry ( void   ) 

Definition at line 9 of file FieldRegistry.cpp.


Member Function Documentation

void FieldRegistry::registerField ( Field const &  f  ) 

Method for registering a variable types as fields.

Definition at line 17 of file FieldRegistry.cpp.

References Field::clone(), and Field::name.

Here is the call graph for this function:

Field const & FieldRegistry::getField ( size_t  id  )  const

Return the field information of the field specified by id.

Definition at line 26 of file FieldRegistry.cpp.

Field const * FieldRegistry::findField ( string const &  name  )  const

Return the field information of the field specified by name.

Definition at line 32 of file FieldRegistry.cpp.

Referenced by SimObject::findField(), and SimObject::getFieldOffset().

size_t FieldRegistry::nFields ( void   )  [inline]

Return the number of fields of the corresponding class.

Definition at line 30 of file FieldRegistry.h.


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

Generated on Wed Jul 9 16:34:50 2008 for PCSIM by  doxygen 1.5.5