ATLAS Offline Software
Classes | Namespaces
PyROOTIteratorFuncs.h File Reference

Provide functions for iterator comparisons. More...

#include <type_traits>
#include <iterator>
Include dependency graph for PyROOTIteratorFuncs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RootUtils::PyROOTIteratorFuncs< T >
 Provide functions for iterator comparisons. More...
 

Namespaces

 RootUtils
 

Detailed Description

Provide functions for iterator comparisons.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Aug, 2010 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.