disguise developers

Designer Plugins

Plugins for Disguise Designer software.

optional

Reflection of the std::optional class from the C++ standard library

Base class: _BlipValue

Variables

set : Callable

Constructors

__init__(self)

Default constructor for optional

__init__(self, arg0: std_nullopt)

Construct an optional with no value

__init__(self, arg0: int)

Construct an optional with a value

__init__(self, other: optional[T])

Copy constructor for optional

Methods

has_value(self) -> bool

Whether the optional has a valid value

value(self) -> int

The value of the optional

value_or(self, arg0: int) -> int

Returns the value of the optional, or a provided default value if it doesn’t have one

Special Methods

__bool__(self) -> bool

Whether the optional has a valid value

__nonzero__(self) -> bool

Whether the optional has a valid value