CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: FWItemSingleAccessor.h,v 1.6 2012/08/03 18:20:28 wmtan Exp $
20 //
21 
22 // system include files
23 
24 // user include files
26 
27 // forward declarations
28 
30 
31 public:
32  FWItemSingleAccessor(const TClass*);
33  virtual ~FWItemSingleAccessor();
34 
35  // ---------- const member functions ---------------------
36  const void* modelData(int iIndex) const;
37  const void* data() const;
38  unsigned int size() const;
39  const TClass* modelType() const;
40  const TClass* type() const;
41 
42  bool isCollection() const;
43 
44  // ---------- member functions ---------------------------
45  void setData(const edm::ObjectWithDict& );
46  virtual void reset();
47 
48 private:
49  FWItemSingleAccessor(const FWItemSingleAccessor&); // stop default
50 
51  const FWItemSingleAccessor& operator=(const FWItemSingleAccessor&); // stop default
52 
53  // ---------- member data --------------------------------
54  const TClass* m_type;
55  const void* m_data;
56 
57 };
58 
59 
60 #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