com.jogamp.opencl
Class CLEventList

java.lang.Object
  extended by com.jogamp.opencl.CLEventList
All Implemented Interfaces:
AutoCloseable, CLResource, Iterable<CLEvent>

public final class CLEventList
extends Object
implements CLResource, AutoCloseable, Iterable<CLEvent>

Fixed size list for storing CLEvents.

Author:
Michael Bien

Constructor Summary
CLEventList(CLEvent... events)
           
CLEventList(int capacity)
           
 
Method Summary
 int capacity()
          Returns the maximum size of this list.
 void close()
           
 CLEvent getEvent(int index)
           
 Iterator<CLEvent> iterator()
           
 void release()
          Releases all CLEvents in this list.
 int size()
          Returns the current size of this list.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CLEventList

public CLEventList(int capacity)

CLEventList

public CLEventList(CLEvent... events)
Method Detail

release

public void release()
Releases all CLEvents in this list.

Specified by:
release in interface CLResource

close

public final void close()
                 throws Exception
Specified by:
close in interface AutoCloseable
Throws:
Exception

getEvent

public CLEvent getEvent(int index)

size

public int size()
Returns the current size of this list.


capacity

public int capacity()
Returns the maximum size of this list.


iterator

public Iterator<CLEvent> iterator()
Specified by:
iterator in interface Iterable<CLEvent>

toString

public String toString()
Overrides:
toString in class Object