///
/// @param pkt (ignored)
/// @param values (represented string will be pushed here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
protected:
///
/// @param pkt (ignored)
/// @param values (represented string will be pushed here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
protected:
///
/// @param pkt (ignored)
/// @param values (represented string will be pushed here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
///
/// @param pkt (ignored)
/// @param values (represented string will be pushed here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
///
/// @param pkt (ignored)
/// @param values (represented IP address will be pushed here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
protected:
///
/// @param pkt (ignored)
/// @param values (represented IP address as a string will be pushed here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (ignored)
/// @param values (represented 8 bit integer as a string will be pushed
/// here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (ignored)
/// @param values (represented 16 bit integer as a string will be pushed
/// here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (ignored)
/// @param values (represented 32 bit integer as a string will be pushed
/// here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (ignored)
/// @param values (represented 8 bit unsigned integer as a string will be
/// pushed here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (ignored)
/// @param values (represented 16 bit unsigned integer as a string will be
/// pushed here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (ignored)
/// @param values (represented 32 bit unsigned integer as a string will be
/// pushed here)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
///
/// @param pkt specified option will be extracted from this packet (if present)
/// @param values value of the option will be pushed here (or "")
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
/// @brief Returns option-code
///
/// @param pkt - metadata will be extracted from here
/// @param values - stack of values (1 result will be pushed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
/// @brief Returns metadata type
///
/// @param pkt - fields will be extracted from here
/// @param values - stack of values (1 result will be pushed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
/// @brief Returns field type
///
/// @param pkt - packet from which to extract the fields
/// @param values - stack of values, 1 result will be pushed
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
/// @brief Returns field type
///
/// @param pkt fields will be extracted from here
/// @param values - stack of values (1 result will be pushed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
/// @brief Returns nest-level
/// @param pkt (unused)
/// @param values - stack of values (2 arguments will be popped, 1 result
/// will be pushed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (unused)
/// @param values - stack of values (3 arguments will be popped, 1 result
/// will be pushed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (unused)
/// @param values - stack of values (3 arguments will be popped, 1 result
/// will be pushed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (unused)
/// @param values - stack of values (2 arguments will be popped, 1 result
/// will be pushed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
///
/// @param pkt (unused)
/// @param values - stack of values (two items are removed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (unused)
/// @param values - stack of values (2 arguments will be popped, 1 result
/// will be pushed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
///
/// @param pkt (unused)
/// @param values - stack of values (logical top value negated)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (unused)
/// @param values - stack of values (2 arguments will be popped, 1 result
/// will be pushed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @param pkt (unused)
/// @param values - stack of values (2 arguments will be popped, 1 result
/// will be pushed)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
///
/// @param pkt the class name will be check from this packet's client classes
/// @param values true (if found) or false (if not found) will be pushed here
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
/// @brief Returns client class name
///
/// @param pkt - vendor options will be searched for here.
/// @param values - the evaluated value will be pushed here.
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
protected:
///
/// @param pkt - vendor options will be searched for here.
/// @param values - the evaluated value will be pushed here.
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
/// @brief Data chunk index.
///
/// @param pkt specified parent option will be extracted from this packet
/// @param values value of the sub-option will be pushed here (or "")
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
/// @brief Returns sub-option-code
/// @param pkt (unused)
/// @param values - stack of values (1 popped, 1 pushed)
/// @throw EvalBadStack if there is no value on the stack
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
/// @brief Returns regular expression.
///
/// @param pkt (unused)
/// @param values - stack of values (unused)
+ /// @return 0 which means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
protected:
///
/// @param pkt (unused)
/// @param values - stack of values (unused)
+ /// @return next label.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
protected:
/// @throw EvalBadStack if there are less than 1 value on stack
/// @throw EvalTypeError if the top value on the stack is not either
/// "true" or "false"
+ /// @return next label or 0 when means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @throw EvalBadStack if there are less than 1 value on stack
/// @throw EvalTypeError if the top value on the stack is not either
/// "true" or "false"
+ /// @return next label or 0 when means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};
/// @throw EvalBadStack if there are less than 1 value on stack
/// @throw EvalTypeError if the top value on the stack is not either
/// "true" or "false"
+ /// @return next label or 0 when means evaluate next token if any.
virtual unsigned evaluate(Pkt& pkt, ValueStack& values);
};