HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pss::internal::raw_buffer Class Reference

Raw memory buffer with automatic cleanup. More...

#include <UT_ParallelUtil.h>

Public Member Functions

 raw_buffer (size_t bytes)
 Try to obtain buffer of given size. More...
 
 operator bool () const
 True if buffer was successfully obtained, zero otherwise. More...
 
voidget () const
 Return pointer to buffer, or NULL if buffer could not be obtained. More...
 
 ~raw_buffer ()
 Destroy buffer. More...
 

Detailed Description

Raw memory buffer with automatic cleanup.

Definition at line 1004 of file UT_ParallelUtil.h.

Constructor & Destructor Documentation

pss::internal::raw_buffer::raw_buffer ( size_t  bytes)
inline

Try to obtain buffer of given size.

Definition at line 1008 of file UT_ParallelUtil.h.

pss::internal::raw_buffer::~raw_buffer ( )
inline

Destroy buffer.

Definition at line 1014 of file UT_ParallelUtil.h.

Member Function Documentation

void* pss::internal::raw_buffer::get ( ) const
inline

Return pointer to buffer, or NULL if buffer could not be obtained.

Definition at line 1012 of file UT_ParallelUtil.h.

pss::internal::raw_buffer::operator bool ( ) const
inline

True if buffer was successfully obtained, zero otherwise.

Definition at line 1010 of file UT_ParallelUtil.h.


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