ESYS13
Revision_
|
Implements the DataAbstract interface for an empty Data object. More...
#include <DataEmpty.h>
Public Member Functions | |
DataEmpty () | |
Default constructor for DataEmpty. | |
virtual | ~DataEmpty () |
Destructor for DataEmpty. | |
virtual std::string | toString () const |
Return a textual representation of the Data object. | |
virtual DataAbstract * | deepCopy () |
Return a deep copy of the current object. | |
virtual DataTypes::ValueType::size_type | getPointOffset (int sampleNo, int dataPointNo) const |
Return the offset for the given sample. NB: This will throw an exception as obviously an empty Data object contains no samples. An implementation is required by parent DataAbstract class. | |
virtual DataTypes::ValueType::size_type | getPointOffset (int sampleNo, int dataPointNo) |
virtual ValueType::size_type | getLength () const |
Return the number of doubles stored for the Data object. As this is an empty Data object, this method will always return 0. | |
virtual DataAbstract * | getSlice (const DataTypes::RegionType ®ion) const |
Factory method that returns a newly created DataEmpty sliced from the current Data object according to the specified region. NB: This will throw an exception as obviously an empty Data object contains no data to slice from. An implementation is required by parent DataAbstract class. | |
virtual void | setSlice (const DataAbstract *value, const DataTypes::RegionType ®ion) |
Set the current Data object according to the specified slice from the given input value. NB: This will throw an exception as obviously an empty Data object contains no data to slice to. An implementation is required by parent DataAbstract class. | |
int | matrixInverse (DataAbstract *out) const |
invert square matricies | |
void | dump (const std::string fileName) const |
dumps the object into a netCDF file | |
bool | hasNaN () const |
return true if data contains NaN. | |
Protected Member Functions | |
virtual DataTypes::ValueType & | getVectorRW () |
Provide access to underlying storage. Internal use only! | |
virtual const DataTypes::ValueType & | getVectorRO () const |
Private Types | |
typedef DataReady | parent |
Implements the DataAbstract interface for an empty Data object.
Description: Implements the DataAbstract interface for an empty Data object.
typedef DataReady escript::DataEmpty::parent [private] |
Reimplemented from escript::DataReady.
Default constructor for DataEmpty.
Description: Default constructor for DataEmpty.
Referenced by deepCopy().
escript::DataEmpty::~DataEmpty | ( | ) | [virtual] |
Destructor for DataEmpty.
DataAbstract * escript::DataEmpty::deepCopy | ( | ) | [virtual] |
void escript::DataEmpty::dump | ( | const std::string | fileName | ) | const [virtual] |
dumps the object into a netCDF file
Reimplemented from escript::DataAbstract.
DataTypes::ValueType::size_type escript::DataEmpty::getLength | ( | ) | const [virtual] |
Return the number of doubles stored for the Data object. As this is an empty Data object, this method will always return 0.
Implements escript::DataAbstract.
DataTypes::ValueType::size_type escript::DataEmpty::getPointOffset | ( | int | sampleNo, |
int | dataPointNo | ||
) | const [virtual] |
Return the offset for the given sample. NB: This will throw an exception as obviously an empty Data object contains no samples. An implementation is required by parent DataAbstract class.
sampleNo | - Input - Sample number. |
dataPointNo | - Input - data-point number. |
Implements escript::DataAbstract.
DataTypes::ValueType::size_type escript::DataEmpty::getPointOffset | ( | int | sampleNo, |
int | dataPointNo | ||
) | [virtual] |
Implements escript::DataAbstract.
DataAbstract * escript::DataEmpty::getSlice | ( | const DataTypes::RegionType & | region | ) | const [virtual] |
Factory method that returns a newly created DataEmpty sliced from the current Data object according to the specified region. NB: This will throw an exception as obviously an empty Data object contains no data to slice from. An implementation is required by parent DataAbstract class.
Implements escript::DataAbstract.
const DataTypes::ValueType & escript::DataEmpty::getVectorRO | ( | ) | const [protected, virtual] |
Implements escript::DataReady.
DataTypes::ValueType & escript::DataEmpty::getVectorRW | ( | ) | [protected, virtual] |
Provide access to underlying storage. Internal use only!
Implements escript::DataReady.
bool escript::DataEmpty::hasNaN | ( | ) | const [inline, virtual] |
return true if data contains NaN.
Implements escript::DataReady.
int escript::DataEmpty::matrixInverse | ( | DataAbstract * | out | ) | const [virtual] |
invert square matricies
out | - Where to store the results |
Reimplemented from escript::DataAbstract.
void escript::DataEmpty::setSlice | ( | const DataAbstract * | value, |
const DataTypes::RegionType & | region | ||
) | [virtual] |
Set the current Data object according to the specified slice from the given input value. NB: This will throw an exception as obviously an empty Data object contains no data to slice to. An implementation is required by parent DataAbstract class.
value | Input - Data to copy from |
region | Input - Region to copy. |
Implements escript::DataReady.
std::string escript::DataEmpty::toString | ( | ) | const [virtual] |
Return a textual representation of the Data object.
Implements escript::DataAbstract.