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 void Append (int)
OSN_IMPORT int Depth ()
int Index ()
bool IsEqual (const MulDataPath &)
void SetIndex (int)
bool operator< ( MulDataPath &)
void operator= ( MulDataPath )
bool operator== (const MulDataPath &)
OSN_IMPORT int operator[] (int)
Private Attributes
std::auto_ptr< MulDataPathImpl > mData

Constructor & Destructor Documentation

MulDataPath()

OSN_IMPORT MulDataPath ( )

Default constructor

By default path will point to root node.

MulDataPath(int)

OSN_IMPORT MulDataPath ( int aIndexForDepth1 )

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

Parameters

int aIndexForDepth1 Index of node at depth 1

MulDataPath(int, int)

OSN_IMPORT MulDataPath ( int aIndexForDepth1,
int aIndexForDepth2
)

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

Parameters

int aIndexForDepth1 Index of node at depth 1
int aIndexForDepth2 Index of node at depth 2

MulDataPath(const MulDataPath &)

OSN_IMPORT MulDataPath ( const MulDataPath & aPath )

Copy constructor

Parameters

const MulDataPath & aPath Existing path object

~MulDataPath()

OSN_IMPORT ~MulDataPath ( )

Destructor

Member Functions Documentation

Append(int)

OSN_IMPORT void Append ( int aIndex )

Create new depth and add specified index at created depth.

Parameters

int aIndex position of node at current depth

Depth()

OSN_IMPORT int Depth ( ) const

Depth of path

Index()

int Index ( ) const

return position in current depth. For internal use only

IsEqual(const MulDataPath &)

bool IsEqual ( const MulDataPath & aPath )

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

Parameters

const MulDataPath & aPath Path object to compare with

SetIndex(int)

void SetIndex ( int aIndex )

Set internal position in current depth

Parameters

int aIndex position in current depth

operator<(MulDataPath &)

bool operator< ( MulDataPath & aPath )

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

Parameters

MulDataPath & aPath path to wich current path need to be compared

operator=(MulDataPath)

void operator= ( MulDataPath aPath )

Assignment operator

Parameters

MulDataPath aPath Existing path

operator==(const MulDataPath &)

bool operator== ( const MulDataPath & aPath )

Check whather both path are equal or not,

Parameters

const MulDataPath & aPath Path object to compare with

operator[](int)

OSN_IMPORT int operator[] ( int aDepth ) const

Return position/index of node at given depth

Parameters

int aDepth Depth of path

Member Data Documentation

std::auto_ptr< MulDataPathImpl > mData

std::auto_ptr< MulDataPathImpl > mData [private]