![]() |
![]() |
#include <CombinatoricGenerator.h>
Classes | |
class | IndexInSet |
class | ValueAccessor |
Public Types | |
typedef boost::filter_iterator< IndexInSet, index_iter > | ComboIter |
typedef boost::transform_iterator< ValueAccessor, ComboIter > | ValueIter |
Public Member Functions | |
Combinatoric (const value_iter &begin, const indices_collection &indices, const indices_collection &combo, bool done) | |
const indices_set & | combo () const |
Return the set of selected indices. More... | |
ValueIter | combo_begin () const |
The first element in the selected subset. More... | |
ValueIter | combo_end () const |
One past the last element in the selected subset. More... | |
bool | done () const |
Combinatoric< T > | next () const |
Build the next cominatoric subset after the current one. More... | |
bool | operator== (const Combinatoric< T > &rhs) const |
Comparison to another combination. More... | |
ValueIter | remainder_begin () const |
One past the last element in the non-selected subset. More... | |
ValueIter | remainder_end () const |
The first element in the non-selected subset. More... | |
Private Types | |
typedef indices_collection::const_iterator | index_iter |
typedef size_t | index_type |
typedef std::vector< index_type > | indices_collection |
typedef std::set< index_type > | indices_set |
typedef T::const_iterator | value_iter |
typedef T::value_type | value_type |
Private Attributes | |
value_iter | begin_ |
indices_collection | combo_ |
indices_set | comboSet_ |
bool | done_ |
IndexInSet | inChoice_ |
indices_collection | indices_ |
IndexInSet | notInChoice_ |
ValueAccessor | valueAccessor_ |
Definition at line 50 of file CombinatoricGenerator.h.
typedef boost::filter_iterator<IndexInSet, index_iter> reco::tau::Combinatoric< T >::ComboIter |
Definition at line 110 of file CombinatoricGenerator.h.
|
private |
Definition at line 69 of file CombinatoricGenerator.h.
|
private |
Definition at line 67 of file CombinatoricGenerator.h.
|
private |
Definition at line 68 of file CombinatoricGenerator.h.
|
private |
Definition at line 70 of file CombinatoricGenerator.h.
|
private |
Definition at line 65 of file CombinatoricGenerator.h.
|
private |
Definition at line 66 of file CombinatoricGenerator.h.
typedef boost::transform_iterator<ValueAccessor, ComboIter> reco::tau::Combinatoric< T >::ValueIter |
Definition at line 111 of file CombinatoricGenerator.h.
|
inline |
Definition at line 101 of file CombinatoricGenerator.h.
|
inline |
Return the set of selected indices.
Definition at line 188 of file CombinatoricGenerator.h.
References reco::tau::Combinatoric< T >::comboSet_.
Referenced by reco::tau::Combinatoric< T >::operator==().
|
inline |
The first element in the selected subset.
Definition at line 114 of file CombinatoricGenerator.h.
References reco::tau::Combinatoric< T >::inChoice_, reco::tau::Combinatoric< T >::indices_, and reco::tau::Combinatoric< T >::valueAccessor_.
|
inline |
One past the last element in the selected subset.
Definition at line 116 of file CombinatoricGenerator.h.
References reco::tau::Combinatoric< T >::inChoice_, reco::tau::Combinatoric< T >::indices_, and reco::tau::Combinatoric< T >::valueAccessor_.
|
inline |
Definition at line 185 of file CombinatoricGenerator.h.
References reco::tau::Combinatoric< T >::done_.
Referenced by reco::tau::Combinatoric< T >::next(), and reco::tau::Combinatoric< T >::operator==().
|
inline |
Build the next cominatoric subset after the current one.
Definition at line 124 of file CombinatoricGenerator.h.
References reco::tau::Combinatoric< T >::begin_, reco::tau::Combinatoric< T >::IndexInSet::combo_, reco::tau::Combinatoric< T >::done(), and reco::tau::Combinatoric< T >::indices_.
|
inline |
Comparison to another combination.
Definition at line 191 of file CombinatoricGenerator.h.
References reco::tau::Combinatoric< T >::combo(), and reco::tau::Combinatoric< T >::done().
|
inline |
One past the last element in the non-selected subset.
Definition at line 121 of file CombinatoricGenerator.h.
References reco::tau::Combinatoric< T >::indices_, reco::tau::Combinatoric< T >::notInChoice_, and reco::tau::Combinatoric< T >::valueAccessor_.
|
inline |
The first element in the non-selected subset.
Definition at line 119 of file CombinatoricGenerator.h.
References reco::tau::Combinatoric< T >::indices_, reco::tau::Combinatoric< T >::notInChoice_, and reco::tau::Combinatoric< T >::valueAccessor_.
|
private |
Definition at line 199 of file CombinatoricGenerator.h.
Referenced by reco::tau::Combinatoric< T >::next(), and reco::tau::Combinatoric< T >::ValueAccessor::operator()().
|
private |
Definition at line 200 of file CombinatoricGenerator.h.
|
private |
Definition at line 201 of file CombinatoricGenerator.h.
Referenced by reco::tau::Combinatoric< T >::combo().
|
private |
Definition at line 203 of file CombinatoricGenerator.h.
Referenced by reco::tau::Combinatoric< T >::done().
|
private |
Definition at line 205 of file CombinatoricGenerator.h.
Referenced by reco::tau::Combinatoric< T >::combo_begin(), and reco::tau::Combinatoric< T >::combo_end().
|
private |
|
private |
Definition at line 206 of file CombinatoricGenerator.h.
Referenced by reco::tau::Combinatoric< T >::remainder_begin(), and reco::tau::Combinatoric< T >::remainder_end().
|
private |
Definition at line 204 of file CombinatoricGenerator.h.
Referenced by reco::tau::Combinatoric< T >::combo_begin(), reco::tau::Combinatoric< T >::combo_end(), reco::tau::Combinatoric< T >::remainder_begin(), and reco::tau::Combinatoric< T >::remainder_end().