Public Member Functions | Static Public Member Functions | Static Public Attributes
bbp::sonata::EdgePopulation Class Reference
Inheritance diagram for bbp::sonata::EdgePopulation:
bbp::sonata::Population

Public Member Functions

 EdgePopulation (const std::string &h5FilePath, const std::string &csvFilePath, const std::string &name)
 
 EdgePopulation (const std::string &h5FilePath, const std::string &csvFilePath, const std::string &name, const Hdf5Reader &hdf5_reader)
 
std::string source () const
 
std::string target () const
 
std::vector< NodeID > sourceNodeIDs (const Selection &selection) const
 
std::vector< NodeID > targetNodeIDs (const Selection &selection) const
 
Selection afferentEdges (const std::vector< NodeID > &target) const
 
Selection efferentEdges (const std::vector< NodeID > &source) const
 
Selection connectingEdges (const std::vector< NodeID > &source, const std::vector< NodeID > &target) const
 
- Public Member Functions inherited from bbp::sonata::Population
std::string name () const
 
uint64_t size () const
 
Selection selectAll () const
 
const std::set< std::string > & attributeNames () const
 
const std::set< std::string > & enumerationNames () const
 
template<typename T >
std::vector< T > getAttribute (const std::string &name, const Selection &selection) const
 
template<typename T >
std::vector< T > getAttribute (const std::string &name, const Selection &selection, const T &defaultValue) const
 
template<typename T >
std::vector< T > getEnumeration (const std::string &name, const Selection &selection) const
 
std::vector< std::string > enumerationValues (const std::string &name) const
 
std::string _attributeDataType (const std::string &name, bool translate_enumeration=false) const
 
const std::set< std::string > & dynamicsAttributeNames () const
 
template<typename T >
std::vector< T > getDynamicsAttribute (const std::string &name, const Selection &selection) const
 
template<typename T >
std::vector< T > getDynamicsAttribute (const std::string &name, const Selection &selection, const T &defaultValue) const
 
std::string _dynamicsAttributeDataType (const std::string &name) const
 
template<typename T >
Selection filterAttribute (const std::string &name, std::function< bool(const T)> pred) const
 

Static Public Member Functions

static void writeIndices (const std::string &h5FilePath, const std::string &population, uint64_t sourceNodeCount, uint64_t targetNodeCount, bool overwrite=false)
 

Static Public Attributes

constexpr static const char * ELEMENT = "edge"
 

Additional Inherited Members

- Protected Member Functions inherited from bbp::sonata::Population
 Population (const std::string &h5FilePath, const std::string &csvFilePath, const std::string &name, const std::string &prefix, const Hdf5Reader &hdf5_reader)
 
 Population (const Population &)=delete
 
 Population (Population &&) noexcept
 
- Protected Attributes inherited from bbp::sonata::Population
std::unique_ptr< Impl > impl_
 

Member Function Documentation

◆ afferentEdges()

Selection bbp::sonata::EdgePopulation::afferentEdges ( const std::vector< NodeID > &  target) const

Return inbound edges for given node IDs.

◆ connectingEdges()

Selection bbp::sonata::EdgePopulation::connectingEdges ( const std::vector< NodeID > &  source,
const std::vector< NodeID > &  target 
) const

Return edges connecting two given nodes.

◆ efferentEdges()

Selection bbp::sonata::EdgePopulation::efferentEdges ( const std::vector< NodeID > &  source) const

Return outbound edges for given node IDs.

◆ source()

std::string bbp::sonata::EdgePopulation::source ( ) const

Name of source population extracted from 'source_node_id' dataset

◆ sourceNodeIDs()

std::vector<NodeID> bbp::sonata::EdgePopulation::sourceNodeIDs ( const Selection selection) const

Return source node IDs for a given edge selection

◆ target()

std::string bbp::sonata::EdgePopulation::target ( ) const

Name of target population extracted from 'target_node_id' dataset

◆ targetNodeIDs()

std::vector<NodeID> bbp::sonata::EdgePopulation::targetNodeIDs ( const Selection selection) const

Return target node IDs for a given edge selection

◆ writeIndices()

static void bbp::sonata::EdgePopulation::writeIndices ( const std::string &  h5FilePath,
const std::string &  population,
uint64_t  sourceNodeCount,
uint64_t  targetNodeCount,
bool  overwrite = false 
)
static

Write bidirectional node->edge indices to EdgePopulation HDF5.