![]() |
Spicy
|
#include <operator.h>
Public Member Functions | |
Operand (Operand &&)=default | |
Operand (const Operand &)=default | |
Operand & | operator= (Operand &&)=default |
Operand & | operator= (const Operand &)=default |
Operand (std::optional< ID > _id={}, OperandType _type={}, bool _optional=false, std::optional< Expression > _default={}, std::optional< std::string > _doc={}) | |
bool | operator== (const Operand &other) const |
Public Attributes | |
std::optional< ID > | id |
OperandType | type |
bool | optional = false |
std::optional< Expression > | default_ = {} |
std::optional< std::string > | doc |
Describes an operand that an operator accepts.
std::optional<Expression> hilti::operator_::Operand::default_ = {} |
default valuer if operator is skipped
std::optional<std::string> hilti::operator_::Operand::doc |
alternative rendering for the auto-generated documentation
std::optional<ID> hilti::operator_::Operand::id |
ID for the operand; used only for documentation purposes.
bool hilti::operator_::Operand::optional = false |
true if operand can be skipped; default_
will be used instead
OperandType hilti::operator_::Operand::type |
operand's type