Loading...
Searching...
No Matches
nVoid.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace by {
7
13 class _nout nVoid: public tscalar<void> {
18 class _nout wVoidType: public ntype {
19 public:
20 nbool isImmutable() const override;
21 const std::string& getName() const override;
22
23 protected:
24 const impliAses& _getImpliAses() const override;
25 };
26 BY(CLASS(nVoid, tscalar<void>, wVoidType), VISIT())
27
28 public:
29 tstr<scalar> bitwiseNot() const override;
30
31 const baseObj& getOrigin() const override;
32
33 public:
34 static me& singleton();
35
36 protected:
37 tstr<scalar> _add(const scalar& rhs, nbool reversed) const override;
38 tstr<scalar> _sub(const scalar& rhs, nbool reversed) const override;
39 tstr<scalar> _mul(const scalar& rhs, nbool reversed) const override;
40 tstr<scalar> _div(const scalar& rhs, nbool reversed) const override;
41 tstr<scalar> _mod(const scalar& rhs, nbool reversed) const override;
42 tstr<scalar> _bitwiseAnd(const scalar& rhs, nbool reversed) const override;
43 tstr<scalar> _bitwiseXor(const scalar& rhs, nbool reversed) const override;
44 tstr<scalar> _bitwiseOr(const scalar& rhs, nbool reversed) const override;
45 tstr<scalar> _lshift(const scalar& rhs, nbool reversed) const override;
46 tstr<scalar> _rshift(const scalar& rhs, nbool reversed) const override;
47
48 nbool _eq(const scalar& rhs) const override;
49 nbool _ne(const scalar& rhs) const override;
50 nbool _gt(const scalar& rhs) const override;
51 nbool _lt(const scalar& rhs) const override;
52 nbool _ge(const scalar& rhs) const override;
53 nbool _le(const scalar& rhs) const override;
54 nbool _logicalAnd(const scalar& rhs) const override;
55 nbool _logicalOr(const scalar& rhs) const override;
56
57 scalar& _mov(const scalar& rhs) override;
58 };
59} // namespace by
Base class for representing byeol objects.
Definition baseObj.hpp:73
Implicit type conversion collection.
Definition impliAses.hpp:12
Void primitive type in byeol language.
Definition nVoid.hpp:13
represents native c++ type system for byeol language
Definition ntype.hpp:33
Base class for arithmetic operations on primitive types.
Definition scalar.hpp:14
Definition tnarr.hpp:9
Definition tscalar.hpp:13
to Top