ATLAS Offline Software
Loading...
Searching...
No Matches
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.

Public Attributes

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

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 515 of file BaseInfo.cxx.

518 : m_converter (converter),
519 m_converterTo (converterTo),
520 m_is_virtual (is_virtual)
521{
522}
bool m_is_virtual
True if the derivation from this base to T is via virtual derivation.
Definition BaseInfo.cxx:48
BaseInfoBase::castfn_t * m_converter
Converter function.
Definition BaseInfo.cxx:39
BaseInfoBase::castfn_t * m_converterTo
Converter function.
Definition BaseInfo.cxx:44

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: