comma::CodeGenCapsule Class Reference

#include <CodeGenCapsule.h>

Collaboration diagram for comma::CodeGenCapsule:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CodeGenCapsule (CodeGen &CG, Domoid *domoid)
CodeGengetCodeGen ()
 Returns the CodeGen object giving context to this generator.
const CodeGengetCodeGen () const
DomoidgetCapsule ()
 Returns the capsule underlying this code generator.
const DomoidgetCapsule () 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.
DomainInstanceDeclgetDependency (unsigned ID)
 Returns the instance with the given ID.
unsigned getDependencyID (DomainInstanceDecl *instance)


Detailed Description

Definition at line 19 of file CodeGenCapsule.h.


Constructor & Destructor Documentation

CodeGenCapsule::CodeGenCapsule ( CodeGen CG,
Domoid domoid 
)

Definition at line 20 of file CodeGenCapsule.cpp.


Member Function Documentation

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]

Returns the capsule underlying this code generator.

Definition at line 32 of file CodeGenCapsule.h.

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]

Returns the instance with the given ID.

Definition at line 47 of file CodeGenCapsule.h.

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]

Returns the link (mangled) name of the capsule.

Definition at line 36 of file CodeGenCapsule.h.


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

Generated on Sun Aug 16 02:46:25 2009 for Comma by  doxygen 1.5.8