#include <ArrayDataType.hpp>
◆ ArrayDataType() [1/4]
| ArrayDataType::ArrayDataType |
( |
std::string |
typeSpecifierName, |
|
|
unsigned int |
n_elems |
|
) |
| |
Construct an ArrayDataType.
- Parameters
-
| typeSpecifierName | string representation of fully qualified type |
| n_elems | Number of |
◆ ArrayDataType() [2/4]
| ArrayDataType::ArrayDataType |
( |
const ArrayDataType & |
original, |
|
|
unsigned int |
newSize |
|
) |
| |
Create an ArrayDataType with a different elementCount, but otherwise identical to the original.
◆ ArrayDataType() [3/4]
| ArrayDataType::ArrayDataType |
( |
| ) |
|
|
delete |
◆ ArrayDataType() [4/4]
◆ ~ArrayDataType()
| ArrayDataType::~ArrayDataType |
( |
| ) |
|
◆ accept()
◆ createInstance()
| void * ArrayDataType::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 ArrayDataType::deleteInstance |
( |
void * |
address | ) |
const |
|
overridevirtual |
Delete this instance.
- Parameters
-
| address | of instance to delete |
- Note
- Is this compatible with the createInstance?
Implements DataType.
◆ getElementCount()
| unsigned int ArrayDataType::getElementCount |
( |
| ) |
const |
- Returns
- Returns number of elements in this level of the array
◆ getSize()
| size_t ArrayDataType::getSize |
( |
| ) |
const |
|
overridevirtual |
◆ getSubType()
| std::shared_ptr< const DataType > ArrayDataType::getSubType |
( |
| ) |
const |
◆ getTotalElementCount()
| unsigned int ArrayDataType::getTotalElementCount |
( |
| ) |
const |
- Returns
- The number of arrayed Type-specifier elements of the DataType.
◆ getTypeSpecName()
| std::string ArrayDataType::getTypeSpecName |
( |
| ) |
const |
|
overridevirtual |
Get the Type Spec Name object.
- Returns
- std::string name of the type
Implements DataType.
◆ isValid()
| bool ArrayDataType::isValid |
( |
| ) |
const |
|
overridevirtual |
Determine whether this type has already been successfully validated.
- Returns
- true if validated, false otherwise
Implements DataType.
◆ makeDeclaration()
| std::string ArrayDataType::makeDeclaration |
( |
std::string |
declarator | ) |
const |
|
overridevirtual |
Generate a declaration of this DataType.
- Parameters
-
| declarator | A declarator, which can be a 1) a variable name or an array declarator (both are direct-declarators) or 2) a pointer declarator ( not a direct-declarator ). |
Reimplemented from DataType.
◆ operator=()
◆ 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: