Public Member Functions | |
NodeSets (const std::string &content) | |
NodeSets (std::unique_ptr< detail::NodeSets > &&impl) | |
NodeSets (NodeSets &&) noexcept | |
NodeSets (const NodeSets &other)=delete | |
NodeSets & | operator= (NodeSets &&) noexcept |
Selection | materialize (const std::string &name, const NodePopulation &population) const |
std::set< std::string > | names () const |
std::set< std::string > | update (const NodeSets &other) const |
std::string | toJSON () const |
Static Public Member Functions | |
static NodeSets | fromFile (const std::string &path) |
|
explicit |
Create nodeset from JSON
See also: https://github.com/AllenInstitute/sonata/blob/master/docs/SONATA_DEVELOPER_GUIDE.md#node-sets-file
Note: floating point values aren't supported for comparison
content | is the JSON node_sets value |
if | content cannot be parsed |
|
static |
Open a SONATA node sets
file from a path
Selection bbp::sonata::NodeSets::materialize | ( | const std::string & | name, |
const NodePopulation & | population | ||
) | const |
Return a selection corresponding to the node_set name
name | is the name of the node_set rule to be evaluated |
population | is the population for which the returned selection will be valid |
std::set<std::string> bbp::sonata::NodeSets::names | ( | ) | const |
Names of the node sets available
std::string bbp::sonata::NodeSets::toJSON | ( | ) | const |
Return the nodesets as a JSON string.
std::set<std::string> bbp::sonata::NodeSets::update | ( | const NodeSets & | other | ) | const |
Update this
to include all nodesets from this
and other
.
Duplicate names are overridden with the values from other
.
The duplicate names are returned.