PyNE C++
Public Member Functions | Public Attributes | List of all members
h5wrap::HomogenousTypeTable< T > Class Template Reference

#include <h5wrap.h>

Public Member Functions

 HomogenousTypeTable ()
 default constructor
 
 ~HomogenousTypeTable ()
 default destructor
 
 HomogenousTypeTable (hid_t h5file, std::string data_path, hid_t dtype=H5T_NATIVE_DOUBLE)
 
std::vector< T > operator[] (std::string col_name)
 index into the table by column name (string)
 
std::map< std::string, T > operator[] (int m)
 index into the table by row
 

Public Attributes

std::string path
 path in file to the data
 
int shape [2]
 table shape, rows x columns.
 
std::vector< std::string > cols
 
std::map< std::string, std::vector< T > > data
 mapping from column names to column data
 

Detailed Description

template<typename T>
class h5wrap::HomogenousTypeTable< T >

A class representing a high-level table contruct whose columns all have the same type T in C/C++ (and the analogous type in HDF5).

Constructor & Destructor Documentation

◆ HomogenousTypeTable()

template<typename T >
h5wrap::HomogenousTypeTable< T >::HomogenousTypeTable ( hid_t  h5file,
std::string  data_path,
hid_t  dtype = H5T_NATIVE_DOUBLE 
)
inline

Constructor to load in data upon initialization. T should roughly match dtype.

Parameters
h5fileHDF5 file id for an open file.
data_pathpath to the data in the open file.
dtypeHDF5 data type for the data set at data_path.

Member Data Documentation

◆ cols

template<typename T >
std::vector<std::string> h5wrap::HomogenousTypeTable< T >::cols

column names


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