:: com :: sun :: star :: beans ::
|
template struct Optional<T> |
|
- Description
- An optional value of a given type.
This structure is used as the type of interface attributes corresponding
to instances of Property that
have the PropertyAttribute::MAYBEVOID. It might
also be useful in other situations, for example as the return type of an
interface method.
|
Elements' Summary |
IsPresent |
Marks this structure instance as having an actual value.
|
Value |
The actual value of this structure instance.
|
Elements' Details |
IsPresent
boolean IsPresent;
- Description
- Marks this structure instance as having an actual value.
|
|
Value
T Value;
- Description
- The actual value of this structure instance.
If no actual value is present, a producer of such a structure instance
should leave this member defaulted, and a consumer of such a structure
instance should ignore the specific value stored in this member.
|
|
Top of Page
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.