ICF 3.0.5.47
Technical documentation of ICF Libraries
icalib::CPointGrid Class Reference

#include <CPointGrid.h>

Inheritance diagram for icalib::CPointGrid:
Collaboration diagram for icalib::CPointGrid:

Public Types

typedef istd::TArray< i2d::CVector2d, 2 > BaseClass
 
typedef BaseClass::Elements Elements
 
- Public Types inherited from istd::TArray< i2d::CVector2d, 2 >
typedef TIndex< Dimensions > IndexType
 
typedef TIndex< Dimensions > SizesType
 
typedef i2d::CVector2d ElementType
 
- Public Types inherited from istd::IChangeable
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 ElementsGetElements () const
 
bool Serialize (iser::IArchive &archive) override
 Load or store state of this object as a archive stream.
 
std::unique_ptr< istd::IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const override
 Make a copy of this object.
 
bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
 
- Public Member Functions inherited from istd::TArray< i2d::CVector2d, 2 >
 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 SizesTypeGetSizes () 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::CVector2dGetAt (const IndexType &index) const
 Get element stored at specified index.
 
i2d::CVector2dGetAtRef (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.
 
TArrayoperator= (TArray &&array)=default
 
TArrayoperator= (const TArray &array)=default
 
bool operator== (const TArray< i2d::CVector2d, Dimensions > &value) const
 
bool operator!= (const TArray< i2d::CVector2d, Dimensions > &value) const
 
const i2d::CVector2doperator[] (const IndexType &index) const
 
i2d::CVector2doperator[] (const IndexType &index)
 
- Public Member Functions inherited from iser::ISerializable
virtual quint32 GetMinimalVersion (int versionId) const
 Get minimal needed version to correct storing of this data.
 
- Public Member Functions inherited from istd::IChangeable
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 Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes.
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set.
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set.
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set.
 
- Protected Types inherited from istd::TArray< i2d::CVector2d, 2 >
typedef std::vector< i2d::CVector2dElements
 
- Protected Member Functions inherited from istd::TArray< i2d::CVector2d, 2 >
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)
 
- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges ()
 Callback function for begin change event.
 
virtual void OnEndChanges (const ChangeSet &changeSet)
 Callback function for end change event.
 
- Protected Attributes inherited from istd::TArray< i2d::CVector2d, 2 >
SizesType m_sizes
 
Elements m_elements
 

Detailed Description

Definition at line 19 of file CPointGrid.h.

Member Typedef Documentation

◆ BaseClass

◆ Elements

Member Function Documentation

◆ CloneMe()

std::unique_ptr< istd::IChangeable > icalib::CPointGrid::CloneMe ( CompatibilityMode mode = CM_WITHOUT_REFS) const
overridevirtual

Make a copy of this object.

You may check, if this functionality is supported over GetSupportedOperations().

Returns
new instance or nullptr, if this operation is not supported.

Reimplemented from istd::IChangeable.

Reimplemented in iipr::CPointGridFeature, and iipr::TWeightedFeatureWrap< icalib::CPointGrid >.

◆ CopyFrom()

bool icalib::CPointGrid::CopyFrom ( const IChangeable & object,
CompatibilityMode mode = CM_WITHOUT_REFS )
override

◆ GetElements()

const Elements & icalib::CPointGrid::GetElements ( ) const

◆ Serialize()

bool icalib::CPointGrid::Serialize ( iser::IArchive & archive)
overridevirtual

Load or store state of this object as a archive stream.

Type of operation is depending on archive type.

See also
iser::IArchive

Implements iser::ISerializable.

Reimplemented in iipr::TWeightedFeatureWrap< icalib::CPointGrid >.


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

© Witold Gantzke and Kirill Lepskiy