stromx  0.8.0
Public Member Functions | Friends | List of all members
stromx::runtime::Tribool Class Reference

String data value. More...

#include <Tribool.h>

Inheritance diagram for stromx::runtime::Tribool:
stromx::runtime::Data stromx::runtime::DataInterface

Public Member Functions

 Tribool ()
 
 Tribool (const bool value)
 
bool undefined () const
 
 operator bool () const
 
virtual const std::string & type () const
 
virtual const Versionversion () const
 
virtual const std::string & package () const
 
virtual const VariantHandlevariant () const
 
virtual Dataclone () const
 
virtual void serialize (OutputProvider &out) const
 
virtual void deserialize (InputProvider &in, const Version &version)
 
- Public Member Functions inherited from stromx::runtime::DataInterface
bool isVariant (const VariantInterface &v) const
 

Friends

STROMX_RUNTIME_API bool operator== (const Tribool &lhs, const Tribool &rhs)
 
STROMX_RUNTIME_API bool operator!= (const Tribool &lhs, const Tribool &rhs)
 
STROMX_RUNTIME_API std::ostream & operator<< (std::ostream &out, const Tribool &value)
 

Detailed Description

String data value.

Constructor & Destructor Documentation

§ Tribool() [1/2]

stromx::runtime::Tribool::Tribool ( )
inlineexplicit

Constructs an undefined tribool.

§ Tribool() [2/2]

stromx::runtime::Tribool::Tribool ( const bool  value)
inlineexplicit

Constructs a tribool from a Boolean value.

Member Function Documentation

§ clone()

virtual Data* stromx::runtime::Tribool::clone ( ) const
inlinevirtual

Returns a copy of the data object, i.e. a object of the same type is allocated and the data of the original object is copied to the new object. A pointer to the new object is returned.

Implements stromx::runtime::DataInterface.

§ deserialize()

void stromx::runtime::Tribool::deserialize ( InputProvider in,
const Version version 
)
virtual

Deserializes a data object.

Parameters
outThe input which the data obtained from.
versionThe version of the data class which serialized the input.

Reimplemented from stromx::runtime::Data.

§ package()

virtual const std::string& stromx::runtime::Tribool::package ( ) const
inlinevirtual

Returns the package of the class of this data object.

Implements stromx::runtime::DataInterface.

§ serialize()

void stromx::runtime::Tribool::serialize ( OutputProvider out) const
virtual

Serializes this data object.

Parameters
outThe output which the data is sent to.

Reimplemented from stromx::runtime::Data.

§ type()

virtual const std::string& stromx::runtime::Tribool::type ( ) const
inlinevirtual

Returns the name of the class of this data object.

Implements stromx::runtime::DataInterface.

§ variant()

const VariantHandle & stromx::runtime::Tribool::variant ( ) const
virtual

Returns the data variant of this data object.

Implements stromx::runtime::DataInterface.

§ version()

virtual const Version& stromx::runtime::Tribool::version ( ) const
inlinevirtual

Returns the version of the class of this data object.

Implements stromx::runtime::DataInterface.

Friends And Related Function Documentation

§ operator!=

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

Returns true if the contents of lhs and rhs are different.

§ operator==

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

Returns true if the contents of lhs and rhs are the same.


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