39 # define INLINE_TEMPLATE_ARGS 41 # define INLINE_TEMPLATE_ARGS inline 47 template <
typename From>
48 struct WithFactorMarker {
52 template <
typename From>
53 struct NoFactorMarker {
74 if (fConfiguration) fConfiguration->PrintDebug(buf,addr);
86 printf(
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d," 87 " %s, offset=%d (%s)\n",
89 aElement->
ClassName(), fOffset, sequenceType.Data());
100 TString sequenceType;
103 printf(
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d," 104 " %s, bufpos=%d, arr=%p, offset=%d (%s)\n",
106 aElement->
ClassName(), buf.
Length(), addr, fOffset, sequenceType.Data());
114 printf(
"TLoopConfiguration: unconfigured\n");
123 void PrintDebug(
TBuffer &,
void *)
const {
139 void PrintDebug(
TBuffer &,
void *)
const {
142 TString sequenceType;
145 printf(
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d," 146 " %s, offset=%d (%s)\n",
148 aElement->
ClassName(), fOffset, sequenceType.Data());
151 void AddToOffset(
Int_t delta)
166 char *obj = (
char*)addr;
167 TGenericConfiguration *conf = (TGenericConfiguration*)config;
173 char *obj = (
char*)addr;
174 TGenericConfiguration *conf = (TGenericConfiguration*)config;
175 return ((
TStreamerInfo*)conf->fInfo)->WriteBufferAux(buf, &obj, &(conf->fCompInfo), 0, 1, 1, config->
fOffset, 2);
178 template <
typename T>
181 T *
x = (
T*)( ((
char*)addr) + config->
fOffset );
188 TBitsConfiguration *conf = (TBitsConfiguration*)config;
200 uid = ( obj->
GetUniqueID() & 0xffffff) + (gpid<<24);
221 template <
typename T>
224 T *
x = (
T*)( ((
char*)addr) + config->
fOffset );
232 void *
x = (
void*)( ((
char*)addr) + config->
fOffset );
240 void *
x = (
void*)( ((
char*)addr) + config->
fOffset );
248 template<
bool kIsTextT>
273 char **contp = (
char **)((
char *)addr + ioffset);
275 char *cont = contp[j];
277 Int_t nobjects = cont ? proxy->
Size() : 0;
292 if (pstreamer == 0) {
294 char **contp = (
char**)((
char *) addr + ioffset);
296 char *cont = contp[j];
312 template<
bool kIsTextT>
329 (*pstreamer)(buf, (
char *) addr + ioffset , *counter);
331 buf.SetByteCount(pos,
kTRUE);
349 fileVersion = file->GetVersion();
354 if (fileVersion > 51508) {
364 char** pp = (
char**) ((
char *) addr + ioffset );
404 char** pp = (
char**) ((
char *) addr + ioffset );
428 char**
r = (
char**) pp[ndx];
449 TConfWithFactor(
TVirtualStreamerInfo *info,
UInt_t id, TCompInfo_t *compinfo,
Int_t offset,
Double_t factor,
Double_t xmin) :
TConfiguration(info,
id,compinfo,offset),fFactor(factor),fXmin(xmin) {};
453 template <
typename T>
459 TConfWithFactor *conf = (TConfWithFactor *)config;
472 template <
typename T>
477 TConfNoFactor *conf = (TConfNoFactor *)config;
478 Int_t nbits = conf->fNbits;
490 ((TString*)(((
char*)addr)+config->
fOffset))->TString::Streamer(buf);
500 ((
TObject*)(((
char*)addr)+config->
fOffset))->TObject::Streamer(buf);
533 const char *fTypeName;
542 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(oldClass), fStreamer(0), fTypeName(type_name), fIsSTLBase(isbase),
543 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
546 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(newClass), fStreamer(0), fTypeName(type_name), fIsSTLBase(isbase),
547 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
550 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(oldClass), fStreamer(streamer), fTypeName(type_name), fIsSTLBase(isbase),
551 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
554 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(newClass), fStreamer(streamer), fTypeName(type_name), fIsSTLBase(isbase),
555 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
560 class TConfSTLWithFactor :
public TConfigSTL {
565 TConfSTLWithFactor(TConfigSTL *orig,
Double_t factor,
Double_t xmin) : TConfigSTL(*orig),fFactor(factor),fXmin(xmin) {};
569 class TConfSTLNoFactor :
public TConfigSTL {
573 TConfSTLNoFactor(TConfigSTL *orig,
Int_t nbits) : TConfigSTL(*orig),fNbits(nbits) {};
585 virtual ~TVectorLoopConfig() {};
588 printf(
"TVectorLoopConfig: increment=%ld\n",fIncrement);
591 void* GetFirstAddress(
void *start,
const void * )
const 606 virtual ~TAssocLoopConfig() {};
609 printf(
"TAssocLoopConfig: proxy=%s\n",fProxy->GetCollectionClass()->GetName());
613 void* GetFirstAddress(
void *start,
const void * )
const 633 if (fProxy->HasPointers()) {
638 fNext = fProxy->GetFunctionNext(read);
639 fCopyIterator = fProxy->GetFunctionCopyIterator(read);
640 fDeleteIterator = fProxy->GetFunctionDeleteIterator(read);
653 virtual ~TGenericLoopConfig() {};
656 printf(
"TGenericLoopConfig: proxy=%s\n",fProxy->GetCollectionClass()->GetName());
660 void* GetFirstAddress(
void *start_collection,
const void *end_collection)
const 665 void *iter = fCopyIterator(&iterator,start_collection);
666 void *arr0 = fNext(iter,end_collection);
667 if (iter != &iterator[0]) {
668 fDeleteIterator(iter);
678 TConfigSTL *config = (TConfigSTL*)conf;
683 TClass *oldClass = config->fOldClass;
696 void* alternative = oldProxy->
Allocate(nobjects,
true);
702 void *begin = &(startbuf[0]);
703 void *end = &(endbuf[0]);
704 config->fCreateIterators(alternative, &begin, &end, oldProxy);
708 if (begin != &(startbuf[0])) {
710 config->fDeleteTwoIterators(begin,end);
713 oldProxy->
Commit(alternative);
717 TClass *oldClass = config->fOldClass;
728 void* env = oldProxy->
Allocate(nobjects,
true);
730 if (nobjects || vers < 7 ) {
744 TConfigSTL *config = (TConfigSTL*)conf;
749 TClass *oldClass = config->fOldClass;
761 int objectSize = oldClass->
Size();
762 char *obj = (
char*)addr;
763 char *endobj = obj + conf->
fLength*objectSize;
765 for(; obj<endobj; obj+=objectSize) {
769 void* alternative = oldProxy->
Allocate(nobjects,
true);
773 void *begin = &(startbuf[0]);
774 void *end = &(endbuf[0]);
775 config->fCreateIterators(alternative, &begin, &end, oldProxy);
779 if (begin != &(startbuf[0])) {
781 config->fDeleteTwoIterators(begin,end);
784 oldProxy->
Commit(alternative);
789 TClass *oldClass = config->fOldClass;
797 int objectSize = oldClass->
Size();
798 char *obj = (
char*)addr;
799 char *endobj = obj + conf->
fLength*objectSize;
801 for(; obj<endobj; obj+=objectSize) {
805 void* env = oldProxy->
Allocate(nobjects,
true);
807 if (nobjects || vers < 7 ) {
822 TConfigSTL *config = (TConfigSTL*)conf;
826 TClass *newClass = config->fNewClass;
827 TClass *oldClass = config->fOldClass;
830 Error(
"ReadSTLMemberWiseChangedClass",
"Unfortunately, version %d of TStreamerInfo (used in %s) did not record enough information to convert a %s into a %s.",
842 void* alternative = newProxy->
Allocate(nobjects,
true);
847 void *begin = &(startbuf[0]);
848 void *end = &(endbuf[0]);
849 config->fCreateIterators( alternative, &begin, &end, newProxy);
853 if (begin != &(startbuf[0])) {
855 config->fDeleteTwoIterators(begin,end);
858 newProxy->
Commit(alternative);
866 TConfigSTL *config = (TConfigSTL*)conf;
870 TClass *newClass = config->fNewClass;
871 TClass *oldClass = config->fOldClass;
874 Error(
"ReadSTLMemberWiseChangedClass",
"Unfortunately, version %d of TStreamerInfo (used in %s) did not record enough information to convert a %s into a %s.",
883 int objectSize = newClass->
Size();
884 char *obj = (
char*)addr;
885 char *endobj = obj + conf->
fLength*objectSize;
887 for(; obj<endobj; obj+=objectSize) {
891 void* alternative = newProxy->
Allocate(nobjects,
true);
896 void *begin = &(startbuf[0]);
897 void *end = &(endbuf[0]);
898 config->fCreateIterators( alternative, &begin, &end, newProxy);
902 if (begin != &(startbuf[0])) {
904 config->fDeleteTwoIterators(begin,end);
907 newProxy->
Commit(alternative);
915 TConfigSTL *config = (TConfigSTL*)conf;
921 TConfigSTL *config = (TConfigSTL*)conf;
922 (*config->fStreamer)(buf,addr,conf->
fLength);
928 TConfigSTL *config = (TConfigSTL*)conf;
931 if (config->fIsSTLBase || vers == 0) {
941 TConfigSTL *config = (TConfigSTL*)conf;
944 if (config->fIsSTLBase || vers == 0) {
947 (*config->fStreamer)(buf,addr,conf->
fLength);
954 TConfigSTL *config = (TConfigSTL*)conf;
956 Version_t vers = buf.
ReadVersion(&start, &count, config->fOldClass);
958 memberwise(buf,((
char*)addr)+config->fOffset,config, vers);
960 objectwise(buf,((
char*)addr)+config->fOffset,config, vers, start);
966 template <
typename From,
typename To>
967 struct ConvertBasicType {
973 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
978 template <
typename To>
979 struct ConvertBasicType<BitsMarker,To> {
990 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
995 template <
typename From,
typename To>
996 struct ConvertBasicType<WithFactorMarker<From>,To> {
1000 TConfWithFactor *conf = (TConfWithFactor *)config;
1003 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
1008 template <
typename From,
typename To>
1009 struct ConvertBasicType<NoFactorMarker<From>,To> {
1013 TConfNoFactor *conf = (TConfNoFactor *)config;
1016 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
1021 class TConfigurationPushDataCache :
public TConfiguration {
1027 TConfiguration(info, -1,
nullptr, offset), fOnfileObject(onfileObject)
1030 virtual void Print()
const {
1033 printf(
"StreamerInfoAction, class:%s, PushDataCache offset=%d\n",
1036 printf(
"StreamerInfoAction, class:%s, PopDataCache offset=%d\n",
1039 virtual void PrintDebug(
TBuffer &buffer,
void *
object)
const {
1042 printf(
"StreamerInfoAction, class:%s, %sDataCache, bufpos=%d, arr=%p, offset=%d, onfileObject=%p\n",
1043 info->
GetClass()->
GetName(), fOnfileObject ?
"Push" :
"Pop", buffer.
Length(), object, fOffset, fOnfileObject);
1051 TConfigurationPushDataCache *config = (TConfigurationPushDataCache*)conf;
1052 auto onfileObject = config->fOnfileObject;
1062 TConfigurationPushDataCache *config = (TConfigurationPushDataCache*)conf;
1063 auto onfileObject = config->fOnfileObject;
1068 onfileObject->SetSize(n);
1086 class TConfigurationUseCache :
public TConfiguration {
1094 virtual void PrintDebug(
TBuffer &
b,
void *addr)
const 1100 fprintf(stdout,
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d," 1101 " %s, bufpos=%d, arr=%p, eoffset=%d, Redirect=%p\n",
1107 virtual ~TConfigurationUseCache() {};
1108 virtual TConfiguration *
Copy() {
1109 TConfigurationUseCache *copy =
new TConfigurationUseCache(*
this);
1117 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1124 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1125 char *ptr = (
char*)addr;
1128 config->fAction(b, (*cached)[0]);
1131 if (config->fNeedRepeat) {
1139 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1146 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1147 char *ptr = (
char*)start;
1148 UInt_t n = (((
void**)end)-((
void**)start));
1151 TVectorLoopConfig cached_config(
nullptr, cached->
fClass->
Size(),
kTRUE );
1152 void *cached_start = (*cached)[0];
1153 void *cached_end = ((
char*)cached_start) + cached->
fSize * cached_config.fIncrement;
1154 config->fAction(b,cached_start,cached_end,&cached_config);
1157 if (config->fNeedRepeat) {
1165 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1172 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1173 char *ptr = (
char*)start;
1174 UInt_t n = (((
char*)end)-((
char*)start))/((TVectorLoopConfig*)loopconf)->fIncrement;
1177 TVectorLoopConfig cached_config(
nullptr, cached->
fClass->
Size(),
kTRUE );
1178 void *cached_start = (*cached)[0];
1179 void *cached_end = ((
char*)cached_start) + cached->
fSize * cached_config.fIncrement;
1180 config->fAction(b,cached_start,cached_end,&cached_config);
1183 if (config->fNeedRepeat) {
1191 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1200 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1204 TVectorLoopConfig cached_config(
nullptr, cached->
fClass->
Size(),
kTRUE );
1205 void *cached_start = (*cached)[0];
1206 void *cached_end = ((
char*)cached_start) + cached->
fSize * cached_config.fIncrement;
1207 config->fAction(b,cached_start,cached_end,&cached_config);
1210 if (config->fNeedRepeat) {
1247 struct VectorLooper {
1249 template <
typename T>
1252 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1253 iter = (
char*)iter + config->
fOffset;
1254 end = (
char*)end + config->
fOffset;
1255 for(; iter != end; iter = (
char*)iter + incr ) {
1256 T *
x = (
T*) ((
char*) iter);
1262 template <
typename From,
typename To>
1263 struct ConvertBasicType {
1268 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1269 iter = (
char*)iter + config->
fOffset;
1270 end = (
char*)end + config->
fOffset;
1271 for(; iter != end; iter = (
char*)iter + incr ) {
1273 *(To*)( ((
char*)iter) ) = (To)temp;
1279 template <
typename To>
1280 struct ConvertBasicType<BitsMarker,To> {
1285 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1286 iter = (
char*)iter + config->
fOffset;
1287 end = (
char*)end + config->
fOffset;
1288 for(; iter != end; iter = (
char*)iter + incr ) {
1295 *(To*)( ((
char*)iter) ) = (To)temp;
1301 template <
typename From,
typename To>
1302 struct ConvertBasicType<WithFactorMarker<From>,To> {
1306 TConfWithFactor *conf = (TConfWithFactor *)config;
1308 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1309 iter = (
char*)iter + config->
fOffset;
1310 end = (
char*)end + config->
fOffset;
1311 for(; iter != end; iter = (
char*)iter + incr ) {
1313 *(To*)( ((
char*)iter) ) = (To)temp;
1319 template <
typename From,
typename To>
1320 struct ConvertBasicType<NoFactorMarker<From>,To> {
1324 TConfNoFactor *conf = (TConfNoFactor *)config;
1326 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1327 iter = (
char*)iter + config->
fOffset;
1328 end = (
char*)end + config->
fOffset;
1329 for(; iter != end; iter = (
char*)iter + incr ) {
1331 *(To*)( ((
char*)iter) ) = (To)temp;
1337 template <
typename T>
1340 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1341 iter = (
char*)iter + config->
fOffset;
1342 end = (
char*)end + config->
fOffset;
1343 for(; iter != end; iter = (
char*)iter + incr ) {
1344 T *
x = (
T*) ((
char*) iter);
1350 template <Int_t (*iter_action)(TBuffer&,
void *,const TConfiguration*)>
1353 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1356 for(
void *iter = start; iter != end; iter = (
char*)iter + incr ) {
1357 iter_action(buf, iter, config);
1367 UInt_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1368 UInt_t n = (((
char*)end)-((
char*)start))/incr;
1369 char **arrptr =
new char*[
n];
1371 for(
void *iter = start; iter != end; iter = (
char*)iter + incr, ++i ) {
1372 arrptr[i] = (
char*)iter;
1404 UInt_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1405 UInt_t n = (((
char*)end)-((
char*)start))/incr;
1406 char **arrptr =
new char*[
n];
1408 for(
void *iter = start; iter != end; iter = (
char*)iter + incr, ++i ) {
1409 arrptr[i] = (
char*)iter;
1420 UInt_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1421 UInt_t n = (((
char*)end)-((
char*)start))/incr;
1422 char **arrptr =
new char*[
n];
1424 for(
void *iter = start; iter != end; iter = (
char*)iter + incr, ++i ) {
1425 arrptr[i] = (
char*)iter;
1432 template <
typename T>
1437 TConfigSTL *config = (TConfigSTL*)conf;
1439 buf.
ReadVersion(&start, &count, config->fOldClass);
1441 std::vector<T> *
const vec = (std::vector<T>*)(((
char*)addr)+config->fOffset);
1444 vec->resize(nvalues);
1446 #ifdef R__VISUAL_CPLUSPLUS 1452 T *begin = &(*vec->begin());
1463 TConfigSTL *config = (TConfigSTL*)conf;
1465 buf.
ReadVersion(&start, &count, config->fOldClass);
1467 std::vector<bool> *
const vec = (std::vector<bool>*)(((
char*)addr)+config->fOffset);
1470 vec->resize(nvalues);
1472 bool *items =
new bool[nvalues];
1474 for(
Int_t i = 0 ; i < nvalues; ++i) {
1475 (*vec)[i] = items[i];
1494 TConfigSTL *config = (TConfigSTL*)conf;
1496 buf.
ReadVersion(&start, &count, config->fOldClass);
1498 std::vector<float> *
const vec = (std::vector<float>*)(((
char*)addr)+config->fOffset);
1501 vec->resize(nvalues);
1503 #ifdef R__VISUAL_CPLUSPLUS 1509 float *begin = &(*vec->begin());
1520 TConfigSTL *config = (TConfigSTL*)conf;
1522 buf.
ReadVersion(&start, &count, config->fOldClass);
1524 std::vector<double> *
const vec = (std::vector<double>*)(((
char*)addr)+config->fOffset);
1527 vec->resize(nvalues);
1529 #ifdef R__VISUAL_CPLUSPLUS 1535 double *begin = &(*vec->begin());
1542 template <
typename From,
typename To>
1543 struct ConvertCollectionBasicType {
1548 TConfigSTL *config = (TConfigSTL*)conf;
1550 buf.
ReadVersion(&start, &count, config->fOldClass);
1552 std::vector<To> *
const vec = (std::vector<To>*)(((
char*)addr)+config->fOffset);
1555 vec->resize(nvalues);
1557 From *temp =
new From[nvalues];
1559 for(
Int_t ind = 0; ind < nvalues; ++ind) {
1560 (*vec)[ind] = (To)temp[ind];
1569 template <
typename From,
typename To>
1570 struct ConvertCollectionBasicType<NoFactorMarker<From>,To> {
1575 TConfigSTL *config = (TConfigSTL*)conf;
1577 buf.
ReadVersion(&start, &count, config->fOldClass);
1579 std::vector<To> *
const vec = (std::vector<To>*)(((
char*)addr)+config->fOffset);
1582 vec->resize(nvalues);
1584 From *temp =
new From[nvalues];
1586 for(
Int_t ind = 0; ind < nvalues; ++ind) {
1587 (*vec)[ind] = (To)temp[ind];
1596 template <
typename To>
1601 TConfigSTL *config = (TConfigSTL*)conf;
1603 buf.
ReadVersion(&start, &count, config->fOldClass);
1605 std::vector<To> *
const vec = (std::vector<To>*)(((
char*)addr)+config->fOffset);
1608 vec->resize(nvalues);
1612 for(
Int_t ind = 0; ind < nvalues; ++ind) {
1613 (*vec)[ind] = (To)temp[ind];
1623 struct VectorPtrLooper {
1625 template <
typename T>
1630 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
1631 T *
x = (
T*)( ((
char*) (*(
void**)iter) ) + offset );
1637 template <
typename From,
typename To>
1638 struct ConvertBasicType {
1644 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
1646 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
1653 template <
typename To>
1654 struct ConvertBasicType<BitsMarker,To> {
1660 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
1667 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
1674 template <
typename From,
typename To>
1675 struct ConvertBasicType<WithFactorMarker<From>,To> {
1679 TConfWithFactor *conf = (TConfWithFactor *)config;
1682 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
1684 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
1691 template <
typename From,
typename To>
1692 struct ConvertBasicType<NoFactorMarker<From>,To> {
1696 TConfNoFactor *conf = (TConfNoFactor *)config;
1699 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
1701 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
1708 template <
typename T>
1713 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
1714 T *
x = (
T*)( ((
char*) (*(
void**)iter) ) + offset );
1720 template <Int_t (*action)(TBuffer&,
void *,const TConfiguration*)>
1723 for(
void *iter = start; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
1724 action(buf, *(
void**)iter, config);
1734 return GenericRead(buf,start,end,config);
1739 Int_t n = ( ((
void**)end) - ((
void**)iter) );
1740 char **arr = (
char**)iter;
1746 Int_t n = ( ((
void**)end) - ((
void**)iter) );
1747 char **arr = (
char**)iter;
1753 struct AssociativeLooper {
1755 template <
typename T>
1771 template <
typename T,
void (*action)(TBuffer&,
void *,Int_t)>
1776 TConfigSTL *config = (TConfigSTL*)conf;
1778 buf.
ReadVersion(&start, &count, config->fOldClass);
1780 TClass *newClass = config->fNewClass;
1786 void* alternative = newProxy->
Allocate(nvalues,
true);
1790 void *begin = &(startbuf[0]);
1791 void *end = &(endbuf[0]);
1792 config->fCreateIterators(alternative, &begin, &end, newProxy);
1796 action(buf,begin,nvalues);
1798 if (begin != &(startbuf[0])) {
1800 config->fDeleteTwoIterators(begin,end);
1803 newProxy->
Commit(alternative);
1811 return ReadNumericalCollection<bool,SimpleRead<bool> >(buf,addr,conf);
1816 return ReadNumericalCollection<Float_t,SimpleReadFloat16 >(buf,addr,conf);
1821 return ReadNumericalCollection<Double_t,SimpleReadDouble32 >(buf,addr,conf);
1824 template <
typename T>
1827 return ReadNumericalCollection<T,SimpleRead<T> >(buf,addr,conf);
1830 template <
typename From,
typename To>
1831 struct ConvertRead {
1834 From *temp =
new From[nvalues];
1836 To *vec = (To*)addr;
1837 for(
Int_t ind = 0; ind < nvalues; ++ind) {
1838 vec[ind] = (To)temp[ind];
1844 template <
typename From,
typename To>
1845 struct ConvertRead<NoFactorMarker<From>,To> {
1848 From *temp =
new From[nvalues];
1850 To *vec = (To*)addr;
1851 for(
Int_t ind = 0; ind < nvalues; ++ind) {
1852 vec[ind] = (To)temp[ind];
1858 template <
typename From,
typename To>
1859 struct ConvertRead<WithFactorMarker<From>,To> {
1862 From *temp =
new From[nvalues];
1865 To *vec = (To*)addr;
1866 for(
Int_t ind = 0; ind < nvalues; ++ind) {
1867 vec[ind] = (To)temp[ind];
1873 template <
typename From,
typename To>
1874 struct ConvertCollectionBasicType {
1877 return ReadNumericalCollection<To,ConvertRead<From,To>::Action >(buf,addr,conf);
1883 struct GenericLooper {
1885 template <
typename T>
1888 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
1890 Next_t next = loopconfig->fNext;
1894 void *iter = loopconfig->fCopyIterator(iterator,start);
1896 while( (addr = next(iter,end)) ) {
1897 T *
x = (
T*)( ((
char*)addr) + offset );
1900 if (iter != &iterator[0]) {
1901 loopconfig->fDeleteIterator(iter);
1906 template <
typename T>
1909 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
1911 Next_t next = loopconfig->fNext;
1915 void *iter = loopconfig->fCopyIterator(iterator,start);
1917 while( (addr = next(iter,end)) ) {
1918 T *
x = (
T*)( ((
char*)addr) + offset );
1921 if (iter != &iterator[0]) {
1922 loopconfig->fDeleteIterator(iter);
1927 template <Int_t (*iter_action)(TBuffer&,
void *,const TConfiguration*)>
1930 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
1933 Next_t next = loopconfig->fNext;
1936 void *iter = loopconfig->fCopyIterator(&iterator,start);
1938 while( (addr = next(iter,end)) ) {
1939 iter_action(buf, addr, config);
1941 if (iter != &iterator[0]) {
1942 loopconfig->fDeleteIterator(iter);
1947 template <
typename From,
typename To>
1949 static void ConvertAction(From *items,
void *start,
const void *end,
const TLoopConfiguration *loopconf,
const TConfiguration *config)
1951 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
1954 Next_t next = loopconfig->fNext;
1957 void *iter = loopconfig->fCopyIterator(&iterator,start);
1959 while( (addr = next(iter,end)) ) {
1960 To *
x = (To*)( ((
char*)addr) + offset );
1964 if (iter != &iterator[0]) {
1965 loopconfig->fDeleteIterator(iter);
1970 template <
typename From,
typename To>
1972 static void ConvertAction(From *items,
void *start,
const void *end,
const TLoopConfiguration *loopconf,
const TConfiguration * )
1977 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
1978 Next_t next = loopconfig->fNext;
1982 while( (addr = next(iter,end)) ) {
1983 To *
x = (To*)(addr);
1990 template <
typename From,
typename To,
template <
typename F,
typename T>
class Converter = Generic >
1991 struct ConvertBasicType {
1996 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2000 From *items =
new From[nvalues];
2002 Converter<From,To>::ConvertAction(items,start,end,loopconfig,config);
2008 template <
typename To>
2009 struct ConvertBasicType<BitsMarker, To, Generic> {
2014 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2019 UInt_t *items = items_storage;
2022 Next_t next = loopconfig->fNext;
2025 void *iter = loopconfig->fCopyIterator(&iterator,start);
2027 while( (addr = next(iter,end)) ) {
2032 To *
x = (To*)( ((
char*)addr) + offset );
2036 if (iter != &iterator[0]) {
2037 loopconfig->fDeleteIterator(iter);
2040 delete [] items_storage;
2045 template <
typename From,
typename To,
template <
typename F,
typename T>
class Converter >
2046 struct ConvertBasicType<WithFactorMarker<From>,To,Converter > {
2051 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2055 TConfSTLWithFactor *conf = (TConfSTLWithFactor *)config;
2057 From *items =
new From[nvalues];
2059 Converter<From,To>::ConvertAction(items,start,end,loopconfig,config);
2065 template <
typename From,
typename To,
template <
typename F,
typename T>
class Converter >
2066 struct ConvertBasicType<NoFactorMarker<From>,To,Converter > {
2071 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2075 TConfSTLNoFactor *conf = (TConfSTLNoFactor *)config;
2077 From *items =
new From[nvalues];
2079 Converter<From,To>::ConvertAction(items,start,end,loopconfig,config);
2090 return GenericRead(buf,start,end,loopconfig, config);
2095 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2102 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2107 template <
typename T>
2126 template <
typename ActionHolder>
2131 TConfigSTL *config = (TConfigSTL*)conf;
2133 buf.
ReadVersion(&start, &count, config->fOldClass);
2135 TClass *newClass = config->fNewClass;
2141 void* alternative = newProxy->
Allocate(nvalues,
true);
2145 void *begin = &(startbuf[0]);
2146 void *end = &(endbuf[0]);
2147 config->fCreateIterators(alternative, &begin, &end, newProxy);
2151 TGenericLoopConfig loopconf(newProxy,
kTRUE);
2152 ActionHolder::Action(buf,begin,end,&loopconf,config);
2154 if (begin != &(startbuf[0])) {
2156 config->fDeleteTwoIterators(begin,end);
2159 newProxy->
Commit(alternative);
2167 return ReadNumericalCollection<ConvertBasicType<bool,bool,Numeric > >(buf,addr,conf);
2172 return ReadNumericalCollection<ConvertBasicType<NoFactorMarker<float>,float,Numeric > >(buf,addr,conf);
2177 return ReadNumericalCollection<ConvertBasicType<float,double,Numeric > >(buf,addr,conf);
2182 template <
typename T>
2185 return ReadNumericalCollection<ConvertBasicType<T,T,Numeric > >(buf,addr,conf);
2188 template <
typename From,
typename To>
2189 struct ConvertCollectionBasicType {
2193 return ReadNumericalCollection<ConvertBasicType<From,To,Numeric > >(buf,addr,conf);
2200 template <
typename Looper,
typename From>
2228 template <
class Looper>
2248 case TStreamerInfo::kBits:
Error(
"GetNumericCollectionReadAction",
"There is no support for kBits outside of a TObject.");
break;
2250 TConfigSTL *alternate =
new TConfSTLNoFactor(conf,12);
2263 TConfigSTL *alternate =
new TConfSTLNoFactor(conf,0);
2279 Fatal(
"GetNumericCollectionReadAction",
"Is confused about %d",type);
2284 template <
typename Looper,
typename From>
2311 template <
typename Looper>
2316 return GetConvertCollectionReadActionFrom<Looper,Bool_t>(newtype, conf );
2319 return GetConvertCollectionReadActionFrom<Looper,Char_t>(newtype, conf );
2322 return GetConvertCollectionReadActionFrom<Looper,Short_t>(newtype, conf );
2325 return GetConvertCollectionReadActionFrom<Looper,Int_t>(newtype, conf );
2328 return GetConvertCollectionReadActionFrom<Looper,Long_t>(newtype, conf );
2331 return GetConvertCollectionReadActionFrom<Looper,Long64_t>(newtype, conf );
2334 return GetConvertCollectionReadActionFrom<Looper,Float_t>( newtype, conf );
2337 return GetConvertCollectionReadActionFrom<Looper,Double_t>(newtype, conf );
2340 return GetConvertCollectionReadActionFrom<Looper,UChar_t>(newtype, conf );
2343 return GetConvertCollectionReadActionFrom<Looper,UShort_t>(newtype, conf );
2346 return GetConvertCollectionReadActionFrom<Looper,UInt_t>(newtype, conf );
2349 return GetConvertCollectionReadActionFrom<Looper,ULong_t>(newtype, conf );
2352 return GetConvertCollectionReadActionFrom<Looper,ULong64_t>(newtype, conf );
2355 return GetConvertCollectionReadActionFrom<Looper,NoFactorMarker<Float16_t> >( newtype, conf );
2358 return GetConvertCollectionReadActionFrom<Looper,NoFactorMarker<Double32_t> >( newtype, conf );
2361 Error(
"GetConvertCollectionReadAction",
"There is no support for kBits outside of a TObject.");
2370 template <
class Looper>
2391 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_WithFactor<float> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2394 if (!nbits) nbits = 12;
2395 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_NoFactor<float> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2401 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_WithFactor<double> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2405 return TConfiguredAction( Looper::template ReadAction<ConvertBasicType<float,double>::Action >,
new TConfiguration(info,i,compinfo,offset) );
2407 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_NoFactor<double> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2425 return GetCollectionReadConvertAction<Looper,Bool_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2428 return GetCollectionReadConvertAction<Looper,Char_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2431 return GetCollectionReadConvertAction<Looper,Short_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2434 return GetCollectionReadConvertAction<Looper,Int_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2437 return GetCollectionReadConvertAction<Looper,Long_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2440 return GetCollectionReadConvertAction<Looper,Long64_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2443 return GetCollectionReadConvertAction<Looper,Float_t>( element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2446 return GetCollectionReadConvertAction<Looper,Double_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2449 return GetCollectionReadConvertAction<Looper,UChar_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2452 return GetCollectionReadConvertAction<Looper,UShort_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2455 return GetCollectionReadConvertAction<Looper,UInt_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2458 return GetCollectionReadConvertAction<Looper,ULong_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2461 return GetCollectionReadConvertAction<Looper,ULong64_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2464 return GetCollectionReadConvertAction<Looper,BitsMarker>(element->
GetNewType(),
new TBitsConfiguration(info,i,compinfo,offset) );
2468 return GetCollectionReadConvertAction<Looper,WithFactorMarker<float> >(element->
GetNewType(),
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2471 if (!nbits) nbits = 12;
2472 return GetCollectionReadConvertAction<Looper,NoFactorMarker<float> >(element->
GetNewType(),
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2478 return GetCollectionReadConvertAction<Looper,WithFactorMarker<double> >(element->
GetNewType(),
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2482 return GetCollectionReadConvertAction<Looper,Float_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2484 return GetCollectionReadConvertAction<Looper,NoFactorMarker<double> >(element->
GetNewType(),
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2490 return TConfiguredAction( Looper::GenericRead,
new TGenericConfiguration(info,i,compinfo) );
2497 template <
class Looper>
2516 return TConfiguredAction( Looper::GenericWrite,
new TConfiguration(info,i,compinfo,0 ) );
2545 if (fNumber >= infos->
GetSize()) {
2548 if (!infos->
At(fNumber)) {
2549 infos->
AddAt(
this, fNumber);
2553 assert(fComp == 0 && fCompFull == 0 && fCompOpt == 0);
2556 Int_t ndata = fElements->GetEntries();
2559 if (fReadObjectWise) fReadObjectWise->fActions.clear();
2562 if (fWriteObjectWise) fWriteObjectWise->fActions.clear();
2565 if (fReadMemberWise) fReadMemberWise->fActions.clear();
2568 if (fWriteMemberWise) fWriteMemberWise->fActions.clear();
2571 if (fReadMemberWiseVecPtr) fReadMemberWiseVecPtr->fActions.clear();
2574 if (fWriteMemberWiseVecPtr) fWriteMemberWiseVecPtr->fActions.clear();
2577 if (fWriteText) fWriteText->fActions.clear();
2589 fCompOpt[0] = fCompFull[0] = &(fComp[0]);
2597 fNslots = ndata + ndata/2 + 1;
2609 if (!CanOptimize()) {
2610 SetBit(kCannotOptimize);
2616 for (i = 0; i < ndata; ++i) {
2626 fComp[fNdata].fType = element->
GetType();
2627 fComp[fNdata].fNewType = element->
GetNewType();
2628 fComp[fNdata].fOffset = element->
GetOffset();
2630 fComp[fNdata].fElem = element;
2631 fComp[fNdata].fMethod = element->
GetMethod();
2638 if (!TestBit(kCannotOptimize)
2642 && (fComp[fNdata].
fType == fComp[fNdata].fNewType)
2643 && (fComp[keep].fMethod == 0)
2646 && (fComp[keep].
fType < kObject)
2649 && ((element->
GetOffset()-fComp[keep].fOffset) == (fComp[keep].fLength)*asize)
2650 && ((fOldVersion<6) || !previous ||
2661 if (!previousOptimized) {
2664 fComp[fNslots - (++optiOut) ] = fComp[keep];
2665 fCompFull[fNfulldata-1] = &(fComp[fNslots - optiOut]);
2667 fComp[fNslots - (++optiOut) ] = fComp[fNdata];
2668 fCompFull[fNfulldata] = &(fComp[fNslots - optiOut]);
2670 R__ASSERT( keep < (fNslots - optiOut) );
2672 if (fComp[keep].fLength == 0) {
2673 fComp[keep].fLength++;
2675 fComp[keep].fLength++;
2677 isOptimized =
kTRUE;
2678 previousOptimized =
kTRUE;
2679 }
else if (element->
GetType() < 0) {
2689 fComp[fNslots - (++optiOut) ] = fComp[fNdata];
2690 fCompFull[fNfulldata] = &(fComp[fNslots - optiOut]);
2692 previousOptimized =
kFALSE;
2695 if (fComp[fNdata].fNewType != fComp[fNdata].
fType) {
2696 if (fComp[fNdata].fNewType > 0) {
2697 if ( (fComp[fNdata].fNewType == kObjectp || fComp[fNdata].fNewType == kAnyp
2698 || fComp[fNdata].fNewType == kObject || fComp[fNdata].fNewType == kAny
2699 || fComp[fNdata].fNewType == kTObject || fComp[fNdata].fNewType == kTNamed || fComp[fNdata].fNewType == kTString)
2700 && (fComp[fNdata].fType == kObjectp || fComp[fNdata].fType == kAnyp
2701 || fComp[fNdata].fType == kObject || fComp[fNdata].fType == kAny
2702 || fComp[fNdata].fType == kTObject || fComp[fNdata].fType == kTNamed || fComp[fNdata].fType == kTString )
2704 fComp[fNdata].fType = fComp[fNdata].fNewType;
2705 }
else if (fComp[fNdata].fType !=
kCounter) {
2706 fComp[fNdata].fType += kConv;
2709 if (fComp[fNdata].fType ==
kCounter) {
2710 Warning(
"Compile",
"Counter %s should not be skipped from class %s", element->
GetName(),
GetName());
2712 fComp[fNdata].fType += kSkip;
2715 fCompOpt[fNdata] = &(fComp[fNdata]);
2716 fCompFull[fNfulldata] = &(fComp[fNdata]);
2718 R__ASSERT( fNdata < (fNslots - optiOut) );
2721 if (fComp[keep].fLength == 0) {
2722 fComp[keep].fLength = 1;
2725 previousOptimized =
kFALSE;
2735 for (i = 0; i < fNdata; ++i) {
2736 if (!fCompOpt[i]->fElem || fCompOpt[i]->fElem->GetType()< 0) {
2739 AddReadAction(fReadObjectWise, i, fCompOpt[i]);
2740 AddWriteAction(fWriteObjectWise, i, fCompOpt[i]);
2742 for (i = 0; i < fNfulldata; ++i) {
2743 if (!fCompFull[i]->fElem || fCompFull[i]->fElem->GetType()< 0) {
2746 AddReadAction(fReadMemberWise, i, fCompFull[i]);
2747 AddWriteAction(fWriteMemberWise, i, fCompFull[i]);
2748 AddReadMemberWiseVecPtrAction(fReadMemberWiseVecPtr, i, fCompFull[i]);
2749 AddWriteMemberWiseVecPtrAction(fWriteMemberWiseVecPtr, i, fCompFull[i]);
2751 AddWriteTextAction(fWriteText, i, fCompFull[i]);
2755 fOptimized = isOptimized;
2763 template <
typename From>
2795 switch (compinfo->
fType) {
2813 readSequence->
AddAction( ReadBasicType_WithFactor<float>,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
2816 if (!nbits) nbits = 12;
2817 readSequence->
AddAction( ReadBasicType_NoFactor<float>,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
2823 readSequence->
AddAction( ReadBasicType_WithFactor<double>,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
2827 readSequence->
AddAction( ConvertBasicType<float,double>::Action,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2829 readSequence->
AddAction( ReadBasicType_NoFactor<double>,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
2846 if (newClass && newClass != oldClass) {
2848 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
2850 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase));
2854 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
2856 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetTypeName(),isSTLbase));
2860 if (newClass && newClass != oldClass) {
2862 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
2865 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase));
2869 readSequence->
AddAction(GetConvertCollectionReadAction<VectorLooper>(oldClass->
GetCollectionProxy()->
GetType(), newClass->
GetCollectionProxy()->
GetType(),
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase)));
2872 readSequence->
AddAction(GetConvertCollectionReadAction<AssociativeLooper>(oldClass->
GetCollectionProxy()->
GetType(), newClass->
GetCollectionProxy()->
GetType(),
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase)));
2878 readSequence->
AddAction(GetConvertCollectionReadAction<GenericLooper>(oldClass->
GetCollectionProxy()->
GetType(), newClass->
GetCollectionProxy()->
GetType(),
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase)));
2885 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
2888 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetTypeName(),isSTLbase));
2910 if (newClass && newClass != oldClass) {
2912 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
2914 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetTypeName(),isSTLbase));
2918 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
2920 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetTypeName(),isSTLbase));
2924 if (newClass && newClass != oldClass) {
2926 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
2928 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetTypeName(),isSTLbase));
2932 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
2934 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetTypeName(),isSTLbase));
2943 AddReadConvertAction<Bool_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2946 AddReadConvertAction<Char_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2949 AddReadConvertAction<Short_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2952 AddReadConvertAction<Int_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2955 AddReadConvertAction<Long_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2958 AddReadConvertAction<Long64_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2961 AddReadConvertAction<Float_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2964 AddReadConvertAction<Double_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2967 AddReadConvertAction<UChar_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2970 AddReadConvertAction<UShort_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2973 AddReadConvertAction<UInt_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2976 AddReadConvertAction<ULong_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2979 AddReadConvertAction<ULong64_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2982 AddReadConvertAction<BitsMarker>(readSequence, compinfo->
fNewType,
new TBitsConfiguration(
this,i,compinfo,compinfo->
fOffset) );
2986 AddReadConvertAction<WithFactorMarker<float> >(readSequence, compinfo->
fNewType,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
2989 if (!nbits) nbits = 12;
2990 AddReadConvertAction<NoFactorMarker<float> >(readSequence, compinfo->
fNewType,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
2996 AddReadConvertAction<WithFactorMarker<double> >(readSequence, compinfo->
fNewType,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
3000 AddReadConvertAction<Float_t>(readSequence, compinfo->
fNewType,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
3002 AddReadConvertAction<NoFactorMarker<double> >(readSequence, compinfo->
fNewType,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
3008 readSequence->AddAction(
GenericReadAction,
new TGenericConfiguration(
this,i,compinfo) );
3032 readSequence->
AddAction( GetCollectionReadAction<VectorPtrLooper>(
this,element,compinfo->
fType,i,compinfo,compinfo->
fOffset) );
3049 switch (compinfo->
fType) {
3133 #if defined(CDJ_NO_COMPILE) 3136 writeSequence->
fActions.pop_back();
3158 switch (compinfo->
fType) {
3190 writeSequence->
AddAction( WriteSTLp<true>,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
3195 writeSequence->
AddAction( WriteStreamerLoop<true>,
new TConfiguration(
this,i,compinfo,compinfo->
fOffset) );
3272 #if defined(CDJ_NO_COMPILE) 3275 writeSequence->
fActions.pop_back();
3296 #if defined(CDJ_NO_COMPILE) 3301 writeSequence->Addaction( GetCollectionWriteAction<VectorPtrLooper>(
this,element,compinfo->
fType,i,compinfo,compinfo->
fOffset) );
3304 writeSequence->
AddAction( VectorPtrLooper::GenericWrite,
new TGenericConfiguration(
this,i,compinfo) );
3347 for (
UInt_t i = 0; i < ndata; ++i) {
3371 ::Warning(
"CreateReadMemberWiseActions",
"%s",
3387 if (newType != oldType) {
3405 TConfiguredAction action( GetCollectionReadAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
3408 sequence->
AddAction( GetCollectionReadAction<VectorLooper>(info,element,oldType,i,compinfo,offset));
3415 TConfiguredAction action( GetCollectionReadAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
3418 sequence->
AddAction( GetCollectionReadAction<GenericLooper>(info,element,oldType,i,compinfo,offset) );
3462 for (
UInt_t i = 0; i < ndata; ++i) {
3490 #if defined(CDJ_NO_COMPILE) 3493 if (newType != oldType) {
3509 TConfiguredAction action( GetCollectionWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
3512 sequence->
AddAction(GetCollectionWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset));
3521 TConfiguredAction action( GetWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
3542 sequence->
AddAction( GenericLooper<WriteBasicType_WithFactor<float> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
3545 if (!nbits) nbits = 12;
3546 sequence->
AddAction( GenericLooper<WriteBasicType_NoFactor<float> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
3552 sequence->
AddAction( GenericLooper<WriteBasicType_WithFactor<double> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
3556 sequence->
AddAction( GenericLooper<ConvertBasicType<float,double> >,
new TConfiguration(info,i,compinfo,offset) );
3558 sequence->
AddAction( GenericLooper<WriteBasicType_NoFactor<double> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
3579 sequence->
AddAction( GetCollectionWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
3596 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
3597 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
3601 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
3602 iter->fConfiguration->AddToOffset(delta);
3614 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
3615 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
3619 TConfiguration *conf = iter->fConfiguration->
Copy();
3620 sequence->
AddAction( iter->fAction, conf );
3630 for(
UInt_t id = 0;
id < element_ids.size(); ++
id) {
3631 if ( element_ids[
id].fElemID < 0 ) {
3632 if (element_ids[
id].fNestedIDs) {
3633 auto original = create(element_ids[
id].fNestedIDs->fInfo,
3636 if (element_ids[
id].fNestedIDs->fOnfileObject) {
3637 auto conf =
new TConfigurationPushDataCache(element_ids[
id].fNestedIDs->fInfo, element_ids[
id].fNestedIDs->fOnfileObject, offset);
3644 original->AddToSubSequence(sequence, element_ids[
id].fNestedIDs->fIDs, element_ids[
id].fNestedIDs->fOffset, create);
3646 if (element_ids[
id].fNestedIDs->fOnfileObject)
3648 new TConfigurationPushDataCache(element_ids[
id].fNestedIDs->fInfo,
nullptr, element_ids[
id].fNestedIDs->fOffset) );
3650 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
3651 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
3655 TConfiguration *conf = iter->fConfiguration->
Copy();
3656 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
3658 sequence->
AddAction( iter->fAction, conf );
3663 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
3664 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
3676 if ( iter->fConfiguration->fElemId == (
UInt_t)element_ids[
id].fElemID ) {
3677 TConfiguration *conf = iter->fConfiguration->
Copy();
3678 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
3680 sequence->
AddAction( iter->fAction, conf );
3697 AddToSubSequence(sequence, element_ids, offset, create);
3711 for(
UInt_t id = 0;
id < element_ids.size(); ++
id) {
3712 if ( element_ids[
id] < 0 ) {
3713 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
3714 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
3718 TConfiguration *conf = iter->fConfiguration->
Copy();
3719 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
3721 sequence->
AddAction( iter->fAction, conf );
3724 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
3725 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
3728 if ( iter->fConfiguration->fElemId == (
UInt_t)element_ids[
id] ) {
3729 TConfiguration *conf = iter->fConfiguration->
Copy();
3730 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
3732 sequence->
AddAction( iter->fAction, conf );
3740 #if !defined(R__WIN32) && !defined(_AIX) 3749 #if defined(R__WIN32) || defined(__CYGWIN__) || defined(_AIX) 3750 return "not available on this platform";
3752 MEMORY_BASIC_INFORMATION mbi;
3753 if (!VirtualQuery (func, &mbi,
sizeof (mbi)))
3758 HMODULE hMod = (HMODULE) mbi.AllocationBase;
3759 static char moduleName[MAX_PATH];
3761 if (!GetModuleFileNameA (hMod, moduleName,
sizeof (moduleName)))
3769 if (dladdr((
void*)func,&info)==0) {
3771 return "name not found";
3774 return info.dli_sname;
3786 fLoopConfig->Print();
3788 TStreamerInfoActions::ActionContainer_t::const_iterator end = fActions.end();
3789 for(TStreamerInfoActions::ActionContainer_t::const_iterator iter = fActions.begin();
3793 iter->fConfiguration->Print();
3794 if (strstr(opt,
"func")) {
Describe Streamer information for one class version.
virtual const char * GetName() const
Returns name of object.
std::string GetName(const std::string &scope_name)
void SetBufferOffset(Int_t offset=0)
virtual Int_t GetCollectionType() const =0
virtual UInt_t GetUniqueID() const
Return the unique object id.
INLINE_TEMPLATE_ARGS Int_t ReadBasicType_WithFactor(TBuffer &buf, void *addr, const TConfiguration *config)
void PutObjectWithID(TObject *obj, UInt_t uid=0)
stores the object at the uid th slot in the table of objects The object uniqued is set as well as its...
Int_t ReadBufferSkip(TBuffer &b, const T &arrptr, const TCompInfo *compinfo, Int_t kase, TStreamerElement *aElement, Int_t narr, Int_t eoffset)
Skip an element.
Bool_t CanSplit() const
Return true if the data member of this TClass can be saved separately.
static Bool_t GetStreamMemberWise()
Return whether the TStreamerInfos will save the collections in "member-wise" order whenever possible...
virtual void * Allocate(UInt_t n, Bool_t forceDelete)=0
TVirtualStreamerInfo * fInfo
TStreamerInfo form which the action is derived.
static void AddReadConvertAction(TStreamerInfoActions::TActionSequence *sequence, Int_t newtype, TConfiguration *conf)
virtual void AddToOffset(Int_t delta)
static TConfiguredAction GetConvertCollectionReadActionFrom(Int_t newtype, TConfiguration *conf)
ActionContainer_t fActions
virtual TStreamerInfoActions::TActionSequence * GetReadMemberWiseActions(Int_t version)=0
virtual Int_t GetProperties() const
void AddReadMemberWiseVecPtrAction(TStreamerInfoActions::TActionSequence *readSequence, Int_t index, TCompInfo *compinfo)
Add a read action for the given element.
void Fatal(const char *location, const char *msgfmt,...)
INLINE_TEMPLATE_ARGS Int_t ReadSTL(TBuffer &buf, void *addr, const TConfiguration *conf)
std::vector< TIDNode > TIDs
TLoopConfiguration * fLoopConfig
If this is a bundle of memberwise streaming action, this configures the looping.
void AddReadAction(TStreamerInfoActions::TActionSequence *readSequence, Int_t index, TCompInfo *compinfo)
Add a read action for the given element.
Equal to TDataType's kchar.
static void * CopyIterator(void *dest, const void *source)
virtual TStreamerInfoActions::TActionSequence * GetConversionReadMemberWiseActions(TClass *oldClass, Int_t version)=0
virtual TClass * GetValueClass() const =0
void AddAction(action_t action, TConfiguration *conf)
TObject * GetParent() const
Return pointer to parent of this buffer.
static void * Next(void *iter, const void *end)
R__EXTERN TVirtualMutex * gInterpreterMutex
T ReadBuffer(TBufferFile *buf)
One of the template functions used to read objects from messages.
virtual void PrintDebug(TBuffer &buffer, void *object) const
virtual TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
static TConfiguredAction GetNumericCollectionReadAction(Int_t type, TConfigSTL *conf)
INLINE_TEMPLATE_ARGS Int_t ReadBasicType< BitsMarker >(TBuffer &buf, void *addr, const TConfiguration *config)
TVirtualStreamerInfo * GetStreamerInfo(Int_t version=0) const
returns a pointer to the TVirtualStreamerInfo object for version If the object does not exist...
INLINE_TEMPLATE_ARGS Int_t ReadBasicType_NoFactor(TBuffer &buf, void *addr, const TConfiguration *config)
TMemberStreamer * GetStreamer() const
Return the local streamer object.
virtual void Commit(void *)=0
INLINE_TEMPLATE_ARGS Int_t UseCacheVectorLoop(TBuffer &b, void *start, const void *end, const TLoopConfiguration *loopconf, const TConfiguration *conf)
Buffer base class used for serializing objects.
INLINE_TEMPLATE_ARGS Int_t ReadTObject(TBuffer &buf, void *addr, const TConfiguration *config)
virtual TClass * GetCollectionClass() const
virtual void Print() const
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual UInt_t WriteVersionMemberWise(const TClass *cl, Bool_t useBcnt=kFALSE)=0
void AddWriteAction(TStreamerInfoActions::TActionSequence *writeSequence, Int_t index, TCompInfo *compinfo)
UInt_t fElemId
Identifier of the TStreamerElement.
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
Int_t GetArrayLength() const
Cache the value in memory than is not part of the object but is accessible via a SchemaRule.
virtual UShort_t GetPidOffset() const =0
void AddWriteMemberWiseVecPtrAction(TStreamerInfoActions::TActionSequence *writeSequence, Int_t index, TCompInfo *compinfo)
This is for streaming via a TClonesArray (or a vector of pointers of this type).
virtual DeleteIterator_t GetFunctionDeleteIterator(Bool_t read=kTRUE)=0
virtual UInt_t WriteVersion(const TClass *cl, Bool_t useBcnt=kFALSE)=0
TObject * At(Int_t idx) const
Int_t GetArrayDim() const
INLINE_TEMPLATE_ARGS Int_t ReadTString(TBuffer &buf, void *addr, const TConfiguration *config)
virtual EDataType GetType() const =0
void GetSequenceType(TString &type) const
Fill type with the string representation of sequence information including 'cached','repeat','write' or 'nodelete'.
void *(* CopyIterator_t)(void *dest, const void *source)
Int_t PushDataCache(TBuffer &b, void *, const TConfiguration *conf)
INLINE_TEMPLATE_ARGS void ReadArraySTLMemberWiseSameClass(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers)
TCompInfo ** fCompFull
![fElements->GetEntries()]
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
static TActionSequence * CreateReadMemberWiseActions(TVirtualStreamerInfo *info, TVirtualCollectionProxy &proxy)
Create the bundle of the actions necessary for the streaming memberwise of the content described by '...
virtual void ReadInt(Int_t &i)=0
TVirtualCollectionProxy::Next_t Next_t
void AddToSubSequence(TActionSequence *sequence, const TIDs &element_ids, Int_t offset, SequenceGetter_t create)
TActionSequence * CreateSubSequence(const std::vector< Int_t > &element_ids, size_t offset)
void(* DeleteIterator_t)(void *iter)
INLINE_TEMPLATE_ARGS void ReadSTLMemberWiseChangedClass(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers)
static TConfiguredAction GetCollectionReadAction(TVirtualStreamerInfo *info, TStreamerElement *element, Int_t type, UInt_t i, TStreamerInfo::TCompInfo_t *compinfo, Int_t offset)
TActionSequence * CreateCopy()
INLINE_TEMPLATE_ARGS Int_t WriteStreamerLoop(TBuffer &buf, void *addr, const TConfiguration *config)
Direct copy of code from TStreamerInfo::WriteBufferAux, potentially can be used later for non-text st...
virtual void ReadWithNbits(Float_t *ptr, Int_t nbits)=0
virtual Int_t GetClassVersion() const =0
INLINE_TEMPLATE_ARGS Int_t WriteBasicType(TBuffer &buf, void *addr, const TConfiguration *config)
virtual const char * ClassName() const
Returns name of class to which the object belongs.
char * GetObjectAt(UInt_t ind) const
virtual TProcessID * ReadProcessID(UShort_t pidf)=0
Return the current Process-ID.
void AddWriteTextAction(TStreamerInfoActions::TActionSequence *writeSequence, Int_t index, TCompInfo *compinfo)
virtual void Copy(TObject &object) const
Copy this to obj.
void Init(TClassEdit::TInterpreterLookupHelper *helper)
Int_t WriteLoopInvalid(TBuffer &, void *, const void *, const TConfiguration *config)
TMemberStreamer * fStreamer
Not Owned.
A TProcessID identifies a ROOT job in a unique way in time and space.
Int_t PushDataCacheGenericCollection(TBuffer &b, void *, const void *, const TLoopConfiguration *loopconfig, const TConfiguration *conf)
Base class of the Configurations for the member wise looping routines.
Int_t ReadLoopInvalid(TBuffer &, void *, const void *, const TConfiguration *config)
void Error(const char *location, const char *msgfmt,...)
virtual DeleteTwoIterators_t GetFunctionDeleteTwoIterators(Bool_t read=kTRUE)=0
virtual CreateIterators_t GetFunctionCreateIterators(Bool_t read=kTRUE)=0
Int_t GenericWriteAction(TBuffer &buf, void *addr, const TConfiguration *config)
ESelectLooper SelectLooper(TVirtualCollectionProxy &proxy)
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
INLINE_TEMPLATE_ARGS void ReadSTLObjectWiseFastArray(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t, UInt_t)
virtual Version_t ReadVersionForMemberWise(const TClass *cl=0)=0
static TConfiguredAction GetCollectionReadConvertAction(Int_t newtype, TConfiguration *conf)
virtual TVirtualCollectionProxy * GetCollectionProxy() const
virtual void AddAtAndExpand(TObject *obj, Int_t idx)
Add object at position idx.
TClass * GetClass() const
Wrapper around an object and giving indirect access to its content even if the object is not of a cla...
virtual void ReadFastArrayDouble32(Double_t *d, Int_t n, TStreamerElement *ele=0)=0
static TConfiguredAction GetCollectionWriteAction(TVirtualStreamerInfo *info, TStreamerElement *, Int_t type, UInt_t i, TStreamerInfo::TCompInfo_t *compinfo, Int_t offset)
virtual Int_t ApplySequence(const TStreamerInfoActions::TActionSequence &sequence, void *object)=0
void(* CreateIterators_t)(void *collection, void **begin_arena, void **end_arena, TVirtualCollectionProxy *proxy)
Int_t fOffset
Offset within the object.
virtual void ReadFastArrayWithFactor(Float_t *ptr, Int_t n, Double_t factor, Double_t minvalue)=0
virtual TLoopConfiguration * Copy() const =0
virtual Bool_t HasPointers() const =0
static TActionSequence * CreateWriteMemberWiseActions(TVirtualStreamerInfo *info, TVirtualCollectionProxy &proxy)
Create the bundle of the actions necessary for the streaming memberwise of the content described by '...
virtual void ReadFastArrayFloat16(Float_t *f, Int_t n, TStreamerElement *ele=0)=0
virtual void Print() const
INLINE_TEMPLATE_ARGS Int_t WriteSTLp(TBuffer &buf, void *addr, const TConfiguration *config)
Direct copy of code from TStreamerInfo::WriteBufferAux, potentially can be used later for non-text st...
Int_t Size() const
Return size of object of this class.
INLINE_TEMPLATE_ARGS Int_t WriteTextTObject(TBuffer &buf, void *addr, const TConfiguration *config)
virtual TVirtualArray * PeekDataCache() const
Return the 'current' data cache area from the list of area to be used for temporarily store 'missing'...
virtual void ReadWithFactor(Float_t *ptr, Double_t factor, Double_t minvalue)=0
The ROOT global object gROOT contains a list of all defined classes.
virtual void SetByteCount(UInt_t cntpos, Bool_t packInVersion=kFALSE)=0
char * Strip(const char *str, char c=' ')
Strip leading and trailing c (blanks by default) from a string.
TStreamerInfoActions::TActionSequence * GetReadMemberWiseActions(Bool_t forCollection)
INLINE_TEMPLATE_ARGS void ReadSTLObjectWiseStreamer(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t, UInt_t)
void Warning(const char *location, const char *msgfmt,...)
INLINE_TEMPLATE_ARGS Int_t ReadBasicType(TBuffer &buf, void *addr, const TConfiguration *config)
TClass * fClass
Not Owned.
static const Int_t fgIteratorArenaSize
virtual void ReadFastArray(Bool_t *b, Int_t n)=0
INLINE_TEMPLATE_ARGS Int_t UseCacheGenericCollection(TBuffer &b, void *, const void *, const TLoopConfiguration *loopconfig, const TConfiguration *conf)
void Streamer(void *obj, TBuffer &b, const TClass *onfile_class=0) const
virtual void WriteFastArray(const Bool_t *b, Int_t n)=0
virtual void AddAt(TObject *obj, Int_t idx)
Add object at position ids.
INLINE_TEMPLATE_ARGS void ReadSTLObjectWiseStreamerV2(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers, UInt_t start)
virtual void StreamObject(void *obj, const std::type_info &typeinfo, const TClass *onFileClass=0)=0
TStreamerElement * fElem
Not Owned.
virtual ULong_t GetIncrement() const =0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
void HandleReferencedTObject(TBuffer &buf, void *addr, const TConfiguration *config)
void Copy(void *source, void *dest)
virtual TVirtualArray * PopDataCache()
Pop and Return the 'current' data cache area from the list of area to be used for temporarily store '...
void Print(Option_t *="") const
This method must be overridden when a class wants to print itself.
#define INLINE_TEMPLATE_ARGS
void Print(std::ostream &os, const OptionType &opt)
virtual void ReadFastArrayWithNbits(Float_t *ptr, Int_t n, Int_t nbits)=0
virtual TObjArray * GetElements() const =0
INLINE_TEMPLATE_ARGS Int_t WriteTextTNamed(TBuffer &buf, void *addr, const TConfiguration *config)
virtual const char * GetFullName() const
Return element name including dimensions, if any Note that this function stores the name into a stati...
INLINE_TEMPLATE_ARGS Int_t UseCache(TBuffer &b, void *addr, const TConfiguration *conf)
Double_t GetFactor() const
virtual Int_t GetSize() const
Returns size of this element in bytes.
static const Int_t kRegrouped
virtual Bool_t HasCounter() const
virtual Bool_t IsBase() const
Return kTRUE if the element represent a base class.
static void DeleteIterator(void *iter)
#define R__LOCKGUARD(mutex)
static TConfiguredAction GetConvertCollectionReadAction(Int_t oldtype, Int_t newtype, TConfiguration *conf)
virtual void PushDataCache(TVirtualArray *)
Push a new data cache area onto the list of area to be used for temporarily store 'missing' data memb...
Int_t PopDataCacheGenericCollection(TBuffer &b, void *, const void *, const TLoopConfiguration *, const TConfiguration *)
void Compile()
loop on the TStreamerElement list regroup members with same type Store predigested information into l...
virtual CopyIterator_t GetFunctionCopyIterator(Bool_t read=kTRUE)=0
Mother of all ROOT objects.
SequencePtr(*)(TStreamerInfo *info, TVirtualCollectionProxy *collectionProxy, TClass *originalClass) SequenceGetter_t
virtual UInt_t Size() const =0
typedef void((*Func_t)())
INLINE_TEMPLATE_ARGS void ReadSTLObjectWiseFastArrayV2(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers, UInt_t start)
const char * GetTypeName() const
INLINE_TEMPLATE_ARGS Int_t ReadTNamed(TBuffer &buf, void *addr, const TConfiguration *config)
TClass * GetNewClass() const
INLINE_TEMPLATE_ARGS void ReadArraySTLMemberWiseChangedClass(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers)
static const char * R__GetSymbolName(voidfunc func)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Int_t GetEntries() const
Return the number of objects in array (i.e.
INLINE_TEMPLATE_ARGS Int_t UseCacheVectorPtrLoop(TBuffer &b, void *start, const void *end, const TConfiguration *conf)
void *(* Next_t)(void *iter, const void *end)
virtual ULong_t GetMethod() const
Int_t GenericReadAction(TBuffer &buf, void *addr, const TConfiguration *config)
const char * GetErrorMessage() const
virtual const char * GetName() const
Returns name of object.
virtual Int_t GetSize() const
Abstract Interface class describing Streamer information for one class.
Int_t ReadBufferSTL(TBuffer &b, TVirtualCollectionProxy *cont, Int_t nc, Int_t eoffset, Bool_t v7=kTRUE)
The STL vector/list is deserialized from the buffer b.
void(* DeleteTwoIterators_t)(void *begin, void *end)
Base class of the Configurations.
UInt_t fLength
Number of element in a fixed length array.
INLINE_TEMPLATE_ARGS void ReadSTLMemberWiseSameClass(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers)
TStreamerInfoActions::TActionSequence * GetWriteMemberWiseActions(Bool_t forCollection)
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual const char * GetTitle() const
Returns title of object.
Int_t PopDataCache(TBuffer &b, void *, const TConfiguration *)
void AddToOffset(Int_t delta)
TCompInfo_t * fCompInfo
Access to compiled information (for legacy code)