Antares Simulator
Power System Simulator
Antares::Expressions::Nodes::NegationNode Class Referencefinal

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

#include <NegationNode.h>

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

Public Member Functions

std::string name () const override
 
 UnaryNode (Node *child)
 Constructs a unary node with the specified child. More...
 
- Public Member Functions inherited from Antares::Expressions::Nodes::UnaryNode
 UnaryNode (Node *child)
 Constructs a unary node with the specified child. More...
 
Nodechild () const
 Retrieves a pointer to the child node. More...
 
- Public Member Functions inherited from Antares::Expressions::Nodes::ParentNode
template<typename... NodePtr>
 ParentNode (NodePtr... operands)
 
 ParentNode (const std::vector< Node * > &operands)
 Constructs a parent node with the specified operands. More...
 
 ParentNode (std::vector< Node * > &&operands)
 Constructs a parent node with the specified operands. Vector is moved. More...
 
const std::vector< Node * > & getOperands () const
 Retrieves the operands of the parent node. More...
 
const std::vector< const Node * > getConstOperands () const
 
Nodeoperator[] (std::size_t idx) const
 
size_t size () const
 
- Public Member Functions inherited from Antares::Expressions::IName
bool operator== (const IName &other) const =default
 

Detailed Description

Represents a negation node in a syntax tree.

Member Function Documentation

◆ UnaryNode()

Antares::Expressions::Nodes::UnaryNode::UnaryNode
explicit

Constructs a unary node with the specified child.

Parameters
childThe child node.

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