CMS 3D CMS Logo

Public Member Functions | Private Attributes

StatusSelector Struct Reference

#include <StatusSelector.h>

List of all members.

Public Member Functions

template<typename T >
bool operator() (const T &t) const
StatusSelectoroperator== (const StatusSelector &o)
 StatusSelector (const std::vector< int > &status)
 StatusSelector (const StatusSelector &o)

Private Attributes

std::vector< int >::const_iterator begin_
std::vector< int >::const_iterator end_
std::vector< int > status_

Detailed Description

Definition at line 12 of file StatusSelector.h.


Constructor & Destructor Documentation

StatusSelector::StatusSelector ( const std::vector< int > &  status) [inline]

Definition at line 13 of file StatusSelector.h.

References begin_, end_, i, and status_.

                                                  { 
    for( std::vector<int>::const_iterator i = status.begin(); i != status.end(); ++ i )
      status_.push_back( * i );
    begin_ = status_.begin();
    end_ = status_.end();
  }
StatusSelector::StatusSelector ( const StatusSelector o) [inline]

Definition at line 19 of file StatusSelector.h.

                                             :
    status_( o.status_ ), begin_( status_.begin() ), end_( status_.end() ) { }

Member Function Documentation

template<typename T >
bool StatusSelector::operator() ( const T t) const [inline]

Definition at line 25 of file StatusSelector.h.

References begin_, end_, and spr::find().

                                       { 
    return std::find( begin_, end_, t.status() ) != end_;
  }
StatusSelector& StatusSelector::operator== ( const StatusSelector o) [inline]

Definition at line 21 of file StatusSelector.h.

References connectstrParser::o.

                                                          {
    * this = o; return * this;
  } 

Member Data Documentation

std::vector<int>::const_iterator StatusSelector::begin_ [private]

Definition at line 30 of file StatusSelector.h.

Referenced by operator()(), and StatusSelector().

std::vector<int>::const_iterator StatusSelector::end_ [private]

Definition at line 30 of file StatusSelector.h.

Referenced by operator()(), and StatusSelector().

std::vector<int> StatusSelector::status_ [private]

Definition at line 29 of file StatusSelector.h.

Referenced by StatusSelector().