tbindable.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace by {
7
12 template <typename T> class tbindable {
13 BY_ME(tbindable)
14 BY_INIT_META(me)
15
16 public:
17 // tbindable:
18 explicit operator nbool() const;
19
20 public:
21 virtual nbool bind(const T& it);
25 nbool bind(const T* it);
26
27 virtual void rel() = 0;
28 nbool canBind(const T& it) const;
29 nbool canBind(const T* it) const BY_SIDE_FUNC(canBind);
30 virtual nbool canBind(const type& it) const = 0;
31 nbool canBind(const type* it) const BY_SIDE_FUNC(canBind);
32 virtual nbool isBind() const = 0;
33 };
34}
Template interface for bindable objects.
Definition: tbindable.hpp:12
nbool bind(const T *it)
Bind to instance pointer.
Base class for runtime type information in byeol language.
Definition: type.hpp:12