Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:31

0001 #ifndef Fireworks_Core_FWItemSingleAccessor_h
0002 #define Fireworks_Core_FWItemSingleAccessor_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWItemSingleAccessor
0007 //
0008 /**\class FWItemSingleAccessor FWItemSingleAccessor.h Fireworks/Core/interface/FWItemSingleAccessor.h
0009 
0010    Description: <one line class summary>
0011 
0012    Usage:
0013     <usage>
0014 
0015  */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Sat Oct 18 11:36:41 EDT 2008
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "Fireworks/Core/interface/FWItemAccessorBase.h"
0025 
0026 // forward declarations
0027 
0028 class FWItemSingleAccessor : public FWItemAccessorBase {
0029 public:
0030   FWItemSingleAccessor(const TClass*);
0031   ~FWItemSingleAccessor() override;
0032 
0033   // ---------- const member functions ---------------------
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   // ---------- member functions ---------------------------
0043   void setData(const edm::ObjectWithDict&) override;
0044   void reset() override;
0045 
0046   FWItemSingleAccessor(const FWItemSingleAccessor&) = delete;  // stop default
0047 
0048   const FWItemSingleAccessor& operator=(const FWItemSingleAccessor&) = delete;  // stop default
0049 
0050 private:
0051   // ---------- member data --------------------------------
0052   const TClass* m_type;
0053   const void* m_data;
0054 };
0055 
0056 #endif