1 /********************* */
2 /*! \file variable_type_map.h
4 ** Original author: mdeters
5 ** Major contributors: none
6 ** Minor contributors (to current version): taking
7 ** This file is part of the CVC4 prototype.
8 ** Copyright (c) 2009-2012 New York University and The University of Iowa
9 ** See the file COPYING in the top-level source directory for licensing
10 ** information.\endverbatim
12 ** \brief [[ Add one-line brief description here ]]
14 ** [[ Add lengthier description here ]]
15 ** \todo document this file
18 #include "cvc4_public.h"
20 #ifndef __CVC4__VARIABLE_TYPE_MAP_H
21 #define __CVC4__VARIABLE_TYPE_MAP_H
23 #include "expr/expr.h"
24 #include "util/hash.h"
29 struct ExprHashFunction
;
31 struct TypeHashFunction
;
33 class CVC4_PUBLIC VariableTypeMap
{
35 * A map Expr -> Expr, intended to be used for a mapping of variables
36 * between two ExprManagers.
38 std::hash_map
<Expr
, Expr
, ExprHashFunction
> d_variables
;
41 * A map Type -> Type, intended to be used for a mapping of types
42 * between two ExprManagers.
44 std::hash_map
<Type
, Type
, TypeHashFunction
> d_types
;
47 Expr
& operator[](Expr e
) { return d_variables
[e
]; }
48 Type
& operator[](Type t
) { return d_types
[t
]; }
50 };/* class VariableTypeMap */
52 typedef __gnu_cxx::hash_map
<uint64_t, uint64_t> VarMap
;
54 struct CVC4_PUBLIC ExprManagerMapCollection
{
55 VariableTypeMap d_typeMap
;
58 };/* struct ExprManagerMapCollection */
62 #endif /* __CVC4__VARIABLE_MAP_H */