top | up | prev | next

MDStruct Class

Definition at line 78 of Metadata.hpp

Constructors

MDStruct(int id_)

Member Functions

void AddItem(const std::string& fieldName, MDItem* item)
int Id() const
void Write(CodeFormatter& formatter)
void WriteDefinition(CodeFormatter& formatter)

Member Variables

int id
std::vector<std::pair<std::string, MDItem*>> items

Constructor Details

MDStruct Constructor

cmsxi::MDStruct::MDStruct(int id_)

Definition at line 65 of Metadata.cpp :
 65 : MDItem(MDItemKind::struct_)id(id_)
 66 {
 67 }


Declaration at line 81 of Metadata.hpp


Member Function Details

AddItem Member Function

void cmsxi::MDStruct::AddItem(const std::string& fieldName, MDItem * item)

Definition at line 95 of Metadata.cpp :
 96 {
 97     items.push_back(std::make_pair(fieldNameitem));
 98 }


Declaration at line 84 of Metadata.hpp

Called by: cmsxi::Context::AddLineInfo , cmsxi::Context::AddMDStructItem , cmsxi::Context::GetMDStructRefForSourceFile


Id Member Function

int cmsxi::MDStruct::Id() const

Definition at line 85 of Metadata.hpp :
 85 { return id; }

Called by: cmsxi::Context::AddLineInfo , cmsxi::Context::GetMDStructRefForSourceFile


Write Member Function

void cmsxi::MDStruct::Write(CodeFormatter& formatter)

Definition at line 69 of Metadata.cpp :
 70 {
 71     formatter.Write("!" + std::to_string(id));
 72 }


Calls: cmsxi::MDStruct::Write

Called by: cmsxi::MDStruct::Write , cmsxi::MDStruct::WriteDefinition


WriteDefinition Member Function

void cmsxi::MDStruct::WriteDefinition(CodeFormatter& formatter)

Definition at line 74 of Metadata.cpp

Calls: cmsxi::MDStruct::Write


top | up | prev | next