scc 2025.09
SystemC components library
tlm::scc::tlm_payload_shared_ptr< T > Class Template Reference

Public Member Functions

 tlm_payload_shared_ptr () noexcept=default
 Default constructor, creates a unique_ptr that owns nothing.
 tlm_payload_shared_ptr (T *p) noexcept
 Takes ownership of the pointer.
 tlm_payload_shared_ptr (tlm_payload_shared_ptr const &p) noexcept
 Copy constructor.
 tlm_payload_shared_ptr (tlm_payload_shared_ptr &&p) noexcept
 Move constructor.´
 ~tlm_payload_shared_ptr ()
 destructor
tlm_payload_shared_ptroperator= (tlm_payload_shared_ptr const &p) noexcept
 Copy assignment operator.
tlm_payload_shared_ptroperator= (tlm_payload_shared_ptr &&p) noexcept
 Move assignment operator.
tlm_payload_shared_ptroperator= (T *p) noexcept
 raw pointer assignment operator.
T & operator* () const noexcept
 Dereference the stored pointer.
T * operator-> () const noexcept
 Return the stored pointer.
T * get () const noexcept
 Return the stored pointer.
 operator bool () const noexcept

Detailed Description

template<typename T>
class tlm::scc::tlm_payload_shared_ptr< T >

Definition at line 27 of file tlm_gp_shared.h.

Constructor & Destructor Documentation

◆ tlm_payload_shared_ptr() [1/3]

template<typename T>
tlm::scc::tlm_payload_shared_ptr< T >::tlm_payload_shared_ptr ( T * p)
inlinenoexcept

Takes ownership of the pointer.

Definition at line 35 of file tlm_gp_shared.h.

◆ tlm_payload_shared_ptr() [2/3]

template<typename T>
tlm::scc::tlm_payload_shared_ptr< T >::tlm_payload_shared_ptr ( tlm_payload_shared_ptr< T > const & p)
inlinenoexcept

Copy constructor.

Definition at line 41 of file tlm_gp_shared.h.

◆ tlm_payload_shared_ptr() [3/3]

template<typename T>
tlm::scc::tlm_payload_shared_ptr< T >::tlm_payload_shared_ptr ( tlm_payload_shared_ptr< T > && p)
inlinenoexcept

Move constructor.´

Definition at line 47 of file tlm_gp_shared.h.

◆ ~tlm_payload_shared_ptr()

template<typename T>
tlm::scc::tlm_payload_shared_ptr< T >::~tlm_payload_shared_ptr ( )
inline

destructor

Definition at line 52 of file tlm_gp_shared.h.

Member Function Documentation

◆ get()

template<typename T>
T * tlm::scc::tlm_payload_shared_ptr< T >::get ( ) const
inlinenoexcept

Return the stored pointer.

Definition at line 91 of file tlm_gp_shared.h.

◆ operator bool()

template<typename T>
tlm::scc::tlm_payload_shared_ptr< T >::operator bool ( ) const
inlinenoexcept

Definition at line 93 of file tlm_gp_shared.h.

◆ operator*()

template<typename T>
T & tlm::scc::tlm_payload_shared_ptr< T >::operator* ( ) const
inlinenoexcept

Dereference the stored pointer.

Definition at line 85 of file tlm_gp_shared.h.

◆ operator->()

template<typename T>
T * tlm::scc::tlm_payload_shared_ptr< T >::operator-> ( ) const
inlinenoexcept

Return the stored pointer.

Definition at line 88 of file tlm_gp_shared.h.

◆ operator=() [1/3]

template<typename T>
tlm_payload_shared_ptr & tlm::scc::tlm_payload_shared_ptr< T >::operator= ( T * p)
inlinenoexcept

raw pointer assignment operator.

Definition at line 75 of file tlm_gp_shared.h.

◆ operator=() [2/3]

template<typename T>
tlm_payload_shared_ptr & tlm::scc::tlm_payload_shared_ptr< T >::operator= ( tlm_payload_shared_ptr< T > && p)
inlinenoexcept

Move assignment operator.

Definition at line 66 of file tlm_gp_shared.h.

◆ operator=() [3/3]

template<typename T>
tlm_payload_shared_ptr & tlm::scc::tlm_payload_shared_ptr< T >::operator= ( tlm_payload_shared_ptr< T > const & p)
inlinenoexcept

Copy assignment operator.

Definition at line 57 of file tlm_gp_shared.h.


The documentation for this class was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/sysc/tlm/scc/tlm_gp_shared.h