protected:
/**
* Open dataset. This is an internal constructor. The function
- * Group::dataset() should be used to open a dataset.
+ * Group::open_dataset() should be used to open a dataset.
*/
DataSet(const std::string &name, const hid_t &parent_group_id, bool mpi);
* Opens a dataset.
*/
DataSet
- dataset(const std::string &name);
+ open_dataset(const std::string &name);
/**
* Creates a dataset. @p number can be `float`, `double`,
DataSet
- Group::dataset(const std::string &name)
+ Group::open_dataset(const std::string &name)
{
return DataSet(name, *hdf5_reference, mpi);
}
<< std::endl;
// Read attributes attached to a dataset
- auto test_dataset = test_group.dataset("test_dataset");
+ auto test_dataset = test_group.open_dataset("test_dataset");
deallog << "dataset_double read:"
<< test_dataset.get_attribute<double>("dataset_double")
<< std::endl;
<< std::endl;
// Read attributes attached to a dataset
- auto test_dataset = test_group.dataset("test_dataset");
+ auto test_dataset = test_group.open_dataset("test_dataset");
deallog << "dataset_double read:"
<< test_dataset.get_attribute<double>("dataset_double")
<< std::endl;
{
std::string dataset_name("dataset_1");
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << " " << container_name << "<"
<< type_name << ">"
{
std::string dataset_name("dataset_2");
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << " " << container_name << "<"
<< type_name << ">"
std::is_same<Number, double>::value)
{
std::string dataset_name("dataset_3");
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << " " << container_name << "<"
<< type_name << ">"
{
std::string dataset_name("dataset_4");
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << " " << container_name << "<"
<< type_name << ">"
{
std::string dataset_name("dataset_1");
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << " " << container_name << "<"
<< type_name << ">"
{
std::string dataset_name("dataset_2");
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << " " << container_name << "<"
<< type_name << ">"
std::is_same<Number, double>::value)
{
std::string dataset_name("dataset_3");
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << " " << container_name << "<"
<< type_name << ">"
{
std::string dataset_name("dataset_4");
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << " " << container_name << "<"
<< type_name << ">"
{
std::string dataset_name("dataset_5");
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << " " << container_name << "<"
<< type_name << ">"
// (3,0): 9, 10, 11,
// (4,0): 12, 13, 14
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << "<" << type_name << ">"
<< " (Read): " << dataset.get_dimensions() << std::endl;
// (0,3,0): 9, 10, 11, (1,3,0): 24, 25, 26,
// (0,4,0): 12, 13, 14, (1,4,0): 27, 28, 29
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << "<" << type_name << ">"
<< " (Read): " << dataset.get_dimensions() << std::endl;
// (0,3,0): 9, 10, 11, (1,3,0): 18, 20, 22,
// (0,4,0): 12, 13, 14, (1,4,0): 24, 26, 28
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << "<" << type_name << ">"
<< " (Read): " << dataset.get_dimensions() << std::endl;
// (2,0,0): 8, 9, 10, 11,
// (2,1,0): 16, 18, 20, 22
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << "<" << type_name << ">"
<< " (Read): " << dataset.get_dimensions() << std::endl;
// (2,1,0): 36, 35, 0, 33
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << "<" << type_name << ">"
<< " (Read): " << dataset.get_dimensions() << std::endl;
// (6,0): -24, 40, 41, -25, 42, 43, -26, 44, 45, -27, 46, 47
- auto dataset = group.dataset(dataset_name);
+ auto dataset = group.open_dataset(dataset_name);
dataset.set_query_io_mode(true);
deallog << "Dimensions " + dataset_name << "<" << type_name << ">"
<< " (Read): " << dataset.get_dimensions() << std::endl;