Scope
scope::ScopeImageConstAccess< T > Class Template Reference

#include <ScopeImage.h>

Public Member Functions

 ScopeImageConstAccess (const ScopeImage< T > &_image)
 
 ~ScopeImageConstAccess ()
 
const std::vector< T > * GetConstData () const
 

Protected Attributes

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

Detailed Description

template<class T>
class scope::ScopeImageConstAccess< T >

Gives RAII safe const access (read-only) to the pixeldata of a ScopeImage.

A reading access counter is increased on construction and decreased on destruction of the ScopeImageConstAccess object. This allows concurrent read access.

Definition at line 14 of file ScopeImage.h.

Constructor & Destructor Documentation

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

Get the data, locks mutex inside ScopeImage.

Definition at line 236 of file ScopeImage.h.

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

Release data on destruction, unlocks mutex.

Definition at line 242 of file ScopeImage.h.

Member Function Documentation

template<class T>
const std::vector<T>* scope::ScopeImageConstAccess< T >::GetConstData ( ) const
inline
Returns
the data pointer

Definition at line 247 of file ScopeImage.h.

Member Data Documentation

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

pointer to the ScopeImage

Definition at line 230 of file ScopeImage.h.

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

Pointer to the ScopeImage's data vector.

Definition at line 232 of file ScopeImage.h.


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