1 #ifndef GAUDI_NAMEDRANGE_H
2 #define GAUDI_NAMEDRANGE_H 1
12 #include "GaudiKernel/Range.h"
50 typedef NamedRange_<TYPE>
Self ;
62 typename Base::iterator iend ,
63 std::string
name =
"" )
70 std::string
name =
"" )
77 std::string
name =
"" )
84 std::string
name =
"" )
91 std::string
name =
"" )
105 const std::string&
name()
const {
return m_name ; }
127 template <
class CONTAINER>
129 NamedRange_<CONTAINER>
130 range (
const CONTAINER& cnt ,
132 {
return NamedRange_<CONTAINER>( cnt.begin() , cnt.end() , std::move(name) ) ; }
138 #endif // GAUDI_NAMEDRANGE_H
void setName(const std::string &value)
set the name of the range
NamedRange_< TYPE > Self
"self"-type
~NamedRange_()=default
destructor
NamedRange_< CONTAINER > range(const CONTAINER &cnt, std::string name)
simple function to create the named range form arbitrary container
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_()=default
default constructor
Helper functions to set/get the application return code.