Class MetaInfo contains objects meta-information.
More...
#include <pointer.h>
Detailed Description
Class MetaInfo contains objects meta-information.
Constructor & Destructor Documentation
crp::MetaInfo::MetaInfo |
( |
| ) |
[inline] |
Constructs a meta info from essential parameters.
Do not create instances of this class!
There is never the need for the ContRap user to do so.
- Parameters:
-
type_name | Real name of the type |
type_info | Type info object of the class |
base_info | Type info object of the base class |
constructor_function | Constructor function |
copy_function | Copy function |
cast_function | Cast function |
destructor_function | Destructor function |
crp::MetaInfo::~MetaInfo |
( |
| ) |
|
Destructor unregisters the meta info object.
crp::MetaInfo::MetaInfo |
( |
const MetaInfo & |
meta_info | ) |
[inline] |
Copy constructor.
- Parameters:
-
meta_info | Other meta info instance |
Member Function Documentation
bool crp::MetaInfo::can_cast |
( |
| ) |
const [inline] |
Returns true if the meta info can cast.
- Returns:
- True if the meta info can cast
bool crp::MetaInfo::can_copy |
( |
| ) |
const [inline] |
Returns true if the meta info can copy.
- Returns:
- True if the meta info can copy
bool crp::MetaInfo::cast |
( |
const void * |
object | ) |
const [inline] |
Applies the cast function.
- Parameters:
-
object | Object to cast to the given type |
- Returns:
- True if pointer cast is possible
bool crp::MetaInfo::copy |
( |
const void * |
rvalue, |
|
|
void * |
lvalue |
|
) |
| const [inline] |
Applies the copy operator.
- Parameters:
-
rvalue | Value which is assigned |
lvalue | Value which is overwritten |
- Returns:
- True if assign was successful
void crp::MetaInfo::create |
( |
void * |
object | ) |
[inline] |
Applies the constructor.
- Parameters:
-
Pointer | to the object on which should be created |
void crp::MetaInfo::destructor |
( |
void * |
object | ) |
[inline] |
Applies the destructor.
- Parameters:
-
Pointer | to the object on which delete is called |
bool crp::MetaInfo::has_constructor |
( |
| ) |
const [inline] |
Returns true if the meta info has a constructor.
- Returns:
- True if the meta info has a valid constructor
bool crp::MetaInfo::has_destructor |
( |
| ) |
const [inline] |
Returns true if the meta info has a destructor.
- Returns:
- True if the meta info has a valid destructor
bool crp::MetaInfo::in_hierarchy |
( |
const MetaInfo * |
object | ) |
const [inline] |
Returns true if the object is in the same object hierarchy as the current meta info.
If this method returns true, you can call the cast function.
- Parameters:
-
void crp::MetaInfo::invalidate |
( |
| ) |
[inline] |
bool crp::MetaInfo::is_valid |
( |
| ) |
const [inline] |
Returns true if the MetaInfo object is valid.
A meta info object is valid, if it has valid type information. Check the ability of a MetaInfo object to cast, destroy, etc. with corresponding methods.
- Returns:
- True if the object is valid
Friends And Related Function Documentation
Field Documentation
Type cast to this object.
Destructor function.
- Parameters:
-
Pointer | to the object on which delete is called |
Size of an object instance.
The documentation for this class was generated from the following file: