|
Lolly 1.4.28
|
#include "basic.hpp"

Go to the source code of this file.
Classes | |
| class | blackbox_rep |
| A template class representing an opaque pointer. More... | |
| class | blackbox |
| class | whitebox_rep< T > |
Functions | |
| bool | is_nil (blackbox x) |
| bool | operator== (blackbox bb1, blackbox bb2) |
| Equality operator for blackbox instances. | |
| bool | operator!= (blackbox bb1, blackbox bb2) |
| Inequality operator for blackbox instances. | |
| tm_ostream & | operator<< (tm_ostream &out, blackbox bb) |
| Output stream operator for blackbox instances. | |
| int | type_box (blackbox bb) |
| Get the type of the blackbox instance. | |
| template<class T > | |
| blackbox | close_box (const T &data) |
| Create a blackbox instance with the given data. | |
| template<class T > | |
| T | open_box (blackbox bb) |
| Open the blackbox instance and retrieve the stored data. | |
defines a templated blackbox class representing an opaque pointer
Definition in file blackbox.hpp.
|
inline |
Definition at line 29 of file blackbox.hpp.
Equality operator for blackbox instances.
| bb1 | The first blackbox instance. |
| bb2 | The second blackbox instance. |
Definition at line 76 of file blackbox.hpp.
Inequality operator for blackbox instances.
| bb1 | The first blackbox instance. |
| bb2 | The second blackbox instance. |
Definition at line 88 of file blackbox.hpp.
|
inline |
Output stream operator for blackbox instances.
| out | The output stream. |
| bb | The blackbox instance. |
Definition at line 99 of file blackbox.hpp.
|
inline |
Get the type of the blackbox instance.
| bb | The blackbox instance. |
Definition at line 111 of file blackbox.hpp.
Create a blackbox instance with the given data.
| T | The type of data to be stored in the whitebox. |
| data | The data to be stored in the whitebox. |
Definition at line 123 of file blackbox.hpp.
Open the blackbox instance and retrieve the stored data.
| T | The type of data stored in the whitebox. |
| bb | The blackbox instance. |
Definition at line 135 of file blackbox.hpp.