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) );