#include <lanes.h>
Public Member Functions | |
| Lanes () | |
| bool | isEmpty () |
| void | init (const QString &expectedSha) |
| void | clear () |
| bool | isFork (const QString &sha, bool &isDiscontinuity) |
| void | setBoundary (bool isBoundary) |
| void | setFork (const QString &sha) |
| void | setMerge (const QStringList &parents) |
| void | setInitial () |
| void | setApplied () |
| void | changeActiveLane (const QString &sha) |
| void | afterMerge () |
| void | afterFork () |
| bool | isBranch () |
| void | afterBranch () |
| void | afterApplied () |
| void | nextParent (const QString &sha) |
| void | getLanes (QValueVector< int > &ln) |
Private Member Functions | |
| int | findNextSha (const QString &next, int pos) |
| int | findType (int type, int pos) |
| int | add (int type, const QString &next, int pos) |
Private Attributes | |
| int | activeLane |
| QValueVector< int > | typeVec |
| QValueVector< QString > | nextShaVec |
| bool | boundary |
| int | NODE |
| int | NODE_L |
| int | NODE_R |
Definition at line 14 of file lanes.h.
| bool isEmpty | ( | ) | [inline] |
| void init | ( | const QString & | expectedSha | ) |
| void clear | ( | ) |
Definition at line 24 of file lanes.cpp.
Referenced by FileHistory::clear(), init(), and Git::init().
| bool isFork | ( | const QString & | sha, | |
| bool & | isDiscontinuity | |||
| ) |
| void setBoundary | ( | bool | isBoundary | ) |
| void setFork | ( | const QString & | sha | ) |
| void setMerge | ( | const QStringList & | parents | ) |
| void setInitial | ( | ) |
| void setApplied | ( | ) |
| void changeActiveLane | ( | const QString & | sha | ) |
| void afterMerge | ( | ) |
| void afterFork | ( | ) |
| bool isBranch | ( | ) |
| void afterBranch | ( | ) |
| void afterApplied | ( | ) |
| void nextParent | ( | const QString & | sha | ) |
| void getLanes | ( | QValueVector< int > & | ln | ) | [inline] |
| int findNextSha | ( | const QString & | next, | |
| int | pos | |||
| ) | [private] |
Definition at line 262 of file lanes.cpp.
Referenced by changeActiveLane(), isFork(), setFork(), and setMerge().
| int findType | ( | int | type, | |
| int | pos | |||
| ) | [private] |
| int add | ( | int | type, | |
| const QString & | next, | |||
| int | pos | |||
| ) | [private] |
int activeLane [private] |
Definition at line 40 of file lanes.h.
Referenced by afterApplied(), afterBranch(), changeActiveLane(), init(), isBranch(), isFork(), nextParent(), setApplied(), setBoundary(), setFork(), setInitial(), and setMerge().
QValueVector<int> typeVec [private] |
Definition at line 41 of file lanes.h.
Referenced by add(), afterApplied(), afterBranch(), afterFork(), afterMerge(), changeActiveLane(), clear(), findType(), getLanes(), isBranch(), isEmpty(), setApplied(), setBoundary(), setFork(), setInitial(), and setMerge().
QValueVector<QString> nextShaVec [private] |
Definition at line 42 of file lanes.h.
Referenced by add(), afterFork(), clear(), findNextSha(), and nextParent().
bool boundary [private] |
Definition at line 43 of file lanes.h.
Referenced by afterFork(), afterMerge(), nextParent(), setBoundary(), setInitial(), and setMerge().
int NODE [private] |
int NODE_L [private] |
int NODE_R [private] |
1.5.3