ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
SG::BaseInfoBaseImpl::info Struct Reference

Structure to hold information about one base. More...

Collaboration diagram for SG::BaseInfoBaseImpl::info:

Public Member Functions

 info (BaseInfoBase::castfn_t *converter=0, BaseInfoBase::castfn_t *converterTo=0, bool is_virtual=false)
 Constructor. converter* and is_virtual are as for add_info. More...
 

Public Attributes

BaseInfoBase::castfn_tm_converter
 Converter function. More...
 
BaseInfoBase::castfn_tm_converterTo
 Converter function. More...
 
bool m_is_virtual
 True if the derivation from this base to T is via virtual derivation. More...
 

Detailed Description

Structure to hold information about one base.

Definition at line 31 of file BaseInfo.cxx.

Constructor & Destructor Documentation

◆ info()

SG::BaseInfoBaseImpl::info::info ( BaseInfoBase::castfn_t converter = 0,
BaseInfoBase::castfn_t converterTo = 0,
bool  is_virtual = false 
)

Constructor. converter* and is_virtual are as for add_info.

Convenience constructor.

Parameters
converterConverter function. This should be able to convert a T* to a pointer to this base.
converterToConverter function. This should be able to convert a pointer to this base to a T*.
is_virtualTrue if the derivation from this base to T is via virtual derivation.

The defaults are there just so this class can be used with STL containers that require a default ctor.

Definition at line 514 of file BaseInfo.cxx.

517  : m_converter (converter),
518  m_converterTo (converterTo),
519  m_is_virtual (is_virtual)
520 {
521 }

Member Data Documentation

◆ m_converter

BaseInfoBase::castfn_t* SG::BaseInfoBaseImpl::info::m_converter

Converter function.

Takes a T* and converts to a pointer to this base.

Definition at line 39 of file BaseInfo.cxx.

◆ m_converterTo

BaseInfoBase::castfn_t* SG::BaseInfoBaseImpl::info::m_converterTo

Converter function.

Takes a pointer to this base and converts to T*. to this base.

Definition at line 44 of file BaseInfo.cxx.

◆ m_is_virtual

bool SG::BaseInfoBaseImpl::info::m_is_virtual

True if the derivation from this base to T is via virtual derivation.

Definition at line 48 of file BaseInfo.cxx.


The documentation for this struct was generated from the following file:
SG::BaseInfoBaseImpl::info::m_converter
BaseInfoBase::castfn_t * m_converter
Converter function.
Definition: BaseInfo.cxx:39
SG::BaseInfoBaseImpl::info::m_converterTo
BaseInfoBase::castfn_t * m_converterTo
Converter function.
Definition: BaseInfo.cxx:44
SG::BaseInfoBaseImpl::info::m_is_virtual
bool m_is_virtual
True if the derivation from this base to T is via virtual derivation.
Definition: BaseInfo.cxx:48