Envision
A visual programming IDE for object-oriented languages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
FilePersistence::History Class Reference

Classes

struct  CommitTime
 

Public Member Functions

 History (QString relativePath, Model::NodeIdType rootNodeId, const CommitGraph *historyGraph, const GitRepository *repository)
 
QSet< QString > relevantCommits () const
 
QList< QString > relevantCommitsByTime (const GitRepository *repository, bool reverse=true) const
 

Private Member Functions

void detectRelevantCommits (const CommitGraphItem *current, QSet< const CommitGraphItem * > visited, QString relativePathRootNode, QSet< Model::NodeIdType > trackedIDs, const GitRepository *repository)
 
QString findRootPath (QString revision, QString currentPath, const Diff *diff, GenericTree *tree, const GitRepository *repository)
 
QSet< Model::NodeIdTypetrackSubtree (QString revision, QString relativePath, GenericTree *tree, const GitRepository *repository) const
 

Private Attributes

const CommitGraphhistoryGraph_ {}
 
QSet< QString > relevantCommits_
 
Model::NodeIdType rootNodeId_
 

Constructor & Destructor Documentation

◆ History()

FilePersistence::History::History ( QString  relativePath,
Model::NodeIdType  rootNodeId,
const CommitGraph historyGraph,
const GitRepository repository 
)

Member Function Documentation

◆ detectRelevantCommits()

void FilePersistence::History::detectRelevantCommits ( const CommitGraphItem current,
QSet< const CommitGraphItem * >  visited,
QString  relativePathRootNode,
QSet< Model::NodeIdType trackedIDs,
const GitRepository repository 
)
private

◆ findRootPath()

QString FilePersistence::History::findRootPath ( QString  revision,
QString  currentPath,
const Diff diff,
GenericTree tree,
const GitRepository repository 
)
private

◆ relevantCommits()

QSet< QString > FilePersistence::History::relevantCommits ( ) const
inline

◆ relevantCommitsByTime()

QList< QString > FilePersistence::History::relevantCommitsByTime ( const GitRepository repository,
bool  reverse = true 
) const

◆ trackSubtree()

QSet< Model::NodeIdType > FilePersistence::History::trackSubtree ( QString  revision,
QString  relativePath,
GenericTree tree,
const GitRepository repository 
) const
private

Member Data Documentation

◆ historyGraph_

const CommitGraph* FilePersistence::History::historyGraph_ {}
private

◆ relevantCommits_

QSet<QString> FilePersistence::History::relevantCommits_
private

◆ rootNodeId_

Model::NodeIdType FilePersistence::History::rootNodeId_
private