21.02
|
Interface for distribution objects. More...
#include <IDistribution.h>
Public Member Functions | |
virtual | ~IDistribution ()=default |
Default virtual destructor. More... | |
virtual size_t | dimensions () const =0 |
Returns the dimensions of the distribution. More... | |
virtual size_t | size () const =0 |
Returns the total size in bytes of the distribution. More... | |
virtual uint32_t * | buffer () const =0 |
Returns a pointer to the start of the distribution. More... | |
void | clear () const |
Clears the distribution by setting every element to zero. More... | |
Interface for distribution objects.
Definition at line 33 of file IDistribution.h.
|
virtualdefault |
Default virtual destructor.
|
pure virtual |
Returns a pointer to the start of the distribution.
Other elements of the array can be accessed using buffer()[idx] for 0 <= idx < num_bins()
Implemented in ICLDistribution1D, and Distribution1D.
Referenced by IDistribution::clear(), and NECumulativeDistributionKernel::run().
void clear | ( | ) | const |
Clears the distribution by setting every element to zero.
Definition at line 32 of file IDistribution.cpp.
References ARM_COMPUTE_ERROR_ON, IDistribution::buffer(), and IDistribution::size().
|
pure virtual |
Returns the dimensions of the distribution.
Implemented in IDistribution1D.
|
pure virtual |
Returns the total size in bytes of the distribution.
Implemented in IDistribution1D.
Referenced by IDistribution::clear().