libSplash
|
#include <DataContainer.hpp>
Public Member Functions | |
DataContainer () | |
virtual | ~DataContainer () |
void | add (DomainData *entry) |
size_t | getNumSubdomains () |
size_t | getNumElements () |
Dimensions | getSize () const |
Dimensions | getOffset () const |
Dimensions | getBack () const |
DomainData * | getIndex (size_t index) |
DomainData * | get (size_t x) |
DomainData * | get (size_t x, size_t y) |
DomainData * | get (size_t x, size_t y, size_t z) |
void * | getElement (size_t index) |
Container for storing domain-annotated data representing a specific subdomain. The container contains information on the specific subdomain and its global domain. This should regularly not be constructed by a user but internally, only.
Definition at line 40 of file DataContainer.hpp.
|
inline |
Constructor.
Definition at line 47 of file DataContainer.hpp.
|
inlinevirtual |
|
inline |
Internal use only!
Definition at line 73 of file DataContainer.hpp.
|
inline |
Returns a pointer to the DomainData with index (x) for 1-dimensional domains.
x | Index of subdomain partition. |
Definition at line 175 of file DataContainer.hpp.
|
inline |
Returns a pointer to the DomainData with index (x, y) for 2-dimensional domains.
x | First dimension index of subdomain partition. |
y | Second dimension index of subdomain partition. |
Definition at line 190 of file DataContainer.hpp.
|
inline |
Returns a pointer to the DomainData with index (x, y, z) for 3-dimensional domains.
x | First dimension index of subdomain partition. |
y | Second dimension index of subdomain partition. |
z | Third dimension index of subdomain partition. |
Definition at line 206 of file DataContainer.hpp.
|
inline |
Returns the end of the partition represented by this container which is the combination of its offset and size - 1.
Definition at line 150 of file DataContainer.hpp.
|
inline |
Returns a pointer to the data element with global index.
index | Index among all elements in this container, see DataContainer::getNumElements. |
Definition at line 221 of file DataContainer.hpp.
|
inline |
Returns the pointer to the DomainData with the specified index.
index | Index of subdomain partition. |
Definition at line 161 of file DataContainer.hpp.
|
inline |
Returns the total number of elements in all subdomains of this container.
Definition at line 111 of file DataContainer.hpp.
|
inline |
Returns the number of subdomain partitions in the container.
Definition at line 101 of file DataContainer.hpp.
|
inline |
Returns the offset of the partition represented by this container.
Definition at line 139 of file DataContainer.hpp.
|
inline |
Returns the size of the partition represented by this container.
Definition at line 129 of file DataContainer.hpp.