|
ICG 2
Electric Boogaloo
|
#include <PrimitiveDataType.hpp>
Public Member Functions | |
| PrimitiveDataType () | |
| ~PrimitiveDataType () | |
| bool | accept (DataTypeVisitor *visitor) const override |
| virtual bool | isFloatingPoint () const =0 |
| Determine whether this is an integer type or floating point type. More... | |
| virtual bool | isSigned () const =0 |
| Determine whether type is signed. More... | |
| virtual bool | isVoid () const =0 |
| Is the type void? More... | |
| virtual void | clearValue (void *address) const =0 |
| Clear the variable at the given address. More... | |
| virtual bool | assignValue (void *address, Value *value) const =0 |
| Assign a value to the variable at the given address. More... | |
| virtual Value * | getValue (void *address) const =0 |
| Creates a Value object for the variable at the given address. More... | |
| virtual void | printValue (std::ostream &s, void *address) const =0 |
| Print an ascii representation of the value at the given address to the stream. More... | |
Public Member Functions inherited from DataType | |
| virtual | ~DataType () |
| virtual bool | validate (DataTypeInator *dataTypeInator)=0 |
| Verify that all of the types that are named by this DataType or subordinate DataTypes are resolvable to actual DataTypes in the TypeDictionary. More... | |
| virtual bool | isValid () const =0 |
| Determine whether this type has already been successfully validated. More... | |
| virtual size_t | getSize () const =0 |
| The size (in bytes) of an instance of the DataType. More... | |
| virtual std::string | getTypeSpecName () const =0 |
| Get the Type Spec Name object. More... | |
| virtual void * | createInstance (unsigned int n=1) const =0 |
| Create one or more instances of this type. More... | |
| virtual void | deleteInstance (void *address) const =0 |
| Delete this instance. More... | |
| virtual std::string | makeDeclaration (std::string declarator) const |
| virtual std::string | toString () const |
|
inline |
Constructor for PrimitiveDataType.
|
inline |
|
inlineoverridevirtual |
Implements DataType.
|
pure virtual |
Assign a value to the variable at the given address.
| address | Address of the variable. |
| value | Value to be assigned to the element. |
Implemented in SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, and SpecifiedPrimitiveDataType< T >.
|
pure virtual |
Clear the variable at the given address.
| address | Address of the variable. |
Implemented in SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, and SpecifiedPrimitiveDataType< T >.
|
pure virtual |
Creates a Value object for the variable at the given address.
| address | Address of the variable. |
Implemented in SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, and SpecifiedPrimitiveDataType< T >.
|
pure virtual |
Determine whether this is an integer type or floating point type.
Implemented in SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, and SpecifiedPrimitiveDataType< T >.
|
pure virtual |
Determine whether type is signed.
Implemented in SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, and SpecifiedPrimitiveDataType< T >.
|
pure virtual |
Is the type void?
Implemented in SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, and SpecifiedPrimitiveDataType< T >.
|
pure virtual |
Print an ascii representation of the value at the given address to the stream.
Implemented in SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, SpecifiedPrimitiveDataType< T >, and SpecifiedPrimitiveDataType< T >.