Public Member Functions

optional< T, DELEGATE > Class Template Reference

#include <Optional.hpp>

Inheritance diagram for optional< T, DELEGATE >:

List of all members.

Public Member Functions

 optional (const T &t)
bool is_set () const
void reset ()
const T & get () const
T & get ()

Detailed Description

template<typename T, template< typename Q > class DELEGATE>
class dds::core::optional< T, DELEGATE >

The optional class is used to wrap attributes annotated with the annotation. This class provides a simple and safe way of accessing, setting and resetting the stored attribute.

Definition at line 31 of file Optional.hpp.


Constructor & Destructor Documentation

optional ( const T &  t  ) 

Member Function Documentation

const T& get (  )  const

Get the attribute. An exception is thrown if the attribute is not set.

T& get (  ) 

Get the attribute. An exception is thrown if the attribute is not set.

bool is_set (  )  const

Returns true only if the attribute is set.

void reset (  ) 

Reset the attribute


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