Alf::MulDataPath Class Reference

class Alf::MulDataPath

MulDataPath represent hierarchy in data model. It stores index of node for each depth.

Public Member Functions
MulDataPath()
MulDataPath(int)
MulDataPath(int, int)
MulDataPath(const MulDataPath &)
~MulDataPath()
OSN_IMPORT voidAppend(int)
OSN_IMPORT intDepth()
intIndex()
boolIsEqual(const MulDataPath &)
voidSetIndex(int)
booloperator<(MulDataPath &)
voidoperator=(MulDataPath)
booloperator==(const MulDataPath &)
OSN_IMPORT intoperator[](int)
Private Attributes
std::auto_ptr< MulDataPathImpl >mData

Constructor & Destructor Documentation

MulDataPath()

OSN_IMPORTMulDataPath()

Default constructor

By default path will point to root node.

MulDataPath(int)

OSN_IMPORTMulDataPath(intaIndexForDepth1)

Constrctor will create path with depth 1 and store specified index at depth1

Parameters

int aIndexForDepth1Index of node at depth 1

MulDataPath(int, int)

OSN_IMPORTMulDataPath(intaIndexForDepth1,
intaIndexForDepth2
)

Constrctor will create path with depth 2 and store specified index at depth 1 and depth 2

Parameters

int aIndexForDepth1Index of node at depth 1
int aIndexForDepth2Index of node at depth 2

MulDataPath(const MulDataPath &)

OSN_IMPORTMulDataPath(const MulDataPath &aPath)

Copy constructor

Parameters

const MulDataPath & aPathExisting path object

~MulDataPath()

OSN_IMPORT~MulDataPath()

Destructor

Member Functions Documentation

Append(int)

OSN_IMPORT voidAppend(intaIndex)

Create new depth and add specified index at created depth.

Parameters

int aIndexposition of node at current depth

Depth()

OSN_IMPORT intDepth()const

Depth of path

Index()

intIndex()const

return position in current depth. For internal use only

IsEqual(const MulDataPath &)

boolIsEqual(const MulDataPath &aPath)

Check whather both path are equal or not,For internal use only

Parameters

const MulDataPath & aPathPath object to compare with

SetIndex(int)

voidSetIndex(intaIndex)

Set internal position in current depth

Parameters

int aIndexposition in current depth

operator<(MulDataPath &)

booloperator<(MulDataPath &aPath)

Comparisition operator for Path. Comapre that path is less that other path or not

Parameters

MulDataPath & aPathpath to wich current path need to be compared

operator=(MulDataPath)

voidoperator=(MulDataPathaPath)

Assignment operator

Parameters

MulDataPath aPathExisting path

operator==(const MulDataPath &)

booloperator==(const MulDataPath &aPath)

Check whather both path are equal or not,

Parameters

const MulDataPath & aPathPath object to compare with

operator[](int)

OSN_IMPORT intoperator[](intaDepth)const

Return position/index of node at given depth

Parameters

int aDepthDepth of path

Member Data Documentation

std::auto_ptr< MulDataPathImpl > mData

std::auto_ptr< MulDataPathImpl >mData[private]