RTI Connext Modern C++ API
Version 5.3.0
|
<<move-only-type>> Gives temporary access to a member of another DynamicData object. More...
#include <DynamicDataImpl.hpp>
Public Member Functions | |
~LoanedDynamicData () | |
Returns the loan if it has not been returned with return_loan() | |
void | return_loan () |
Explicitly returns the loan. | |
DynamicData & | get () |
Obtains the loaned DynamicData object representing a member of DynamicData object. | |
const DynamicData & | get () const |
Obtains the loaned DynamicData object representing a member of DynamicData object. | |
operator DynamicData & () | |
Conversion to DynamicData for convenience. | |
operator const DynamicData & () const | |
Conversion to DynamicData for convenience. | |
LoanedDynamicData & | operator= (LoanedDynamicData &&other) OMG_NOEXCEPT |
<<C++11>> Allows reusing a LoanedDynamicData instance. | |
<<move-only-type>> Gives temporary access to a member of another DynamicData object.
This type can only be instantiated through dds::core::xtypes::DynamicData::loan_value. This type can't be copied. It can be moved <<C++11>>.
An instance of this type contains a direct reference to a member of another DynamicData object, retrieved with get(). That object can be both inspected or modified and has to be eventually returned.
There are three ways to return the loan:
rti::core::xtypes::LoanedDynamicData::~LoanedDynamicData | ( | ) |
Returns the loan if it has not been returned with return_loan()
void rti::core::xtypes::LoanedDynamicData::return_loan | ( | ) |
Explicitly returns the loan.
|
inline |
Obtains the loaned DynamicData object representing a member of DynamicData object.
The object can be modified and the changes will take effect in the DynamicData object that contains this one.
|
inline |
Obtains the loaned DynamicData object representing a member of DynamicData object.
|
inline |
Conversion to DynamicData for convenience.
|
inline |
Conversion to DynamicData for convenience.
|
inline |
<<C++11>> Allows reusing a LoanedDynamicData instance.
Since copying a LoanedDynamicData is disabled, only the move-assignment operator is allowed.
This operation returns the loan that *this
currently holds.
For example: