44 ~TClonesReader()
override {}
48 Error(
"TClonesReader::GetCA()",
"Read error in TBranchProxy.");
73 ~TSTLReader()
override {}
77 Error(
"TSTLReader::GetCP()",
"Read error in TBranchProxy.");
81 Error(
"TSTLReader::GetCP()",
"Logic error, proxy object not set in TBranchProxy.");
90 if (!myCollectionProxy)
return 0;
91 return myCollectionProxy->
Size();
96 if (!myCollectionProxy)
return nullptr;
98 return *(
void**)myCollectionProxy->
At(idx);
101 return myCollectionProxy->
At(idx);
113 if (!proxy->
Read()) {
115 Error(
"TCollectionLessSTLReader::GetCP()",
"Read error in TBranchProxy.");
119 Error(
"TCollectionLessSTLReader::GetCP()",
"Logic error, proxy object not set in TBranchProxy.");
123 return fLocalCollection;
128 if (!myCollectionProxy)
return 0;
133 return myCollectionProxy->
Size();
138 if (!myCollectionProxy)
return nullptr;
145 return *(
void**)myCollectionProxy->
At(idx);
147 return myCollectionProxy->
At(idx);
157 Int_t fBasicTypeSize;
159 TObjectArrayReader() : fBasicTypeSize(-1) { }
160 ~TObjectArrayReader()
override {}
164 Error(
"TObjectArrayReader::GetCP()",
"Read error in TBranchProxy.");
172 if (!myCollectionProxy)
return 0;
173 return myCollectionProxy->
Size();
176 if (!proxy->
Read())
return nullptr;
179 void *array = (
void*)proxy->
GetStart();
181 if (fBasicTypeSize == -1){
184 Error(
"TObjectArrayReader::At()",
"Cannot get class info from branch proxy.");
190 objectSize = fBasicTypeSize;
192 return (
void*)((
Byte_t*)array + (objectSize * idx));
196 fBasicTypeSize =
size;
200 template <
class BASE>
201 class TDynamicArrayReader :
public BASE {
204 class TVirtualSizeReaderImpl {
206 virtual ~TVirtualSizeReaderImpl() =
default;
207 virtual size_t GetSize() = 0;
210 template <
typename T>
211 class TSizeReaderImpl final :
public TVirtualSizeReaderImpl {
215 TSizeReaderImpl(
TTreeReader &
r,
const char *leafName) : fSizeReader(
r, leafName) {}
216 size_t GetSize() final {
return *fSizeReader; }
219 std::unique_ptr<TVirtualSizeReaderImpl> fSizeReader;
222 template <
class...
ARGS>
223 TDynamicArrayReader(
TTreeReader *treeReader,
const char *leafName,
ARGS &&...args)
226 std::string foundLeafName = leafName;
232 std::string leafNameNoParent = leafName;
234 auto posLastDot = leafNameNoParent.rfind(
'.');
235 if (posLastDot != leafNameNoParent.npos) {
236 parent = leafNameNoParent.substr(0, posLastDot);
237 leafNameNoParent.erase(0, posLastDot + 1);
241 if (!sizeLeaf && !parent.empty()) {
242 auto posLastDotParent = parent.rfind(
'.');
243 if (posLastDotParent != parent.npos)
244 parent = parent.substr(0, posLastDot);
249 foundLeafName = parent;
251 foundLeafName +=
".";
252 foundLeafName += leafNameNoParent;
254 }
while (!sizeLeaf && !parent.empty());
258 Error(
"TDynamicArrayReader ",
"Cannot find leaf count for %s or any parent branch!", leafName);
262 const std::string leafType = sizeLeaf->
GetTypeName();
263 if (leafType ==
"Int_t") {
264 fSizeReader.reset(
new TSizeReaderImpl<Int_t>(*treeReader, foundLeafName.c_str()));
265 }
else if (leafType ==
"UInt_t") {
266 fSizeReader.reset(
new TSizeReaderImpl<UInt_t>(*treeReader, foundLeafName.c_str()));
267 }
else if (leafType ==
"Short_t") {
268 fSizeReader.reset(
new TSizeReaderImpl<Short_t>(*treeReader, foundLeafName.c_str()));
269 }
else if (leafType ==
"UShort_t") {
270 fSizeReader.reset(
new TSizeReaderImpl<UShort_t>(*treeReader, foundLeafName.c_str()));
271 }
else if (leafType ==
"Long_t") {
272 fSizeReader.reset(
new TSizeReaderImpl<Long_t>(*treeReader, foundLeafName.c_str()));
273 }
else if (leafType ==
"ULong_t") {
274 fSizeReader.reset(
new TSizeReaderImpl<ULong_t>(*treeReader, foundLeafName.c_str()));
275 }
else if (leafType ==
"Long64_t") {
276 fSizeReader.reset(
new TSizeReaderImpl<Long64_t>(*treeReader, foundLeafName.c_str()));
277 }
else if (leafType ==
"ULong64_t") {
278 fSizeReader.reset(
new TSizeReaderImpl<ULong64_t>(*treeReader, foundLeafName.c_str()));
280 Error(
"TDynamicArrayReader ",
281 "Unsupported size type for leaf %s. Supported types are int, short int, long int, long long int and "
282 "their unsigned counterparts.",
290 class TArrayParameterSizeReader :
public TDynamicArrayReader<TObjectArrayReader> {
292 TArrayParameterSizeReader(
TTreeReader *treeReader,
const char *branchName)
293 : TDynamicArrayReader<TObjectArrayReader>(treeReader, branchName)
299 class TArrayFixedSizeReader :
public TObjectArrayReader {
304 TArrayFixedSizeReader(
Int_t sizeArg) :
fSize(sizeArg) {}
311 ~TBasicTypeArrayReader()
override {}
316 Error(
"TBasicTypeArrayReader::GetCP()",
"Read error in TBranchProxy.");
325 if (!myCollectionProxy)
return 0;
326 return myCollectionProxy->
Size();
331 if (!myCollectionProxy)
return nullptr;
336 class TBasicTypeClonesReader final:
public TClonesReader {
340 TBasicTypeClonesReader(
Int_t offsetArg) : fOffset(offsetArg) {}
344 if (!myClonesArray)
return nullptr;
345 return (
Byte_t*)myClonesArray->
At(idx) + fOffset;
354 TLeafReader(
TTreeReaderValueBase *valueReaderArg) : fValueReader(valueReaderArg), fElementSize(-1) {}
358 return myLeaf ? myLeaf->
GetLen() : 0;
364 if (fElementSize == -1){
366 if (!myLeaf)
return nullptr;
369 return (
Byte_t*)address + (fElementSize * idx);
378 class TLeafParameterSizeReader :
public TDynamicArrayReader<TLeafReader> {
381 : TDynamicArrayReader<TLeafReader>(treeReader, leafName, valueReaderArg)
387 return TDynamicArrayReader<TLeafReader>::GetSize(proxy);
405 fSetupStatus = kSetupInternalError;
407 Error(
"TTreeReaderArrayBase::CreateProxy()",
"TTreeReader object not set / available for branch %s!",
409 fSetupStatus = kSetupTreeDestructed;
414 const char* brDataType =
"{UNDETERMINED}";
417 brDataType = GetBranchDataType(br, dictUnused, fDict);
419 Error(
"TTreeReaderArrayBase::CreateProxy()",
"The template argument type T of %s accessing branch %s (which contains data of type %s) is not known to ROOT. You will need to create a dictionary for it.",
420 GetDerivedTypeName(), fBranchName.Data(), brDataType);
421 fSetupStatus = kSetupMissingDictionary;
432 TLeaf *myLeaf =
nullptr;
433 if (!GetBranchAndLeaf(branch, myLeaf, branchActualType))
437 Error(
"TTreeReaderArrayBase::CreateProxy()",
438 "No dictionary for branch %s.", fBranchName.Data());
445 fSetupStatus = kSetupMatch;
447 SetImpl(branch, myLeaf);
456 fSetupStatus = kSetupMatch;
458 Error(
"TTreeReaderArrayBase::CreateProxy()",
459 "Type ambiguity (want %s, have %s) for branch %s.",
466 bool isTopLevel = branch->
GetMother() == branch;
468 membername = strrchr(branch->
GetName(),
'.');
469 if (membername.
IsNull()) {
470 membername = branch->
GetName();
473 auto director = fTreeReader->fDirector;
486 Error(
"TTreeReaderArrayBase::CreateProxy()",
"The branch %s is contained in a Friend TTree that is not directly attached to the main.\n"
487 "This is not yet supported by TTreeReader.",
492 if ((
size_t)index < fTreeReader->fFriendProxies.size()) {
493 feproxy = fTreeReader->fFriendProxies.at(
index);
497 fTreeReader->fFriendProxies.resize(
index+1);
498 fTreeReader->fFriendProxies.at(
index) = feproxy;
503 fTreeReader->AddProxy(namedProxy);
506 fSetupStatus = kSetupMatch;
508 fSetupStatus = kSetupMismatch;
513 const char* nonCollTypeName = GetBranchContentDataType(branch, branchActualTypeName, branchActualType);
514 if (nonCollTypeName) {
515 Error(
"TTreeReaderArrayBase::CreateContentProxy()",
"The branch %s contains data of type %s, which should be accessed through a TTreeReaderValue< %s >.",
516 fBranchName.Data(), nonCollTypeName, nonCollTypeName);
517 if (fSetupStatus == kSetupInternalError)
518 fSetupStatus = kSetupNotACollection;
522 if (!branchActualType) {
523 if (branchActualTypeName.
IsNull()) {
524 Error(
"TTreeReaderArrayBase::CreateContentProxy()",
"Cannot determine the type contained in the collection of branch %s. That's weird - please report!",
527 Error(
"TTreeReaderArrayBase::CreateContentProxy()",
"The branch %s contains data of type %s, which does not have a dictionary.",
528 fBranchName.Data(), branchActualTypeName.
Data());
529 if (fSetupStatus == kSetupInternalError)
530 fSetupStatus = kSetupMissingDictionary;
541 auto left_datatype =
dynamic_cast<TDataType *
>(left);
542 auto right_datatype =
dynamic_cast<TDataType *
>(right);
543 auto left_enum =
dynamic_cast<TEnum*
>(left);
544 auto right_enum =
dynamic_cast<TEnum*
>(right);
546 if ((left_datatype && left_datatype->GetType() ==
kInt_t && right_enum)
547 || (right_datatype && right_datatype->GetType() ==
kInt_t && left_enum))
549 if (!left_datatype || !right_datatype)
551 auto l = left_datatype->GetType();
552 auto r = right_datatype->GetType();
553 if (
l > 0 &&
l ==
r)
562 if (! matchingDataType(fDict, branchActualType)) {
563 Error(
"TTreeReaderArrayBase::CreateContentProxy()",
"The branch %s contains data of type %s. It cannot be accessed by a TTreeReaderArray<%s>",
564 fBranchName.Data(), branchActualType->
GetName(), fDict->GetName());
565 if (fSetupStatus == kSetupInternalError || fSetupStatus >= 0)
566 fSetupStatus = kSetupMismatch;
578 SetImpl(branch, myLeaf);
591 if (!fBranchName.Contains(
".")) {
592 Error(
"TTreeReaderArrayBase::GetBranchAndLeaf()",
"The tree does not have a branch called %s. You could check with TTree::Print() for available branches.", fBranchName.Data());
593 fSetupStatus = kSetupMissingBranch;
598 TRegexp leafNameExpression (
"\\.[a-zA-Z0-9_]+$");
599 TString leafName (fBranchName(leafNameExpression));
600 TString branchName = fBranchName(0, fBranchName.Length() - leafName.
Length());
603 Error(
"TTreeReaderArrayBase::GetBranchAndLeaf()",
"The tree does not have a branch called %s. You could check with TTree::Print() for available branches.", fBranchName.Data());
604 fSetupStatus = kSetupMissingBranch;
611 Error(
"TTreeReaderArrayBase::GetBranchAndLeaf()",
"The tree does not have a branch, nor a sub-branch called %s. You could check with TTree::Print() for available branches.", fBranchName.Data());
612 fSetupStatus = kSetupMissingBranch;
619 Error(
"TTreeReaderArrayBase::GetBranchAndLeaf()",
"Failed to get the dictionary for %s.", myLeaf->
GetTypeName());
620 fSetupStatus = kSetupMissingDictionary;
627 branchActualType = fDict;
629 fBranchName = branchName;
630 fLeafName = leafName(1, leafName.
Length());
631 fHaveLeaf = (fLeafName.Length() > 0);
632 fSetupStatus = kSetupMatchLeaf;
635 Error(
"TTreeReaderArrayBase::GetBranchAndLeaf()",
"Leaf of type %s cannot be read by TTreeReaderValue<%s>.", myLeaf->
GetTypeName(), fDict->GetName());
637 fSetupStatus = kSetupMismatch;
663 fImpl = std::make_unique<TLeafReader>(
this);
669 fImpl = std::make_unique<TLeafParameterSizeReader>(fTreeReader, leafFullName.
Data(),
this);
671 fSetupStatus = kSetupMatchLeaf;
685 if (fSetupStatus == kSetupInternalError)
686 fSetupStatus = kSetupMatch;
688 if (branchElement->
GetType() == 31) {
689 Error(
"TTreeReaderArrayBase::SetImpl",
690 "STL Collection nested in a TClonesArray not yet supported");
691 fSetupStatus = kSetupInternalError;
694 fImpl = std::make_unique<TSTLReader>();
700 fImpl = std::make_unique<TClonesReader>();
703 fImpl = std::make_unique<TBasicTypeArrayReader>();
707 fImpl = std::make_unique<TBasicTypeClonesReader>(element->
GetOffset());
710 fImpl = std::make_unique<TArrayFixedSizeReader>(element->
GetArrayLength());
714 fImpl = std::make_unique<TArrayParameterSizeReader>(fTreeReader, branchElement->
GetBranchCount()->
GetName());
718 fImpl = std::make_unique<TBasicTypeArrayReader>();
721 fImpl = std::make_unique<TBasicTypeClonesReader>(element->
GetOffset());
724 fImpl = std::make_unique<TArrayFixedSizeReader>(element->
GetArrayLength());
725 ((TObjectArrayReader*)fImpl.get())->SetBasicTypeSize(
sizeof(
Int_t));
727 fImpl = std::make_unique<TArrayFixedSizeReader>(element->
GetArrayLength());
728 ((TObjectArrayReader*)fImpl.get())->SetBasicTypeSize(((
TDataType*)fDict)->Size());
732 fImpl = std::make_unique<TArrayParameterSizeReader>(fTreeReader, branchElement->
GetBranchCount()->
GetName());
733 ((TArrayParameterSizeReader*)fImpl.get())->SetBasicTypeSize(((
TDataType*)fDict)->Size());
736 fImpl = std::make_unique<TClonesReader>();
738 Error(
"TTreeReaderArrayBase::SetImpl()",
739 "Cannot read branch %s: unhandled streamer element type %s",
740 fBranchName.Data(), element->
IsA()->
GetName());
741 fSetupStatus = kSetupInternalError;
752 Error(
"TTreeReaderArrayBase::SetImpl",
"Failed to get the top leaf from the branch");
753 fSetupStatus = kSetupMissingBranch;
758 if (fSetupStatus == kSetupInternalError)
759 fSetupStatus = kSetupMatch;
761 fImpl = std::make_unique<TArrayFixedSizeReader>(topLeaf->GetLenStatic());
764 fImpl = std::make_unique<TArrayParameterSizeReader>(fTreeReader, sizeLeaf->
GetName());
766 ((TObjectArrayReader*)fImpl.get())->SetBasicTypeSize(((
TDataType*)fDict)->Size());
768 Error(
"TTreeReaderArrayBase::SetImpl",
"Support for branches of type TBranchClones not implemented");
769 fSetupStatus = kSetupInternalError;
771 Error(
"TTreeReaderArrayBase::SetImpl",
"Support for branches of type TBranchObject not implemented");
772 fSetupStatus = kSetupInternalError;
774 Error(
"TTreeReaderArrayBase::SetImpl",
"Support for branches of type TBranchSTL not implemented");
775 fImpl = std::make_unique<TSTLReader>();
776 fSetupStatus = kSetupInternalError;
778 Error(
"TTreeReaderArrayBase::SetImpl",
"Support for branches of type TBranchRef not implemented");
779 fSetupStatus = kSetupInternalError;
798 contentTypeName =
"";
802 || brElement->
GetType() == 3) {
807 Error(
"TTreeReaderArrayBase::GetBranchContentDataType()",
"Could not get value class.");
816 if (brElement->
GetType() == 3) {
825 Error(
"TTreeReaderArrayBase::GetBranchContentDataType()",
"Cannot determine STL collection type of %s stored in branch %s", brElement->
GetClassName(), branch->
GetName());
830 if (isMap) contentTypeName =
"std::pair< ";
831 contentTypeName += splitType.
fElements[1];
833 contentTypeName += splitType.
fElements[2];
834 contentTypeName +=
" >";
839 }
else if (brElement->
GetType() == 31
840 || brElement->
GetType() == 41) {
845 if (ExpectedTypeRet == 0) {
857 Error(
"TTreeReaderArrayBase::GetBranchContentDataType()",
"The branch %s contains a data type %d for which the dictionary cannot be retrieved.",
858 branch->
GetName(), (
int)dtData);
863 }
else if (ExpectedTypeRet == 1) {
864 int brID = brElement->
GetID();
867 Error(
"TTreeReaderArrayBase::GetBranchContentDataType()",
"The branch %s contains data of type %s for which the dictionary does not exist. It's needed.",
882 return "{CANNOT DETERMINE TBranchElement DATA TYPE}";
894 Error(
"TTreeReaderArrayBase::GetBranchDataType()",
"Could not get class from branch element.");
898 if (!myCollectionProxy){
899 Error(
"TTreeReaderArrayBase::GetBranchDataType()",
"Could not get collection proxy from STL class");
907 Error(
"TTreeReaderArrayBase::GetBranchDataType()",
"Could not get valueClass from collectionProxy.");
910 contentTypeName = dict->
GetName();
914 if (!fProxy->Setup() || !fProxy->Read()){
915 Error(
"TTreeReaderArrayBase::GetBranchContentDataType()",
"Failed to get type from proxy, unable to check type");
916 contentTypeName =
"UNKNOWN";
918 return contentTypeName;
922 contentTypeName = dict->
GetName();
936 contentTypeName =
"TClonesArray";
937 Warning(
"TTreeReaderArrayBase::GetBranchContentDataType()",
"Not able to check type correctness, ignoring check");
939 fSetupStatus = kSetupNoCheck;
946 if (dict) contentTypeName = dict->
GetName();
951 contentTypeName = dict->
GetName();
962 if ((!dataTypeName || !dataTypeName[0])
980 Error(
"TTreeReaderArrayBase::GetBranchContentDataType()",
"The branch %s was created using a leaf list and cannot be represented as a C++ type. Please access one of its siblings using a TTreeReaderArray:", branch->
GetName());
982 TLeaf* leaf =
nullptr;
983 while ((leaf = (
TLeaf*) iLeaves())) {
984 Error(
"TTreeReaderArrayBase::GetBranchContentDataType()",
" %s.%s", branch->
GetName(), leaf->
GetName());
990 Warning(
"TTreeReaderArrayBase::GetBranchContentDataType()",
"Not able to check type correctness, ignoring check");
992 fSetupStatus = kSetupNoCheck;
998 return "TClonesArray";
1001 Error(
"TTreeReaderArrayBase::GetBranchContentDataType()",
"The branch %s is a TBranchRef and cannot be represented as a C++ type.", branch->
GetName());
1004 Error(
"TTreeReaderArrayBase::GetBranchContentDataType()",
"The branch %s is of type %s - something that is not handled yet.", branch->
GetName(), branch->
IsA()->
GetName());
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Base class for all the proxy object.
virtual void * GetStart(UInt_t=0)
TVirtualCollectionProxy * GetCollection()
TBranchProxyDirector * GetDirector()
const Detail::TBranchProxy * GetProxy() const
TDictionary * GetContentDict() const
void SetContentDict(TDictionary *dict)
Base class of TTreeReaderArray.
void CreateProxy() override
Create the proxy object for our branch.
bool GetBranchAndLeaf(TBranch *&branch, TLeaf *&myLeaf, TDictionary *&branchActualType)
Determine the branch / leaf and its type; reset fProxy / fSetupStatus on error.
void SetImpl(TBranch *branch, TLeaf *myLeaf)
Create the TVirtualCollectionReader object for our branch.
const char * GetBranchContentDataType(TBranch *branch, TString &contentTypeName, TDictionary *&dict)
Access a branch's collection content (not the collection itself) through a proxy.
Base class of TTreeReaderValue.
void * GetAddress()
Returns the memory address of the object being read.
@ kReadError
Problem reading data.
@ kReadSuccess
Data read okay.
TLeaf * GetLeaf()
If we are reading a leaf, return the corresponding TLeaf.
virtual ~TVirtualCollectionReader()
A Branch for the case of an object.
TBranchElement * GetBranchCount() const
const char * GetClassName() const override
Return the name of the user class whose content is stored in this branch, if any.
TStreamerInfo * GetInfo() const
Get streamer info for the branch class.
TVirtualCollectionProxy * GetCollectionProxy()
Return the collection proxy describing the branch content, if any.
TClass * GetCurrentClass()
Return a pointer to the current type of the data member corresponding to branch element.
virtual const char * GetTypeName() const
Return type name of element in the branch.
virtual const char * GetClonesName() const
virtual TClass * GetClass() const
Int_t GetExpectedType(TClass *&clptr, EDataType &type) override
Fill expectedClass and expectedType with information on the data type of the object/values contained ...
A TTree is a list of TBranches.
virtual TLeaf * GetLeaf(const char *name) const
Return pointer to the 1st Leaf named name in thisBranch.
virtual const char * GetClassName() const
Return the name of the user class whose content is stored in this branch, if any.
Int_t GetSplitLevel() const
TClass * IsA() const override
TObjArray * GetListOfLeaves()
TBranch * GetMother() const
Get our top-level parent branch in the tree.
TClass instances represent classes, structs and namespaces in the ROOT type system.
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
Int_t GetClassSize() const
An array of clone (identical) objects.
TClass * GetClass() const
Basic data type descriptor (datatype information is obtained from CINT).
TString GetTypeName()
Get basic type of typedef, e,g.: "class TDirectory*" -> "TDirectory".
static TDataType * GetDataType(EDataType type)
Given a EDataType type, get the TDataType* that represents it.
This class defines an abstract interface that must be implemented by all classes that contain diction...
TClass * IsA() const override
static TDictionary * GetDictionary(const char *name)
Retrieve the type (class, fundamental type, typedef etc) named "name".
The TEnum class implements the enum type.
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
virtual Int_t GetLenType() const
virtual const char * GetTypeName() const
virtual Int_t GetLen() const
Return the number of effective elements of this leaf, for the current entry.
virtual TLeaf * GetLeafCount() const
If this leaf stores a variable-sized array or a multi-dimensional array whose last dimension has vari...
TBranch * GetBranch() const
const char * GetName() const override
Returns name of object.
Int_t GetEntries() const override
Return the number of objects in array (i.e.
TObject * At(Int_t idx) const override
TObject * UncheckedAt(Int_t i) const
Regular expression class.
Int_t GetArrayLength() const
const char * GetTypeName() const
TClass * GetClass() const
TClass * IsA() const override
Describes a persistent version of a class.
TStreamerElement * GetElement(Int_t id) const override
TObjArray * GetElements() const override
const char * Data() const
An interface for reading values stored in ROOT columnar datasets.
A simple, robust and fast interface to read values from ROOT columnar datasets such as TTree,...
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch with the given name in this tree or its friends.
virtual TTree * GetTree() const
virtual TLeaf * FindLeaf(const char *name)
Find leaf..
Defines a common interface to inspect/change the contents of an object that represents a collection.
virtual void PushProxy(void *objectstart)=0
Set the address of the container being proxied and keep track of the previous one.
virtual EDataType GetType() const =0
If the value type is a fundamental data type, return its type (see enumeration EDataType).
virtual void PopProxy()=0
Reset the address of the container being proxied to the previous container.
virtual TClass * GetValueClass() const =0
If the value type is a user-defined class, return a pointer to the TClass representing the value type...
virtual void * At(UInt_t idx)=0
Return the address of the value at index idx
virtual UInt_t Size() const =0
Return the current number of elements in the container.
virtual Bool_t HasPointers() const =0
Return true if the content is of type 'pointer to'.
void forward(const LAYERDATA &prevLayerData, LAYERDATA &currLayerData)
apply the weights (and functions) in forward direction of the DNN
int IsSTLCont(int testAlloc=0) const
type : type name: vector<list<classA,allocator>,allocator> testAlloc: if true, we test allocator,...
std::vector< std::string > fElements