Kea 2.7.5
|
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 | ) |
|
virtual |
Only return the target.
pkt | (unused) |
values | - stack of values (unused) |
Implements isc::dhcp::Token.
Reimplemented in isc::dhcp::TokenPopOrBranchTrue, isc::dhcp::TokenPopOrBranchFalse, and isc::dhcp::TokenPopAndBranchFalse.
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 evaluate(), isc::dhcp::TokenPopOrBranchTrue::evaluate(), isc::dhcp::TokenPopOrBranchFalse::evaluate(), isc::dhcp::TokenPopAndBranchFalse::evaluate(), and getTarget().