IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ipsdk::BasePlanIndexedColl Class Referenceabstract

Collection of serializable objects indexed by plan. More...

#include <BasePlanIndexedColl.h>

Inheritance diagram for ipsdk::BasePlanIndexedColl:
ipsdk::BaseObjectWithSkeleton ipsdk::BaseSerializationObject ipsdk::BaseDynamicObject ipsdk::PlanIndexedColl< T > ipsdk::PlanIndexedColl< dataType > ipsdk::shape::analysis::PlanIndexedMeasureSet ipsdk::shape::segmentation::PlanIndexedShape2dColl ipsdk::shape::segmentation::PlanIndexedShape3dColl

Public Types

typedef std::map< PlanIndex, SerializationObjectPtrPlanIndexedColl
 collection of plan indexed serializable object shared pointers
 
typedef std::map< PlanIndex, SerializationObjectConstPtrPlanIndexedConstColl
 collection of plan indexed serializable object shared pointers
 

Public Member Functions

virtual const std::string & getElementsClassName () const =0
 retrieve class name associated to concrete elements into collection
 
virtual bool haveSkeleton () const =0
 
const PlanIndexedConstCollgetBaseColl () const
 retrieve base object collection
 
ipUInt64 getNbPlans () const
 retrieve number of plan indexes
 
bool isComplete () const
 check whether collection is complete for maximum size along each direction
 
bool isComplete (const ipUInt64 sizeZ, const ipUInt64 sizeC, const ipUInt64 sizeT) const
 check whether collection is complete given a number of plans
 
const PlanIndexgetPlanIndex (const ipUInt64 planOffset) const
 retrieve plan index associated to a given plan offset More...
 
void clear ()
 clear object data
 
Constructors and destructors
 BasePlanIndexedColl ()
 
virtual ~BasePlanIndexedColl ()=0
 
ipUInt64 getMaxSizeZ () const
 retrieve maximum size of collection along each directions
 
ipUInt64 getMaxSizeC () const
 retrieve maximum size of collection along each directions
 
ipUInt64 getMaxSizeT () const
 retrieve maximum size of collection along each directions
 
bool exists (const PlanIndex &planIndex) const
 check whether an element is available for a given plan index
 
bool exists (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx) const
 check whether an element is available for a given plan index
 
- Public Member Functions inherited from ipsdk::BaseObjectWithSkeleton
const eSklSrzModegetSerializationMode () const
 retrieve serialization flag for object More...
 
void setSerializationMode (const eSklSrzMode &sklSrzMode) const
 set serialization flag for object
 
 BaseObjectWithSkeleton ()
 
 ~BaseObjectWithSkeleton ()
 
- Public Member Functions inherited from ipsdk::BaseSerializationObject
 BaseSerializationObject ()
 Default constructor.
 
virtual ~BaseSerializationObject ()=0
 destructor
 
- Public Member Functions inherited from ipsdk::BaseDynamicObject
virtual const std::string & getClassName () const
 method allowing to retrieve object class name
 
virtual BaseDynamicObjectcreateNew () const =0
 method allowing to create new instance of current object type
 
virtual DynamicObjectPtr createShared () const =0
 method allowing to create new shared instance of current object type
 
virtual bool hasCopySupport () const =0
 check whether objet has copy support
 
virtual BaseDynamicObjectduplicate () const =0
 method allowing to duplicate current object More...
 
virtual DynamicObjectPtr duplicateShared () const =0
 method allowing shared duplication of current object More...
 
 BaseDynamicObject ()
 
virtual ~BaseDynamicObject ()=0
 

Protected Member Functions

void insert (const PlanIndex &planIndex, const SerializationObjectPtr &pObject)
 insert a new element for a given plan index More...
 
void assign (const BaseSerializationObject &object, const ipUInt64 sizeZ, const ipUInt64 sizeC, const ipUInt64 sizeT)
 assign a given value to all data of collection More...
 
SerializationObjectConstPtr getStorage (const PlanIndex &planIndex) const
 retrieve an element associated to a given plan index More...
 
const SerializationObjectPtrgetStorage (const PlanIndex &planIndex)
 retrieve an element associated to a given plan index More...
 
- Protected Member Functions inherited from ipsdk::BaseSerializationObject
virtual BoolResult write (BaseOArchive &ar) const
 method allowing to ensure serialization write part for object
 
virtual BoolResult read (BaseIArchive &ar)
 method allowing to ensure serialization read part for object
 
- Protected Member Functions inherited from ipsdk::BaseDynamicObject
virtual void initCtorCopy (const BaseDynamicObject &object)
 
virtual void copy (const BaseDynamicObject &object)
 method allowing to copy data from another object
 

Protected Attributes

PlanIndexedColl _planIndexedColl
 collection of plan indexed elements associated to attribute
 
- Protected Attributes inherited from ipsdk::BaseObjectWithSkeleton
eSklSrzMode _sklSrzMode
 serialization flag for object More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ipsdk::BaseSerializationObject
static ipUInt32 getVersion ()
 method allowing to retrieve class version information for serialization
 
- Static Public Member Functions inherited from ipsdk::BaseDynamicObject
static const std::string & getTypeName ()
 method allowing to retrieve name associated to class
 

Detailed Description

Collection of serializable objects indexed by plan.

Author
E. Noirfalise
Date
2015/06/18

Member Function Documentation

◆ haveSkeleton()

virtual bool ipsdk::BasePlanIndexedColl::haveSkeleton ( ) const
pure virtual

method allowing to check whether type of collection elements is associated to a skeleton

Implemented in ipsdk::PlanIndexedColl< T >, and ipsdk::PlanIndexedColl< dataType >.

◆ getPlanIndex()

const PlanIndex& ipsdk::BasePlanIndexedColl::getPlanIndex ( const ipUInt64  planOffset) const

retrieve plan index associated to a given plan offset

Exceptions
ipsdk::IPSDKBaseDataExceptionif planOffset >= getNbPlans()

◆ insert()

void ipsdk::BasePlanIndexedColl::insert ( const PlanIndex planIndex,
const SerializationObjectPtr pObject 
)
protected

insert a new element for a given plan index

Exceptions
ipsdk::IPSDKBaseDataExceptionif pObject.get() == 0
ipsdk::IPSDKBaseDataExceptionif exists(planIndex) == true

◆ assign()

void ipsdk::BasePlanIndexedColl::assign ( const BaseSerializationObject object,
const ipUInt64  sizeZ,
const ipUInt64  sizeC,
const ipUInt64  sizeT 
)
protected

assign a given value to all data of collection

Exceptions
ipsdk::eIPSDKUtilErrorsif object.hasCopySupport() == false

◆ getStorage() [1/2]

SerializationObjectConstPtr ipsdk::BasePlanIndexedColl::getStorage ( const PlanIndex planIndex) const
protected

retrieve an element associated to a given plan index

Exceptions
ipsdk::IPSDKBaseDataExceptionif exists(planIndex) == false

◆ getStorage() [2/2]

const SerializationObjectPtr& ipsdk::BasePlanIndexedColl::getStorage ( const PlanIndex planIndex)
protected

retrieve an element associated to a given plan index

Exceptions
ipsdk::IPSDKBaseDataExceptionif exists(planIndex) == false

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