DOLFIN
DOLFIN C++ interface
|
#include <Array.h>
Public Member Functions | |
Array (std::size_t N) | |
Create array of size N. Array has ownership. | |
Array (std::size_t N, T *x) | |
Construct array from a pointer. Array does not take ownership. | |
~Array () | |
Destructor. | |
std::string | str (bool verbose) const |
std::size_t | size () const |
Return size of array. | |
const T & | operator[] (std::size_t i) const |
Access value of given entry (const version) | |
T & | operator[] (std::size_t i) |
Access value of given entry (non-const version) | |
const T * | data () const |
Return pointer to data (const version) | |
T * | data () |
Return pointer to data (non-const version) | |
This class provides a simple wrapper for a pointer to an array. A purpose of this class is to enable the simple and safe exchange of data between C++ and Python.
|
inline |