ttg_parsec::Ptr< T > Struct Template Reference

Documentation

template<typename T>
struct ttg_parsec::Ptr< T >

Definition at line 138 of file ptr.h.

Public Types

using value_type = std::decay_t< T >
 

Public Member Functions

 Ptr ()=default
 
 Ptr (const Ptr &p)
 
 Ptr (Ptr &&p)=default
 
 ~Ptr ()=default
 
Ptroperator= (const Ptr &p)
 
Ptroperator= (Ptr &&p)=default
 
value_typeoperator* () const
 
value_typeoperator-> () const
 
bool is_valid () const
 
void reset ()
 

Friends

template<typename... Args>
Ptr< T > make_ptr (Args &&... args)
 
template<typename S >
Ptr< std::decay_t< S > > get_ptr (S &&obj)
 
template<typename S >
detail::ttg_data_copy_tdetail::get_copy (Ptr< S > &p)
 

Member Typedef Documentation

◆ value_type

template<typename T >
using ttg_parsec::Ptr< T >::value_type = std::decay_t<T>

Definition at line 140 of file ptr.h.

Constructor & Destructor Documentation

◆ Ptr() [1/3]

template<typename T >
ttg_parsec::Ptr< T >::Ptr ( )
default

◆ Ptr() [2/3]

template<typename T >
ttg_parsec::Ptr< T >::Ptr ( const Ptr< T > &  p)
inline

Definition at line 169 of file ptr.h.

◆ Ptr() [3/3]

template<typename T >
ttg_parsec::Ptr< T >::Ptr ( Ptr< T > &&  p)
default

◆ ~Ptr()

template<typename T >
ttg_parsec::Ptr< T >::~Ptr ( )
default

Member Function Documentation

◆ is_valid()

template<typename T >
bool ttg_parsec::Ptr< T >::is_valid ( void  ) const
inline

Definition at line 192 of file ptr.h.

◆ operator*()

template<typename T >
value_type& ttg_parsec::Ptr< T >::operator* ( ) const
inline

Definition at line 184 of file ptr.h.

◆ operator->()

template<typename T >
value_type& ttg_parsec::Ptr< T >::operator-> ( ) const
inline

Definition at line 188 of file ptr.h.

◆ operator=() [1/2]

template<typename T >
Ptr& ttg_parsec::Ptr< T >::operator= ( const Ptr< T > &  p)
inline

Definition at line 177 of file ptr.h.

◆ operator=() [2/2]

template<typename T >
Ptr& ttg_parsec::Ptr< T >::operator= ( Ptr< T > &&  p)
default

◆ reset()

template<typename T >
void ttg_parsec::Ptr< T >::reset ( )
inline

Definition at line 196 of file ptr.h.

Friends And Related Function Documentation

◆ detail::get_copy

template<typename T >
template<typename S >
detail::ttg_data_copy_t* detail::get_copy ( Ptr< S > &  p)
friend

◆ get_ptr

template<typename T >
template<typename S >
Ptr<std::decay_t<S> > get_ptr ( S &&  obj)
friend

◆ make_ptr

template<typename T >
template<typename... Args>
Ptr<T> make_ptr ( Args &&...  args)
friend

Definition at line 270 of file ptr.h.


The documentation for this struct was generated from the following files: