C-Array wrapper for handle size, copy and memory.
More...
#include <IRArray.h>
template<class T>
class evo::IRArray< T >
C-Array wrapper for handle size, copy and memory.
- Author
- Helmut Engelhardt (Evocortex GmbH)
- Examples
- /platform/windows/examples/directshow/irimagerShow.cpp, examples/linux/opengl/irimagerShow.cpp, and examples/linux/pif/IRPifExample.cpp.
◆ IRArray() [1/3]
Initialize array with given size.
- Parameters
-
◆ IRArray() [2/3]
template<class T >
evo::IRArray< T >::IRArray |
( |
std::size_t |
size, |
|
|
const T *const |
data |
|
) |
| |
Initialize array with given size and data.
- Parameters
-
[in] | size | Size of array |
[in] | data | Pointer to array to copy from. Has to be at least the given size! |
◆ IRArray() [3/3]
Copy constructor to copy given IRArray.
- Parameters
-
◆ ~IRArray()
Deconstructor.
Handles deletion of array
◆ data()
Returns pointer to array.
- Returns
- Array pointer
◆ operator=()
Assignment operator for copy IRArray.
- Parameters
-
◆ operator[]() [1/2]
template<class T >
T & evo::IRArray< T >::operator[] |
( |
const std::size_t |
index | ) |
|
Index operator.
Throws std::out_of_range if index out of range.
- Parameters
-
[in] | index | Index of required data |
◆ operator[]() [2/2]
template<class T >
const T & evo::IRArray< T >::operator[] |
( |
const std::size_t |
index | ) |
const |
Const index operator.
Throws std::out_of_range if index out of range.
- Parameters
-
[in] | index | Index of required data |
◆ size()
The documentation for this class was generated from the following file: