ConnectionDecisionPredicateSpecialization< S, D > Class Template Reference

Template which allows type-safe specialization of ConnectionDecisionPredicate's for certain classes of SimObjectPopulations. More...

#include <ConnectionDecisionPredicateSpecialization.h>

Inheritance diagram for ConnectionDecisionPredicateSpecialization< S, D >:

Inheritance graph
[legend]
Collaboration diagram for ConnectionDecisionPredicateSpecialization< S, D >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void init (SimObjectPopulation const &src, SimObjectPopulation const &dst, RandomEngine *rnd)
 This function will be called to tell the decision predicate about the source and destination poulation.
virtual bool decide (size_t src, size_t dst, RandomEngine *rnd)
 It seems that this dummy implementation is needed for Py++ in order to be able to exclude (not exposed to python).

Protected Attributes

const S * m_sourcePopulation
const D * m_destinationPopulation


Detailed Description

template<typename S, typename D>
class ConnectionDecisionPredicateSpecialization< S, D >

Template which allows type-safe specialization of ConnectionDecisionPredicate's for certain classes of SimObjectPopulations.

Definition at line 28 of file ConnectionDecisionPredicateSpecialization.h.


Member Function Documentation

template<typename S, typename D>
virtual void ConnectionDecisionPredicateSpecialization< S, D >::init ( SimObjectPopulation const &  src,
SimObjectPopulation const &  dst,
RandomEngine rnd 
) [inline, virtual]

This function will be called to tell the decision predicate about the source and destination poulation.

This is a generic implementation which checks the actual type of the src and dst populations and stores references to the populations in the two protected members m_sourcePopulation and m_destinationPopulation.

Implements ConnectionDecisionPredicate.

Reimplemented in LateralLongRangeOrientationConnectionPredicate, and RetinotopicOrientationConnectionPredicate.

Definition at line 37 of file ConnectionDecisionPredicateSpecialization.h.

template<typename S, typename D>
virtual bool ConnectionDecisionPredicateSpecialization< S, D >::decide ( size_t  src,
size_t  dst,
RandomEngine rnd 
) [inline, virtual]


Member Data Documentation

template<typename S, typename D>
const S* ConnectionDecisionPredicateSpecialization< S, D >::m_sourcePopulation [protected]

template<typename S, typename D>
const D* ConnectionDecisionPredicateSpecialization< S, D >::m_destinationPopulation [protected]


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

Generated on Wed Jul 9 16:34:47 2008 for PCSIM by  doxygen 1.5.5