Ogre::HardwareBufferLockGuard< T > Struct Template Reference

Locking helper. More...

`#include <OgreHardwareBuffer.h>`

## Public Member Functions

| HardwareBufferLockGuard (const T &p, HardwareBuffer::LockOptions options)
| HardwareBufferLockGuard (const T &p, size_t offset, size_t length, HardwareBuffer::LockOptions options)
| ~HardwareBufferLockGuard ()

## Public Attributes

const T & | pBuf
void * | pData

## Detailed Description

### template<typename T>
struct Ogre::HardwareBufferLockGuard< T >

Locking helper.

Guaranteed unlocking even in case of exception.

Definition at line 357 of file OgreHardwareBuffer.h.

## Constructor & Destructor Documentation

## HardwareBufferLockGuard() [1/2]

template<typename T >

Ogre::HardwareBufferLockGuard< T >::HardwareBufferLockGuard | ( | const T & | p,
|  | HardwareBuffer::LockOptions | options
| ) |  |

Definition at line 359 of file OgreHardwareBuffer.h.

## HardwareBufferLockGuard() [2/2]

template<typename T >

Ogre::HardwareBufferLockGuard< T >::HardwareBufferLockGuard | ( | const T & | p,
|  | size_t | offset,
|  | size_t | length,
|  | HardwareBuffer::LockOptions | options
| ) |  |

Definition at line 364 of file OgreHardwareBuffer.h.

## ~HardwareBufferLockGuard()

template<typename T >

Ogre::HardwareBufferLockGuard< T >::~HardwareBufferLockGuard | ( |  | ) |

Definition at line 369 of file OgreHardwareBuffer.h.

## Member Data Documentation

## pBuf

template<typename T >

const T& Ogre::HardwareBufferLockGuard< T >::pBuf

Definition at line 374 of file OgreHardwareBuffer.h.

## pData

template<typename T >

void* Ogre::HardwareBufferLockGuard< T >::pData

Definition at line 375 of file OgreHardwareBuffer.h.

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

- OgreHardwareBuffer.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.