#include <mitochondria.h>
Public Member Functions | |
const std::vector< MitoSectionP > & | children (const MitoSectionP &) const |
Get the Section children. | |
const MitoSectionP & | section (uint32_t id) const |
const std::map< uint32_t, MitoSectionP > & | sections () const noexcept |
Returns the dictionary id -> Section for this tree. | |
mito_depth_iterator | depth_begin () const |
mito_depth_iterator | depth_begin (const MitoSectionP §ion) const |
mito_depth_iterator | depth_end () const |
mito_breadth_iterator | breadth_begin () const |
mito_breadth_iterator | breadth_begin (const MitoSectionP §ion) const |
mito_breadth_iterator | breadth_end () const |
mito_upstream_iterator | upstream_begin () const |
mito_upstream_iterator | upstream_begin (const MitoSectionP §ion) const |
mito_upstream_iterator | upstream_end () const |
const MitoSectionP & | parent (const MitoSectionP &parent) const |
bool | isRoot (const MitoSectionP §ion) const |
const std::vector< MitoSectionP > & | rootSections () const noexcept |
MitoSectionP | appendRootSection (const Property::MitochondriaPointLevel &pointProperties) |
MitoSectionP | appendRootSection (const morphio::MitoSection &, bool recursive=false) |
MitoSectionP | appendRootSection (const MitoSectionP &, bool recursive=false) |
const MitoSectionP & | mitoSection (uint32_t id) const |
void | _buildMitochondria (Property::Properties &properties) const |
Friends | |
class | MitoSection |
Mutable(editable) morphio::Mitochondria
void morphio::mut::Mitochondria::_buildMitochondria | ( | Property::Properties & | properties | ) | const |
Fill the 'properties' variable with the mitochondria data
MitoSectionP morphio::mut::Mitochondria::appendRootSection | ( | const morphio::MitoSection & | , |
bool | recursive = false |
||
) |
Append a root MitoSection
If recursive == true, all descendent mito sections will be appended as well
MitoSectionP morphio::mut::Mitochondria::appendRootSection | ( | const Property::MitochondriaPointLevel & | pointProperties | ) |
Append a new root MitoSection
mito_breadth_iterator morphio::mut::Mitochondria::breadth_begin | ( | ) | const |
Breadth first iterator
If id == -1, the iteration will be successively performed starting at each root section
mito_depth_iterator morphio::mut::Mitochondria::depth_begin | ( | ) | const |
Depth first iterator starting at a given section id
If id == -1, the iteration will start at each root section, successively
bool morphio::mut::Mitochondria::isRoot | ( | const MitoSectionP & | section | ) | const |
Return true if section is a root section
const MitoSectionP& morphio::mut::Mitochondria::parent | ( | const MitoSectionP & | parent | ) | const |
Return the parent mithochondrial section ID
|
inlinenoexcept |
Return the list of IDs of all mitochondrial root sections (sections whose parent ID are -1)
const MitoSectionP& morphio::mut::Mitochondria::section | ( | uint32_t | id | ) | const |
Get the shared pointer for the given section
Note: multiple morphologies can share the same Section instances.
mito_upstream_iterator morphio::mut::Mitochondria::upstream_begin | ( | ) | const |
Upstream first iterator
If id == -1, the iteration will be successively performed starting at each root section