3 #ifndef GAUDI_NAMEDRANGE_H
4 #define GAUDI_NAMEDRANGE_H 1
14 #include "GaudiKernel/Range.h"
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 ) {};
130 template <
class CONTAINER>
134 const std::string& 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
NamedRange_(const 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_(const typename Base::_Base &base, const std::string &name="")
constructor from the base class
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_(typename Base::iterator ibegin, const std::string &name="")
NamedRange_< CONTAINER > range(const CONTAINER &cnt, const std::string &name)
simple function to create the named range form arbitrary container
NamedRange_(typename Base::iterator ibegin, typename Base::iterator iend, const std::string &name="")
Constructor.
Helper functions to set/get the application return code.