undo.h
来自「SP是一个基于GNU C++编译器」· C头文件 代码 · 共 72 行
H
72 行
// Copyright (c) 1994 James Clark// See the file COPYING for copying permission.#ifndef Undo_INCLUDED#define Undo_INCLUDED 1#ifdef __GNUG__#pragma interface#endif#include "Link.h"#include "ContentToken.h"#include "OpenElement.h"#include "Allocator.h"#ifdef SP_NAMESPACEnamespace SP_NAMESPACE {#endifclass ParserState;class Event;class Undo : public Link {public: void *operator new(size_t sz, Allocator &alloc) { return alloc.alloc(sz); } void *operator new(size_t sz) { return Allocator::allocSimple(sz); } void operator delete(void *p) { Allocator::free(p); }#ifdef SP_HAVE_PLACEMENT_OPERATOR_DELETE void operator delete(void *p, Allocator &) { Allocator::free(p); }#endif Undo(); virtual ~Undo(); virtual void undo(ParserState *) = 0;private: Undo(const Undo &); // undefined void operator=(const Undo &); // undefined};class UndoTransition : public Undo {public: UndoTransition(const MatchState &); void undo(ParserState *);private: UndoTransition(const UndoTransition &); // undefined void operator=(const UndoTransition &); // undefined MatchState state_;};class UndoStartTag : public Undo {public: UndoStartTag(); void undo(ParserState *);private: UndoStartTag(const UndoStartTag &); // undefined void operator=(const UndoStartTag &); // undefined};class UndoEndTag : public Undo {public: UndoEndTag(OpenElement *); void undo(ParserState *);private: UndoEndTag(const UndoEndTag &); // undefined void operator=(const UndoEndTag &); // undefined Owner<OpenElement> element_;};#ifdef SP_NAMESPACE}#endif#endif /* not Undo_INCLUDED */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?