39# define INLINE_TEMPLATE_ARGS
41# define INLINE_TEMPLATE_ARGS inline
54 return isEmulated || (isVector && hasDefaultAlloc);
57 template <
typename From>
58 struct WithFactorMarker {
62 template <
typename From>
63 struct NoFactorMarker {
105 printf(
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d,"
106 " %s, offset=%d (%s), elemnId=%d \n",
122 printf(
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d,"
123 " %s, bufpos=%d, arr=%p, offset=%d (%s)\n",
133 printf(
"TLoopConfiguration: unconfigured\n");
142 void PrintDebug(
TBuffer &,
void *)
const {
158 void PrintDebug(
TBuffer &,
void *)
const {
164 printf(
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d,"
165 " %s, offset=%d (%s)\n",
170 void AddToOffset(
Int_t delta)
192 char *obj = (
char*)addr;
193 TGenericConfiguration *conf = (TGenericConfiguration*)config;
199 char *obj = (
char*)addr;
200 TGenericConfiguration *conf = (TGenericConfiguration*)config;
201 return ((
TStreamerInfo*)conf->fInfo)->WriteBufferAux(buf, &obj, &(conf->fCompInfo), 0, 1, 1, config->
fOffset, 2);
204 template <
typename T>
207 T *
x = (
T*)( ((
char*)addr) + config->
fOffset );
214 TBitsConfiguration *conf = (TBitsConfiguration*)config;
226 uid = ( obj->
GetUniqueID() & 0xffffff) + (gpid<<24);
247 template <
typename T>
250 T *
x = (
T *)(((
char *)addr) + config->
fOffset);
258 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
266 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
274 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
282 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
292 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
299 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
306 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
314 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
327 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
334 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
341 template<
bool kIsTextT>
366 char **contp = (
char **)((
char *)addr + ioffset);
368 char *cont = contp[j];
370 Int_t nobjects = cont ? proxy->
Size() : 0;
384 }
else if (pstreamer ==
nullptr) {
386 char **contp = (
char **)((
char *)addr + ioffset);
388 char *cont = contp[j];
404 template<
bool kIsTextT>
427 if( vers < 9 && newClass && newClass!=oldClass ) {
428 Error(
"ReadBuffer",
"Unfortunately, version %d of TStreamerInfo (used in %s) did not record enough information to convert a %s into a %s.",
452 void **contp = (
void**)((
char *) addr + ioffset);
454 void *cont = contp[j];
456 contp[j] = cle->
New();
462 env = newProxy->
Allocate(nobjects,
true);
475 }
else if (pstreamer ==
nullptr) {
477 void **contp = (
void **)((
char *)addr + ioffset);
479 void *cont = contp[j];
480 if (cont ==
nullptr) {
485 contp[j] = cle->
New();
501 template<
bool kIsTextT>
518 (*pstreamer)(buf, (
char *) addr + ioffset , *counter);
520 buf.SetByteCount(pos,
kTRUE);
538 fileVersion =
file->GetVersion();
543 if (fileVersion > 51508) {
553 char** pp = (
char**) ((
char *) addr + ioffset );
592 char** pp = (
char**) ((
char *) addr + ioffset );
616 char**
r = (
char**) pp[ndx];
634 template<
bool kIsTextT>
657 (*pstreamer)(buf, (
char *) addr + ioffset , *counter);
675 fileVersion =
file->GetVersion();
682 if (fileVersion > 51508) {
687 Int_t vlen = *((
Int_t *)((
char *)addr + eoffset +
695 char **pp = (
char **)((
char *)addr + ioffset );
748 pp[ndx] = (
char *)cl->
NewArray(vlen);
750 Error(
"ReadBuffer",
"Memory allocation failed!\n");
757 pp[ndx] = (
char *)
new char *[vlen];
759 Error(
"ReadBuffer",
"Memory allocation failed!\n");
763 memset(pp[ndx], 0, vlen *
sizeof(
char *));
780 Int_t vlen = *((
Int_t *)((
char *)addr + eoffset +
788 char **pp = (
char **)((
char *)addr + ioffset );
838 pp[ndx] = (
char *)cl->
NewArray(vlen);
840 Error(
"ReadBuffer",
"Memory allocation failed!\n");
847 pp[ndx] = (
char *)
new char *[vlen];
849 Error(
"ReadBuffer",
"Memory allocation failed!\n");
853 memset(pp[ndx], 0, vlen *
sizeof(
char *));
866 char **
r = (
char **)pp[ndx];
870 r[
v] = (
char *)cl->
New();
892 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) {};
896 template <
typename T>
902 TConfWithFactor *conf = (TConfWithFactor *)config;
915 template <
typename T>
920 TConfNoFactor *conf = (TConfNoFactor *)config;
921 Int_t nbits = conf->fNbits;
933 ((
TString*)(((
char*)addr)+config->
fOffset))->TString::Streamer(buf);
943 ((
TObject*)(((
char*)addr)+config->
fOffset))->TObject::Streamer(buf);
985 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(oldClass), fStreamer(0),
fTypeName(type_name), fIsSTLBase(isbase),
986 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
989 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(newClass), fStreamer(0),
fTypeName(type_name), fIsSTLBase(isbase),
990 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
993 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(oldClass), fStreamer(streamer),
fTypeName(type_name), fIsSTLBase(isbase),
994 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
997 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(newClass), fStreamer(streamer),
fTypeName(type_name), fIsSTLBase(isbase),
998 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
1003 class TConfSTLWithFactor :
public TConfigSTL {
1008 TConfSTLWithFactor(TConfigSTL *orig,
Double_t factor,
Double_t xmin) : TConfigSTL(*orig),fFactor(factor),fXmin(
xmin) {};
1012 class TConfSTLNoFactor :
public TConfigSTL {
1016 TConfSTLNoFactor(TConfigSTL *orig,
Int_t nbits) : TConfigSTL(*orig),fNbits(nbits) {};
1028 virtual ~TVectorLoopConfig() {};
1031 printf(
"TVectorLoopConfig: increment=%ld\n",fIncrement);
1034 void* GetFirstAddress(
void *start,
const void * )
const
1049 virtual ~TAssocLoopConfig() {};
1056 void* GetFirstAddress(
void *start,
const void * )
const
1096 virtual ~TGenericLoopConfig() {};
1103 void* GetFirstAddress(
void *start_collection,
const void *end_collection)
const
1108 void *iter = fCopyIterator(&iterator,start_collection);
1109 void *arr0 = fNext(iter,end_collection);
1110 if (iter != &iterator[0]) {
1111 fDeleteIterator(iter);
1121 TConfigSTL *config = (TConfigSTL*)conf;
1126 TClass *oldClass = config->fOldClass;
1139 void* alternative = oldProxy->
Allocate(nobjects,
true);
1145 void *begin = &(startbuf[0]);
1146 void *end = &(endbuf[0]);
1147 config->fCreateIterators(alternative, &begin, &end, oldProxy);
1151 if (begin != &(startbuf[0])) {
1153 config->fDeleteTwoIterators(begin,end);
1156 oldProxy->
Commit(alternative);
1160 TClass *oldClass = config->fOldClass;
1171 void* env = oldProxy->
Allocate(nobjects,
true);
1173 if (nobjects || vers < 7 ) {
1187 TConfigSTL *config = (TConfigSTL*)conf;
1192 TClass *oldClass = config->fOldClass;
1204 int objectSize = oldClass->
Size();
1205 char *obj = (
char*)addr;
1206 char *endobj = obj + conf->
fLength*objectSize;
1208 for(; obj<endobj; obj+=objectSize) {
1212 void* alternative = oldProxy->
Allocate(nobjects,
true);
1216 void *begin = &(startbuf[0]);
1217 void *end = &(endbuf[0]);
1218 config->fCreateIterators(alternative, &begin, &end, oldProxy);
1222 if (begin != &(startbuf[0])) {
1224 config->fDeleteTwoIterators(begin,end);
1227 oldProxy->
Commit(alternative);
1232 TClass *oldClass = config->fOldClass;
1240 int objectSize = oldClass->
Size();
1241 char *obj = (
char*)addr;
1242 char *endobj = obj + conf->
fLength*objectSize;
1244 for(; obj<endobj; obj+=objectSize) {
1248 void* env = oldProxy->
Allocate(nobjects,
true);
1250 if (nobjects || vers < 7 ) {
1265 TConfigSTL *config = (TConfigSTL*)conf;
1269 TClass *newClass = config->fNewClass;
1270 TClass *oldClass = config->fOldClass;
1273 Error(
"ReadSTLMemberWiseChangedClass",
"Unfortunately, version %d of TStreamerInfo (used in %s) did not record enough information to convert a %s into a %s.",
1285 void* alternative = newProxy->
Allocate(nobjects,
true);
1290 void *begin = &(startbuf[0]);
1291 void *end = &(endbuf[0]);
1292 config->fCreateIterators( alternative, &begin, &end, newProxy);
1296 if (begin != &(startbuf[0])) {
1298 config->fDeleteTwoIterators(begin,end);
1301 newProxy->
Commit(alternative);
1309 TConfigSTL *config = (TConfigSTL*)conf;
1313 TClass *newClass = config->fNewClass;
1314 TClass *oldClass = config->fOldClass;
1317 Error(
"ReadSTLMemberWiseChangedClass",
"Unfortunately, version %d of TStreamerInfo (used in %s) did not record enough information to convert a %s into a %s.",
1326 int objectSize = newClass->
Size();
1327 char *obj = (
char*)addr;
1328 char *endobj = obj + conf->
fLength*objectSize;
1330 for(; obj<endobj; obj+=objectSize) {
1334 void* alternative = newProxy->
Allocate(nobjects,
true);
1339 void *begin = &(startbuf[0]);
1340 void *end = &(endbuf[0]);
1341 config->fCreateIterators( alternative, &begin, &end, newProxy);
1345 if (begin != &(startbuf[0])) {
1347 config->fDeleteTwoIterators(begin,end);
1350 newProxy->
Commit(alternative);
1358 TConfigSTL *config = (TConfigSTL*)conf;
1364 TConfigSTL *config = (TConfigSTL*)conf;
1365 (*config->fStreamer)(buf,addr,conf->
fLength);
1371 TConfigSTL *config = (TConfigSTL*)conf;
1374 if (config->fIsSTLBase || vers == 0) {
1384 TConfigSTL *config = (TConfigSTL*)conf;
1387 if (config->fIsSTLBase || vers == 0) {
1390 (*config->fStreamer)(buf,addr,conf->
fLength);
1397 TConfigSTL *config = (TConfigSTL*)conf;
1401 memberwise(buf,((
char*)addr)+config->fOffset,config, vers);
1403 objectwise(buf,((
char*)addr)+config->fOffset,config, vers, start);
1409 template <
typename From,
typename To>
1410 struct ConvertBasicType {
1416 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
1421 template <
typename To>
1422 struct ConvertBasicType<BitsMarker,To> {
1433 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
1438 template <
typename From,
typename To>
1439 struct ConvertBasicType<WithFactorMarker<From>,To> {
1443 TConfWithFactor *conf = (TConfWithFactor *)config;
1446 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
1451 template <
typename From,
typename To>
1452 struct ConvertBasicType<NoFactorMarker<From>,To> {
1456 TConfNoFactor *conf = (TConfNoFactor *)config;
1459 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
1470 TConfiguration(info, -1, nullptr, offset), fOnfileObject(onfileObject)
1473 virtual void Print()
const {
1476 printf(
"StreamerInfoAction, class:%s, PushDataCache offset=%d\n",
1479 printf(
"StreamerInfoAction, class:%s, PopDataCache offset=%d\n",
1482 virtual void PrintDebug(
TBuffer &buffer,
void *
object)
const {
1485 printf(
"StreamerInfoAction, class:%s, %sDataCache, bufpos=%d, arr=%p, offset=%d, onfileObject=%p\n",
1486 info->
GetClass()->
GetName(), fOnfileObject ?
"Push" :
"Pop", buffer.
Length(),
object, fOffset, fOnfileObject);
1494 TConfigurationPushDataCache *config = (TConfigurationPushDataCache*)conf;
1495 auto onfileObject = config->fOnfileObject;
1498 b.PushDataCache( onfileObject );
1505 TConfigurationPushDataCache *config = (TConfigurationPushDataCache*)conf;
1506 auto onfileObject = config->fOnfileObject;
1509 b.PushDataCache( onfileObject );
1516 TConfigurationPushDataCache *config = (TConfigurationPushDataCache*)conf;
1517 auto onfileObject = config->fOnfileObject;
1522 onfileObject->SetSize(
n);
1523 b.PushDataCache( onfileObject );
1553 TConfiguration(info,action.fConfiguration->fElemId,action.fConfiguration->fCompInfo,action.fConfiguration->fOffset),fAction(action),fNeedRepeat(repeat) {};
1554 virtual void PrintDebug(
TBuffer &
b,
void *addr)
const
1560 fprintf(stdout,
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d,"
1561 " %s, bufpos=%d, arr=%p, eoffset=%d, Redirect=%p\n",
1563 aElement->
ClassName(),
b.Length(),addr, 0,
b.PeekDataCache() ?
b.PeekDataCache()->GetObjectAt(0) : 0);
1567 virtual ~TConfigurationUseCache() {};
1569 TConfigurationUseCache *copy =
new TConfigurationUseCache(*
this);
1577 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1579 Int_t bufpos =
b.Length();
1584 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1585 char *ptr = (
char*)addr;
1588 config->fAction(
b, (*cached)[0]);
1591 if (config->fNeedRepeat) {
1592 b.SetBufferOffset(bufpos);
1599 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1600 Int_t bufpos =
b.Length();
1606 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1607 char *ptr = (
char*)start;
1608 UInt_t n = (((
void**)end)-((
void**)start));
1611 TVectorLoopConfig cached_config(
nullptr, cached->
fClass->
Size(),
kTRUE );
1612 void *cached_start = (*cached)[0];
1613 void *cached_end = ((
char*)cached_start) + cached->
fSize * cached_config.fIncrement;
1614 config->fAction(
b,cached_start,cached_end,&cached_config);
1617 if (config->fNeedRepeat) {
1618 b.SetBufferOffset(bufpos);
1625 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1627 Int_t bufpos =
b.Length();
1632 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1633 char *ptr = (
char*)start;
1634 UInt_t n = (((
char*)end)-((
char*)start))/((TVectorLoopConfig*)loopconf)->fIncrement;
1637 TVectorLoopConfig cached_config(
nullptr, cached->
fClass->
Size(),
kTRUE );
1638 void *cached_start = (*cached)[0];
1639 void *cached_end = ((
char*)cached_start) + cached->
fSize * cached_config.fIncrement;
1640 config->fAction(
b,cached_start,cached_end,&cached_config);
1643 if (config->fNeedRepeat) {
1644 b.SetBufferOffset(bufpos);
1651 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1653 Int_t bufpos =
b.Length();
1660 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1664 TVectorLoopConfig cached_config(
nullptr, cached->
fClass->
Size(),
kTRUE );
1665 void *cached_start = (*cached)[0];
1666 void *cached_end = ((
char*)cached_start) + cached->
fSize * cached_config.fIncrement;
1667 config->fAction(
b,cached_start,cached_end,&cached_config);
1670 if (config->fNeedRepeat) {
1671 b.SetBufferOffset(bufpos);
1712 struct VectorLooper {
1714 template <
typename T>
1717 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1718 iter = (
char*)iter + config->
fOffset;
1719 end = (
char*)end + config->
fOffset;
1720 for(; iter != end; iter = (
char*)iter + incr ) {
1721 T *
x = (
T*) ((
char*) iter);
1727 template <
typename From,
typename To>
1728 struct ConvertBasicType {
1733 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1734 iter = (
char*)iter + config->
fOffset;
1735 end = (
char*)end + config->
fOffset;
1736 for(; iter != end; iter = (
char*)iter + incr ) {
1738 *(To*)( ((
char*)iter) ) = (To)temp;
1744 template <
typename To>
1745 struct ConvertBasicType<BitsMarker,To> {
1750 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1751 iter = (
char*)iter + config->
fOffset;
1752 end = (
char*)end + config->
fOffset;
1753 for(; iter != end; iter = (
char*)iter + incr ) {
1760 *(To*)( ((
char*)iter) ) = (To)temp;
1766 template <
typename From,
typename To>
1767 struct ConvertBasicType<WithFactorMarker<From>,To> {
1771 TConfWithFactor *conf = (TConfWithFactor *)config;
1773 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1774 iter = (
char*)iter + config->
fOffset;
1775 end = (
char*)end + config->
fOffset;
1776 for(; iter != end; iter = (
char*)iter + incr ) {
1778 *(To*)( ((
char*)iter) ) = (To)temp;
1784 template <
typename From,
typename To>
1785 struct ConvertBasicType<NoFactorMarker<From>,To> {
1789 TConfNoFactor *conf = (TConfNoFactor *)config;
1791 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1792 iter = (
char*)iter + config->
fOffset;
1793 end = (
char*)end + config->
fOffset;
1794 for(; iter != end; iter = (
char*)iter + incr ) {
1796 *(To*)( ((
char*)iter) ) = (To)temp;
1802 template <
typename T>
1805 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1806 iter = (
char*)iter + config->
fOffset;
1807 end = (
char*)end + config->
fOffset;
1808 for(; iter != end; iter = (
char*)iter + incr ) {
1809 T *
x = (
T*) ((
char*) iter);
1815 template <Int_t (*iter_action)(TBuffer&,
void *,const TConfiguration*)>
1818 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1821 for(
void *iter = start; iter != end; iter = (
char*)iter + incr ) {
1822 iter_action(buf, iter, config);
1832 UInt_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1833 UInt_t n = (((
char*)end)-((
char*)start))/incr;
1834 char **arrptr =
new char*[
n];
1836 for(
void *iter = start; iter != end; iter = (
char*)iter + incr, ++i ) {
1837 arrptr[i] = (
char*)iter;
1869 UInt_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1870 UInt_t n = (((
char*)end)-((
char*)start))/incr;
1871 char **arrptr =
new char*[
n];
1873 for(
void *iter = start; iter != end; iter = (
char*)iter + incr, ++i ) {
1874 arrptr[i] = (
char*)iter;
1885 UInt_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1886 UInt_t n = (((
char*)end)-((
char*)start))/incr;
1887 char **arrptr =
new char*[
n];
1889 for(
void *iter = start; iter != end; iter = (
char*)iter + incr, ++i ) {
1890 arrptr[i] = (
char*)iter;
1897 template <
typename T>
1902 TConfigSTL *config = (TConfigSTL*)conf;
1904 buf.
ReadVersion(&start, &count, config->fOldClass);
1906 std::vector<T> *
const vec = (std::vector<T>*)(((
char*)addr)+config->fOffset);
1909 vec->resize(nvalues);
1911#ifdef R__VISUAL_CPLUSPLUS
1917 T *begin = &(*vec->begin());
1928 TConfigSTL *config = (TConfigSTL*)conf;
1930 buf.
ReadVersion(&start, &count, config->fOldClass);
1932 std::vector<bool> *
const vec = (std::vector<bool>*)(((
char*)addr)+config->fOffset);
1935 vec->resize(nvalues);
1937 bool *items =
new bool[nvalues];
1939 for(
Int_t i = 0 ; i < nvalues; ++i) {
1940 (*vec)[i] = items[i];
1959 TConfigSTL *config = (TConfigSTL*)conf;
1961 buf.
ReadVersion(&start, &count, config->fOldClass);
1963 std::vector<float> *
const vec = (std::vector<float>*)(((
char*)addr)+config->fOffset);
1966 vec->resize(nvalues);
1968#ifdef R__VISUAL_CPLUSPLUS
1974 float *begin = &(*vec->begin());
1985 TConfigSTL *config = (TConfigSTL*)conf;
1987 buf.
ReadVersion(&start, &count, config->fOldClass);
1989 std::vector<double> *
const vec = (std::vector<double>*)(((
char*)addr)+config->fOffset);
1992 vec->resize(nvalues);
1994#ifdef R__VISUAL_CPLUSPLUS
2000 double *begin = &(*vec->begin());
2007 template <
typename From,
typename To>
2008 struct ConvertCollectionBasicType {
2013 TConfigSTL *config = (TConfigSTL*)conf;
2015 buf.
ReadVersion(&start, &count, config->fOldClass);
2017 std::vector<To> *
const vec = (std::vector<To>*)(((
char*)addr)+config->fOffset);
2020 vec->resize(nvalues);
2022 From *temp =
new From[nvalues];
2024 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2025 (*vec)[ind] = (To)temp[ind];
2034 template <
typename From,
typename To>
2035 struct ConvertCollectionBasicType<NoFactorMarker<From>,To> {
2040 TConfigSTL *config = (TConfigSTL*)conf;
2042 buf.
ReadVersion(&start, &count, config->fOldClass);
2044 std::vector<To> *
const vec = (std::vector<To>*)(((
char*)addr)+config->fOffset);
2047 vec->resize(nvalues);
2049 From *temp =
new From[nvalues];
2051 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2052 (*vec)[ind] = (To)temp[ind];
2061 template <
typename To>
2066 TConfigSTL *config = (TConfigSTL*)conf;
2068 buf.
ReadVersion(&start, &count, config->fOldClass);
2070 std::vector<To> *
const vec = (std::vector<To>*)(((
char*)addr)+config->fOffset);
2073 vec->resize(nvalues);
2077 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2078 (*vec)[ind] = (To)temp[ind];
2088 struct VectorPtrLooper {
2090 template <
typename T>
2095 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2096 T *
x = (
T*)( ((
char*) (*(
void**)iter) ) + offset );
2102 template <
typename From,
typename To>
2103 struct ConvertBasicType {
2109 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2111 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
2118 template <
typename To>
2119 struct ConvertBasicType<BitsMarker,To> {
2125 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2132 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
2139 template <
typename From,
typename To>
2140 struct ConvertBasicType<WithFactorMarker<From>,To> {
2144 TConfWithFactor *conf = (TConfWithFactor *)config;
2147 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2149 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
2156 template <
typename From,
typename To>
2157 struct ConvertBasicType<NoFactorMarker<From>,To> {
2161 TConfNoFactor *conf = (TConfNoFactor *)config;
2164 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2166 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
2173 template <
typename T>
2178 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2179 T *
x = (
T*)( ((
char*) (*(
void**)iter) ) + offset );
2185 template <Int_t (*action)(TBuffer&,
void *,const TConfiguration*)>
2188 for(
void *iter = start; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2189 action(buf, *(
void**)iter, config);
2199 return GenericRead(buf,start,end,config);
2204 Int_t n = ( ((
void**)end) - ((
void**)iter) );
2205 char **arr = (
char**)iter;
2211 Int_t n = ( ((
void**)end) - ((
void**)iter) );
2212 char **arr = (
char**)iter;
2218 struct AssociativeLooper {
2220 template <
typename T>
2236 template <
typename T,
void (*action)(TBuffer&,
void *,Int_t)>
2241 TConfigSTL *config = (TConfigSTL*)conf;
2243 buf.
ReadVersion(&start, &count, config->fOldClass);
2245 TClass *newClass = config->fNewClass;
2251 void* alternative = newProxy->
Allocate(nvalues,
true);
2255 void *begin = &(startbuf[0]);
2256 void *end = &(endbuf[0]);
2257 config->fCreateIterators(alternative, &begin, &end, newProxy);
2261 action(buf,begin,nvalues);
2263 if (begin != &(startbuf[0])) {
2265 config->fDeleteTwoIterators(begin,end);
2268 newProxy->
Commit(alternative);
2276 return ReadNumericalCollection<bool,SimpleRead<bool> >(buf,addr,conf);
2281 return ReadNumericalCollection<Float_t,SimpleReadFloat16 >(buf,addr,conf);
2286 return ReadNumericalCollection<Double_t,SimpleReadDouble32 >(buf,addr,conf);
2289 template <
typename T>
2292 return ReadNumericalCollection<T,SimpleRead<T> >(buf,addr,conf);
2295 template <
typename From,
typename To>
2296 struct ConvertRead {
2299 From *temp =
new From[nvalues];
2301 To *vec = (To*)addr;
2302 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2303 vec[ind] = (To)temp[ind];
2309 template <
typename From,
typename To>
2310 struct ConvertRead<NoFactorMarker<From>,To> {
2313 From *temp =
new From[nvalues];
2315 To *vec = (To*)addr;
2316 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2317 vec[ind] = (To)temp[ind];
2323 template <
typename From,
typename To>
2324 struct ConvertRead<WithFactorMarker<From>,To> {
2327 From *temp =
new From[nvalues];
2330 To *vec = (To*)addr;
2331 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2332 vec[ind] = (To)temp[ind];
2338 template <
typename From,
typename To>
2339 struct ConvertCollectionBasicType {
2342 return ReadNumericalCollection<To,ConvertRead<From,To>::Action >(buf,addr,conf);
2348 struct GenericLooper {
2350 template <
typename T>
2353 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2355 Next_t next = loopconfig->fNext;
2359 void *iter = loopconfig->fCopyIterator(iterator,start);
2361 while( (addr = next(iter,end)) ) {
2362 T *
x = (
T*)( ((
char*)addr) + offset );
2365 if (iter != &iterator[0]) {
2366 loopconfig->fDeleteIterator(iter);
2371 template <
typename T>
2374 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2376 Next_t next = loopconfig->fNext;
2380 void *iter = loopconfig->fCopyIterator(iterator,start);
2382 while( (addr = next(iter,end)) ) {
2383 T *
x = (
T*)( ((
char*)addr) + offset );
2386 if (iter != &iterator[0]) {
2387 loopconfig->fDeleteIterator(iter);
2392 template <Int_t (*iter_action)(TBuffer&,
void *,const TConfiguration*)>
2395 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2398 Next_t next = loopconfig->fNext;
2401 void *iter = loopconfig->fCopyIterator(&iterator,start);
2403 while( (addr = next(iter,end)) ) {
2404 iter_action(buf, addr, config);
2406 if (iter != &iterator[0]) {
2407 loopconfig->fDeleteIterator(iter);
2412 template <
typename From,
typename To>
2416 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2419 Next_t next = loopconfig->fNext;
2422 void *iter = loopconfig->fCopyIterator(&iterator,start);
2424 while( (addr = next(iter,end)) ) {
2425 To *
x = (To*)( ((
char*)addr) + offset );
2429 if (iter != &iterator[0]) {
2430 loopconfig->fDeleteIterator(iter);
2435 template <
typename From,
typename To>
2442 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2443 Next_t next = loopconfig->fNext;
2447 while( (addr = next(iter,end)) ) {
2448 To *
x = (To*)(addr);
2455 template <
typename From,
typename To,
template <
typename F,
typename T>
class Converter = Generic >
2456 struct ConvertBasicType {
2461 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2465 From *items =
new From[nvalues];
2467 Converter<From,To>::ConvertAction(items,start,end,loopconfig,config);
2473 template <
typename To>
2474 struct ConvertBasicType<BitsMarker, To, Generic> {
2479 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2484 UInt_t *items = items_storage;
2487 Next_t next = loopconfig->fNext;
2490 void *iter = loopconfig->fCopyIterator(&iterator,start);
2492 while( (addr = next(iter,end)) ) {
2497 To *
x = (To*)( ((
char*)addr) + offset );
2501 if (iter != &iterator[0]) {
2502 loopconfig->fDeleteIterator(iter);
2505 delete [] items_storage;
2510 template <
typename From,
typename To,
template <
typename F,
typename T>
class Converter >
2511 struct ConvertBasicType<WithFactorMarker<From>,To,Converter > {
2516 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2520 TConfSTLWithFactor *conf = (TConfSTLWithFactor *)config;
2522 From *items =
new From[nvalues];
2524 Converter<From,To>::ConvertAction(items,start,end,loopconfig,config);
2530 template <
typename From,
typename To,
template <
typename F,
typename T>
class Converter >
2531 struct ConvertBasicType<NoFactorMarker<From>,To,Converter > {
2536 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2540 TConfSTLNoFactor *conf = (TConfSTLNoFactor *)config;
2542 From *items =
new From[nvalues];
2544 Converter<From,To>::ConvertAction(items,start,end,loopconfig,config);
2555 return GenericRead(buf,start,end,loopconfig, config);
2560 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2567 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2572 template <
typename T>
2591 template <
typename ActionHolder>
2596 TConfigSTL *config = (TConfigSTL*)conf;
2598 buf.
ReadVersion(&start, &count, config->fOldClass);
2600 TClass *newClass = config->fNewClass;
2606 void* alternative = newProxy->
Allocate(nvalues,
true);
2610 void *begin = &(startbuf[0]);
2611 void *end = &(endbuf[0]);
2612 config->fCreateIterators(alternative, &begin, &end, newProxy);
2616 TGenericLoopConfig loopconf(newProxy,
kTRUE);
2617 ActionHolder::Action(buf,begin,end,&loopconf,config);
2619 if (begin != &(startbuf[0])) {
2621 config->fDeleteTwoIterators(begin,end);
2624 newProxy->
Commit(alternative);
2632 return ReadNumericalCollection<ConvertBasicType<bool,bool,Numeric > >(buf,addr,conf);
2637 return ReadNumericalCollection<ConvertBasicType<NoFactorMarker<float>,float,Numeric > >(buf,addr,conf);
2642 return ReadNumericalCollection<ConvertBasicType<float,double,Numeric > >(buf,addr,conf);
2647 template <
typename T>
2652 return ReadNumericalCollection<ConvertBasicType<T,T,Numeric > >(buf,addr,conf);
2655 template <
typename From,
typename To>
2656 struct ConvertCollectionBasicType {
2660 return ReadNumericalCollection<ConvertBasicType<From,To,Numeric > >(buf,addr,conf);
2667template <
typename Looper,
typename From>
2695template <
class Looper>
2715 case TStreamerInfo::kBits:
Error(
"GetNumericCollectionReadAction",
"There is no support for kBits outside of a TObject.");
break;
2717 TConfigSTL *alternate =
new TConfSTLNoFactor(conf,12);
2730 TConfigSTL *alternate =
new TConfSTLNoFactor(conf,0);
2746 Fatal(
"GetNumericCollectionReadAction",
"Is confused about %d",
type);
2751template <
typename Looper,
typename From>
2778template <
typename Looper>
2783 return GetConvertCollectionReadActionFrom<Looper,Bool_t>(newtype, conf );
2786 return GetConvertCollectionReadActionFrom<Looper,Char_t>(newtype, conf );
2789 return GetConvertCollectionReadActionFrom<Looper,Short_t>(newtype, conf );
2792 return GetConvertCollectionReadActionFrom<Looper,Int_t>(newtype, conf );
2795 return GetConvertCollectionReadActionFrom<Looper,Long_t>(newtype, conf );
2798 return GetConvertCollectionReadActionFrom<Looper,Long64_t>(newtype, conf );
2801 return GetConvertCollectionReadActionFrom<Looper,Float_t>( newtype, conf );
2804 return GetConvertCollectionReadActionFrom<Looper,Double_t>(newtype, conf );
2807 return GetConvertCollectionReadActionFrom<Looper,UChar_t>(newtype, conf );
2810 return GetConvertCollectionReadActionFrom<Looper,UShort_t>(newtype, conf );
2813 return GetConvertCollectionReadActionFrom<Looper,UInt_t>(newtype, conf );
2816 return GetConvertCollectionReadActionFrom<Looper,ULong_t>(newtype, conf );
2819 return GetConvertCollectionReadActionFrom<Looper,ULong64_t>(newtype, conf );
2822 return GetConvertCollectionReadActionFrom<Looper,NoFactorMarker<Float16_t> >( newtype, conf );
2825 return GetConvertCollectionReadActionFrom<Looper,NoFactorMarker<Double32_t> >( newtype, conf );
2828 Error(
"GetConvertCollectionReadAction",
"There is no support for kBits outside of a TObject.");
2837template <
class Looper>
2858 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_WithFactor<float> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2861 if (!nbits) nbits = 12;
2862 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_NoFactor<float> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2868 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_WithFactor<double> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2874 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_NoFactor<double> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2892 return GetCollectionReadConvertAction<Looper,Bool_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2895 return GetCollectionReadConvertAction<Looper,Char_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2898 return GetCollectionReadConvertAction<Looper,Short_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2901 return GetCollectionReadConvertAction<Looper,Int_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2904 return GetCollectionReadConvertAction<Looper,Long_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2907 return GetCollectionReadConvertAction<Looper,Long64_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2910 return GetCollectionReadConvertAction<Looper,Float_t>( element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2913 return GetCollectionReadConvertAction<Looper,Double_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2916 return GetCollectionReadConvertAction<Looper,UChar_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2919 return GetCollectionReadConvertAction<Looper,UShort_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2922 return GetCollectionReadConvertAction<Looper,UInt_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2925 return GetCollectionReadConvertAction<Looper,ULong_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2928 return GetCollectionReadConvertAction<Looper,ULong64_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2931 return GetCollectionReadConvertAction<Looper,BitsMarker>(element->
GetNewType(),
new TBitsConfiguration(info,i,compinfo,offset) );
2935 return GetCollectionReadConvertAction<Looper,WithFactorMarker<float> >(element->
GetNewType(),
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2938 if (!nbits) nbits = 12;
2939 return GetCollectionReadConvertAction<Looper,NoFactorMarker<float> >(element->
GetNewType(),
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2945 return GetCollectionReadConvertAction<Looper,WithFactorMarker<double> >(element->
GetNewType(),
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2949 return GetCollectionReadConvertAction<Looper,Float_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2951 return GetCollectionReadConvertAction<Looper,NoFactorMarker<double> >(element->
GetNewType(),
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2957 return TConfiguredAction( Looper::GenericRead,
new TGenericConfiguration(info,i,compinfo) );
2964template <
class Looper>
3071 fNslots = ndata + ndata/2 + 1;
3090 for (i = 0; i < ndata; ++i) {
3134 if (!previousOptimized) {
3145 if (
fComp[keep].fLength == 0) {
3150 isOptimized =
kTRUE;
3151 previousOptimized =
kTRUE;
3152 }
else if (element->
GetType() < 0) {
3165 previousOptimized =
kFALSE;
3183 Warning(
"Compile",
"Counter %s should not be skipped from class %s", element->
GetName(),
GetName());
3194 if (
fComp[keep].fLength == 0) {
3198 previousOptimized =
kFALSE;
3208 for (i = 0; i <
fNdata; ++i) {
3237template <
typename From>
3269 switch (compinfo->
fType) {
3287 readSequence->
AddAction( ReadBasicType_WithFactor<float>,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
3290 if (!nbits) nbits = 12;
3291 readSequence->
AddAction( ReadBasicType_NoFactor<float>,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
3297 readSequence->
AddAction( ReadBasicType_WithFactor<double>,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
3303 readSequence->
AddAction( ReadBasicType_NoFactor<double>,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
3320 if (newClass && newClass != oldClass) {
3322 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3324 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase));
3328 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3330 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetTypeName(),isSTLbase));
3334 if (newClass && newClass != oldClass) {
3336 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3339 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase));
3343 readSequence->
AddAction(GetConvertCollectionReadAction<VectorLooper>(oldClass->
GetCollectionProxy()->
GetType(), newClass->
GetCollectionProxy()->
GetType(),
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase)));
3346 readSequence->
AddAction(GetConvertCollectionReadAction<AssociativeLooper>(oldClass->
GetCollectionProxy()->
GetType(), newClass->
GetCollectionProxy()->
GetType(),
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase)));
3352 readSequence->
AddAction(GetConvertCollectionReadAction<GenericLooper>(oldClass->
GetCollectionProxy()->
GetType(), newClass->
GetCollectionProxy()->
GetType(),
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase)));
3359 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3362 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetTypeName(),isSTLbase));
3384 if (newClass && newClass != oldClass) {
3386 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3388 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetTypeName(),isSTLbase));
3392 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3394 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetTypeName(),isSTLbase));
3398 if (newClass && newClass != oldClass) {
3400 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3402 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetTypeName(),isSTLbase));
3406 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3408 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetTypeName(),isSTLbase));
3456 AddReadConvertAction<BitsMarker>(readSequence, compinfo->
fNewType,
new TBitsConfiguration(
this,i,compinfo,compinfo->
fOffset) );
3460 AddReadConvertAction<WithFactorMarker<float> >(readSequence, compinfo->
fNewType,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
3463 if (!nbits) nbits = 12;
3464 AddReadConvertAction<NoFactorMarker<float> >(readSequence, compinfo->
fNewType,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
3470 AddReadConvertAction<WithFactorMarker<double> >(readSequence, compinfo->
fNewType,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
3476 AddReadConvertAction<NoFactorMarker<double> >(readSequence, compinfo->
fNewType,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
3504 switch (compinfo->
fType) {
3545 default:
generic =
kTRUE;
break;
3572 readSequence->
AddAction( GetCollectionReadAction<VectorPtrLooper>(
this,element,compinfo->
fType,i,compinfo,compinfo->
fOffset) );
3589 switch (compinfo->
fType) {
3673#if defined(CDJ_NO_COMPILE)
3676 writeSequence->
fActions.pop_back();
3698 switch (compinfo->
fType) {
3853 default:
generic =
kTRUE;
break;
3869#if defined(CDJ_NO_COMPILE)
3872 writeSequence->
fActions.pop_back();
3894#if defined(CDJ_NO_COMPILE)
3899 writeSequence->Addaction( GetCollectionWriteAction<VectorPtrLooper>(
this,element,compinfo->
fType,i,compinfo,compinfo->
fOffset) );
3902 writeSequence->
AddAction( VectorPtrLooper::GenericWrite,
new TGenericConfiguration(
this,i,compinfo) );
3945 for (
UInt_t i = 0; i < ndata; ++i) {
3969 ::Warning(
"CreateReadMemberWiseActions",
"%s",
3985 if (newType != oldType) {
4003 TConfiguredAction action( GetCollectionReadAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
4006 sequence->
AddAction( GetCollectionReadAction<VectorLooper>(info,element,oldType,i,compinfo,offset));
4013 TConfiguredAction action( GetCollectionReadAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
4016 sequence->
AddAction( GetCollectionReadAction<GenericLooper>(info,element,oldType,i,compinfo,offset) );
4060 for (
UInt_t i = 0; i < ndata; ++i) {
4088#if defined(CDJ_NO_COMPILE)
4091 if (newType != oldType) {
4107 TConfiguredAction action( GetCollectionWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
4110 sequence->
AddAction(GetCollectionWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset));
4119 TConfiguredAction action( GetWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
4140 sequence->
AddAction( GenericLooper<WriteBasicType_WithFactor<float> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
4143 if (!nbits) nbits = 12;
4144 sequence->
AddAction( GenericLooper<WriteBasicType_NoFactor<float> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
4150 sequence->
AddAction( GenericLooper<WriteBasicType_WithFactor<double> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
4154 sequence->
AddAction( GenericLooper<ConvertBasicType<float,double> >,
new TConfiguration(info,i,compinfo,offset) );
4156 sequence->
AddAction( GenericLooper<WriteBasicType_NoFactor<double> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
4177 sequence->
AddAction( GetCollectionWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
4195 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4196 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4201 if (iter->fConfiguration->fElemId != (
UInt_t)-1 &&
4203 iter->fConfiguration->AddToOffset(delta);
4212 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4213 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4217 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4218 iter->fConfiguration->SetMissing();
4230 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4231 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4236 sequence->
AddAction( iter->fAction, conf );
4246 for(
UInt_t id = 0;
id < element_ids.size(); ++
id) {
4247 if ( element_ids[
id].fElemID < 0 ) {
4248 if (element_ids[
id].fNestedIDs) {
4249 auto original = create(element_ids[
id].fNestedIDs->fInfo,
4252 if (element_ids[
id].fNestedIDs->fOnfileObject) {
4253 auto conf =
new TConfigurationPushDataCache(element_ids[
id].fNestedIDs->fInfo, element_ids[
id].fNestedIDs->fOnfileObject, offset);
4262 original->AddToSubSequence(sequence, element_ids[
id].fNestedIDs->fIDs, element_ids[
id].fNestedIDs->fOffset, create);
4264 if (element_ids[
id].fNestedIDs->fOnfileObject) {
4266 new TConfigurationPushDataCache(element_ids[
id].fNestedIDs->fInfo,
nullptr, element_ids[
id].fNestedIDs->fOffset);
4275 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4276 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4281 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4283 sequence->
AddAction( iter->fAction, conf );
4288 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4289 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4301 if ( iter->fConfiguration->fElemId == (
UInt_t)element_ids[
id].fElemID ) {
4303 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4305 sequence->
AddAction( iter->fAction, conf );
4322 AddToSubSequence(sequence, element_ids, offset, create);
4336 for(
UInt_t id = 0;
id < element_ids.size(); ++
id) {
4337 if ( element_ids[
id] < 0 ) {
4338 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4339 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4344 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4346 sequence->
AddAction( iter->fAction, conf );
4349 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4350 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4353 if ( iter->fConfiguration->fElemId == (
UInt_t)element_ids[
id] ) {
4355 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4357 sequence->
AddAction( iter->fAction, conf );
4365#if !defined(R__WIN32) && !defined(_AIX)
4374#if defined(R__WIN32) || defined(__CYGWIN__) || defined(_AIX)
4375 return "not available on this platform";
4377 MEMORY_BASIC_INFORMATION mbi;
4378 if (!VirtualQuery (func, &mbi,
sizeof (mbi)))
4383 HMODULE hMod = (HMODULE) mbi.AllocationBase;
4384 static char moduleName[MAX_PATH];
4386 if (!GetModuleFileNameA (hMod, moduleName,
sizeof (moduleName)))
4394 if (dladdr((
void*)func,&info)==0) {
4396 return "name not found";
4399 return info.dli_sname;
4411 fLoopConfig->Print();
4413 TStreamerInfoActions::ActionContainer_t::const_iterator end = fActions.end();
4414 for(TStreamerInfoActions::ActionContainer_t::const_iterator iter = fActions.begin();
4418 iter->fConfiguration->Print();
4419 if (strstr(opt,
"func")) {
void Error(const char *location, const char *msgfmt,...)
void Warning(const char *location, const char *msgfmt,...)
void Fatal(const char *location, const char *msgfmt,...)
R__EXTERN TVirtualMutex * gInterpreterMutex
static TConfiguredAction GetNumericCollectionReadAction(Int_t type, TConfigSTL *conf)
static void AddReadConvertAction(TStreamerInfoActions::TActionSequence *sequence, Int_t newtype, TConfiguration *conf)
static TConfiguredAction GetCollectionReadConvertAction(Int_t newtype, TConfiguration *conf)
static TConfiguredAction GetCollectionReadAction(TVirtualStreamerInfo *info, TStreamerElement *element, Int_t type, UInt_t i, TStreamerInfo::TCompInfo_t *compinfo, Int_t offset)
static const Int_t kRegrouped
#define INLINE_TEMPLATE_ARGS
static const char * R__GetSymbolName(voidfunc func)
static TConfiguredAction GetConvertCollectionReadAction(Int_t oldtype, Int_t newtype, TConfiguration *conf)
static TConfiguredAction GetCollectionWriteAction(TVirtualStreamerInfo *info, TStreamerElement *, Int_t type, UInt_t i, TStreamerInfo::TCompInfo_t *compinfo, Int_t offset)
static TConfiguredAction GetConvertCollectionReadActionFrom(Int_t newtype, TConfiguration *conf)
virtual void ReadBuffer(char *&buffer)
typedef void((*Func_t)())
#define R__LOCKGUARD(mutex)
Base class for text-based streamers like TBufferJSON or TBufferXML Special actions list will use meth...
Buffer base class used for serializing objects.
virtual void ReadWithNbits(Float_t *ptr, Int_t nbits)=0
virtual void ReadWithFactor(Float_t *ptr, Double_t factor, Double_t minvalue)=0
virtual TProcessID * ReadProcessID(UShort_t pidf)=0
Return the current Process-ID.
virtual void ReadFastArrayDouble32(Double_t *d, Int_t n, TStreamerElement *ele=0)=0
virtual UInt_t WriteVersionMemberWise(const TClass *cl, Bool_t useBcnt=kFALSE)=0
virtual void SetByteCount(UInt_t cntpos, Bool_t packInVersion=kFALSE)=0
virtual void ReadInt(Int_t &i)=0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
TObject * GetParent() const
Return pointer to parent of this buffer.
virtual UShort_t GetPidOffset() const =0
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
@ kCannotHandleMemberWiseStreaming
virtual void StreamObject(void *obj, const std::type_info &typeinfo, const TClass *onFileClass=0)=0
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual void ReadFastArray(Bool_t *b, Int_t n)=0
virtual void ReadFastArrayFloat16(Float_t *f, Int_t n, TStreamerElement *ele=0)=0
virtual Int_t ApplySequence(const TStreamerInfoActions::TActionSequence &sequence, void *object)=0
virtual void ReadFastArrayWithNbits(Float_t *ptr, Int_t n, Int_t nbits)=0
void SetBufferOffset(Int_t offset=0)
virtual void ReadFastArrayWithFactor(Float_t *ptr, Int_t n, Double_t factor, Double_t minvalue)=0
virtual UInt_t WriteVersion(const TClass *cl, Bool_t useBcnt=kFALSE)=0
virtual Version_t ReadVersionForMemberWise(const TClass *cl=0)=0
virtual void WriteFastArray(const Bool_t *b, Int_t n)=0
TClass instances represent classes, structs and namespaces in the ROOT type system.
Bool_t CanSplit() const
Return true if the data member of this TClass can be saved separately.
void * NewArray(Long_t nElements, ENewType defConstructor=kClassNew) const
Return a pointer to a newly allocated array of objects of this class.
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
Int_t Size() const
Return size of object of this class.
void DeleteArray(void *ary, Bool_t dtorOnly=kFALSE)
Explicitly call operator delete[] for an array.
TVirtualStreamerInfo * GetStreamerInfo(Int_t version=0, Bool_t isTransient=kFALSE) const
returns a pointer to the TVirtualStreamerInfo object for version If the object does not exist,...
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
void Streamer(void *obj, TBuffer &b, const TClass *onfile_class=0) const
TVirtualStreamerInfo * GetConversionStreamerInfo(const char *onfile_classname, Int_t version) const
Return a Conversion StreamerInfo from the class 'classname' for version number 'version' to this clas...
@ kHasCustomStreamerMember
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Int_t GetEntriesFast() const
virtual void AddAtAndExpand(TObject *obj, Int_t idx)
Add object at position idx.
virtual void AddAt(TObject *obj, Int_t idx)
Add object at position ids.
TObject * At(Int_t idx) const
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual UInt_t GetUniqueID() const
Return the unique object id.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
A TProcessID identifies a ROOT job in a unique way in time and space.
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...
const char * GetErrorMessage() const
virtual Int_t GetSize() const
Returns size of this element in bytes.
virtual const char * GetFullName() const
Return element name including dimensions, if any Note that this function stores the name into a stati...
virtual TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
Int_t GetArrayDim() const
TMemberStreamer * GetStreamer() const
Return the local streamer object.
TClass * GetNewClass() const
Int_t GetArrayLength() const
Double_t GetFactor() const
const char * GetTypeName() const
virtual Bool_t IsBase() const
Return kTRUE if the element represent a base class.
virtual ULong_t GetMethod() const
virtual Bool_t HasCounter() const
void GetSequenceType(TString &type) const
Fill type with the string representation of sequence information including 'cached',...
Bool_t IsForVectorPtrLooper() const
static TActionSequence * CreateReadMemberWiseActions(TVirtualStreamerInfo *info, TVirtualCollectionProxy &proxy)
Create the bundle of the actions necessary for the streaming memberwise of the content described by '...
void Print(Option_t *="") const
This method must be overridden when a class wants to print itself.
TLoopConfiguration * fLoopConfig
If this is a bundle of memberwise streaming action, this configures the looping.
static TActionSequence * CreateWriteMemberWiseActions(TVirtualStreamerInfo *info, TVirtualCollectionProxy &proxy)
Create the bundle of the actions necessary for the streaming memberwise of the content described by '...
SequencePtr(*)(TStreamerInfo *info, TVirtualCollectionProxy *collectionProxy, TClass *originalClass) SequenceGetter_t
ActionContainer_t fActions
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)
TActionSequence * CreateCopy()
void AddAction(action_t action, TConfiguration *conf)
void AddToOffset(Int_t delta)
Base class of the Configurations.
virtual void SetMissing()
virtual void PrintDebug(TBuffer &buffer, void *object) const
virtual TConfiguration * Copy()
TVirtualStreamerInfo * fInfo
TStreamerInfo form which the action is derived.
Int_t fOffset
Offset within the object.
TCompInfo_t * fCompInfo
Access to compiled information (for legacy code)
UInt_t fLength
Number of element in a fixed length array.
UInt_t fElemId
Identifier of the TStreamerElement.
virtual void Print() const
virtual void AddToOffset(Int_t delta)
Base class of the Configurations for the member wise looping routines.
TVirtualCollectionProxy * fProxy
virtual void Print() const
virtual TVirtualCollectionProxy * GetCollectionProxy() const
virtual TLoopConfiguration * Copy() const =0
TClass * fClass
Not Owned.
TMemberStreamer * fStreamer
Not Owned.
TStreamerElement * fElem
Not Owned.
TClass * fNewClass
Not Owned.
Describe Streamer information for one class version.
Int_t fNVirtualInfoLoc
! Number of virtual info location to update.
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 AddWriteAction(TStreamerInfoActions::TActionSequence *writeSequence, Int_t index, TCompInfo *compinfo)
Int_t fNfulldata
!number of elements
TCompInfo * fComp
![fNslots with less than fElements->GetEntries()*1.5 used] Compiled info
TStreamerInfoActions::TActionSequence * GetWriteMemberWiseActions(Bool_t forCollection)
void Compile()
loop on the TStreamerElement list regroup members with same type Store predigested information into l...
TStreamerInfoActions::TActionSequence * fWriteMemberWiseVecPtr
! List of write action resulting from the compilation for use in member wise streaming.
TStreamerInfoActions::TActionSequence * fReadText
! List of text read action resulting from the compilation, used for JSON.
void AddReadTextAction(TStreamerInfoActions::TActionSequence *readSequence, Int_t index, TCompInfo *compinfo)
Add a read text action for the given element.
TCompInfo ** fCompFull
![fElements->GetEntries()]
TObjArray * fElements
Array of TStreamerElements.
@ kArtificial
Cache the value in memory than is not part of the object but is accessible via a SchemaRule.
@ kUChar
Equal to TDataType's kchar.
void AddReadMemberWiseVecPtrAction(TStreamerInfoActions::TActionSequence *readSequence, Int_t index, TCompInfo *compinfo)
Add a read action for the given element.
TClass * GetClass() const
void ls(Option_t *option="") const
List the TStreamerElement list and also the precomputed tables if option contains the string "incOrig...
TStreamerInfoActions::TActionSequence * fReadMemberWise
! List of read action resulting from the compilation for use in member wise streaming.
Int_t fNdata
!number of optimized elements
TStreamerInfoActions::TActionSequence * fReadMemberWiseVecPtr
! List of read action resulting from the compilation for use in member wise streaming.
TStreamerInfoActions::TActionSequence * fReadObjectWise
! List of read action resulting from the compilation.
TClass * fClass
!pointer to class
TCompInfo ** fCompOpt
![fNdata]
static std::atomic< Int_t > fgCount
Number of TStreamerInfo instances.
void AddWriteTextAction(TStreamerInfoActions::TActionSequence *writeSequence, Int_t index, TCompInfo *compinfo)
void ComputeSize()
Compute total size of all persistent elements of the class.
void AddReadAction(TStreamerInfoActions::TActionSequence *readSequence, Int_t index, TCompInfo *compinfo)
Add a read action for the given element.
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).
Int_t fNumber
!Unique identifier
TStreamerInfoActions::TActionSequence * fWriteObjectWise
! List of write action resulting from the compilation.
Int_t fSize
!size of the persistent class
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.
TStreamerInfoActions::TActionSequence * fWriteMemberWise
! List of write action resulting from the compilation for use in member wise streaming.
Int_t fNslots
!total numbrer of slots in fComp.
Version_t fOldVersion
! Version of the TStreamerInfo object read from the file
TStreamerInfoActions::TActionSequence * fWriteText
! List of text write action resulting for the compilation, used for JSON.
TStreamerInfoActions::TActionSequence * GetReadMemberWiseActions(Bool_t forCollection)
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
const char * Data() const
Wrapper around an object and giving indirect access to its content even if the object is not of a cla...
virtual Int_t GetProperties() const
virtual ULong_t GetIncrement() const =0
virtual TStreamerInfoActions::TActionSequence * GetReadMemberWiseActions(Int_t version)=0
void(* CreateIterators_t)(void *collection, void **begin_arena, void **end_arena, TVirtualCollectionProxy *proxy)
virtual EDataType GetType() const =0
void *(* CopyIterator_t)(void *dest, const void *source)
void *(* Next_t)(void *iter, const void *end)
virtual TClass * GetValueClass() const =0
virtual void Commit(void *)=0
virtual Int_t GetCollectionType() const =0
virtual Next_t GetFunctionNext(Bool_t read=kTRUE)=0
virtual DeleteTwoIterators_t GetFunctionDeleteTwoIterators(Bool_t read=kTRUE)=0
virtual UInt_t Size() const =0
void(* DeleteTwoIterators_t)(void *begin, void *end)
void(* DeleteIterator_t)(void *iter)
static const Int_t fgIteratorArenaSize
virtual CreateIterators_t GetFunctionCreateIterators(Bool_t read=kTRUE)=0
virtual void * Allocate(UInt_t n, Bool_t forceDelete)=0
virtual TStreamerInfoActions::TActionSequence * GetConversionReadMemberWiseActions(TClass *oldClass, Int_t version)=0
virtual DeleteIterator_t GetFunctionDeleteIterator(Bool_t read=kTRUE)=0
virtual CopyIterator_t GetFunctionCopyIterator(Bool_t read=kTRUE)=0
virtual Bool_t HasPointers() const =0
virtual TClass * GetCollectionClass() const
static void DeleteIterator(void *iter)
static void * Next(void *iter, const void *end)
static void * CopyIterator(void *dest, const void *source)
Abstract Interface class describing Streamer information for one class.
static Bool_t GetStreamMemberWise()
Return whether the TStreamerInfos will save the collections in "member-wise" order whenever possible.
Bool_t IsCompiled() const
static Bool_t CanOptimize()
static function returning true if optimization can be on
virtual TObjArray * GetElements() const =0
virtual Int_t GetClassVersion() const =0
void Copy(void *source, void *dest)
void Print(std::ostream &os, const OptionType &opt)
void Init(TClassEdit::TInterpreterLookupHelper *helper)
INLINE_TEMPLATE_ARGS Int_t UseCache(TBuffer &b, void *addr, const TConfiguration *conf)
INLINE_TEMPLATE_ARGS Int_t ReadTObject(TBuffer &buf, void *addr, const TConfiguration *config)
Int_t PushDataCacheVectorPtr(TBuffer &b, void *, const void *, const TConfiguration *conf)
INLINE_TEMPLATE_ARGS Int_t ReadBasicType(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS Int_t WriteTextStreamer(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS Int_t WriteTextTObject(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS Int_t ReadTextTObjectBase(TBuffer &buf, void *addr, const TConfiguration *config)
Int_t PopDataCache(TBuffer &b, void *, const TConfiguration *)
INLINE_TEMPLATE_ARGS Int_t WriteBasicType(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS Int_t ReadSTL(TBuffer &buf, void *addr, const TConfiguration *conf)
INLINE_TEMPLATE_ARGS Int_t WriteTextBaseClass(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS void ReadSTLObjectWiseFastArrayV2(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers, UInt_t start)
INLINE_TEMPLATE_ARGS Int_t ReadTString(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS void ReadArraySTLMemberWiseChangedClass(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers)
Int_t GenericWriteAction(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS Int_t ReadTextTObject(TBuffer &buf, void *addr, const TConfiguration *config)
Int_t PopDataCacheVectorPtr(TBuffer &b, void *, const void *, const TConfiguration *)
Int_t GenericReadAction(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS void ReadArraySTLMemberWiseSameClass(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers)
INLINE_TEMPLATE_ARGS Int_t ReadTextObject(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS Int_t ReadTextStreamer(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS Int_t UseCacheVectorLoop(TBuffer &b, void *start, const void *end, const TLoopConfiguration *loopconf, const TConfiguration *conf)
INLINE_TEMPLATE_ARGS void ReadSTLObjectWiseFastArray(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t, UInt_t)
Int_t PushDataCache(TBuffer &b, void *, const TConfiguration *conf)
INLINE_TEMPLATE_ARGS Int_t ReadBasicType_NoFactor(TBuffer &buf, void *addr, const TConfiguration *config)
std::vector< TIDNode > TIDs
INLINE_TEMPLATE_ARGS void ReadSTLMemberWiseSameClass(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers)
Int_t WriteLoopInvalid(TBuffer &, void *, const void *, const TConfiguration *config)
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...
INLINE_TEMPLATE_ARGS Int_t UseCacheVectorPtrLoop(TBuffer &b, void *start, const void *end, const TConfiguration *conf)
INLINE_TEMPLATE_ARGS Int_t UseCacheGenericCollection(TBuffer &b, void *, const void *, const TLoopConfiguration *loopconfig, const TConfiguration *conf)
INLINE_TEMPLATE_ARGS Int_t ReadTextBaseClass(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS Int_t ReadSTLp(TBuffer &buf, void *addr, const TConfiguration *config)
Direct copy of code from TStreamerInfo::WriteBufferAux, potentially can be used later for non-text st...
INLINE_TEMPLATE_ARGS Int_t WriteTextTNamed(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS void ReadSTLObjectWiseStreamerV2(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers, UInt_t start)
INLINE_TEMPLATE_ARGS void ReadSTLObjectWiseStreamer(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t, UInt_t)
INLINE_TEMPLATE_ARGS Int_t ReadBasicType< BitsMarker >(TBuffer &buf, void *addr, const TConfiguration *config)
bool IsDefaultVector(TVirtualCollectionProxy &proxy)
Int_t ReadLoopInvalid(TBuffer &, void *, const void *, const TConfiguration *config)
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...
INLINE_TEMPLATE_ARGS void ReadSTLMemberWiseChangedClass(TBuffer &buf, void *addr, const TConfiguration *conf, Version_t vers)
void HandleReferencedTObject(TBuffer &buf, void *addr, const TConfiguration *config)
Int_t PopDataCacheGenericCollection(TBuffer &b, void *, const void *, const TLoopConfiguration *, const TConfiguration *)
INLINE_TEMPLATE_ARGS Int_t ReadStreamerLoop(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 PushDataCacheGenericCollection(TBuffer &b, void *, const void *, const TLoopConfiguration *loopconfig, const TConfiguration *conf)
ESelectLooper SelectLooper(TVirtualCollectionProxy &proxy)
INLINE_TEMPLATE_ARGS Int_t ReadTNamed(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS Int_t ReadTextTNamed(TBuffer &buf, void *addr, const TConfiguration *config)
INLINE_TEMPLATE_ARGS Int_t ReadBasicType_WithFactor(TBuffer &buf, void *addr, const TConfiguration *config)
TVirtualCollectionProxy::Next_t Next_t