Storage class that enables sharing pre-allocated arrays for MAC grid. More...
#include <shared_array2.h>
Public Member Functions | |
shared_macarray2 (const shape2 &shape, vec2< T > initial_value=vec2< T >(), std::string core_name="") | |
Borrow a shared MAC array. More... | |
shared_macarray2 (const typename macarray2< T >::type2 &type, vec2< T > initial_value=vec2< T >()) | |
Borrow a shared array. More... | |
shared_macarray2 (const macarray2< T > &array) | |
Borrow a shared array and copy the input. More... | |
~shared_macarray2 () | |
Destructor for shared_macarray2. | |
const macarray2< T > & | operator() () const |
Get the const reference to the internal borrowed array. | |
macarray2< T > & | operator() () |
Get the reference to the internal borrowed array. | |
macarray2< T > * | operator-> () |
Get the pointer to the internal borrowed array. | |
const macarray2< T > * | operator-> () const |
Get the const pointer to the internal borrowed array. | |
macarray2< T > * | get () |
Get the pointer to the internal borrowed array. | |
const macarray2< T > * | get () const |
Get the const pointer to the internal borrowed array. | |
Storage class that enables sharing pre-allocated arrays for MAC grid.
|
inline |
Borrow a shared MAC 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. |