로딩중...
검색중...
일치하는것 없음
tarrayable.hpp
이 파일의 문서화 페이지로 가기
1
2#pragma once
3
4#include "core/type/ntype.hpp"
5
6namespace by {
7
11 template <typename T, typename R = T*, typename RSquare = T&> class tarrayable {
13
14 public:
15 virtual ~tarrayable() {}
16
17 // operator:
18 virtual RSquare operator[](nidx n) = 0;
19
20 const RSquare operator[](nidx n) const BY_CONST_FUNC(operator[](n))
21
22 // in:
23 virtual nbool in(nidx n) const = 0;
24
25 // get:
26 virtual R get(nidx n) = 0;
27 const R get(nidx n) const BY_CONST_FUNC(get(n))
28
29 // set:
30 virtual nbool set(nidx n, const T& new1) = 0;
31 nbool set(nidx n, const T* new1) BY_SIDE_FUNC(new1, set(n, *new1), false);
32
33 // add:
37 virtual nbool add(nidx n, const T& new1) = 0;
38 nbool add(nidx n, const T* new1) BY_SIDE_FUNC(new1, add(n, *new1), false);
39
40 // del:
45 virtual nbool del(nidx n) = 0;
46 };
47} // namespace by
Definition tarrayable.hpp:11
virtual nbool del(nidx n)=0
virtual nbool add(nidx n, const T &new1)=0
Definition tnarr.hpp:9
to Top