File indexing completed on 2024-04-06 12:11:31
0001 #ifndef Fireworks_Core_FWItemSingleAccessor_h
0002 #define Fireworks_Core_FWItemSingleAccessor_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "Fireworks/Core/interface/FWItemAccessorBase.h"
0025
0026
0027
0028 class FWItemSingleAccessor : public FWItemAccessorBase {
0029 public:
0030 FWItemSingleAccessor(const TClass*);
0031 ~FWItemSingleAccessor() override;
0032
0033
0034 const void* modelData(int iIndex) const override;
0035 const void* data() const override;
0036 unsigned int size() const override;
0037 const TClass* modelType() const override;
0038 const TClass* type() const override;
0039
0040 bool isCollection() const override;
0041
0042
0043 void setData(const edm::ObjectWithDict&) override;
0044 void reset() override;
0045
0046 FWItemSingleAccessor(const FWItemSingleAccessor&) = delete;
0047
0048 const FWItemSingleAccessor& operator=(const FWItemSingleAccessor&) = delete;
0049
0050 private:
0051
0052 const TClass* m_type;
0053 const void* m_data;
0054 };
0055
0056 #endif