CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Attributes | Friends

pat::strbitset::index_type Class Reference

#include <strbitset.h>

List of all members.

Public Types

typedef unsigned int size_t

Public Member Functions

 index_type ()
 index_type (strbitset const *b, std::string const &s)
bool operator< (index_type const &r) const
bool operator<= (index_type const &r) const
bool operator== (index_type const &r) const
bool operator> (index_type const &r) const
bool operator>= (index_type const &r) const
std::string const & str () const

Protected Attributes

strbitset const * bitset_
size_t i_

Friends

std::ostream & operator<< (std::ostream &out, const index_type &r)
class strbitset

Detailed Description

Definition at line 28 of file strbitset.h.


Member Typedef Documentation

typedef unsigned int pat::strbitset::index_type::size_t

Definition at line 30 of file strbitset.h.


Constructor & Destructor Documentation

pat::strbitset::index_type::index_type ( ) [inline]

Definition at line 34 of file strbitset.h.

:bitset_(0), i_(0) {}
pat::strbitset::index_type::index_type ( strbitset const *  b,
std::string const &  s 
) [inline]

Definition at line 36 of file strbitset.h.

References bitset_, i_, and pat::strbitset::index().

                                                        :
    bitset_(b) 
    {
      if ( bitset_ ) {
        i_ = bitset_->index(s);
      } else {
        i_ = 0;
      }
    }

Member Function Documentation

bool pat::strbitset::index_type::operator< ( index_type const &  r) const [inline]

Definition at line 48 of file strbitset.h.

References i_.

{ return i_ < r.i_;}
bool pat::strbitset::index_type::operator<= ( index_type const &  r) const [inline]

Definition at line 50 of file strbitset.h.

References i_.

{ return i_ <= r.i_;}
bool pat::strbitset::index_type::operator== ( index_type const &  r) const [inline]

Definition at line 52 of file strbitset.h.

References i_.

{ return i_ == r.i_;}    
bool pat::strbitset::index_type::operator> ( index_type const &  r) const [inline]

Definition at line 49 of file strbitset.h.

References i_.

{ return i_ > r.i_;}
bool pat::strbitset::index_type::operator>= ( index_type const &  r) const [inline]

Definition at line 51 of file strbitset.h.

References i_.

{ return i_ >= r.i_;}
std::string const& pat::strbitset::index_type::str ( ) const [inline]

Definition at line 46 of file strbitset.h.

References bitset_, i_, and pat::strbitset::index().

{ return bitset_->index(i_);}

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const index_type r 
) [friend]

Definition at line 27 of file strbitset.cc.

                                                                           {
    out << r.i_;
    return out;
  }
friend class strbitset [friend]

Definition at line 32 of file strbitset.h.


Member Data Documentation

Definition at line 57 of file strbitset.h.

Referenced by index_type(), and str().