syntaxtree.hpp

来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· HPP 代码 · 共 96 行

HPP
96
字号
// file      : Example/Introspection/Traversal/SyntaxTree.hpp// author    : Boris Kolpackov <boris@kolpackov.net>// copyright : Copyright (c) 2002-2003 Boris Kolpackov// license   : http://kolpackov.net/license.html#ifndef SYNTAX_TREE_HPP#define SYNTAX_TREE_HPP#include <vector>#include "Utility/Introspection/Introspection.hpp"namespace SyntaxTree{  //  //  //  struct Node : virtual Utility::Introspection::Object  {    Node ()    {      type_info (static_type_info ());    }    static Utility::Introspection::TypeInfo const&    static_type_info ();  };  //  //  //  struct Declaration : virtual Node  {    Declaration ()    {      type_info (static_type_info ());    }    static Utility::Introspection::TypeInfo const&    static_type_info ();  };  typedef  std::vector<Declaration*>  DeclarationList;  //  //  //  struct Scope : virtual Declaration  {    Scope ()    {      type_info (static_type_info ());    }    static Utility::Introspection::TypeInfo const&    static_type_info ();    DeclarationList content_;  };  //  //  //  struct InterfaceDecl : virtual Declaration  {    InterfaceDecl ()    {      type_info (static_type_info ());    }    static Utility::Introspection::TypeInfo const&    static_type_info ();  };  //  //  //  struct InterfaceDef : virtual InterfaceDecl, virtual Scope  {    InterfaceDef ()    {      type_info (static_type_info ());    }    static Utility::Introspection::TypeInfo const&    static_type_info ();  };}#endif  // SYNTAX_TREE_HPP//$Id: SyntaxTree.hpp 66067 2005-05-24 04:33:13Z turkaye $

⌨️ 快捷键说明

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