73 char* bufferU =
relocatePointer(oldFlatBufferPtr, futureFlatBufferPtr, mGridU.getFlatBufferPtr());
76 char* bufferV =
relocatePointer(oldFlatBufferPtr, futureFlatBufferPtr, mGridV.getFlatBufferPtr());
82void IrregularSpline2D3D::construct(int32_t numberOfKnotsU,
const float knotsU[], int32_t numberOfAxisBinsU, int32_t numberOfKnotsV,
const float knotsV[], int32_t numberOfAxisBinsV)
107 mGridU.
construct(numberOfKnotsU, knotsU, numberOfAxisBinsU);
108 mGridV.
construct(numberOfKnotsV, knotsV, numberOfAxisBinsV);
140 LOG(info) <<
" Irregular Spline 2D3D: ";
141 LOG(info) <<
" grid U: ";
143 LOG(info) <<
" grid V: ";
Definition of IrregularSpline2D3D class.
void setFutureBufferAddress(char *futureFlatBufferPtr)
void destroy()
_______________ Utilities _______________________________________________
static T * relocatePointer(const char *oldBase, char *newBase, const T *ptr)
Relocates a pointer inside a buffer to the new buffer address.
void setActualBufferAddress(char *actualFlatBufferPtr)
_____________ Methods for moving the class with its external buffer to another location _____________...
void startConstruction()
_____________ Construction _________
void moveBufferTo(char *newBufferPtr)
void finishConstruction(int32_t flatBufferSize)
static constexpr size_t alignSize(size_t sizeBytes, size_t alignmentBytes)
_______________ Generic utilities _______________________________________________
void cloneFromObject(const FlatObject &obj, char *newFlatBufferPtr)
void setFutureBufferAddress(char *futureFlatBufferPtr)
void setActualBufferAddress(char *actualFlatBufferPtr)
Moving the class with its external buffer to another location.
void print() const
Print method.
void moveBufferTo(char *newBufferPtr)
void construct(int32_t numberOfKnots, const float knots[], int32_t numberOfAxisBins)
_______________ Construction interface ________________________
void cloneFromObject(const IrregularSpline1D &obj, char *newFlatBufferPtr)
Construction interface.
static constexpr size_t getBufferAlignmentBytes()
Get minimal required alignment for the flat buffer.
void constructRegular(int32_t numberOfKnotsU)
Constructor for a regular spline.
void construct(int32_t numberOfKnotsU, const float knotsU[], int32_t numberOfAxisBinsU, int32_t numberOfKnotsV, const float knotsV[], int32_t numberOfAxisBinsV)
_______________ Construction interface ________________________
IrregularSpline2D3D()
_____________ Constructors / destructors __________________________
void cloneFromObject(const IrregularSpline2D3D &obj, char *newFlatBufferPtr)
Construction interface.
void setFutureBufferAddress(char *futureFlatBufferPtr)
void moveBufferTo(char *newBufferPtr)
void setActualBufferAddress(char *actualFlatBufferPtr)
Moving the class with its external buffer to another location.
void print() const
Print method.
void constructRegular(int32_t numberOfKnotsU, int32_t numberOfKnotsV)
Constructor for a regular spline.
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"