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

#include <ASTInfo.hpp>

Public Member Functions

void combine (const ASTInfo &other)
 Pull info from another ASTInfo object into self. More...
 
void add_class_info (ClassInfo *class_info)
 Add a ClassInfo object. More...
 
void add_stl_decl (std::string stl_name)
 Add an STL declaration. More...
 
void add_stl_decl (std::unordered_set< std::string > stl_names)
 Add a set of STL declarations. More...
 
void add_typedef (std::string existing_name, std::string alias_name)
 Register a typedef. More...
 
ICGTemplateEngine::ListTokenItems getItems ()
 Get the representation of this AST that is compatable with the ICGTemplateEngine. More...
 
std::string toString () const
 toString More...
 

Member Function Documentation

◆ add_class_info()

void ASTInfo::add_class_info ( ClassInfo class_info)

Add a ClassInfo object.

Parameters
class_infofully built ClassInfo object to hold

◆ add_stl_decl() [1/2]

void ASTInfo::add_stl_decl ( std::string  stl_name)

Add an STL declaration.

Parameters
stl_namestring name of an STL to add (something along the lines of std::vector<int> )

◆ add_stl_decl() [2/2]

void ASTInfo::add_stl_decl ( std::unordered_set< std::string >  stl_names)

Add a set of STL declarations.

Parameters
stl_namesset of string STL names

◆ add_typedef()

void ASTInfo::add_typedef ( std::string  existing_name,
std::string  alias_name 
)

Register a typedef.

Parameters
existing_nameFULLY QUALIFIED, DESUGARED typename
alias_namename of the alias

◆ combine()

void ASTInfo::combine ( const ASTInfo other)

Pull info from another ASTInfo object into self.

Parameters
otheranother ASTInfo object to absorb

◆ getItems()

ICGTemplateEngine::ListTokenItems ASTInfo::getItems ( )

Get the representation of this AST that is compatable with the ICGTemplateEngine.

Returns
ICGTemplateEngine::ListTokenItems

◆ toString()

std::string ASTInfo::toString ( ) const

toString

Returns
std::string

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