Sundance::DiscreteFunctionData Class Reference

Inheritance diagram for Sundance::DiscreteFunctionData:

Sundance::DiscreteFuncDataStub Sundance::CommonFuncDataStub

List of all members.

Public Member Functions

 DiscreteFunctionData (const DiscreteSpace &space)
 DiscreteFunctionData (const DiscreteSpace &space, const Playa::Vector< double > &vec)
 DiscreteFunctionData (const DiscreteSpace &space, const double &constantValue)
virtual ~DiscreteFunctionData ()
void updateGhosts () const
void setVector (const Vector< double > &vec)
const Vector< double > & getVector () const
const DiscreteSpacediscreteSpace () const
const Meshmesh () const
const RCP< DOFMapBase > & map () const
RCP< const MapStructuregetLocalValues (int cellDim, const Array< int > &cellLID, Array< Array< double > > &localValues) const
RCP< GhostView< double > > ghostView () const
const BasisArraybasis () const

Static Public Member Functions

static const DiscreteFunctionDatagetData (const DiscreteFuncElement *ufe)
static DiscreteFunctionDatagetData (DiscreteFuncElement *ufe)

Private Attributes

DiscreteSpace space_
Vector< double > vector_
RCP< GhostView< double > > ghostView_
bool ghostsAreValid_

Detailed Description


Definition at line 47 of file SundanceDiscreteFunctionData.hpp.

Constructor & Destructor Documentation

DiscreteFunctionData::DiscreteFunctionData ( const DiscreteSpace space  ) 

Definition at line 51 of file SundanceDiscreteFunctionData.cpp.

DiscreteFunctionData::DiscreteFunctionData ( const DiscreteSpace space,
const Playa::Vector< double > &  vec 

Definition at line 70 of file SundanceDiscreteFunctionData.cpp.

DiscreteFunctionData::DiscreteFunctionData ( const DiscreteSpace space,
const double &  constantValue 

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

virtual destructor

Definition at line 61 of file SundanceDiscreteFunctionData.hpp.

Member Function Documentation

const BasisArray& Sundance::DiscreteFunctionData::basis (  )  const [inline]

Definition at line 92 of file SundanceDiscreteFunctionData.hpp.

References Sundance::DiscreteSpace::basis(), and space_.

const DiscreteSpace& Sundance::DiscreteFunctionData::discreteSpace (  )  const [inline]

DiscreteFunctionData * DiscreteFunctionData::getData ( DiscreteFuncElement ufe  )  [static]

const DiscreteFunctionData * DiscreteFunctionData::getData ( const DiscreteFuncElement ufe  )  [static]

RCP< const MapStructure > DiscreteFunctionData::getLocalValues ( int  cellDim,
const Array< int > &  cellLID,
Array< Array< double > > &  localValues 
) const

const Vector<double>& Sundance::DiscreteFunctionData::getVector (  )  const [inline]

RCP<GhostView<double> > Sundance::DiscreteFunctionData::ghostView (  )  const [inline]

Definition at line 88 of file SundanceDiscreteFunctionData.hpp.

References ghostView_, and updateGhosts().

Referenced by Sundance::ExprFieldWrapper::getData().

const RCP<DOFMapBase>& Sundance::DiscreteFunctionData::map (  )  const [inline]

Definition at line 79 of file SundanceDiscreteFunctionData.hpp.

References Sundance::DiscreteSpace::map(), and space_.

const Mesh& Sundance::DiscreteFunctionData::mesh (  )  const [inline]

void DiscreteFunctionData::setVector ( const Vector< double > &  vec  ) 

Definition at line 101 of file SundanceDiscreteFunctionData.cpp.

References ghostsAreValid_, and vector_.

Referenced by Sundance::setDiscreteFunctionVector().

void DiscreteFunctionData::updateGhosts (  )  const

Member Data Documentation

Definition at line 109 of file SundanceDiscreteFunctionData.hpp.

Referenced by setVector(), and updateGhosts().

RCP<GhostView<double> > Sundance::DiscreteFunctionData::ghostView_ [mutable, private]

Definition at line 107 of file SundanceDiscreteFunctionData.hpp.

Referenced by ghostView(), and updateGhosts().

Definition at line 103 of file SundanceDiscreteFunctionData.hpp.

Referenced by basis(), discreteSpace(), map(), mesh(), and updateGhosts().

Site Contact