| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ToolHandleInfo Class Reference

General info and helper functions for toolhandles and arrays. More...

`#include <GaudiKernel/ToolHandle.h>`

Inheritance diagram for ToolHandleInfo:
[legend]
Collaboration diagram for ToolHandleInfo:
[legend]

## Public Member Functions
virtual | ~ToolHandleInfo ()=default
bool | isPublic () const noexcept
bool | createIf () const noexcept
const IInterface * | parent () const noexcept

## Static Public Member Functions
static std::string | toolComponentType (const IInterface *parent)
static std::string | toolParentName (const IInterface *parent)

## Protected Member Functions
| ToolHandleInfo (const IInterface *parent=nullptr, bool createIf=true)

## Protected Attributes
const IInterface * | m_parent = nullptr
bool | m_createIf {true}

## Detailed Description

General info and helper functions for toolhandles and arrays.

Definition at line 25 of file ToolHandle.h.

## Constructor & Destructor Documentation

ToolHandleInfo::ToolHandleInfo | ( | const IInterface * | parent = `nullptr`,
|  | bool | createIf = `true`
| ) |  |
| inline protected

Definition at line 30 of file ToolHandle.h.

31 : m_parent(parent), m_createIf(createIf)
32 {}
ToolHandleInfo::m_parent
const IInterface * m_parent
Definition: ToolHandle.h:61
ToolHandleInfo::m_createIf
bool m_createIf
Definition: ToolHandle.h:62
ToolHandleInfo::createIf
bool createIf() const noexcept
Definition: ToolHandle.h:40

virtual ToolHandleInfo::~ToolHandleInfo | ( |  | ) |
| virtual default

## Member Function Documentation

bool ToolHandleInfo::createIf | ( |  | ) | const
| inline noexcept

Definition at line 40 of file ToolHandle.h.

40 { return m_createIf; }
ToolHandleInfo::m_createIf
bool m_createIf
Definition: ToolHandle.h:62

bool ToolHandleInfo::isPublic | ( |  | ) | const
| inline noexcept

Definition at line 38 of file ToolHandle.h.

38 { return !m_parent; }
ToolHandleInfo::m_parent
const IInterface * m_parent
Definition: ToolHandle.h:61

const IInterface* ToolHandleInfo::parent | ( |  | ) | const
| inline noexcept

Definition at line 42 of file ToolHandle.h.

42 { return m_parent; }
ToolHandleInfo::m_parent
const IInterface * m_parent
Definition: ToolHandle.h:61

static std::string ToolHandleInfo::toolComponentType | ( | const IInterface * | parent | ) |
| inline static

Definition at line 48 of file ToolHandle.h.

49 {
50 return parent ? "PrivateTool" : "PublicTool";
51 }

static std::string ToolHandleInfo::toolParentName | ( | const IInterface * | parent | ) |
| inline static

Definition at line 53 of file ToolHandle.h.

54 {
55 auto * pNamed = ( parent ? dynamic_cast<const INamedInterface*>(parent) : nullptr );
56 return ( !parent ? "ToolSvc" : ( pNamed ? pNamed->name() : "" ) );
57 }
ToolHandleInfo::parent
const IInterface * parent() const noexcept
Definition: ToolHandle.h:42
INamedInterface
IInterface compliant class extending IInterface with the name() method.
Definition: INamedInterface.h:15

## Member Data Documentation

bool ToolHandleInfo::m_createIf {true}
| protected

Definition at line 62 of file ToolHandle.h.

const IInterface* ToolHandleInfo::m_parent = nullptr
| protected

Definition at line 61 of file ToolHandle.h.

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

- GaudiKernel/GaudiKernel/ToolHandle.h