18 #if !defined escript_DataC_20040611_H
19 #define escript_DataC_20040611_H
50 #define updateFunctionSpaceType(_FS,_DATA) _FS=(isEmpty(_DATA) ? _FS : getFunctionSpaceType(_DATA))
58 #define functionSpaceTypeEqual(_FS,_DATA) ( (isEmpty(_DATA) || _FS==getFunctionSpaceType(_DATA)) ) ? 1 : 0
int isEmpty(escriptDataC *data)
Returns the true if the data are empty or data is NULL.
Definition: DataC.cpp:117
int isDataPointShapeEqual(escriptDataC *data, int rank, const int *dimensions)
Return true if the input shape matches the data point shape for data.
Definition: DataC.cpp:30
void * m_dataPtr
Definition: DataC.h:31
int getNumDataPointsPerSample(escriptDataC *data)
Returns the number of data points per sample.
Definition: DataC.cpp:40
double * getDataRW(escriptDataC *data)
Return getSampleDataRWFast(escriptDataC* data, 0) if there are samples. if not, returns NULL...
Definition: DataC.cpp:171
int getFunctionSpaceType(escriptDataC *data)
Return the function space type code.
Definition: DataC.cpp:23
int getDataPointShape(escriptDataC *data, int i)
Returns the value of the i-th component of the shape of the point data.
Definition: DataC.cpp:75
int getDataPointRank(escriptDataC *data)
Returns the rank of the point data for the data.
Definition: DataC.cpp:65
Provide a wrapper around a Data object so Data may be accessed from C.
Definition: DataC.h:30
double * getSampleDataRWFast(escriptDataC *data, int sampleNo)
Return a pointer to the data for the given sample number. Fast version of getSampledataRW: does no er...
Definition: DataC.cpp:165
double * getSampleDataRO(escriptDataC *data, int sampleNo)
Return a pointer to the data for the given sample number. if data is empty NULL is returned...
Definition: DataC.cpp:131
double * getSampleDataRW(escriptDataC *data, int sampleNo)
Definition: DataC.cpp:145
void requireWrite(escriptDataC *data)
Ensure that this object is ready for writing. It will be resolved and copied if it is currently share...
Definition: DataC.cpp:183
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:64
double * getSampleDataROFast(escriptDataC *data, int sampleNo)
Return a pointer to the data for the given sample number. Fast version of getSampledataRO: does no er...
Definition: DataC.cpp:159
int getDataPointSize(escriptDataC *data)
Return the number of doubles needed for each data point.
Definition: DataC.cpp:91
int isExpanded(escriptDataC *data)
Return true if data can be treated as expanded.
Definition: DataC.cpp:103
#define __const
Definition: escriptcore/src/system_dep.h:86
int numSamplesEqual(escriptDataC *data, int numDataPointsPerSample, int numSamples)
Return true if the number of data points per sample and the number of samples equal the input values...
Definition: DataC.cpp:54