![]() |
stromx
0.8.0
|
Container which manages the life-cycle of data objects. More...
#include <DataContainer.h>
Public Member Functions | |
| DataContainer () | |
| DataContainer (runtime::Data *data) | |
| DataContainer (runtime::Data *data, const bool isReadOnly) | |
| bool | empty () const |
| void | release () |
| bool | isReadOnly () const |
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 |
|
explicit |
Constructs a data container holding data.
| data | A non-zero pointer to a Data object |
| isReadOnly | If true the container contains read-only data, i.e. a WriteAccess can not be obtained for this container. |
| WrongArgument |
|
inline |
Returns whether to DataContainer holds any data.
| bool stromx::runtime::DataContainer::isReadOnly | ( | ) | const |
Return true if the container is read-only. Also true for empty containers.
|
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.12