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_t * m_converter
 Converter function.
BaseInfoBase::castfn_t * m_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 32 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 530 of file BaseInfo.cxx.

533 : m_converter (converter),
534 m_converterTo (converterTo),
535 m_is_virtual (is_virtual)
536{
537}
bool m_is_virtual
True if the derivation from this base to T is via virtual derivation.
Definition BaseInfo.cxx:49
BaseInfoBase::castfn_t * m_converter
Converter function.
Definition BaseInfo.cxx:40
BaseInfoBase::castfn_t * m_converterTo
Converter function.
Definition BaseInfo.cxx:45

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 40 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 45 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 49 of file BaseInfo.cxx.


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