cursor.h

来自「一个类似STL的自动机的源代码库」· C头文件 代码 · 共 79 行

H
79
字号
/* * ASTL - the Automaton Standard Template Library. * C++ generic components for Finite State Machine handling. * Copyright (C) 2000 Vincent Le Maout (vlemaout@lexiquest.fr). *  * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. *  * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. *  * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * */// Template files for cursor definitions#ifndef ASTL_CURSORS_TEMPLATES#define ASTL_CURSORS_TEMPLATES#include <concept.h>    // conceptstemplate < >class cursor : public cursor_concept{public:  typedef cursor self;  typedef state_type;  typedef char_type;  typedef tag_type;  typedef char_traits;  typedef state_type  State;  typedef tag_type    Tag;  typedef char_type   Alphabet;  typedef char_traits Sigma;  cursor()  { }  State src() const   { }  self& operator=(state_type p)   { }  self& operator=(const self &x)   { }  bool operator==(const self &x) const   { }  bool sink() const     { }    state_type sink_state() const     { }  bool forward(const char_type& a)   { }    bool src_final() const   { }  tag_type src_tag() const    { }    bool exists(const char_type& a) const   { }};#endif 

⌨️ 快捷键说明

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