Main Page | Class Hierarchy | Class List | File List | Class Members

SST::XdrOption< T > Class Template Reference

Template class representing a length-delimited XDR option. More...

#include <xdr.h>

List of all members.

Public Member Functions

 XdrOption (const T &o)
 XdrOption (const XdrOption< T > &o)
bool isNull () const
 An option is "null" if we don't have it in its decoded form.

bool isEmpty () const
 An option is "empty" if we don't have it in any form.

T & alloc ()
void clear ()
QByteArray getEncoded () const
void setEncoded (const QByteArray &e)
XdrOption< T > & operator= (const XdrOption< T > &o)
XdrOption< T > & operator= (T *o)
T * operator-> () const
T & operator * () const
 operator T * () const


Detailed Description

template<class T>
class SST::XdrOption< T >

Template class representing a length-delimited XDR option.

An "option" is our own extension to XDR, similar to XdrPointer in that it represents an optional instance of some other type, but uses a length-delimited encoding rather than just a boolean flag, so that on decode we can skip over a value we can't understand. For encoding purposes an "option" is equivalent to an opaque<>; the purpose of this template class is merely to make it easier to get at the semantic content _within_ the "opaque" field.


The documentation for this class was generated from the following file:
Generated on Wed Mar 28 11:48:05 2007 for SST by doxygen 1.3.4