ATLAS Offline Software
Loading...
Searching...
No Matches
ClassID_traits.h File Reference

a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataObject More...

#include "AthenaKernel/ClassName.h"
#include "GaudiKernel/ClassID.h"
#include <string>
#include <typeinfo>
#include <type_traits>
#include <concepts>
Include dependency graph for Control/AthenaKernel/AthenaKernel/ClassID_traits.h:

Go to the source code of this file.

Classes

class  ClassID_trait_dummy
class  ClassID_traits< T >
 Default, invalid implementation of ClassID_traits. More...
struct  ClassID_traits< T >
 This specialization is used for classes deriving from DataObject. More...

Macros

#define MY_STATIC_ASSERT(B)
 internal use: issues a compilation error when condition B is false

Detailed Description

a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataObject

Author
Paolo Calafiura pcala.nosp@m.fiur.nosp@m.a@lbl.nosp@m..gov - ATLAS Collaboration

Definition in file Control/AthenaKernel/AthenaKernel/ClassID_traits.h.

Macro Definition Documentation

◆ MY_STATIC_ASSERT

#define MY_STATIC_ASSERT ( B)
Value:
static_assert (B, "You should use the CLASS_DEF macro to define CLID and VERSION")

internal use: issues a compilation error when condition B is false

Definition at line 24 of file Control/AthenaKernel/AthenaKernel/ClassID_traits.h.

24#define MY_STATIC_ASSERT( B ) \
25 static_assert (B, "You should use the CLASS_DEF macro to define CLID and VERSION")