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

#include <TypeDictionary.hpp>

Public Member Functions

 TypeDictionary ()
 
std::shared_ptr< const DataTypelookup (std::string typeName)
 
void addTypeDefinition (std::string name, DataType *typeSpec)
 
bool validate (DataTypeInator *dataTypeInator)
 Validate all types in this dictionary. More...
 
std::string toString ()
 
 ~TypeDictionary ()
 
void addBuiltinTypes ()
 

Detailed Description

Stores name / typespecifier pairs.

Constructor & Destructor Documentation

◆ TypeDictionary()

TypeDictionary::TypeDictionary ( )

◆ ~TypeDictionary()

TypeDictionary::~TypeDictionary ( )

Destructor.

Member Function Documentation

◆ addBuiltinTypes()

void TypeDictionary::addBuiltinTypes ( )

◆ addTypeDefinition()

void TypeDictionary::addTypeDefinition ( std::string  name,
DataType typeSpec 
)

Add a type definiton to the dictionary.

◆ lookup()

std::shared_ptr< const DataType > TypeDictionary::lookup ( std::string  typeName)

Get the DataType of the for the typedef'ed name.

◆ toString()

std::string TypeDictionary::toString ( )

Dump the entire TypeDictionary to a std::string.

◆ validate()

bool TypeDictionary::validate ( DataTypeInator dataTypeInator)

Validate all types in this dictionary.

Parameters
dataTypeInatoroverarching manager
Returns
true success
false failure

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