Sundance::FieldBase Class Reference

Inheritance diagram for Sundance::FieldBase:

Playa::Handleable< FieldBase > Sundance::CellLIDMappedFieldWrapper Sundance::ExprFieldWrapper

List of all members.

Public Member Functions

 FieldBase ()
virtual ~FieldBase ()
virtual int numElems () const
virtual double getData (int cellDim, int cellID, int elem) const =0
virtual bool isDefined (int cellDim, int cellID, int elem) const =0
virtual bool isPointData () const =0
virtual bool isCellData () const
virtual void getDataBatch (int cellDim, const Array< int > &cellID, const Array< int > &funcElem, Array< double > &batch) const
virtual const CellFilterdomain () const

Detailed Description

Definition at line 59 of file SundanceFieldBase.hpp.

Constructor & Destructor Documentation

Sundance::FieldBase::FieldBase (  )  [inline]

Definition at line 63 of file SundanceFieldBase.hpp.

virtual Sundance::FieldBase::~FieldBase (  )  [inline, virtual]

virtual dtor

Definition at line 66 of file SundanceFieldBase.hpp.

Member Function Documentation

const CellFilter & FieldBase::domain (  )  const [virtual]

Return the cell filter on which this field is defined

Reimplemented in Sundance::ExprFieldWrapper.

Definition at line 68 of file SundanceFieldBase.cpp.

virtual double Sundance::FieldBase::getData ( int  cellDim,
int  cellID,
int  elem 
) const [pure virtual]

void FieldBase::getDataBatch ( int  cellDim,
const Array< int > &  cellID,
const Array< int > &  funcElem,
Array< double > &  batch 
) const [virtual]

Get a batch of data.

batch Output array of data values. This is a 2D array packed into a 1D vector with function index as the faster running index.

Definition at line 48 of file SundanceFieldBase.cpp.

References getData().

virtual bool Sundance::FieldBase::isCellData (  )  const [inline, virtual]

Definition at line 81 of file SundanceFieldBase.hpp.

References isPointData().

virtual bool Sundance::FieldBase::isDefined ( int  cellDim,
int  cellID,
int  elem 
) const [pure virtual]

virtual bool Sundance::FieldBase::isPointData (  )  const [pure virtual]

virtual int Sundance::FieldBase::numElems (  )  const [inline, virtual]

Reimplemented in Sundance::CellLIDMappedFieldWrapper, and Sundance::ExprFieldWrapper.

Definition at line 69 of file SundanceFieldBase.hpp.

Site Contact