Logo ROOT   6.21/01
Reference Guide
REveDataSimpleProxyBuilderTemplate.hxx
Go to the documentation of this file.
1 #ifndef ROOT7_REveDataProxySimpleBuilderTemplate
2 #define ROOT7_REveDataProxySimpleBuilderTemplate
3 
4 
6 
7 
8 namespace ROOT {
9 namespace Experimental {
10 
11 template <typename T>
13 
14 public:
16  {
17  }
18 
19 protected:
21  void Build(const void *iData, int index, REveElement *itemHolder, const REveViewContext *context) override
22  {
23  if(iData) {
24  Build(*reinterpret_cast<const T*> (iData), index, itemHolder, context);
25  }
26  }
27 
28  virtual void Build(const T & /*iData*/, int /*index*/, REveElement * /*itemHolder*/, const REveViewContext * /*context*/)
29  {
30  throw std::runtime_error("virtual Build(const T&, int, REveElement&, const REveViewContext*) not implemented by inherited class.");
31  }
32 
34  void BuildViewType(const void *iData, int index, REveElement *itemHolder, std::string viewType, const REveViewContext *context) override
35  {
36  if(iData) {
37  BuildViewType(*reinterpret_cast<const T*> (iData), index, itemHolder, viewType, context);
38  }
39  }
40 
41  virtual void BuildViewType(const T & /*iData*/, int /*index*/, REveElement * /*itemHolder*/, std::string /*viewType*/, const REveViewContext * /*context*/)
42  {
43  throw std::runtime_error("virtual BuildViewType(const T&, int, REveElement&, const REveViewContext*) not implemented by inherited class.");
44  }
45 
46 private:
48 
50 };
51 
52 
53 } // namespace Experimental
54 } // namespace ROOT
55 #endif
Returns the available number of logical cores.
Definition: StringConv.hxx:21
double T(double x)
Definition: ChebyshevPol.h:34
virtual void Build(const T &, int, REveElement *, const REveViewContext *)
const REveDataSimpleProxyBuilderTemplate & operator=(const REveDataSimpleProxyBuilderTemplate &)
void Build(const void *iData, int index, REveElement *itemHolder, const REveViewContext *context) override
void BuildViewType(const REveDataCollection *iCollection, REveElement *product, std::string viewType, const REveViewContext *) override
void BuildViewType(const void *iData, int index, REveElement *itemHolder, std::string viewType, const REveViewContext *context) override
virtual void BuildViewType(const T &, int, REveElement *, std::string, const REveViewContext *)