BlueBrain / libsonata

A python and C++ interface to the SONATA format
https://libsonata.readthedocs.io/en/stable/
GNU Lesser General Public License v3.0
11 stars 12 forks source link

Move `Selection` to its own header. #306

Closed 1uc closed 10 months ago

1uc commented 10 months ago

The new header is <bbp/sonata/selection.h> and it's included in <bbp/sonata/population.h. This ensures doesn't affect which include provide Selection in an adverse way.

1uc commented 10 months ago

Splitting the two help avoid cyclic problems, e.g. if one want to add a class that requires Selection but is itself used in Population. Then without splitting the header the new class must be at the right position in population.h.