#include <ShChannel.hpp>
Collaboration diagram for SH::ShChannel< T >:
Public Member Functions | |
ShChannel () | |
Construct a channel without any associated memory. | |
ShChannel (const ShMemoryPtr &memory, int count) | |
Construct a channel with count elements in memory. | |
void | memory (const ShMemoryPtr &memory, int count) |
Set this channel to use count elements in memory. | |
int | count () const |
Return the number of elements in this channel. | |
ShPointer< const ShMemory > | memory () const |
Return this channel's memory. | |
ShMemoryPtr | memory () |
Return this channel's memory. | |
T | operator() () const |
Fetch the current element from this stream. | |
template<typename T2> | |
T | operator[] (const ShGeneric< 1, T2 > &index) const |
Indexed lookup from the stream. | |
ShChannelNodePtr | node () |
Return the node internally wrapped by this channel object. | |
const ShChannelNodePtr | node () const |
Return the node internally wrapped by this channel object. | |
ShChannel & | operator= (const ShProgram &program) |
Execute fully bound single-output stream program and place result in channel. |
Really this hides an ShChannelNode which is the true representation of the channel. The template argument is the element type stored.
Definition at line 42 of file ShChannel.hpp.
|
Fetch the current element from this stream. This is only useful in stream programs Definition at line 96 of file ShChannelImpl.hpp. References SH::SH_OP_FETCH, and SH::shError(). |