top | up | prev | next

ModuleDependency Class

Definition at line 88 of Module.hpp

Constructors

ModuleDependency(Module* module_)

Member Functions

void AddReferencedModule(Module* referencedModule)
void Dump(CodeFormatter& formatter)
Module* GetModule() const
const std::vector<Module*>& ReferencedModules() const

Member Variables

Module* module
std::vector<Module*> referencedModules

Constructor Details

ModuleDependency Constructor

cmajor::symbols::ModuleDependency::ModuleDependency(Module * module_)

Definition at line 211 of Module.cpp :
 211 : module(module_)
 212 {
 213 }


Declaration at line 91 of Module.hpp


Member Function Details

AddReferencedModule Member Function

void cmajor::symbols::ModuleDependency::AddReferencedModule(Module * referencedModule)

Definition at line 215 of Module.cpp :
 216 {
 217     if (std::find(referencedModules.cbegin()referencedModules.cend()referencedModule) == referencedModules.cend())
 218     {
 219         referencedModules.push_back(referencedModule);
 220     }
 221 }


Declaration at line 93 of Module.hpp

Called by: cmajor::symbols::Module::AddReferencedModule


Dump Member Function

void cmajor::symbols::ModuleDependency::Dump(CodeFormatter & formatter)

Definition at line 223 of Module.cpp

Calls: cmajor::symbols::Module::GetModuleDependency , cmajor::symbols::Module::Name , cmajor::symbols::ModuleDependency::Dump , soulng::util::CodeFormatter::DecIndent , soulng::util::CodeFormatter::IncIndent , soulng::util::CodeFormatter::WriteLine

Called by: cmajor::symbols::Module::Dump , cmajor::symbols::ModuleDependency::Dump


GetModule Member Function

Module * cmajor::symbols::ModuleDependency::GetModule() const

Definition at line 92 of Module.hpp :
 92 { return module; }


ReferencedModules Member Function

const std::vector<Module *>& cmajor::symbols::ModuleDependency::ReferencedModules() const

Definition at line 94 of Module.hpp :
 94 { return referencedModules; }


top | up | prev | next