Fast RTPS  Version 2.14.5
Fast RTPS
Loading...
Searching...
No Matches
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.
 
 ~Instance ()
 Destructor.
 
 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.
 
T * operator-> () const
 operator to call the T methods.
 

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]

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

Constructor.

Parameters
parentShared pointer reference to its RefCountedPointer.

◆ ~Instance()

template<typename T >
~Instance ( )
inline

Destructor.

◆ Instance() [2/3]

template<typename T >
Instance ( const Instance & )
delete

◆ Instance() [3/3]

template<typename T >
Instance ( Instance && )
default

Member Function Documentation

◆ operator bool()

template<typename T >
operator bool ( ) const
inline

operator to check if the pointer is valid.

◆ operator->()

template<typename T >
T * operator-> ( ) const
inline

operator to call the T methods.

◆ operator=() [1/2]

template<typename T >
Instance & operator= ( const Instance & )
delete

◆ operator=() [2/2]

template<typename T >
Instance & operator= ( Instance && )
default

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