Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
util::scoped_thing< T, R, Free > Class Template Reference

#include <scoped.hh>

List of all members.

Public Member Functions

 scoped_thing (T *c=static_cast< T * >(0))
 ~scoped_thing ()
void reset (T *c)
T & operator* ()
const T & operator* () const
T & operator-> ()
const T & operator-> () const
T * get ()
const T * get () const

Private Member Functions

 scoped_thing (const scoped_thing &)
scoped_thingoperator= (const scoped_thing &)

Private Attributes

T * c_

template<class T, class R, R(*)(T *) Free>
class util::scoped_thing< T, R, Free >


Constructor & Destructor Documentation

template<class T , class R , R(*)(T *) Free>
util::scoped_thing< T, R, Free >::scoped_thing ( T *  c = static_cast<T*>(0)) [explicit]
template<class T , class R , R(*)(T *) Free>
util::scoped_thing< T, R, Free >::~scoped_thing ( )
template<class T , class R , R(*)(T *) Free>
util::scoped_thing< T, R, Free >::scoped_thing ( const scoped_thing< T, R, Free > &  ) [private]

Member Function Documentation

template<class T , class R , R(*)(T *) Free>
T* util::scoped_thing< T, R, Free >::get ( )
template<class T , class R , R(*)(T *) Free>
const T* util::scoped_thing< T, R, Free >::get ( ) const
template<class T , class R , R(*)(T *) Free>
T& util::scoped_thing< T, R, Free >::operator* ( )
template<class T , class R , R(*)(T *) Free>
const T& util::scoped_thing< T, R, Free >::operator* ( ) const
template<class T , class R , R(*)(T *) Free>
T& util::scoped_thing< T, R, Free >::operator-> ( )
template<class T , class R , R(*)(T *) Free>
const T& util::scoped_thing< T, R, Free >::operator-> ( ) const
template<class T , class R , R(*)(T *) Free>
scoped_thing& util::scoped_thing< T, R, Free >::operator= ( const scoped_thing< T, R, Free > &  ) [private]
template<class T , class R , R(*)(T *) Free>
void util::scoped_thing< T, R, Free >::reset ( T *  c)

Member Data Documentation

template<class T , class R , R(*)(T *) Free>
T* util::scoped_thing< T, R, Free >::c_ [private]