| # Gaudi Framework, version v23r0 |

Home |  | Generated: Mon Jan 30 2012

Public Types | Static Public Member Functions

# Gaudi::Utils::PropertyTypeTraits< TYPE > Struct Template Reference

helper structure to define the types for properties More...

`#include <PropertyTypeTraits.h>`

Inheritance diagram for Gaudi::Utils::PropertyTypeTraits< TYPE >:
[legend]

List of all members.

## Public Types
typedef TYPE | Type
typedef const TYPE & | PRef
typedef TYPE * | PVal
typedef const TYPE * | CVal
## Static Public Member Functions
static PVal | new_ ()
| some kind of default constructor
static PVal | new_ (const Type &right)
| some kind of copy constructor
static void | dele (PVal right, const bool own)
| "smart" destructor
static PVal | copy (PVal *right, const bool own)
| "smart" copy-constructor
static void | assign (Type &v1, PRef v2)
| assignment
static bool | less (const Type &v1, const Type &v2)
| comparison (needed for bounded verifier)

## Detailed Description

### template<class TYPE>
struct Gaudi::Utils::PropertyTypeTraits< TYPE >

helper structure to define the types for properties

For implementation of SimpleProperty<TYPE> one needs:

- "default constructor"
- "smart copy-constructor"
- "smart destructor"
- "assign"
- "less"

For implementation of SimplePropertyRef<TYPE> one needs:

- "copy constructor"
- "smart copy-constructor - "smart destructor" - "assign" - "less"

For all cases one needs to have valid functions:

- StatusCode Gaudi::Parsers::parse ( TYPE& , const std::string& )
- std::ostream& Gaudi::Utils::toStream ( cost TYPE& , std::ostream& )

Author:
  Vanya BELYAEV Ivan.Belyaev@nikhef.nl

Date:
  2009-09-15

Definition at line 46 of file PropertyTypeTraits.h.

## Member Typedef Documentation

template<class TYPE>

typedef const TYPE* Gaudi::Utils::PropertyTypeTraits< TYPE >::CVal

Definition at line 52 of file PropertyTypeTraits.h.

template<class TYPE>

typedef const TYPE& Gaudi::Utils::PropertyTypeTraits< TYPE >::PRef

Definition at line 50 of file PropertyTypeTraits.h.

template<class TYPE>

typedef TYPE* Gaudi::Utils::PropertyTypeTraits< TYPE >::PVal

Definition at line 51 of file PropertyTypeTraits.h.

template<class TYPE>

typedef TYPE Gaudi::Utils::PropertyTypeTraits< TYPE >::Type

Definition at line 49 of file PropertyTypeTraits.h.

## Member Function Documentation

template<class TYPE>

static void Gaudi::Utils::PropertyTypeTraits< TYPE >::assign | ( | Type & | v1,
|  | PRef | v2
| ) |  | `[inline, static]`

assignment

Definition at line 68 of file PropertyTypeTraits.h.

    { v1 = v2 ; }

template<class TYPE>

static PVal Gaudi::Utils::PropertyTypeTraits< TYPE >::copy | ( | PVal * | right,
|  | const bool | own
| ) |  | `[inline, static]`

"smart" copy-constructor

Definition at line 62 of file PropertyTypeTraits.h.

          {
            if ( !own ) { return right ; }
            return new_ ( *right ) ;
          }

template<class TYPE>

static void Gaudi::Utils::PropertyTypeTraits< TYPE >::dele | ( | PVal | right,
|  | const bool | own
| ) |  | `[inline, static]`

"smart" destructor

Definition at line 59 of file PropertyTypeTraits.h.

          { if ( own ) { delete right ; } }

template<class TYPE>

static bool Gaudi::Utils::PropertyTypeTraits< TYPE >::less | ( | const Type & | v1,
|  | const Type & | v2
| ) |  | `[inline, static]`

comparison (needed for bounded verifier)

Definition at line 70 of file PropertyTypeTraits.h.

          { return v1 < v2 ; }

template<class TYPE>

static PVal Gaudi::Utils::PropertyTypeTraits< TYPE >::new_ | ( | const Type & | right ) | `[inline, static]`

some kind of copy constructor

Definition at line 57 of file PropertyTypeTraits.h.

    { return new Type(right) ; }

template<class TYPE>

static PVal Gaudi::Utils::PropertyTypeTraits< TYPE >::new_ | ( | ) | `[inline, static]`

some kind of default constructor

Definition at line 55 of file PropertyTypeTraits.h.

    { return new Type(     ) ; }

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiKernel/GaudiKernel/PropertyTypeTraits.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines