Back to index

plt-scheme  4.2.1
Classes | Functions
TypeTree.h File Reference

Go to the source code of this file.

Classes

class  wxTypeDef
class  wxTypeTree

Functions

void wxInitStandardTypes (void)
Bool wxSubType (WXTYPE type1, WXTYPE type2)
char * wxGetTypeName (WXTYPE type)

Function Documentation

char* wxGetTypeName ( WXTYPE  type)

Definition at line 158 of file TypeTree.cc.

{
  wxTypeDef *typ;

  if (type == wxTYPE_ANY)
    return "any";
  typ = (wxTypeDef *)wxAllTypes->Get((long)type);
  if (!typ)
    return NULL;
  return typ->name;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Bool wxSubType ( WXTYPE  type1,
WXTYPE  type2 
)

Definition at line 139 of file TypeTree.cc.

{
  WXTYPE t;

  if (type1 == type2)
    return TRUE;
  
  t = type1;
  while (TRUE) {
    wxTypeDef *typ;
    typ = (wxTypeDef*)wxAllTypes->Get((long)t);
    if (!typ)
      return FALSE;
    if (type2 == typ->parent)
      return TRUE;
    t = typ->parent;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function: