this repo has no description
1#ifndef __Mzn_VARSETOBJECT_H
2#define __Mzn_VARSETOBJECT_H
3
4#include "Expression.h"
5
6struct MznVarSet : MznExpression {};
7
8static PyObject* MznVarSet_new(PyTypeObject* type, PyObject* args, PyObject* kwds) {
9 MznVarSet* self = reinterpret_cast<MznVarSet*>(type->tp_alloc(type, 0));
10 reinterpret_cast<MznObject*>(self)->tid = MOC_VARSET;
11 self->e = NULL;
12 return reinterpret_cast<PyObject*>(self);
13}
14
15static void MznVarSet_dealloc(MznVarSet* self) {
16 Py_TYPE(self)->tp_free(reinterpret_cast<PyObject*>(self));
17}
18
19static PyTypeObject MznVarSet_Type = {
20 PyVarObject_HEAD_INIT(NULL, 0) "minizinc.VarSet", /* tp_name */
21 sizeof(MznVarSet), /* tp_basicsize */
22 0, /* tp_itemsize */
23 (destructor)MznVarSet_dealloc, /* tp_dealloc */
24 0, /* tp_print */
25 0, /* tp_getattr */
26 0, /* tp_setattr */
27 0, /* tp_reserved */
28 0, /* tp_repr */
29 0, /* tp_as_number */
30 0, /* tp_as_sequence */
31 0, /* tp_as_mapping */
32 0, /* tp_hash */
33 0, /* tp_call */
34 0, /* tp_str */
35 0, /* tp_getattro */
36 0, /* tp_setattro */
37 0, /* tp_as_buffer */
38 Py_TPFLAGS_DEFAULT, /* tp_flags */
39 "Minizinc VarSet Object (derived from MznExpression)", /* tp_doc */
40 0, /* tp_traverse */
41 0, /* tp_clear */
42 0, /* tp_richcompare */
43 0, /* tp_weaklistoffset */
44 0, /* tp_iter */
45 0, /* tp_iternext */
46 0, /* tp_methods */
47 0, /* tp_members */
48 0, /*MznVarSet_getseters, /* tp_getset */
49 &MznExpression_Type, /* tp_base */
50 0, /* tp_dict */
51 0, /* tp_descr_get */
52 0, /* tp_descr_set */
53 0, /* tp_dictoffset */
54 0, /* tp_init */
55 0, /* tp_alloc */
56 MznVarSet_new, /* tp_new */
57 0, /* tp_free */
58};
59
60#endif