Calculator Step 4

- Main Page
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Private Member Functions | List of all members
node_void Class Reference

`#include <node_impl.hpp>`

Inheritance diagram for node_void:

## Public Member Functions
| node_void ()
Public Member Functions inherited from node_impl
| node_impl ()
| node_impl (node_impl &&)=default
node_impl & | operator= (node_impl &&)=default
virtual | ~node_impl ()
void | print (std::ostream &stream, int indent) const
double | evaluate () const
std::string | to_string () const
identifier_list const & | get_parameters () const

## Private Member Functions
virtual void | print_node (std::ostream &stream, int indent) const override
virtual double | evaluate_node () const override
virtual std::string | evaluate_string () const override

## Detailed Description

Void data type. Currently used only for the node default constructor.

Definition at line 45 of file node_impl.hpp.

## Constructor & Destructor Documentation

node_void::node_void | ( |  | ) |

Definition at line 58 of file node_impl.cpp.

59 : node_impl()
60 {}
node_impl::node_impl
node_impl()
Definition: node_impl.cpp:12

## Member Function Documentation

double node_void::evaluate_node | ( |  | ) | const
| override private virtual

Implements node_impl.

Definition at line 68 of file node_impl.cpp.

70 {
71 return 0.0;
72 }

std::string node_void::evaluate_string | ( |  | ) | const
| override private virtual

Reimplemented from node_impl.

Definition at line 74 of file node_impl.cpp.

76 {
77 return std::string{};
78 }

void node_void::print_node | ( | std::ostream & | stream,
|  | int | indent
| ) |  | const
| override private virtual

Implements node_impl.

Definition at line 62 of file node_impl.cpp.

64 {
65 stream << std::setw(indent) << "" << "void\n";
66 }

The documentation for this class was generated from the following files:

- node_impl.hpp
- node_impl.cpp