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>
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
◆ StreamList()
Create an empty stream list.
◆ ~StreamList()
◆ 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.
◆ mtx_loc
std::mutex yakl::StreamList::mtx_loc |
The documentation for this struct was generated from the following file: