CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Attributes | Friends
pat::strbitset::index_type Class Reference

#include <strbitset.h>

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.

34 :bitset_(0), i_(0) {}
strbitset const * bitset_
Definition: strbitset.h:57
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().

36  :
37  bitset_(b)
38  {
39  if ( bitset_ ) {
40  i_ = bitset_->index(s);
41  } else {
42  i_ = 0;
43  }
44  }
strbitset const * bitset_
Definition: strbitset.h:57
double b
Definition: hdecay.h:120
size_t index(std::string s) const
Definition: strbitset.h:368

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_.

48 { 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_.

50 { 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_.

52 { 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_.

49 { 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_.

51 { 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().

46 { return bitset_->index(i_);}
strbitset const * bitset_
Definition: strbitset.h:57
size_t index(std::string s) const
Definition: strbitset.h:368

Friends And Related Function Documentation

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

Definition at line 27 of file strbitset.cc.

27  {
28  out << r.i_;
29  return out;
30  }
tuple out
Definition: dbtoconf.py:99
friend class strbitset
friend

Definition at line 32 of file strbitset.h.

Member Data Documentation

strbitset const* pat::strbitset::index_type::bitset_
protected

Definition at line 57 of file strbitset.h.

Referenced by index_type(), and str().

size_t pat::strbitset::index_type::i_
protected