Fast RTPS  Version 2.14.5
Fast RTPS
RefCountedPointer< T >::Instance Class Reference

Class to manage the local pointer instance. More...

#include <RefCountedPointer.hpp>

Public Member Functions

 Instance (const std::shared_ptr< RefCountedPointer< T > > &parent)
 Constructor. More...
 
 ~Instance ()
 Destructor. More...
 
 Instance (const Instance &)=delete
 
Instanceoperator= (const Instance &)=delete
 
 Instance (Instance &&)=default
 
Instanceoperator= (Instance &&)=default
 
 operator bool () const
 operator to check if the pointer is valid. More...
 
T * operator-> () const
 operator to call the T methods. More...
 

Detailed Description

template<typename T>
class eprosima::fastrtps::RefCountedPointer< T >::Instance

Class to manage the local pointer instance.

It will increase the reference count on construction and decrease it on destruction. Provides a facade to access the pointee.

Constructor & Destructor Documentation

◆ Instance() [1/3]

Instance ( const std::shared_ptr< RefCountedPointer< T > > &  parent)
inlineexplicit

Constructor.

Parameters
parentShared pointer reference to its RefCountedPointer.

◆ ~Instance()

~Instance ( )
inline

Destructor.

◆ Instance() [2/3]

Instance ( const Instance )
delete

◆ Instance() [3/3]

Instance ( Instance &&  )
default

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inline

operator to check if the pointer is valid.

◆ operator->()

T * operator-> ( ) const
inline

operator to call the T methods.

◆ operator=() [1/2]

Instance & operator= ( const Instance )
delete

◆ operator=() [2/2]

Instance & operator= ( Instance &&  )
default

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