ESScript  Revision_4488
Public Member Functions | Private Member Functions | Private Attributes | List of all members
escript::WrappedArray Class Reference

#include <WrappedArray.h>

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.

WrappedArray::~WrappedArray ( )

References dat.

Member Function Documentation

void WrappedArray::convertArray ( ) const
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
const DataTypes::ShapeType & escript::WrappedArray::getShape ( ) const
inline

Member Data Documentation

double* escript::WrappedArray::dat
mutableprivate
double escript::WrappedArray::m_scalar
private

Referenced by getElt(), and WrappedArray().

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

Referenced by getElt().

int escript::WrappedArray::rank
private
escript::DataTypes::ShapeType escript::WrappedArray::shape
private

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