#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 |
size_t | getSampleBufferSize () const |
virtual DataTypes::ValueType & | getVectorRW ()=0 |
Provide access to underlying storage. Internal use only! | |
virtual const DataTypes::ValueType & | getVectorRO () const =0 |
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 |
typedef DataAbstract escript::DataReady::parent [private] |
Reimplemented in escript::DataConstant, escript::DataEmpty, escript::DataExpanded, and escript::DataTagged.
escript::DataReady::DataReady | ( | const FunctionSpace & | what, | |
const ShapeType & | shape, | |||
bool | isDataEmpty = false | |||
) |
escript::DataReady::~DataReady | ( | ) | [inline] |
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().
const double * escript::DataReady::getSampleDataRO | ( | ValueType::size_type | sampleNo | ) | const [inline] |
References escript::DataAbstract::getPointOffset(), and getVectorRO().
Referenced by escript::Data::getSampleDataRO().
size_t escript::DataReady::getSampleBufferSize | ( | ) | const [inline, virtual] |
This function is required primarily for LazyData. For ReadyData it returns 1. (Behaviour subject to change).
Implements escript::DataAbstract.
virtual DataTypes::ValueType& escript::DataReady::getVectorRW | ( | ) | [pure virtual] |
Provide access to underlying storage. Internal use only!
Implemented in escript::DataConstant, escript::DataEmpty, escript::DataExpanded, and escript::DataTagged.
Referenced by escript::Data::copyWithMask(), getDataAtOffsetRW(), and getSampleDataRW().
virtual const DataTypes::ValueType& escript::DataReady::getVectorRO | ( | ) | const [pure virtual] |
Implemented in escript::DataConstant, escript::DataEmpty, escript::DataExpanded, and escript::DataTagged.
Referenced by escript::binaryOp(), getDataAtOffsetRO(), getSampleDataRO(), and escript::Data::toListOfTuples().
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::DataConstant, escript::DataEmpty, escript::DataExpanded, and escript::DataTagged.
Referenced by escript::Data::setSlice().
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().
DataReady_ptr escript::DataReady::resolve | ( | ) | [virtual] |
Return a data object with all points resolved.
Implements escript::DataAbstract.
References escript::DataAbstract::getPtr().