escript  Revision_
Public Member Functions | Private Member Functions | Private Attributes
escript::WrappedArray Class Reference

#include <WrappedArray.h>

List of all members.

Public Member Functions

 WrappedArray (const boost::python::object &obj_in)
 ~WrappedArray ()
unsigned int getRank () const
const DataTypes::ShapeTypegetShape () const
double getElt () const
double getElt (unsigned int i) const
double getElt (unsigned int i, unsigned int j) const
double getElt (unsigned int i, unsigned int j, unsigned int k) const
double getElt (unsigned int i, unsigned int j, unsigned int k, unsigned int m) const
void convertArray () const

Private Member Functions

template<typename T >
void convertNumpyArray (const T *array, const std::vector< int > &strides) const

Private Attributes

const boost::python::object & obj
int rank
escript::DataTypes::ShapeType shape
double m_scalar
double * dat

Constructor & Destructor Documentation

WrappedArray::WrappedArray ( const boost::python::object &  obj_in)

References dat, m_scalar, rank, and shape.

References dat.


Member Function Documentation

template<typename T >
void WrappedArray::convertNumpyArray ( const T *  array,
const std::vector< int > &  strides 
) const [private]
double escript::WrappedArray::getElt ( ) const [inline]
double escript::WrappedArray::getElt ( unsigned int  i) const [inline]

References dat, and obj.

double escript::WrappedArray::getElt ( unsigned int  i,
unsigned int  j 
) const [inline]
double escript::WrappedArray::getElt ( unsigned int  i,
unsigned int  j,
unsigned int  k 
) const [inline]
double escript::WrappedArray::getElt ( unsigned int  i,
unsigned int  j,
unsigned int  k,
unsigned int  m 
) const [inline]
unsigned int escript::WrappedArray::getRank ( ) const [inline]

Member Data Documentation

double* escript::WrappedArray::dat [mutable, private]

Referenced by getElt(), and WrappedArray().

const boost::python::object& escript::WrappedArray::obj [private]

Referenced by getElt().


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