#include "setGetHashTable.h"#include "ObjectStructure.h"Include dependency graph for SetHashTable.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| SetPropertyHashTable * | createScilabSetHashTable (void) |
| void | destroyScilabSetHashTable (void) |
| int | callSetProperty (sciPointObj *pObj, int stackPointer, int valueType, int nbRow, int nbCol, char *propertyName) |
| int callSetProperty | ( | sciPointObj * | pObj, | |
| int | stackPointer, | |||
| int | valueType, | |||
| int | nbRow, | |||
| int | nbCol, | |||
| char * | propertyName | |||
| ) |
call the function which the property propertyName of object pObj
Definition at line 198 of file SetHashTable.c.
References NULL, sciprint(), searchSetHashtable(), and setHashTable.
Referenced by sciSet().
00199 { 00200 setPropertyFunc accessor = searchSetHashtable( setHashTable, propertyName ) ; 00201 if ( accessor == NULL ) 00202 { 00203 sciprint( "Unknown property.\n" ) ; 00204 return -1 ; 00205 } 00206 return accessor( pObj, stackPointer, valueType, nbRow, nbCol ) ; 00207 }
Here is the call graph for this function:

Here is the caller graph for this function:

| SetPropertyHashTable* createScilabSetHashTable | ( | void | ) |
create the fill hash table already filled for set functions this use the singleton pattern since only one hashtable is useful.
Definition at line 170 of file SetHashTable.c.
References createSetHashTable(), i, insertSetHashtable(), NB_PROPERTIES, NULL, propertyTable, setHashTable, setHashTableCreated, and TRUE.
Referenced by loadGraphicModule().
00171 { 00172 int i ; 00173 if ( setHashTableCreated ) 00174 { 00175 return setHashTable ; 00176 } 00177 00178 /* create the hash table */ 00179 setHashTable = createSetHashTable() ; 00180 00181 if ( setHashTable == NULL ) 00182 { 00183 return NULL ; 00184 } 00185 00186 /* insert every couple */ 00187 for ( i = 0 ; i < NB_PROPERTIES ; i++ ) 00188 { 00189 insertSetHashtable( setHashTable, propertyTable[i].key, propertyTable[i].accessor ) ; 00190 } 00191 00192 setHashTableCreated = TRUE ; 00193 00194 return setHashTable ; 00195 00196 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void destroyScilabSetHashTable | ( | void | ) |
Delete the scilab set hashtable
Definition at line 209 of file SetHashTable.c.
References destroySetHashTable(), FALSE, setHashTable, and setHashTableCreated.
Referenced by closeGraphicModule().
00210 { 00211 if ( !setHashTableCreated ) 00212 { 00213 return ; 00214 } 00215 00216 destroySetHashTable( setHashTable ) ; 00217 setHashTableCreated = FALSE ; 00218 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.5.1