MADARA  3.2.3
CompositeTernaryNode.cpp
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 
3 #ifndef _TERNARY_NODE_CPP_
4 #define _TERNARY_NODE_CPP_
5 
6 #ifndef _MADARA_NO_KARL_
7 
8 #include <stdexcept>
9 
12 
13 
16 : ComponentNode (logger), nodes_ ()
17 {
18 
19 }
20 
21 
23  logger::Logger & logger, const ComponentNodes & nodes)
24 : ComponentNode (logger), nodes_ (nodes)
25 {
26 
27 }
28 
29 // Dtor
31 {
32  for (ComponentNodes::iterator i = nodes_.begin (); i != nodes_.end (); ++i)
33  delete *i;
34 }
35 
38 {
40 }
41 
42 // accept a visitor
43 void
45 {
46  (void) visitor;
47 }
48 
49 #endif // _MADARA_NO_KARL_
50 
51 #endif /* _TERNARY_NODE_CPP_ */
This class encapsulates an entry in a KnowledgeBase.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
madara::knowledge::KnowledgeRecord KnowledgeRecord
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Provides knowledge logging services to files and terminals.
Definition: GlobalLogger.h:11
A multi-threaded logger for logging to one or more destinations.
Definition: Logger.h:88
CompositeTernaryNode(logger::Logger &logger)
Constructor.
An abstract base class defines a simple abstract implementation of an expression tree node...
Definition: ComponentNode.h:36
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:91
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.