pele
Python energy landscape explorer
 All Classes Namespaces Functions Variables Typedefs
Public Member Functions
pele::_ArrayMemory< dtype > Class Template Reference

#include <array.h>

List of all members.

Public Member Functions

 _ArrayMemory ()
 _ArrayMemory (size_t size)
 _ArrayMemory (size_t size, dtype const &val)
 _ArrayMemory (dtype *data, size_t size)
size_t size () const
dtype * data ()
dtype const * data () const

Detailed Description

template<typename dtype>
class pele::_ArrayMemory< dtype >

This manages the data of the Array class. This can act as a simple wrapper for a vector, or wrap an externally allocated block of memory.

Definition at line 20 of file array.h.


Constructor & Destructor Documentation

template<typename dtype >
pele::_ArrayMemory< dtype >::_ArrayMemory ( ) [inline]

the size of the block of memory, whether in vector or external.

Definition at line 28 of file array.h.

template<typename dtype >
pele::_ArrayMemory< dtype >::_ArrayMemory ( size_t  size) [inline]

Definition at line 34 of file array.h.

template<typename dtype >
pele::_ArrayMemory< dtype >::_ArrayMemory ( size_t  size,
dtype const &  val 
) [inline]

Definition at line 40 of file array.h.

template<typename dtype >
pele::_ArrayMemory< dtype >::_ArrayMemory ( dtype *  data,
size_t  size 
) [inline]

wrap some data that is passed. Do not take ownership of the data.

Definition at line 49 of file array.h.


Member Function Documentation

template<typename dtype >
dtype* pele::_ArrayMemory< dtype >::data ( ) [inline]

return pointer to data

Definition at line 63 of file array.h.

template<typename dtype >
dtype const* pele::_ArrayMemory< dtype >::data ( ) const [inline]

Definition at line 64 of file array.h.

template<typename dtype >
size_t pele::_ArrayMemory< dtype >::size ( ) const [inline]

return the size of the array

Definition at line 58 of file array.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs