packages feed

HROOT-hist-0.8: csrc/HROOTHistTH2S.cpp

#include <MacroPatternMatch.h>

#include "HROOTHistTH2.h"
#include "HROOTCoreTArrayS.h"
#include "TH2S.h"
#include "HROOTHistTH2S.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_TH2S_fill1_PROTECTED ()

TH2_DEF_VIRT(TH2S)
TARRAYS_DEF_VIRT(TH2S)
TH1_DEF_VIRT(TH2S)
TOBJECT_DEF_VIRT(TH2S)
TATTLINE_DEF_VIRT(TH2S)
TATTFILL_DEF_VIRT(TH2S)
TATTMARKER_DEF_VIRT(TH2S)
DELETABLE_DEF_VIRT(TH2S)
TARRAY_DEF_VIRT(TH2S)

TH2S_DEF_VIRT(TH2S)

TH2S_DEF_NONVIRT(TH2S)