stromx  0.7.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Friends | List of all members
stromx::runtime::DataContainer Class Reference

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)
 

Detailed Description

Container which manages the life-cycle of data objects.

Constructor & Destructor Documentation

stromx::runtime::DataContainer::DataContainer ( )
inline

Constructs an empty data container.

stromx::runtime::DataContainer::DataContainer ( runtime::Data data)
explicit

Constructs a data container holding data.

Parameters
dataA non-zero pointer to a Data object
Exceptions
WrongArgument

Member Function Documentation

bool stromx::runtime::DataContainer::empty ( ) const
inline

Returns whether to DataContainer holds any data.

void stromx::runtime::DataContainer::release ( )
inline

Releases the data from the container. The container is empty after calling this function.

Friends And Related Function Documentation

STROMX_RUNTIME_API bool operator!= ( const DataContainer lhs,
const DataContainer rhs 
)
friend

Returns true if the addresses in lhs and rhs are not the same.

STROMX_RUNTIME_API std::ostream& operator<< ( std::ostream &  out,
const DataContainer container 
)
friend

Returns the address of the data held by container.

STROMX_RUNTIME_API bool operator== ( const DataContainer lhs,
const DataContainer rhs 
)
friend

Returns true if the addresses in lhs and rhs are the same.


The documentation for this class was generated from the following files: