NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Public Attributes | List of all members
nest::Selector Struct Reference

Contains rules for selecting nodes from a layer when connecting. More...

#include <selector.h>

Public Member Functions

 Selector ()
 The default constructor creates a Selector with no specific rules, so all nodes are selected. More...
 
 Selector (const DictionaryDatum &d)
 The dictionary used to initialize the Selector may contain parameters 'model', which is the name of a model to select by, and/or 'lid', which is the depth to select by (an integer >= 1). More...
 
bool select_model () const
 
bool select_depth () const
 
bool operator== (const Selector &other)
 Test if two selectors are equal, i.e. More...
 

Public Attributes

long_t model
 The model to select, or -1 if all models are allowed. More...
 
long_t depth
 The depth to select, or -1 if all depths are allowed. More...
 

Detailed Description

Contains rules for selecting nodes from a layer when connecting.

Users may select by model or by depth.

Constructor & Destructor Documentation

nest::Selector::Selector ( )
inline

The default constructor creates a Selector with no specific rules, so all nodes are selected.

nest::Selector::Selector ( const DictionaryDatum d)

The dictionary used to initialize the Selector may contain parameters 'model', which is the name of a model to select by, and/or 'lid', which is the depth to select by (an integer >= 1).

Parameters
dDictionary containing parameters for the Selector.

References depth, Token::empty(), nest::Network::get_modeldict(), nest::names::lid, Dictionary::lookup(), model, nest::names::model, and nest::Node::network().

Member Function Documentation

bool nest::Selector::operator== ( const Selector other)
inline

Test if two selectors are equal, i.e.

contain the same rules.

Returns
true if both selectors are equal.

References depth, and model.

bool nest::Selector::select_depth ( ) const
inline
bool nest::Selector::select_model ( ) const
inline

Member Data Documentation

long_t nest::Selector::depth
long_t nest::Selector::model

The documentation for this struct was generated from the following files: