19 template<
typename T>
class SwigValueWrapper {
20 struct SwigMovePointer {
22 SwigMovePointer(T *p) : ptr(p) { }
23 ~SwigMovePointer() {
delete ptr; }
24 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0;
delete oldptr; ptr = rhs.ptr; rhs.ptr = 0;
return *
this; }
26 SwigValueWrapper& operator=(
const SwigValueWrapper<T>& rhs);
27 SwigValueWrapper(
const SwigValueWrapper<T>& rhs);
29 SwigValueWrapper() : pointer(0) { }
30 SwigValueWrapper& operator=(
const T& t) { SwigMovePointer tmp(
new T(t)); pointer = tmp;
return *
this; }
31 operator T&()
const {
return *pointer.ptr; }
32 T *operator&() {
return pointer.ptr; }
35 template <
typename T> T SwigValueInit() {
46 #ifndef SWIGTEMPLATEDISAMBIGUATOR
47 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
48 # define SWIGTEMPLATEDISAMBIGUATOR template
49 # elif defined(__HP_aCC)
52 # define SWIGTEMPLATEDISAMBIGUATOR template
54 # define SWIGTEMPLATEDISAMBIGUATOR
60 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
61 # define SWIGINLINE inline
69 # if defined(__GNUC__)
70 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
71 # define SWIGUNUSED __attribute__ ((__unused__))
76 # define SWIGUNUSED __attribute__ ((__unused__))
82 #ifndef SWIG_MSC_UNSUPPRESS_4505
83 # if defined(_MSC_VER)
84 # pragma warning(disable : 4505)
88 #ifndef SWIGUNUSEDPARM
90 # define SWIGUNUSEDPARM(p)
92 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
98 # define SWIGINTERN static SWIGUNUSED
102 #ifndef SWIGINTERNINLINE
103 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
107 #if defined(__GNUC__)
108 # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
109 # ifndef GCC_HASCLASSVISIBILITY
110 # define GCC_HASCLASSVISIBILITY
116 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
117 # if defined(STATIC_LINKED)
120 # define SWIGEXPORT __declspec(dllexport)
123 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
124 # define SWIGEXPORT __attribute__ ((visibility("default")))
133 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
134 # define SWIGSTDCALL __stdcall
141 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
142 # define _CRT_SECURE_NO_DEPRECATE
146 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
147 # define _SCL_SECURE_NO_DEPRECATE
151 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
152 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
160 #ifdef __INTEL_COMPILER
161 # pragma warning disable 592
181 #define SWIG_RUNTIME_VERSION "4"
184 #ifdef SWIG_TYPE_TABLE
185 # define SWIG_QUOTE_STRING(x) #x
186 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
187 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
189 # define SWIG_TYPE_TABLE_NAME
202 # define SWIGRUNTIME SWIGINTERN
205 #ifndef SWIGRUNTIMEINLINE
206 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
210 #ifndef SWIG_BUFFER_SIZE
211 # define SWIG_BUFFER_SIZE 1024
215 #define SWIG_POINTER_DISOWN 0x1
216 #define SWIG_CAST_NEW_MEMORY 0x2
217 #define SWIG_POINTER_NO_NULL 0x4
220 #define SWIG_POINTER_OWN 0x1
303 #define SWIG_ERROR (-1)
304 #define SWIG_IsOK(r) (r >= 0)
305 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
308 #define SWIG_CASTRANKLIMIT (1 << 8)
310 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
312 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
314 #define SWIG_BADOBJ (SWIG_ERROR)
315 #define SWIG_OLDOBJ (SWIG_OK)
316 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
317 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
319 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
320 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
321 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
322 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
323 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
324 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
327 #if defined(SWIG_CASTRANK_MODE)
328 # ifndef SWIG_TypeRank
329 # define SWIG_TypeRank unsigned long
331 # ifndef SWIG_MAXCASTRANK
332 # define SWIG_MAXCASTRANK (2)
334 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
335 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
340 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
343 # define SWIG_AddCast(r) (r)
344 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
354 typedef void *(*swig_converter_func)(
void *,
int *);
396 const char *f2,
const char *l2) {
397 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
398 while ((*f1 ==
' ') && (f1 != l1)) ++f1;
399 while ((*f2 ==
' ') && (f2 != l2)) ++f2;
400 if (*f1 != *f2)
return (*f1 > *f2) ? 1 : -1;
402 return (
int)((l1 - f1) - (l2 - f2));
412 const char* te = tb + strlen(tb);
414 while (equiv != 0 && *ne) {
415 for (nb = ne; *ne; ++ne) {
416 if (*ne ==
'|')
break;
441 if (strcmp(iter->
type->
name, c) == 0) {
442 if (iter == ty->
cast)
468 if (iter->
type == from) {
469 if (iter == ty->
cast)
501 if (!ty || !ty->
dcast)
return ty;
502 while (ty && (ty->
dcast)) {
503 ty = (*ty->
dcast)(ptr);
527 if (!type)
return NULL;
528 if (type->
str != NULL) {
529 const char *last_name = type->
str;
531 for (s = type->
str; *s; s++)
532 if (*s ==
'|') last_name = s+1;
580 size_t r = iter->
size - 1;
583 size_t i = (l + r) >> 1;
584 const char *iname = iter->
types[i]->
name;
586 int compare = strcmp(name, iname);
588 return iter->
types[i];
589 }
else if (compare < 0) {
595 }
else if (compare > 0) {
604 }
while (iter != end);
631 for (; i < iter->
size; ++i) {
633 return iter->
types[i];
636 }
while (iter != end);
648 static const char hex[17] =
"0123456789abcdef";
649 const unsigned char *u = (
unsigned char *) ptr;
650 const unsigned char *eu = u + sz;
651 for (; u != eu; ++u) {
652 unsigned char uu = *u;
653 *(c++) = hex[(uu & 0xf0) >> 4];
654 *(c++) = hex[uu & 0xf];
664 unsigned char *u = (
unsigned char *) ptr;
665 const unsigned char *eu = u + sz;
666 for (; u != eu; ++u) {
669 if ((d >=
'0') && (d <=
'9'))
670 uu = (
unsigned char)((d -
'0') << 4);
671 else if ((d >=
'a') && (d <=
'f'))
672 uu = (
unsigned char)((d - (
'a'-10)) << 4);
676 if ((d >=
'0') && (d <=
'9'))
677 uu |= (
unsigned char)(d -
'0');
678 else if ((d >=
'a') && (d <=
'f'))
679 uu |= (
unsigned char)(d - (
'a'-10));
693 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
696 if (strlen(name) + 1 > (bsz - (r - buff)))
return 0;
704 if (strcmp(c,
"NULL") == 0) {
717 size_t lname = (name ? strlen(name) : 0);
718 if ((2*sz + 2 + lname) > bsz)
return 0;
722 strncpy(r,name,lname+1);
732 if (strcmp(c,
"NULL") == 0) {
747 #define SWIG_UnknownError -1
748 #define SWIG_IOError -2
749 #define SWIG_RuntimeError -3
750 #define SWIG_IndexError -4
751 #define SWIG_TypeError -5
752 #define SWIG_DivisionByZero -6
753 #define SWIG_OverflowError -7
754 #define SWIG_SyntaxError -8
755 #define SWIG_ValueError -9
756 #define SWIG_SystemError -10
757 #define SWIG_AttributeError -11
758 #define SWIG_MemoryError -12
759 #define SWIG_NullReferenceError -13
769 const char* type = 0;
772 type =
"MemoryError";
778 type =
"RuntimeError";
787 type =
"ZeroDivisionError";
790 type =
"OverflowError";
793 type =
"SyntaxError";
799 type =
"SystemError";
802 type =
"AttributeError";
805 type =
"RuntimeError";
814 Tcl_ResetResult(interp);
815 Tcl_SetObjResult(interp, obj);
816 Tcl_SetErrorCode(interp,
"SWIG", ctype, NULL);
822 Tcl_ResetResult(interp);
823 Tcl_SetErrorCode(interp,
"SWIG", ctype, NULL);
824 Tcl_AppendResult(interp, ctype,
" ", mesg, NULL);
835 Tcl_AddErrorInfo(interp, mesg);
852 #define SWIG_TCL_POINTER 4
853 #define SWIG_TCL_BINARY 5
865 typedef int (*
swig_wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
867 typedef char *(*swig_variable_func)(ClientData, Tcl_Interp *,
char *,
char *, int);
905 int (*wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
913 char * (*get)(ClientData, Tcl_Interp *,
char *,
char *, int);
914 char * (*set)(ClientData, Tcl_Interp *,
char *,
char *, int);
928 Tcl_ObjSetVar2(interp,Tcl_NewStringObj(name,-1), NULL, obj, TCL_GLOBAL_ONLY);
929 Tcl_SetHashValue(Tcl_CreateHashEntry(&
swigconstTable, name, &newobj), (ClientData) obj);
934 Tcl_HashEntry *entryPtr;
938 return (Tcl_Obj *) Tcl_GetHashValue(entryPtr);
959 #define SWIG_ConvertPtr(oc, ptr, ty, flags) SWIG_Tcl_ConvertPtr(interp, oc, ptr, ty, flags)
960 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Tcl_NewPointerObj(ptr, type, flags)
963 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Tcl_ConvertPacked(interp, obj, ptr, sz, ty)
964 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Tcl_NewPackedObj(ptr, sz, type)
967 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_Tcl_ConvertPtr(interp, obj, pptr, type, flags)
968 #define SWIG_NewInstanceObj(thisvalue, type, flags) SWIG_Tcl_NewInstanceObj(interp, thisvalue, type, flags)
971 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Tcl_ConvertPtr(interp, obj, pptr, type, 0)
972 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Tcl_NewPointerObj(ptr, type, 0)
975 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Tcl_ConvertPacked(interp,obj, ptr, sz, ty)
976 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Tcl_NewPackedObj(ptr, sz, type)
981 #define SWIG_GetModule(clientdata) SWIG_Tcl_GetModule((Tcl_Interp *) (clientdata))
982 #define SWIG_SetModule(clientdata, pointer) SWIG_Tcl_SetModule((Tcl_Interp *) (clientdata), pointer)
987 #define SWIG_ErrorType(code) SWIG_Tcl_ErrorType(code)
988 #define SWIG_Error(code, msg) SWIG_Tcl_SetErrorMsg(interp, SWIG_Tcl_ErrorType(code), msg)
989 #define SWIG_fail goto fail
994 #define SWIG_Acquire(ptr) SWIG_Tcl_Acquire(ptr)
995 #define SWIG_MethodCommand SWIG_Tcl_MethodCommand
996 #define SWIG_Disown(ptr) SWIG_Tcl_Disown(ptr)
997 #define SWIG_ConvertPtrFromString(c, ptr, ty, flags) SWIG_Tcl_ConvertPtrFromString(interp, c, ptr, ty, flags)
998 #define SWIG_MakePtr(c, ptr, ty, flags) SWIG_Tcl_MakePtr(c, ptr, ty, flags)
999 #define SWIG_PointerTypeFromString(c) SWIG_Tcl_PointerTypeFromString(c)
1000 #define SWIG_GetArgs SWIG_Tcl_GetArgs
1001 #define SWIG_GetConstantObj(key) SWIG_Tcl_GetConstantObj(key)
1002 #define SWIG_ObjectConstructor SWIG_Tcl_ObjectConstructor
1003 #define SWIG_Thisown(ptr) SWIG_Tcl_Thisown(ptr)
1004 #define SWIG_ObjectDelete SWIG_Tcl_ObjectDelete
1007 #define SWIG_TCL_DECL_ARGS_2(arg1, arg2) (Tcl_Interp *interp SWIGUNUSED, arg1, arg2)
1008 #define SWIG_TCL_CALL_ARGS_2(arg1, arg2) (interp, arg1, arg2)
1014 #define SWIG_POINTER_EXCEPTION 0
1015 #define SWIG_GetConstant SWIG_GetConstantObj
1016 #define SWIG_Tcl_GetConstant SWIG_Tcl_GetConstantObj
1018 #if TCL_MAJOR_VERSION >= 8 && TCL_MINOR_VERSION >= 5
1019 #define SWIG_TCL_HASHTABLE_INIT {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
1021 #define SWIG_TCL_HASHTABLE_INIT {0}
1034 static Tcl_HashTable swigobjectTable;
1035 static int swigobjectTableinit = 0;
1036 if (!swigobjectTableinit) {
1037 Tcl_InitHashTable(&swigobjectTable, TCL_ONE_WORD_KEYS);
1038 swigobjectTableinit = 1;
1040 return &swigobjectTable;
1063 Tcl_DeleteHashEntry(entryPtr);
1076 if (strcmp(c,
"NULL") == 0)
1086 if (Tcl_VarEval(interp,
"info commands ", c, (
char *) NULL) == TCL_OK) {
1087 Tcl_Obj *result = Tcl_GetObjResult(interp);
1088 if (*(Tcl_GetStringFromObj(result, NULL)) == 0) {
1090 Tcl_ResetResult(interp);
1096 Tcl_ResetResult(interp);
1101 if (Tcl_VarEval(interp,c,
" cget -this", (
char *) NULL) != TCL_OK) {
1102 Tcl_ResetResult(interp);
1106 c = Tcl_GetStringFromObj(Tcl_GetObjResult(interp), NULL);
1145 if (!(((d >=
'0') && (d <=
'9')) || ((d >=
'a') && (d <=
'f'))))
break;
1157 if (!obj)
goto type_error;
1158 c = Tcl_GetStringFromObj(obj,NULL);
1160 if (*c !=
'_')
goto type_error;
1165 if (!tc)
goto type_error;
1193 robj = Tcl_NewStringObj(result,-1);
1201 if ((2*sz + 1 + strlen(type->
name)) > 1000)
return 0;
1204 strcpy(r,type->
name);
1205 return Tcl_NewStringObj(result,-1);
1251 Tcl_DecrRefCount(si->
thisptr);
1258 char *method, *attrname;
1267 int cls_stack_bi[64];
1268 int cls_stack_top = 0;
1272 objv = (Tcl_Obj **) _objv;
1274 Tcl_SetResult(interp, (
char *)
"wrong # args.", TCL_STATIC);
1277 method = Tcl_GetStringFromObj(objv[1],NULL);
1278 if (strcmp(method,
"-acquire") == 0) {
1283 if (strcmp(method,
"-disown") == 0) {
1290 if (strcmp(method,
"-delete") == 0) {
1291 Tcl_DeleteCommandFromToken(interp,inst->
cmdtok);
1294 cls_stack[cls_stack_top] = inst->
classptr;
1295 cls_stack_bi[cls_stack_top] = -1;
1297 Tcl_HashEntry* hashentry;
1298 bi = cls_stack_bi[cls_stack_top];
1299 cls = cls_stack[cls_stack_top];
1306 cls = cls->
bases[bi];
1308 cls_stack_bi[cls_stack_top]++;
1310 cls_stack[cls_stack_top] = cls;
1311 cls_stack_bi[cls_stack_top] = -1;
1317 if (cls_stack_top < 0)
break;
1320 cls_stack_bi[cls_stack_top]++;
1322 hashentry = Tcl_FindHashEntry(&(cls->
hashtable), method);
1324 ClientData cd = Tcl_GetHashValue(hashentry);
1328 Tcl_IncrRefCount(inst->
thisptr);
1329 rcode = (method_wrapper)(clientData,interp,objc,objv);
1331 Tcl_DecrRefCount(inst->
thisptr);
1335 if (strcmp(method,
"cget") == 0) {
1337 Tcl_SetResult(interp, (
char *)
"wrong # args.", TCL_STATIC);
1340 attrname = Tcl_GetStringFromObj(objv[2],NULL);
1342 while (attr && attr->
name) {
1343 if ((strcmp(attr->
name, attrname) == 0) && (attr->
getmethod)) {
1346 Tcl_IncrRefCount(inst->
thisptr);
1347 rcode = (*attr->
getmethod)(clientData,interp,2, objv);
1349 Tcl_DecrRefCount(inst->
thisptr);
1354 if (strcmp(attrname,
"-this") == 0) {
1355 Tcl_SetObjResult(interp, Tcl_DuplicateObj(inst->
thisptr));
1358 if (strcmp(attrname,
"-thisown") == 0) {
1360 Tcl_SetResult(interp,(
char*)
"1",TCL_STATIC);
1362 Tcl_SetResult(interp,(
char*)
"0",TCL_STATIC);
1366 }
else if (strcmp(method,
"configure") == 0) {
1369 Tcl_SetResult(interp, (
char *)
"wrong # args.", TCL_STATIC);
1374 attrname = Tcl_GetStringFromObj(objv[i],NULL);
1376 while (attr && attr->
name) {
1377 if ((strcmp(attr->
name, attrname) == 0) && (attr->
setmethod)) {
1380 Tcl_IncrRefCount(inst->
thisptr);
1381 rcode = (*attr->
setmethod)(clientData,interp,3, &objv[i-1]);
1383 Tcl_DecrRefCount(inst->
thisptr);
1384 if (rcode != TCL_OK)
return rcode;
1393 if (strcmp(method,
"configure") == 0) {
1394 if (numconf >= objc) {
1397 Tcl_SetResult(interp,(
char *)
"Invalid attribute name.", TCL_STATIC);
1401 if (strcmp(method,
"cget") == 0) {
1402 Tcl_SetResult(interp,(
char *)
"Invalid attribute name.", TCL_STATIC);
1405 Tcl_SetResult(interp, (
char *)
"Invalid method. Must be one of: configure cget -acquire -disown -delete", TCL_STATIC);
1410 while (meth && meth->
name) {
1411 char *cr = (
char *) Tcl_GetStringResult(interp);
1412 size_t meth_len = strlen(meth->
name);
1413 char* where = strchr(cr,
':');
1415 where = strstr(where, meth->
name);
1417 if(where[-1] ==
' ' && (where[meth_len] ==
' ' || where[meth_len]==0)) {
1426 Tcl_AppendElement(interp, (
char *) meth->
name);
1439 if (thisvalue && (type->
clientdata) && (interp)) {
1442 name = Tcl_GetStringFromObj(robj,NULL);
1443 if (!Tcl_GetCommandInfo(interp,name, &ci) || (flags)) {
1445 newinst->
thisptr = Tcl_DuplicateObj(robj);
1446 Tcl_IncrRefCount(newinst->
thisptr);
1462 Tcl_Obj *newObj = 0;
1463 void *thisvalue = 0;
1473 Tcl_SetResult(interp, (
char *)
"swig: internal runtime error. No class object defined.", TCL_STATIC);
1478 char *s = Tcl_GetStringFromObj(objv[1],NULL);
1479 if (strcmp(s,
"-this") == 0) {
1482 }
else if (strcmp(s,
"-args") == 0) {
1484 }
else if (objc == 2) {
1487 }
else if (objc >= 3) {
1490 s1 = Tcl_GetStringFromObj(objv[2],NULL);
1491 if (strcmp(s1,
"-this") == 0) {
1501 result = (*cons)(0, interp, objc-firstarg, &objv[firstarg]);
1502 if (result != TCL_OK) {
1505 newObj = Tcl_DuplicateObj(Tcl_GetObjResult(interp));
1506 if (!name) name = Tcl_GetStringFromObj(newObj,NULL);
1507 }
else if (thisarg > 0) {
1508 if (thisarg < objc) {
1510 newObj = Tcl_DuplicateObj(objv[thisarg]);
1511 if (!name) name = Tcl_GetStringFromObj(newObj,NULL);
1513 Tcl_SetResult(interp, (
char *)
"wrong # args.", TCL_STATIC);
1517 Tcl_SetResult(interp, (
char *)
"No constructor available.", TCL_STATIC);
1521 Tcl_DecrRefCount(newObj);
1526 Tcl_IncrRefCount(newObj);
1542 int argno = 0, opt = 0;
1552 for (c = fmt; (*c && (*c !=
':') && (*c !=
';')); c++,argno++) {
1557 if (argno >= (objc-1)) {
1559 Tcl_SetResult(interp, (
char *)
"Wrong number of arguments ", TCL_STATIC);
1567 vptr = va_arg(ap,
void *);
1571 if (!obj) obj = objv[argno+1];
1573 obj = objv[argno+1];
1580 if (Tcl_GetLongFromObj(interp,obj,&tempi) != TCL_OK)
goto argerror;
1581 if ((*c ==
'i') || (*c ==
'I')) *((
int *)vptr) = (int)tempi;
1582 else if ((*c ==
'l') || (*c ==
'L')) *((
long *)vptr) = (long)tempi;
1583 else if ((*c ==
'h') || (*c ==
'H')) *((
short*)vptr) = (short)tempi;
1584 else if ((*c ==
'b') || (*c ==
'B')) *((
unsigned char *)vptr) = (
unsigned char)tempi;
1588 if (Tcl_GetDoubleFromObj(interp,obj,&tempd) != TCL_OK)
goto argerror;
1589 if ((*c ==
'f') || (*c ==
'F')) *((
float *) vptr) = (float)tempd;
1590 else if ((*c ==
'd') || (*c ==
'D')) *((
double*) vptr) = tempd;
1593 if (*(c+1) ==
'#') {
1594 int *vlptr = (
int *) va_arg(ap,
void *);
1595 *((
char **) vptr) = Tcl_GetStringFromObj(obj, vlptr);
1598 *((
char **)vptr) = Tcl_GetStringFromObj(obj,NULL);
1602 *((
char *)vptr) = *(Tcl_GetStringFromObj(obj,NULL));
1609 *((Tcl_Obj **)vptr) = objv[argno+1];
1617 if ((*c !=
';') && ((objc-1) > argno)) {
1618 Tcl_SetResult(interp, (
char *)
"Wrong # args.", TCL_STATIC);
1627 sprintf(temp,
"%d", argno+1);
1628 c = strchr(fmt,
':');
1629 if (!c) c = strchr(fmt,
';');
1630 if (!c) c = (
char *)
"";
1631 Tcl_AppendResult(interp,c,
" argument ", temp, NULL);
1643 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1645 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1651 #define SWIGTYPE_p_a_base swig_types[0]
1652 #define SWIGTYPE_p_a_coord swig_types[1]
1653 #define SWIGTYPE_p_a_coord_base swig_types[2]
1654 #define SWIGTYPE_p_a_mat_c swig_types[3]
1655 #define SWIGTYPE_p_a_point swig_types[4]
1656 #define SWIGTYPE_p_char swig_types[5]
1659 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1660 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1664 #define SWIG_init A_coord_Init
1665 #define SWIG_name "a_coord"
1666 #define SWIG_prefix ""
1667 #define SWIG_version "0.0"
1669 #define SWIGVERSION 0x040002
1670 #define SWIG_VERSION SWIGVERSION
1673 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
1674 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
1677 #include <stdexcept>
1696 #ifndef SWIG_TCL_STUBS_VERSION
1697 #define SWIG_TCL_STUBS_VERSION "8.1"
1711 #if !defined(SWIG_NO_LLONG_MAX)
1712 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1713 # define LLONG_MAX __LONG_LONG_MAX__
1714 # define LLONG_MIN (-LLONG_MAX - 1LL)
1715 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1723 return (size < INT_MAX) ? Tcl_NewStringObj(carray,
static_cast< int >(size)) : NULL;
1738 if (Tcl_GetDoubleFromObj(0, obj, &v) == TCL_OK) {
1746 #define SWIG_From_double Tcl_NewDoubleObj
1749 std::ostringstream out;
1764 char *cstr = Tcl_GetStringFromObj(obj, &len);
1766 if (cptr) *cptr = cstr;
1767 if (psize) *psize = len + 1;
1781 if (
val) *
val =
new std::string(
buf, size - 1);
1789 static int init = 0;
1810 if (Tcl_GetBooleanFromObj(0, obj, &v) == TCL_OK) {
1811 if (
val) *
val = v ? true :
false;
1832 arg1 =
reinterpret_cast< a_base *
>(argp1);
1833 result = (arg1)->classname();
1863 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_base_small self tol ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
1868 arg1 =
reinterpret_cast< a_base *
>(argp1);
1873 arg2 =
static_cast< double >(val2);
1874 (arg1)->small(arg2);
1894 arg1 =
reinterpret_cast< a_base *
>(argp1);
1895 result = (double)((
a_base const *)arg1)->small();
1905 Tcl_Obj *CONST *argv = objv+1;
1932 Tcl_SetResult(interp,(
char *)
"Wrong number or type of arguments for overloaded function 'a_base_small'.\n"
1933 " Possible C/C++ prototypes are:\n"
1934 " a_base::small(double)\n"
1935 " a_base::small() const\n", TCL_STATIC);
1952 arg1 =
reinterpret_cast< a_base *
>(argp1);
1985 arg1 =
reinterpret_cast< a_base *
>(argp1);
2017 if (
SWIG_GetArgs(interp, objc, objv,
"o:a_coord_base_classname self ",(
void *)0) == TCL_ERROR)
SWIG_fail;
2023 result = (arg1)->classname();
2063 if (
SWIG_GetArgs(interp, objc, objv,
"o:delete_a_coord_base self ",(
void *)0) == TCL_ERROR)
SWIG_fail;
2115 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2149 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2161 std::string *arg2 = 0 ;
2166 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_name self aname ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2171 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2173 std::string *ptr = (std::string *)0;
2183 (arg1)->name((std::string
const &)*arg2);
2195 Tcl_Obj *CONST *argv = objv+1;
2220 Tcl_SetResult(interp,(
char *)
"Wrong number or type of arguments for overloaded function 'a_coord_name'.\n"
2221 " Possible C/C++ prototypes are:\n"
2222 " a_coord::name() const\n"
2223 " a_coord::name(std::string const &)\n", TCL_STATIC);
2239 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2259 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2277 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_mode self m ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2282 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2287 arg2 =
static_cast< bool >(val2);
2308 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2309 result = (double)((
a_coord const *)arg1)->mode();
2319 Tcl_Obj *CONST *argv = objv+1;
2346 Tcl_SetResult(interp,(
char *)
"Wrong number or type of arguments for overloaded function 'a_coord_mode'.\n"
2347 " Possible C/C++ prototypes are:\n"
2348 " a_coord::mode(bool const)\n"
2349 " a_coord::mode() const\n", TCL_STATIC);
2365 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2389 if (
SWIG_GetArgs(interp, objc, objv,
"oooo:a_coord_translate self double double double ",(
void *)0,(
void *)0,(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2394 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2399 arg2 =
static_cast< double >(val2);
2404 arg3 =
static_cast< double >(val3);
2409 arg4 =
static_cast< double >(val4);
2410 (arg1)->translate(arg2,arg3,arg4);
2427 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_translate self p ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2432 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2440 arg2 =
reinterpret_cast< a_point *
>(argp2);
2441 (arg1)->translate((
a_point const &)*arg2);
2451 Tcl_Obj *CONST *argv = objv+1;
2495 Tcl_SetResult(interp,(
char *)
"Wrong number or type of arguments for overloaded function 'a_coord_translate'.\n"
2496 " Possible C/C++ prototypes are:\n"
2497 " a_coord::translate(double,double,double)\n"
2498 " a_coord::translate(a_point const &)\n", TCL_STATIC);
2518 if (
SWIG_GetArgs(interp, objc, objv,
"oooo:a_coord_translateW self double double double ",(
void *)0,(
void *)0,(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2523 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2528 arg2 =
static_cast< double >(val2);
2533 arg3 =
static_cast< double >(val3);
2538 arg4 =
static_cast< double >(val4);
2539 (arg1)->translateW(arg2,arg3,arg4);
2556 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_translateW self p ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2561 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2569 arg2 =
reinterpret_cast< a_point *
>(argp2);
2570 (arg1)->translateW((
a_point const &)*arg2);
2580 Tcl_Obj *CONST *argv = objv+1;
2624 Tcl_SetResult(interp,(
char *)
"Wrong number or type of arguments for overloaded function 'a_coord_translateW'.\n"
2625 " Possible C/C++ prototypes are:\n"
2626 " a_coord::translateW(double,double,double)\n"
2627 " a_coord::translateW(a_point const &)\n", TCL_STATIC);
2647 if (
SWIG_GetArgs(interp, objc, objv,
"oooo:a_coord_scale self double double double ",(
void *)0,(
void *)0,(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2652 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2657 arg2 =
static_cast< double >(val2);
2662 arg3 =
static_cast< double >(val3);
2667 arg4 =
static_cast< double >(val4);
2668 (arg1)->scale(arg2,arg3,arg4);
2685 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_scale self double ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2690 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2695 arg2 =
static_cast< double >(val2);
2696 (arg1)->scale(arg2);
2706 Tcl_Obj *CONST *argv = objv+1;
2751 Tcl_SetResult(interp,(
char *)
"Wrong number or type of arguments for overloaded function 'a_coord_scale'.\n"
2752 " Possible C/C++ prototypes are:\n"
2753 " a_coord::scale(double,double,double)\n"
2754 " a_coord::scale(double)\n", TCL_STATIC);
2768 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_rotateX self double ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2773 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2778 arg2 =
static_cast< double >(val2);
2779 (arg1)->rotateX(arg2);
2796 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_rotateY self double ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2801 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2806 arg2 =
static_cast< double >(val2);
2807 (arg1)->rotateY(arg2);
2824 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_rotateZ self double ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2829 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2834 arg2 =
static_cast< double >(val2);
2835 (arg1)->rotateZ(arg2);
2852 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_rotateXW self double ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2857 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2862 arg2 =
static_cast< double >(val2);
2863 (arg1)->rotateXW(arg2);
2880 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_rotateYW self double ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2885 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2890 arg2 =
static_cast< double >(val2);
2891 (arg1)->rotateYW(arg2);
2908 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_rotateZW self double ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2913 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2918 arg2 =
static_cast< double >(val2);
2919 (arg1)->rotateZW(arg2);
2942 if (
SWIG_GetArgs(interp, objc, objv,
"oooo:a_coord_orient self o x y ",(
void *)0,(
void *)0,(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
2947 arg1 =
reinterpret_cast< a_coord *
>(argp1);
2955 arg2 =
reinterpret_cast< a_mat_c *
>(argp2);
2963 arg3 =
reinterpret_cast< a_mat_c *
>(argp3);
2971 arg4 =
reinterpret_cast< a_mat_c *
>(argp4);
2995 if (
SWIG_GetArgs(interp, objc, objv,
"oooo:a_coord_orient self o x y ",(
void *)0,(
void *)0,(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
3000 arg1 =
reinterpret_cast< a_coord *
>(argp1);
3008 arg2 =
reinterpret_cast< a_point *
>(argp2);
3016 arg3 =
reinterpret_cast< a_point *
>(argp3);
3024 arg4 =
reinterpret_cast< a_point *
>(argp4);
3035 Tcl_Obj *CONST *argv = objv+1;
3086 Tcl_SetResult(interp,(
char *)
"Wrong number or type of arguments for overloaded function 'a_coord_orient'.\n"
3087 " Possible C/C++ prototypes are:\n"
3088 " a_coord::orient(a_mat_c const &,a_mat_c const &,a_mat_c const &)\n"
3089 " a_coord::orient(a_point const &,a_point const &,a_point const &)\n", TCL_STATIC);
3104 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_w2l self pt ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
3109 arg1 =
reinterpret_cast< a_coord *
>(argp1);
3117 arg2 =
reinterpret_cast< a_point *
>(argp2);
3136 if (
SWIG_GetArgs(interp, objc, objv,
"oo:a_coord_l2w self pt ",(
void *)0,(
void *)0) == TCL_ERROR)
SWIG_fail;
3141 arg1 =
reinterpret_cast< a_coord *
>(argp1);
3149 arg2 =
reinterpret_cast< a_point *
>(argp2);
3261 static swig_cast_info _swigc__p_a_base[] = { {&
_swigt__p_a_coord,
_p_a_coordTo_p_a_base, 0, 0}, {&
_swigt__p_a_base, 0, 0, 0}, {&
_swigt__p_a_coord_base,
_p_a_coord_baseTo_p_a_base, 0, 0},{0, 0, 0, 0}};
3263 static swig_cast_info _swigc__p_a_coord_base[] = { {&
_swigt__p_a_coord,
_p_a_coordTo_p_a_coord_base, 0, 0}, {&
_swigt__p_a_coord_base, 0, 0, 0},{0, 0, 0, 0}};
3332 #define SWIGRUNTIME_DEBUG
3368 }
while (iter!= module_head);
3379 if (init == 0)
return;
3382 #ifdef SWIGRUNTIME_DEBUG
3383 printf(
"SWIG_InitializeModule: size %lu\n", (
unsigned long)
swig_module.
size);
3390 #ifdef SWIGRUNTIME_DEBUG
3400 #ifdef SWIGRUNTIME_DEBUG
3401 printf(
"SWIG_InitializeModule: found type %s\n", type->
name);
3405 #ifdef SWIGRUNTIME_DEBUG
3406 printf(
"SWIG_InitializeModule: found and overwrite type %s \n", type->
name);
3415 while (cast->
type) {
3418 #ifdef SWIGRUNTIME_DEBUG
3419 printf(
"SWIG_InitializeModule: look cast %s\n", cast->
type->
name);
3423 #ifdef SWIGRUNTIME_DEBUG
3424 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->
name);
3429 #ifdef SWIGRUNTIME_DEBUG
3430 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->
name);
3437 #ifdef SWIGRUNTIME_DEBUG
3438 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->
name);
3440 if (!ocast) ret = 0;
3445 #ifdef SWIGRUNTIME_DEBUG
3446 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->
type->
name);
3461 #ifdef SWIGRUNTIME_DEBUG
3462 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
3467 while (cast->
type) {
3468 printf(
"SWIG_InitializeModule: cast type %s\n", cast->
type->
name);
3472 printf(
"---- Total casts: %d\n",j);
3474 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
3487 static int init_run = 0;
3489 if (init_run)
return;
3500 equiv = equiv->
next;
3534 for (i = 0; constants[i].
type; i++) {
3535 switch(constants[i].type) {
3540 obj =
SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
3563 Tcl_InitHashTable(&(klass->
hashtable), TCL_STRING_KEYS);
3564 for (meth = klass->
methods; meth && meth->
name; ++meth) {
3566 Tcl_HashEntry* hashentry = Tcl_CreateHashEntry(&(klass->
hashtable), meth->name, &newEntry);
3567 Tcl_SetHashValue(hashentry, (ClientData)meth->method);
3583 if (interp == 0)
return TCL_ERROR;
3584 #ifdef USE_TCL_STUBS
3599 #ifdef SWIG_namespace
3600 Tcl_Eval(interp,
"namespace eval " SWIG_namespace
" { }");
3611 Tcl_SetVar(interp, (
char *)
swig_variables[i].name, (
char *)
"", TCL_GLOBAL_ONLY);
3612 Tcl_TraceVar(interp, (
char *)
swig_variables[i].name, TCL_TRACE_READS | TCL_GLOBAL_ONLY,
3614 Tcl_TraceVar(interp, (
char *)
swig_variables[i].name, TCL_TRACE_WRITES | TCL_GLOBAL_ONLY,
3623 printf(
"Points&forces a_coord module.\n");
3624 printf(
"Type a_coord_help for an introduction.\n");
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
static swig_var_info swig_variables[]
SWIGINTERNINLINE Tcl_Obj * SWIG_From_std_string(const std::string &s)
static swig_cast_info * swig_cast_initial[]
SWIGINTERN int _wrap_a_coord_mode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_a_coord_base
SWIGRUNTIME int SWIG_Tcl_ObjectConstructor(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_coord[]
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
SWIGINTERN int _wrap_a_coord_translate__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_MakePtr(c, ptr, ty, flags)
static swig_class * swig_a_coord_base_bases[]
SWIGINTERN void SWIG_Tcl_InstallConstants(Tcl_Interp *interp, swig_const_info constants[])
#define SWIG_TypeQuery(name)
SWIGINTERN int _wrap_a_coord_rad(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_coord_translate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_const_info swig_constants[]
SWIGINTERN void swig_delete_a_coord_base(void *obj)
#define SWIG_ConvertPtr(oc, ptr, ty, flags)
#define SWIG_CheckState(r)
SWIGRUNTIME void SWIG_Tcl_Acquire(void *ptr)
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
SWIGINTERN std::string a_base_print(a_base *self)
struct swig_instance swig_instance
static swig_type_info _swigt__p_a_mat_c
SWIGINTERNINLINE void SWIG_Tcl_AddErrorMsg(Tcl_Interp *interp, const char *mesg)
SWIGINTERN void SWIG_Tcl_SetErrorMsg(Tcl_Interp *interp, const char *ctype, const char *mesg)
static swig_class _wrap_class_a_coord
struct swig_cast_info swig_cast_info
SWIGINTERN int _wrap_a_coord_scale__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME Tcl_Obj * SWIG_Tcl_NewPackedObj(void *ptr, int sz, swig_type_info *type)
SWIGRUNTIME int SWIG_Tcl_MethodCommand(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST _objv[])
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
static swig_cast_info _swigc__p_a_coord_base[]
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
#define SWIG_RuntimeError
SWIGINTERN int _wrap_a_base_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_command_info swig_commands[]
SWIGINTERN int _wrap_a_base_small__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
int(* swig_wrapper_func)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST[])
SWIGINTERN const char * SWIG_Tcl_ErrorType(int code)
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
SWIGINTERN int _wrap_a_coord_rotateYW(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_method swig_a_base_methods[]
SWIGINTERN int _wrap_a_coord_scale__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int SWIG_AsCharPtrAndSize(Tcl_Obj *obj, char **cptr, size_t *psize, int *alloc)
#define SWIG_RUNTIME_VERSION
SWIGINTERN int _wrap_a_coord_name__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void SWIG_Tcl_SetErrorObj(Tcl_Interp *interp, const char *ctype, Tcl_Obj *obj)
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
static Tcl_HashTable swigconstTable
#define SWIG_MethodCommand
SWIGINTERN int _wrap_a_coord_base_classname(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME int SWIG_Tcl_GetArgs(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], const char *fmt,...)
static swig_attribute swig_a_coord_base_attributes[]
static const char * swig_a_coord_base_base_names[]
#define SWIG_exception_fail(code, msg)
SWIGINTERN int _wrap_new_a_coord(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_base_small(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
static swig_cast_info _swigc__p_a_base[]
#define SWIG_AttributeError
static swig_module_info swig_module
SWIGINTERN int _wrap_a_base_small__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_coord_name__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_mat_c
SWIGINTERN int _wrap_delete_a_coord(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_SetModule(clientdata, pointer)
SWIGINTERN int _wrap_a_coord_translateW__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
SWIGINTERN int _wrap_a_coord_deg(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_coord_orient(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGUNUSEDPARM(p)
SWIGINTERN int _wrap_new_a_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_coord_base
struct swig_class swig_class
#define SWIG_as_voidptr(a)
SWIGINTERN int _wrap_a_coord_orient__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void swig_delete_a_base(void *obj)
static swig_class * swig_a_coord_bases[]
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
SWIGINTERN int _wrap_a_coord_rotateZW(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME void SWIG_Tcl_SetModule(Tcl_Interp *interp, swig_module_info *module)
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
SWIGRUNTIMEINLINE int SWIG_Tcl_ConvertPtr(Tcl_Interp *interp, Tcl_Obj *oc, void **ptr, swig_type_info *ty, int flags)
SWIGINTERN int _wrap_a_coord_translate__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_coord_rotateXW(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_coordTo_p_a_coord_base(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_a_coord
struct swig_const_info swig_const_info
SWIGINTERN int _wrap_a_coord_l2w(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME int SWIG_Tcl_Thisown(void *ptr)
SWIGINTERN int _wrap_a_coord_orient__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME void SWIG_InitializeModule(void *clientdata)
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
static swig_type_info * swig_types[7]
static swig_type_info _swigt__p_a_point
SWIGINTERN void SWIG_Tcl_SetConstantObj(Tcl_Interp *interp, const char *name, Tcl_Obj *obj)
SWIGRUNTIMEINLINE Tcl_Obj * SWIG_Tcl_NewPointerObj(void *ptr, swig_type_info *type, int flags)
static swig_cast_info _swigc__p_char[]
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty)
SWIGINTERN int _wrap_a_base_print(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_coord_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_coord_base_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_coord
SWIGINTERN int _wrap_a_coord_w2l(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_NewPointerObj(ptr, type, flags)
#define SWIG_Thisown(ptr)
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
void *(* swig_converter_func)(void *, int *)
#define SWIG_POINTER_NO_NULL
SWIGINTERN int _wrap_a_coord_rotateX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME Tcl_Obj * SWIG_Tcl_NewInstanceObj(Tcl_Interp *interp, void *thisvalue, swig_type_info *type, int flags)
#define SWIG_NullReferenceError
SWIGINTERN int _wrap_a_coord_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_delete_a_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_POINTER_DISOWN
struct swig_type_info swig_type_info
SWIGINTERN int _wrap_a_coord_translateW__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME char * SWIG_Tcl_PointerTypeFromString(char *c)
static swig_method swig_a_coord_methods[]
static swig_attribute swig_a_coord_attributes[]
SWIGRUNTIME int SWIG_Tcl_Disown(void *ptr)
SWIGINTERN int _wrap_a_coord_scale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_ObjectDelete
SWIGINTERN int _wrap_a_coord_rotateZ(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_NewPackedObj(ptr, sz, type)
#define SWIG_GetModule(clientdata)
static swig_method swig_a_coord_base_methods[]
SWIGRUNTIME void SWIG_PropagateClientData(void)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
static swig_cast_info _swigc__p_a_point[]
SWIGINTERN int _wrap_a_coord_mode__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN Tcl_Obj * SWIG_Tcl_GetConstantObj(const char *key)
#define SWIGTYPE_p_a_point
SWIGINTERN int _wrap_new_a_coord_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_coord_translateW(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERNINLINE Tcl_Obj * SWIG_FromCharPtrAndSize(const char *carray, size_t size)
#define SWIG_TYPE_TABLE_NAME
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGINTERN int _wrap_a_base_classname(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void swig_delete_a_coord(void *obj)
#define SWIGTYPE_p_a_base
static const char * swig_a_base_base_names[]
SWIGRUNTIME swig_module_info * SWIG_Tcl_GetModule(Tcl_Interp *interp)
struct swig_module_info swig_module_info
static swig_class _wrap_class_a_base
#define SWIG_Acquire(ptr)
SWIGRUNTIME void SWIG_Tcl_ObjectDelete(ClientData clientData)
#define SWIG_TCL_HASHTABLE_INIT
SWIGRUNTIME int SWIG_Tcl_ConvertPacked(Tcl_Interp *SWIGUNUSEDPARM(interp), Tcl_Obj *obj, void *ptr, int sz, swig_type_info *ty)
#define SWIG_ObjectConstructor
static swig_type_info _swigt__p_a_base
static swig_class _wrap_class_a_coord_base
#define SWIG_NewInstanceObj(thisvalue, type, flags)
static swig_type_info * swig_type_initial[]
SWIGINTERN int _wrap_a_coord_rotateY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static int swigconstTableinit
struct swig_attribute swig_attribute
void(* swig_delete_func)(ClientData)
SWIGRUNTIME Tcl_HashTable * SWIG_Tcl_ObjectTable(void)
SWIGRUNTIME int SWIG_Tcl_ConvertPtrFromString(Tcl_Interp *interp, const char *c, void **ptr, swig_type_info *ty, int flags)
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
static swig_cast_info _swigc__p_a_mat_c[]
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
#define SWIG_DivisionByZero
static swig_type_info _swigt__p_char
struct swig_method swig_method
static void * _p_a_coord_baseTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIG_TCL_DECL_ARGS_2(arg1, arg2)
#define SWIG_OverflowError
int(* swig_wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST[])
SWIGINTERN int _wrap_a_coord_reset(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME void SWIG_Tcl_MakePtr(char *c, void *ptr, swig_type_info *ty, int SWIGUNUSEDPARM(flags))
struct swig_type_info *(* swig_dycast_func)(void **)
#define SWIG_TCL_CALL_ARGS_2(arg1, arg2)
static swig_class * swig_a_base_bases[]
SWIGINTERN void SWIG_Tcl_InstallMethodLookupTables(void)
static const char * swig_a_coord_base_names[]
#define SWIG_TCL_STUBS_VERSION
static void * _p_a_coordTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
static swig_attribute swig_a_base_attributes[]
SWIGINTERN int _wrap_a_coord_mode__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_delete_a_coord_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGEXPORT int A_coord_SafeInit(Tcl_Interp *interp)
#define SWIGRUNTIMEINLINE
static const std::string help()
static const std::string help()
a coordinate system in the Points&Forces file format
static const std::string help()
struct swig_cast_info * prev
struct swig_cast_info * next
swig_converter_func converter
struct swig_class ** bases
swig_module_info * module
void(* destructor)(void *)
swig_attribute * attributes
swig_cast_info ** cast_initial
swig_type_info ** type_initial
struct swig_module_info * next
struct swig_cast_info * cast