#include <section_base.h>
|
bool | operator== (const SectionBase &other) const noexcept |
|
bool | operator!= (const SectionBase &other) const noexcept |
|
bool | isRoot () const |
|
T | parent () const |
|
std::vector< T > | children () const |
|
uint32_t | id () const noexcept |
|
template<typename TProperty > |
range< const typename TProperty::Type > | get () const |
|
|
| SectionBase (uint32_t id, const std::shared_ptr< Property::Properties > &properties) |
|
template<typename Property > |
range< const typename Property::Type > | get () const |
|
template<typename T>
class morphio::SectionBase< T >
This CRTP (https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern) defines basic methods that every kind of sections (should them be neuronal or mithochondrial) must define.
The CRTP is used here so that the methods of the base class can return object of the derived class. Examples: T SectionBase::parent() std::vector<T> SectionBase::children()
◆ children()
Return a list of children sections
◆ id()
Return the ID of this section.
◆ isRoot()
Return true if this section is a root section (parent ID == -1)
◆ parent()
Return the parent section of this section
- Exceptions
-