NEST main@caf0ae8
 
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_ ( )

◆ ~PoolWrapper_()

Member Function Documentation

◆ begin()

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

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)

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)

◆ end()

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

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

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

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

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