40# define INLINE_TEMPLATE_ARGS
42# define INLINE_TEMPLATE_ARGS inline
55 return isEmulated || (isVector && hasDefaultAlloc);
58 template <
typename From>
59 struct WithFactorMarker {
63 template <
typename From>
64 struct NoFactorMarker {
106 printf(
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d,"
107 " %s, offset=%d (%s)\n",
123 printf(
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d,"
124 " %s, bufpos=%d, arr=%p, offset=%d (%s)\n",
134 printf(
"TLoopConfiguration: unconfigured\n");
143 void PrintDebug(
TBuffer &,
void *)
const {
159 void PrintDebug(
TBuffer &,
void *)
const {
165 printf(
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d,"
166 " %s, offset=%d (%s)\n",
171 void AddToOffset(
Int_t delta)
193 char *obj = (
char*)addr;
194 TGenericConfiguration *conf = (TGenericConfiguration*)config;
200 char *obj = (
char*)addr;
201 TGenericConfiguration *conf = (TGenericConfiguration*)config;
202 return ((
TStreamerInfo*)conf->fInfo)->WriteBufferAux(buf, &obj, &(conf->fCompInfo), 0, 1, 1, config->
fOffset, 2);
205 template <
typename T>
208 T *
x = (
T*)( ((
char*)addr) + config->
fOffset );
215 TBitsConfiguration *conf = (TBitsConfiguration*)config;
227 uid = ( obj->
GetUniqueID() & 0xffffff) + (gpid<<24);
248 template <
typename T>
251 T *
x = (
T *)(((
char *)addr) + config->
fOffset);
259 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
267 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
275 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
283 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
293 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
300 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
307 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
315 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
328 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
335 void *
x = (
void *)(((
char *)addr) + config->
fOffset);
342 template<
bool kIsTextT>
367 char **contp = (
char **)((
char *)addr + ioffset);
369 char *cont = contp[j];
371 Int_t nobjects = cont ? proxy->
Size() : 0;
385 }
else if (pstreamer ==
nullptr) {
387 char **contp = (
char **)((
char *)addr + ioffset);
389 char *cont = contp[j];
405 template<
bool kIsTextT>
428 if( vers < 9 && newClass && newClass!=oldClass ) {
429 Error(
"ReadBuffer",
"Unfortunately, version %d of TStreamerInfo (used in %s) did not record enough information to convert a %s into a %s.",
453 void **contp = (
void**)((
char *) addr + ioffset);
455 void *cont = contp[j];
457 contp[j] = cle->
New();
463 env = newProxy->
Allocate(nobjects,
true);
476 }
else if (pstreamer ==
nullptr) {
478 void **contp = (
void **)((
char *)addr + ioffset);
480 void *cont = contp[j];
481 if (cont ==
nullptr) {
486 contp[j] = cle->
New();
502 template<
bool kIsTextT>
519 (*pstreamer)(buf, (
char *) addr + ioffset , *counter);
521 buf.SetByteCount(pos,
kTRUE);
539 fileVersion =
file->GetVersion();
544 if (fileVersion > 51508) {
554 char** pp = (
char**) ((
char *) addr + ioffset );
593 char** pp = (
char**) ((
char *) addr + ioffset );
617 char**
r = (
char**) pp[ndx];
635 template<
bool kIsTextT>
658 (*pstreamer)(buf, (
char *) addr + ioffset , *counter);
676 fileVersion =
file->GetVersion();
683 if (fileVersion > 51508) {
688 Int_t vlen = *((
Int_t *)((
char *)addr + eoffset +
696 char **pp = (
char **)((
char *)addr + ioffset );
749 pp[ndx] = (
char *)cl->
NewArray(vlen);
751 Error(
"ReadBuffer",
"Memory allocation failed!\n");
758 pp[ndx] = (
char *)
new char *[vlen];
760 Error(
"ReadBuffer",
"Memory allocation failed!\n");
764 memset(pp[ndx], 0, vlen *
sizeof(
char *));
781 Int_t vlen = *((
Int_t *)((
char *)addr + eoffset +
789 char **pp = (
char **)((
char *)addr + ioffset );
839 pp[ndx] = (
char *)cl->
NewArray(vlen);
841 Error(
"ReadBuffer",
"Memory allocation failed!\n");
848 pp[ndx] = (
char *)
new char *[vlen];
850 Error(
"ReadBuffer",
"Memory allocation failed!\n");
854 memset(pp[ndx], 0, vlen *
sizeof(
char *));
867 char **
r = (
char **)pp[ndx];
871 r[
v] = (
char *)cl->
New();
893 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) {};
897 template <
typename T>
903 TConfWithFactor *conf = (TConfWithFactor *)config;
916 template <
typename T>
921 TConfNoFactor *conf = (TConfNoFactor *)config;
922 Int_t nbits = conf->fNbits;
934 ((
TString*)(((
char*)addr)+config->
fOffset))->TString::Streamer(buf);
944 ((
TObject*)(((
char*)addr)+config->
fOffset))->TObject::Streamer(buf);
977 const char *fTypeName;
986 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(oldClass), fStreamer(0), fTypeName(type_name), fIsSTLBase(isbase),
987 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
990 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(newClass), fStreamer(0), fTypeName(type_name), fIsSTLBase(isbase),
991 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
994 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(oldClass), fStreamer(streamer), fTypeName(type_name), fIsSTLBase(isbase),
995 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
998 TConfiguration(info,
id,compinfo,offset,length), fOldClass(oldClass), fNewClass(newClass), fStreamer(streamer), fTypeName(type_name), fIsSTLBase(isbase),
999 fCreateIterators(0), fCopyIterator(0), fDeleteIterator(0), fDeleteTwoIterators(0) {
Init(); }
1004 class TConfSTLWithFactor :
public TConfigSTL {
1009 TConfSTLWithFactor(TConfigSTL *orig,
Double_t factor,
Double_t xmin) : TConfigSTL(*orig),fFactor(factor),fXmin(
xmin) {};
1013 class TConfSTLNoFactor :
public TConfigSTL {
1017 TConfSTLNoFactor(TConfigSTL *orig,
Int_t nbits) : TConfigSTL(*orig),fNbits(nbits) {};
1029 virtual ~TVectorLoopConfig() {};
1032 printf(
"TVectorLoopConfig: increment=%ld\n",fIncrement);
1035 void* GetFirstAddress(
void *start,
const void * )
const
1050 virtual ~TAssocLoopConfig() {};
1057 void* GetFirstAddress(
void *start,
const void * )
const
1097 virtual ~TGenericLoopConfig() {};
1104 void* GetFirstAddress(
void *start_collection,
const void *end_collection)
const
1109 void *iter = fCopyIterator(&iterator,start_collection);
1110 void *arr0 = fNext(iter,end_collection);
1111 if (iter != &iterator[0]) {
1112 fDeleteIterator(iter);
1122 TConfigSTL *config = (TConfigSTL*)conf;
1127 TClass *oldClass = config->fOldClass;
1140 void* alternative = oldProxy->
Allocate(nobjects,
true);
1146 void *begin = &(startbuf[0]);
1147 void *end = &(endbuf[0]);
1148 config->fCreateIterators(alternative, &begin, &end, oldProxy);
1152 if (begin != &(startbuf[0])) {
1154 config->fDeleteTwoIterators(begin,end);
1157 oldProxy->
Commit(alternative);
1161 TClass *oldClass = config->fOldClass;
1172 void* env = oldProxy->
Allocate(nobjects,
true);
1174 if (nobjects || vers < 7 ) {
1188 TConfigSTL *config = (TConfigSTL*)conf;
1193 TClass *oldClass = config->fOldClass;
1205 int objectSize = oldClass->
Size();
1206 char *obj = (
char*)addr;
1207 char *endobj = obj + conf->
fLength*objectSize;
1209 for(; obj<endobj; obj+=objectSize) {
1213 void* alternative = oldProxy->
Allocate(nobjects,
true);
1217 void *begin = &(startbuf[0]);
1218 void *end = &(endbuf[0]);
1219 config->fCreateIterators(alternative, &begin, &end, oldProxy);
1223 if (begin != &(startbuf[0])) {
1225 config->fDeleteTwoIterators(begin,end);
1228 oldProxy->
Commit(alternative);
1233 TClass *oldClass = config->fOldClass;
1241 int objectSize = oldClass->
Size();
1242 char *obj = (
char*)addr;
1243 char *endobj = obj + conf->
fLength*objectSize;
1245 for(; obj<endobj; obj+=objectSize) {
1249 void* env = oldProxy->
Allocate(nobjects,
true);
1251 if (nobjects || vers < 7 ) {
1266 TConfigSTL *config = (TConfigSTL*)conf;
1270 TClass *newClass = config->fNewClass;
1271 TClass *oldClass = config->fOldClass;
1274 Error(
"ReadSTLMemberWiseChangedClass",
"Unfortunately, version %d of TStreamerInfo (used in %s) did not record enough information to convert a %s into a %s.",
1286 void* alternative = newProxy->
Allocate(nobjects,
true);
1291 void *begin = &(startbuf[0]);
1292 void *end = &(endbuf[0]);
1293 config->fCreateIterators( alternative, &begin, &end, newProxy);
1297 if (begin != &(startbuf[0])) {
1299 config->fDeleteTwoIterators(begin,end);
1302 newProxy->
Commit(alternative);
1310 TConfigSTL *config = (TConfigSTL*)conf;
1314 TClass *newClass = config->fNewClass;
1315 TClass *oldClass = config->fOldClass;
1318 Error(
"ReadSTLMemberWiseChangedClass",
"Unfortunately, version %d of TStreamerInfo (used in %s) did not record enough information to convert a %s into a %s.",
1327 int objectSize = newClass->
Size();
1328 char *obj = (
char*)addr;
1329 char *endobj = obj + conf->
fLength*objectSize;
1331 for(; obj<endobj; obj+=objectSize) {
1335 void* alternative = newProxy->
Allocate(nobjects,
true);
1340 void *begin = &(startbuf[0]);
1341 void *end = &(endbuf[0]);
1342 config->fCreateIterators( alternative, &begin, &end, newProxy);
1346 if (begin != &(startbuf[0])) {
1348 config->fDeleteTwoIterators(begin,end);
1351 newProxy->
Commit(alternative);
1359 TConfigSTL *config = (TConfigSTL*)conf;
1365 TConfigSTL *config = (TConfigSTL*)conf;
1366 (*config->fStreamer)(buf,addr,conf->
fLength);
1372 TConfigSTL *config = (TConfigSTL*)conf;
1375 if (config->fIsSTLBase || vers == 0) {
1385 TConfigSTL *config = (TConfigSTL*)conf;
1388 if (config->fIsSTLBase || vers == 0) {
1391 (*config->fStreamer)(buf,addr,conf->
fLength);
1398 TConfigSTL *config = (TConfigSTL*)conf;
1402 memberwise(buf,((
char*)addr)+config->fOffset,config, vers);
1404 objectwise(buf,((
char*)addr)+config->fOffset,config, vers, start);
1410 template <
typename From,
typename To>
1411 struct ConvertBasicType {
1417 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
1422 template <
typename To>
1423 struct ConvertBasicType<BitsMarker,To> {
1434 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
1439 template <
typename From,
typename To>
1440 struct ConvertBasicType<WithFactorMarker<From>,To> {
1444 TConfWithFactor *conf = (TConfWithFactor *)config;
1447 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
1452 template <
typename From,
typename To>
1453 struct ConvertBasicType<NoFactorMarker<From>,To> {
1457 TConfNoFactor *conf = (TConfNoFactor *)config;
1460 *(To*)( ((
char*)addr) + config->
fOffset ) = (To)temp;
1471 TConfiguration(info, -1, nullptr, offset), fOnfileObject(onfileObject)
1474 virtual void Print()
const {
1477 printf(
"StreamerInfoAction, class:%s, PushDataCache offset=%d\n",
1480 printf(
"StreamerInfoAction, class:%s, PopDataCache offset=%d\n",
1483 virtual void PrintDebug(
TBuffer &buffer,
void *
object)
const {
1486 printf(
"StreamerInfoAction, class:%s, %sDataCache, bufpos=%d, arr=%p, offset=%d, onfileObject=%p\n",
1487 info->
GetClass()->
GetName(), fOnfileObject ?
"Push" :
"Pop", buffer.
Length(),
object, fOffset, fOnfileObject);
1495 TConfigurationPushDataCache *config = (TConfigurationPushDataCache*)conf;
1496 auto onfileObject = config->fOnfileObject;
1499 b.PushDataCache( onfileObject );
1506 TConfigurationPushDataCache *config = (TConfigurationPushDataCache*)conf;
1507 auto onfileObject = config->fOnfileObject;
1512 onfileObject->SetSize(
n);
1513 b.PushDataCache( onfileObject );
1537 TConfiguration(info,action.fConfiguration->fElemId,action.fConfiguration->fCompInfo,action.fConfiguration->fOffset),fAction(action),fNeedRepeat(repeat) {};
1538 virtual void PrintDebug(
TBuffer &
b,
void *addr)
const
1544 fprintf(stdout,
"StreamerInfoAction, class:%s, name=%s, fType[%d]=%d,"
1545 " %s, bufpos=%d, arr=%p, eoffset=%d, Redirect=%p\n",
1547 aElement->
ClassName(),
b.Length(),addr, 0,
b.PeekDataCache() ?
b.PeekDataCache()->GetObjectAt(0) : 0);
1551 virtual ~TConfigurationUseCache() {};
1553 TConfigurationUseCache *copy =
new TConfigurationUseCache(*
this);
1561 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1563 Int_t bufpos =
b.Length();
1568 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1569 char *ptr = (
char*)addr;
1572 config->fAction(
b, (*cached)[0]);
1575 if (config->fNeedRepeat) {
1576 b.SetBufferOffset(bufpos);
1583 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1584 Int_t bufpos =
b.Length();
1590 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1591 char *ptr = (
char*)start;
1592 UInt_t n = (((
void**)end)-((
void**)start));
1595 TVectorLoopConfig cached_config(
nullptr, cached->
fClass->
Size(),
kTRUE );
1596 void *cached_start = (*cached)[0];
1597 void *cached_end = ((
char*)cached_start) + cached->
fSize * cached_config.fIncrement;
1598 config->fAction(
b,cached_start,cached_end,&cached_config);
1601 if (config->fNeedRepeat) {
1602 b.SetBufferOffset(bufpos);
1609 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1611 Int_t bufpos =
b.Length();
1616 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1617 char *ptr = (
char*)start;
1618 UInt_t n = (((
char*)end)-((
char*)start))/((TVectorLoopConfig*)loopconf)->fIncrement;
1621 TVectorLoopConfig cached_config(
nullptr, cached->
fClass->
Size(),
kTRUE );
1622 void *cached_start = (*cached)[0];
1623 void *cached_end = ((
char*)cached_start) + cached->
fSize * cached_config.fIncrement;
1624 config->fAction(
b,cached_start,cached_end,&cached_config);
1627 if (config->fNeedRepeat) {
1628 b.SetBufferOffset(bufpos);
1635 TConfigurationUseCache *config = (TConfigurationUseCache*)conf;
1637 Int_t bufpos =
b.Length();
1644 Warning(
"ReadBuffer",
"Skipping %s::%s because the cache is missing.",info->
GetName(),aElement->
GetName());
1648 TVectorLoopConfig cached_config(
nullptr, cached->
fClass->
Size(),
kTRUE );
1649 void *cached_start = (*cached)[0];
1650 void *cached_end = ((
char*)cached_start) + cached->
fSize * cached_config.fIncrement;
1651 config->fAction(
b,cached_start,cached_end,&cached_config);
1654 if (config->fNeedRepeat) {
1655 b.SetBufferOffset(bufpos);
1694 struct VectorLooper {
1696 template <
typename T>
1699 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1700 iter = (
char*)iter + config->
fOffset;
1701 end = (
char*)end + config->
fOffset;
1702 for(; iter != end; iter = (
char*)iter + incr ) {
1703 T *
x = (
T*) ((
char*) iter);
1709 template <
typename From,
typename To>
1710 struct ConvertBasicType {
1715 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1716 iter = (
char*)iter + config->
fOffset;
1717 end = (
char*)end + config->
fOffset;
1718 for(; iter != end; iter = (
char*)iter + incr ) {
1720 *(To*)( ((
char*)iter) ) = (To)temp;
1726 template <
typename To>
1727 struct ConvertBasicType<BitsMarker,To> {
1732 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1733 iter = (
char*)iter + config->
fOffset;
1734 end = (
char*)end + config->
fOffset;
1735 for(; iter != end; iter = (
char*)iter + incr ) {
1742 *(To*)( ((
char*)iter) ) = (To)temp;
1748 template <
typename From,
typename To>
1749 struct ConvertBasicType<WithFactorMarker<From>,To> {
1753 TConfWithFactor *conf = (TConfWithFactor *)config;
1755 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1756 iter = (
char*)iter + config->
fOffset;
1757 end = (
char*)end + config->
fOffset;
1758 for(; iter != end; iter = (
char*)iter + incr ) {
1760 *(To*)( ((
char*)iter) ) = (To)temp;
1766 template <
typename From,
typename To>
1767 struct ConvertBasicType<NoFactorMarker<From>,To> {
1771 TConfNoFactor *conf = (TConfNoFactor *)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 T>
1787 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1788 iter = (
char*)iter + config->
fOffset;
1789 end = (
char*)end + config->
fOffset;
1790 for(; iter != end; iter = (
char*)iter + incr ) {
1791 T *
x = (
T*) ((
char*) iter);
1797 template <Int_t (*iter_action)(TBuffer&,
void *,const TConfiguration*)>
1800 const Int_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1803 for(
void *iter = start; iter != end; iter = (
char*)iter + incr ) {
1804 iter_action(buf, iter, config);
1814 UInt_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1815 UInt_t n = (((
char*)end)-((
char*)start))/incr;
1816 char **arrptr =
new char*[
n];
1818 for(
void *iter = start; iter != end; iter = (
char*)iter + incr, ++i ) {
1819 arrptr[i] = (
char*)iter;
1851 UInt_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1852 UInt_t n = (((
char*)end)-((
char*)start))/incr;
1853 char **arrptr =
new char*[
n];
1855 for(
void *iter = start; iter != end; iter = (
char*)iter + incr, ++i ) {
1856 arrptr[i] = (
char*)iter;
1867 UInt_t incr = ((TVectorLoopConfig*)loopconfig)->fIncrement;
1868 UInt_t n = (((
char*)end)-((
char*)start))/incr;
1869 char **arrptr =
new char*[
n];
1871 for(
void *iter = start; iter != end; iter = (
char*)iter + incr, ++i ) {
1872 arrptr[i] = (
char*)iter;
1879 template <
typename T>
1884 TConfigSTL *config = (TConfigSTL*)conf;
1886 buf.
ReadVersion(&start, &count, config->fOldClass);
1888 std::vector<T> *
const vec = (std::vector<T>*)(((
char*)addr)+config->fOffset);
1891 vec->resize(nvalues);
1893#ifdef R__VISUAL_CPLUSPLUS
1899 T *begin = &(*vec->begin());
1910 TConfigSTL *config = (TConfigSTL*)conf;
1912 buf.
ReadVersion(&start, &count, config->fOldClass);
1914 std::vector<bool> *
const vec = (std::vector<bool>*)(((
char*)addr)+config->fOffset);
1917 vec->resize(nvalues);
1919 bool *items =
new bool[nvalues];
1921 for(
Int_t i = 0 ; i < nvalues; ++i) {
1922 (*vec)[i] = items[i];
1941 TConfigSTL *config = (TConfigSTL*)conf;
1943 buf.
ReadVersion(&start, &count, config->fOldClass);
1945 std::vector<float> *
const vec = (std::vector<float>*)(((
char*)addr)+config->fOffset);
1948 vec->resize(nvalues);
1950#ifdef R__VISUAL_CPLUSPLUS
1956 float *begin = &(*vec->begin());
1967 TConfigSTL *config = (TConfigSTL*)conf;
1969 buf.
ReadVersion(&start, &count, config->fOldClass);
1971 std::vector<double> *
const vec = (std::vector<double>*)(((
char*)addr)+config->fOffset);
1974 vec->resize(nvalues);
1976#ifdef R__VISUAL_CPLUSPLUS
1982 double *begin = &(*vec->begin());
1989 template <
typename From,
typename To>
1990 struct ConvertCollectionBasicType {
1995 TConfigSTL *config = (TConfigSTL*)conf;
1997 buf.
ReadVersion(&start, &count, config->fOldClass);
1999 std::vector<To> *
const vec = (std::vector<To>*)(((
char*)addr)+config->fOffset);
2002 vec->resize(nvalues);
2004 From *temp =
new From[nvalues];
2006 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2007 (*vec)[ind] = (To)temp[ind];
2016 template <
typename From,
typename To>
2017 struct ConvertCollectionBasicType<NoFactorMarker<From>,To> {
2022 TConfigSTL *config = (TConfigSTL*)conf;
2024 buf.
ReadVersion(&start, &count, config->fOldClass);
2026 std::vector<To> *
const vec = (std::vector<To>*)(((
char*)addr)+config->fOffset);
2029 vec->resize(nvalues);
2031 From *temp =
new From[nvalues];
2033 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2034 (*vec)[ind] = (To)temp[ind];
2043 template <
typename To>
2048 TConfigSTL *config = (TConfigSTL*)conf;
2050 buf.
ReadVersion(&start, &count, config->fOldClass);
2052 std::vector<To> *
const vec = (std::vector<To>*)(((
char*)addr)+config->fOffset);
2055 vec->resize(nvalues);
2059 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2060 (*vec)[ind] = (To)temp[ind];
2070 struct VectorPtrLooper {
2072 template <
typename T>
2077 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2078 T *
x = (
T*)( ((
char*) (*(
void**)iter) ) + offset );
2084 template <
typename From,
typename To>
2085 struct ConvertBasicType {
2091 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2093 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
2100 template <
typename To>
2101 struct ConvertBasicType<BitsMarker,To> {
2107 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2114 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
2121 template <
typename From,
typename To>
2122 struct ConvertBasicType<WithFactorMarker<From>,To> {
2126 TConfWithFactor *conf = (TConfWithFactor *)config;
2129 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2131 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
2138 template <
typename From,
typename To>
2139 struct ConvertBasicType<NoFactorMarker<From>,To> {
2143 TConfNoFactor *conf = (TConfNoFactor *)config;
2146 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2148 To *
x = (To*)( ((
char*) (*(
void**)iter) ) + offset );
2155 template <
typename T>
2160 for(; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2161 T *
x = (
T*)( ((
char*) (*(
void**)iter) ) + offset );
2167 template <Int_t (*action)(TBuffer&,
void *,const TConfiguration*)>
2170 for(
void *iter = start; iter != end; iter = (
char*)iter +
sizeof(
void*) ) {
2171 action(buf, *(
void**)iter, config);
2181 return GenericRead(buf,start,end,config);
2186 Int_t n = ( ((
void**)end) - ((
void**)iter) );
2187 char **arr = (
char**)iter;
2193 Int_t n = ( ((
void**)end) - ((
void**)iter) );
2194 char **arr = (
char**)iter;
2200 struct AssociativeLooper {
2202 template <
typename T>
2218 template <
typename T,
void (*action)(TBuffer&,
void *,Int_t)>
2223 TConfigSTL *config = (TConfigSTL*)conf;
2225 buf.
ReadVersion(&start, &count, config->fOldClass);
2227 TClass *newClass = config->fNewClass;
2233 void* alternative = newProxy->
Allocate(nvalues,
true);
2237 void *begin = &(startbuf[0]);
2238 void *end = &(endbuf[0]);
2239 config->fCreateIterators(alternative, &begin, &end, newProxy);
2243 action(buf,begin,nvalues);
2245 if (begin != &(startbuf[0])) {
2247 config->fDeleteTwoIterators(begin,end);
2250 newProxy->
Commit(alternative);
2258 return ReadNumericalCollection<bool,SimpleRead<bool> >(buf,addr,conf);
2263 return ReadNumericalCollection<Float_t,SimpleReadFloat16 >(buf,addr,conf);
2268 return ReadNumericalCollection<Double_t,SimpleReadDouble32 >(buf,addr,conf);
2271 template <
typename T>
2274 return ReadNumericalCollection<T,SimpleRead<T> >(buf,addr,conf);
2277 template <
typename From,
typename To>
2278 struct ConvertRead {
2281 From *temp =
new From[nvalues];
2283 To *vec = (To*)addr;
2284 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2285 vec[ind] = (To)temp[ind];
2291 template <
typename From,
typename To>
2292 struct ConvertRead<NoFactorMarker<From>,To> {
2295 From *temp =
new From[nvalues];
2297 To *vec = (To*)addr;
2298 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2299 vec[ind] = (To)temp[ind];
2305 template <
typename From,
typename To>
2306 struct ConvertRead<WithFactorMarker<From>,To> {
2309 From *temp =
new From[nvalues];
2312 To *vec = (To*)addr;
2313 for(
Int_t ind = 0; ind < nvalues; ++ind) {
2314 vec[ind] = (To)temp[ind];
2320 template <
typename From,
typename To>
2321 struct ConvertCollectionBasicType {
2324 return ReadNumericalCollection<To,ConvertRead<From,To>::Action >(buf,addr,conf);
2330 struct GenericLooper {
2332 template <
typename T>
2335 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2337 Next_t next = loopconfig->fNext;
2341 void *iter = loopconfig->fCopyIterator(iterator,start);
2343 while( (addr = next(iter,end)) ) {
2344 T *
x = (
T*)( ((
char*)addr) + offset );
2347 if (iter != &iterator[0]) {
2348 loopconfig->fDeleteIterator(iter);
2353 template <
typename T>
2356 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2358 Next_t next = loopconfig->fNext;
2362 void *iter = loopconfig->fCopyIterator(iterator,start);
2364 while( (addr = next(iter,end)) ) {
2365 T *
x = (
T*)( ((
char*)addr) + offset );
2368 if (iter != &iterator[0]) {
2369 loopconfig->fDeleteIterator(iter);
2374 template <Int_t (*iter_action)(TBuffer&,
void *,const TConfiguration*)>
2377 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2380 Next_t next = loopconfig->fNext;
2383 void *iter = loopconfig->fCopyIterator(&iterator,start);
2385 while( (addr = next(iter,end)) ) {
2386 iter_action(buf, addr, config);
2388 if (iter != &iterator[0]) {
2389 loopconfig->fDeleteIterator(iter);
2394 template <
typename From,
typename To>
2398 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2401 Next_t next = loopconfig->fNext;
2404 void *iter = loopconfig->fCopyIterator(&iterator,start);
2406 while( (addr = next(iter,end)) ) {
2407 To *
x = (To*)( ((
char*)addr) + offset );
2411 if (iter != &iterator[0]) {
2412 loopconfig->fDeleteIterator(iter);
2417 template <
typename From,
typename To>
2424 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2425 Next_t next = loopconfig->fNext;
2429 while( (addr = next(iter,end)) ) {
2430 To *
x = (To*)(addr);
2437 template <
typename From,
typename To,
template <
typename F,
typename T>
class Converter = Generic >
2438 struct ConvertBasicType {
2443 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2447 From *items =
new From[nvalues];
2449 Converter<From,To>::ConvertAction(items,start,end,loopconfig,config);
2455 template <
typename To>
2456 struct ConvertBasicType<BitsMarker, To, Generic> {
2461 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2466 UInt_t *items = items_storage;
2469 Next_t next = loopconfig->fNext;
2472 void *iter = loopconfig->fCopyIterator(&iterator,start);
2474 while( (addr = next(iter,end)) ) {
2479 To *
x = (To*)( ((
char*)addr) + offset );
2483 if (iter != &iterator[0]) {
2484 loopconfig->fDeleteIterator(iter);
2487 delete [] items_storage;
2492 template <
typename From,
typename To,
template <
typename F,
typename T>
class Converter >
2493 struct ConvertBasicType<WithFactorMarker<From>,To,Converter > {
2498 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2502 TConfSTLWithFactor *conf = (TConfSTLWithFactor *)config;
2504 From *items =
new From[nvalues];
2506 Converter<From,To>::ConvertAction(items,start,end,loopconfig,config);
2512 template <
typename From,
typename To,
template <
typename F,
typename T>
class Converter >
2513 struct ConvertBasicType<NoFactorMarker<From>,To,Converter > {
2518 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2522 TConfSTLNoFactor *conf = (TConfSTLNoFactor *)config;
2524 From *items =
new From[nvalues];
2526 Converter<From,To>::ConvertAction(items,start,end,loopconfig,config);
2537 return GenericRead(buf,start,end,loopconfig, config);
2542 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2549 TGenericLoopConfig *loopconfig = (TGenericLoopConfig*)loopconf;
2554 template <
typename T>
2573 template <
typename ActionHolder>
2578 TConfigSTL *config = (TConfigSTL*)conf;
2580 buf.
ReadVersion(&start, &count, config->fOldClass);
2582 TClass *newClass = config->fNewClass;
2588 void* alternative = newProxy->
Allocate(nvalues,
true);
2592 void *begin = &(startbuf[0]);
2593 void *end = &(endbuf[0]);
2594 config->fCreateIterators(alternative, &begin, &end, newProxy);
2598 TGenericLoopConfig loopconf(newProxy,
kTRUE);
2599 ActionHolder::Action(buf,begin,end,&loopconf,config);
2601 if (begin != &(startbuf[0])) {
2603 config->fDeleteTwoIterators(begin,end);
2606 newProxy->
Commit(alternative);
2614 return ReadNumericalCollection<ConvertBasicType<bool,bool,Numeric > >(buf,addr,conf);
2619 return ReadNumericalCollection<ConvertBasicType<NoFactorMarker<float>,float,Numeric > >(buf,addr,conf);
2624 return ReadNumericalCollection<ConvertBasicType<float,double,Numeric > >(buf,addr,conf);
2629 template <
typename T>
2632 return ReadNumericalCollection<ConvertBasicType<T,T,Numeric > >(buf,addr,conf);
2635 template <
typename From,
typename To>
2636 struct ConvertCollectionBasicType {
2640 return ReadNumericalCollection<ConvertBasicType<From,To,Numeric > >(buf,addr,conf);
2647template <
typename Looper,
typename From>
2675template <
class Looper>
2695 case TStreamerInfo::kBits:
Error(
"GetNumericCollectionReadAction",
"There is no support for kBits outside of a TObject.");
break;
2697 TConfigSTL *alternate =
new TConfSTLNoFactor(conf,12);
2710 TConfigSTL *alternate =
new TConfSTLNoFactor(conf,0);
2726 Fatal(
"GetNumericCollectionReadAction",
"Is confused about %d",
type);
2731template <
typename Looper,
typename From>
2758template <
typename Looper>
2763 return GetConvertCollectionReadActionFrom<Looper,Bool_t>(newtype, conf );
2766 return GetConvertCollectionReadActionFrom<Looper,Char_t>(newtype, conf );
2769 return GetConvertCollectionReadActionFrom<Looper,Short_t>(newtype, conf );
2772 return GetConvertCollectionReadActionFrom<Looper,Int_t>(newtype, conf );
2775 return GetConvertCollectionReadActionFrom<Looper,Long_t>(newtype, conf );
2778 return GetConvertCollectionReadActionFrom<Looper,Long64_t>(newtype, conf );
2781 return GetConvertCollectionReadActionFrom<Looper,Float_t>( newtype, conf );
2784 return GetConvertCollectionReadActionFrom<Looper,Double_t>(newtype, conf );
2787 return GetConvertCollectionReadActionFrom<Looper,UChar_t>(newtype, conf );
2790 return GetConvertCollectionReadActionFrom<Looper,UShort_t>(newtype, conf );
2793 return GetConvertCollectionReadActionFrom<Looper,UInt_t>(newtype, conf );
2796 return GetConvertCollectionReadActionFrom<Looper,ULong_t>(newtype, conf );
2799 return GetConvertCollectionReadActionFrom<Looper,ULong64_t>(newtype, conf );
2802 return GetConvertCollectionReadActionFrom<Looper,NoFactorMarker<Float16_t> >( newtype, conf );
2805 return GetConvertCollectionReadActionFrom<Looper,NoFactorMarker<Double32_t> >( newtype, conf );
2808 Error(
"GetConvertCollectionReadAction",
"There is no support for kBits outside of a TObject.");
2817template <
class Looper>
2838 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_WithFactor<float> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2841 if (!nbits) nbits = 12;
2842 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_NoFactor<float> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2848 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_WithFactor<double> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2854 return TConfiguredAction( Looper::template ReadAction<ReadBasicType_NoFactor<double> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2872 return GetCollectionReadConvertAction<Looper,Bool_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2875 return GetCollectionReadConvertAction<Looper,Char_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2878 return GetCollectionReadConvertAction<Looper,Short_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2881 return GetCollectionReadConvertAction<Looper,Int_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2884 return GetCollectionReadConvertAction<Looper,Long_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2887 return GetCollectionReadConvertAction<Looper,Long64_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2890 return GetCollectionReadConvertAction<Looper,Float_t>( element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2893 return GetCollectionReadConvertAction<Looper,Double_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2896 return GetCollectionReadConvertAction<Looper,UChar_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2899 return GetCollectionReadConvertAction<Looper,UShort_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2902 return GetCollectionReadConvertAction<Looper,UInt_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2905 return GetCollectionReadConvertAction<Looper,ULong_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2908 return GetCollectionReadConvertAction<Looper,ULong64_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2911 return GetCollectionReadConvertAction<Looper,BitsMarker>(element->
GetNewType(),
new TBitsConfiguration(info,i,compinfo,offset) );
2915 return GetCollectionReadConvertAction<Looper,WithFactorMarker<float> >(element->
GetNewType(),
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2918 if (!nbits) nbits = 12;
2919 return GetCollectionReadConvertAction<Looper,NoFactorMarker<float> >(element->
GetNewType(),
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2925 return GetCollectionReadConvertAction<Looper,WithFactorMarker<double> >(element->
GetNewType(),
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
2929 return GetCollectionReadConvertAction<Looper,Float_t>(element->
GetNewType(),
new TConfiguration(info,i,compinfo,offset) );
2931 return GetCollectionReadConvertAction<Looper,NoFactorMarker<double> >(element->
GetNewType(),
new TConfNoFactor(info,i,compinfo,offset,nbits) );
2937 return TConfiguredAction( Looper::GenericRead,
new TGenericConfiguration(info,i,compinfo) );
2944template <
class Looper>
3051 fNslots = ndata + ndata/2 + 1;
3070 for (i = 0; i < ndata; ++i) {
3115 if (!previousOptimized) {
3126 if (
fComp[keep].fLength == 0) {
3131 isOptimized =
kTRUE;
3132 previousOptimized =
kTRUE;
3133 }
else if (element->
GetType() < 0) {
3146 previousOptimized =
kFALSE;
3164 Warning(
"Compile",
"Counter %s should not be skipped from class %s", element->
GetName(),
GetName());
3175 if (
fComp[keep].fLength == 0) {
3179 previousOptimized =
kFALSE;
3189 for (i = 0; i <
fNdata; ++i) {
3218template <
typename From>
3250 switch (compinfo->
fType) {
3268 readSequence->
AddAction( ReadBasicType_WithFactor<float>,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
3271 if (!nbits) nbits = 12;
3272 readSequence->
AddAction( ReadBasicType_NoFactor<float>,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
3278 readSequence->
AddAction( ReadBasicType_WithFactor<double>,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
3284 readSequence->
AddAction( ReadBasicType_NoFactor<double>,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
3301 if (newClass && newClass != oldClass) {
3303 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3305 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase));
3309 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3311 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetTypeName(),isSTLbase));
3315 if (newClass && newClass != oldClass) {
3317 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3320 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseChangedClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase));
3324 readSequence->
AddAction(GetConvertCollectionReadAction<VectorLooper>(oldClass->
GetCollectionProxy()->
GetType(), newClass->
GetCollectionProxy()->
GetType(),
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase)));
3327 readSequence->
AddAction(GetConvertCollectionReadAction<AssociativeLooper>(oldClass->
GetCollectionProxy()->
GetType(), newClass->
GetCollectionProxy()->
GetType(),
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase)));
3333 readSequence->
AddAction(GetConvertCollectionReadAction<GenericLooper>(oldClass->
GetCollectionProxy()->
GetType(), newClass->
GetCollectionProxy()->
GetType(),
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,newClass,element->
GetTypeName(),isSTLbase)));
3340 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3343 readSequence->
AddAction(ReadSTL<ReadSTLMemberWiseSameClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,1,oldClass,element->
GetTypeName(),isSTLbase));
3365 if (newClass && newClass != oldClass) {
3367 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3369 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetTypeName(),isSTLbase));
3373 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseStreamerV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3375 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseFastArrayV2>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetTypeName(),isSTLbase));
3379 if (newClass && newClass != oldClass) {
3381 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3383 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseChangedClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,newClass,element->
GetTypeName(),isSTLbase));
3387 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseStreamer>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetStreamer(),element->
GetTypeName(),isSTLbase));
3389 readSequence->
AddAction(ReadSTL<ReadArraySTLMemberWiseSameClass,ReadSTLObjectWiseFastArray>,
new TConfigSTL(
this,i,compinfo,compinfo->
fOffset,element->
GetArrayLength(),oldClass,element->
GetTypeName(),isSTLbase));
3437 AddReadConvertAction<BitsMarker>(readSequence, compinfo->
fNewType,
new TBitsConfiguration(
this,i,compinfo,compinfo->
fOffset) );
3441 AddReadConvertAction<WithFactorMarker<float> >(readSequence, compinfo->
fNewType,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
3444 if (!nbits) nbits = 12;
3445 AddReadConvertAction<NoFactorMarker<float> >(readSequence, compinfo->
fNewType,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
3451 AddReadConvertAction<WithFactorMarker<double> >(readSequence, compinfo->
fNewType,
new TConfWithFactor(
this,i,compinfo,compinfo->
fOffset,element->
GetFactor(),element->
GetXmin()) );
3457 AddReadConvertAction<NoFactorMarker<double> >(readSequence, compinfo->
fNewType,
new TConfNoFactor(
this,i,compinfo,compinfo->
fOffset,nbits) );
3485 switch (compinfo->
fType) {
3526 default:
generic =
kTRUE;
break;
3553 readSequence->
AddAction( GetCollectionReadAction<VectorPtrLooper>(
this,element,compinfo->
fType,i,compinfo,compinfo->
fOffset) );
3570 switch (compinfo->
fType) {
3654#if defined(CDJ_NO_COMPILE)
3657 writeSequence->
fActions.pop_back();
3679 switch (compinfo->
fType) {
3834 default:
generic =
kTRUE;
break;
3850#if defined(CDJ_NO_COMPILE)
3853 writeSequence->
fActions.pop_back();
3875#if defined(CDJ_NO_COMPILE)
3880 writeSequence->Addaction( GetCollectionWriteAction<VectorPtrLooper>(
this,element,compinfo->
fType,i,compinfo,compinfo->
fOffset) );
3883 writeSequence->
AddAction( VectorPtrLooper::GenericWrite,
new TGenericConfiguration(
this,i,compinfo) );
3926 for (
UInt_t i = 0; i < ndata; ++i) {
3950 ::Warning(
"CreateReadMemberWiseActions",
"%s",
3966 if (newType != oldType) {
3984 TConfiguredAction action( GetCollectionReadAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
3987 sequence->
AddAction( GetCollectionReadAction<VectorLooper>(info,element,oldType,i,compinfo,offset));
3994 TConfiguredAction action( GetCollectionReadAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
3997 sequence->
AddAction( GetCollectionReadAction<GenericLooper>(info,element,oldType,i,compinfo,offset) );
4041 for (
UInt_t i = 0; i < ndata; ++i) {
4069#if defined(CDJ_NO_COMPILE)
4072 if (newType != oldType) {
4088 TConfiguredAction action( GetCollectionWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
4091 sequence->
AddAction(GetCollectionWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset));
4100 TConfiguredAction action( GetWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
4121 sequence->
AddAction( GenericLooper<WriteBasicType_WithFactor<float> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
4124 if (!nbits) nbits = 12;
4125 sequence->
AddAction( GenericLooper<WriteBasicType_NoFactor<float> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
4131 sequence->
AddAction( GenericLooper<WriteBasicType_WithFactor<double> >,
new TConfWithFactor(info,i,compinfo,offset,element->
GetFactor(),element->
GetXmin()) );
4135 sequence->
AddAction( GenericLooper<ConvertBasicType<float,double> >,
new TConfiguration(info,i,compinfo,offset) );
4137 sequence->
AddAction( GenericLooper<WriteBasicType_NoFactor<double> >,
new TConfNoFactor(info,i,compinfo,offset,nbits) );
4158 sequence->
AddAction( GetCollectionWriteAction<VectorLooper>(info,element,oldType,i,compinfo,offset) );
4176 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4177 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4181 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4182 iter->fConfiguration->AddToOffset(delta);
4191 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4192 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4196 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4197 iter->fConfiguration->SetMissing();
4209 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4210 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4215 sequence->
AddAction( iter->fAction, conf );
4225 for(
UInt_t id = 0;
id < element_ids.size(); ++
id) {
4226 if ( element_ids[
id].fElemID < 0 ) {
4227 if (element_ids[
id].fNestedIDs) {
4228 auto original = create(element_ids[
id].fNestedIDs->fInfo,
4231 if (element_ids[
id].fNestedIDs->fOnfileObject) {
4232 auto conf =
new TConfigurationPushDataCache(element_ids[
id].fNestedIDs->fInfo, element_ids[
id].fNestedIDs->fOnfileObject, offset);
4239 original->AddToSubSequence(sequence, element_ids[
id].fNestedIDs->fIDs, element_ids[
id].fNestedIDs->fOffset, create);
4241 if (element_ids[
id].fNestedIDs->fOnfileObject)
4243 new TConfigurationPushDataCache(element_ids[
id].fNestedIDs->fInfo,
nullptr, element_ids[
id].fNestedIDs->fOffset) );
4245 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4246 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4251 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4253 sequence->
AddAction( iter->fAction, conf );
4258 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4259 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4271 if ( iter->fConfiguration->fElemId == (
UInt_t)element_ids[
id].fElemID ) {
4273 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4275 sequence->
AddAction( iter->fAction, conf );
4292 AddToSubSequence(sequence, element_ids, offset, create);
4306 for(
UInt_t id = 0;
id < element_ids.size(); ++
id) {
4307 if ( element_ids[
id] < 0 ) {
4308 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4309 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4314 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4316 sequence->
AddAction( iter->fAction, conf );
4319 TStreamerInfoActions::ActionContainer_t::iterator end = fActions.end();
4320 for(TStreamerInfoActions::ActionContainer_t::iterator iter = fActions.begin();
4323 if ( iter->fConfiguration->fElemId == (
UInt_t)element_ids[
id] ) {
4325 if (!iter->fConfiguration->fInfo->GetElements()->At(iter->fConfiguration->fElemId)->TestBit(
TStreamerElement::kCache))
4327 sequence->
AddAction( iter->fAction, conf );
4335#if !defined(R__WIN32) && !defined(_AIX)
4344#if defined(R__WIN32) || defined(__CYGWIN__) || defined(_AIX)
4345 return "not available on this platform";
4347 MEMORY_BASIC_INFORMATION mbi;
4348 if (!VirtualQuery (func, &mbi,
sizeof (mbi)))
4353 HMODULE hMod = (HMODULE) mbi.AllocationBase;
4354 static char moduleName[MAX_PATH];
4356 if (!GetModuleFileNameA (hMod, moduleName,
sizeof (moduleName)))
4364 if (dladdr((
void*)func,&info)==0) {
4366 return "name not found";
4369 return info.dli_sname;
4381 fLoopConfig->Print();
4383 TStreamerInfoActions::ActionContainer_t::const_iterator end = fActions.end();
4384 for(TStreamerInfoActions::ActionContainer_t::const_iterator iter = fActions.begin();
4388 iter->fConfiguration->Print();
4389 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.
TVirtualStreamerInfo * GetStreamerInfo(Int_t version=0) const
returns a pointer to the TVirtualStreamerInfo object for version If the object does not exist,...
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.
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.
virtual void AddAtAndExpand(TObject *obj, Int_t idx)
Add object at position idx.
Int_t GetEntries() const
Return the number of objects in array (i.e.
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',...
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)
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 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