6 #include <morphio/mito_section.h>
7 #include <morphio/properties.h>
8 #include <morphio/types.h>
10 #include <morphio/mut/mito_section.h>
16 using mito_breadth_iterator =
23 using MitoSectionP = std::shared_ptr<MitoSection>;
28 const std::vector<MitoSectionP>& children(
const MitoSectionP&)
const;
29 const MitoSectionP& section(uint32_t
id)
const;
30 const std::map<uint32_t, MitoSectionP>& sections()
const noexcept;
64 const MitoSectionP&
parent(
const MitoSectionP&
parent)
const;
69 bool isRoot(
const MitoSectionP& section)
const;
75 const std::vector<MitoSectionP>&
rootSections()
const noexcept;
91 const MitoSectionP& mitoSection(uint32_t
id)
const;
101 uint32_t _register(
const MitoSectionP& section);
103 uint32_t _counter = 0;
104 std::map<uint32_t, std::vector<MitoSectionP>> children_;
105 std::map<uint32_t, uint32_t> parent_;
106 std::vector<MitoSectionP> root_sections_;
107 std::map<uint32_t, MitoSectionP> sections_;
110 inline const std::map<uint32_t, Mitochondria::MitoSectionP>& Mitochondria::sections() const
116 return root_sections_;