openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
Utility class for handling arrays of data used by IMPs. More...
#include <ION_IF.h>
Public Member Functions | |
LimpetArray () | |
Default constructor with no allocated data. More... | |
LimpetArray (Target target, std::size_t size) | |
Constructs a LimpetArray. More... | |
~LimpetArray () | |
Destroy a limpet array. More... | |
void | allocate (Target target, std::size_t size) |
Allocate the array on the given target. More... | |
template<typename Type = S> | |
std::enable_if<!std::is_void< Type >::value, std::size_t >::type | get_element_size () const |
Get the size of a single element (size of type S) More... | |
template<typename Type = S> | |
std::enable_if< std::is_void< Type >::value, std::size_t >::type | get_element_size () const |
S * | data () const |
Gets a pointer to the underlying data. More... | |
std::size_t | size () const |
Gets the sizee of the array. More... | |
bool | is_allocated () const |
Returns whether data has been allocated for this LimpetArray. More... | |
LimpetArray & | operator= (LimpetArray &&other) |
Move assignement operator. More... | |
Utility class for handling arrays of data used by IMPs.
|
inline |
|
inline |
Constructs a LimpetArray.
target | target on which to allocate the array |
size | size of the array |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns whether data has been allocated for this LimpetArray.
true | if data is allocated |
false | if data isn't allocated |
Definition at line 623 of file ION_IF.h.
|
inline |
|
inline |