icedb
version 0.5.1
Snow particle scattering database API
|
#include <Table_impl.hpp>
Public Member Functions | |
virtual | ~Table_impl () |
Table_impl (std::shared_ptr< H5::DataSet > obj, const std::string &name="") | |
![]() | |
virtual | ~Table () |
size_t | getNumDimensions () const |
Returns the number of dimensions of a table. More... | |
Dimensions_Type | getDimensions () const |
Returns a vector containing the dimensions of the table. More... | |
void | attachDimensionScale (size_t DimensionNumber, gsl::not_null< const Table *> scale) |
void | detachDimensionScale (size_t DimensionNumber, gsl::not_null< const Table *> scale) |
Detaches a dimension scale from this table. More... | |
bool | isDimensionScale () const |
Is this Table used as a dimension scale? More... | |
void | setDimensionScale (const std::string &dimensionScaleName) |
Designate this table as a dimension scale. More... | |
void | setDimensionScaleAxisLabel (size_t DimensionNumber, const std::string &label) |
Set the axis label for the dimension designated by DimensionNumber. More... | |
std::string | getDimensionScaleAxisLabel (size_t DimensionNumber) const |
Get the axis label for the dimension designated by DimensionNumber. More... | |
std::string | getDimensionScaleName () const |
Get the name of this table's defined dimension scale. More... | |
template<class Type > | |
bool | isTableOfType () const |
Check if this table has the matching Type. More... | |
std::type_index | getTableTypeId () const |
Get the type of the table (i.e. int64_t, float, etc.) More... | |
template<class DataType > | |
void | readAll (std::vector< size_t > &dims, std::vector< DataType > &data) const |
Read all of the data in the associated table. More... | |
template<class DataType > | |
void | writeAll (const gsl::span< const DataType > &outData) const |
Write the passed data to the table. Writes whole table. More... | |
template<class DataType > | |
void | writeAll (const gsl::span< DataType > &outData) const |
Write the passed data to the table. Writes whole table. More... | |
template<class DataType > | |
void | writeAll (const std::vector< DataType > &outData) const |
Write the passed data to the table. Writes whole table. Convenience converter function. More... | |
![]() | |
~CanHaveAttributes () | |
bool | doesAttributeExist (const std::string &attributeName) const |
Does the object have an attribute with the given name? More... | |
std::type_index | getAttributeTypeId (const std::string &attributeName) const |
Returns the type of an attribute. More... | |
template<class Type > | |
bool | isAttributeOfType (const std::string &attributeName) const |
Is the type of the attribute "Type"? More... | |
std::set< std::string > | getAttributeNames () const |
List all attributes attached to this object. More... | |
void | deleteAttribute (const std::string &attributeName) |
Delete an attribute, by name, that is attached to this object. More... | |
template<class DataType > | |
void | readAttributeData (const std::string &attributeName, std::vector< size_t > &dimensions, std::vector< DataType > &data) const |
Function to read the data from an attribute using the provided input vectors. More... | |
template<class DataType > | |
void | writeAttributeData (const std::string &attributeName, const std::vector< size_t > &dimensionas, const std::vector< DataType > &data) |
Function to write an attribute to an object, with the provided raw data. More... | |
template<class DataType > | |
Attribute< DataType > | readAttribute (const std::string &attributeName) const |
Convenience function to read an attribute's data and return an Attribute object. More... | |
template<class DataType > | |
void | writeAttribute (const Attribute< DataType > &attribute) |
Convenience function to write an Attribute to an object. More... | |
template<class DataType > | |
void | writeAttribute (const std::string &name, std::initializer_list< size_t > dims, std::initializer_list< DataType > data) |
Convenience function to write a small Attribute to an object, using initializer lists. More... | |
![]() | |
CanHaveAttributes_impl (std::shared_ptr< H5::H5Object >) | |
CanHaveAttributes_impl () | |
virtual | ~CanHaveAttributes_impl () |
Protected Member Functions | |
void | _setTableSelf (std::shared_ptr< H5::DataSet > obj) override |
Associates the icedb table with the fundamental HDF5 DataSet. Only used internally. More... | |
std::shared_ptr< H5::DataSet > | _getTableSelf () const override |
Gets the fundamental HDF5 DataSet associated with the table. Only used internally. More... | |
![]() | |
bool | valid () const |
Checks that Table is well-formed during runtime. Only used internally. More... | |
Table (const std::string &name="") | |
Default constructor, used by CanHaveTables. More... | |
![]() | |
CanHaveAttributes () | |
![]() | |
virtual void | _setAttributeParent (std::shared_ptr< H5::H5Object > obj) override |
virtual std::shared_ptr< H5::H5Object > | _getAttributeParent () const override |
Private Attributes | |
std::shared_ptr< H5::DataSet > | obj |
Additional Inherited Members | |
![]() | |
typedef std::vector< size_t > | Dimensions_Type |
The dimensions of a Table are expressed as a vector of unsigned integers. More... | |
typedef std::unique_ptr< Table > | Table_Type |
The preferred method of access of a Table is through std::unique_ptr. More... | |
![]() | |
static bool | doesAttributeExist (gsl::not_null< const H5::H5Object *> parent, const std::string &attributeName) |
Does an object (parent) have an attribute with the given name? More... | |
static std::type_index | getAttributeTypeId (gsl::not_null< const H5::H5Object *> parent, const std::string &attributeName) |
Returns the type of an attribute. More... | |
template<class DataType > | |
static void | readAttributeData (gsl::not_null< const H5::H5Object *> parent, const std::string &attributeName, std::vector< size_t > &dimensions, std::vector< DataType > &data) |
Function to read the data from an attribute. More... | |
template<class DataType > | |
static Attribute< DataType > | readAttribute (gsl::not_null< const H5::H5Object *> obj, const std::string &attributeName) |
Convenience function to read an attribute's data and return an Attribute object. More... | |
![]() | |
const std::string | name |
The name of the Table. More... | |
Definition at line 12 of file Table_impl.hpp.
|
virtual |
Definition at line 334 of file Tables.cpp.
icedb::Tables::Table_impl::Table_impl | ( | std::shared_ptr< H5::DataSet > | obj, |
const std::string & | name = "" |
||
) |
Definition at line 335 of file Tables.cpp.
References icedb::Attributes::CanHaveAttributes_impl::_setAttributeParent(), and obj.
|
overrideprotectedvirtual |
Gets the fundamental HDF5 DataSet associated with the table. Only used internally.
Implements icedb::Tables::Table.
Definition at line 333 of file Tables.cpp.
|
overrideprotectedvirtual |
Associates the icedb table with the fundamental HDF5 DataSet. Only used internally.
Implements icedb::Tables::Table.
Definition at line 332 of file Tables.cpp.
|
private |
Definition at line 13 of file Table_impl.hpp.
Referenced by icedb::Tables::CanHaveTables_impl::_getTablesParent(), icedb::Tables::CanHaveTables_impl::_setTablesParent(), and Table_impl().