RTI Connext Modern C++ API Version 7.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() More... | |
void | return_loan () |
Explicitly returns the loan. More... | |
DynamicData & | get () |
Obtains the loaned DynamicData object representing a member of DynamicData object. More... | |
const DynamicData & | get () const |
Obtains the loaned DynamicData object representing a member of DynamicData object. More... | |
operator DynamicData & () | |
Conversion to DynamicData for convenience. More... | |
operator const DynamicData & () const | |
Conversion to DynamicData for convenience. More... | |
LoanedDynamicData (LoanedDynamicData &&other) OMG_NOEXCEPT | |
<<C++11>> Move constructor. More... | |
LoanedDynamicData & | operator= (LoanedDynamicData &&other) OMG_NOEXCEPT |
<<C++11>> Move-assignment operator. More... | |
<<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()
|
inline |
<<C++11>> Move constructor.
A LoanedDynamicData can only be moved, not copied.
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>> Move-assignment operator.
Since copying a LoanedDynamicData is disabled, only the move-assignment operator is allowed.
This operation returns the loan that *this
currently holds.
For example: