IPosition (interface)
Usage
Linkage:
-lopenxds_adt
To use the interface:
#include <openxds.adt/IPosition.h> using namespace openxds::adt;
Method Summary
Returns | Method-name | Throws |
---|---|---|
E& | getElement | |
IPosition(E)* | copy | |
bool | equals | const IPosition(E)& p |
Methods
getElement
E& getElement();
Returns
Returns element corresponding to this position.
copy
IPosition<E>* copy();
Returns
A new position instance that corresponds to the underlying node storing the element.
equals
bool equals( IPosition(E)& p );
Parameters
p, a position corresponding to the underlying node storing an element.
Returns
TRUE, if p corresponds to the same underlying node as this position; otherwise FALSE.