CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FWParameterizable.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWParameterizable_h
2 #define Fireworks_Core_FWParameterizable_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWParameterizable
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sat Feb 23 13:35:23 EST 2008
19 //
20 
21 // system include files
22 #include <vector>
23 
24 // user include files
25 
26 // forward declarations
27 class FWParameterBase;
28 
30 public:
32  virtual ~FWParameterizable();
33 
34  typedef std::vector<FWParameterBase*>::const_iterator const_iterator;
35  // ---------- const member functions ---------------------
36  const_iterator begin() const { return m_parameters.begin(); }
37 
38  const_iterator end() const { return m_parameters.end(); }
39 
40  // ---------- static member functions --------------------
41 
42  // ---------- member functions ---------------------------
43  //base class implementation does not take ownership of added parameters
44  void add(FWParameterBase*);
45 
46  FWParameterizable(const FWParameterizable&) = delete; // stop default
47 
48  const FWParameterizable& operator=(const FWParameterizable&) = delete; // stop default
49 private:
50  // ---------- member data --------------------------------
51  std::vector<FWParameterBase*> m_parameters;
52 };
53 
54 #endif
const_iterator begin() const
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator end() const
virtual ~FWParameterizable()
void add(FWParameterBase *)
const FWParameterizable & operator=(const FWParameterizable &)=delete
std::vector< FWParameterBase * > m_parameters