Class NativeExpression (2.22.0)

Represents a google::type::Expr.

This is a textual representation of an expression in Common Expression Language (CEL) syntax.

Constructors

NativeExpression(std::string, std::string, std::string, std::string)

Create a NativeExpression.

Parameters
NameDescription
expression std::string

the expression in Common Expression Language.

title std::string

an optional title for the expression, i.e. a short string describing its purpose.

description std::string

an optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

location std::string

an optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

NativeExpression(NativeExpression const &)

Parameter
NameDescription
other NativeExpression const &

NativeExpression(NativeExpression &&)

Parameter
NameDescription
NativeExpression &&

Operators

operator=(NativeExpression const &)

Parameter
NameDescription
other NativeExpression const &
Returns
TypeDescription
NativeExpression &

operator=(NativeExpression &&)

Parameter
NameDescription
NativeExpression &&
Returns
TypeDescription
NativeExpression &

Functions

expression() const

Returns
TypeDescription
std::string

set_expression(std::string)

Parameter
NameDescription
expression std::string
Returns
TypeDescription
void

title() const

Returns
TypeDescription
std::string

set_title(std::string)

Parameter
NameDescription
title std::string
Returns
TypeDescription
void

description() const

Returns
TypeDescription
std::string

set_description(std::string)

Parameter
NameDescription
description std::string
Returns
TypeDescription
void

location() const

Returns
TypeDescription
std::string

set_location(std::string)

Parameter
NameDescription
location std::string
Returns
TypeDescription
void