blob: 87f57d816907713be376641a24da5e392da43e9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/**
** \file ast/type-constructor.hh
** \brief Declaration of ast::TypeConstructor.
*/
#pragma once
#include <ast/fwd.hh>
#include <type/fwd.hh>
namespace ast
{
/** \class ast::TypeConstructor
** \brief Create a new type.
*/
class TypeConstructor
{
// FIXME DONE: Some code was deleted here.
public:
// Basic default constructor
// BUT we have a custom destructor this time (daring today aren't we?)
TypeConstructor();
~TypeConstructor();
// Basic accessors
void created_type_set(const type::Type*);
const type::Type* created_type_get() const;
// Implementing the visitor so this can also be visited
void accept(ConstVisitor& v) const;
void accept(Visitor& v);
private:
const type::Type* reference_;
};
} // namespace ast
#include <ast/type-constructor.hxx>
|