Gaudi::Utils::PropertyTypeTraits< std::array< T, N > > Struct Template Reference

the specialization of property-traits for class std::array to take care the non-trivial assignements and constructors for this class More...

#include </scratch/z5/marcocle/GaudiDocs/lhcb-release/825/GAUDI/GAUDI_v26r3/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/StdArrayAsProperty.h>

Public Types

typedef std::array< T, N > TYPE
 
typedef TYPE Type
 
typedef const TYPEPRef
 
typedef TYPEPVal
 
typedef const TYPECVal
 
typedef std::array< T, N > TYPE
 
typedef TYPE Type
 
typedef const TYPEPRef
 
typedef TYPEPVal
 
typedef const TYPECVal
 

Static Public Member Functions

static PVal new_ ()
 some kind of default constructor NON-TRIVIAL More...
 
static PVal new_ (const Type &right)
 some kind of copy constructor NON-TRIVIAL More...
 
static void dele (PVal right, const bool own)
 "smart" destructor More...
 
static PVal copy (PVal right, const bool own)
 "smart" copy-constructor More...
 
static void assign (Type &v1, const Type &v2)
 assignement NON-TRIVIAL More...
 
static bool less (const Type &v1, const Type &v2)
 comparison (needed for bounded verifier) NON-TRIVIAL More...
 
static PVal new_ ()
 some kind of default constructor NON-TRIVIAL More...
 
static PVal new_ (const Type &right)
 some kind of copy constructor NON-TRIVIAL More...
 
static void dele (PVal right, const bool own)
 "smart" destructor More...
 
static PVal copy (PVal right, const bool own)
 "smart" copy-constructor More...
 
static void assign (Type &v1, const Type &v2)
 assignement NON-TRIVIAL More...
 
static bool less (const Type &v1, const Type &v2)
 comparison (needed for bounded verifier) NON-TRIVIAL More...
 

Detailed Description

template<class T, std::size_t N>
struct Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >

the specialization of property-traits for class std::array to take care the non-trivial assignements and constructors for this class

Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-16

Definition at line 122 of file StdArrayAsProperty.h.

Member Typedef Documentation

template<class T , std::size_t N>
typedef const TYPE* Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::CVal

Definition at line 129 of file StdArrayAsProperty.h.

template<class T , std::size_t N>
typedef const TYPE* Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::CVal

Definition at line 129 of file StdArrayAsProperty.h.

template<class T , std::size_t N>
typedef const TYPE& Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::PRef

Definition at line 127 of file StdArrayAsProperty.h.

template<class T , std::size_t N>
typedef const TYPE& Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::PRef

Definition at line 127 of file StdArrayAsProperty.h.

template<class T , std::size_t N>
typedef TYPE* Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::PVal

Definition at line 128 of file StdArrayAsProperty.h.

template<class T , std::size_t N>
typedef TYPE* Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::PVal

Definition at line 128 of file StdArrayAsProperty.h.

template<class T , std::size_t N>
typedef std::array<T,N> Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::TYPE

Definition at line 125 of file StdArrayAsProperty.h.

template<class T , std::size_t N>
typedef std::array<T,N> Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::TYPE

Definition at line 125 of file StdArrayAsProperty.h.

template<class T , std::size_t N>
typedef TYPE Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::Type

Definition at line 126 of file StdArrayAsProperty.h.

template<class T , std::size_t N>
typedef TYPE Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::Type

Definition at line 126 of file StdArrayAsProperty.h.

Member Function Documentation

template<class T , std::size_t N>
static void Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::assign ( Type v1,
const Type v2 
)
inlinestatic

assignement NON-TRIVIAL

Definition at line 155 of file StdArrayAsProperty.h.

156  { std::copy ( v2.begin() , v2.end() , v1.begin() ) ; }
template<class T , std::size_t N>
static void Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::assign ( Type v1,
const Type v2 
)
inlinestatic

assignement NON-TRIVIAL

Definition at line 155 of file StdArrayAsProperty.h.

156  { std::copy ( v2.begin() , v2.end() , v1.begin() ) ; }
template<class T , std::size_t N>
static PVal Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::copy ( PVal  right,
const bool  own 
)
inlinestatic

"smart" copy-constructor

Definition at line 149 of file StdArrayAsProperty.h.

150  {
151  if ( !own ) { return right ; }
152  return new_ ( *right ) ;
153  }
static PVal new_()
some kind of default constructor NON-TRIVIAL
template<class T , std::size_t N>
static PVal Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::copy ( PVal  right,
const bool  own 
)
inlinestatic

"smart" copy-constructor

Definition at line 149 of file StdArrayAsProperty.h.

150  {
151  if ( !own ) { return right ; }
152  return new_ ( *right ) ;
153  }
static PVal new_()
some kind of default constructor NON-TRIVIAL
template<class T , std::size_t N>
static void Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::dele ( PVal  right,
const bool  own 
)
inlinestatic

"smart" destructor

Definition at line 146 of file StdArrayAsProperty.h.

147  { if ( own ) { delete right ; } }
template<class T , std::size_t N>
static void Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::dele ( PVal  right,
const bool  own 
)
inlinestatic

"smart" destructor

Definition at line 146 of file StdArrayAsProperty.h.

147  { if ( own ) { delete right ; } }
template<class T , std::size_t N>
static bool Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::less ( const Type v1,
const Type v2 
)
inlinestatic

comparison (needed for bounded verifier) NON-TRIVIAL

Definition at line 158 of file StdArrayAsProperty.h.

159  { return std::lexicographical_compare
160  ( v1.begin() , v1.end () , v2.begin() , v2.end() ) ; }
template<class T , std::size_t N>
static bool Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::less ( const Type v1,
const Type v2 
)
inlinestatic

comparison (needed for bounded verifier) NON-TRIVIAL

Definition at line 158 of file StdArrayAsProperty.h.

159  { return std::lexicographical_compare
160  ( v1.begin() , v1.end () , v2.begin() , v2.end() ) ; }
template<class T , std::size_t N>
static PVal Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::new_ ( )
inlinestatic

some kind of default constructor NON-TRIVIAL

Definition at line 132 of file StdArrayAsProperty.h.

133  {
134  PVal tmp = new Type ;
135  std::fill_n ( tmp->begin() , N , T() ) ;
136  return tmp ;
137  }
int N
Definition: IOTest.py:90
template<class T , std::size_t N>
static PVal Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::new_ ( )
inlinestatic

some kind of default constructor NON-TRIVIAL

Definition at line 132 of file StdArrayAsProperty.h.

133  {
134  PVal tmp = new Type ;
135  std::fill_n ( tmp->begin() , N , T() ) ;
136  return tmp ;
137  }
int N
Definition: IOTest.py:90
template<class T , std::size_t N>
static PVal Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::new_ ( const Type right)
inlinestatic

some kind of copy constructor NON-TRIVIAL

Definition at line 139 of file StdArrayAsProperty.h.

140  {
141  PVal tmp = new Type ;
142  assign ( *tmp , right ) ;
143  return tmp ;
144  }
static void assign(Type &v1, const Type &v2)
assignement NON-TRIVIAL
template<class T , std::size_t N>
static PVal Gaudi::Utils::PropertyTypeTraits< std::array< T, N > >::new_ ( const Type right)
inlinestatic

some kind of copy constructor NON-TRIVIAL

Definition at line 139 of file StdArrayAsProperty.h.

140  {
141  PVal tmp = new Type ;
142  assign ( *tmp , right ) ;
143  return tmp ;
144  }
static void assign(Type &v1, const Type &v2)
assignement NON-TRIVIAL

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