ASPECT
Public Member Functions | Private Attributes | List of all members
aspect::Utilities::ScratchSpace< T >::ScopedScratchObject Class Reference

Public Member Functions

 ScopedScratchObject (const ScratchSpace< T > &)
 
 ~ScopedScratchObject ()
 
 operator T& () const
 

Private Attributes

const ScratchSpacespace
 
T & t
 

Detailed Description

template<typename T>
class aspect::Utilities::ScratchSpace< T >::ScopedScratchObject

This class takes an object from a ScratchSpace pool and will return it to the pool when the ScopedScratchObject goes out of scope.

Definition at line 100 of file utilities.h.

Constructor & Destructor Documentation

§ ScopedScratchObject()

template<typename T>
aspect::Utilities::ScratchSpace< T >::ScopedScratchObject::ScopedScratchObject ( const ScratchSpace< T > &  )

Constructor

§ ~ScopedScratchObject()

template<typename T>
aspect::Utilities::ScratchSpace< T >::ScopedScratchObject::~ScopedScratchObject ( )

Destructor: return the object to the pool

Member Function Documentation

§ operator T&()

template<typename T>
aspect::Utilities::ScratchSpace< T >::ScopedScratchObject::operator T & ( ) const

Get a reference to the object.

Member Data Documentation

§ space

template<typename T>
const ScratchSpace& aspect::Utilities::ScratchSpace< T >::ScopedScratchObject::space
private

Definition at line 119 of file utilities.h.

§ t

template<typename T>
T& aspect::Utilities::ScratchSpace< T >::ScopedScratchObject::t
private

Definition at line 120 of file utilities.h.


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