#include <xdr.h>
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 | |
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.
1.3.4