RVL::RnArray< Scalar > Class Template Reference

An implementation of a LDC containing an array of Scalars. More...

#include <rn.hh>

Inheritance diagram for RVL::RnArray< Scalar >:

RVL::LocalDataContainer< Scalar > RVL::DataContainer RVL::Writeable List of all members.

Public Member Functions

 RnArray (const RnArray< Scalar > &x)
 deep copy, following example of stl containers
 RnArray (size_t _n)
 main constructor: dimension passed as sole argument.
 RnArray (LocalDataContainer< Scalar > &rn, size_t len, size_t _start=0)
 constructor which gives a "view" of another RnArray.
 ~RnArray ()
size_t getSize () const
Scalar * getData ()
Scalar const * getData () const
void write (RVLException &str) const
ostream & write (ostream &str) const

Detailed Description

template<class Scalar>
class RVL::RnArray< Scalar >

An implementation of a LDC containing an array of Scalars.

This class will likely serve as the base class for a wide variety of LDCs.

Definition at line 45 of file rn.hh.


Constructor & Destructor Documentation

template<class Scalar>
RVL::RnArray< Scalar >::RnArray ( const RnArray< Scalar > &  x  ) 

deep copy, following example of stl containers

Definition at line 58 of file rn.hh.

template<class Scalar>
RVL::RnArray< Scalar >::RnArray ( size_t  _n  ) 

main constructor: dimension passed as sole argument.

Definition at line 66 of file rn.hh.

template<class Scalar>
RVL::RnArray< Scalar >::RnArray ( LocalDataContainer< Scalar > &  rn,
size_t  len,
size_t  _start = 0 
)

constructor which gives a "view" of another RnArray.

Definition at line 78 of file rn.hh.

template<class Scalar>
RVL::RnArray< Scalar >::~RnArray (  ) 

Definition at line 92 of file rn.hh.


Member Function Documentation

template<class Scalar>
size_t RVL::RnArray< Scalar >::getSize (  )  const [virtual]

Implements RVL::LocalDataContainer< Scalar >.

Definition at line 94 of file rn.hh.

Referenced by RVL::RnDataContainerFactory< T >::isCompatible().

template<class Scalar>
Scalar* RVL::RnArray< Scalar >::getData (  )  [virtual]

Implements RVL::LocalDataContainer< Scalar >.

Definition at line 96 of file rn.hh.

Referenced by RVL::matvec< T >::getData(), RVL::matvec< T >::getElement(), RVL::matvec< T >::matvec(), and RVL::matvec< T >::operator()().

template<class Scalar>
Scalar const* RVL::RnArray< Scalar >::getData (  )  const [virtual]

Implements RVL::LocalDataContainer< Scalar >.

Definition at line 101 of file rn.hh.

template<class Scalar>
void RVL::RnArray< Scalar >::write ( RVLException str  )  const

Reimplemented from RVL::Writeable.

Definition at line 106 of file rn.hh.

template<class Scalar>
ostream& RVL::RnArray< Scalar >::write ( ostream &  str  )  const [virtual]

Implements RVL::Writeable.

Definition at line 120 of file rn.hh.


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for LocalRVL by  doxygen 1.4.7