escript  Revision_
Macros
Data.cpp File Reference
#include "esysUtils/first.h"
#include "Data.h"
#include "AbstractContinuousDomain.h"
#include "DataConstant.h"
#include "DataEmpty.h"
#include "DataExpanded.h"
#include "DataLazy.h"
#include "DataTagged.h"
#include "EscriptParams.h"
#include "FunctionSpaceException.h"
#include "FunctionSpaceFactory.h"
#include "UnaryFuncs.h"
#include "esysUtils/blocktimer.h"
#include <algorithm>
#include <fstream>
#include <functional>
#include <sstream>
#include <vector>
#include <boost/python/dict.hpp>
#include <boost/python/extract.hpp>
#include <boost/python/long.hpp>
#include "WrappedArray.h"

Macros

#define ESNEEDPYTHON
 
#define AUTOLAZYON   escriptParams.getAUTOLAZY()
 
#define MAKELAZYOP(X)
 
#define MAKELAZYOPOFF(X, Y)
 
#define MAKELAZYOP2(X, Y, Z)
 
#define MAKELAZYBINSELF(R, X)
 
#define MAKELAZYBIN(R, X)
 
#define MAKELAZYBIN2(L, R, X)
 
#define CHECK_DO_CRES   escriptParams.getRESOLVE_COLLECTIVE()
 

Macro Definition Documentation

#define AUTOLAZYON   escriptParams.getAUTOLAZY()
#define CHECK_DO_CRES   escriptParams.getRESOLVE_COLLECTIVE()
#define ESNEEDPYTHON
#define MAKELAZYBIN (   R,
 
)
Value:
do {\
if (isLazy() || R.isLazy() || (AUTOLAZYON && (isExpanded() || R.isExpanded()))) \
{\
DataLazy* c=new DataLazy(m_data,R.borrowDataPtr(),X);\
return Data(c);\
}\
}while(0)
#define AUTOLAZYON
Definition: Data.cpp:58
int isExpanded(const escript::Data *data)
Return true if data can be treated as expanded.
Definition: DataC.cpp:97
Data represents a collection of datapoints.
Definition: Data.h:68
Wraps an expression tree of other DataObjects. The data will be evaluated when required.
Definition: DataLazy.h:102

Referenced by escript::Data::powD().

#define MAKELAZYBIN2 (   L,
  R,
 
)
Value:
do {\
if (L.isLazy() || R.isLazy() || (AUTOLAZYON && (L.isExpanded() || R.isExpanded()))) \
{\
DataLazy* c=new DataLazy(L.borrowDataPtr(),R.borrowDataPtr(),X);\
return Data(c);\
}\
}while(0)
#define AUTOLAZYON
Definition: Data.cpp:58
Data represents a collection of datapoints.
Definition: Data.h:68
Wraps an expression tree of other DataObjects. The data will be evaluated when required.
Definition: DataLazy.h:102

Referenced by escript::operator*(), escript::operator+(), escript::operator-(), and escript::operator/().

#define MAKELAZYBINSELF (   R,
 
)
Value:
do {\
if (isLazy() || R.isLazy() || (AUTOLAZYON && (isExpanded() || R.isExpanded()))) \
{\
DataLazy* c=new DataLazy(m_data,R.borrowDataPtr(),X);\
/* m_data=c->getPtr();*/ set_m_data(c->getPtr());\
return (*this);\
}\
}while(0)
#define AUTOLAZYON
Definition: Data.cpp:58
int isExpanded(const escript::Data *data)
Return true if data can be treated as expanded.
Definition: DataC.cpp:97
Wraps an expression tree of other DataObjects. The data will be evaluated when required.
Definition: DataLazy.h:102

Referenced by escript::Data::operator*=(), escript::Data::operator+=(), escript::Data::operator-=(), and escript::Data::operator/=().

#define MAKELAZYOP (   X)
#define MAKELAZYOP2 (   X,
  Y,
 
)
Value:
do {\
if (isLazy() || (AUTOLAZYON && m_data->isExpanded())) \
{\
DataLazy* c=new DataLazy(borrowDataPtr(),X,Y,Z);\
return Data(c);\
}\
}while(0)
#define AUTOLAZYON
Definition: Data.cpp:58
Data represents a collection of datapoints.
Definition: Data.h:68
Wraps an expression tree of other DataObjects. The data will be evaluated when required.
Definition: DataLazy.h:102

Referenced by escript::Data::swapaxes().

#define MAKELAZYOPOFF (   X,
 
)
Value:
do {\
if (isLazy() || (AUTOLAZYON && m_data->isExpanded())) \
{\
DataLazy* c=new DataLazy(borrowDataPtr(),X,Y);\
return Data(c);\
}\
}while(0)
#define AUTOLAZYON
Definition: Data.cpp:58
Data represents a collection of datapoints.
Definition: Data.h:68
Wraps an expression tree of other DataObjects. The data will be evaluated when required.
Definition: DataLazy.h:102

Referenced by escript::Data::trace(), escript::Data::transpose(), escript::Data::whereNonZero(), and escript::Data::whereZero().