baseCtor.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace by {
7
12 class baseCtor: public baseFunc {
13 BY(ME(baseCtor, baseFunc), VISIT())
14 friend class generalizer; // for _setOrigin()
15
16 public:
17 baseCtor(const mgdType& type);
18
19 public:
20 str getEval() const override;
21 const ntype& getType() const override;
22 const baseObj& getOrigin() const override;
23
24 private:
25 void _setOrigin(const baseObj& newOrg);
26
27 private:
28 mgdType _type;
29 };
30}
Base class for all constructor types.
Definition: baseCtor.hpp:12
str getEval() const override
Base class for all function types.
Definition: baseFunc.hpp:18
Base class for all objects in byeol language.
Definition: baseObj.hpp:24
Visitor for generic type parameter replacement.
Definition: generalizer.hpp:13
Managed type for byeol objects.
Definition: mgdType.hpp:17
Native type system for byeol language.
Definition: ntype.hpp:19
Base class for runtime type information in byeol language.
Definition: type.hpp:12