ChannelVisitorInstallFacet< CFS, CFC > Class Template Reference

ChannelVisitorInstallFacet install some ChannelFacet. More...

#include <Channels/ChannelVisitorInstallFacet.H>

Inheritance diagram for ChannelVisitorInstallFacet< CFS, CFC >:
Inheritance graph
[legend]
Collaboration diagram for ChannelVisitorInstallFacet< CFS, CFC >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ChannelVisitorInstallFacet ()
 Constructor.
virtual ~ChannelVisitorInstallFacet ()
 Destructor.
virtual void visitChannelBase (ChannelBase &chan)
 Visit the given ChannelBase node.
virtual void visitSingleChannel (SingleChannel &chan)
 Visit the given SingleChannel node.
virtual void visitComplexChannel (ComplexChannel &chan)
 Visit the given ComplexChannel node.

Detailed Description

template<class CFS, class CFC>
class ChannelVisitorInstallFacet< CFS, CFC >

ChannelVisitorInstallFacet install some ChannelFacet.

This visitor installs some ChannelFacet. The two template arguments are for the ChannelFacetSingle and the ChannelFacetComplex to be installed.

Definition at line 48 of file ChannelVisitorInstallFacet.H.


Constructor & Destructor Documentation

template<class CFS , class CFC >
ChannelVisitorInstallFacet< CFS, CFC >::ChannelVisitorInstallFacet (  )  [inline]

Constructor.

Definition at line 46 of file ChannelVisitorInstallFacet.C.

template<class CFS , class CFC >
ChannelVisitorInstallFacet< CFS, CFC >::~ChannelVisitorInstallFacet (  )  [inline, virtual]

Destructor.

Definition at line 53 of file ChannelVisitorInstallFacet.C.


Member Function Documentation

template<class CFS , class CFC >
void ChannelVisitorInstallFacet< CFS, CFC >::visitChannelBase ( ChannelBase chan  )  [inline, virtual]

Visit the given ChannelBase node.

This will just LFATAL() for ChannelVisitorInstallFacet.

Implements ChannelVisitor.

Definition at line 59 of file ChannelVisitorInstallFacet.C.

References ModelComponent::tagName().

template<class CFS , class CFC >
void ChannelVisitorInstallFacet< CFS, CFC >::visitComplexChannel ( ComplexChannel chan  )  [inline, virtual]

Visit the given ComplexChannel node.

NOTE: ComplexChannel does NOT provide the iteration over its subchannels; instead, each ChannelVisitor subclass must iterate over ComplexChannel's subchannels, calling subChan(i)->accept(*this) for each one. Although this requires slightly more code for each ChannelVisitor subclass, it is also much more flexible since it lets the visitor be aware of the hierarchical structres of the various channels that it visits.

Implements ChannelVisitor.

Definition at line 82 of file ChannelVisitorInstallFacet.C.

References rutz::demangled_name(), ModelComponent::descriptiveName(), ChannelFacetMap::hasFacet(), ComplexChannel::numChans(), ChannelFacetMap::setFacet(), and ComplexChannel::subChan().

template<class CFS , class CFC >
void ChannelVisitorInstallFacet< CFS, CFC >::visitSingleChannel ( SingleChannel chan  )  [inline, virtual]

Visit the given SingleChannel node.

Install appropriate ChannelFacetGainSingle and ChannelFacetGainComplex if those do not already exist. Then load up the gains from our ParamMap.

Implements ChannelVisitor.

Definition at line 67 of file ChannelVisitorInstallFacet.C.

References rutz::demangled_name(), ModelComponent::descriptiveName(), ChannelFacetMap::hasFacet(), and ChannelFacetMap::setFacet().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:20:47 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3