ALPSCore reference
Public Types | Public Member Functions | List of all members
alps::alea::view< T > Class Template Reference

#include <core.hpp>

Inheritance diagram for alps::alea::view< T >:
Inheritance graph
Collaboration diagram for alps::alea::view< T >:
Collaboration graph

Public Types

typedef T value_type
 

Public Member Functions

 view ()
 
 view (T *data, size_t size)
 
T * data ()
 
const T * data () const
 
size_t size () const
 

Detailed Description

template<typename T>
class alps::alea::view< T >

Data view as a thin wrapper around a continuous array.

Basically collects a pointer continuous array together with its size. Note that the view does not own the data pointer.

Definition at line 53 of file core.hpp.

Member Typedef Documentation

template<typename T>
typedef T alps::alea::view< T >::value_type

Definition at line 56 of file core.hpp.

Constructor & Destructor Documentation

template<typename T>
alps::alea::view< T >::view ( )
inline

Construct view on nothing

Definition at line 60 of file core.hpp.

template<typename T>
alps::alea::view< T >::view ( T *  data,
size_t  size 
)
inline

Construct view on data area with size

Definition at line 63 of file core.hpp.

Member Function Documentation

template<typename T>
T* alps::alea::view< T >::data ( )
inline

Get pointer to zeroth element

Definition at line 68 of file core.hpp.

template<typename T>
const T* alps::alea::view< T >::data ( ) const
inline

Get pointer to zeroth element

Definition at line 71 of file core.hpp.

template<typename T>
size_t alps::alea::view< T >::size ( ) const
inline

Return size

Definition at line 74 of file core.hpp.


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