ICG 2
Electric Boogaloo
Public Member Functions | List of all members
StringDataType Class Reference

#include <StringDataType.hpp>

Inheritance diagram for StringDataType:
DataType

Public Member Functions

 StringDataType ()
 
 StringDataType (const StringDataType &original)=delete
 
 ~StringDataType ()=default
 
StringDataTypeoperator= (const StringDataType &rhs)=delete
 
bool validate (DataTypeInator *dataTypeInator=NULL) override
 A StringDataType is always valid. More...
 
bool isValid () const override
 Determine whether this type has already been successfully validated. More...
 
size_t getSize () const override
 
void * createInstance (unsigned int num) const override
 
void deleteInstance (void *address) const override
 Delete this instance. More...
 
std::string getTypeSpecName () const override
 Get the Type Spec Name object. More...
 
bool accept (DataTypeVisitor *visitor) const override
 
- Public Member Functions inherited from DataType
virtual ~DataType ()
 
virtual std::string makeDeclaration (std::string declarator) const
 
virtual std::string toString () const
 

Constructor & Destructor Documentation

◆ StringDataType() [1/2]

StringDataType::StringDataType ( )

Constructor for ArrayDataType.

◆ StringDataType() [2/2]

StringDataType::StringDataType ( const StringDataType original)
delete

◆ ~StringDataType()

StringDataType::~StringDataType ( )
default

Member Function Documentation

◆ accept()

bool StringDataType::accept ( DataTypeVisitor visitor) const
overridevirtual

Implements DataType.

◆ createInstance()

void * StringDataType::createInstance ( unsigned int  num) const
overridevirtual

Create zero or more instances of this DataType.

Implements DataType.

◆ deleteInstance()

void StringDataType::deleteInstance ( void *  address) const
overridevirtual

Delete this instance.

Parameters
addressof instance to delete
Note
Is this compatible with the createInstance?

Implements DataType.

◆ getSize()

size_t StringDataType::getSize ( ) const
overridevirtual
Returns
The size (in bytes) of an instance of the PointerDataType.

Implements DataType.

◆ getTypeSpecName()

std::string StringDataType::getTypeSpecName ( ) const
overridevirtual

Get the Type Spec Name object.

Returns
std::string name of the type

Implements DataType.

◆ isValid()

bool StringDataType::isValid ( ) const
overridevirtual

Determine whether this type has already been successfully validated.

Returns
true if validated, false otherwise

Implements DataType.

◆ operator=()

StringDataType& StringDataType::operator= ( const StringDataType rhs)
delete

◆ validate()

bool StringDataType::validate ( DataTypeInator dataTypeInator = NULL)
overridevirtual

A StringDataType is always valid.

Parameters
dataTypeInatorunused parameter, defaults to null
Returns
true always

Implements DataType.


The documentation for this class was generated from the following files: