libSplash
Public Member Functions | List of all members
splash::DomainData Class Reference

#include <DomainData.hpp>

Inheritance diagram for splash::DomainData:
Inheritance graph
[legend]
Collaboration diagram for splash::DomainData:
Collaboration graph
[legend]

Public Member Functions

 DomainData (const Domain &domain_, const Dimensions elements_, size_t datatypeSize_, DCDataType datatype_)
 
virtual ~DomainData ()
 
DimensionsgetElements ()
 
void * getData ()
 
void freeData ()
 
size_t getTypeSize ()
 
DCDataType getDataType ()
 
void setLoadingReference (int dataClass, hid_t handle, int32_t id, const char *name, const Dimensions dstBuffer, const Dimensions dstOffset, const Dimensions srcSize, const Dimensions srcOffset)
 
DomainH5RefgetLoadingReference ()
 
std::string getFormatString () throw (DCException)
 
- Public Member Functions inherited from splash::Domain
 Domain ()
 
 Domain (Dimensions offset_, Dimensions size_)
 
uint32_t getDims () const
 
DimensionsgetSize ()
 
const Dimensions getSize () const
 
DimensionsgetOffset ()
 
const Dimensions getOffset () const
 
Dimensions getBack () const
 
bool operator== (Domain const &other) const
 
bool operator!= (Domain const &other) const
 
std::string toString () const
 

Additional Inherited Members

- Static Public Member Functions inherited from splash::Domain
static bool testIntersection (const Domain &d1, const Domain &d2)
 

Detailed Description

Extends a Domain with actual data elements.

Definition at line 56 of file DomainData.hpp.

Constructor & Destructor Documentation

◆ DomainData()

splash::DomainData::DomainData ( const Domain domain_,
const Dimensions  elements_,
size_t  datatypeSize_,
DCDataType  datatype_ 
)
inline

Constructor. Allocates enough memory to hold 'elements' data of 'type'.

Parameters
domain_The underlying Domain.
elements_Number of data elements in every dimension.
datatypeSize_Size of each element in bytes.
datatype_Internal representation of HDF5 datatype.

Definition at line 69 of file DomainData.hpp.

Here is the call graph for this function:

◆ ~DomainData()

virtual splash::DomainData::~DomainData ( )
inlinevirtual

Destructor. Deletes allocated memory.

Definition at line 86 of file DomainData.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ freeData()

void splash::DomainData::freeData ( )
inline

Deallocate data of this subdomain, should be used for lazy loading.

Definition at line 121 of file DomainData.hpp.

Here is the caller graph for this function:

◆ getData()

void* splash::DomainData::getData ( )
inline

Returns a pointer to the internal buffer. The pointer has to be casted to the actual data type.

Returns
pointer to internal buffer.

Definition at line 113 of file DomainData.hpp.

Here is the caller graph for this function:

◆ getDataType()

DCDataType splash::DomainData::getDataType ( )
inline

Returns the DCDataType of this DomainData.

Returns
the datatype

Definition at line 145 of file DomainData.hpp.

◆ getElements()

Dimensions& splash::DomainData::getElements ( )
inline

Returns the number of data elements in this domain.

Returns
number of data elements

Definition at line 102 of file DomainData.hpp.

Here is the caller graph for this function:

◆ getFormatString()

std::string splash::DomainData::getFormatString ( )
throw (DCException
)
inline

Returns the format string for the data type, e.g. lu or f. If no format string can be generated, e.g. if the data type is a compound type, an exception is thrown.

Returns
format string for the data type

Definition at line 192 of file DomainData.hpp.

◆ getLoadingReference()

DomainH5Ref* splash::DomainData::getLoadingReference ( )
inline

Rteurns the internal loading reference for lazy loading.

Returns
internal loading reference

Definition at line 180 of file DomainData.hpp.

◆ getTypeSize()

size_t splash::DomainData::getTypeSize ( )
inline

Returns the size in bytes of the buffer's data type.

Returns
size of data type in bytes

Definition at line 135 of file DomainData.hpp.

Here is the caller graph for this function:

◆ setLoadingReference()

void splash::DomainData::setLoadingReference ( int  dataClass,
hid_t  handle,
int32_t  id,
const char *  name,
const Dimensions  dstBuffer,
const Dimensions  dstOffset,
const Dimensions  srcSize,
const Dimensions  srcOffset 
)
inline

Set the internal loading reference for lazy loading.

Definition at line 153 of file DomainData.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: