CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public 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)
 
 FWConfigurableParameterizable (const FWConfigurableParameterizable &)=delete
 
const
FWConfigurableParameterizable
operator= (const FWConfigurableParameterizable &)=delete
 
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 ()
 
 FWParameterizable (const FWParameterizable &)=delete
 
const FWParameterizableoperator= (const FWParameterizable &)=delete
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
 FWConfigurable (const FWConfigurable &)=delete
 
const FWConfigurableoperator= (const FWConfigurable &)=delete
 
virtual ~FWConfigurable ()
 

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::FWConfigurableParameterizable ( unsigned int  iVersion = 1)

Definition at line 32 of file FWConfigurableParameterizable.cc.

32 : m_version(iVersion) {}
FWConfigurableParameterizable::~FWConfigurableParameterizable ( )
override

Definition at line 39 of file FWConfigurableParameterizable.cc.

39 {}
FWConfigurableParameterizable::FWConfigurableParameterizable ( const FWConfigurableParameterizable )
delete

Member Function Documentation

void FWConfigurableParameterizable::addTo ( FWConfiguration oTo) const
overridevirtual

Implements FWConfigurable.

Reimplemented in FWGeometryTableViewBase, FWEveView, FWTableView, FWProxyBuilderConfiguration, FWLegoViewBase, FWRPZView, FWTriggerTableView, and FWGlimpseView.

Definition at line 67 of file FWConfigurableParameterizable.cc.

References FWParameterizable::begin(), and FWParameterizable::end().

Referenced by FWTriggerTableView::addTo(), CmsShowCommon::addTo(), FWProxyBuilderConfiguration::addTo(), FWTableView::addTo(), FWEveView::addTo(), FWGeometryTableViewBase::addTo(), and FWGUIManager::addTo().

67  {
68  for (const_iterator it = begin(), itEnd = end(); it != itEnd; ++it) {
69  (*it)->addTo(oTo);
70  }
71 }
const_iterator begin() const
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator end() const
const FWConfigurableParameterizable& FWConfigurableParameterizable::operator= ( const FWConfigurableParameterizable )
delete
void FWConfigurableParameterizable::setFrom ( const FWConfiguration iFrom)
overridevirtual

Implements FWConfigurable.

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

Definition at line 56 of file FWConfigurableParameterizable.cc.

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

Referenced by FWTableView::setFrom().

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 }
const_iterator begin() const
unsigned int version() const
std::vector< FWParameterBase * >::const_iterator const_iterator
assert(be >=bs)
const_iterator end() const
unsigned int FWConfigurableParameterizable::version ( ) const
inline

Member Data Documentation

unsigned int FWConfigurableParameterizable::m_version
private

Definition at line 49 of file FWConfigurableParameterizable.h.

Referenced by setFrom(), and version().