LOOS  v2.3.2
loos::Math::SharedArray< T > Class Template Reference

Storage policy for a block of memory wrapped in a boost::shared_array pointer. More...

#include <MatrixStorage.hpp>

Inheritance diagram for loos::Math::SharedArray< T >:

Public Types

typedef const T * const_iterator
 
typedef T * iterator
 

Public Member Functions

 SharedArray (const ulong n)
 
 SharedArray (T *p, const ulong n)
 
T * get (void) const
 
T & operator[] (const ulong i)
 
const T & operator[] (const ulong i) const
 
iterator begin (void)
 
iterator end (void)
 
const_iterator begin (void) const
 
const_iterator end (void) const
 

Protected Member Functions

void set (const SharedArray< T > &s)
 
void copyData (const SharedArray< T > &s)
 
void resize (const ulong n)
 
void reset (void)
 

Detailed Description

template<typename T>
class loos::Math::SharedArray< T >

Storage policy for a block of memory wrapped in a boost::shared_array pointer.

This policy is based on a block of memory that is wrapped in a boost::shared_array pointer. This is the policy that you need to use for interfacing with Atlas.

Handles [potentially] actual allocation of data and range-checking for accesses.

Definition at line 59 of file MatrixStorage.hpp.


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