20#if !defined(GPUCA_GPUCODE)
84void IrregularSpline2D3D::construct(int32_t numberOfKnotsU,
const float knotsU[], int32_t numberOfAxisBinsU, int32_t numberOfKnotsV,
const float knotsV[], int32_t numberOfAxisBinsV)
109 mGridU.
construct(numberOfKnotsU, knotsU, numberOfAxisBinsU);
110 mGridV.
construct(numberOfKnotsV, knotsV, numberOfAxisBinsV);
142#if !defined(GPUCA_GPUCODE)
143 LOG(info) <<
" Irregular Spline 2D3D: ";
144 LOG(info) <<
" grid U: ";
146 LOG(info) <<
" grid V: ";
Definition of IrregularSpline2D3D class.
void setFutureBufferAddress(char *futureFlatBufferPtr)
void destroy()
_______________ Utilities _______________________________________________
static size_t alignSize(size_t sizeBytes, size_t alignmentBytes)
_______________ Generic 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)
void cloneFromObject(const FlatObject &obj, char *newFlatBufferPtr)
size_t getFlatBufferSize() const
Gives size of the flat buffer.
const char * getFlatBufferPtr() const
Gives pointer to the flat buffer.
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"