|
PyNE C++
|
#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 | |
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).
|
inline |
Constructor to load in data upon initialization. T should roughly match dtype.
| h5file | HDF5 file id for an open file. |
| data_path | path to the data in the open file. |
| dtype | HDF5 data type for the data set at data_path. |
| std::vector<std::string> h5wrap::HomogenousTypeTable< T >::cols |
column names
1.8.13