Public Member Functions | Private Member Functions | Private Attributes | List of all members
psimpl::util::scoped_array< T > Class Template Reference

A smart pointer for holding a dynamically allocated array. More...

#include <psimpl.h>

Public Member Functions

T * get () const
 
T & operator[] (int offset)
 
const T & operator[] (int offset) const
 
 scoped_array (unsigned n)
 
void swap (scoped_array &b)
 
 ~scoped_array ()
 

Private Member Functions

scoped_arrayoperator= (const scoped_array &)
 
 scoped_array (const scoped_array &)
 

Private Attributes

T * array
 

Detailed Description

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

A smart pointer for holding a dynamically allocated array.

Similar to boost::scoped_array.

Definition at line 119 of file psimpl.h.

Constructor & Destructor Documentation

◆ scoped_array() [1/2]

template<typename T >
psimpl::util::scoped_array< T >::scoped_array ( unsigned  n)
inline

Definition at line 122 of file psimpl.h.

◆ ~scoped_array()

template<typename T >
psimpl::util::scoped_array< T >::~scoped_array ( )
inline

Definition at line 126 of file psimpl.h.

◆ scoped_array() [2/2]

template<typename T >
psimpl::util::scoped_array< T >::scoped_array ( const scoped_array< T > &  )
private

Member Function Documentation

◆ get()

template<typename T >
T* psimpl::util::scoped_array< T >::get ( ) const
inline

Definition at line 138 of file psimpl.h.

◆ operator=()

template<typename T >
scoped_array& psimpl::util::scoped_array< T >::operator= ( const scoped_array< T > &  )
private

◆ operator[]() [1/2]

template<typename T >
T& psimpl::util::scoped_array< T >::operator[] ( int  offset)
inline

Definition at line 130 of file psimpl.h.

◆ operator[]() [2/2]

template<typename T >
const T& psimpl::util::scoped_array< T >::operator[] ( int  offset) const
inline

Definition at line 134 of file psimpl.h.

◆ swap()

template<typename T >
void psimpl::util::scoped_array< T >::swap ( scoped_array< T > &  b)
inline

Definition at line 142 of file psimpl.h.

Member Data Documentation

◆ array

template<typename T >
T* psimpl::util::scoped_array< T >::array
private

Definition at line 153 of file psimpl.h.


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


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:28