CMS 3D CMS Logo

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 {
31 
32 public:
34  virtual ~FWParameterizable();
35 
36  typedef std::vector<FWParameterBase* >::const_iterator const_iterator;
37  // ---------- const member functions ---------------------
38  const_iterator begin() const {
39  return m_parameters.begin();
40  }
41 
42  const_iterator end() const {
43  return m_parameters.end();
44  }
45 
46  // ---------- static member functions --------------------
47 
48  // ---------- member functions ---------------------------
49  //base class implementation does not take ownership of added parameters
50  void add(FWParameterBase*);
51 
52 private:
53  FWParameterizable(const FWParameterizable&); // stop default
54 
55  const FWParameterizable& operator=(const FWParameterizable&); // stop default
56 
57  // ---------- member data --------------------------------
58  std::vector<FWParameterBase* > m_parameters;
59 };
60 
61 
62 #endif
const FWParameterizable & operator=(const FWParameterizable &)
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator begin() const
std::vector< FWParameterBase * > m_parameters
const_iterator end() const
virtual ~FWParameterizable()
void add(FWParameterBase *)