Wt examples  4.0.0
Public Member Functions | Public Attributes | List of all members
GitModel::ChildIndex Class Reference

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

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 114 of file GitModel.h.

Constructor & Destructor Documentation

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

Definition at line 118 of file GitModel.h.

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

Member Function Documentation

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

Definition at line 121 of file GitModel.h.

121  {
122  if (parentId < other.parentId)
123  return true;
124  else if (parentId > other.parentId)
125  return false;
126  else return index < other.index;
127  }

Member Data Documentation

int GitModel::ChildIndex::index

Definition at line 116 of file GitModel.h.

int GitModel::ChildIndex::parentId

Definition at line 115 of file GitModel.h.


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

Generated on Mon Sep 4 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11