![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
#include <CPointGrid.h>
Public Types | |
typedef istd::TArray< i2d::CVector2d, 2 > | BaseClass |
typedef BaseClass::Elements | Elements |
![]() | |
typedef TIndex< Dimensions > | IndexType |
typedef TIndex< Dimensions > | SizesType |
typedef i2d::CVector2d | ElementType |
![]() | |
enum | ChangeFlags { CF_ICF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING , CF_DELEGATED , CF_NO_UNDO } |
Data model change notification flags. More... | |
enum | SupportedOperations { SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 , SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4 , SO_CHANGE_LOCK = 1 << 5 } |
Flags for supported operations. More... | |
enum | CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT } |
Control how relationship betweeen objects are interpreted. More... | |
Public Member Functions | |
const Elements & | GetElements () const |
bool | Serialize (iser::IArchive &archive) override |
Load or store state of this object as a archive stream. | |
std::unique_ptr< istd::IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const override |
Make a copy of this object. | |
bool | CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override |
![]() | |
TArray () | |
TArray (TArray &&array)=default | |
TArray (const TArray &array)=default | |
TArray (const SizesType &sizes) | |
void | Reset () |
Removes all elements and set all sizes to 0. | |
bool | IsEmpty () const |
Check if this array has no elements. | |
bool | IsDimensionsCountFixed () const |
Check, if number dimensions is fixed. | |
int | GetDimensionsCount () const |
Get number of dimensions of this array. | |
bool | SetDimensionsCount (int count) |
Set number of dimensions of this array. | |
const SizesType & | GetSizes () const |
Get list of all sizes. | |
bool | SetSizes (const SizesType &sizes) |
Set list of all sizes. | |
int | GetSize (int dimension) const |
Get size of array for specified dimension. | |
bool | SetSize (int dimension, int size) |
Set size of array for specified dimension. | |
const i2d::CVector2d & | GetAt (const IndexType &index) const |
Get element stored at specified index. | |
i2d::CVector2d & | GetAtRef (const IndexType &index) |
Get reference to element stored at specified index. | |
void | SetAt (const IndexType &index, const i2d::CVector2d &value) |
Set element at specified index. | |
void | SetAllElements (const i2d::CVector2d &value) |
Set some value to all elements. | |
iterator | begin () const |
Get begin value of element access iterator. | |
const iterator & | end () const |
Get end value of element access iterator. | |
TArray & | operator= (TArray &&array)=default |
TArray & | operator= (const TArray &array)=default |
bool | operator== (const TArray< i2d::CVector2d, Dimensions > &value) const |
bool | operator!= (const TArray< i2d::CVector2d, Dimensions > &value) const |
const i2d::CVector2d & | operator[] (const IndexType &index) const |
i2d::CVector2d & | operator[] (const IndexType &index) |
![]() | |
virtual quint32 | GetMinimalVersion (int versionId) const |
Get minimal needed version to correct storing of this data. | |
![]() | |
virtual int | GetSupportedOperations () const |
Get set of flags for supported operations. | |
virtual bool | CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) |
Copy this object from another one. | |
virtual bool | IsEqual (const IChangeable &object) const |
Compare this object with another object. | |
virtual bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) |
Reset data to its default state. | |
virtual QMutex * | GetChangesLock () const |
Get mutex beeing locked during changes, if available. | |
virtual void | BeginChanges (const ChangeSet &changeSet) |
Starts the change transaction. | |
virtual void | EndChanges (const ChangeSet &changeSet) |
Ends the change transaction. | |
virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
Starts group of changes. | |
virtual void | EndChangeGroup (const ChangeSet &changeSet) |
Ends group of changes. | |
Additional Inherited Members | |
![]() | |
static const ChangeSet & | GetNoChanges () |
Get empty set of changes. | |
static const ChangeSet & | GetAnyChange () |
Get anonymous change set. | |
static const ChangeSet & | GetAllChanges () |
Get anonymous change set. | |
static const ChangeSet & | GetDelegatedChanges () |
Get delegated change set. | |
![]() | |
typedef std::vector< i2d::CVector2d > | Elements |
![]() | |
int | GetElementIndex (const IndexType &index) const |
Get index of element in one dimensional array. | |
void | UpdateElementsSize () |
Update size of elements to size changes. | |
void | DeepCopy (const Elements &elements, const SizesType &sizes) |
![]() | |
virtual void | OnBeginChanges () |
Callback function for begin change event. | |
virtual void | OnEndChanges (const ChangeSet &changeSet) |
Callback function for end change event. | |
![]() | |
SizesType | m_sizes |
Elements | m_elements |
Definition at line 19 of file CPointGrid.h.
Definition at line 24 of file CPointGrid.h.
Definition at line 25 of file CPointGrid.h.
|
overridevirtual |
Make a copy of this object.
You may check, if this functionality is supported over GetSupportedOperations()
.
Reimplemented from istd::IChangeable.
Reimplemented in iipr::CPointGridFeature, and iipr::TWeightedFeatureWrap< icalib::CPointGrid >.
|
override |
const Elements & icalib::CPointGrid::GetElements | ( | ) | const |
|
overridevirtual |
Load or store state of this object as a archive stream.
Type of operation is depending on archive type.
Implements iser::ISerializable.
Reimplemented in iipr::TWeightedFeatureWrap< icalib::CPointGrid >.
© Witold Gantzke and Kirill Lepskiy