GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
combinations::iterator Class Reference

Definition at line 6 of file combinations.h.

Public Member Functions

 iterator (std::vector< double > &points, size_t n, bool at_beginning)
 
bool operator!= (const iterator &other) const
 
std::vector< double > operator* () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (const iterator &other) const
 

Private Attributes

bool fPast_end
 
std::vector< double > & fPoints
 
std::vector< bool > fPoints_used
 

#include <combinations.h>

+ Collaboration diagram for combinations::iterator:

Constructor & Destructor Documentation

◆ iterator()

combinations::iterator::iterator ( std::vector< double > &  points,
size_t  n,
bool  at_beginning 
)
inline

Definition at line 8 of file combinations.h.

References fPast_end, and fPoints_used.

Member Function Documentation

◆ operator!=()

bool combinations::iterator::operator!= ( const iterator other) const
inline

Definition at line 60 of file combinations.h.

◆ operator*()

std::vector<double> combinations::iterator::operator* ( ) const
inline

Definition at line 18 of file combinations.h.

References fPoints, and fPoints_used.

◆ operator++() [1/2]

iterator& combinations::iterator::operator++ ( )
inline

Definition at line 29 of file combinations.h.

References fPast_end, and fPoints_used.

◆ operator++() [2/2]

iterator combinations::iterator::operator++ ( int  )
inline

Definition at line 35 of file combinations.h.

◆ operator==()

bool combinations::iterator::operator== ( const iterator other) const
inline

Definition at line 42 of file combinations.h.

References fPast_end, fPoints, and fPoints_used.

Member Data Documentation

◆ fPast_end

bool combinations::iterator::fPast_end
private

Definition at line 65 of file combinations.h.

Referenced by iterator(), operator++(), and operator==().

◆ fPoints

std::vector<double>& combinations::iterator::fPoints
private

Definition at line 63 of file combinations.h.

Referenced by operator*(), and operator==().

◆ fPoints_used

std::vector<bool> combinations::iterator::fPoints_used
private

Definition at line 64 of file combinations.h.

Referenced by iterator(), operator*(), operator++(), and operator==().