From f81aa77883acb214e3c4fdc8516864c0cf8975cd Mon Sep 17 00:00:00 2001 From: multmine1 Date: Mon, 28 Jul 2025 00:31:05 +0300 Subject: [PATCH] Delete nfa_node.hpp --- nfa_node.hpp | 74 ---------------------------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 nfa_node.hpp diff --git a/nfa_node.hpp b/nfa_node.hpp deleted file mode 100644 index e0ad431..0000000 --- a/nfa_node.hpp +++ /dev/null @@ -1,74 +0,0 @@ -// -// nfa_node.hpp -// lab2 -// -// Created by Владислав Агибалов on 19.07.2025. -// - -#ifndef nfa_node_hpp -#define nfa_node_hpp - -#include -#include "node.hpp" - -namespace regex{ - -class nfa_node: public node{ - - bool is_finish_; - - bool eps_; - - size_t is_start_; - - size_t is_end_; - - std::vector> eps_edges_; - - size_t symbol_; - - std::weak_ptr next_node_; - - inline static std::shared_ptr null_node_ = nullptr; - -public: - - nfa_node() = delete; - - explicit nfa_node(size_t); - - explicit nfa_node(size_t, size_t); - - explicit nfa_node(char, std::weak_ptr); - - bool getFinish() const; - - bool isEps() const; - - void setFinish(bool); - - size_t size() const; - - const std::weak_ptr operator[](size_t i) const; - - void addEps(std::weak_ptr); - - size_t getSymbol() const; - - size_t getStart() const; - - size_t getEnd() const; - - void setStart(size_t); - - void setEnd(size_t); - - void addEdge(size_t, std::weak_ptr); - -}; - - -} - - -#endif /* nfa_node_hpp */