Lines Matching defs:cast

131  * cast to void, which is a common idiom which we use to indicate that we
258 allows returning the 'cast rank', for example, if you have this
265 food(1) // cast rank '1' (1 -> 1.0)
266 fooi(1) // cast rank '0'
282 /* The CastRankLimit says how many bits are used for the cast rank */
306 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
317 #else /* no cast-rank mode */
336 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
337 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
345 swig_converter_func converter; /* function to cast the void pointers */
346 struct swig_cast_info *next; /* pointer to next cast in linked list */
347 struct swig_cast_info *prev; /* pointer to the previous cast */
414 swig_cast_info *iter = ty->cast;
417 if (iter == ty->cast)
423 iter->next = ty->cast;
425 if (ty->cast) ty->cast->prev = iter;
426 ty->cast = iter;
441 swig_cast_info *iter = ty->cast;
444 if (iter == ty->cast)
450 iter->next = ty->cast;
452 if (ty->cast) ty->cast->prev = iter;
453 ty->cast = iter;
519 swig_cast_info *cast = ti->cast;
523 while (cast) {
524 if (!cast->converter) {
525 swig_type_info *tc = cast->type;
530 cast = cast->next;
2498 swig_cast_info *cast;
2521 if (!type) /* special cast void*, no casting fn */
2528 cast=SWIG_TypeCheck(usr->type->name,type); /* performs normal type checking */
2529 if (cast)
2532 *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory);
79801 * cast linked list. The cast data is initially stored in something like a
79806 * a variable number of columns. So to actually build the cast linked list,
79811 * First off, we lookup the cast->type name to see if it is already loaded.
79813 * 1) If the cast->type has already been loaded AND the type we are adding
79815 * replace the cast->type pointer with the type pointer that has already
79818 * cast->type) are loaded, THEN the cast info has already been loaded by
79820 * 3) Finally, if cast->type has not already been loaded, then we add that
79821 * swig_cast_info to the linked list (because the cast->type) pointer will
79892 swig_cast_info *cast;
79918 cast = swig_module.cast_initial[i];
79919 while (cast->type) {
79924 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
79927 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
79929 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
79937 cast->type = ret;
79943 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
79951 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
79953 if (type->cast) {
79954 type->cast->prev = cast;
79955 cast->next = type->cast;
79957 type->cast = cast;
79959 cast++;
79970 swig_cast_info *cast = swig_module.cast_initial[i];
79972 while (cast->type) {
79973 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
79974 cast++;
79999 equiv = swig_module.types[i]->cast;