![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Base class for fragmented buffers. More...
#include <BaseFragBuffer.h>
Public Member Functions | |
| ipUInt64 | getNbFragments () const |
| retrieve number of fragments for buffer More... | |
| ipUInt64 | getFragmentsSize () const |
| retrieve fragments size More... | |
| const BufferPtrColl & | getBufferPtrColl () const |
| retrieve fragment pointers collection for buffer More... | |
| void | rollUpFragments () |
| method allowing to roll up all fragments into buffer. Fragments indexes are modified as follow : More... | |
| void | rollDownFragments () |
| method allowing to roll down all fragments into buffer. Fragments indexes are modified as follow : More... | |
Constructors and destructors | |
| BaseFragBuffer () | |
| virtual | ~BaseFragBuffer ()=0 |
| const void * | getDataPtr (const ipUInt64 fragmentIndex) const |
| retrieve buffer data for a given fragment index More... | |
| void * | getDataPtr (const ipUInt64 fragmentIndex) |
| retrieve buffer data for a given fragment index More... | |
| const void * | getDataPtr (const ipUInt64 fragmentIndex, const ipUInt64 offset) const |
| retrieve buffer data for a given fragment index and a given offset More... | |
| void * | getDataPtr (const ipUInt64 fragmentIndex, const ipUInt64 offset) |
| retrieve buffer data for a given fragment index and a given offset More... | |
Public Member Functions inherited from ipsdk::BaseBuffer | |
| virtual eBufferType | getBufferType () const =0 |
| retrieve buffer type | |
| bool | isInit () const |
| ipUInt64 | getSize () const |
| retrieve buffer size More... | |
| ipUInt32 | getBufferBaseSize () const |
| retrieve buffer base size More... | |
| ipUInt64 | getMemorySize () const |
| retrieve buffer memory size (in octets) More... | |
| const eDataType & | getDataType () const |
| retrieve buffer data type More... | |
| void | clear () |
| delete buffer data | |
| BaseBuffer () | |
| virtual | ~BaseBuffer ()=0 |
Public Member Functions inherited from ipsdk::BaseObjectWithSkeleton | |
| const eSklSrzMode & | getSerializationMode () 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 BaseDynamicObject * | createNew () 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 BaseDynamicObject * | duplicate () 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 | initBase (const eDataType &dataType, const BufferPtrColl &bufferPtrColl, const ipUInt64 fragmentsSize) |
| initialization of base class More... | |
| void | setDataPtr (const ipUInt64 fragmentIndex, void *pData) |
| method allowing to set a given data pointer for buffer More... | |
| virtual void | clearDerived () |
| clear method instanciation in derived class | |
Protected Member Functions inherited from ipsdk::BaseBuffer | |
| void | initBase (const ipUInt64 size, const eDataType &dataType) |
| initialization of base class 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 | |
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 | |
Protected Attributes inherited from ipsdk::BaseObjectWithSkeleton | |
| eSklSrzMode | _sklSrzMode |
| serialization flag for object More... | |
Base class for fragmented buffers.
All fragments are supposed to have same size
| ipUInt64 ipsdk::BaseFragBuffer::getNbFragments | ( | ) | const |
retrieve number of fragments for buffer
| ipsdk::IPSDKBaseDataException | if isInit() == false |
| ipUInt64 ipsdk::BaseFragBuffer::getFragmentsSize | ( | ) | const |
retrieve fragments size
| ipsdk::IPSDKBaseDataException | if isInit() == false |
| const BufferPtrColl& ipsdk::BaseFragBuffer::getBufferPtrColl | ( | ) | const |
retrieve fragment pointers collection for buffer
| ipsdk::IPSDKBaseDataException | if isInit() == false |
| const void* ipsdk::BaseFragBuffer::getDataPtr | ( | const ipUInt64 | fragmentIndex | ) | const |
retrieve buffer data for a given fragment index
| ipsdk::IPSDKBaseDataException | if fragmentIndex >= getNbFragments() |
| void* ipsdk::BaseFragBuffer::getDataPtr | ( | const ipUInt64 | fragmentIndex | ) |
retrieve buffer data for a given fragment index
| ipsdk::IPSDKBaseDataException | if fragmentIndex >= getNbFragments() |
| const void* ipsdk::BaseFragBuffer::getDataPtr | ( | const ipUInt64 | fragmentIndex, |
| const ipUInt64 | offset | ||
| ) | const |
retrieve buffer data for a given fragment index and a given offset
| ipsdk::IPSDKBaseDataException | if fragmentIndex >= getNbFragments() |
retrieve buffer data for a given fragment index and a given offset
| ipsdk::IPSDKBaseDataException | if fragmentIndex >= getNbFragments() |
| void ipsdk::BaseFragBuffer::rollUpFragments | ( | ) |
method allowing to roll up all fragments into buffer. Fragments indexes are modified as follow :
| ipsdk::IPSDKBaseDataException | if isInit() == false |
| void ipsdk::BaseFragBuffer::rollDownFragments | ( | ) |
method allowing to roll down all fragments into buffer. Fragments indexes are modified as follow :
| ipsdk::IPSDKBaseDataException | if isInit() == false |
|
protected |
initialization of base class
| ipsdk::IPSDKBaseDataException | if dataType == eDataType::eDT_None |
|
protected |
method allowing to set a given data pointer for buffer
| ipsdk::IPSDKBaseDataException | if fragmentIndex >= getNbFragments() |
1.8.14