kdevplatform/language/editor
#include <modificationrevisionset.h>
Public Member Functions | |
ModificationRevisionSet (uint index=0) | |
void | addModificationRevision (const IndexedString &url, const ModificationRevision &revision) |
void | clear () |
uint | index () const |
bool | needsUpdate () const |
bool | operator!= (const ModificationRevisionSet &rhs) const |
ModificationRevisionSet & | operator+= (const ModificationRevisionSet &rhs) |
ModificationRevisionSet & | operator-= (const ModificationRevisionSet &rhs) |
bool | operator== (const ModificationRevisionSet &rhs) const |
bool | removeModificationRevision (const IndexedString &url, const ModificationRevision &revision) |
uint | size () const |
QString | toString () const |
Static Public Member Functions | |
static void | clearCache () |
Detailed Description
This class represents a set of modification-revisions assigned to file-names.
It is safe to store this class in the disk-mapped internal duchain data structures.
Definition at line 30 of file modificationrevisionset.h.
Constructor & Destructor Documentation
◆ ModificationRevisionSet()
|
explicit |
Definition at line 152 of file modificationrevisionset.cpp.
Member Function Documentation
◆ addModificationRevision()
void KDevelop::ModificationRevisionSet::addModificationRevision | ( | const IndexedString & | url, |
const ModificationRevision & | revision | ||
) |
Definition at line 173 of file modificationrevisionset.cpp.
◆ clear()
void KDevelop::ModificationRevisionSet::clear | ( | ) |
Definition at line 162 of file modificationrevisionset.cpp.
◆ clearCache()
|
static |
- Todo:
- More intelligent clearing. We actually need to watch the directory for changes, and if there are changes, clear the cache.
Definition at line 124 of file modificationrevisionset.cpp.
◆ index()
|
inline |
Definition at line 39 of file modificationrevisionset.h.
◆ needsUpdate()
bool KDevelop::ModificationRevisionSet::needsUpdate | ( | ) | const |
Definition at line 297 of file modificationrevisionset.cpp.
◆ operator!=()
|
inline |
Definition at line 56 of file modificationrevisionset.h.
◆ operator+=()
ModificationRevisionSet & KDevelop::ModificationRevisionSet::operator+= | ( | const ModificationRevisionSet & | rhs | ) |
Definition at line 320 of file modificationrevisionset.cpp.
◆ operator-=()
ModificationRevisionSet & KDevelop::ModificationRevisionSet::operator-= | ( | const ModificationRevisionSet & | rhs | ) |
Definition at line 339 of file modificationrevisionset.cpp.
◆ operator==()
|
inline |
Definition at line 61 of file modificationrevisionset.h.
◆ removeModificationRevision()
bool KDevelop::ModificationRevisionSet::removeModificationRevision | ( | const IndexedString & | url, |
const ModificationRevision & | revision | ||
) |
Returns true if the modification-revision was contained before.
Definition at line 200 of file modificationrevisionset.cpp.
◆ size()
uint KDevelop::ModificationRevisionSet::size | ( | ) | const |
Returns the count of file dependencies in this set.
Definition at line 156 of file modificationrevisionset.cpp.
◆ toString()
QString KDevelop::ModificationRevisionSet::toString | ( | ) | const |
Definition at line 281 of file modificationrevisionset.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 23:35:17 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.