#include <CompositeDataType.hpp>
A CompositeDataType represents user-defined types - structs and classes. It is 'composed' of ordered lists of component types.
◆ MemberMap
◆ SortedMemberList
◆ CompositeDataType() [1/2]
| CompositeDataType::CompositeDataType |
( |
std::string |
name, |
|
|
size_t |
sizeof_struct, |
|
|
void *(*)(int) |
allocator, |
|
|
void(*)(void *) |
deAllocator |
|
) |
| |
Constructor for CompositeDataType.
- Parameters
-
| sizeof_struct | Size, in bytes, of the struct, class or union that this class represents. |
◆ CompositeDataType() [2/2]
◆ ~CompositeDataType()
| CompositeDataType::~CompositeDataType |
( |
| ) |
|
◆ accept()
◆ createInstance()
| void * CompositeDataType::createInstance |
( |
unsigned int |
n | ) |
const |
|
overridevirtual |
Create one or more instances of this type.
- Parameters
-
- Returns
- void* address of the beginnning of the allocation
Implements DataType.
◆ deleteInstance()
| void CompositeDataType::deleteInstance |
( |
void * |
address | ) |
const |
|
overridevirtual |
Delete this instance.
- Parameters
-
| address | of instance to delete |
- Note
- Is this compatible with the createInstance?
Implements DataType.
◆ getMemberMap() [1/2]
| virtual const MemberMap& CompositeDataType::getMemberMap |
( |
| ) |
const |
|
pure virtual |
Get the map of struct members in this object.
- Returns
- MemberMap& reference to the MemberMap object
Implemented in SpecifiedCompositeType< T >.
◆ getMemberMap() [2/2]
| virtual MemberMap& CompositeDataType::getMemberMap |
( |
| ) |
|
|
protectedpure virtual |
◆ getSize()
| size_t CompositeDataType::getSize |
( |
| ) |
const |
|
overridevirtual |
◆ getSortedMemberList()
Get the Sorted Member List object.
- Returns
- const SortedMemberList
◆ getTypeSpecName()
| std::string CompositeDataType::getTypeSpecName |
( |
| ) |
const |
|
overridevirtual |
Get the Type Spec Name object.
- Returns
- std::string name of the type
Implements DataType.
◆ hasMemberNamed()
| bool CompositeDataType::hasMemberNamed |
( |
std::string |
name | ) |
|
Look up whether this struct has a member with the given name.
- Parameters
-
- Returns
- true struct has member with that name
-
false otherwise
◆ isValid()
| bool CompositeDataType::isValid |
( |
| ) |
const |
|
overridevirtual |
Determine whether this type has already been successfully validated.
- Returns
- true if validated, false otherwise
Implements DataType.
◆ toString()
| std::string CompositeDataType::toString |
( |
| ) |
const |
|
overridevirtual |
◆ validate()
Verify that all of the types that are named by this DataType or subordinate DataTypes are resolvable to actual DataTypes in the TypeDictionary.
- Parameters
-
| dataTypeInator | - type resolver machine |
- Returns
- true if successful, false otherwise
Implements DataType.
The documentation for this class was generated from the following files: