Public Member Functions | Protected Attributes
bbp::sonata::PopulationStorage< Population > Class Template Reference

#include <population.h>

Public Member Functions

 PopulationStorage (const std::string &h5FilePath)
 
 PopulationStorage (const std::string &h5FilePath, const std::string &csvFilePath)
 
 PopulationStorage (const std::string &h5FilePath, const Hdf5Reader &hdf5_reader)
 
 PopulationStorage (const std::string &h5FilePath, const std::string &csvFilePath, const Hdf5Reader &hdf5_reader)
 
 PopulationStorage (const PopulationStorage &)=delete
 
 PopulationStorage (PopulationStorage &&) noexcept
 
std::set< std::string > populationNames () const
 
std::shared_ptr< PopulationopenPopulation (const std::string &name) const
 

Protected Attributes

std::unique_ptr< Impl > impl_
 

Detailed Description

template<typename Population>
class bbp::sonata::PopulationStorage< Population >

Collection of {PopulationClass}s stored in a H5 file and optional CSV.

Member Function Documentation

◆ openPopulation()

template<typename Population >
std::shared_ptr<Population> bbp::sonata::PopulationStorage< Population >::openPopulation ( const std::string &  name) const

Open a specific {PopulationClass} by name

Parameters
namethe name of the population to open
Exceptions
ifno population with such a name exists

◆ populationNames()

template<typename Population >
std::set<std::string> bbp::sonata::PopulationStorage< Population >::populationNames ( ) const

Set of all {PopulationClass} names