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

Public Member Functions

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

Private Attributes

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 96 of file utilities.h.

Constructor & Destructor Documentation

§ ScopedScratchObject()

template<typename T>
aspect::Utilities::ScratchSpace< T >::ScopedScratchObject::ScopedScratchObject ( 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 & ( )

Get a reference to the object.

Member Data Documentation

§ space

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

Definition at line 115 of file utilities.h.

§ t

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

Definition at line 116 of file utilities.h.


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