#include <DependencySet.h>
Public Types | |
typedef DependencySetIterator | iterator |
Public Member Functions | |
DependencySet (const Domoid *domoid) | |
iterator | begin () const |
iterator | end () const |
const Domoid * | getCapsule () const |
unsigned | getDependentID (iterator I) const |
const DomainInstanceDecl * | getDependent (unsigned ID) const |
iterator | find (const DomainInstanceDecl *instance) const |
unsigned | size () const |
This class analyzes the given capsule and generates a dependency set.
A dependency set is the collection of all externally referenced domain instances which a capsule references. Moreover, the set is ordered such that earlier instances do not depend on those which follow. Each instance is associated with a zero-based ID which can be used to index the set and test the ordering relation.
The information generated by this class is used by the runtime to build constructor functions (such functions need to elaborate the required domain instances in the order provided by dependency sets.).
Definition at line 90 of file DependencySet.h.
Definition at line 100 of file DependencySet.h.
comma::DependencySet::DependencySet | ( | const Domoid * | domoid | ) | [inline] |
Definition at line 98 of file DependencySet.h.
iterator comma::DependencySet::begin | ( | ) | const [inline] |
Definition at line 101 of file DependencySet.h.
iterator comma::DependencySet::end | ( | ) | const [inline] |
Definition at line 102 of file DependencySet.h.
DependencySet::iterator DependencySet::find | ( | const DomainInstanceDecl * | instance | ) | const |
Definition at line 303 of file DependencySet.cpp.
const Domoid* comma::DependencySet::getCapsule | ( | ) | const [inline] |
Definition at line 105 of file DependencySet.h.
const DomainInstanceDecl* comma::DependencySet::getDependent | ( | unsigned | ID | ) | const [inline] |
Definition at line 111 of file DependencySet.h.
unsigned comma::DependencySet::getDependentID | ( | iterator | I | ) | const [inline] |
Definition at line 107 of file DependencySet.h.
unsigned comma::DependencySet::size | ( | ) | const [inline] |
Definition at line 117 of file DependencySet.h.