![]() |
RobWorkProject
23.9.11-
|
Representation of a link. More...
#include <Mathematica.hpp>
Public Types | |
| typedef rw::core::Ptr< const Link > | Ptr |
| Smart pointer to a link. | |
Public Member Functions | |
| Link () | |
| Constructor. | |
| ~Link () | |
| Destructor. | |
| bool | isOpen () const |
| Check if the link is open. More... | |
| bool | ready () const |
| Check if there is anything available on link. More... | |
| bool | wait () const |
| Wait until packet becomes available. More... | |
| const Link & | operator<< (const Packet &packet) const |
| Send packet on link. More... | |
| const Link & | operator<< (const Expression &expression) const |
| Send an expression on link in a EvaluatePacket. More... | |
| const Link & | operator<< (const ToExpression &expression) const |
| Send a text string with an expression on link in a EvaluatePacket. More... | |
| void | operator>> (rw::core::Ptr< Packet > &result) const |
| Get the next packet on link (blocks until packet is available). More... | |
Public Attributes | |
| std::string | name |
| Name of the link if name was given. | |
| rw::core::Ptr< const LinkImpl > | impl |
| Internals. | |
Representation of a link.
| bool isOpen | ( | ) | const |
Check if the link is open.
| const Link& operator<< | ( | const Expression & | expression | ) | const |
Send an expression on link in a EvaluatePacket.
| expression | [in] the expression to send. |
Send packet on link.
| packet | [in] the packet to send. |
| const Link& operator<< | ( | const ToExpression & | expression | ) | const |
Send a text string with an expression on link in a EvaluatePacket.
| expression | [in] the expression to send. |
| void operator>> | ( | rw::core::Ptr< Packet > & | result | ) | const |
Get the next packet on link (blocks until packet is available).
| result | [out] a pointer to the retrieved packet. |
| bool ready | ( | ) | const |
Check if there is anything available on link.
| bool wait | ( | ) | const |
Wait until packet becomes available.