Lanes Class Reference

#include <lanes.h>

List of all members.

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


Detailed Description

Definition at line 14 of file lanes.h.


Constructor & Destructor Documentation

Lanes (  )  [inline]

Definition at line 16 of file lanes.h.


Member Function Documentation

bool isEmpty (  )  [inline]

Definition at line 17 of file lanes.h.

Referenced by Git::updateLanes().

void init ( const QString &  expectedSha  ) 

Definition at line 16 of file lanes.cpp.

Referenced by Git::updateLanes().

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 
)

Definition at line 42 of file lanes.cpp.

Referenced by Git::updateLanes().

void setBoundary ( bool  isBoundary  ) 

Definition at line 30 of file lanes.cpp.

Referenced by init(), and Git::updateLanes().

void setFork ( const QString &  sha  ) 

Definition at line 62 of file lanes.cpp.

Referenced by Git::updateLanes().

void setMerge ( const QStringList &  parents  ) 

Definition at line 101 of file lanes.cpp.

Referenced by Git::updateLanes().

void setInitial (  ) 

Definition at line 171 of file lanes.cpp.

Referenced by Git::updateLanes().

void setApplied (  ) 

Definition at line 178 of file lanes.cpp.

Referenced by Git::updateLanes().

void changeActiveLane ( const QString &  sha  ) 

Definition at line 184 of file lanes.cpp.

Referenced by Git::updateLanes().

void afterMerge (  ) 

Definition at line 201 of file lanes.cpp.

Referenced by Git::updateLanes().

void afterFork (  ) 

Definition at line 221 of file lanes.cpp.

Referenced by Git::updateLanes().

bool isBranch (  ) 

Definition at line 242 of file lanes.cpp.

Referenced by Git::updateLanes().

void afterBranch (  ) 

Definition at line 247 of file lanes.cpp.

Referenced by Git::updateLanes().

void afterApplied (  ) 

Definition at line 252 of file lanes.cpp.

Referenced by Git::updateLanes().

void nextParent ( const QString &  sha  ) 

Definition at line 257 of file lanes.cpp.

Referenced by Git::updateLanes().

void getLanes ( QValueVector< int > &  ln  )  [inline]

Definition at line 33 of file lanes.h.

Referenced by Git::updateLanes().

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]

Definition at line 270 of file lanes.cpp.

Referenced by add().

int add ( int  type,
const QString &  next,
int  pos 
) [private]

Definition at line 278 of file lanes.cpp.


Member Data Documentation

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]

Definition at line 44 of file lanes.h.

Referenced by setBoundary(), setFork(), and setMerge().

int NODE_L [private]

Definition at line 44 of file lanes.h.

Referenced by setBoundary(), setFork(), and setMerge().

int NODE_R [private]

Definition at line 44 of file lanes.h.

Referenced by setBoundary(), setFork(), and setMerge().


The documentation for this class was generated from the following files:
Generated on Fri Dec 7 21:57:40 2007 for QGit by  doxygen 1.5.3