ICG 2
Electric Boogaloo
Classes | Public Member Functions | Public Attributes | List of all members
ClassInfo Class Referencefinal

Hold information about a class declaration. More...

#include <ClassInfo.hpp>

Inheritance diagram for ClassInfo:
ICGTemplateEngine::recursable

Classes

class  BaseInfo
 Represent a base class. More...
 

Public Member Functions

 ClassInfo ()
 
 ClassInfo (std::string n)
 
ICGTemplateEngine::Dictionary toDictionary () const override
 Get a map of token name -> token value for this object. More...
 
ICGTemplateEngine::ListTokenItems nextLevel () const override
 Get the value of any recursable objects nested in this one. May return empty if this is a "leaf". More...
 
std::string toString () const override
 Get a string representation. More...
 
std::unordered_set< std::string > getStlMembers () const
 

Public Attributes

std::string name
 
std::vector< FieldInfofields
 
std::vector< BaseInfobase_classes
 
std::vector< std::string > template_args
 

Detailed Description

Hold information about a class declaration.

Constructor & Destructor Documentation

◆ ClassInfo() [1/2]

ClassInfo::ClassInfo ( )

◆ ClassInfo() [2/2]

ClassInfo::ClassInfo ( std::string  n)

Member Function Documentation

◆ getStlMembers()

std::unordered_set< std::string > ClassInfo::getStlMembers ( ) const

◆ nextLevel()

ICGTemplateEngine::ListTokenItems ClassInfo::nextLevel ( ) const
overridevirtual

Get the value of any recursable objects nested in this one. May return empty if this is a "leaf".

Returns
ListTokenItems std::map<std::string, std::vector<const recursable *>>

Implements ICGTemplateEngine::recursable.

◆ toDictionary()

ICGTemplateEngine::Dictionary ClassInfo::toDictionary ( ) const
overridevirtual

Get a map of token name -> token value for this object.

Returns
Dictionary std::map<std::string, std::string>

Implements ICGTemplateEngine::recursable.

◆ toString()

std::string ClassInfo::toString ( ) const
overridevirtual

Get a string representation.

Returns
std::string

Implements ICGTemplateEngine::recursable.

Member Data Documentation

◆ base_classes

std::vector<BaseInfo> ClassInfo::base_classes

◆ fields

std::vector<FieldInfo> ClassInfo::fields

◆ name

std::string ClassInfo::name

◆ template_args

std::vector<std::string> ClassInfo::template_args

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