CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

SiStripFedCabling::ConnsRange Class Reference

Builds range of iterators from pair of offsets. More...

#include <SiStripFedCabling.h>

List of all members.

Public Member Functions

ConnsConstIter begin () const
ConnsPair connsPair () const
 ConnsRange (const Conns &)
 ConnsRange (const Conns &, ConnsPair)
 ConnsRange ()
bool empty () const
ConnsConstIter end () const
ConnsConstIterRange invalid () const
void print (std::stringstream &) const
ConnsConstIterRange range () const
uint32_t size () const

Static Public Member Functions

static ConnsPair emptyPair ()

Private Attributes

ConnsConstIterRange range_
ConnsConstIterRange vector_

Detailed Description

Builds range of iterators from pair of offsets.

Definition at line 440 of file SiStripFedCabling.h.


Constructor & Destructor Documentation

SiStripFedCabling::ConnsRange::ConnsRange ( const Conns ,
ConnsPair   
)
SiStripFedCabling::ConnsRange::ConnsRange ( const Conns )
SiStripFedCabling::ConnsRange::ConnsRange ( ) [inline]

Definition at line 446 of file SiStripFedCabling.h.

{;}

Member Function Documentation

SiStripFedCabling::ConnsConstIter SiStripFedCabling::ConnsRange::begin ( void  ) const [inline]

Definition at line 506 of file SiStripFedCabling.h.

                                                                                { 
  return range_.begin(); 
}
SiStripFedCabling::ConnsPair SiStripFedCabling::ConnsRange::connsPair ( ) const [inline]

Definition at line 530 of file SiStripFedCabling.h.

References sistrip::invalid32_.

                                                                               { 
  return ( ( range_.begin() == vector_.end() && 
             range_.end()   == vector_.end() ) ?
           ConnsPair( sistrip::invalid32_, sistrip::invalid32_ ) :
           ConnsPair( std::distance( vector_.begin(), range_.begin() ), 
                      std::distance( vector_.begin(), range_.end() ) ) );
}
bool SiStripFedCabling::ConnsRange::empty ( ) const [inline]

Definition at line 522 of file SiStripFedCabling.h.

                                                     { 
  return ( range_.begin() == range_.end() );
}
SiStripFedCabling::ConnsPair SiStripFedCabling::ConnsRange::emptyPair ( ) [inline, static]

Definition at line 538 of file SiStripFedCabling.h.

References sistrip::invalid32_.

SiStripFedCabling::ConnsConstIter SiStripFedCabling::ConnsRange::end ( void  ) const [inline]

Definition at line 510 of file SiStripFedCabling.h.

                                                                              { 
  return range_.end(); 
}
SiStripFedCabling::ConnsConstIterRange SiStripFedCabling::ConnsRange::invalid ( ) const [inline]

Definition at line 518 of file SiStripFedCabling.h.

                                                                                       { 
  return ConnsConstIterRange( vector_.end(), vector_.end() );
}
void SiStripFedCabling::ConnsRange::print ( std::stringstream &  ) const
SiStripFedCabling::ConnsConstIterRange SiStripFedCabling::ConnsRange::range ( ) const [inline]

Definition at line 514 of file SiStripFedCabling.h.

                                                                                     { 
  return range_;
}
uint32_t SiStripFedCabling::ConnsRange::size ( void  ) const [inline]

Definition at line 526 of file SiStripFedCabling.h.

                                                        { 
  return std::distance( range_.begin(), range_.end() );
}

Member Data Documentation

Definition at line 464 of file SiStripFedCabling.h.

Definition at line 463 of file SiStripFedCabling.h.