NEST main@f146f75
Loading...
Searching...
No Matches
nest::ConnectionCreator::PoolWrapper_< D > Class Template Reference

Wrapper for masked and unmasked pools. More...

Public Member Functions

 PoolWrapper_ ()
 ~PoolWrapper_ ()
void define (MaskedLayer< D > *)
void define (std::vector< std::pair< Position< D >, size_t > > *)
Ntree< D, size_t >::masked_iterator masked_begin (const Position< D > &pos) const
Ntree< D, size_t >::masked_iterator masked_end () const
std::vector< std::pair< Position< D >, size_t > >::iterator begin () const
std::vector< std::pair< Position< D >, size_t > >::iterator end () const

Private Attributes

MaskedLayer< D > * masked_layer_
std::vector< std::pair< Position< D >, size_t > > * positions_

Detailed Description

template<int D>
class nest::ConnectionCreator::PoolWrapper_< D >

Wrapper for masked and unmasked pools.

The purpose is to avoid code doubling for cases with and without masks. Essentially, the class works as a fancy union.

Constructor & Destructor Documentation

◆ PoolWrapper_()

template<int D>
nest::ConnectionCreator::PoolWrapper_< D >::PoolWrapper_ ( )

References masked_layer_, and positions_.

◆ ~PoolWrapper_()

References masked_layer_.

Member Function Documentation

◆ begin()

template<int D>
std::vector< std::pair< Position< D >, size_t > >::iterator nest::ConnectionCreator::PoolWrapper_< D >::begin ( ) const

References positions_.

Referenced by nest::ConnectionCreator::pairwise_bernoulli_on_source_(), nest::ConnectionCreator::pairwise_bernoulli_on_target_(), and nest::ConnectionCreator::pairwise_poisson_().

Here is the caller graph for this function:

◆ define() [1/2]

template<int D>
void nest::ConnectionCreator::PoolWrapper_< D >::define ( MaskedLayer< D > * ml)

References masked_layer_, and positions_.

Referenced by nest::ConnectionCreator::pairwise_bernoulli_on_source_(), nest::ConnectionCreator::pairwise_bernoulli_on_target_(), and nest::ConnectionCreator::pairwise_poisson_().

Here is the caller graph for this function:

◆ define() [2/2]

template<int D>
void nest::ConnectionCreator::PoolWrapper_< D >::define ( std::vector< std::pair< Position< D >, size_t > > * pos)

References masked_layer_, and positions_.

◆ end()

template<int D>
std::vector< std::pair< Position< D >, size_t > >::iterator nest::ConnectionCreator::PoolWrapper_< D >::end ( ) const

References positions_.

Referenced by nest::ConnectionCreator::pairwise_bernoulli_on_source_(), nest::ConnectionCreator::pairwise_bernoulli_on_target_(), and nest::ConnectionCreator::pairwise_poisson_().

Here is the caller graph for this function:

◆ masked_begin()

template<int D>
Ntree< D, size_t >::masked_iterator nest::ConnectionCreator::PoolWrapper_< D >::masked_begin ( const Position< D > & pos) const

References masked_layer_.

Referenced by nest::ConnectionCreator::pairwise_bernoulli_on_source_(), nest::ConnectionCreator::pairwise_bernoulli_on_target_(), and nest::ConnectionCreator::pairwise_poisson_().

Here is the caller graph for this function:

◆ masked_end()

template<int D>
Ntree< D, size_t >::masked_iterator nest::ConnectionCreator::PoolWrapper_< D >::masked_end ( ) const

References masked_layer_.

Referenced by nest::ConnectionCreator::pairwise_bernoulli_on_source_(), nest::ConnectionCreator::pairwise_bernoulli_on_target_(), and nest::ConnectionCreator::pairwise_poisson_().

Here is the caller graph for this function:

Member Data Documentation

◆ masked_layer_

template<int D>
MaskedLayer< D >* nest::ConnectionCreator::PoolWrapper_< D >::masked_layer_
private

◆ positions_

template<int D>
std::vector< std::pair< Position< D >, size_t > >* nest::ConnectionCreator::PoolWrapper_< D >::positions_
private

Referenced by begin(), define(), define(), end(), and PoolWrapper_().


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