Wt examples  3.7.1
Public Member Functions | Private Attributes | List of all members
GitModel::Tree Class Reference

Used to uniquely locate a folder within the folder hierarchy. More...

Public Member Functions

 Tree (int parentId, int index, const Git::ObjectId &object, int rowCount)
 Constructor. More...
 
int parentId () const
 Returns the parent id. More...
 
int index () const
 Returns the child index within the parent folder. More...
 
const Git::ObjectIdtreeObject () const
 Returns the SHA1 id for the git tree object. More...
 
int rowCount () const
 Returns the (cached) row count. More...
 

Private Attributes

ChildIndex index_
 
Git::ObjectId treeObject_
 
int rowCount_
 

Detailed Description

Used to uniquely locate a folder within the folder hierarchy.

Definition at line 131 of file GitModel.h.

Constructor & Destructor Documentation

◆ Tree()

GitModel::Tree::Tree ( int  parentId,
int  index,
const Git::ObjectId object,
int  rowCount 
)
inline

Constructor.

Definition at line 135 of file GitModel.h.

137  : index_(parentId, index),
138  treeObject_(object),
140  { }
int index() const
Returns the child index within the parent folder.
Definition: GitModel.h:152
Git::ObjectId treeObject_
Definition: GitModel.h:164
int rowCount() const
Returns the (cached) row count.
Definition: GitModel.h:160
ChildIndex index_
Definition: GitModel.h:163
int parentId() const
Returns the parent id.
Definition: GitModel.h:146

Member Function Documentation

◆ index()

int GitModel::Tree::index ( ) const
inline

Returns the child index within the parent folder.

Index of this folder within the file list of the parent folder.

Definition at line 152 of file GitModel.h.

152 { return index_.index; }
ChildIndex index_
Definition: GitModel.h:163

◆ parentId()

int GitModel::Tree::parentId ( ) const
inline

Returns the parent id.

Index of the parent folder within the treeData_ vector.

Definition at line 146 of file GitModel.h.

146 { return index_.parentId; }
ChildIndex index_
Definition: GitModel.h:163

◆ rowCount()

int GitModel::Tree::rowCount ( ) const
inline

Returns the (cached) row count.

Definition at line 160 of file GitModel.h.

160 { return rowCount_; }

◆ treeObject()

const Git::ObjectId& GitModel::Tree::treeObject ( ) const
inline

Returns the SHA1 id for the git tree object.

Definition at line 156 of file GitModel.h.

156 { return treeObject_; }
Git::ObjectId treeObject_
Definition: GitModel.h:164

Member Data Documentation

◆ index_

ChildIndex GitModel::Tree::index_
private

Definition at line 163 of file GitModel.h.

◆ rowCount_

int GitModel::Tree::rowCount_
private

Definition at line 165 of file GitModel.h.

◆ treeObject_

Git::ObjectId GitModel::Tree::treeObject_
private

Definition at line 164 of file GitModel.h.


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

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13