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

Coal::CopyBufferEvent Class Reference

Copying between two buffers. More...

#include <events.h>

Inheritance diagram for Coal::CopyBufferEvent:
Collaboration diagram for Coal::CopyBufferEvent:

List of all members.

Public Member Functions

 CopyBufferEvent (CommandQueue *parent, MemObject *source, MemObject *destination, size_t src_offset, size_t dst_offset, size_t cb, cl_uint num_events_in_wait_list, const Event **event_wait_list, cl_int *errcode_ret)
Type type () const
 Say the event is a Coal::Event::CopyBuffer one.
MemObjectsource () const
 Source buffer, equivalent to Coal::BufferEvent::buffer()
MemObjectdestination () const
 Destination buffer.
size_t src_offset () const
 Offset in the source buffer, in bytes.
size_t dst_offset () const
 Offset in the destination buffer, in bytes.
size_t cb () const
 Number of bytes to copy.

Private Attributes

MemObjectp_destination
size_t p_src_offset
size_t p_dst_offset
size_t p_cb

Detailed Description

Copying between two buffers.

Definition at line 263 of file events.h.


Constructor & Destructor Documentation

CopyBufferEvent::CopyBufferEvent ( CommandQueue parent,
MemObject source,
MemObject destination,
size_t  src_offset,
size_t  dst_offset,
size_t  cb,
cl_uint  num_events_in_wait_list,
const Event **  event_wait_list,
cl_int *  errcode_ret 
)

Member Function Documentation

size_t CopyBufferEvent::cb ( ) const

Number of bytes to copy.

Definition at line 485 of file events.cpp.

References p_cb.

Referenced by worker().

MemObject * CopyBufferEvent::destination ( ) const

Destination buffer.

Definition at line 470 of file events.cpp.

References p_destination.

Referenced by worker().

size_t CopyBufferEvent::dst_offset ( ) const

Offset in the destination buffer, in bytes.

Definition at line 480 of file events.cpp.

References p_dst_offset.

MemObject * CopyBufferEvent::source ( ) const

Source buffer, equivalent to Coal::BufferEvent::buffer()

Definition at line 465 of file events.cpp.

References Coal::BufferEvent::buffer().

Referenced by worker().

size_t CopyBufferEvent::src_offset ( ) const

Offset in the source buffer, in bytes.

Definition at line 475 of file events.cpp.

References p_src_offset.

Referenced by CopyBufferEvent().

Event::Type CopyBufferEvent::type ( ) const [virtual]

Say the event is a Coal::Event::CopyBuffer one.

Implements Coal::Event.

Definition at line 490 of file events.cpp.

References Coal::Event::CopyBuffer.


Member Data Documentation

size_t Coal::CopyBufferEvent::p_cb [private]

Definition at line 286 of file events.h.

Referenced by cb().

Definition at line 285 of file events.h.

Referenced by destination().

Definition at line 286 of file events.h.

Referenced by dst_offset().

Definition at line 286 of file events.h.

Referenced by src_offset().


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