packages feed

HROOT-hist-0.8: csrc/HROOTHistTH2D.cpp

#include <MacroPatternMatch.h>

#include "HROOTHistTH2.h"
#include "HROOTCoreTArrayD.h"
#include "TH2D.h"
#include "HROOTHistTH2D.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_TH2D_fill1_PROTECTED ()

TH2_DEF_VIRT(TH2D)
TARRAYD_DEF_VIRT(TH2D)
TH1_DEF_VIRT(TH2D)
TOBJECT_DEF_VIRT(TH2D)
TATTLINE_DEF_VIRT(TH2D)
TATTFILL_DEF_VIRT(TH2D)
TATTMARKER_DEF_VIRT(TH2D)
DELETABLE_DEF_VIRT(TH2D)
TARRAY_DEF_VIRT(TH2D)

TH2D_DEF_VIRT(TH2D)

TH2D_DEF_NONVIRT(TH2D)