LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | List of all members
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>

Public Types

typedef const Tconst_iterator
 
typedef Titerator
 

Public Member Functions

 SharedArray (const ulong n)
 
 SharedArray (T *p, const ulong n)
 
Tget (void) const
 
Toperator[] (const ulong i)
 
const Toperator[] (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.


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