21.02
|
#include <IArray.h>
Public Member Functions | |
IArray () | |
Default constructor. More... | |
IArray (size_t max_num_values) | |
Constructor: initializes an array which can contain up to max_num_points values. More... | |
size_t | max_num_values () const |
Maximum number of values which can be stored in this array. More... | |
virtual | ~IArray ()=default |
Default virtual destructor. More... | |
size_t | num_values () const |
Number of values currently stored in the array. More... | |
bool | push_back (const T &val) |
Append the passed argument to the end of the array if there is room. More... | |
void | clear () |
Clear all the points from the array. More... | |
bool | overflow () const |
Did we lose some values because the array is too small? More... | |
virtual T * | buffer () const =0 |
Pointer to the first element of the array. More... | |
virtual T & | at (size_t index) const |
Reference to the element of the array located at the given index. More... | |
void | resize (size_t num) |
Resizes the array to contain "num" elements. More... | |
Array of type T.
|
inline |
|
inline |
Constructor: initializes an array which can contain up to max_num_points values.
[in] | max_num_values | Maximum number of values the array will be able to stored |
Definition at line 50 of file IArray.h.
|
virtualdefault |
Default virtual destructor.
Referenced by IArray< NELKInternalKeypoint >::max_num_values().
|
inlinevirtual |
Reference to the element of the array located at the given index.
[in] | index | Index of the element |
Definition at line 117 of file IArray.h.
Referenced by NEHOGMultiDetection::configure(), CLHOGMultiDetection::configure(), IArray< NELKInternalKeypoint >::push_back(), and CPPDetectionWindowNonMaximaSuppressionKernel::run().
|
pure virtual |
Pointer to the first element of the array.
Other elements of the array can be accessed using buffer()[idx] for 0 <= idx < num_poins().
Implemented in ICLArray< T >, ICLArray< cl_float >, ICLArray< cl_int >, Array< T >, and Array< NELKInternalKeypoint >.
Referenced by IArray< NELKInternalKeypoint >::at(), IArray< NELKInternalKeypoint >::overflow(), and CPPDetectionWindowNonMaximaSuppressionKernel::run().
|
inline |
Clear all the points from the array.
Definition at line 91 of file IArray.h.
Referenced by NEHOGMultiDetection::run(), and CLHOGMultiDetection::run().
|
inline |
Maximum number of values which can be stored in this array.
Definition at line 58 of file IArray.h.
Referenced by IArray< NELKInternalKeypoint >::at(), CLArray< cl_int >::cl_buffer(), NEHOGDetectorKernel::configure(), CLHOGDetectorKernel::configure(), CLMinMaxLocationKernel::configure(), CLCopyToArrayKernel::configure(), IArray< NELKInternalKeypoint >::overflow(), IArray< NELKInternalKeypoint >::push_back(), IArray< NELKInternalKeypoint >::resize(), CLFastCorners::run(), and CLMinMaxLocation::run().
|
inline |
Number of values currently stored in the array.
Definition at line 68 of file IArray.h.
Referenced by CLLKTrackerInitKernel::configure(), NEOpticalFlow::configure(), CLLKTrackerFinalizeKernel::configure(), NEHOGMultiDetection::configure(), CLHOGMultiDetection::configure(), CLOpticalFlow::configure(), CLLKTrackerStage0Kernel::configure(), CLLKTrackerStage1Kernel::configure(), CPPDetectionWindowNonMaximaSuppressionKernel::run(), NEHOGDetectorKernel::run(), and CLHOGDetector::run().
|
inline |
Did we lose some values because the array is too small?
Definition at line 100 of file IArray.h.
|
inline |
Append the passed argument to the end of the array if there is room.
[in] | val | Value to add to the array. |
Definition at line 78 of file IArray.h.
Referenced by CPPSortEuclideanDistanceKernel::run(), and NEHOGDetectorKernel::run().
|
inline |
Resizes the array to contain "num" elements.
If "num" is smaller than the maximum array size, the content is reduced to its first "num" elements, "num" elements can't be bigger than the maximum number of values which can be stored in this array.
[in] | num | The new array size in number of elements |
Definition at line 128 of file IArray.h.
Referenced by NEOpticalFlow::configure(), CLOpticalFlow::configure(), CPPDetectionWindowNonMaximaSuppressionKernel::run(), CLFastCorners::run(), CLHOGDetector::run(), and CLMinMaxLocation::run().