Go to the source code of this file.
Typedefs | |
| typedef struct MR_Histogram | MR_Histogram |
| typedef struct MR_Histogram MR_Histogram |
Simple class for calculating histogram Generated from class MR::Histogram. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| MRC_API void MR_Histogram_addHistogram | ( | MR_Histogram * | _this, |
| const MR_Histogram * | hist ) |
Adds bins of input hist to this Generated from method MR::Histogram::addHistogram. Parameter _this can not be null. It is a single object. Parameter hist can not be null. It is a single object.
| MRC_API void MR_Histogram_addSample | ( | MR_Histogram * | _this, |
| float | sample, | ||
| const MR_uint64_t * | count ) |
Adds sample to corresponding bin Generated from method MR::Histogram::addSample. Parameter _this can not be null. It is a single object. Parameter count has a default argument: 1, pass a null pointer to use it.
| MRC_API MR_Histogram * MR_Histogram_AssignFromAnother | ( | MR_Histogram * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_Histogram * | _other ) |
Generated from method MR::Histogram::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_Histogram * MR_Histogram_Construct | ( | float | min, |
| float | max, | ||
| MR_uint64_t | size ) |
Initialize histogram with minimum and maximum values, and number of bins Generated from constructor MR::Histogram::Histogram. The reference to the parameter size might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Histogram_Destroy() to free it when you're done using it.
| MRC_API MR_Histogram * MR_Histogram_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_Histogram * | _other ) |
Generated from constructor MR::Histogram::Histogram. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Histogram_Destroy() to free it when you're done using it.
| MRC_API MR_Histogram * MR_Histogram_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_Histogram_Destroy() to free it when you're done using it.
| MRC_API MR_Histogram * MR_Histogram_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_Histogram_DestroyArray(). Use MR_Histogram_OffsetMutablePtr() and MR_Histogram_OffsetPtr() to access the array elements.
| MRC_API void MR_Histogram_Destroy | ( | const MR_Histogram * | _this | ) |
Destroys a heap-allocated instance of MR_Histogram. Does nothing if the pointer is null.
| MRC_API void MR_Histogram_DestroyArray | ( | const MR_Histogram * | _this | ) |
Destroys a heap-allocated array of MR_Histogram. Does nothing if the pointer is null.
| MRC_API MR_uint64_t MR_Histogram_getBinId | ( | const MR_Histogram * | _this, |
| float | sample ) |
Gets id of bin that inherits sample Generated from method MR::Histogram::getBinId. Parameter _this can not be null. It is a single object.
| MRC_API MR_std_pair_float_float * MR_Histogram_getBinMinMax | ( | const MR_Histogram * | _this, |
| MR_uint64_t | binId ) |
Gets minimum and maximum of diapason inherited by bin Generated from method MR::Histogram::getBinMinMax. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_pair_float_float_Destroy() to free it when you're done using it.
| MRC_API const MR_std_vector_uint64_t * MR_Histogram_getBins | ( | const MR_Histogram * | _this | ) |
Gets bins Generated from method MR::Histogram::getBins. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API float MR_Histogram_getMax | ( | const MR_Histogram * | _this | ) |
Gets maximum value of histogram Generated from method MR::Histogram::getMax. Parameter _this can not be null. It is a single object.
| MRC_API float MR_Histogram_getMin | ( | const MR_Histogram * | _this | ) |
Gets minimum value of histogram Generated from method MR::Histogram::getMin. Parameter _this can not be null. It is a single object.
| MRC_API MR_uint64_t MR_Histogram_heapBytes | ( | const MR_Histogram * | _this | ) |
returns the amount of memory this object occupies on heap Generated from method MR::Histogram::heapBytes. Parameter _this can not be null. It is a single object.
| MRC_API MR_Histogram * MR_Histogram_OffsetMutablePtr | ( | MR_Histogram * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_Histogram * MR_Histogram_OffsetPtr | ( | const MR_Histogram * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.