![]() |
Kea 3.0.0
|
Token that represents unconditional branch. More...
#include <token.h>
Public Member Functions | |
| TokenBranch (const unsigned target) | |
| Constructor. | |
| virtual unsigned | evaluate (Pkt &pkt, ValueStack &values) |
| Only return the target. | |
| unsigned | getTarget () const |
| Returns branchtarget. | |
| Public Member Functions inherited from isc::dhcp::Token | |
| virtual | ~Token () |
| Virtual destructor. | |
| virtual unsigned | getLabel () const |
| Return the label of this token. | |
Protected Attributes | |
| unsigned | target_ |
Additional Inherited Members | |
| Static Public Member Functions inherited from isc::dhcp::Token | |
| static bool | toBool (std::string value) |
| Coverts a (string) value to a boolean. | |
Token that represents unconditional branch.
Unconditionally branch to a forward target. Also the base class of branch tokens.
| TokenBranch::TokenBranch | ( | const unsigned | target | ) |
Constructor.
| target | the label to branch to |
| EvalParseError | when target is 0 |
Definition at line 1520 of file token.cc.
References isc_throw, and target_.
Referenced by isc::dhcp::TokenPopAndBranchFalse::TokenPopAndBranchFalse(), isc::dhcp::TokenPopOrBranchFalse::TokenPopOrBranchFalse(), and isc::dhcp::TokenPopOrBranchTrue::TokenPopOrBranchTrue().
|
virtual |
Only return the target.
| pkt | (unused) |
| values | - stack of values (unused) |
Implements isc::dhcp::Token.
Reimplemented in isc::dhcp::TokenPopAndBranchFalse, isc::dhcp::TokenPopOrBranchFalse, and isc::dhcp::TokenPopOrBranchTrue.
Definition at line 1527 of file token.cc.
References isc::dhcp::EVAL_DBG_STACK, isc::dhcp::EVAL_DEBUG_BRANCH, isc::dhcp::eval_logger, LOG_DEBUG, and target_.
|
inline |
|
protected |
Definition at line 1474 of file token.h.
Referenced by TokenBranch(), evaluate(), isc::dhcp::TokenPopAndBranchFalse::evaluate(), isc::dhcp::TokenPopOrBranchFalse::evaluate(), isc::dhcp::TokenPopOrBranchTrue::evaluate(), and getTarget().