This class template manages an external member, a member declared to be external to the storage of a type. More...
#include <external.hpp>
Public Types | |
using | type = T |
Public Member Functions | |
external ()=default | |
Default constructor. More... | |
external (const external< T > &other) noexcept | |
Copy constructor. More... | |
external (std::shared_ptr< T > pointer) noexcept | |
Constructor from a shared pointer. More... | |
external (T *pointer, bool locked=false) noexcept | |
Constructor from a pointer. More... | |
const T * | get () const noexcept |
Get pointer. More... | |
T * | get () noexcept |
Get pointer. More... | |
std::shared_ptr< T > | get_shared_ptr () noexcept |
Get shared pointer. More... | |
bool | is_locked () const noexcept |
Checks if locked. More... | |
void | lock () noexcept |
Locks the managed object. More... | |
operator bool () const noexcept | |
Checks if not null. More... | |
bool | operator!= (const external< T > &other) const |
Compares they don't manages the same object. More... | |
const T & | operator* () const noexcept |
Dereference object. More... | |
T & | operator* () noexcept |
Dereference object. More... | |
const T * | operator-> () const noexcept |
Dereference object member. More... | |
T * | operator-> () noexcept |
Dereference object member. More... | |
external< T > & | operator= (const external< T > &other) |
Assignment. More... | |
bool | operator== (const external< T > &other) const |
Compares they manage the same object or empty both. More... | |
~external ()=default | |
Destructor. More... | |
Private Attributes | |
bool | locked_ {false} |
std::shared_ptr< T > | pointer_ |
This class template manages an external member, a member declared to be external to the storage of a type.
Definition at line 29 of file external.hpp.
using eprosima::fastcdr::external< T >::type = T |
Definition at line 33 of file external.hpp.
|
default |
Default constructor.
|
inlinenoexcept |
Constructor from a pointer.
Definition at line 39 of file external.hpp.
|
inlinenoexcept |
Constructor from a shared pointer.
Definition at line 48 of file external.hpp.
|
inlinenoexcept |
Copy constructor.
Definition at line 55 of file external.hpp.
|
default |
Destructor.
|
inlinenoexcept |
Get pointer.
Definition at line 124 of file external.hpp.
|
inlinenoexcept |
Get pointer.
Definition at line 118 of file external.hpp.
|
inlinenoexcept |
Get shared pointer.
Definition at line 130 of file external.hpp.
|
inlinenoexcept |
Checks if locked.
Definition at line 168 of file external.hpp.
|
inlinenoexcept |
Locks the managed object.
Definition at line 174 of file external.hpp.
|
inlinenoexcept |
Checks if not null.
Definition at line 162 of file external.hpp.
|
inline |
Compares they don't manages the same object.
Definition at line 155 of file external.hpp.
|
inlinenoexcept |
Dereference object.
Definition at line 112 of file external.hpp.
|
inlinenoexcept |
Dereference object.
Definition at line 106 of file external.hpp.
|
inlinenoexcept |
Dereference object member.
Definition at line 142 of file external.hpp.
|
inlinenoexcept |
Dereference object member.
Definition at line 136 of file external.hpp.
|
inline |
Assignment.
Definition at line 70 of file external.hpp.
|
inline |
Compares they manage the same object or empty both.
Definition at line 148 of file external.hpp.
|
private |
Definition at line 183 of file external.hpp.
|
private |
Definition at line 181 of file external.hpp.