|
MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
|
Template class that creates an iterator to a class member based on an iterator to the class object. More...
#include <IteratorToMember.hh>
Public Types | |
| typedef std::iterator_traits< It >::difference_type | difference_type |
| typedef std::iterator_traits< It >::iterator_category | iterator_category |
| typedef R * | pointer |
| typedef R & | reference |
| typedef std::iterator_traits< It >::value_type | T |
| Type pointed to by original iterator. | |
| typedef R | value_type |
Public Member Functions | |
| IteratorToMember (It from, R T::*memptr) | |
| Construction from an iterator and a pointer to member. | |
| bool | operator!= (const IteratorToMember< It, R > &rhs) const |
| reference | operator* () const |
| IteratorToMember | operator+ (difference_type n) const |
| IteratorToMember & | operator++ () |
| IteratorToMember | operator++ (int) |
| Postfix operator++ (dummy argument) | |
| IteratorToMember & | operator+= (difference_type n) |
| difference_type | operator- (const IteratorToMember< It, R > &rhs) const |
| IteratorToMember | operator- (difference_type n) const |
| IteratorToMember & | operator-- () |
| IteratorToMember | operator-- (int) |
| Postfix operator-- (see note about the postfix operator++) | |
| IteratorToMember & | operator-= (difference_type n) |
| pointer | operator-> () const |
| bool | operator== (const IteratorToMember< It, R > &rhs) const |
| reference | operator[] (difference_type n) const |
Public Attributes | |
| It | m_it |
Protected Attributes | |
| value_type T::* | m_memptr |
Template class that creates an iterator to a class member based on an iterator to the class object.
The IteratorToMember class is based on this code.
| It | type of the original iterator |
| R | type of the class member we want to point to |
Definition at line 29 of file IteratorToMember.hh.
| typedef std::iterator_traits<It>::difference_type marley::IteratorToMember< It, R >::difference_type |
Definition at line 40 of file IteratorToMember.hh.
| typedef std::iterator_traits<It>::iterator_category marley::IteratorToMember< It, R >::iterator_category |
Definition at line 38 of file IteratorToMember.hh.
| typedef R* marley::IteratorToMember< It, R >::pointer |
Definition at line 42 of file IteratorToMember.hh.
| typedef R& marley::IteratorToMember< It, R >::reference |
Definition at line 43 of file IteratorToMember.hh.
| typedef std::iterator_traits<It>::value_type marley::IteratorToMember< It, R >::T |
Type pointed to by original iterator.
Definition at line 36 of file IteratorToMember.hh.
| typedef R marley::IteratorToMember< It, R >::value_type |
Definition at line 41 of file IteratorToMember.hh.
|
inline |
Construction from an iterator and a pointer to member.
| from | Iterator to the object |
| memptr | Pointer to the member of interest |
Definition at line 48 of file IteratorToMember.hh.
Referenced by operator++(), and operator--().
|
inline |
Definition at line 75 of file IteratorToMember.hh.
|
inline |
Definition at line 88 of file IteratorToMember.hh.
|
inline |
Definition at line 125 of file IteratorToMember.hh.
|
inline |
Definition at line 104 of file IteratorToMember.hh.
|
inline |
Postfix operator++ (dummy argument)
Definition at line 139 of file IteratorToMember.hh.
References IteratorToMember().
|
inline |
Definition at line 115 of file IteratorToMember.hh.
|
inline |
Definition at line 69 of file IteratorToMember.hh.
|
inline |
Definition at line 130 of file IteratorToMember.hh.
|
inline |
Definition at line 110 of file IteratorToMember.hh.
|
inline |
Postfix operator-- (see note about the postfix operator++)
Definition at line 149 of file IteratorToMember.hh.
References IteratorToMember().
|
inline |
Definition at line 120 of file IteratorToMember.hh.
|
inline |
Definition at line 93 of file IteratorToMember.hh.
|
inline |
Definition at line 72 of file IteratorToMember.hh.
|
inline |
Definition at line 98 of file IteratorToMember.hh.
| It marley::IteratorToMember< It, R >::m_it |
Definition at line 78 of file IteratorToMember.hh.
|
protected |
Definition at line 81 of file IteratorToMember.hh.