![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Base class for objects allowing to parse attribute data. More...
#include <BaseDataParser.h>
Public Member Functions | |
| bool | isInit () const |
| retrieve object initialization flag | |
| virtual eDataParserType | getDataParserType () const =0 |
| retrieve data parser type | |
| bool | areDataInit () const |
| retrieve data initialization flag More... | |
| ipUInt64 | getNbInitData () const |
| retrieve number of initial data More... | |
| ipUInt64 | getNbMainData () const |
| retrieve number of main data More... | |
| ipUInt64 | getNbFinalData () const |
| retrieve number of final data More... | |
| ipUInt64 | getNbRealFinalData () const |
| retrieve number of real final data (not virtual for alignment purpose only) More... | |
| void | clear () |
| clear object data | |
Constructors and destructors | |
| BaseDataParser () | |
| virtual | ~BaseDataParser ()=0 |
Data preparator main informations | |
| const eIOStatus & | getAttributeIO () const |
| retrieve associated attribute input/output status More... | |
| ipUInt64 | getNbElements () const |
| retrieve number of elements associated to object More... | |
| ipUInt64 | getNbDataByElement () const |
| retrieve total number of data by element More... | |
| ipUInt64 | getNbMinInitData () const |
| retrieve minimum number of initial data to be processed More... | |
| ipUInt64 | getNbMinFinalData () const |
| retrieve minimum number of final data to be processed More... | |
| ipUInt64 | getCurElementIdx () const |
| retrieve current element index for iteration process More... | |
Management of unaligned data values | |
| ipReal64 | getUnAlignedValue () const |
| retrieve used value for unaligned data More... | |
| void | setUnAlignedValue (const ipReal64 unAlignedValue) |
| set used value for unaligned data More... | |
Protected Member Functions | |
| void | initBase (const eIOStatus &attributeIO, const ipUInt64 nbElements, const ipUInt64 nbDataByElement, const ipUInt64 nbMinInitData, const ipUInt64 nbMinFinalData, const ipReal64 unAlignedDefaultValue) |
| base class initialization method More... | |
| virtual void | clearDerived () |
| clear object data in derived class | |
| virtual void | initDataDerived (const ipUInt64 nbInitData, const ipUInt64 nbMainData, const ipUInt64 nbFinalData, const ipUInt64 nbRealFinalData, const ipReal64 unAlignedValue)=0 |
| initialize data for processing in derived class | |
| virtual void | prepareDataDerived (const ipUInt64 elementIdx)=0 |
| virtual void | updateToInitDataDerived ()=0 |
| update processed data to initial data in derived class | |
| virtual void | updateToMainDataDerived ()=0 |
| update processed data to main data in derived class | |
| virtual void | updateToFinalDataDerived ()=0 |
| update processed data to final data in derived class | |
| virtual void | syncOutFinalDataDerived () |
| synchronize final output data after processing | |
| void | initData (const ipUInt64 nbInitData, const ipUInt64 nbMainData, const ipUInt64 nbFinalData, const ipUInt64 nbRealFinalData) |
| prepare data for processing for a given element index More... | |
| void | prepareData (const ipUInt64 elementIdx) |
| prepare data for processing for a given element index More... | |
Friends | |
| class | BaseProcessingAlgorithm |
Base class for objects allowing to parse attribute data.
| const eIOStatus& ipsdk::processor::BaseDataParser::getAttributeIO | ( | ) | const |
retrieve associated attribute input/output status
| ipsdk::processor::IPSDKBaseProcessingException | if isInit() == false |
| ipUInt64 ipsdk::processor::BaseDataParser::getNbElements | ( | ) | const |
retrieve number of elements associated to object
| ipsdk::processor::IPSDKBaseProcessingException | if isInit() == false |
| ipUInt64 ipsdk::processor::BaseDataParser::getNbDataByElement | ( | ) | const |
retrieve total number of data by element
| ipsdk::processor::IPSDKBaseProcessingException | if isInit() == false |
| ipUInt64 ipsdk::processor::BaseDataParser::getNbMinInitData | ( | ) | const |
retrieve minimum number of initial data to be processed
| ipsdk::processor::IPSDKBaseProcessingException | if isInit() == false |
| ipUInt64 ipsdk::processor::BaseDataParser::getNbMinFinalData | ( | ) | const |
retrieve minimum number of final data to be processed
| ipsdk::processor::IPSDKBaseProcessingException | if isInit() == false |
| ipUInt64 ipsdk::processor::BaseDataParser::getCurElementIdx | ( | ) | const |
retrieve current element index for iteration process
| ipsdk::processor::IPSDKBaseProcessingException | if isInit() == false |
| ipReal64 ipsdk::processor::BaseDataParser::getUnAlignedValue | ( | ) | const |
retrieve used value for unaligned data
| ipsdk::processor::IPSDKBaseProcessingException | if isInit() == false |
| void ipsdk::processor::BaseDataParser::setUnAlignedValue | ( | const ipReal64 | unAlignedValue | ) |
set used value for unaligned data
| ipsdk::processor::IPSDKBaseProcessingException | if isInit() == false |
| bool ipsdk::processor::BaseDataParser::areDataInit | ( | ) | const |
retrieve data initialization flag
| ipsdk::processor::IPSDKBaseProcessingException | if isInit() == false |
| ipUInt64 ipsdk::processor::BaseDataParser::getNbInitData | ( | ) | const |
retrieve number of initial data
| ipsdk::processor::IPSDKBaseProcessingException | if areDataInit() == false |
| ipUInt64 ipsdk::processor::BaseDataParser::getNbMainData | ( | ) | const |
retrieve number of main data
| ipsdk::processor::IPSDKBaseProcessingException | if areDataInit() == false |
| ipUInt64 ipsdk::processor::BaseDataParser::getNbFinalData | ( | ) | const |
retrieve number of final data
| ipsdk::processor::IPSDKBaseProcessingException | if areDataInit() == false |
| ipUInt64 ipsdk::processor::BaseDataParser::getNbRealFinalData | ( | ) | const |
retrieve number of real final data (not virtual for alignment purpose only)
| ipsdk::processor::IPSDKBaseProcessingException | if areDataInit() == false |
|
protected |
base class initialization method
| attributeIO | Attribute input/output flag |
| nbElements | number of elements to be processed |
| nbDataByElement | total number of data by element |
| nbMinInitData | number of minimum initial data (example : kernel case with starting virtual data) |
| nbMinFinalData | number of minimum final data (example : kernel case with ending virtual data) |
| unAlignedDefaultValue | default value used for alignement data (virtual data used only for alignement purpose) |
| ipsdk::processor::IPSDKBaseProcessingException | if nbDataByElement < nbMinInitData + nbMinFinalData |
|
protectedpure virtual |
prepare data for processing for a given element index in derived class
|
protected |
prepare data for processing for a given element index
| ipsdk::processor::IPSDKBaseProcessingException | if nbInitData < getNbMinInitData() |
| ipsdk::processor::IPSDKBaseProcessingException | if nbFinalData < getNbMinFinalData() |
| ipsdk::processor::IPSDKBaseProcessingException | if nbInitData + nbMainData + getNbMinFinalData() > getNbDataByElement() |
| ipsdk::processor::IPSDKBaseProcessingException | if nbInitData + nbMainData + nbFinalData < getNbDataByElement() |
| ipsdk::processor::IPSDKBaseProcessingException | if nbRealFinalData > nbFinalData |
|
protected |
prepare data for processing for a given element index
| ipsdk::processor::IPSDKBaseProcessingException | if elementIdx >= getNbElements() |
| ipsdk::processor::IPSDKBaseProcessingException | if areDataInit() == false |
1.8.14