#include <modelrange_manager.h>
◆ ModelRangeManager()
| nest::ModelRangeManager::ModelRangeManager |
( |
| ) |
|
◆ ~ModelRangeManager()
| nest::ModelRangeManager::~ModelRangeManager |
( |
| ) |
|
|
inlineoverride |
◆ add_range()
| void nest::ModelRangeManager::add_range |
( |
size_t |
model, |
|
|
size_t |
first_node_id, |
|
|
size_t |
last_node_id |
|
) |
| |
◆ begin()
| std::vector< modelrange >::const_iterator nest::ModelRangeManager::begin |
( |
| ) |
const |
|
inline |
◆ end()
| std::vector< modelrange >::const_iterator nest::ModelRangeManager::end |
( |
| ) |
const |
|
inline |
◆ finalize()
| void nest::ModelRangeManager::finalize |
( |
const bool |
adjust_number_of_threads_or_rng_only | ) |
|
|
overridevirtual |
Take down manager after operation.
After this method has completed, all dynamic data structures created by the manager shall be deallocated and containers emptied. Plain variables need not be reset.
- Note
- Finalization of any given manager may depend on other managers not having been finalized yet. KernelManager::finalize() is responsible for calling the initialization routines on the specific managers in correct order, i.e., the opposite order of initialize() calls.
- Parameters
-
| adjust_number_of_threads_or_rng_only | Pass true if calling from kernel_manager::change_number_of_threads() to limit operations to those necessary for thread adjustment. |
- See also
- initialize()
Implements nest::ManagerInterface.
References first_node_id_, last_node_id_, and modelranges_.
◆ get_contiguous_node_id_range()
| const modelrange & nest::ModelRangeManager::get_contiguous_node_id_range |
( |
size_t |
node_id | ) |
const |
Return the contiguous range of IDs of nodes assigned to the same model as the node with the given node ID.
References is_in_range(), and modelranges_.
◆ get_model_id()
| size_t nest::ModelRangeManager::get_model_id |
( |
size_t |
node_id | ) |
const |
◆ get_model_of_node_id()
| Model * nest::ModelRangeManager::get_model_of_node_id |
( |
size_t |
node_id | ) |
|
◆ get_status()
| void nest::ModelRangeManager::get_status |
( |
Dictionary & |
| ) |
|
|
inlineoverridevirtual |
Retrieve the status of the manager.
- Note
- This would ideally be a const function. However, some managers delay the update of internal variables up to the point where they are needed (e.g., before reporting their values to the user, or before simulate is called). An example for this pattern is the call to update_delay_extrema_() right at the beginning of ConnectionManager::get_status().
- See also
- set_status()
Implements nest::ManagerInterface.
◆ initialize()
| void nest::ModelRangeManager::initialize |
( |
const bool |
adjust_number_of_threads_or_rng_only | ) |
|
|
overridevirtual |
Prepare manager for operation.
After this method has completed, the manager should be completely initialized and "ready for action".
- Note
- Initialization of any given manager may depend on other managers having been initialized before. KernelManager::initialize() is responsible for calling the initialization routines on the specific managers in correct order.
- Parameters
-
| adjust_number_of_threads_or_rng_only | Pass true if calling from kernel_manager::change_number_of_threads() or RandomManager::get_status() to limit operations to those necessary for thread adjustment or switch or re-seeding of RNG. |
- See also
- finalize()
Implements nest::ManagerInterface.
◆ is_in_range()
| bool nest::ModelRangeManager::is_in_range |
( |
size_t |
node_id | ) |
const |
|
inline |
◆ set_status()
| void nest::ModelRangeManager::set_status |
( |
const Dictionary & |
| ) |
|
|
inlineoverridevirtual |
◆ first_node_id_
| size_t nest::ModelRangeManager::first_node_id_ |
|
private |
◆ last_node_id_
| size_t nest::ModelRangeManager::last_node_id_ |
|
private |
◆ modelranges_
| std::vector< modelrange > nest::ModelRangeManager::modelranges_ |
|
private |
The documentation for this class was generated from the following files: