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::ObjectId & | treeObject () const |
Returns the SHA1 id for the git tree object. | |
Private Attributes | |
ChildIndex | index_ |
Git::ObjectId | treeObject_ |
Definition at line 131 of file GitModel.h.
GitModel::Tree::Tree | ( | int | parentId, | |
int | index, | |||
const Git::ObjectId & | object | |||
) | [inline] |
Constructor.
Definition at line 135 of file GitModel.h.
00136 : index_(parentId, index), 00137 treeObject_(object) 00138 { }
int GitModel::Tree::parentId | ( | ) | const [inline] |
Returns the parent id.
Index of the parent folder within the treeData_ vector.
Definition at line 144 of file GitModel.h.
00144 { 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 150 of file GitModel.h.
00150 { return index_.index; }
const Git::ObjectId& GitModel::Tree::treeObject | ( | ) | const [inline] |
Returns the SHA1 id for the git tree object.
Definition at line 154 of file GitModel.h.
00154 { return treeObject_; }
ChildIndex GitModel::Tree::index_ [private] |
Definition at line 157 of file GitModel.h.
Git::ObjectId GitModel::Tree::treeObject_ [private] |
Definition at line 158 of file GitModel.h.