| 
    MADARA
    3.1.8
    
   | 
 
Returns a random integer. More...
#include <SystemCallRandInt.h>


Public Member Functions | |
| SystemCallRandInt (madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes) | |
| Constructor.  More... | |
| virtual | ~SystemCallRandInt (void) | 
| Destructor.  More... | |
| virtual void | accept (Visitor &visitor) const | 
| Accepts a visitor subclassed from the Visitor class.  More... | |
| virtual madara::knowledge::KnowledgeRecord | evaluate (const madara::knowledge::KnowledgeUpdateSettings &settings) | 
| Evaluates the expression tree.  More... | |
| virtual madara::knowledge::KnowledgeRecord | item (void) const | 
| Returns the value of the node.  More... | |
| virtual ComponentNode * | left (void) const | 
| Returns the left expression.  More... | |
| virtual madara::knowledge::KnowledgeRecord | prune (bool &can_change) | 
| Prunes the expression tree of unnecessary nodes.  More... | |
| virtual ComponentNode * | right (void) const | 
| Returns the right expression.  More... | |
| void | set_logger (logger::Logger &logger) | 
| Sets the logger for printing errors and debugging info.  More... | |
Protected Attributes | |
| madara::knowledge::ThreadSafeContext & | context_ | 
| logger::Logger * | logger_ | 
| handle the context  More... | |
| ComponentNodes | nodes_ | 
Returns a random integer.
Definition at line 24 of file SystemCallRandInt.h.
| madara::expression::SystemCallRandInt::SystemCallRandInt | ( | madara::knowledge::ThreadSafeContext & | context, | 
| const ComponentNodes & | nodes | ||
| ) | 
Constructor.
Definition at line 12 of file SystemCallRandInt.cpp.
      
  | 
  virtual | 
Destructor.
Definition at line 21 of file SystemCallRandInt.cpp.
      
  | 
  virtual | 
Accepts a visitor subclassed from the Visitor class.
| visitor | visitor instance to use | 
Reimplemented from madara::expression::SystemCallNode.
Definition at line 99 of file SystemCallRandInt.cpp.
      
  | 
  virtual | 
Evaluates the expression tree.
Evaluates the node and its children.
This does not prune any of the expression tree, and is much faster than the prune function
Implements madara::expression::SystemCallNode.
Definition at line 68 of file SystemCallRandInt.cpp.
      
  | 
  virtual | 
Returns the value of the node.
Reimplemented from madara::expression::SystemCallNode.
Definition at line 26 of file SystemCallRandInt.cpp.
      
  | 
  virtualinherited | 
Returns the left expression.
Reimplemented in madara::expression::CompositeBinaryNode.
Definition at line 34 of file ComponentNode.cpp.
      
  | 
  virtual | 
Prunes the expression tree of unnecessary nodes.
Prune the tree of unnecessary nodes.
| can_change | set to true if variable nodes are contained | 
Returns evaluation of the node and sets can_change appropriately. if this node can be changed, that means it shouldn't be pruned.
Implements madara::expression::SystemCallNode.
Definition at line 35 of file SystemCallRandInt.cpp.
      
  | 
  virtualinherited | 
Returns the right expression.
Reimplemented in madara::expression::CompositeUnaryNode.
Definition at line 41 of file ComponentNode.cpp.
      
  | 
  inherited | 
Sets the logger for printing errors and debugging info.
| logger | the logger to use | 
Definition at line 53 of file ComponentNode.cpp.
      
  | 
  protectedinherited | 
Definition at line 76 of file SystemCallNode.h.
      
  | 
  protectedinherited | 
handle the context
Definition at line 96 of file ComponentNode.h.
      
  | 
  protectedinherited | 
Definition at line 76 of file CompositeTernaryNode.h.