#include <CodeGenCapsule.h>
Public Member Functions | |
CodeGenCapsule (CodeGen &CG, Domoid *domoid) | |
CodeGen & | getCodeGen () |
Returns the CodeGen object giving context to this generator. | |
const CodeGen & | getCodeGen () const |
Domoid * | getCapsule () |
Returns the capsule underlying this code generator. | |
const Domoid * | getCapsule () const |
const std::string & | getLinkName () const |
Returns the link (mangled) name of the capsule. | |
unsigned | addCapsuleDependency (DomainInstanceDecl *instance) |
unsigned | dependencyCount () const |
Returns the number of capsule dependencies registered. | |
DomainInstanceDecl * | getDependency (unsigned ID) |
Returns the instance with the given ID. | |
unsigned | getDependencyID (DomainInstanceDecl *instance) |
Definition at line 19 of file CodeGenCapsule.h.
Definition at line 20 of file CodeGenCapsule.cpp.
unsigned CodeGenCapsule::addCapsuleDependency | ( | DomainInstanceDecl * | instance | ) |
Notifies this code generator that the underlying capsule relys on the given domain instance. Returns a unique ID > 0 representing the instance.
Definition at line 55 of file CodeGenCapsule.cpp.
unsigned comma::CodeGenCapsule::dependencyCount | ( | ) | const [inline] |
Returns the number of capsule dependencies registered.
Definition at line 44 of file CodeGenCapsule.h.
const Domoid* comma::CodeGenCapsule::getCapsule | ( | ) | const [inline] |
Definition at line 33 of file CodeGenCapsule.h.
Domoid* comma::CodeGenCapsule::getCapsule | ( | ) | [inline] |
const CodeGen& comma::CodeGenCapsule::getCodeGen | ( | ) | const [inline] |
Definition at line 29 of file CodeGenCapsule.h.
CodeGen& comma::CodeGenCapsule::getCodeGen | ( | ) | [inline] |
Returns the CodeGen object giving context to this generator.
Definition at line 28 of file CodeGenCapsule.h.
DomainInstanceDecl* comma::CodeGenCapsule::getDependency | ( | unsigned | ID | ) | [inline] |
unsigned comma::CodeGenCapsule::getDependencyID | ( | DomainInstanceDecl * | instance | ) | [inline] |
Returns the ID of the given instance if present in the dependency set, else 0.
Definition at line 53 of file CodeGenCapsule.h.
const std::string& comma::CodeGenCapsule::getLinkName | ( | ) | const [inline] |