Logo ROOT  
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
ROOT::Experimental::REveViewContext
Definition: REveViewContext.hxx:21
ROOT::Experimental::REveDataSimpleProxyBuilderTemplate::REveDataSimpleProxyBuilderTemplate
REveDataSimpleProxyBuilderTemplate(const REveDataSimpleProxyBuilderTemplate &)
ROOT::Experimental::REveDataSimpleProxyBuilderTemplate::Build
void Build(const void *iData, int index, REveElement *itemHolder, const REveViewContext *context) override
Definition: REveDataSimpleProxyBuilderTemplate.hxx:21
ROOT::Experimental::REveDataSimpleProxyBuilder::BuildViewType
void BuildViewType(const REveDataCollection *iCollection, REveElement *product, std::string viewType, const REveViewContext *) override
Definition: REveDataSimpleProxyBuilder.cxx:74
ROOT::Experimental::REveDataSimpleProxyBuilderTemplate::BuildViewType
void BuildViewType(const void *iData, int index, REveElement *itemHolder, std::string viewType, const REveViewContext *context) override
Definition: REveDataSimpleProxyBuilderTemplate.hxx:34
REveDataSimpleProxyBuilder.hxx
ROOT::Experimental::REveDataSimpleProxyBuilderTemplate::BuildViewType
virtual void BuildViewType(const T &, int, REveElement *, std::string, const REveViewContext *)
Definition: REveDataSimpleProxyBuilderTemplate.hxx:41
ROOT::Experimental::REveElement
Definition: REveElement.hxx:80
ROOT::Experimental::REveDataSimpleProxyBuilderTemplate::operator=
const REveDataSimpleProxyBuilderTemplate & operator=(const REveDataSimpleProxyBuilderTemplate &)
ROOT::Experimental::REveDataSimpleProxyBuilderTemplate::Build
virtual void Build(const T &, int, REveElement *, const REveViewContext *)
Definition: REveDataSimpleProxyBuilderTemplate.hxx:28
ROOT::Experimental::REveDataSimpleProxyBuilderTemplate
Definition: REveDataSimpleProxyBuilderTemplate.hxx:12
ROOT::Experimental::REveDataProxyBuilderBase::Build
void Build()
Definition: REveDataProxyBuilderBase.cxx:84
ROOT::Experimental::REveDataSimpleProxyBuilder
Definition: REveDataSimpleProxyBuilder.hxx:24
ROOT::Math::Chebyshev::T
double T(double x)
Definition: ChebyshevPol.h:34
ROOT::Experimental::REveDataSimpleProxyBuilderTemplate::Build
void Build(const REveDataCollection *iCollection, REveElement *product, const REveViewContext *) override
Definition: REveDataSimpleProxyBuilder.cxx:38
ROOT::Experimental::REveDataSimpleProxyBuilderTemplate::BuildViewType
void BuildViewType(const REveDataCollection *iCollection, REveElement *product, std::string viewType, const REveViewContext *) override
Definition: REveDataSimpleProxyBuilder.cxx:74
ROOT
VSD Structures.
Definition: StringConv.hxx:21
ROOT::Experimental::REveDataSimpleProxyBuilderTemplate::REveDataSimpleProxyBuilderTemplate
REveDataSimpleProxyBuilderTemplate()
Definition: REveDataSimpleProxyBuilderTemplate.hxx:15