|
escript
Revision_
|
#include <DataReady.h>
Public Member Functions | |
| DataReady (const FunctionSpace &what, const ShapeType &shape, bool isDataEmpty=false) | |
| ~DataReady () | |
| double * | getSampleDataRW (ValueType::size_type sampleNo) |
| Return the sample data for the given sample number. | |
| const double * | getSampleDataRO (ValueType::size_type sampleNo) const |
| virtual DataTypes::ValueType & | getVectorRW ()=0 |
| Provide access to underlying storage. Internal use only! | |
| virtual const DataTypes::ValueType & | getVectorRO () const =0 |
| virtual bool | hasNaN () const =0 |
| return true if data contains NaN. | |
| virtual void | setSlice (const DataAbstract *value, const DataTypes::RegionType ®ion)=0 |
| Copy the specified region from the given object. | |
| DataTypes::ValueType::const_reference | getDataAtOffsetRO (DataTypes::ValueType::size_type i) const |
| get a reference to the beginning of a data point | |
| DataTypes::ValueType::reference | getDataAtOffsetRW (DataTypes::ValueType::size_type i) |
| DataReady_ptr | resolve () |
| Return a data object with all points resolved. | |
Private Types | |
| typedef DataAbstract | parent |
Base class for Data which do not need to be resolved. Internally this means they have getVectorRO and getVectorRW methods.
typedef DataAbstract escript::DataReady::parent [private] |
Reimplemented in escript::DataExpanded, escript::DataTagged, escript::DataConstant, and escript::DataEmpty.
| escript::DataReady::DataReady | ( | const FunctionSpace & | what, |
| const ShapeType & | shape, | ||
| bool | isDataEmpty = false |
||
| ) |
| escript::DataReady::~DataReady | ( | ) | [inline] |
| DataTypes::ValueType::const_reference escript::DataReady::getDataAtOffsetRO | ( | DataTypes::ValueType::size_type | i | ) | const [inline] |
get a reference to the beginning of a data point
References getVectorRO().
Referenced by escript::Data::getDataAtOffsetRO(), and escript::Data::getDataPointRO().
| DataTypes::ValueType::reference escript::DataReady::getDataAtOffsetRW | ( | DataTypes::ValueType::size_type | i | ) | [inline] |
References getVectorRW().
Referenced by escript::Data::getDataAtOffsetRW(), and escript::Data::getDataPointRW().
| const double * escript::DataReady::getSampleDataRO | ( | ValueType::size_type | sampleNo | ) | const [inline] |
References escript::DataAbstract::getPointOffset(), and getVectorRO().
Referenced by escript::Data::getSampleDataRO().
| DataAbstract::ValueType::value_type * escript::DataReady::getSampleDataRW | ( | ValueType::size_type | sampleNo | ) | [inline] |
Return the sample data for the given sample number.
References escript::DataAbstract::getPointOffset(), and getVectorRW().
Referenced by escript::Data::getSampleDataRW().
| virtual const DataTypes::ValueType& escript::DataReady::getVectorRO | ( | ) | const [pure virtual] |
Implemented in escript::DataTagged, escript::DataConstant, escript::DataExpanded, and escript::DataEmpty.
Referenced by escript::binaryOp(), getDataAtOffsetRO(), getSampleDataRO(), escript::Data::interpolateFromTable1D(), escript::Data::interpolateFromTable2D(), escript::Data::interpolateFromTable3D(), escript::Data::nonuniforminterp(), escript::Data::nonuniformslope(), and escript::Data::toListOfTuples().
| virtual DataTypes::ValueType& escript::DataReady::getVectorRW | ( | ) | [pure virtual] |
Provide access to underlying storage. Internal use only!
Implemented in escript::DataTagged, escript::DataConstant, escript::DataExpanded, and escript::DataEmpty.
Referenced by escript::Data::copyWithMask(), getDataAtOffsetRW(), escript::Data::getExpandedVectorReference(), getSampleDataRW(), escript::TestDomain::getX(), escript::Data::interpolateFromTable1D(), escript::Data::interpolateFromTable2D(), escript::Data::interpolateFromTable3D(), escript::Data::nonuniforminterp(), and escript::Data::nonuniformslope().
| virtual bool escript::DataReady::hasNaN | ( | ) | const [pure virtual] |
return true if data contains NaN.
Implemented in escript::DataTagged, escript::DataExpanded, escript::DataEmpty, and escript::DataConstant.
Referenced by escript::Data::infWorker(), escript::Data::LsupWorker(), and escript::Data::supWorker().
| DataReady_ptr escript::DataReady::resolve | ( | ) | [virtual] |
Return a data object with all points resolved.
Implements escript::DataAbstract.
References escript::DataAbstract::getPtr().
| virtual void escript::DataReady::setSlice | ( | const DataAbstract * | value, |
| const DataTypes::RegionType & | region | ||
| ) | [pure virtual] |
Copy the specified region from the given object.
| value | - Input - Data to copy from |
| region | - Input - Region to copy. |
Implemented in escript::DataTagged, escript::DataExpanded, escript::DataConstant, and escript::DataEmpty.
Referenced by escript::Data::setSlice().
1.7.6.1