Scope
scope::ScopeImageAccess< T > Class Template Reference

#include <ScopeImage.h>

Public Member Functions

 ScopeImageAccess (ScopeImage< T > &_image)
 
 ~ScopeImageAccess ()
 
std::vector< T > * GetData () const
 
T * GetPointer () const
 

Protected Attributes

ScopeImage< T > *const image
 
std::vector< T > *const pData
 

Detailed Description

template<class T>
class scope::ScopeImageAccess< T >

Gives RAII safe access (read&write) to the pixeldata of a ScopeImage.

ScopeImage pixelmutex is locked on construction and unlocked on destruction of the ScopeImageAccess object.

Definition at line 11 of file ScopeImage.h.

Constructor & Destructor Documentation

template<class T>
scope::ScopeImageAccess< T >::ScopeImageAccess ( ScopeImage< T > &  _image)
inline

Get the data, locks mutex inside ScopeImage.

Definition at line 203 of file ScopeImage.h.

template<class T>
scope::ScopeImageAccess< T >::~ScopeImageAccess ( )
inline

Release data on destruction, unlocks mutex.

Definition at line 209 of file ScopeImage.h.

Member Function Documentation

template<class T>
std::vector<T>* scope::ScopeImageAccess< T >::GetData ( ) const
inline
Returns
the pointer to the vector

Definition at line 214 of file ScopeImage.h.

template<class T>
T* scope::ScopeImageAccess< T >::GetPointer ( ) const
inline
Returns
pointer to the first vector element

Definition at line 219 of file ScopeImage.h.

Member Data Documentation

template<class T>
ScopeImage<T>* const scope::ScopeImageAccess< T >::image
protected

pointer to the ScopeImage

Definition at line 197 of file ScopeImage.h.

template<class T>
std::vector<T>* const scope::ScopeImageAccess< T >::pData
protected

Pointer to the ScopeImage's data vector.

Definition at line 199 of file ScopeImage.h.


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