1 | // |
---|
2 | // Cforall Version 1.0.0 Copyright (C) 2016 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 | // |
---|
7 | // Tables.h -- |
---|
8 | // |
---|
9 | // Author : Andrew Beach |
---|
10 | // Created On : Mon Aug 31 11:07:00 2020 |
---|
11 | // Last Modified By : Andrew Beach |
---|
12 | // Last Modified On : Tue Sep 1 14:29:00 2020 |
---|
13 | // Update Count : 0 |
---|
14 | // |
---|
15 | |
---|
16 | #include <list> // for list |
---|
17 | |
---|
18 | class Declaration; |
---|
19 | class StructDecl; |
---|
20 | class Expression; |
---|
21 | |
---|
22 | namespace Virtual { |
---|
23 | |
---|
24 | std::string vtableTypeName( std::string const & type_name ); |
---|
25 | std::string instanceName( std::string const & vtable_name ); |
---|
26 | std::string vtableInstanceName( std::string const & type_name ); |
---|
27 | bool isVTableInstanceName( std::string const & name ); |
---|
28 | |
---|
29 | /// Converts exceptions into regular structures. |
---|
30 | //void ( std::list< Declaration * > & translationUnit ); |
---|
31 | |
---|
32 | ObjectDecl * makeVtableForward( StructInstType * ); |
---|
33 | ObjectDecl * makeVtableForward( StructDecl *, std::list< Expression * > && ); |
---|
34 | /* Create a forward definition of a vtable of the given type. |
---|
35 | * |
---|
36 | * Instead of the virtual table type you may provide the declaration and all |
---|
37 | * the forall parameters. |
---|
38 | */ |
---|
39 | |
---|
40 | ObjectDecl * makeVtableInstance( StructInstType *, Type *, Initializer * ); |
---|
41 | ObjectDecl * makeVtableInstance( |
---|
42 | StructDecl *, std::list< Expression * > &&, Type *, Initializer * ); |
---|
43 | /* Create an initialized definition of a vtable. |
---|
44 | * |
---|
45 | * The parameters are the virtual table type (or the base declaration and the |
---|
46 | * forall parameters), the object type and optionally an initializer. |
---|
47 | * |
---|
48 | * Instead of the virtual table type you may provide the declaration and all |
---|
49 | * the forall parameters. |
---|
50 | */ |
---|
51 | |
---|
52 | } |
---|