3 #ifndef GAUDI_NAMEDRANGE_H
4 #define GAUDI_NAMEDRANGE_H 1
14 #include "GaudiKernel/Range.h"
52 typedef NamedRange_<TYPE>
Self ;
64 typename Base::iterator iend ,
65 const std::string&
name =
"" )
66 : Base ( ibegin , iend ) ,
m_name (
name ) {} ;
72 const std::string&
name =
"" )
79 const std::string&
name =
"" )
86 const std::string&
name =
"" )
93 const std::string&
name =
"" )
94 : Base ( ibegin , ibegin ) ,
m_name (
name ) {};
107 const std::string&
name()
const {
return m_name ; }
130 template <
class CONTAINER>
132 NamedRange_<CONTAINER>
133 range (
const CONTAINER& cnt ,
134 const std::string& name )
135 {
return NamedRange_<CONTAINER>( cnt.begin() , cnt.end() , name ) ; }
141 #endif // GAUDI_NAMEDRANGE_H
void setName(const std::string &value)
set the name of the range
NamedRange_< TYPE > Self
"self"-type
NamedRange_()
default constructor
const std::string & name() const
get the name of the range
NamedRange_ slice(long index1, long index2) const
get a "slice" of a range, in Python style
const Base & base() const
conversion operator to the std::pair
std::string m_name
the name, associated to the range
Gaudi::Range_< TYPE > Base
the base class
Useful class for representation of "sequence" of the objects through the range of valid iterators...
NamedRange_< CONTAINER > range(const CONTAINER &cnt, const std::string &name)
simple function to create the named range form arbitrary container
Helper functions to set/get the application return code.