|
Bond 0.9
C++ Bond Runtime Library API Documentation
|
A Collectable wrapper for arbitrary content. More...
#include <bond/vm/collector.h>
Public Types | |
| typedef T | ContentType |
| The type of the wrapped content. | |
Public Member Functions | |
| template<typename... Args> | |
| WrapperCollectable (Args &&... args) | |
| Constructs a WrapperCollectable object, constructing the wrapped content in place. | |
| virtual | ~WrapperCollectable () |
| Destroys the WrapperCollectable and its wrapped content. | |
| const T & | GetContent () const |
| Returns the wrapped content. | |
| T & | GetContent () |
| Returns the wrapped content. | |
| Public Member Functions inherited from Bond::Collectable | |
| virtual | ~Collectable () |
| Destroys the Collectable and the remainder of the list that follows it. | |
A Collectable wrapper for arbitrary content.
This class can be used to register non-Collectable objects with a Collector by storing them as wrapped content.
| T | The type of the wrapped content. |
| typedef T Bond::WrapperCollectable< T >::ContentType |
The type of the wrapped content.
|
inlineexplicit |
Constructs a WrapperCollectable object, constructing the wrapped content in place.
| args | Arguments forwarded to the wrapped content constructor. |
|
inlinevirtual |
Destroys the WrapperCollectable and its wrapped content.
|
inline |
Returns the wrapped content.
|
inline |
Returns the wrapped content.