CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
FWConfigurableParameterizable Class Reference

#include <Fireworks/Core/interface/FWConfigurableParameterizable.h>

Inheritance diagram for FWConfigurableParameterizable:
FWParameterizable FWConfigurable CmsShowCommon FWProxyBuilderConfiguration FWViewBase FWViewEnergyScale FWEveView FWGeometryTableViewBase FWTableView FWTriggerTableView FW3DViewBase FWGlimpseView FWLegoViewBase FWRPZView FWGeometryTableView FWOverlapTableView FWHLTTriggerTableView FWL1TriggerTableView

Public Member Functions

void addTo (FWConfiguration &) const override
 
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
void setFrom (const FWConfiguration &) override
 
unsigned int version () const
 
 ~FWConfigurableParameterizable () override
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Private Member Functions

 FWConfigurableParameterizable (const FWConfigurableParameterizable &)=delete
 
const FWConfigurableParameterizableoperator= (const FWConfigurableParameterizable &)=delete
 

Private Attributes

unsigned int m_version
 

Additional Inherited Members

- Public Types inherited from FWParameterizable
typedef std::vector< FWParameterBase * >::const_iterator const_iterator
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 29 of file FWConfigurableParameterizable.h.

Constructor & Destructor Documentation

◆ FWConfigurableParameterizable() [1/2]

FWConfigurableParameterizable::FWConfigurableParameterizable ( unsigned int  iVersion = 1)

Definition at line 32 of file FWConfigurableParameterizable.cc.

32 : m_version(iVersion) {}

◆ ~FWConfigurableParameterizable()

FWConfigurableParameterizable::~FWConfigurableParameterizable ( )
override

Definition at line 39 of file FWConfigurableParameterizable.cc.

39 {}

◆ FWConfigurableParameterizable() [2/2]

FWConfigurableParameterizable::FWConfigurableParameterizable ( const FWConfigurableParameterizable )
privatedelete

Member Function Documentation

◆ addTo()

void FWConfigurableParameterizable::addTo ( FWConfiguration oTo) const
overridevirtual

◆ operator=()

const FWConfigurableParameterizable& FWConfigurableParameterizable::operator= ( const FWConfigurableParameterizable )
privatedelete

◆ setFrom()

void FWConfigurableParameterizable::setFrom ( const FWConfiguration iFrom)
overridevirtual

Implements FWConfigurable.

Reimplemented in FWProxyBuilderConfiguration, FWTableView, FWEveView, FWViewEnergyScale, FWGeometryTableView, FWTriggerTableView, FWRPZView, FWLegoViewBase, FWGlimpseView, and FWOverlapTableView.

Definition at line 56 of file FWConfigurableParameterizable.cc.

56  {
57  //need a way to handle versioning
58  assert(iFrom.version() == m_version);
59  for (const_iterator it = begin(), itEnd = end(); it != itEnd; ++it) {
60  (*it)->setFrom(iFrom);
61  }
62 }

References cms::cuda::assert(), FWParameterizable::begin(), FWParameterizable::end(), m_version, and FWConfiguration::version().

Referenced by FWTableView::setFrom().

◆ version()

unsigned int FWConfigurableParameterizable::version ( ) const
inline

Member Data Documentation

◆ m_version

unsigned int FWConfigurableParameterizable::m_version
private

Definition at line 49 of file FWConfigurableParameterizable.h.

Referenced by setFrom(), and version().

FWParameterizable::const_iterator
std::vector< FWParameterBase * >::const_iterator const_iterator
Definition: FWParameterizable.h:34
cms::cuda::assert
assert(be >=bs)
FWParameterizable::end
const_iterator end() const
Definition: FWParameterizable.h:38
FWParameterizable::begin
const_iterator begin() const
Definition: FWParameterizable.h:36
FWConfiguration::version
unsigned int version() const
Definition: FWConfiguration.h:49
FWConfigurableParameterizable::m_version
unsigned int m_version
Definition: FWConfigurableParameterizable.h:49