![]() |
ATLAS Offline Software
|
Provide functions for iterator comparisons. More...
#include <type_traits>#include <iterator>Go to the source code of this file.
Classes | |
| class | RootUtils::PyROOTIteratorFuncs< T > |
| Provide functions for iterator comparisons. More... | |
Namespaces | |
| namespace | RootUtils |
Provide functions for iterator comparisons.
If an iterator type does not define comparison operators as members, but instead as free functions, then it can be difficult to generate dictionaries for these in a way that pyroot will see them.
This header defines a class RootUtils::PyROOTIteratorFuncs<T>, which contains comparison functions for an iterator type T. Further, when you load the PyROOTFixes module, we set things up so that when an iterator class is made in pyroot, any comparison functions defined in a PyROOTIteratorFuncs class will be automatically added to the python class.
So to get the proper comparison operators for iterators in python, you should generate a dictionary for PyROOTIteratorFuncs<T> (and make sure PyROOTFixes is loaded).
Definition in file PyROOTIteratorFuncs.h.