cursor.tex

来自「一个类似STL的自动机的源代码库」· TEX 代码 · 共 31 行

TEX
31
字号
% plain cursor interface specifications% to be included into a LaTeX tabular environment with 3 columns\verb+state_type+ & plain cursor & The type of the states handles ofthe underlying DFA, that is, \verb+DFA::state_type+ \\ \hline\verb+char_type+ & plain cursor & The type of the transitions letters,\verb+DFA::char_type+ \\ \hline\verb+tag_type+ & plain cursor & The type of the tags associated to states,\verb+DFA::tag_type+ \\ \hline\verb+char_traits+ & plain cursor & Character traits associated to\verb+char_type+ \\ \hline\verb+cursor()+ & plain cursor & Default constructor \\ \hline\verb+cursor(const cursor&)+ & plain cursor & Copy constructor \\ \hline\verb+state_type src() const+ & plain cursor & Return the state handlethe cursor is pointing to\\ \hline\verb+cursor& operator=(state_type q)+ & plain cursor & Set the cursorto point to state \verb+q+ \\ \hline\verb+cursor& operator=(const cursor&)+ & plain cursor & Assignment operator \\ \hline\verb+bool operator==(const cursor&) const+ & plain cursor & Return\verb+true+ iff both cursors point to the same state \\ \hline\verb+bool sink() const+ & plain cursor & Return \verb+true+ iff thecursor points to the sink state \verb+DFA::null_state+ \\ \hline\verb+bool forward(const char_type &a)+ & plain cursor & Move alongtransition labeled with \verb+a+ if defined, otherwise move to sinkstate and return \verb+false+ \\ \hline\verb+bool exists(const char_type &a) const+ & plain cursor & Return\verb+true+ if a transition labeled with \verb+a+ is defined \\ \hline\verb+bool src_final() const+ & plain cursor & Return \verb+true+ ifpointed state is final \\ \hline\verb+tag_type src_tag() const+ & plain cursor & Return the objectassociated to pointed state \\ \hline

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?