ToolHandleInfo Class Reference

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

#include </scratch/z5/marcocle/GaudiDocs/lhcb-release/996/GAUDI/GAUDI_v26r4/InstallArea/x86_64-slc6-gcc48-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
 
const std::string toolComponentType (const IInterface *parent) const
 
const std::string toolParentName (const IInterface *parent) const
 
virtual ~ToolHandleInfo ()=default
 
bool isPublic () const
 
bool createIf () const
 
const IInterfaceparent () const
 
const std::string toolComponentType (const IInterface *parent) const
 
const std::string toolParentName (const IInterface *parent) const
 

Protected Member Functions

 ToolHandleInfo (const IInterface *parent=0, bool createIf=true)
 
 ToolHandleInfo (const IInterface *parent=0, bool createIf=true)
 

Private Attributes

const IInterfacem_parent
 
bool m_createIf
 

Detailed Description

General info and helper functions for toolhandles and arrays.

Definition at line 21 of file ToolHandle.h.

Constructor & Destructor Documentation

ToolHandleInfo::ToolHandleInfo ( const IInterface parent = 0,
bool  createIf = true 
)
inlineprotected

Definition at line 23 of file ToolHandle.h.

24  : m_parent(parent), m_createIf(createIf)
25  {}
const IInterface * m_parent
Definition: ToolHandle.h:50
bool createIf() const
Definition: ToolHandle.h:32
virtual ToolHandleInfo::~ToolHandleInfo ( )
virtualdefault
ToolHandleInfo::ToolHandleInfo ( const IInterface parent = 0,
bool  createIf = true 
)
inlineprotected

Definition at line 23 of file ToolHandle.h.

24  : m_parent(parent), m_createIf(createIf)
25  {}
const IInterface * m_parent
Definition: ToolHandle.h:50
bool createIf() const
Definition: ToolHandle.h:32
virtual ToolHandleInfo::~ToolHandleInfo ( )
virtualdefault

Member Function Documentation

bool ToolHandleInfo::createIf ( ) const
inline

Definition at line 32 of file ToolHandle.h.

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

Definition at line 32 of file ToolHandle.h.

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

Definition at line 30 of file ToolHandle.h.

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

Definition at line 30 of file ToolHandle.h.

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

Definition at line 34 of file ToolHandle.h.

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

Definition at line 34 of file ToolHandle.h.

34 { return m_parent; }
const IInterface * m_parent
Definition: ToolHandle.h:50
const std::string ToolHandleInfo::toolComponentType ( const IInterface parent) const
inline

Definition at line 39 of file ToolHandle.h.

39  {
40  return parent ? "PrivateTool" : "PublicTool";
41  }
const std::string ToolHandleInfo::toolComponentType ( const IInterface parent) const
inline

Definition at line 39 of file ToolHandle.h.

39  {
40  return parent ? "PrivateTool" : "PublicTool";
41  }
const std::string ToolHandleInfo::toolParentName ( const IInterface parent) const
inline

Definition at line 43 of file ToolHandle.h.

43  {
44  if (!parent) return "ToolSvc";
45  const INamedInterface* pNamed = dynamic_cast<const INamedInterface*>(parent);
46  return pNamed ? pNamed->name() : "" ;
47  }
virtual const std::string & name() const =0
Retrieve the name of the instance.
const IInterface * parent() const
Definition: ToolHandle.h:34
IInterface compliant class extending IInterface with the name() method.
const std::string ToolHandleInfo::toolParentName ( const IInterface parent) const
inline

Definition at line 43 of file ToolHandle.h.

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

Member Data Documentation

bool ToolHandleInfo::m_createIf
private

Definition at line 51 of file ToolHandle.h.

const IInterface * ToolHandleInfo::m_parent
private

Definition at line 50 of file ToolHandle.h.


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