ToolHandleInfo Class Reference

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

#include </tmp/marcocle/lhcb-release/1122/GAUDI/GAUDI_v27r0/InstallArea/x86_64-slc6-gcc49-opt/include/GaudiKernel/ToolHandle.h>

Inheritance diagram for ToolHandleInfo:
Collaboration diagram for ToolHandleInfo:

Public Member Functions

virtual ~ToolHandleInfo ()=default
 
bool isPublic () const
 
bool createIf () const
 
const IInterfaceparent () const
 
virtual ~ToolHandleInfo ()=default
 
bool isPublic () const
 
bool createIf () const
 
const IInterfaceparent () const
 

Static Public Member Functions

static std::string toolComponentType (const IInterface *parent)
 
static std::string toolParentName (const IInterface *parent)
 
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)
 
 ToolHandleInfo (const IInterface *parent=nullptr, bool createIf=true)
 

Protected Attributes

const IInterfacem_parent
 
bool m_createIf
 

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 
)
inlineprotected

Definition at line 27 of file ToolHandle.h.

28  : m_parent(parent), m_createIf(createIf)
29  {}
const IInterface * m_parent
Definition: ToolHandle.h:54
bool createIf() const
Definition: ToolHandle.h:36
virtual ToolHandleInfo::~ToolHandleInfo ( )
virtualdefault
ToolHandleInfo::ToolHandleInfo ( const IInterface parent = nullptr,
bool  createIf = true 
)
inlineprotected

Definition at line 27 of file ToolHandle.h.

28  : m_parent(parent), m_createIf(createIf)
29  {}
const IInterface * m_parent
Definition: ToolHandle.h:54
bool createIf() const
Definition: ToolHandle.h:36
virtual ToolHandleInfo::~ToolHandleInfo ( )
virtualdefault

Member Function Documentation

bool ToolHandleInfo::createIf ( ) const
inline

Definition at line 36 of file ToolHandle.h.

36 { return m_createIf; }
bool ToolHandleInfo::createIf ( ) const
inline

Definition at line 36 of file ToolHandle.h.

36 { return m_createIf; }
bool ToolHandleInfo::isPublic ( ) const
inline

Definition at line 34 of file ToolHandle.h.

34 { return !m_parent; }
const IInterface * m_parent
Definition: ToolHandle.h:54
bool ToolHandleInfo::isPublic ( ) const
inline

Definition at line 34 of file ToolHandle.h.

34 { return !m_parent; }
const IInterface * m_parent
Definition: ToolHandle.h:54
const IInterface* ToolHandleInfo::parent ( void  ) const
inline

Definition at line 38 of file ToolHandle.h.

38 { return m_parent; }
const IInterface * m_parent
Definition: ToolHandle.h:54
const IInterface* ToolHandleInfo::parent ( ) const
inline

Definition at line 38 of file ToolHandle.h.

38 { return m_parent; }
const IInterface * m_parent
Definition: ToolHandle.h:54
static std::string ToolHandleInfo::toolComponentType ( const IInterface parent)
inlinestatic

Definition at line 43 of file ToolHandle.h.

43  {
44  return parent ? "PrivateTool" : "PublicTool";
45  }
static std::string ToolHandleInfo::toolComponentType ( const IInterface parent)
inlinestatic

Definition at line 43 of file ToolHandle.h.

43  {
44  return parent ? "PrivateTool" : "PublicTool";
45  }
static std::string ToolHandleInfo::toolParentName ( const IInterface parent)
inlinestatic

Definition at line 47 of file ToolHandle.h.

47  {
48  if (!parent) return "ToolSvc";
49  const INamedInterface* pNamed = dynamic_cast<const INamedInterface*>(parent);
50  return pNamed ? pNamed->name() : "";
51  }
virtual const std::string & name() const =0
Retrieve the name of the instance.
const IInterface * parent() const
Definition: ToolHandle.h:38
IInterface compliant class extending IInterface with the name() method.
static std::string ToolHandleInfo::toolParentName ( const IInterface parent)
inlinestatic

Definition at line 47 of file ToolHandle.h.

47  {
48  if (!parent) return "ToolSvc";
49  const INamedInterface* pNamed = dynamic_cast<const INamedInterface*>(parent);
50  return pNamed ? pNamed->name() : "";
51  }
virtual const std::string & name() const =0
Retrieve the name of the instance.
const IInterface * parent() const
Definition: ToolHandle.h:38
IInterface compliant class extending IInterface with the name() method.

Member Data Documentation

bool ToolHandleInfo::m_createIf
protected

Definition at line 55 of file ToolHandle.h.

const IInterface * ToolHandleInfo::m_parent
protected

Definition at line 54 of file ToolHandle.h.


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