• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/language/editor

  • KDevelop
  • ModificationRevisionSet
Public Member Functions | Static Public Member Functions | List of all members
KDevelop::ModificationRevisionSet Class Reference

#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()

KDevelop::ModificationRevisionSet::ModificationRevisionSet ( uint  index = 0)
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()

void KDevelop::ModificationRevisionSet::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()

uint KDevelop::ModificationRevisionSet::index ( ) const
inline

Definition at line 39 of file modificationrevisionset.h.

◆ needsUpdate()

bool KDevelop::ModificationRevisionSet::needsUpdate ( ) const

Definition at line 297 of file modificationrevisionset.cpp.

◆ operator!=()

bool KDevelop::ModificationRevisionSet::operator!= ( const ModificationRevisionSet &  rhs) const
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==()

bool KDevelop::ModificationRevisionSet::operator== ( const ModificationRevisionSet &  rhs) const
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:
  • modificationrevisionset.h
  • modificationrevisionset.cpp
This file is part of the KDE documentation.
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.

kdevplatform/language/editor

Skip menu "kdevplatform/language/editor"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal