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

#include <scoped.hh>

List of all members.

Public Member Functions

 scoped_array (T *content=NULL)
 ~scoped_array ()
T * get ()
const T * get () const
T & operator* ()
const T & operator* () const
T & operator-> ()
const T & operator-> () const
T & operator[] (std::size_t idx)
const T & operator[] (std::size_t idx) const
void reset (T *to=NULL)

Private Attributes

T * c_

template<class T>
class util::scoped_array< T >


Constructor & Destructor Documentation

template<class T>
util::scoped_array< T >::scoped_array ( T *  content = NULL) [explicit]
template<class T>
util::scoped_array< T >::~scoped_array ( )

Member Function Documentation

template<class T>
T* util::scoped_array< T >::get ( )
template<class T>
const T* util::scoped_array< T >::get ( ) const
template<class T>
T& util::scoped_array< T >::operator* ( )
template<class T>
const T& util::scoped_array< T >::operator* ( ) const
template<class T>
T& util::scoped_array< T >::operator-> ( )
template<class T>
const T& util::scoped_array< T >::operator-> ( ) const
template<class T>
T& util::scoped_array< T >::operator[] ( std::size_t  idx)
template<class T>
const T& util::scoped_array< T >::operator[] ( std::size_t  idx) const
template<class T>
void util::scoped_array< T >::reset ( T *  to = NULL)

Member Data Documentation

template<class T>
T* util::scoped_array< T >::c_ [private]