Storage class that enables sharing pre-allocated arrays. More...
#include <shared_array3.h>
Public Member Functions | |
shared_array3 (const shape3 &shape, T initial_value=T(), std::string core_name="") | |
Borrow a shared array. More... | |
shared_array3 (const typename array3< T >::type3 &type, T initial_value=T()) | |
Borrow a shared array. More... | |
shared_array3 (const array3< T > &array) | |
Borrow a shared array and copy the input. More... | |
~shared_array3 () | |
Destructor for shared_array2. | |
const array3< T > & | operator() () const |
Get the const reference to the internal borrowed array. | |
array3< T > & | operator() () |
Get the reference to the internal borrowed array. | |
array3< T > * | operator-> () |
Get the pointer to the internal borrowed array. | |
const array3< T > * | operator-> () const |
Get the const pointer to the internal borrowed array. | |
array3< T > * | get () |
Get the pointer to the internal borrowed array. | |
const array3< T > * | get () const |
Get the const pointer to the internal borrowed array. | |
Storage class that enables sharing pre-allocated arrays.
|
inline |
Borrow a shared array.
[in] | shape | Shape of the grid. |
[in] | initial_value | Initial value. |
[in] | core_name | Core module name for the grid. |
|
inline |
Borrow a shared array.
[in] | shape | Shape of the grid. |
[in] | initial_value | Initial value. |
|
inline |
Borrow a shared array and copy the input.
[in] | array | Array to copy from. |