로딩중...
검색중...
일치하는것 없음
tdumArr.hpp
이 파일의 문서화 페이지로 가기
1
2#pragma once
3
5#include "core/ast/origin.hpp"
6
7namespace by {
12 template <typename T, typename defaultElemType = T> class _nout tdumArr: public tarr<T, defaultElemType> {
15 typedef typename super::iter iter;
16
17 public:
18 tdumArr(): super(*new origin(*new mgdType("node", ttype<node>::get(), params()))) {}
19
20 tdumArr(const node& elemType): super(elemType) {}
21
22 public:
23 using tucontainable<node>::set;
24 using tarrayable<node>::set;
25
26 nbool set(const iter& at, const node& new1) override { return true; }
27
28 nbool set(nidx n, const node& new1) override { return true; }
29
30 using tucontainable<node>::add;
31 using tarrayable<node>::add;
32
33 nbool add(const iter& at, const node& new1) override { return true; }
34
35 nbool add(nidx n, const node& new1) override { return true; }
36
37 void add(const iter& here, const iter& from, const iter& to) override {}
38 };
39
40 typedef tdumArr<node, mockObj> dumArr;
41} // namespace by
Script type for byeol objects
Definition mgdType.hpp:18
Base class for all AST nodes in the byeol language
Definition node.hpp:195
User-defined origin type
Definition origin.hpp:99
Function parameter list container
Definition params.hpp:16
Definition tarr.hpp:8
Definition tarrayable.hpp:11
Dummy array that ignores all modifications
Definition tdumArr.hpp:12
nbool add(nidx n, const node &new1) override
Definition tdumArr.hpp:35
Definition tnarr.hpp:9
Template unidirectional container interface
Definition tucontainable.hpp:20
Bidirectional iterator for key-value containers
Definition biter.hpp:10
to Top