1.3.1
CCC
 
HDF5format Class Reference

#include <HDF5format.hpp>

Classes

class  Proxy
 

Public Member Functions

 HDF5format (const String &filename="", const String &varname="")
 
 HDF5format (const HDF5format &r)
 
HDF5formatoperator= (const HDF5format &r)
 
virtual ~HDF5format ()
 
int deleteFile ()
 
void setFileName (const String &filename)
 
void setVarName (const String &varname)
 
int displayNames () const
 
void openFile (const String &filename="")
 
void openNewFile (const String &filename)
 
void openDataSet (const String &varname="")
 
void closeFile ()
 
void closeDataSet ()
 
template<typename T >
void writeData (const T &)
 
template<typename T >
void writeData (const VectorT< T > &)
 
template<typename T >
void writeData (const VectorNumT< T > &)
 
template<typename T >
void writeData (const VectorT< VectorNumT< T > > &)
 
int getDataInt () const
 
float getDataFloat () const
 
double getDataDouble () const
 
VectorInt getDataVInt () const
 
VectorFloat getDataVFloat () const
 
VectorDouble getDataVDouble () const
 
VectorVectorInt getDataVVInt () const
 
VectorVectorFloat getDataVVFloat () const
 
VectorVectorDouble getDataVVDouble () const
 
VectorDouble getDataDoublePartial (int myrank) const
 
int writeDataDoublePartial (int myrank, const VectorDouble &data)
 
int getSize () const
 
Proxy getData () const
 

Public Attributes

String _filename
 
String _varname
 

Constructor & Destructor Documentation

◆ HDF5format() [1/2]

HDF5format::HDF5format ( const String filename = "",
const String varname = "" 
)

◆ HDF5format() [2/2]

HDF5format::HDF5format ( const HDF5format r)

◆ ~HDF5format()

HDF5format::~HDF5format ( )
virtual

Member Function Documentation

◆ closeDataSet()

void HDF5format::closeDataSet ( )

◆ closeFile()

void HDF5format::closeFile ( )

◆ deleteFile()

int HDF5format::deleteFile ( )

◆ displayNames()

int HDF5format::displayNames ( ) const

◆ getData()

Proxy HDF5format::getData ( ) const
inline

◆ getDataDouble()

double HDF5format::getDataDouble ( ) const

◆ getDataDoublePartial()

VectorDouble HDF5format::getDataDoublePartial ( int  myrank) const

This function extracts one VectorDouble from a data set constructed with a set of VectorDouble (i.e. VectorVectorDouble)

Parameters
myrankRank of the extracted VectorDouble
Returns
The extracted VectorDouble

◆ getDataFloat()

float HDF5format::getDataFloat ( ) const

◆ getDataInt()

int HDF5format::getDataInt ( ) const

◆ getDataVDouble()

VectorDouble HDF5format::getDataVDouble ( ) const

◆ getDataVFloat()

VectorFloat HDF5format::getDataVFloat ( ) const

◆ getDataVInt()

VectorInt HDF5format::getDataVInt ( ) const

◆ getDataVVDouble()

VectorVectorDouble HDF5format::getDataVVDouble ( ) const

◆ getDataVVFloat()

VectorVectorFloat HDF5format::getDataVVFloat ( ) const

◆ getDataVVInt()

VectorVectorInt HDF5format::getDataVVInt ( ) const

Reading VectorVectorInt

Returns

◆ getSize()

int HDF5format::getSize ( ) const

◆ openDataSet()

void HDF5format::openDataSet ( const String varname = "")

◆ openFile()

void HDF5format::openFile ( const String filename = "")

◆ openNewFile()

void HDF5format::openNewFile ( const String filename)

◆ operator=()

HDF5format & HDF5format::operator= ( const HDF5format r)

◆ setFileName()

void HDF5format::setFileName ( const String filename)
inline

◆ setVarName()

void HDF5format::setVarName ( const String varname)
inline

◆ writeData() [1/4]

template<typename T >
void HDF5format::writeData ( const T data)

Numeric implementation of our write data function Only accepts numerical values. Integers, floats, or doubles

Parameters
data

◆ writeData() [2/4]

template<typename T >
void HDF5format::writeData ( const VectorNumT< T > &  data)

◆ writeData() [3/4]

template<typename T >
void HDF5format::writeData ( const VectorT< T > &  data)

◆ writeData() [4/4]

template<typename T >
void HDF5format::writeData ( const VectorT< VectorNumT< T > > &  data)

◆ writeDataDoublePartial()

int HDF5format::writeDataDoublePartial ( int  myrank,
const VectorDouble data 
)

Member Data Documentation

◆ _filename

String HDF5format::_filename

◆ _varname

String HDF5format::_varname

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