Calculator Step 3

- 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 ()
virtual | ~node_impl ()
void | print (std::ostream &stream, int indent) const
double | evaluate () const
std::string | to_string () const

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

## Detailed Description

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

Definition at line 40 of file node_impl.hpp.

## Constructor & Destructor Documentation

node_void::node_void | ( |  | ) |

Definition at line 42 of file node_impl.cpp.

43 : node_impl{}
44 {}
node_impl
Definition: node_impl.hpp:17

## Member Function Documentation

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

Implements node_impl.

Definition at line 52 of file node_impl.cpp.

54 {
55 return 0.0;
56 }

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

Reimplemented from node_impl.

Definition at line 58 of file node_impl.cpp.

60 {
61 return std::string{};
62 }

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

Implements node_impl.

Definition at line 46 of file node_impl.cpp.

48 {
49 stream << std::setw(indent) << "" << "void\n";
50 }

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

- node_impl.hpp
- node_impl.cpp