CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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>

Public Member Functions

ConnsConstIter begin () const
 
ConnsPair connsPair () const
 
 ConnsRange (const Conns &, ConnsPair)
 
 ConnsRange (const Conns &)
 
 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.

446 {;}

Member Function Documentation

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

Definition at line 506 of file SiStripFedCabling.h.

506  {
507  return range_.begin();
508 }
SiStripFedCabling::ConnsPair SiStripFedCabling::ConnsRange::connsPair ( ) const
inline

Definition at line 530 of file SiStripFedCabling.h.

References sistrip::invalid32_.

530  {
531  return ( ( range_.begin() == vector_.end() &&
532  range_.end() == vector_.end() ) ?
534  ConnsPair( std::distance( vector_.begin(), range_.begin() ),
535  std::distance( vector_.begin(), range_.end() ) ) );
536 }
std::pair< uint32_t, uint32_t > ConnsPair
static const uint32_t invalid32_
Definition: Constants.h:16
bool SiStripFedCabling::ConnsRange::empty ( ) const
inline

Definition at line 522 of file SiStripFedCabling.h.

Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().

522  {
523  return ( range_.begin() == range_.end() );
524 }
SiStripFedCabling::ConnsPair SiStripFedCabling::ConnsRange::emptyPair ( )
inlinestatic

Definition at line 538 of file SiStripFedCabling.h.

References sistrip::invalid32_.

538  {
540 }
std::pair< uint32_t, uint32_t > ConnsPair
static const uint32_t invalid32_
Definition: Constants.h:16
SiStripFedCabling::ConnsConstIter SiStripFedCabling::ConnsRange::end ( void  ) const
inline

Definition at line 510 of file SiStripFedCabling.h.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

510  {
511  return range_.end();
512 }
SiStripFedCabling::ConnsConstIterRange SiStripFedCabling::ConnsRange::invalid ( ) const
inline

Definition at line 518 of file SiStripFedCabling.h.

518  {
519  return ConnsConstIterRange( vector_.end(), vector_.end() );
520 }
boost::iterator_range< ConnsConstIter > ConnsConstIterRange
void SiStripFedCabling::ConnsRange::print ( std::stringstream &  ) const
SiStripFedCabling::ConnsConstIterRange SiStripFedCabling::ConnsRange::range ( ) const
inline

Definition at line 514 of file SiStripFedCabling.h.

514  {
515  return range_;
516 }
uint32_t SiStripFedCabling::ConnsRange::size ( void  ) const
inline

Definition at line 526 of file SiStripFedCabling.h.

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

Member Data Documentation

ConnsConstIterRange SiStripFedCabling::ConnsRange::range_
private

Definition at line 464 of file SiStripFedCabling.h.

ConnsConstIterRange SiStripFedCabling::ConnsRange::vector_
private

Definition at line 463 of file SiStripFedCabling.h.