![]() | InDesign SDK 20.5 |
#include <UnspecifiableOf.h>
Public Member Functions | |
| UnspecifiableOf (const Unspecified &) | |
| UnspecifiableOf (const ValueType &value) | |
| UnspecifiableOf (const UnspecifiableOf &other) | |
| UnspecifiableOf< ValueType > & | operator= (const UnspecifiableOf< ValueType > &other) |
| bool | IsSpecified () const |
| ValueType | GetValue () const |
UnspecifiableOf is a template that can be used to implement optional arguments to methods and functions. For example, if you have a method that takes a optional int argument, declare the type of the argument to be UnspecifiableOf<int>. Clients of the method can then pass an int or kUnspecified.
| inline |
Constructor for unspecified case
| unspecified |
| inline |
Constructor for specified case
| value |
| inline |
Copy constuctor
| other | is the object to copy |
| inline |
GetValue returns the value if specified
| inline |
IsSpecified return true if the argument was specified otherwise false
| inline |
Assignment operator
| other,the | object to assign to this object |