Clover Git
OpenCL 1.1 software implementation
Public Member Functions | Private Attributes

Coal::Buffer Class Reference

Simple buffer object. More...

#include <memobject.h>

Inheritance diagram for Coal::Buffer:
Collaboration diagram for Coal::Buffer:

List of all members.

Public Member Functions

 Buffer (Context *ctx, size_t size, void *host_ptr, cl_mem_flags flags, cl_int *errcode_ret)
 Constructor.
size_t size () const
 Size of the buffer, in bytes.
Type type () const
 Return that we are a Coal::MemObject::Buffer.

Private Attributes

size_t p_size

Detailed Description

Simple buffer object.

Definition at line 140 of file memobject.h.


Constructor & Destructor Documentation

Buffer::Buffer ( Context ctx,
size_t  size,
void *  host_ptr,
cl_mem_flags  flags,
cl_int *  errcode_ret 
)

Constructor.

Parameters:
ctxparent Coal::Context
sizesize of the buffer, in bytes
host_ptrhost pointer
flagsmemory flags
errcode_retreturn code

Definition at line 376 of file memobject.cpp.

Referenced by type().


Member Function Documentation

size_t Buffer::size ( ) const [virtual]

Size of the buffer, in bytes.

Implements Coal::MemObject.

Definition at line 387 of file memobject.cpp.

References p_size.

Referenced by Coal::SubBuffer::SubBuffer().

MemObject::Type Buffer::type ( ) const [virtual]

Return that we are a Coal::MemObject::Buffer.

Implements Coal::MemObject.

Definition at line 392 of file memobject.cpp.

References Buffer().


Member Data Documentation

size_t Coal::Buffer::p_size [private]

Definition at line 157 of file memobject.h.

Referenced by size().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines