Public Member Functions | List of all members
istd::IChangeable::ChangeSet Class Reference

Set of change flags (its IDs). More...

#include <IChangeable.h>

Public Member Functions

 ChangeSet ()
 
 ChangeSet (const QString &description)
 
 ChangeSet (int id1, const QString &description="")
 
 ChangeSet (int id1, int id2, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, int id6, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, int id6, int id7, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, int id6, int id7, int id8, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, int id6, int id7, int id8, int id9, const QString &description="")
 
 ChangeSet (int id1, int id2, int id3, int id4, int id5, int id6, int id7, int id8, int id9, int id10, const QString &description="")
 
void Reset ()
 Remove all IDs. More...
 
bool IsEmpty () const
 Check if there is any change in the set. More...
 
bool Contains (int changeId) const
 Check if there is specific change flag in the set. More...
 
bool ContainsExplicit (int changeId, bool singleOnly=false) const
 Check if there is specific change flag in the set explicit set by user. More...
 
bool ContainsAny (const ChangeSet &changeSet) const
 Check if any of IDs is changed. More...
 
void MaskOut (const ChangeSet &changeSet)
 Remove the IDs from the second set. More...
 
const QString & GetDescription () const
 Get textual description of this change set. More...
 
QSet< int > GetIds () const
 Get set of all stored IDs. More...
 
ChangeSet operator+ (const ChangeSet &changeSet) const
 Get the union of two change sets. More...
 
ChangeSetoperator+= (int changeId)
 Add some change flag. More...
 
ChangeSetoperator+= (const ChangeSet &changeSet)
 Add some change set. More...
 

Detailed Description

Set of change flags (its IDs).

Definition at line 30 of file IChangeable.h.

Constructor & Destructor Documentation

istd::IChangeable::ChangeSet::ChangeSet ( )
istd::IChangeable::ChangeSet::ChangeSet ( const QString &  description)
explicit
istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
const QString &  description = "" 
)
explicit
istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
const QString &  description = "" 
)
istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
const QString &  description = "" 
)
istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
const QString &  description = "" 
)
istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
const QString &  description = "" 
)
istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
int  id6,
const QString &  description = "" 
)
istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
int  id6,
int  id7,
const QString &  description = "" 
)
istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
int  id6,
int  id7,
int  id8,
const QString &  description = "" 
)
istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
int  id6,
int  id7,
int  id8,
int  id9,
const QString &  description = "" 
)
istd::IChangeable::ChangeSet::ChangeSet ( int  id1,
int  id2,
int  id3,
int  id4,
int  id5,
int  id6,
int  id7,
int  id8,
int  id9,
int  id10,
const QString &  description = "" 
)

Member Function Documentation

bool istd::IChangeable::ChangeSet::Contains ( int  changeId) const
bool istd::IChangeable::ChangeSet::ContainsAny ( const ChangeSet changeSet) const

Check if any of IDs is changed.

bool istd::IChangeable::ChangeSet::ContainsExplicit ( int  changeId,
bool  singleOnly = false 
) const

Check if there is specific change flag in the set explicit set by user.

There are some control flags, used to indicate that all changes were done. The functionality of this flags will be omitted by this check.

Parameters
changeIdID of requested change.
singleOnlyif it is true, than this function return tru only if the set contains only requested change and nothing more.

Referenced by iqtgui::TGuiObserverWrap< Gui, Observer >::AfterUpdate().

const QString& istd::IChangeable::ChangeSet::GetDescription ( ) const

Get textual description of this change set.

QSet<int> istd::IChangeable::ChangeSet::GetIds ( ) const

Get set of all stored IDs.

Please note, that there are some special IDs changing interpretation of this set. It will be exported in raw form.

bool istd::IChangeable::ChangeSet::IsEmpty ( ) const

Check if there is any change in the set.

void istd::IChangeable::ChangeSet::MaskOut ( const ChangeSet changeSet)

Remove the IDs from the second set.

ChangeSet istd::IChangeable::ChangeSet::operator+ ( const ChangeSet changeSet) const

Get the union of two change sets.

ChangeSet& istd::IChangeable::ChangeSet::operator+= ( int  changeId)

Add some change flag.

ChangeSet& istd::IChangeable::ChangeSet::operator+= ( const ChangeSet changeSet)

Add some change set.

void istd::IChangeable::ChangeSet::Reset ( )

Remove all IDs.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy