source: src/Parser/TypedefTable.h @ 94b1022a

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumwith_gc
Last change on this file since 94b1022a was 2f0a0678, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

simplify TypedefTable?

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[b87a5ed]1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
[be9288a]7// TypedefTable.h --
[b87a5ed]8//
[7fdb94e]9// Author           : Peter A. Buhr
[b87a5ed]10// Created On       : Sat May 16 15:24:36 2015
11// Last Modified By : Peter A. Buhr
[2f0a0678]12// Last Modified On : Tue May 22 08:39:29 2018
13// Update Count     : 77
[b87a5ed]14//
15
[6b0b624]16#pragma once
[51b7345]17
[7fdb94e]18#include <string>                                                                               // for string
[51b7345]19
[7fdb94e]20#include "Common/ScopedMap.h"                                                   // for ScopedMap
[be9288a]21#include "ParserTypes.h"
[7fdb94e]22#include "parser.hh"                                                                    // for IDENTIFIER, TYPEDEFname, TYPEGENname
[984dce6]23
[c8ffe20b]24class TypedefTable {
[2f0a0678]25        typedef ScopedMap< std::string, int > KindTable;
[7fdb94e]26        KindTable kindTable;   
[51b7345]27  public:
[7fdb94e]28        ~TypedefTable();
[45161b4d]29
[7fdb94e]30        bool exists( const std::string & identifier );
31        int isKind( const std::string & identifier ) const;
[2f0a0678]32        void changeKind( const std::string & identifier, int kind );
[7fdb94e]33        void makeTypedef( const std::string & name );
[2f0a0678]34        void addToEnclosingScope( const std::string & identifier, int kind );
[be9288a]35
[b87a5ed]36        void enterScope();
37        void leaveScope();
[7fdb94e]38}; // TypedefTable
[51b7345]39
[b87a5ed]40// Local Variables: //
41// tab-width: 4 //
42// mode: c++ //
43// compile-command: "make install" //
44// End: //
Note: See TracBrowser for help on using the repository browser.