icedb  version 0.5.1
Snow particle scattering database API
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
icedb::Tables::CanHaveTables_impl Class Reference

#include <Table_impl.hpp>

Inheritance diagram for icedb::Tables::CanHaveTables_impl:
Inheritance graph
[legend]
Collaboration diagram for icedb::Tables::CanHaveTables_impl:
Collaboration graph
[legend]

Public Member Functions

virtual ~CanHaveTables_impl ()
 
 CanHaveTables_impl ()
 
- Public Member Functions inherited from icedb::Tables::CanHaveTables
 ~CanHaveTables ()
 
std::set< std::string > getTableNames () const
 Lists all table names that are children of this object. More...
 
bool doesTableExist (const std::string &tableName) const
 Does a table exist with the given name. More...
 
void unlinkTable (const std::string &tableName)
 Unlink a table. In HDF5, this is not the same as erasing a table, which never actually happens. More...
 
Table::Table_Type openTable (const std::string &tableName)
 
std::vector< size_t > getChunkStrategy (const std::vector< size_t > &dims)
 The default chunking strategy for this table. Used for storage i/o speed, and for compression. More...
 
template<class DataType >
Table::Table_Type createTable (const std::string &tableName, const std::vector< size_t > &dims, const std::vector< size_t > *chunks=nullptr)
 Create a table. More...
 
template<class DataType >
Table::Table_Type createTable (const std::string &tableName, std::initializer_list< size_t > dims, const std::vector< size_t > *chunks=nullptr)
 Create a table. More...
 
template<class DataType >
Table::Table_Type createTable (const std::string &tableName, std::initializer_list< size_t > dims, std::initializer_list< DataType > data, const std::vector< size_t > *chunks=nullptr)
 Create a table and writes initial data. Used with small tables. More...
 
template<class DataType >
Table::Table_Type createTable (const std::string &tableName, std::initializer_list< size_t > dims, const std::vector< DataType > &data, const std::vector< size_t > *chunks=nullptr)
 Create a table and sets the table's initial data. More...
 
template<class DataType >
Table::Table_Type createTable (const std::string &tableName, std::initializer_list< size_t > dims, const gsl::span< DataType > &data, const std::vector< size_t > *chunks=nullptr)
 Create a table and sets the table's initial data. More...
 
template<class DataType >
Table::Table_Type createTable (const std::string &tableName, std::initializer_list< size_t > dims, const gsl::span< const DataType > &data, const std::vector< size_t > *chunks=nullptr)
 Create a table and sets the table's initial data. More...
 

Protected Member Functions

void _setTablesParent (std::shared_ptr< H5::Group > obj) override
 CanHaveTables needs post-constructor setup. This sets the base HDF5 object that gets manipulated. More...
 
std::shared_ptr< H5::Group > _getTablesParent () const override
 Gets the base HDF5 object that is manipulated. More...
 
- Protected Member Functions inherited from icedb::Tables::CanHaveTables
 CanHaveTables ()
 Trivial constructor used when CanHaveTables is a virtual base class. More...
 

Private Attributes

std::shared_ptr< H5::Group > obj
 

Detailed Description

Definition at line 22 of file Table_impl.hpp.

Constructor & Destructor Documentation

◆ ~CanHaveTables_impl()

icedb::Tables::CanHaveTables_impl::~CanHaveTables_impl ( )
virtual

Definition at line 345 of file Tables.cpp.

345 {}

◆ CanHaveTables_impl()

icedb::Tables::CanHaveTables_impl::CanHaveTables_impl ( )

Definition at line 346 of file Tables.cpp.

346 {}

Member Function Documentation

◆ _getTablesParent()

std::shared_ptr< H5::Group > icedb::Tables::CanHaveTables_impl::_getTablesParent ( ) const
overrideprotectedvirtual

Gets the base HDF5 object that is manipulated.

Implements icedb::Tables::CanHaveTables.

Definition at line 344 of file Tables.cpp.

References icedb::Tables::Table_impl::obj.

344 { return obj; }
std::shared_ptr< H5::Group > obj
Definition: Table_impl.hpp:23

◆ _setTablesParent()

void icedb::Tables::CanHaveTables_impl::_setTablesParent ( std::shared_ptr< H5::Group >  obj)
overrideprotectedvirtual

CanHaveTables needs post-constructor setup. This sets the base HDF5 object that gets manipulated.

Implements icedb::Tables::CanHaveTables.

Definition at line 343 of file Tables.cpp.

References icedb::Tables::Table_impl::obj.

Referenced by icedb::Groups::Group_impl::Group_impl().

343 { this->obj = newobj; }
std::shared_ptr< H5::Group > obj
Definition: Table_impl.hpp:23
Here is the caller graph for this function:

Member Data Documentation

◆ obj

std::shared_ptr<H5::Group> icedb::Tables::CanHaveTables_impl::obj
private

Definition at line 23 of file Table_impl.hpp.


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