CellModules
Catch::Ptr< T > Class Template Reference

#include <catch.hpp>

Public Member Functions

 Ptr ()
 
 Ptr (T *p)
 
 Ptr (Ptr const &other)
 
 ~Ptr ()
 
void reset ()
 
Ptroperator= (T *p)
 
Ptroperator= (Ptr const &other)
 
void swap (Ptr &other)
 
T * get ()
 
const T * get () const
 
T & operator* () const
 
T * operator-> () const
 
bool operator! () const
 
 operator SafeBool::type () const
 

Private Attributes

T * m_p
 

Detailed Description

template<typename T>
class Catch::Ptr< T >

Definition at line 398 of file catch.hpp.

Constructor & Destructor Documentation

◆ Ptr() [1/3]

template<typename T >
Catch::Ptr< T >::Ptr ( )
inline

Definition at line 400 of file catch.hpp.

◆ Ptr() [2/3]

template<typename T >
Catch::Ptr< T >::Ptr ( T *  p)
inline

Definition at line 401 of file catch.hpp.

◆ Ptr() [3/3]

template<typename T >
Catch::Ptr< T >::Ptr ( Ptr< T > const &  other)
inline

Definition at line 405 of file catch.hpp.

◆ ~Ptr()

template<typename T >
Catch::Ptr< T >::~Ptr ( )
inline

Definition at line 409 of file catch.hpp.

Member Function Documentation

◆ get() [1/2]

template<typename T >
T * Catch::Ptr< T >::get ( )
inline

Definition at line 429 of file catch.hpp.

◆ get() [2/2]

template<typename T >
const T * Catch::Ptr< T >::get ( ) const
inline

Definition at line 430 of file catch.hpp.

◆ operator SafeBool::type()

template<typename T >
Catch::Ptr< T >::operator SafeBool::type ( ) const
inline

Definition at line 434 of file catch.hpp.

◆ operator!()

template<typename T >
bool Catch::Ptr< T >::operator! ( ) const
inline

Definition at line 433 of file catch.hpp.

◆ operator*()

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

Definition at line 431 of file catch.hpp.

◆ operator->()

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

Definition at line 432 of file catch.hpp.

◆ operator=() [1/2]

template<typename T >
Ptr & Catch::Ptr< T >::operator= ( Ptr< T > const &  other)
inline

Definition at line 423 of file catch.hpp.

◆ operator=() [2/2]

template<typename T >
Ptr & Catch::Ptr< T >::operator= ( T *  p)
inline

Definition at line 418 of file catch.hpp.

◆ reset()

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

Definition at line 413 of file catch.hpp.

◆ swap()

template<typename T >
void Catch::Ptr< T >::swap ( Ptr< T > &  other)
inline

Definition at line 428 of file catch.hpp.

Member Data Documentation

◆ m_p

template<typename T >
T* Catch::Ptr< T >::m_p
private

Definition at line 437 of file catch.hpp.


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