CMS 3D CMS Logo

FWItemSingleAccessor.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWItemSingleAccessor_h
2 #define Fireworks_Core_FWItemSingleAccessor_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWItemSingleAccessor
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sat Oct 18 11:36:41 EDT 2008
19 //
20 
21 // system include files
22 
23 // user include files
25 
26 // forward declarations
27 
29 
30 public:
31  FWItemSingleAccessor(const TClass*);
32  virtual ~FWItemSingleAccessor();
33 
34  // ---------- const member functions ---------------------
35  const void* modelData(int iIndex) const;
36  const void* data() const;
37  unsigned int size() const;
38  const TClass* modelType() const;
39  const TClass* type() const;
40 
41  bool isCollection() const;
42 
43  // ---------- member functions ---------------------------
44  void setData(const edm::ObjectWithDict& );
45  virtual void reset();
46 
47 private:
48  FWItemSingleAccessor(const FWItemSingleAccessor&); // stop default
49 
50  const FWItemSingleAccessor& operator=(const FWItemSingleAccessor&); // stop default
51 
52  // ---------- member data --------------------------------
53  const TClass* m_type;
54  const void* m_data;
55 
56 };
57 
58 
59 #endif
const FWItemSingleAccessor & operator=(const FWItemSingleAccessor &)
const void * data() const
FWItemSingleAccessor(const TClass *)
unsigned int size() const
const TClass * type() const
void setData(const edm::ObjectWithDict &)
override if id of an object should be different than the index
const void * modelData(int iIndex) const
const TClass * modelType() const