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 public:
30  FWItemSingleAccessor(const TClass*);
31  ~FWItemSingleAccessor() override;
32 
33  // ---------- const member functions ---------------------
34  const void* modelData(int iIndex) const override;
35  const void* data() const override;
36  unsigned int size() const override;
37  const TClass* modelType() const override;
38  const TClass* type() const override;
39 
40  bool isCollection() const override;
41 
42  // ---------- member functions ---------------------------
43  void setData(const edm::ObjectWithDict&) override;
44  void reset() override;
45 
46 private:
47  FWItemSingleAccessor(const FWItemSingleAccessor&) = delete; // stop default
48 
49  const FWItemSingleAccessor& operator=(const FWItemSingleAccessor&) = delete; // stop default
50 
51  // ---------- member data --------------------------------
52  const TClass* m_type;
53  const void* m_data;
54 };
55 
56 #endif
FWItemSingleAccessor::FWItemSingleAccessor
FWItemSingleAccessor(const TClass *)
Definition: FWItemSingleAccessor.cc:32
edm::ObjectWithDict
Definition: ObjectWithDict.h:17
FWItemSingleAccessor
Definition: FWItemSingleAccessor.h:28
FWItemSingleAccessor::modelType
const TClass * modelType() const override
Definition: FWItemSingleAccessor.cc:82
FWItemSingleAccessor::size
unsigned int size() const override
Definition: FWItemSingleAccessor.cc:80
FWItemSingleAccessor::isCollection
bool isCollection() const override
Definition: FWItemSingleAccessor.cc:86
FWItemSingleAccessor::m_type
const TClass * m_type
Definition: FWItemSingleAccessor.h:52
FWItemSingleAccessor::m_data
const void * m_data
Definition: FWItemSingleAccessor.h:53
FWItemSingleAccessor::setData
void setData(const edm::ObjectWithDict &) override
override if id of an object should be different than the index
Definition: FWItemSingleAccessor.cc:56
FWItemSingleAccessor::data
const void * data() const override
Definition: FWItemSingleAccessor.cc:78
FWItemSingleAccessor::reset
void reset() override
Definition: FWItemSingleAccessor.cc:66
FWItemAccessorBase.h
FWItemSingleAccessor::~FWItemSingleAccessor
~FWItemSingleAccessor() override
Definition: FWItemSingleAccessor.cc:39
FWItemSingleAccessor::type
const TClass * type() const override
Definition: FWItemSingleAccessor.cc:84
FWItemAccessorBase
Definition: FWItemAccessorBase.h:33
FWItemSingleAccessor::operator=
const FWItemSingleAccessor & operator=(const FWItemSingleAccessor &)=delete
FWItemSingleAccessor::modelData
const void * modelData(int iIndex) const override
Definition: FWItemSingleAccessor.cc:71