YAKL
Public Member Functions | Public Attributes | List of all members
yakl::StreamList Struct Reference

Implements a list of Stream objects. Needs to store a pointer to avoid construction on the device since Array objects need to store a list of streams on which they depend. More...

#include <YAKL_streams_events.h>

Public Member Functions

YAKL_INLINE StreamList ()
 Create an empty stream list. More...
 
YAKL_INLINE ~StreamList ()
 
bool empty () const
 Determine whether the list is empty (has no streams) More...
 
std::vector< Streamget_all_streams () const
 Get a std::vector of the streams in the list. More...
 
Stream operator[] (int i)
 Access the stream at the requested index. More...
 
void push_back (Stream stream)
 Add a stream to the end of the list. More...
 
int size () const
 Get the number of streams in the list. More...
 

Public Attributes

std::mutex mtx_loc
 

Detailed Description

Implements a list of Stream objects. Needs to store a pointer to avoid construction on the device since Array objects need to store a list of streams on which they depend.

This purposely mimics a std::vector class's methods

Constructor & Destructor Documentation

◆ StreamList()

YAKL_INLINE yakl::StreamList::StreamList ( )
inline

Create an empty stream list.

◆ ~StreamList()

YAKL_INLINE yakl::StreamList::~StreamList ( )
inline

Member Function Documentation

◆ empty()

bool yakl::StreamList::empty ( ) const
inline

Determine whether the list is empty (has no streams)

◆ get_all_streams()

std::vector<Stream> yakl::StreamList::get_all_streams ( ) const
inline

Get a std::vector of the streams in the list.

◆ operator[]()

Stream yakl::StreamList::operator[] ( int  i)
inline

Access the stream at the requested index.

◆ push_back()

void yakl::StreamList::push_back ( Stream  stream)
inline

Add a stream to the end of the list.

◆ size()

int yakl::StreamList::size ( ) const
inline

Get the number of streams in the list.

Member Data Documentation

◆ mtx_loc

std::mutex yakl::StreamList::mtx_loc

The documentation for this struct was generated from the following file: