Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Expressions::Nodes::UnaryNode Class Reference

Represents a unary node in a syntax tree. More...

#include <UnaryNode.h>

Inheritance diagram for Antares::Expressions::Nodes::UnaryNode:
Antares::Expressions::Nodes::Node Antares::Expressions::IName Antares::Expressions::Nodes::NegationNode

Public Member Functions

 UnaryNode (Node *child)
 Constructs a unary node with the specified child.
 
Nodechild () const
 Retrieves a pointer to the child node.
 
- Public Member Functions inherited from Antares::Expressions::Nodes::Node
- Public Member Functions inherited from Antares::Expressions::IName
virtual std::string name () const =0
 
bool operator== (const IName &other) const =default
 

Detailed Description

Represents a unary node in a syntax tree.

Constructor & Destructor Documentation

◆ UnaryNode()

Antares::Expressions::Nodes::UnaryNode::UnaryNode ( Node * child)
explicit

Constructs a unary node with the specified child.

Parameters
childThe child node.

Member Function Documentation

◆ child()

Node * Antares::Expressions::Nodes::UnaryNode::child ( ) const

Retrieves a pointer to the child node.

Returns
A pointer to the child node.

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