tcalc 0.2.0
 
Loading...
Searching...
No Matches
tcalc::ast::ProgramImportNode Class Reference

Program import node. More...

#include <program.hpp>

Inheritance diagram for tcalc::ast::ProgramImportNode:
tcalc::ast::Node

Public Member Functions

 ProgramImportNode (std::string path)
 Construct a new Program Import Node object.
 
TCALC_INLINE auto & path () const noexcept
 Get path.
 
TCALC_INLINE auto & path () noexcept
 Get path.
 
TCALC_INLINE void path (std::string path) noexcept
 Set path.
 
- Public Member Functions inherited from tcalc::ast::Node
 Node (NodeType type)
 Construct a new Node object.
 
TCALC_INLINE auto type () const noexcept
 Get the node type.
 

Detailed Description

Program import node.

Constructor & Destructor Documentation

◆ ProgramImportNode()

tcalc::ast::ProgramImportNode::ProgramImportNode ( std::string  path)
inlineexplicit

Construct a new Program Import Node object.

Parameters
pathPath.

Member Function Documentation

◆ path() [1/3]

TCALC_INLINE auto & tcalc::ast::ProgramImportNode::path ( ) const
inlinenoexcept

Get path.

Returns
const std::string& Path.

◆ path() [2/3]

TCALC_INLINE auto & tcalc::ast::ProgramImportNode::path ( )
inlinenoexcept

Get path.

Returns
std::string& Path.

◆ path() [3/3]

TCALC_INLINE void tcalc::ast::ProgramImportNode::path ( std::string  path)
inlinenoexcept

Set path.

Parameters
pathPath.

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