packages feed

HROOT-hist-0.8: csrc/HROOTHistTH3.cpp

#include <MacroPatternMatch.h>

#include "HROOTHistTH1D.h"
#include "HROOTHistTH1.h"
#include "HROOTHistTF1.h"
#include "HROOTCoreTAtt3D.h"
#include "TH3.h"
#include "HROOTHistTH3.h"

using namespace std;


template<class ToType, class FromType>
const ToType* to_const(const FromType* x) {
  return reinterpret_cast<const ToType*>(x);
}

template<class ToType, class FromType>
ToType* to_nonconst(FromType* x) {
  return reinterpret_cast<ToType*>(x);
}

template<class ToType, class FromType>
const ToType& to_constref(const FromType& x) {
  return reinterpret_cast<const ToType&>(x);
}

template<class ToType, class FromType>
ToType& to_nonconstref(FromType& x) {
  return reinterpret_cast<ToType&>(x);
}


#define CHECKPROTECT(x,y) IS_PAREN(IS_ ## x ## _ ## y ## _PROTECTED)

#define TYPECASTMETHOD(cname,mname,oname) \
  IIF( CHECKPROTECT(cname,mname) ) ( \
  (to_nonconst<oname,cname ## _t>), \
  (to_nonconst<cname,cname ## _t>) )

#define IS_TH3_fill1_PROTECTED ()
#define IS_TH3_fill1w_PROTECTED ()

TH1_DEF_VIRT(TH3)
TATT3D_DEF_VIRT(TH3)
TOBJECT_DEF_VIRT(TH3)
TATTLINE_DEF_VIRT(TH3)
TATTFILL_DEF_VIRT(TH3)
TATTMARKER_DEF_VIRT(TH3)
DELETABLE_DEF_VIRT(TH3)

TH3_DEF_VIRT(TH3)

TH3_DEF_NONVIRT(TH3)