go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Private Attributes
itk::OpenCLEventList Class Reference

#include <itkOpenCLEventList.h>

Detailed Description

OpenCLEventList class represents a list of OpenCLEvent objects.

See also
OpenCLEvent

Definition at line 32 of file itkOpenCLEventList.h.

Public Types

typedef std::vector< cl_event > OpenCLEventListArrayType
 
typedef OpenCLEventList Self
 

Public Member Functions

void Append (const OpenCLEvent &event)
 
void Append (const OpenCLEventList &other)
 
bool Contains (const OpenCLEvent &event) const
 
OpenCLEvent Get (const std::vcl_size_t index) const
 
const OpenCLEventListArrayTypeGetEventArray () const
 
const cl_event * GetEventData () const
 
std::vcl_size_t GetSize () const
 
bool IsEmpty () const
 
 OpenCLEventList ()
 
 OpenCLEventList (const OpenCLEvent &event)
 
 OpenCLEventList (const OpenCLEventList &other)
 
OpenCLEventListoperator+= (const OpenCLEvent &event)
 
OpenCLEventListoperator+= (const OpenCLEventList &other)
 
OpenCLEventListoperator<< (const OpenCLEvent &event)
 
OpenCLEventListoperator<< (const OpenCLEventList &other)
 
OpenCLEventListoperator= (const OpenCLEventList &other)
 
void Remove (const OpenCLEvent &event)
 
cl_int WaitForFinished ()
 
 ~OpenCLEventList ()
 

Private Attributes

OpenCLEventListArrayType m_Events
 

Member Typedef Documentation

typedef std::vector< cl_event > itk::OpenCLEventList::OpenCLEventListArrayType

Definition at line 39 of file itkOpenCLEventList.h.

Standard class typedefs.

Definition at line 37 of file itkOpenCLEventList.h.

Constructor & Destructor Documentation

itk::OpenCLEventList::OpenCLEventList ( )
inline

Constructs an empty list of OpenCL events.

Definition at line 42 of file itkOpenCLEventList.h.

itk::OpenCLEventList::OpenCLEventList ( const OpenCLEvent event)

Constructs a list of OpenCL events that contains event. If event is null, this constructor will construct an empty list.

See also
Append()
itk::OpenCLEventList::OpenCLEventList ( const OpenCLEventList other)

Constructs a copy of other.

See also
operator=()
itk::OpenCLEventList::~OpenCLEventList ( )

Destroys this list of OpenCL events.

Member Function Documentation

void itk::OpenCLEventList::Append ( const OpenCLEvent event)

Appends event to this list of OpenCL events if it is not null. Does nothing if event is null.

See also
Remove()
void itk::OpenCLEventList::Append ( const OpenCLEventList other)

Appends the contents of other to this event list.

bool itk::OpenCLEventList::Contains ( const OpenCLEvent event) const

Returns true if this event list contains event, false otherwise.

See also
Get(), Remove()
OpenCLEvent itk::OpenCLEventList::Get ( const std::vcl_size_t  index) const

Returns the event at index in this event list, or a null OpenCLEvent if index is out of range.

See also
GetSize(), Contains()
const OpenCLEventListArrayType& itk::OpenCLEventList::GetEventArray ( ) const

Returns a const reference to the array of OpenCL events.

See also
GetSize()
const cl_event* itk::OpenCLEventList::GetEventData ( ) const

Returns a const pointer to the raw OpenCL event data in this event list; null if the list is empty. This function is intended for use with native OpenCL library functions that take an array of cl_event objects as an argument.

See also
GetSize()
std::vcl_size_t itk::OpenCLEventList::GetSize ( ) const
inline

Returns the size of this event list.

See also
IsEmpty(), Get()

Definition at line 65 of file itkOpenCLEventList.h.

bool itk::OpenCLEventList::IsEmpty ( ) const
inline

Returns true if this is an empty list, false otherwise.

See also
GetSize()

Definition at line 61 of file itkOpenCLEventList.h.

OpenCLEventList& itk::OpenCLEventList::operator+= ( const OpenCLEvent event)

Same as append event.

See also
Append()
OpenCLEventList& itk::OpenCLEventList::operator+= ( const OpenCLEventList other)

Same as append event.

See also
Append()
OpenCLEventList& itk::OpenCLEventList::operator<< ( const OpenCLEvent event)

Same as append event.

See also
Append()
OpenCLEventList& itk::OpenCLEventList::operator<< ( const OpenCLEventList other)

Same as append event.

See also
Append()
OpenCLEventList& itk::OpenCLEventList::operator= ( const OpenCLEventList other)

Assigns the contents of other to this object.

void itk::OpenCLEventList::Remove ( const OpenCLEvent event)

Removes event from this event list.

See also
Append(), Contains()
cl_int itk::OpenCLEventList::WaitForFinished ( )

Waits for all of the events in this list to be signaled as finished. The calling thread is blocked until all of the events are signaled. If the list is empty, then this function returns immediately.

See also
OpenCLEvent::WaitForFinished()

Field Documentation

OpenCLEventListArrayType itk::OpenCLEventList::m_Events
private

Definition at line 123 of file itkOpenCLEventList.h.



Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo