GitModel::Tree Class Reference

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

List of all members.

Public Member Functions

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

Private Attributes

ChildIndex index_
Git::ObjectId treeObject_


Detailed Description

Used to uniquely locate a folder within the folder hierarchy.

Definition at line 130 of file GitModel.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 134 of file GitModel.h.

00135       : index_(parentId, index),
00136         treeObject_(object)
00137     { }


Member Function Documentation

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

Returns the parent id.

Index of the parent folder within the treeData_ vector.

Definition at line 143 of file GitModel.h.

00143 { return index_.parentId; }

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

00149 { return index_.index; }

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

Returns the SHA1 id for the git tree object.

Definition at line 153 of file GitModel.h.

00153 { return treeObject_; }


Member Data Documentation

Definition at line 156 of file GitModel.h.

Definition at line 157 of file GitModel.h.


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

Generated on Mon Jan 26 14:14:22 2009 for Wt by doxygen 1.5.6