PC::Marking Class Reference
#include <PowerCircuit.h>
List of all members.
Detailed Description
Wrapper class for markings in power circuits. In reality, markings are handled by (derivatives of) the class PowerCircuit. This class is used to make handling of markings type-safe. It contains only a pointer to the corresponding power circuit and an integer id, which is -1 if the marking has not (yet) been set. If any more data is needed for a marking, the power circuit class has to hold it itself. The methods call similarly-named methods of PowerCircuit.
Markings work like references to the respective internal representations. Thus the assignment operator does not create a copy of a marking. However all arithmetic operations create new markings, so the old ones can be maintained. Therefore a marking (i.e. the handle of a internal representation) only changes its value through the assignment operator and when calling the connect() or connectInv() methods of PowerCircuit.
It is also not necessary (and not possible) to delete markings (in the PowerCircuitGraph class, once there is no marking pointing onto an internal marking, its memory is automatically deallocated).
Definition at line 132 of file PowerCircuit.h.
Constructor & Destructor Documentation
PC::Marking::Marking |
( |
|
) |
[inline] |
PC::Marking::Marking |
( |
const Marking & |
m |
) |
|
PC::Marking::~Marking |
( |
|
) |
|
Member Function Documentation
Node PC::Marking::getIncidentNode |
( |
|
) |
|
std::list<Node> PC::Marking::getNodes |
( |
|
) |
|
int PC::Marking::getSign |
( |
Node |
n |
) |
|
Node PC::Marking::getSmallestNode |
( |
|
) |
|
bool PC::Marking::isDefined |
( |
|
) |
|
bool PC::Marking::isReduced |
( |
|
) |
|
bool PC::Marking::isSuccessorMarking |
( |
|
) |
|
bool PC::Marking::operator!= |
( |
const Marking & |
m |
) |
|
Marking PC::Marking::operator++ |
( |
int |
dummy |
) |
|
bool PC::Marking::operator< |
( |
const Marking & |
m |
) |
|
bool PC::Marking::operator<= |
( |
const Marking & |
m |
) |
|
bool PC::Marking::operator== |
( |
const Marking & |
m |
) |
|
bool PC::Marking::operator> |
( |
const Marking & |
m |
) |
|
bool PC::Marking::operator>= |
( |
const Marking & |
m |
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: