17 #ifndef __ESCRIPT_DATALAZY_H__ 18 #define __ESCRIPT_DATALAZY_H__ 175 int dataPointNo)
const;
331 #endif // __ESCRIPT_DATALAZY_H__ void LazyNodeSetup()
Definition: DataLazy.cpp:388
void resolveToIdentity()
resolve the expression can store it in the current node The current node will be converted to an iden...
Definition: DataLazy.cpp:1560
#define POINTER_WRAPPER_CLASS(x)
Definition: Pointers.h:32
std::string toString() const
Write the data as a string.
Definition: DataLazy.cpp:1733
const DataTypes::RealVectorType * resolveNodeCondEval(int tid, int sampleNo, size_t &roffset) const
Definition: DataLazy.cpp:1202
int m_axis_offset
Definition: DataLazy.h:230
ES_optype m_op
Definition: DataLazy.h:224
DataLazy_ptr m_left
Definition: DataLazy.h:223
size_t m_height
Definition: DataLazy.h:238
DataReady_ptr m_id
Definition: DataLazy.h:222
DataTypes::vec_size_type size_type
Definition: DataVectorAlt.h:49
std::vector< std::pair< int, int > > RegionType
Definition: DataTypes.h:43
size_t getMaxSampleSize() const
Definition: AbstractContinuousDomain.cpp:22
const DataTypes::RealVectorType * resolveNodeSample(int tid, int sampleNo, size_t &roffset) const
Definition: DataLazy.cpp:938
int m_SM
Definition: DataLazy.h:232
DataTypes::RealVectorType::size_type getPointOffset(int sampleNo, int dataPointNo) const
Return the offset for the given sample. This returns the offset for the given point into the containe...
Definition: DataLazy.cpp:1948
DataReady_ptr resolve()
Evaluate the lazy expression.
Definition: DataLazy.cpp:1587
char m_readytype
Definition: DataLazy.h:228
DataTypes::RealVectorType::size_type getLength() const
This method throws an exception. It does not really make sense to ask this question of lazy data...
Definition: DataLazy.cpp:1907
std::vector< int > ShapeType
The shape of a single datapoint.
Definition: DataTypes.h:42
boost::shared_ptr< DataAbstract > DataAbstract_ptr
Definition: DataAbstract.h:51
DataAbstract * deepCopy() const
Return a deep copy of the current object.
Definition: DataLazy.cpp:1880
DataReady_ptr resolveNodeWorker()
resolve to a ReadyData object using storage at nodes
Definition: DataLazy.cpp:1676
DataTypes::RealVectorType m_samples
Definition: DataLazy.h:241
const DataTypes::RealVectorType * resolveNodeBinary(int tid, int sampleNo, size_t &roffset) const
Definition: DataLazy.cpp:1246
~DataLazy()
Definition: DataLazy.cpp:751
void collapse() const
Converts the DataLazy into an IDENTITY storing the value of the expression. This method uses the orig...
Definition: DataLazy.cpp:921
DataLazy_ptr m_right
Definition: DataLazy.h:223
void makeIdentity(const DataReady_ptr &p)
helper method for resolveToIdentity and the identity constructor
Definition: DataLazy.cpp:1568
void intoString(std::ostringstream &oss) const
Definition: DataLazy.cpp:1754
DataReady_ptr collapseToReady() const
Evaluates the expression using methods on Data. This does the work for the collapse method...
Definition: DataLazy.cpp:763
DataAbstract parent
Definition: DataLazy.h:50
ES_optype
Definition: ES_optype.h:26
const DataTypes::RealVectorType * resolveSample(int sampleNo, size_t &roffset) const
Compute the value of the expression for the given sample.
Definition: DataLazy.cpp:1532
const DataTypes::RealVectorType * resolveNodeNP1OUT_P(int tid, int sampleNo, size_t &roffset) const
Definition: DataLazy.cpp:1118
int m_SL
Definition: DataLazy.h:232
size_t m_children
Definition: DataLazy.h:237
const DataTypes::RealVectorType * resolveNodeUnary(int tid, int sampleNo, size_t &roffset) const
Definition: DataLazy.cpp:987
DataTypes::ShapeType ShapeType
Definition: DataLazy.h:51
void intoTreeString(std::ostringstream &oss, std::string indent) const
Definition: DataLazy.cpp:1823
const DataTypes::RealVectorType * resolveNodeTProd(int tid, int sampleNo, size_t &roffset) const
Definition: DataLazy.cpp:1473
boost::shared_ptr< const DataLazy > const_DataLazy_ptr
Definition: DataLazy.h:45
const DataTypes::RealVectorType * resolveNodeNP1OUT(int tid, int sampleNo, size_t &roffset) const
Definition: DataLazy.cpp:1073
const DataTypes::RealVectorType * resolveNodeReduction(int tid, int sampleNo, size_t &roffset) const
Definition: DataLazy.cpp:1021
int m_transpose
Definition: DataLazy.h:231
size_t m_samplesize
Definition: DataLazy.h:226
virtual void transpose(DataAbstract *ev, int axis_offset)
Transpose each data point of this Data object around the given axis.
Definition: DataAbstract.cpp:245
Wraps an expression tree of other DataObjects. The data will be evaluated when required.
Definition: DataLazy.h:47
bool actsExpanded() const
if resolve() was called would it produce expanded data.
Definition: DataLazy.cpp:1993
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:29
int m_SR
Definition: DataLazy.h:232
virtual void setToZero()
Produces an IDENTITY DataLazy containing zero. The result will have the same shape and functionspace ...
Definition: DataLazy.cpp:1978
const DataTypes::RealVectorType * resolveNodeNP1OUT_2P(int tid, int sampleNo, size_t &roffset) const
Definition: DataLazy.cpp:1166
Definition: DataAbstract.h:61
void resolveGroupWorker(std::vector< DataLazy *> &dats)
Definition: DataLazy.cpp:1596
boost::shared_ptr< DataReady > DataReady_ptr
Definition: DataAbstract.h:56
int * m_sampleids
Definition: DataLazy.h:240
DataLazy(DataAbstract_ptr p)
Create an IDENTITY DataLazy for the given DataAbstract.
Definition: DataLazy.cpp:407
DataLazy_ptr m_mask
Definition: DataLazy.h:223
DataAbstract * getSlice(const DataTypes::RegionType ®ion) const
Return the given slice from this object.
Definition: DataLazy.cpp:1914
boost::shared_ptr< DataLazy > DataLazy_ptr
Definition: DataLazy.h:42
double m_tol
Definition: DataLazy.h:235