38 Class()->IgnoreTObjectStreamer();
52 static const char*
const here =
"Fill()";
76 for(
const auto& datamap :
fDataMap ) {
77 if( datamap.ncopy == 0 )
break;
78 if( !datamap.pvar )
continue;
80 THaVar* pvar = datamap.pvar;
81 Int_t ncopy = datamap.ncopy;
83 if( datamap.ncopyvar )
84 ncopy = *datamap.ncopyvar;
96 if(
type >= kDoubleP ) {
98 void** loc = (
void**)
src;
99 src = (
const void*)(*loc);
103 memcpy( datamap.dest,
src, ncopy*
size );
107 for(
int i=0; i<ncopy; i++ ) {
108 const int** psrc = (
const int**)
src;
109 int*
dest =
static_cast<int*
>( datamap.dest );
120 for(
int i=0, j=0; i<ncopy; i++, j++ ) {
126 *(((
Double_t*)datamap.dest)+j) = val;
128 case kFloat:
case kFloatP:
131 case kInt:
case kIntP:
132 *(((
Int_t*)datamap.dest)+j) =
static_cast<Int_t>(val);
134 case kUInt:
case kUIntP:
135 *(((
UInt_t*)datamap.dest)+j) =
static_cast<UInt_t>(val);
137 case kShort:
case kShortP:
140 case kUShort:
case kUShortP:
143 case kLong:
case kLongP:
146 case kULong:
case kULongP:
149 case kChar:
case kCharP:
150 *(((
Char_t*)datamap.dest)+j) =
static_cast<Char_t>(val);
152 case kByte:
case kByteP:
153 *(((
Byte_t*)datamap.dest)+j) =
static_cast<Byte_t>(val);
157 "Not filled.", pvar->
GetName() );
177 if( datamap.ncopy == 0 )
break;
181 Warning(
"Init()",
"Global variable %s not found. "
182 "Will be filled with zero.", datamap.name );
183 datamap.pvar =
nullptr;
size_t size(const MatrixT &matrix)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
R__EXTERN class THaVarList * gHaVars
static const char *const here
virtual void Clear(Option_t *opt="")
std::vector< DataMap > fDataMap
virtual void Reset(Option_t *opt="")
virtual THaVar * Find(const char *name) const
Bool_t IsPointerArray() const
Double_t GetValue(Int_t i=0) const
static const Double_t kInvalid
const void * GetValuePointer() const
static const Long64_t kInvalidInt
size_t GetTypeSize() const
const char * GetName() const override
virtual void Warning(const char *method, const char *msgfmt,...) const
unsigned long long ULong64_t