src.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace by {
11 class _nout src: public instance {
12 BY(CLASS(src, instance))
13 friend class parser;
14 friend class genericOrigin; // for _setName() at genericOrigin::_makeGeneric()
15
16 public:
17 src(const srcFile& file, const std::string& name, const point& pos);
18
19 public:
20 const srcFile* getFile() const;
21 const point& getPos() const;
22 const std::string& getName() const;
23
24 protected:
25 virtual void _setFile(const srcFile& new1);
26 virtual void _setPos(const point& new1);
27 virtual void _setName(const std::string& new1);
28
29 private:
30 tstr<srcFile> _file;
31 std::string _name;
32 point _pos;
33 };
34
35 template <typename T, typename WRP> class tnarr;
36 typedef tnarr<src> srcs;
37}
Generic type origin with type parameters.
Definition: genericOrigin.hpp:15
Base class for all managed instances in memlite system.
Definition: instance.hpp:20
Parser for byeol language source code.
Definition: parser.hpp:43
Source file representation.
Definition: srcFile.hpp:13
Source location information.
Definition: src.hpp:11
Definition: tnarr.hpp:9
Strong reference smart pointer with strict type checking.
Definition: tstr.hpp:13
Source code position tracking structure.
Definition: point.hpp:11