Public Member Functions | Public Attributes
bbp::sonata::CompartmentLocation Struct Reference

#include <compartment_sets.h>

Public Member Functions

bool operator== (const CompartmentLocation &other) const
 
bool operator!= (const CompartmentLocation &other) const
 

Public Attributes

uint64_t nodeId = 0
 
uint64_t sectionIndex = 0
 
double offset = 0.0
 

Detailed Description

CompartmentLocation.

This struct uniquely identifies a compartment by a set of node_id, section_index and offset:

Note: it cannot go inside CompartmentSet because then CompartmentSetFilteredIterator needs the full definition of CompartmentSet and CompartmentSet needs the full definition of CompartmentSetFilteredIterator.

Member Function Documentation

◆ operator==()

bool bbp::sonata::CompartmentLocation::operator== ( const CompartmentLocation other) const
inline

Comparator. Used to compare vectors in CompartmentSet. More idiomatic than defining a comaprator on the fly