#include <Terminal.h>
Collaboration diagram for syn::Terminal:
Public Methods | |
Terminal (Module &module, const std::string &name="unnamed") | |
virtual | ~Terminal () |
const std::string& | name () const |
void | setName (const std::string &name) |
virtual void | disconnect () |
remove any connection. More... | |
virtual bool | isConnected () const |
is there a connection. More... | |
Connection& | connection () |
access the terminal's connection. More... | |
const Module& | module () const |
access my module. More... | |
Module& | module () |
access my module. More... | |
Data Transport | |
void | push (SampleBuffer1f *buf) |
push a buffer into the terminal. More... | |
void | pop () |
push a buffer out of the terminal. More... | |
SampleBuffer1f* | front () |
look at the current buffer in the terminal. More... | |
bool | high () const |
return true if queue is filled to above the high mark. More... | |
bool | low () const |
return false if queue is filled to below the low mark. More... | |
bool | empty () const |
return true if this queue is empty. More... | |
unsigned int | size () const |
how many elements in the queue. More... | |
bool | done () |
query if the terminal is done "done" signals whether you need to wait for more data from this terminal, of if you can go on. More... | |
void | setDone (bool d) |
set the connection to a done state. More... | |
Watermark methods | |
void | setHighMark (unsigned int h) |
set the high mark. More... | |
void | setLowMark (unsigned int l) |
set the low mark. More... | |
unsigned int | highMark () const |
what is the high mark. More... | |
unsigned int | lowMark () const |
what is the low mark. More... | |
Static Public Methods | |
void | connect (TerminalPtr inptr, TerminalPtr outptr) |
create a connection autoconnect. More... |
terminals connect modules Terminal is used exclusively by Module, you should not use it on it's own.
Definition at line 51 of file Terminal.h.
|
Definition at line 38 of file Terminal.cpp. |
|
Definition at line 47 of file Terminal.cpp. |
|
Definition at line 64 of file Terminal.cpp. |
|
Definition at line 69 of file Terminal.cpp. |
|
remove any connection.
Definition at line 76 of file Terminal.cpp. |
|
is there a connection.
Definition at line 79 of file Terminal.cpp. Referenced by setDone().
|
|
create a connection autoconnect.
Definition at line 90 of file Terminal.cpp. |
|
access the terminal's connection.
Definition at line 99 of file Terminal.cpp. |
|
access my module.
Definition at line 78 of file Terminal.h. |
|
access my module.
Definition at line 81 of file Terminal.h. |
|
push a buffer into the terminal.
Definition at line 86 of file Terminal.h. |
|
push a buffer out of the terminal.
Definition at line 89 of file Terminal.h. |
|
look at the current buffer in the terminal.
Definition at line 92 of file Terminal.h. |
|
return true if queue is filled to above the high mark.
Definition at line 95 of file Terminal.h. |
|
return false if queue is filled to below the low mark.
Definition at line 98 of file Terminal.h. |
|
return true if this queue is empty.
Definition at line 101 of file Terminal.h. |
|
how many elements in the queue.
Definition at line 104 of file Terminal.h. |
|
query if the terminal is done "done" signals whether you need to wait for more data from this terminal, of if you can go on. when the terminal is "done", then you can go on without recieving data from it. Definition at line 52 of file Terminal.cpp. |
|
set the connection to a done state. this affects any Connection or Terminal connected to this Terminal Definition at line 57 of file Terminal.cpp. |
|
set the high mark.
Definition at line 123 of file Terminal.h. |
|
set the low mark.
Definition at line 126 of file Terminal.h. |
|
what is the high mark.
Definition at line 129 of file Terminal.h. |
|
what is the low mark.
Definition at line 132 of file Terminal.h. |