Lines Matching defs:cast

131  * cast to void, which is a common idiom which we use to indicate that we
288 allows returning the 'cast rank', for example, if you have this
295 food(1) // cast rank '1' (1 -> 1.0)
296 fooi(1) // cast rank '0'
312 /* The CastRankLimit says how many bits are used for the cast rank */
336 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
347 #else /* no cast-rank mode */
366 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
367 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
375 swig_converter_func converter; /* function to cast the void pointers */
376 struct swig_cast_info *next; /* pointer to next cast in linked list */
377 struct swig_cast_info *prev; /* pointer to the previous cast */
444 swig_cast_info *iter = ty->cast;
447 if (iter == ty->cast)
453 iter->next = ty->cast;
455 if (ty->cast) ty->cast->prev = iter;
456 ty->cast = iter;
471 swig_cast_info *iter = ty->cast;
474 if (iter == ty->cast)
480 iter->next = ty->cast;
482 if (ty->cast) ty->cast->prev = iter;
483 ty->cast = iter;
549 swig_cast_info *cast = ti->cast;
553 while (cast) {
554 if (!cast->converter) {
555 swig_type_info *tc = cast->type;
560 cast = cast->next;
2544 swig_cast_info *cast;
2567 if (!type) /* special cast void*, no casting fn */
2574 cast=SWIG_TypeCheck(usr->type->name,type); /* performs normal type checking */
2575 if (cast)
2578 *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory);
83197 * cast linked list. The cast data is initially stored in something like a
83202 * a variable number of columns. So to actually build the cast linked list,
83207 * First off, we lookup the cast->type name to see if it is already loaded.
83209 * 1) If the cast->type has already been loaded AND the type we are adding
83211 * replace the cast->type pointer with the type pointer that has already
83214 * cast->type) are loaded, THEN the cast info has already been loaded by
83216 * 3) Finally, if cast->type has not already been loaded, then we add that
83217 * swig_cast_info to the linked list (because the cast->type) pointer will
83288 swig_cast_info *cast;
83314 cast = swig_module.cast_initial[i];
83315 while (cast->type) {
83320 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
83323 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
83325 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
83333 cast->type = ret;
83339 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
83347 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
83349 if (type->cast) {
83350 type->cast->prev = cast;
83351 cast->next = type->cast;
83353 type->cast = cast;
83355 cast++;
83366 swig_cast_info *cast = swig_module.cast_initial[i];
83368 while (cast->type) {
83369 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
83370 cast++;
83395 equiv = swig_module.types[i]->cast;