Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

LBuffer Class Reference

LBuffer is basically a malloc'd buffer with an associated mutex locking access. More...

#include <LBuffer.h>

Inheritance diagram for LBuffer:

Dc1394 List of all members.

Public Member Functions

 LBuffer (int W, int H, int sz)
 Initializes a lockable buffer, of size W*H*sz (just like a malloc).
 ~LBuffer ()
 Deletes the buffer object, and frees its associated memory.
void lock ()
void unlock ()
 Unlock the buffer.
size_t width ()
 Return the "width" of the buffer.
size_t height ()
 Return the "height" of the buffer.
size_t elmentsz ()
 Return the number of bytes of each element.
size_t size ()
 Return the size of the buffer (W*H*elementsz).
void * ptr ()
 Return a pointer to the associated memory.

Detailed Description

LBuffer is basically a malloc'd buffer with an associated mutex locking access.

LBuffer is basically a malloc'd buffer with an associated mutex lock that can be checked before/locked during reads/writes. It has an "width/height"


Constructor & Destructor Documentation

LBuffer::LBuffer int  W,
int  H,
int  sz
[inline]
 

Initializes a lockable buffer, of size W*H*sz (just like a malloc).

Parameters:
W  Width
H  Height
sz  Size per element

LBuffer::~LBuffer  )  [inline]
 

Deletes the buffer object, and frees its associated memory.


Member Function Documentation

size_t LBuffer::elmentsz  )  [inline]
 

Return the number of bytes of each element.

size_t LBuffer::height  )  [inline]
 

Return the "height" of the buffer.

void LBuffer::lock  )  [inline]
 

Lock the buffer. Any subsequent attempts to lock it while it is already locked will block.

void* LBuffer::ptr  )  [inline]
 

Return a pointer to the associated memory.

size_t LBuffer::size  )  [inline]
 

Return the size of the buffer (W*H*elementsz).

void LBuffer::unlock  )  [inline]
 

Unlock the buffer.

size_t LBuffer::width  )  [inline]
 

Return the "width" of the buffer.


The documentation for this class was generated from the following file:
Generated on Mon Jun 27 14:54:29 2005 for OPENVIDIA by  doxygen 1.4.0