Public Member Functions | |
TupleSpace () | |
The TupleSpace constructor. | |
~TupleSpace () | |
The TupleSpace destructor. | |
void | _out (Tuple t) |
Output a tuple to the tuplespace. | |
Tuple | _in (Template t) |
Destructively read a tuple from the tuplespace. | |
Tuple | _rd (Template t) |
Non-destructively read a tuple from the tuplespace. | |
Tuple | _inp (Template t) |
Destructively read a tuple from the tuplespace. | |
Tuple | _rdp (Template t) |
Non-destructively read a tuple from the tuplespace. | |
int | collect (TupleSpace dest, Template t) |
Move all tuples matching the template to another tuplespace. | |
int | copy_collect (TupleSpace dest, Template t) |
Copy all tuples matching the template to another tuplespace. |
Creating an instance of this class creates a new tuplespace in the linda network.
|
The TupleSpace constructor. Creates a new tuplespace, to give other processes access to this tuplespace output the reference in a tuple. |
|
The TupleSpace destructor. Deletes this reference to the tuplespace. |
|
Destructively read a tuple from the tuplespace.
t = ts._in((1, 2, 3)) t = ts._in((int, 2, 3)) t = ts._in((int, int, 3)) t = ts._in((int, int, int)) The template should be a tuple containing either actual parameters, or formals. An actual paramater is a real value like 1, "abc" or 1.0. A formal parameter is a type which matched any value of that type. For example int will match 1, 2, 3 etc. linda.TupleSpace will match any tuplespace reference. |
|
Destructively read a tuple from the tuplespace.
t = ts._inp((int, int, int)) See linda::TupleSpace::_in for details on the format of the template |
|
Output a tuple to the tuplespace.
ts._out((1, 2, 3))
|
|
Non-destructively read a tuple from the tuplespace.
t = ts._rd((int, int, int)) See linda::TupleSpace::_in for details on the format of the template |
|
Non-destructively read a tuple from the tuplespace.
t = ts._rdp((int, int, int)) See linda::TupleSpace::_in for details on the format of the template |
|
Move all tuples matching the template to another tuplespace.
count = ts1.collect(ts2, (int, int, int)) See linda::TupleSpace::_in for details on the format of the template |
|
Copy all tuples matching the template to another tuplespace.
count = ts1.copy_collect(ts2, (int, int, int)) See linda::TupleSpace::_in for details on the format of the template |