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

Coal::ReadWriteBufferEvent Class Reference

Reading or writing to a buffer. More...

#include <events.h>

Inheritance diagram for Coal::ReadWriteBufferEvent:
Collaboration diagram for Coal::ReadWriteBufferEvent:

List of all members.

Public Member Functions

 ReadWriteBufferEvent (CommandQueue *parent, MemObject *buffer, size_t offset, size_t cb, void *ptr, cl_uint num_events_in_wait_list, const Event **event_wait_list, cl_int *errcode_ret)
size_t offset () const
 Offset in the buffer of the operation, in bytes.
size_t cb () const
 Number of bytes to read or write.
void * ptr () const
 Pointer in host memory at which to put the data.

Private Attributes

size_t p_offset
size_t p_cb
void * p_ptr

Detailed Description

Reading or writing to a buffer.

Definition at line 86 of file events.h.


Constructor & Destructor Documentation

ReadWriteBufferEvent::ReadWriteBufferEvent ( CommandQueue parent,
MemObject buffer,
size_t  offset,
size_t  cb,
void *  ptr,
cl_uint  num_events_in_wait_list,
const Event **  event_wait_list,
cl_int *  errcode_ret 
)

Definition at line 131 of file events.cpp.

References Coal::MemObject::size().


Member Function Documentation

size_t ReadWriteBufferEvent::cb ( ) const

Number of bytes to read or write.

Definition at line 163 of file events.cpp.

References p_cb.

Referenced by worker().

size_t ReadWriteBufferEvent::offset ( ) const

Offset in the buffer of the operation, in bytes.

Definition at line 158 of file events.cpp.

References p_offset.

Referenced by worker().

void * ReadWriteBufferEvent::ptr ( ) const

Pointer in host memory at which to put the data.

Definition at line 168 of file events.cpp.

References p_ptr.

Referenced by worker().


Member Data Documentation

Definition at line 103 of file events.h.

Referenced by cb().

Definition at line 103 of file events.h.

Referenced by offset().

Definition at line 104 of file events.h.

Referenced by ptr().


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