Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012
Static Public Member Functions

Containers::traits< CONTAINER, DATATYPE > Struct Template Reference

Definition of the container traits class. More...

#include <KeyedTraits.h>

Inheritance diagram for Containers::traits< CONTAINER, DATATYPE >:
Inheritance graph
[legend]
Collaboration diagram for Containers::traits< CONTAINER, DATATYPE >:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static bool checkBounds (const std::vector< DATATYPE * > *cnt, const typename DATATYPE::key_type &k)
 Allow to check the access to container elements for consistency.

Detailed Description

template<class CONTAINER, class DATATYPE>
struct Containers::traits< CONTAINER, DATATYPE >

Definition of the container traits class.

Select if container-checks should be performed by switching on/off the macro CHECK_KEYED_CONTAINER.

Author:
M.Frank CERN/LHCb
Version:
1.0

Definition at line 107 of file KeyedTraits.h.


Member Function Documentation

template<class CONTAINER , class DATATYPE >
static bool Containers::traits< CONTAINER, DATATYPE >::checkBounds ( const std::vector< DATATYPE * > *  cnt,
const typename DATATYPE::key_type &  k 
) [inline, static]

Allow to check the access to container elements for consistency.

Definition at line 110 of file KeyedTraits.h.

                                                                {
#ifdef CHECK_KEYED_CONTAINER
      return size_t(cnt->size()) > size_t(traits::hash(k));
#else
      return true;
#endif
    }

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:47 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004