로딩중...
검색중...
일치하는것 없음
valStela.hpp
이 파일의 문서화 페이지로 가기
1
2#pragma once
3
4#include "stela/ast/stela.hpp"
5
6namespace by {
7
21 class _nout valStela: public stela {
22 BY(ADT(valStela, stela), VISIT())
23
24 protected:
25 valStela(const std::string& rawVal, const std::string& name = "");
26 valStela(const nchar* rawVal, const std::string& name = "");
27 valStela(nbool val, const std::string& name = "");
28 valStela(nint val, const std::string& name = "");
29 valStela(nflt val, const std::string& name = "");
30 valStela(const me& rhs, const std::string& name = "");
31
32 public:
33 const std::string& asStr() const override;
34 nchar asChar() const override;
35 nint asInt() const override;
36 nbool asBool() const override;
37
38 private:
39 static std::string toLower(std::string it);
40
41 private:
42 std::string _rawVal;
43 };
44}
Definition stela.hpp:63
Weak reference smart pointer with type-safe access
Definition tweak.hpp:16
Scalar value — the abstract base of every leaf form.
Definition valStela.hpp:21
const std::string & asStr() const override
Converts the stela object's value to a string.
nchar asChar() const override
Converts the stela object's value to a character.
nint asInt() const override
Converts the stela object's value to an integer.
nbool asBool() const override
Converts the stela object's value to a boolean.
to Top