ATLAS Offline Software
Public Types | Static Public Member Functions | List of all members
SG::BaseList< T > Struct Template Reference

Represent a list of base classes. More...

#include <Bases.h>

Collaboration diagram for SG::BaseList< T >:

Public Types

using Base1 = NoBase
 

Static Public Member Functions

template<class CALLABLE >
static auto foreach_ (CALLABLE f, bool=false)
 Iterate over base classes. More...
 

Detailed Description

template<class... T>
struct SG::BaseList< T >

Represent a list of base classes.

This generic definition is used only for the case of an empty base class list; all others use the specialization below.

Definition at line 78 of file Bases.h.

Member Typedef Documentation

◆ Base1

template<class... T>
using SG::BaseList< T >::Base1 = NoBase

Definition at line 82 of file Bases.h.

Member Function Documentation

◆ foreach_()

template<class... T>
template<class CALLABLE >
static auto SG::BaseList< T >::foreach_ ( CALLABLE  f,
bool  = false 
)
inlinestatic

Iterate over base classes.

Parameters
fObject to call for each base class.
is_virtualTrue if we got to this base via virtual derivation.

This is the specialization for the case of no base classes. See the version below for full documentation.

Definition at line 95 of file Bases.h.

96  {
97  // Need to find the return type.
98  using return_t = decltype (f (static_cast<void*> (nullptr), false));
99  return return_t (false);
100  }

The documentation for this struct was generated from the following file:
hist_file_dump.f
f
Definition: hist_file_dump.py:135