#include <PointerDataType.hpp>
◆ PointerDataType() [1/2]
| PointerDataType::PointerDataType |
( |
std::string |
typeSpecifierName | ) |
|
Constructor for ArrayDataType.
- Parameters
-
| typeSpecifierName | Name of the type on with this type is based. |
◆ PointerDataType() [2/2]
◆ ~PointerDataType()
| PointerDataType::~PointerDataType |
( |
| ) |
|
◆ accept()
◆ createInstance()
| void * PointerDataType::createInstance |
( |
unsigned int |
num | ) |
const |
|
overridevirtual |
◆ deleteInstance()
| void PointerDataType::deleteInstance |
( |
void * |
address | ) |
const |
|
overridevirtual |
Delete this instance.
- Parameters
-
| address | of instance to delete |
- Note
- Is this compatible with the createInstance?
Implements DataType.
◆ getSize()
| size_t PointerDataType::getSize |
( |
| ) |
const |
|
overridevirtual |
◆ getSubType()
| std::shared_ptr< const DataType > PointerDataType::getSubType |
( |
| ) |
const |
◆ getTypeSpecName()
| std::string PointerDataType::getTypeSpecName |
( |
| ) |
const |
|
overridevirtual |
Get the Type Spec Name object.
- Returns
- std::string name of the type
Implements DataType.
◆ isValid()
| bool PointerDataType::isValid |
( |
| ) |
const |
|
overridevirtual |
Determine whether this type has already been successfully validated.
- Returns
- true if validated, false otherwise
Implements DataType.
◆ makeDeclaration()
| std::string PointerDataType::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: