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