orocos_kdl
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
KDL::scoped_ptr< T > Class Template Reference

#include <scoped_ptr.hpp>

Public Member Functions

T * get () const
 
T * operator-> ()
 
const T * operator-> () const
 
T * release ()
 
void reset (T *p=0)
 
 scoped_ptr ()
 
 scoped_ptr (T *p)
 
 ~scoped_ptr ()
 

Private Member Functions

scoped_ptroperator= (const scoped_ptr &)
 
 scoped_ptr (const scoped_ptr &)
 

Private Attributes

T * ptr_
 

Friends

void swap (scoped_ptr< T > &a, scoped_ptr< T > &b)
 

Detailed Description

template<typename T>
class KDL::scoped_ptr< T >

Definition at line 55 of file scoped_ptr.hpp.

Constructor & Destructor Documentation

◆ scoped_ptr() [1/3]

template<typename T >
KDL::scoped_ptr< T >::scoped_ptr ( )
inline

Definition at line 62 of file scoped_ptr.hpp.

◆ scoped_ptr() [2/3]

template<typename T >
KDL::scoped_ptr< T >::scoped_ptr ( T *  p)
inlineexplicit

Definition at line 63 of file scoped_ptr.hpp.

◆ ~scoped_ptr()

template<typename T >
KDL::scoped_ptr< T >::~scoped_ptr ( )
inline

Definition at line 65 of file scoped_ptr.hpp.

◆ scoped_ptr() [3/3]

template<typename T >
KDL::scoped_ptr< T >::scoped_ptr ( const scoped_ptr< T > &  )
private

Member Function Documentation

◆ get()

template<typename T >
T* KDL::scoped_ptr< T >::get ( ) const
inline

Definition at line 70 of file scoped_ptr.hpp.

◆ operator->() [1/2]

template<typename T >
T* KDL::scoped_ptr< T >::operator-> ( )
inline

Definition at line 67 of file scoped_ptr.hpp.

◆ operator->() [2/2]

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

Definition at line 68 of file scoped_ptr.hpp.

◆ operator=()

template<typename T >
scoped_ptr& KDL::scoped_ptr< T >::operator= ( const scoped_ptr< T > &  )
private

◆ release()

template<typename T >
T* KDL::scoped_ptr< T >::release ( )
inline

Definition at line 78 of file scoped_ptr.hpp.

◆ reset()

template<typename T >
void KDL::scoped_ptr< T >::reset ( T *  p = 0)
inline

Definition at line 72 of file scoped_ptr.hpp.

Friends And Related Function Documentation

◆ swap

template<typename T >
void swap ( scoped_ptr< T > &  a,
scoped_ptr< T > &  b 
)
friend

Definition at line 94 of file scoped_ptr.hpp.

Member Data Documentation

◆ ptr_

template<typename T >
T* KDL::scoped_ptr< T >::ptr_
private

Definition at line 90 of file scoped_ptr.hpp.


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