Public Member Functions | List of all members

Help class which provides the group of changes for update mechanism of the model. More...

#include <CChangeGroup.h>

Public Member Functions

 CChangeGroup (IChangeable *changeablePtr, const IChangeable::ChangeSet *changeSetPtr=&IChangeable::GetNoChanges())
 Constructs the group. More...
 
 ~CChangeGroup ()
 
bool IsValid () const
 Check if this pointer is valid. More...
 
void Reset ()
 Call update on attached object and detach it. More...
 

Detailed Description

Help class which provides the group of changes for update mechanism of the model.

Note
It should not be overriden.

Definition at line 21 of file CChangeGroup.h.

Constructor & Destructor Documentation

istd::CChangeGroup::CChangeGroup ( IChangeable changeablePtr,
const IChangeable::ChangeSet changeSetPtr = &IChangeable::GetNoChanges() 
)
inlineexplicit

Constructs the group.

Parameters
changeablePtrYour object prepared to change. If it is NULL, nothing will be done.
changeSetPtrPointer to set of change flags (its IDs). It cannot be NULL.

Definition at line 53 of file CChangeGroup.h.

References istd::IChangeable::BeginChangeGroup(), and NULL.

istd::CChangeGroup::~CChangeGroup ( )
inline

Definition at line 65 of file CChangeGroup.h.

References istd::IChangeable::EndChangeGroup(), and NULL.

Member Function Documentation

bool istd::CChangeGroup::IsValid ( ) const

Check if this pointer is valid.

It will be invalid after Reset() and Abort() only.

void istd::CChangeGroup::Reset ( )

Call update on attached object and detach it.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy