1 #ifndef GAUDIKERNEL_BOOSTARRAYASPROPERTY_H
2 #define GAUDIKERNEL_BOOSTARRAYASPROPERTY_H 1
12 #include "boost/array.hpp"
32 template <
class ITERATOR>
49 template <
class TYPE, std::
size_t N>
54 ( obj.begin () , obj.end () ,
s ,
"( " ,
" )" ,
" , " ) ;
80 template <
class TYPE, std::
size_t N>
90 if (
N != tmp.size() )
93 std::copy ( tmp.begin() , tmp.end() , result.begin() ) ;
120 template <
class T, std::
size_t N>
124 typedef boost::array<T,N>
TYPE ;
133 PVal tmp =
new Type ;
138 static PVal
new_ (
const Type& right )
140 PVal tmp =
new Type ;
145 static void dele ( PVal right ,
const bool own )
146 {
if ( own ) {
delete right ; } }
148 static PVal
copy ( PVal right ,
const bool own )
150 if ( !own ) {
return right ; }
151 return new_ ( *right ) ;
154 static void assign ( Type& v1 ,
const Type& v2 )
155 {
std::copy ( v2.begin() , v2.end() , v1.begin() ) ; }
157 static bool less (
const Type& v1 ,
const Type& v2 )
159 ( v1.begin() , v1.end () , v2.begin() , v2.end() ) ; }
169 #endif // GAUDIKERNEL_BOOSTARRAYASPROPERTY_H
helper structure to define the types for properties
The namespace threadpool contains a thread pool and related utility classes.
static void assign(Type &v1, const Type &v2)
assignement NON-TRIVIAL
The declaration of major parsing functions used e.g for (re)implementation of new extended properties...
static PVal new_()
some kind of default constructor
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
bool isFailure() const
Test for a status code of FAILURE.
static PVal copy(PVal right, const bool own)
"smart" copy-constructor
static PVal new_(const Type &right)
some kind of copy constructor NON-TRIVIAL
std::ostream & toStream(ITERATOR first, ITERATOR last, std::ostream &s, const std::string &open, const std::string &close, const std::string &delim)
the helper function to print the sequence
static bool less(const Type &v1, const Type &v2)
comparison (needed for bounded verifier) NON-TRIVIAL
static void assign(Type &v1, PRef v2)
assignment
This class is used for returning status codes from appropriate routines.
static void dele(PVal right, const bool own)
"smart" destructor
T lexicographical_compare(T...args)
boost::array< T, N > TYPE
struct GAUDI_API array
Parametrisation class for redirection array - like implementation.
static PVal new_()
some kind of default constructor NON-TRIVIAL
Helper functions to set/get the application return code.