GitModel::ChildIndex Class Reference

Index usable as a key to a map, that identifies a child/row within a tree. More...

List of all members.

Public Member Functions

 ChildIndex (int aParent, int anIndex)
bool operator< (const ChildIndex &other) const

Public Attributes

int parentId
int index


Detailed Description

Index usable as a key to a map, that identifies a child/row within a tree.

Definition at line 112 of file GitModel.h.


Constructor & Destructor Documentation

GitModel::ChildIndex::ChildIndex ( int  aParent,
int  anIndex 
) [inline]

Definition at line 116 of file GitModel.h.

00117       : parentId(aParent), index(anIndex) { }


Member Function Documentation

bool GitModel::ChildIndex::operator< ( const ChildIndex other  )  const [inline]

Definition at line 119 of file GitModel.h.

00119                                                    {
00120       if (parentId < other.parentId)
00121         return true;
00122       else if (parentId > other.parentId)
00123         return false;
00124       else return index < other.index;
00125     }


Member Data Documentation

Definition at line 113 of file GitModel.h.

Definition at line 114 of file GitModel.h.


The documentation for this class was generated from the following file:

Generated on Fri Mar 26 17:12:12 2010 for Wt by doxygen 1.5.6