ICF 3.0.5.47
Technical documentation of ICF Libraries
istd::IChangeable::ChangeSet Class Reference

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

#include <IChangeable.h>

Collaboration diagram for istd::IChangeable::ChangeSet:

Public Member Functions

 ChangeSet ()
 
 ChangeSet (const ChangeSet &changeSet)
 
 ChangeSet (ChangeSet &&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.
 
bool IsEmpty () const
 Check if there is any change in the set.
 
bool Contains (int changeId) const
 Check if there is specific change flag in the set.
 
bool ContainsExplicit (int changeId, bool singleOnly=false) const
 Check if there is specific change flag in the set explicit set by user.
 
bool ContainsAny (const ChangeSet &changeSet) const
 Check if any of IDs is changed.
 
void MaskOut (const ChangeSet &changeSet)
 Remove the IDs from the second set.
 
const QString & GetDescription () const
 Get textual description of this change set.
 
QSet< int > GetIds () const
 Get set of all stored IDs.
 
ChangeSetoperator= (const ChangeSet &changeSet)
 
ChangeSetoperator= (ChangeSet &&changeSet)
 
ChangeSetoperator+= (int changeId)
 Add some change flag.
 
ChangeSetoperator+= (const ChangeSet &changeSet)
 Add some change set.
 

Detailed Description

Set of change flags (its IDs).

Definition at line 37 of file IChangeable.h.

Constructor & Destructor Documentation

◆ ChangeSet() [1/14]

istd::IChangeable::ChangeSet::ChangeSet ( )

◆ ChangeSet() [2/14]

istd::IChangeable::ChangeSet::ChangeSet ( const ChangeSet & changeSet)

◆ ChangeSet() [3/14]

istd::IChangeable::ChangeSet::ChangeSet ( ChangeSet && changeSet)

◆ ChangeSet() [4/14]

istd::IChangeable::ChangeSet::ChangeSet ( const QString & description)
explicit

◆ ChangeSet() [5/14]

istd::IChangeable::ChangeSet::ChangeSet ( int id1,
const QString & description = "" )
explicit

◆ ChangeSet() [6/14]

istd::IChangeable::ChangeSet::ChangeSet ( int id1,
int id2,
const QString & description = "" )

◆ ChangeSet() [7/14]

istd::IChangeable::ChangeSet::ChangeSet ( int id1,
int id2,
int id3,
const QString & description = "" )

◆ ChangeSet() [8/14]

istd::IChangeable::ChangeSet::ChangeSet ( int id1,
int id2,
int id3,
int id4,
const QString & description = "" )

◆ ChangeSet() [9/14]

istd::IChangeable::ChangeSet::ChangeSet ( int id1,
int id2,
int id3,
int id4,
int id5,
const QString & description = "" )

◆ ChangeSet() [10/14]

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

◆ ChangeSet() [11/14]

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

◆ ChangeSet() [12/14]

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

◆ ChangeSet() [13/14]

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 = "" )

◆ ChangeSet() [14/14]

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

◆ Contains()

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

◆ ContainsAny()

bool istd::IChangeable::ChangeSet::ContainsAny ( const ChangeSet & changeSet) const

Check if any of IDs is changed.

◆ ContainsExplicit()

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 icmpstr::TObjectShapeBase< GraphicsItemClass, ObjectClass >::AfterModelChange(), iinspgui::TCommonSupplierGuiCompBase< UI >::AfterModelChange(), and istdgui::TGuiObserverWrap< Gui, Observer >::AfterModelChange().

◆ GetDescription()

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

Get textual description of this change set.

◆ GetIds()

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.

◆ IsEmpty()

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

Check if there is any change in the set.

◆ MaskOut()

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

Remove the IDs from the second set.

◆ operator+=() [1/2]

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

Add some change set.

◆ operator+=() [2/2]

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

Add some change flag.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Reset()

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

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

© Witold Gantzke and Kirill Lepskiy