FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <fei_Data.hpp>
Public Member Functions | |
Data () | |
virtual | ~Data () |
void | setTypeName (const char *name) |
const char * | getTypeName () const |
void | setDataPtr (void *ptr) |
void * | getDataPtr () const |
Private Attributes | |
std::string | typeName_ |
void * | dataPtr_ |
This is a very simple class for passing stuff around in a void pointer. It has the ability to store and query a type name, so at least there can be user-enforced type safety.
When setTypeName is called, a char* is created and a copy of the input argument is taken. This char* is later destroyed by the Data destructor. The void* dataPtr_ member is not destroyed, it is just a copy of a pointer.
Definition at line 18 of file fei_Data.hpp.
|
inline |
Default constructor.
Definition at line 21 of file fei_Data.hpp.
|
inlinevirtual |
Default destructor.
Definition at line 24 of file fei_Data.hpp.
|
inline |
Set a string representing the type of the object stored in 'getDataPtr()'.
Definition at line 28 of file fei_Data.hpp.
References typeName_.
Referenced by FEI_Implementation::aggregateSystem().
|
inline |
Query the string representing the type of the object stored in 'getDataPtr()'.
Definition at line 32 of file fei_Data.hpp.
References typeName_.
Referenced by FEI_Implementation::aggregateSystem().
|
inline |
Set the contents of the data pointer.
Definition at line 35 of file fei_Data.hpp.
References dataPtr_.
Referenced by FEI_Implementation::aggregateSystem().
|
inline |
Retrieve the contents of the data pointer.
Definition at line 38 of file fei_Data.hpp.
References dataPtr_.
Referenced by FEI_Implementation::aggregateSystem().
|
private |
Definition at line 41 of file fei_Data.hpp.
Referenced by getTypeName(), and setTypeName().
|
private |
Definition at line 42 of file fei_Data.hpp.
Referenced by getDataPtr(), and setDataPtr().