-
Notifications
You must be signed in to change notification settings - Fork 1
/
winxedxx_null.h
60 lines (51 loc) · 1.71 KB
/
winxedxx_null.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef INCLUDE_WINXEDXX_NULL_H
#define INCLUDE_WINXEDXX_NULL_H
// winxedxx_null.h
// (C) 2011 Julián Albo "NotFound"
namespace WinxedXX
{
class WxxNull : public WxxObject
{
public:
void init_pmc(const WxxObjectPtr &arg);
std::string class_name() const;
int is_null() const;
int instanceof(const std::string &type);
int get_bool();
int get_integer();
double get_number();
void * get_pointer();
void set_pointer(void *p);
int elements() const;
std::string get_string();
int is_equal(const WxxObject &to);
WxxObject & set(int value);
WxxObject & set(double value);
WxxObject & set(const std::string &s);
void increment();
void decrement();
WxxObjectPtr add(const WxxObjectPtr &value);
WxxObjectPtr sub(const WxxObjectPtr &value);
int get_integer_keyed(int i);
double get_number_keyed(int i);
std::string get_string_keyed(int i);
WxxObjectPtr get_pmc_keyed(int i);
WxxObjectPtr get_pmc_keyed(const std::string &s);
WxxObjectPtr get_pmc_keyed(const WxxObjectPtr &key);
void set_pmc_keyed(int i, const WxxObjectPtr &value);
void set_pmc_keyed(const std::string &s, const WxxObjectPtr &value);
int exists(const std::string &key);
WxxObjectPtr & get_attr_str(const std::string &s);
void set_attr_str(const std::string &s, const WxxObjectPtr &value);
WxxObjectPtr get_iter();
WxxObjectPtr shift_pmc();
WxxObjectPtr get_class();
WxxObjectPtr instantiate();
WxxObjectPtr operator()(WxxObjectArray &args);
WxxObjectPtr call_method(const std::string &methname, WxxObjectArray &args);
private:
void nullaccess(const std::string &funcname) const;
};
} // namespace WinxedXX
#endif
// End of winxedxx_null.h