![]() |
stromx
0.7.0
|
Container which manages the life-cycle of data objects. More...
#include <DataContainer.h>
Public Member Functions | |
| DataContainer () | |
| DataContainer (runtime::Data *data) | |
| bool | empty () const |
| void | release () |
Friends | |
| STROMX_RUNTIME_API bool | operator== (const DataContainer &lhs, const DataContainer &rhs) |
| STROMX_RUNTIME_API bool | operator!= (const DataContainer &lhs, const DataContainer &rhs) |
| STROMX_RUNTIME_API std::ostream & | operator<< (std::ostream &out, const DataContainer &container) |
Container which manages the life-cycle of data objects.
|
inline |
Constructs an empty data container.
|
explicit |
Constructs a data container holding data.
| data | A non-zero pointer to a Data object |
| WrongArgument |
|
inline |
Returns whether to DataContainer holds any data.
|
inline |
Releases the data from the container. The container is empty after calling this function.
|
friend |
Returns true if the addresses in lhs and rhs are not the same.
|
friend |
Returns the address of the data held by container.
|
friend |
Returns true if the addresses in lhs and rhs are the same.
1.8.8