xoreos  0.0.5
Public Member Functions | List of all members
Common::ScopedArray< T, Deallocator > Class Template Reference

A scoped array pointer, allowing array-y access and array deletion. More...

#include <scopedptr.h>

Inheritance diagram for Common::ScopedArray< T, Deallocator >:
Inheritance graph
[legend]
Collaboration diagram for Common::ScopedArray< T, Deallocator >:
Collaboration graph
[legend]

Public Member Functions

 ScopedArray (typename ScopedPtrBase< T, Deallocator >::PointerType o=0)
 
ScopedPtrBase< T, Deallocator >::ReferenceType operator[] (size_t i) const
 
- Public Member Functions inherited from Common::ScopedPtrBase< T, Deallocator >
 ScopedPtrBase (PointerType o=0)
 
XOREOS_EXPLICIT_OPERATOR_CONV operator bool () const
 Implicit conversion operator to bool for convenience, to make checks like "if (scopedPtr) ..." possible. More...
 
 ~ScopedPtrBase ()
 
void reset (PointerType o=0)
 Resets the pointer with the new value. More...
 
PointerType get () const
 Returns the plain pointer value. More...
 
PointerType release ()
 Returns the plain pointer value and releases ScopedPtr. More...
 
void swap (ScopedPtrBase< T, Deallocator > &right)
 Swap the managed pointers of two ScopedPtrs of the same type. More...
 

Additional Inherited Members

- Public Types inherited from Common::ScopedPtrBase< T, Deallocator >
typedef T ValueType
 
typedef T * PointerType
 
typedef T & ReferenceType
 

Detailed Description

template<typename T, class Deallocator = DeallocatorArray>
class Common::ScopedArray< T, Deallocator >

A scoped array pointer, allowing array-y access and array deletion.

Definition at line 137 of file scopedptr.h.

Constructor & Destructor Documentation

◆ ScopedArray()

template<typename T, class Deallocator = DeallocatorArray>
Common::ScopedArray< T, Deallocator >::ScopedArray ( typename ScopedPtrBase< T, Deallocator >::PointerType  o = 0)
inlineexplicit

Definition at line 139 of file scopedptr.h.

Member Function Documentation

◆ operator[]()

template<typename T, class Deallocator = DeallocatorArray>
ScopedPtrBase<T, Deallocator>::ReferenceType Common::ScopedArray< T, Deallocator >::operator[] ( size_t  i) const
inline

Definition at line 143 of file scopedptr.h.


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