Go to the documentation of this file.
19 #if !defined escript_DataReady_20081008_H
20 #define escript_DataReady_20081008_H
36 class DataReady :
public DataAbstract
DataTypes::RealVectorType::const_reference getDataAtOffsetRO(DataTypes::RealVectorType::size_type i) const
get a reference to the beginning of a data point
Definition: DataReady.h:247
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:30
virtual const DataTypes::CplxVectorType & getVectorROC() const =0
double real_t
type of all real-valued scalars in escript
Definition: DataTypes.h:79
const DataTypes::real_t * getSampleDataRO(DataTypes::RealVectorType::size_type sampleNo, DataTypes::real_t dummy=0) const
Definition: DataReady.h:232
virtual const DataTypes::RealVectorType & getVectorRO() const =0
virtual DataTypes::CplxVectorType & getVectorRWC()=0
const typedef ElementType & const_reference
Definition: DataVectorAlt.h:94
DataTypes::vec_size_type size_type
Definition: DataVectorAlt.h:92
DataTypes::CplxVectorType::reference getDataAtOffsetRWC(DataTypes::CplxVectorType::size_type i)
Definition: DataReady.h:269
virtual bool hasInf() const =0
Return true if data contains Inf or -Inf.
virtual void replaceInf(DataTypes::real_t value)=0
replaces all (+/-)Inf values with value
DataTypes::CplxVectorType::const_reference getDataAtOffsetROC(DataTypes::CplxVectorType::size_type i) const
Definition: DataReady.h:262
DataAbstract(const FunctionSpace &what, const ShapeType &shape, bool isDataEmpty=false, bool isCplx=false)
Constructor for DataAbstract.
Definition: DataAbstract.cpp:76
std::vector< int > ShapeType
The shape of a single datapoint.
Definition: DataTypes.h:71
virtual DataTypes::RealVectorType::size_type getPointOffset(int sampleNo, int dataPointNo) const =0
Return the offset for the given sample. This returns the offset for the given point into the containe...
DataTypes::real_t * getSampleDataRW(DataTypes::RealVectorType::size_type sampleNo, DataTypes::real_t dummy=0)
Return the sample data for the given sample number.
Definition: DataReady.h:218
DataReady_ptr resolve()
Return a data object with all points resolved.
Definition: DataReady.cpp:44
std::vector< std::pair< int, int > > RegionType
Definition: DataTypes.h:72
DataAbstract_ptr getPtr()
Return shared pointer managing this object.
Definition: DataAbstract.cpp:39
DataAbstract parent
Definition: DataReady.h:52
~DataReady()
Definition: DataReady.h:55
virtual void setSlice(const DataAbstract *value, const DataTypes::RegionType ®ion)=0
Copy the specified region from the given object.
Definition: AbstractContinuousDomain.cpp:23
virtual DataTypes::RealVectorType & getVectorRW()=0
Provide access to underlying storage. Internal use only!
Definition: DataAbstract.h:76
virtual DataTypes::RealVectorType & getTypedVectorRW(DataTypes::real_t dummy)=0
These versions use the type system rather than method name to determine return type.
DataReady(const FunctionSpace &what, const ShapeType &shape, bool isDataEmpty=false)
Definition: DataReady.cpp:37
ElementType & reference
Definition: DataVectorAlt.h:93
std::complex< real_t > cplx_t
complex data type
Definition: DataTypes.h:82
DataTypes::RealVectorType::reference getDataAtOffsetRW(DataTypes::RealVectorType::size_type i)
Definition: DataReady.h:254
boost::shared_ptr< DataReady > DataReady_ptr
Definition: DataAbstract.h:71
DataTypes::ShapeType ShapeType
Definition: DataAbstract.h:81
virtual const DataTypes::RealVectorType & getTypedVectorRO(DataTypes::real_t dummy) const =0
virtual bool hasNaN() const =0
return true if data contains NaN.
virtual void replaceNaN(DataTypes::real_t value)=0
replaces all NaN values with value