DataBucket
class for ConstDataVector
.
More...
#include <ConstDataVector.h>
|
| DVLConstDataVectorBucket (ConstDataVector< DV > *data) |
| Constructor from a payload object. More...
|
|
| DVLConstDataVectorBucket (std::unique_ptr< ConstDataVector< DV > > data) |
| Constructor from a payload object. More...
|
|
virtual void * | cast (CLID clid, IRegisterTransient *irt=0, bool isConst=true) override |
| Return the contents of the DataBucket , converted to type given by clid. More...
|
|
virtual void * | cast (const std::type_info &tinfo, IRegisterTransient *irt=0, bool isConst=true) override |
| Return the contents of the DataBucket , converted to type given by std::type_info. More...
|
|
virtual void * | cast (CLID clid, const std::type_info &tinfo, SG::IRegisterTransient *irt=0, bool isConst=true) override |
| Return the contents of the DataBucket , converted to type given by clid. More...
|
|
template<class T > |
T * | cast (SG::IRegisterTransient *irt=0, bool isConst=true) |
| Return the contents of the DataBucket , converted to type T. More...
|
|
virtual const CLID & | clID () const override |
| The CLID for the class of object we're holding. More...
|
|
virtual const std::type_info & | tinfo () const override |
| The std::type_info for the class of object we're holding. More...
|
|
virtual const std::type_info & | tinfo () const =0 |
| Return the type_info for the stored object. More...
|
|
virtual void * | object () override |
|
| operator DV * () |
|
| operator const DV * () const |
|
virtual void | relinquish () override |
| Give up ownership of the DataBucket contents. More...
|
|
virtual void | lock () override |
| If the held object derives from ILockable , call lock() on it. More...
|
|
template<class DV>
class SG::DVLConstDataVectorBucket< DV >
DataBucket
class for ConstDataVector
.
This is just the same as DVLDataBucket
, except that we've got to convert the ConstDataVector
to DataVector
.
Note: Can be used to violate const-correctness. Don't use this yourself!
Definition at line 955 of file ConstDataVector.h.
◆ ent_t
◆ vec_t
◆ DVLConstDataVectorBucket() [1/2]
Constructor from a payload object.
- Parameters
-
data | Object to hold in the bucket. |
◆ DVLConstDataVectorBucket() [2/2]
Constructor from a payload object.
- Parameters
-
data | Object to hold in the bucket. |
◆ cast() [1/4]
Return the contents of the DataBucket
, converted to type given by clid.
Note that only derived->base conversions are allowed here.
- Parameters
-
clid | The class ID to which to convert. |
tinfo | The std::type_info of the type to which to convert. |
irt | To be called if we make a new instance. |
isConst | True if the object being converted is regarded as const. |
This allows the callee to choose whether to use clid or tinfo. Here we use clid.
Reimplemented from SG::DataBucket< DV >.
◆ cast() [2/4]
Return the contents of the DataBucket
, converted to type given by clid.
Note that only derived->base conversions are allowed here.
- Parameters
-
clid | The class ID to which to convert. |
irt | To be called if we make a new instance. |
isConst | True if the object being converted is regarded as const. |
Reimplemented from SG::DataBucket< DV >.
◆ cast() [3/4]
Return the contents of the DataBucket
, converted to type given by std::type_info.
Note that only derived->base conversions are allowed here.
- Parameters
-
clid | The std::type_info of the type to which to convert. |
irt | To be called if we make a new instance. |
isConst | True if the object being converted is regarded as const. |
Reimplemented from SG::DataBucket< DV >.
◆ cast() [4/4]
Return the contents of the DataBucket
, converted to type T.
Note that only derived->base conversions are allowed here. T must have a valid Class ID for this to work.
- Parameters
-
irt | To be called if we make a new instance. |
isConst | True if the object being converted is regarded as const. |
◆ classID()
◆ clID()
◆ cptr()
◆ lock()
◆ object()
|
inlineoverridevirtualinherited |
◆ operator const DV *()
◆ operator DV *()
◆ ptr()
◆ relinquish()
|
inlineoverridevirtualinherited |
◆ tinfo() [1/2]
virtual const std::type_info& DataBucketBase::tinfo |
( |
| ) |
const |
|
pure virtualinherited |
◆ tinfo() [2/2]
◆ tryStaticConversion() [1/2]
Try a conversion using static SG_BASES information.
- Parameters
-
clid | The class ID to which to convert. |
This can all be unfolded at compile time, so is fast, but doesn't take into account SG_ADD_BASES.
◆ tryStaticConversion() [2/2]
Try a conversion using static SG_BASES information.
- Parameters
-
tinfo | The std::type_info of the type to which to convert. |
This can all be unfolded at compile time, so is fast, but doesn't take into account SG_ADD_BASES.
◆ m_clid
◆ m_cnvcopies
◆ m_copies
◆ m_ptr
◆ m_ti
The documentation for this class was generated from the following file: