Delete dfa_node.hpp
This commit is contained in:
parent
105dab246e
commit
be0b1dd0f1
1 changed files with 0 additions and 43 deletions
43
dfa_node.hpp
43
dfa_node.hpp
|
|
@ -1,43 +0,0 @@
|
|||
//
|
||||
// dfa_node.hpp
|
||||
// lab2
|
||||
//
|
||||
// Created by Владислав Агибалов on 19.07.2025.
|
||||
//
|
||||
|
||||
#ifndef dfa_node_hpp
|
||||
#define dfa_node_hpp
|
||||
|
||||
#include <stdio.h>
|
||||
#include "node.hpp"
|
||||
|
||||
namespace regex {
|
||||
|
||||
class dfa_node: public node{
|
||||
|
||||
bool finish_;
|
||||
|
||||
std::map<size_t, std::weak_ptr<dfa_node>> next_dfa_states_;
|
||||
|
||||
inline static std::shared_ptr<dfa_node> null_node_ = nullptr;
|
||||
|
||||
public:
|
||||
|
||||
dfa_node();
|
||||
|
||||
std::map<size_t, std::weak_ptr<dfa_node>> const& getnextstates() const;
|
||||
|
||||
void setFinish(bool);
|
||||
|
||||
bool getFinish() const;
|
||||
|
||||
void addEdge(size_t, std::weak_ptr<dfa_node>);
|
||||
|
||||
std::weak_ptr<dfa_node> operator[](size_t) const;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* dfa_node_hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue