NEST
2.6.0,not_revisioned_source_dir@0
|
Template for list interface to network tree. More...
#include <nodelist.h>
Public Types | |
typedef ListIterator | iterator |
Public Member Functions | |
LocalNodeListBase (Subnet &subnet) | |
iterator | begin () const |
Return iterator pointing to first node in subnet. More... | |
iterator | end () const |
Return iterator pointing to node past last node. More... | |
bool | empty () const |
Returns true if no local nodes. More... | |
Subnet & | get_subnet () const |
Returns subnet wrapped by NodeList. More... | |
template<> | |
LocalNodeListBase < LocalNodeListIterator > ::iterator | begin () const |
template<> | |
LocalNodeListBase < LocalChildListIterator > ::iterator | begin () const |
template<> | |
LocalNodeListBase < LocalLeafListIterator > ::iterator | begin () const |
template<> | |
LocalNodeListBase < LocalNodeListIterator > ::iterator | begin () const |
template<> | |
LocalNodeListBase < LocalChildListIterator > ::iterator | begin () const |
template<> | |
LocalNodeListBase < LocalLeafListIterator > ::iterator | begin () const |
Private Attributes | |
Subnet & | subnet_ |
root of the network More... | |
Template for list interface to network tree.
LocalNodeListBase provides a template for classes providing iterator interfaces to subnets. These iterators traverse only local nodes.
Concrete classes for local lists are created by instantiating LocalNodeListBase with suitable iterator classes and specializing the begin() method for those template instances.
typedef ListIterator nest::LocalNodeListBase< ListIterator >::iterator |
|
inlineexplicit |
LocalNodeListBase< LocalNodeListIterator >::iterator nest::LocalNodeListBase< LocalNodeListIterator >::begin | ( | void | ) | const |
References assert(), nest::Subnet::local_begin(), and nest::Subnet::local_empty().
iterator nest::LocalNodeListBase< ListIterator >::begin | ( | ) | const |
Return iterator pointing to first node in subnet.
Must be defined by all derived classes.
Referenced by nest::Network::convergent_connect(), and nest::Network::random_convergent_connect().
LocalNodeListBase< LocalNodeListIterator >::iterator nest::LocalNodeListBase< LocalNodeListIterator >::begin | ( | ) | const |
LocalNodeListBase< LocalChildListIterator >::iterator nest::LocalNodeListBase< LocalChildListIterator >::begin | ( | void | ) | const |
LocalNodeListBase< LocalLeafListIterator >::iterator nest::LocalNodeListBase< LocalLeafListIterator >::begin | ( | void | ) | const |
References assert(), nest::Subnet::local_begin(), and nest::Subnet::local_empty().
LocalNodeListBase< LocalChildListIterator >::iterator nest::LocalNodeListBase< LocalChildListIterator >::begin | ( | ) | const |
LocalNodeListBase< LocalLeafListIterator >::iterator nest::LocalNodeListBase< LocalLeafListIterator >::begin | ( | ) | const |
|
inline |
Returns true if no local nodes.
References nest::Subnet::local_empty(), and nest::LocalNodeListBase< ListIterator >::subnet_.
|
inline |
Return iterator pointing to node past last node.
References nest::Subnet::local_end(), and nest::LocalNodeListBase< ListIterator >::subnet_.
Referenced by nest::Network::convergent_connect(), and nest::Network::random_convergent_connect().
|
inline |
Returns subnet wrapped by NodeList.
References nest::LocalNodeListBase< ListIterator >::subnet_.
|
private |
root of the network
Referenced by nest::LocalNodeListBase< ListIterator >::empty(), nest::LocalNodeListBase< ListIterator >::end(), and nest::LocalNodeListBase< ListIterator >::get_subnet().