ChannelVisitorInstallFacet install some ChannelFacet. More...
#include <Channels/ChannelVisitorInstallFacet.H>
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. |
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.
ChannelVisitorInstallFacet< CFS, CFC >::ChannelVisitorInstallFacet | ( | ) | [inline] |
Constructor.
Definition at line 46 of file ChannelVisitorInstallFacet.C.
ChannelVisitorInstallFacet< CFS, CFC >::~ChannelVisitorInstallFacet | ( | ) | [inline, virtual] |
Destructor.
Definition at line 53 of file ChannelVisitorInstallFacet.C.
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().
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().
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().