ICG 2
Electric Boogaloo
Public Member Functions | List of all members
ICGTemplateEngine::recursable Class Referenceabstract

An interface for an object that has some attributes that should be used in a list_ token, with the option to nest. More...

#include <ICGTemplateEngine.hpp>

Inheritance diagram for ICGTemplateEngine::recursable:
ClassInfo ClassInfo::BaseInfo FieldInfo STLDeclInfo TypedefInfo

Public Member Functions

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

Detailed Description

An interface for an object that has some attributes that should be used in a list_ token, with the option to nest.

Member Function Documentation

◆ nextLevel()

virtual ListTokenItems ICGTemplateEngine::recursable::nextLevel ( ) const
pure virtual

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 *>>

Implemented in TypedefInfo, STLDeclInfo, FieldInfo, ClassInfo, and ClassInfo::BaseInfo.

◆ toDictionary()

virtual Dictionary ICGTemplateEngine::recursable::toDictionary ( ) const
pure virtual

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

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

Implemented in TypedefInfo, STLDeclInfo, FieldInfo, ClassInfo, and ClassInfo::BaseInfo.

◆ toString()

virtual std::string ICGTemplateEngine::recursable::toString ( ) const
pure virtual

Get a string representation.

Returns
std::string

Implemented in TypedefInfo, STLDeclInfo, FieldInfo, ClassInfo, and ClassInfo::BaseInfo.


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