iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::Array< T >::Memory Class Reference

#include <nrt/Core/Memory/details/ArrayImpl.H>

template<class T>
class nrt::Array< T >::Memory

A reference counted storage class for an array of data.

This class is the core of the nrt::Array class - users should never need to use it explicitely.

Definition at line 198 of file ArrayImpl.H.

Public Member Functions

 Memory ()
 Construct an empty Memory.
 
 Memory (size_t size)
 Create a Memory of the given size.
 
template<class Scalar >
 Memory (size_t size, Scalar const &value, typename std::enable_if< std::is_arithmetic< Scalar >::value >::type *=0)
 Create a Memory of the given size, and fill it with the given value.
 
 Memory (size_t size, T const &value)
 Create a Memory of the given size, and fill it with the given value.
 
 Memory (T const *data, size_t size)
 Create a Memory by copying the given data.
 
 Memory (typename nrt::Array< T >::Memory const &m)
 Create a Memory as a deep copy of another memory.
 
 ~Memory ()
 Delete the Memory.
 
template<class T>
 Memory (nrt::Array< T >::Memory const &m)
 

Public Attributes

size_t size
 The size of the internal data storage.
 
T * itsData
 A pointer to the internal data storage.
 

The documentation for this class was generated from the following file: