| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Types | Private Attributes | List of all members
Gaudi::NamedRange_< TYPE > Class Template Reference

`#include <NamedRange.h>`

Inheritance diagram for Gaudi::NamedRange_< TYPE >:
[legend]
Collaboration diagram for Gaudi::NamedRange_< TYPE >:
[legend]

## Public Member Functions
| NamedRange_ ()
| default constructor
| NamedRange_ (typename Base::iterator ibegin, typename Base::iterator iend, const std::string &name="")
| Constructor.
| NamedRange_ (const Base &base, const std::string &name="")
| constructor from the base class
| NamedRange_ (const typename Base::_Base &base, const std::string &name="")
| constructor from the base class
| NamedRange_ (const typename Base::Container &base, const std::string &name="")
| constructor from the base class
| NamedRange_ (typename Base::iterator ibegin, const std::string &name="")
| ~NamedRange_ ()
| destructor
NamedRange_ | slice (long index1, long index2) const
| get a "slice" of a range, in Python style
const std::string & | name () const
| get the name of the range
void | setName (const std::string &value)
| set the name of the range
Public Member Functions inherited from Gaudi::Range_< CONTAINER >
| Range_ ()
| default constructor
| Range_ (iterator ibegin, iterator iend)
| Constructor.
| Range_ (const Base &base)
| constructor from the pair of iterators
| Range_ (const Container &cont)
| constructor from the container
| Range_ (iterator ibegin)
| ~Range_ ()
| destructor
bool | empty () const
| empty sequence ?
size_t | size () const
| size of the sequence (number of elements)
iterator | begin () const
| access to begin of the sequence (const version )
iterator | end () const
| access to end of the sequence (const version)
reverse_iterator | rbegin () const
| access to begin of the reversed sequence (const)
reverse_iterator | rend () const
| access to begin of the reversed sequence (const)
const_reference | front () const
| access for the first element (only for non-empty ranges!)
const_reference | back () const
| access for the back element (only for non-empty ranges!)
Range_ | slice (long index1, long index2) const
| get a "slice" of a range, in Python style
const_reference | operator() (const size_t index) const
| non-checked access to the elements by index (valid only for non-empty sequences)
const_reference | operator[] (const long index) const
| non-checked access to the elements by index (valid only for non-empty sequences)
const_reference | at (const long index) const
  | Checked access to the elements by index (valid for all sequences) Exceptions
  GaudiException | for out-of-range access.
bool | operator< (const Range_ &right) const
| compare with another range
bool | operator< (const Container &right) const
| compare with the base container
bool | operator== (const Range_ &right) const
| equality with another range
bool | operator== (const Container &right) const
| equality with the base container
bool | operator! () const
| empty sequence?
| operator const Base & () const
| conversion operator to the std::pair
const Base & | base () const
| conversion operator to the std::pair

## Protected Types
typedef Gaudi::Range_< TYPE > | Base
| the base class
typedef NamedRange_< TYPE > | Self
| "self"-type

## Private Attributes
std::string | m_name
| the name, associated to the range

## Additional Inherited Members
Public Types inherited from Gaudi::Range_< CONTAINER >
typedef std::pair< typename CONTAINER::const_iterator, typename CONTAINER::const_iterator > | Base
typedef CONTAINER | Container
| type for actual contained iterator
typedef Container::value_type | value_type
typedef Container::const_iterator | iterator
typedef Container::const_iterator | const_iterator
typedef Container::const_reverse_iterator | reverse_iterator
typedef Container::const_reverse_iterator | const_reverse_iterator
typedef Container::const_reference | reference
typedef Container::const_reference | const_reference
typedef std::pair< iterator, iterator > | _Base
| internal types
typedef Range_< Container > | _Self

## Detailed Description

### template<class TYPE>
class Gaudi::NamedRange_< TYPE >

Definition at line 45 of file NamedRange.h.

## Member Typedef Documentation

template<class TYPE >

typedef Gaudi::Range_<TYPE> Gaudi::NamedRange_< TYPE >::Base
| protected

the base class

Definition at line 50 of file NamedRange.h.

template<class TYPE >

typedef NamedRange_<TYPE> Gaudi::NamedRange_< TYPE >::Self
| protected

"self"-type

Definition at line 52 of file NamedRange.h.

## Constructor & Destructor Documentation

template<class TYPE >

Gaudi::NamedRange_< TYPE >::NamedRange_ | ( |  | ) |
| inline

default constructor

Definition at line 57 of file NamedRange.h.

: Base() , m_name() {};
template<class TYPE >

Gaudi::NamedRange_< TYPE >::NamedRange_ | ( | typename Base::iterator | ibegin,
|  | typename Base::iterator | iend,
|  | const std::string & | name = `""`
| ) |  |
| inline

Constructor.

Parameters

  ibegin | iterator to begin of the sequence
  iend | iterator to end of the sequence
  name | name of the range

Definition at line 63 of file NamedRange.h.

: Base ( ibegin , iend ) , m_name ( name ) {} ;
template<class TYPE >

Gaudi::NamedRange_< TYPE >::NamedRange_ | ( | const Base & | base,
|  | const std::string & | name = `""`
| ) |  |
| inline

constructor from the base class

Parameters

  base | base objects
  name | name of the range

Definition at line 71 of file NamedRange.h.

: Base ( base ) , m_name ( name ) {};
template<class TYPE >

Gaudi::NamedRange_< TYPE >::NamedRange_ | ( | const typename Base::_Base & | base,
|  | const std::string & | name = `""`
| ) |  |
| inline

constructor from the base class

Parameters

  base | base objects
  name | name of the range

Definition at line 78 of file NamedRange.h.

: Base ( base ) , m_name ( name ) {};
template<class TYPE >

Gaudi::NamedRange_< TYPE >::NamedRange_ | ( | const typename Base::Container & | base,
|  | const std::string & | name = `""`
| ) |  |
| inline

constructor from the base class

Parameters

  base | base objects
  name | name of the range

Definition at line 85 of file NamedRange.h.

: Base ( base ) , m_name ( name ) {};
template<class TYPE >

Gaudi::NamedRange_< TYPE >::NamedRange_ | ( | typename Base::iterator | ibegin,
|  | const std::string & | name = `""`
| ) |  |
| inline

Definition at line 92 of file NamedRange.h.

: Base ( ibegin , ibegin ) , m_name ( name ) {};
template<class TYPE >

Gaudi::NamedRange_< TYPE >::~NamedRange_ | ( |  | ) |
| inline

destructor

Definition at line 96 of file NamedRange.h.

{};

## Member Function Documentation

template<class TYPE >

const std::string& Gaudi::NamedRange_< TYPE >::name | ( |  | ) | const
| inline

get the name of the range

Definition at line 107 of file NamedRange.h.

{ return m_name ; }
template<class TYPE >

void Gaudi::NamedRange_< TYPE >::setName | ( | const std::string & | value | ) |
| inline

set the name of the range

Definition at line 109 of file NamedRange.h.

{ m_name = value ; }
template<class TYPE >

NamedRange_ Gaudi::NamedRange_< TYPE >::slice | ( | long | index1,
|  | long | index2
| ) |  | const
| inline

get a "slice" of a range, in Python style

Definition at line 101 of file NamedRange.h.

{ return NamedRange_( Base::slice ( index1 , index2 ) , m_name ) ; }

## Member Data Documentation

template<class TYPE >

std::string Gaudi::NamedRange_< TYPE >::m_name
| private

the name, associated to the range

Definition at line 114 of file NamedRange.h.

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/GaudiKernel/NamedRange.h