Datatypes:
AjPTable | Hash tables |
Sections:
Constructors | Constructors |
Destructors | Destructors |
Retrieval | Casts |
Trace functions | Miscellaneous |
Adding values | Modifiers |
Map function to each value | Modifiers |
Modify | Modifiers |
Merging | Modifiers |
exit | Miscellaneous |
Functions:
ajTableNew | creates, initialises, and returns a new, empty table that expects a specified number of key-value pairs. |
ajTableNewFunctionLen | creates, initialises, and returns a new, empty table that expects a specified number of key-value pairs. |
AjPTable ajTableNew ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | number of key-value pairs |
AjPTable | RETURN | new table. |
From EMBOSS 1.0.0
AjPTable ajTableNewFunctionLen ( ajuint size, ajint function cmp, ajuint function hash, void function keydel, void function valdel );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | number of key-value pairs |
ajint function | cmp | Function | function for comparing |
ajuint function | hash | Function | function for hashing keys |
void function | keydel | Function | key destructor function |
void function | valdel | Function | value destructor function |
AjPTable | RETURN | new table. |
From EMBOSS 5.0.0
Functions:
ajTableDel | Deallocates and clears a hash table, and any keys or values. |
ajTableDelKeydelValdel | Deallocates and clears a hash table, and any keys or values. |
ajTableDelValdel | Deallocates and clears a hash table, and any keys or values. |
ajTableFree | Deallocates and clears a hash table. Does not clear keys or values. |
void ajTableDel ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table (by reference) |
void | RETURN |
From EMBOSS 6.4.0
void ajTableDelKeydelValdel ( AjPTable* Ptable, void function keydel, void function valdel );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table (by reference) |
void function | keydel | Function | key destructor |
void function | valdel | Function | value destructor |
void | RETURN |
From EMBOSS 6.4.0
void ajTableDelValdel ( AjPTable* Ptable, void function valdel );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table (by reference) |
void function | valdel | Function | value destructor |
void | RETURN |
From EMBOSS 6.4.0
void ajTableFree ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table (by reference) |
void | RETURN |
From EMBOSS 1.0.0
Functions:
ajTableFetchC | returns the value associated with key in table, or null if table does not hold key. |
ajTableFetchS | returns the value associated with key in table, or null if table does not hold key. |
ajTableFetchV | Returns the value associated with key in table, or null if table does not hold key. |
ajTableFetchmodC | returns the value associated with key in table, or null if table does not hold key. |
ajTableFetchmodS | returns the value associated with key in table, or null if table does not hold key. |
ajTableFetchmodV | Returns the value associated with key in table, or null if table does not hold key. |
ajTableFetchmodTraceV | Returns the value associated with key in table, or null if table does not hold key. |
ajTableGetLength | returns the number of key-value pairs in table. |
ajTableGetSize | returns the size of the hash array in a table. |
ajTableMatchC | Returns true if the key is found in the table |
ajTableMatchS | Returns true if the key is found in the table |
ajTableMatchV | Returns true if the key is found in the table |
ajTableToarrayKeys | creates two N+1 element arrays that holds the N keys in table in an unspecified order and returns the number of elements. The final element of the array is NULL. |
ajTableToarrayKeysValues | creates two N+1 element arrays that holds the N key-value pairs in table in an unspecified order and returns the number of elements. The final element of the array is NULL. |
ajTableToarrayValues | creates two N+1 element arrays that holds the N values in table in an unspecified order and returns the number of elements. The final element of the array is NULL. |
const void* ajTableFetchC ( const AjPTable table, const char* txtkey );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const char* | txtkey | Input | key to find. |
const void* | RETURN | value associated with key |
From EMBOSS 6.4.0
const void* ajTableFetchS ( const AjPTable table, const AjPStr key );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const AjPStr | key | Input | key to find. |
const void* | RETURN | value associated with key |
From EMBOSS 6.4.0
const void* ajTableFetchV ( const AjPTable table, const void* key );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const void* | key | Input | key to find. |
const void* | RETURN | value associated with key |
From EMBOSS 6.4.0
void* ajTableFetchmodC ( const AjPTable table, const char* txtkey );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const char* | txtkey | Input | key to find. |
void* | RETURN | value associated with key |
From EMBOSS 6.4.0
void* ajTableFetchmodS ( const AjPTable table, const AjPStr key );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const AjPStr | key | Input | key to find. |
void* | RETURN | value associated with key |
From EMBOSS 6.4.0
void* ajTableFetchmodV ( const AjPTable table, const void* key );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const void* | key | Input | key to find. |
void* | RETURN | value associated with key |
From EMBOSS 6.4.0
void* ajTableFetchmodTraceV ( const AjPTable table, const void* key );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const void* | key | Input | key to find. |
void* | RETURN | value associated with key |
From EMBOSS 6.4.0
ajuint ajTableGetLength ( const AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | Table to be applied. |
ajuint | RETURN | number of key-value pairs. |
From EMBOSS 5.0.0
ajuint ajTableGetSize ( const AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | Table to be applied. |
ajuint | RETURN | number of hash array positions |
From EMBOSS 6.4.0
AjBool ajTableMatchC ( const AjPTable table, const char* txtkey );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const char* | txtkey | Input | key to find. |
AjBool | RETURN | True if key was found[ |
From EMBOSS 6.4.0
AjBool ajTableMatchS ( const AjPTable table, const AjPStr key );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const AjPStr | key | Input | key to find. |
AjBool | RETURN | True if key was found |
From EMBOSS 6.4.0
AjBool ajTableMatchV ( const AjPTable table, const void* key );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const void* | key | Input | key to find. |
AjBool | RETURN | True if key was found |
From EMBOSS 6.4.0
ajuint ajTableToarrayKeys ( const AjPTable table, void*** keyarray );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | Table |
void*** | keyarray | Output | NULL terminated array of keys. |
ajuint | RETURN | size of array returned |
From EMBOSS 6.2.0
ajuint ajTableToarrayKeysValues ( const AjPTable table, void*** keyarray, void*** valarray );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | Table |
void*** | keyarray | Output | NULL terminated array of keys. |
void*** | valarray | Output | NULL terminated array of values. |
ajuint | RETURN | size of arrays returned |
From EMBOSS 6.2.0
ajuint ajTableToarrayValues ( const AjPTable table, void*** valarray );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | Table |
void*** | valarray | Output | NULL terminated array of values. |
ajuint | RETURN | size of array returned |
From EMBOSS 6.2.0
Functions:
ajTableTrace | Writes debug messages to trace the contents of a table. |
void ajTableTrace ( const AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | Table |
void | RETURN |
From EMBOSS 1.0.0
Functions:
ajTablePut | change the value associated with key in table to value and returns the previous value, or adds key and value if table does not hold key, and returns null. |
ajTablePutClean | change the value associated with key in table to value and returns the previous value, applying destructors to the given key and value, or adds key and value if table does not hold key, and returns null. |
ajTablePutTrace | change the value associated with key in table to value and returns the previous value, or adds key and value if table does not hold key, and returns null. Trace the internals as the value is inserted. |
ajTableRemove | Removes the key-value pair from table and returns the removed value. If table does not hold key, ajTableRemove has no effect and returns null. |
ajTableRemoveKey | Removes the key-value pair from table and returns the removed value. If table does not hold key, ajTableRemove has no effect and returns null. |
void* ajTablePut ( AjPTable table, void* key, void* value );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table to add to |
void* | key | Unknown | key |
void* | value | Modify | value of key |
void* | RETURN | previous value if key exists, NULL if not. |
From EMBOSS 1.0.0
AjBool ajTablePutClean ( AjPTable table, void* key, void* value, void function keydel, void function valdel );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table to add to |
void* | key | Unknown | key |
void* | value | Modify | value of key |
void function | keydel | Function | key destructor |
void function | valdel | Function | value destructor |
AjBool | RETURN | previous value was found and deleted. |
From EMBOSS 6.4.0
void* ajTablePutTrace ( AjPTable table, void* key, void* value );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table to add to |
void* | key | Unknown | key |
void* | value | Modify | value of key |
void* | RETURN | previous value if key exists, NULL if not. |
From EMBOSS 6.4.0
void* ajTableRemove ( AjPTable table, const void* key );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table |
const void* | key | Input | key to be removed |
void* | RETURN | removed value. |
From EMBOSS 1.0.0
void* ajTableRemoveKey ( AjPTable table, const void* key, void** truekey );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table |
const void* | key | Input | key to be removed |
void** | truekey | Output | true internal key returned, now owned by caller |
void* | RETURN | removed value. |
From EMBOSS 5.0.0
Functions:
ajTableMap | calls function 'apply' for each key-value in table in an unspecified order. The table keys should not be modified by function 'apply' although values can be updated. |
ajTableMapDel | calls function 'apply' for each key-value in table in an unspecified order. |
void ajTableMap ( AjPTable table, void function apply, void* cl );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table. |
void function | apply | Function | function to be applied |
void* | cl | Modify | Standard. Usually NULL. To be passed to apply |
void | RETURN |
From EMBOSS 1.0.0
void ajTableMapDel ( AjPTable table, void function apply, void* cl );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table. |
void function | apply | Function | function to be applied |
void* | cl | Modify | Standard. Usually NULL. To be passed to apply |
void | RETURN |
From EMBOSS 2.9.0
Functions:
ajTableClear | Clears a hash table. Does not clear keys or values. |
ajTableClearDelete | Clears a hash table. Deletes all keys or values. |
ajTableResizeCount | Resizes a hash table to a new number of expected values. |
ajTableResizeHashsize | Resizes a hash table to a new size. |
ajTableSetDestroy | Sets the destructor functions for keys and values |
ajTableSetDestroyboth | Sets the destructor functions values to be the same as for keys |
ajTableSetDestroykey | Sets the destructor functions for keys |
ajTableSetDestroyvalue | Sets the destructor functions for values |
ajTableSettypeChar | Resets a hash table to use C character string keys |
ajTableSettypeCharCase | Resets a hash table to use case-insensitive C character string keys |
ajTableSettypeDefault | Resets a hash table to use default keys |
ajTableSettypeInt | Resets a hash table to use integer keys |
ajTableSettypeLong | Resets a hash table to use long integer keys |
ajTableSettypeString | Resets a hash table to use string keys |
ajTableSettypeStringCase | Resets a hash table to use case-insensitive string keys |
ajTableSettypeUint | Resets a hash table to use unsigned integer keys |
ajTableSettypeUlong | Resets a hash table to use unsigned long integer keys |
ajTableSettypeUser | Resets a hash table to use user-defined keys |
void ajTableClear ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableClearDelete ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableResizeCount ( AjPTable table, ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table |
ajuint | size | Input | Expected number of key-value pairs |
void | RETURN |
From EMBOSS 6.4.0
void ajTableResizeHashsize ( AjPTable table, ajuint hashsize );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table |
ajuint | hashsize | Input | Expected number of key-value pairs |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSetDestroy ( AjPTable table, void function keydel, void function valdel );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table |
void function | keydel | Function | key destructor function |
void function | valdel | Function | value destructor function |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSetDestroyboth ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSetDestroykey ( AjPTable table, void function keydel );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table |
void function | keydel | Function | key destructor function |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSetDestroyvalue ( AjPTable table, void function valdel );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Table |
void function | valdel | Function | value destructor function |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSettypeChar ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Hash table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSettypeCharCase ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Hash table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSettypeDefault ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Hash table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSettypeInt ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Hash table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSettypeLong ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Hash table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSettypeString ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Hash table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSettypeStringCase ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Hash table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSettypeUint ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Hash table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSettypeUlong ( AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Hash table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableSettypeUser ( AjPTable table, ajint function cmp, ajuint function hash );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | Hash table |
ajint function | cmp | Function | function for comparing |
ajuint function | hash | Function | function for hashing keys |
void | RETURN |
From EMBOSS 6.4.0
Functions:
ajTableMergeAnd | Merge two tables, keeping all keys that are in both tables |
ajTableMergeEor | Merge two tables, keeping all keys that are in only one table |
ajTableMergeNot | Merge two tables, removing all keys that are not in the new table |
ajTableMergeOr | Merge two tables, adding all unique keys from the new table |
AjBool ajTableMergeAnd ( AjPTable thys, AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | thys | Modify | Current table |
AjPTable | table | Modify | Table to be merged |
AjBool | RETURN | True on success |
From EMBOSS 6.4.0
AjBool ajTableMergeEor ( AjPTable thys, AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | thys | Modify | Current table |
AjPTable | table | Modify | Table to be merged |
AjBool | RETURN | True on success |
From EMBOSS 6.4.0
AjBool ajTableMergeNot ( AjPTable thys, AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | thys | Modify | Current table |
AjPTable | table | Modify | Table to be merged |
AjBool | RETURN | True on success |
From EMBOSS 6.4.0
AjBool ajTableMergeOr ( AjPTable thys, AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | thys | Modify | Current table |
AjPTable | table | Modify | Table to be merged |
AjBool | RETURN | True on success |
From EMBOSS 6.4.0
Functions:
ajTableExit | Prints a summary of table usage with debug calls |
void ajTableExit ( void );
Type | Name | Read/Write | Description |
---|---|---|---|
void | RETURN |
From EMBOSS 2.8.0
Functions:
ajTablecharNew | Creates a table with a character string key. |
ajTablecharNewCase | Creates a table with a character string key and case insensitive searching. |
ajTablecharNewCaseConst | Creates a table with a character string key and case insensitive searching. |
ajTablecharNewConst | Creates a table with a character string key. |
AjPTable ajTablecharNew ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | number of key-value pairs |
AjPTable | RETURN | New table object with a character string key. |
From EMBOSS 5.0.0
AjPTable ajTablecharNewCase ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | Hash size estimate. |
AjPTable | RETURN | New table object with a character string key. |
From EMBOSS 5.0.0
AjPTable ajTablecharNewCaseConst ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | Hash size estimate. |
AjPTable | RETURN | New table object with a character string key. |
From EMBOSS 6.4.0
AjPTable ajTablecharNewConst ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | number of key-value pairs |
AjPTable | RETURN | New table object with a character string key. |
From EMBOSS 6.4.0
Functions:
ajTablecharPrint | Print function for a table with a character string key. |
void ajTablecharPrint ( const AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | Table. |
void | RETURN |
From EMBOSS 5.0.0
Functions:
ajTablecharCmp | Comparison function for a table with a character string key |
ajTablecharCmpCase | Comparison function for a table with a character string key and case insensitivity. |
ajTablecharHash | Hash function for a table with a character string key |
ajTablecharHashCase | Hash function for a table with a character string key and case insensitivity. |
ajint ajTablecharCmp ( const void* x, const void* y );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | x | Input | Standard argument. Item value. |
const void* | y | Input | Standard argument. Comparison item value. |
ajint | RETURN | Comparison result. Zero if equal, non-zero if different. |
From EMBOSS 5.0.0
ajint ajTablecharCmpCase ( const void* x, const void* y );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | x | Input | Standard argument. Item value. |
const void* | y | Input | Standard argument. Comparison item value. |
ajint | RETURN | Comparison result. Zero if equal, non-zero if different. |
From EMBOSS 5.0.0
ajuint ajTablecharHash ( const void* key, ajuint hashsize );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | key | Input | Standard argument. Table key. |
ajuint | hashsize | Input | Standard argument. Estimated Hash size. |
ajuint | RETURN | Hash value. |
From EMBOSS 5.0.0
ajuint ajTablecharHashCase ( const void* key, ajuint hashsize );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | key | Input | Standard argument. Table key. |
ajuint | hashsize | Input | Standard argument. Estimated Hash size. |
ajuint | RETURN | Hash value. |
From EMBOSS 5.0.0
Functions:
ajTableintNew | Creates, initialises, and returns a new, empty table that can hold a specified number of integer key-value pairs. |
ajTableintNewConst | Creates, initialises, and returns a new, empty table that can hold a specified number of integer key-value pairs. |
AjPTable ajTableintNew ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 6.4.0
AjPTable ajTableintNewConst ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 6.4.0
Functions:
ajTableintFree | Free keys and value strings in a table and free the table. Use only where the keys and data in the table are real, and not just copies of pointers. Otherwise a call to ajTableFree is enough. |
ajTableintFreeKey | Free keys and value strings in a table and free the table. Use only where the keys in the table are real, and not just copies of pointers. Otherwise a call to ajTableFree is enough. |
void ajTableintFree ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableintFreeKey ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table |
void | RETURN |
From EMBOSS 6.4.0
Functions:
ajTableintFetch | returns the value associated with key in table, or null if table does not hold key. |
const ajint* ajTableintFetch ( const AjPTable table, const ajint* intkey );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const ajint* | intkey | Input | key to find. |
const ajint* | RETURN | value associated with key |
From EMBOSS 6.4.0
Functions:
ajTableintFetchmod | returns the value associated with key in table, or null if table does not hold key. |
ajint* ajTableintFetchmod ( AjPTable table, const ajint* intkey );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | table to search |
const ajint* | intkey | Input | key to find. |
ajint* | RETURN | value associated with key |
From EMBOSS 6.4.0
Functions:
ajTableintCmp | Comparison function for a table with an integer key |
ajTableintHash | Hash function for a table with an integer key |
ajint ajTableintCmp ( const void* x, const void* y );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | x | Input | Standard argument. Item value. |
const void* | y | Input | Standard argument. Comparison item value. |
ajint | RETURN | Comparison result. Zero if equal, non-zero if different. |
From EMBOSS 6.4.0
ajuint ajTableintHash ( const void* key, ajuint hashsize );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | key | Input | Standard argument. Table key. |
ajuint | hashsize | Input | Standard argument. Estimated Hash size. |
ajuint | RETURN | Hash value in range 0 to hashsize-1 |
From EMBOSS 6.4.0
Functions:
ajTablelongNew | Creates, initialises, and returns a new, empty table that can hold a specified number of long integer key-value pairs. |
ajTablelongNewConst | Creates, initialises, and returns a new, empty table that can hold a specified number of long integer key-value pairs. |
AjPTable ajTablelongNew ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 6.4.0
AjPTable ajTablelongNewConst ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 6.4.0
Functions:
ajTablelongFree | Free keys and value strings in a table and free the table. Use only where the keys and data in the table are real, and not just copies of pointers. Otherwise a call to ajTableFree is enough. |
ajTablelongFreeKey | Free keys and value strings in a table and free the table. Use only where the keys in the table are real, and not just copies of pointers. Otherwise a call to ajTableFree is enough. |
void ajTablelongFree ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table |
void | RETURN |
From EMBOSS 6.4.0
void ajTablelongFreeKey ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table |
void | RETURN |
From EMBOSS 6.4.0
Functions:
ajTablelongFetch | returns the value associated with key in table, or null if table does not hold key. |
const ajlong* ajTablelongFetch ( const AjPTable table, const ajlong* longkey );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const ajlong* | longkey | Input | key to find. |
const ajlong* | RETURN | value associated with key |
From EMBOSS 6.4.0
Functions:
ajTablelongFetchmod | returns the value associated with key in table, or null if table does not hold key. |
ajlong* ajTablelongFetchmod ( AjPTable table, const ajlong* longkey );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | table to search |
const ajlong* | longkey | Input | key to find. |
ajlong* | RETURN | value associated with key |
From EMBOSS 6.4.0
Functions:
ajTablelongCmp | Comparison function for a table with a long integer key |
ajTablelongHash | Hash function for a table with a long integer key |
ajint ajTablelongCmp ( const void* x, const void* y );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | x | Input | Standard argument. Item value. |
const void* | y | Input | Standard argument. Comparison item value. |
ajint | RETURN | Comparison result. Zero if equal, non-zero if different. |
From EMBOSS 6.4.0
ajuint ajTablelongHash ( const void* key, ajuint hashsize );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | key | Input | Standard argument. Table key. |
ajuint | hashsize | Input | Standard argument. Estimated Hash size. |
ajuint | RETURN | Hash value in range 0 to hashsize-1 |
From EMBOSS 6.4.0
Functions:
ajTablestrNew | Creates, initialises, and returns a new, empty table that can hold a specified number of key-value pairs. |
ajTablestrNewCase | Creates, initialises, and returns a new, empty table that can hold a specified number of key-value pairs. |
ajTablestrNewCaseConst | Creates, initialises, and returns a new, empty table that can hold a specified number of key-value pairs. |
ajTablestrNewConst | Creates, initialises, and returns a new, empty table that can hold a specified number of key-value pairs. |
AjPTable ajTablestrNew ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 5.0.0
AjPTable ajTablestrNewCase ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 5.0.0
AjPTable ajTablestrNewCaseConst ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 6.4.0
AjPTable ajTablestrNewConst ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 6.4.0
Functions:
ajTablestrFree | Free keys and value strings in a table and free the table. Use only where the keys and strings in the table are real, and not just copies of pointers. Otherwise a call to ajTableFree is enough. |
ajTablestrFreeKey | Free string keys in a table and free the table. Do not free the values. Use only where the keys in the table are real strings, and not just copies of pointers. Otherwise a call to ajTableFree is enough. The data is simply freed. |
void ajTablestrFree ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table |
void | RETURN |
From EMBOSS 5.0.0
void ajTablestrFreeKey ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table |
void | RETURN |
From EMBOSS 5.0.0
Functions:
ajTablestrFetchC | returns the value associated with key in table, or null if table does not hold key. |
ajTablestrFetchS | returns the value associated with key in table, or null if table does not hold key. |
ajTablestrFetchkeyC | returns the key value associated with key in table, or null if table does not hold key. |
ajTablestrFetchkeyS | returns the key value associated with key in table, or null if table does not hold key. |
void* ajTablestrFetchC ( const AjPTable table, const char* txtkey );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const char* | txtkey | Input | key to find. |
void* | RETURN | value associated with key |
From EMBOSS 6.4.0
void* ajTablestrFetchS ( const AjPTable table, const AjPStr key );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const AjPStr | key | Input | key to find. |
void* | RETURN | value associated with key |
From EMBOSS 6.4.0
const AjPStr ajTablestrFetchkeyC ( const AjPTable table, const char* txtkey );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const char* | txtkey | Input | key to find. |
const AjPStr | RETURN | key value as stored in the table |
From EMBOSS 6.4.0
const AjPStr ajTablestrFetchkeyS ( const AjPTable table, const AjPStr key );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const AjPStr | key | Input | key to find. |
const AjPStr | RETURN | key value as stored in the table |
From EMBOSS 6.4.0
Functions:
ajTablestrFetchmod | returns the value associated with key in table, or null if table does not hold key. |
AjPStr* ajTablestrFetchmod ( AjPTable table, const AjPStr key );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | table to search |
const AjPStr | key | Input | key to find. |
AjPStr* | RETURN | value associated with key |
From EMBOSS 6.0.0
Functions:
ajTablestrCmp | Comparison function for a table with a string key |
ajTablestrCmpCase | Comparison function for a table with a string key and case insensitivity. |
ajTablestrHash | Hash function for a table with a string key |
ajTablestrHashCase | Hash function for a table with a string key and case insensitivity. |
ajint ajTablestrCmp ( const void* x, const void* y );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | x | Input | Standard argument. Item value. |
const void* | y | Input | Standard argument. Comparison item value. |
ajint | RETURN | Comparison result. Zero if equal, non-zero if different. |
From EMBOSS 5.0.0
ajint ajTablestrCmpCase ( const void* x, const void* y );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | x | Input | Standard argument. Item value. |
const void* | y | Input | Standard argument. Comparison item value. |
ajint | RETURN | Comparison result. Zero if equal, non-zero if different. |
From EMBOSS 5.0.0
ajuint ajTablestrHash ( const void* key, ajuint hashsize );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | key | Input | Standard argument. Table key. |
ajuint | hashsize | Input | Standard argument. Estimated Hash size. |
ajuint | RETURN | Hash value in range 0 to hashsize-1 |
From EMBOSS 5.0.0
ajuint ajTablestrHashCase ( const void* key, ajuint hashsize );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | key | Input | Standard argument. Table key. |
ajuint | hashsize | Input | Standard argument. Estimated Hash size. |
ajuint | RETURN | Hash value in range 0 to hashsize-1 |
From EMBOSS 5.0.0
Functions:
ajTablestrPrint | Print function for a table with a string key. |
ajTablestrTrace | Writes debug messages to trace the contents of a table, assuming all keys and values are strings. |
ajTablestrTracekeys | Writes debug messages to trace the keys of a string table, assuming all keys and values are strings. |
void ajTablestrPrint ( const AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | Table. |
void | RETURN |
From EMBOSS 5.0.0
void ajTablestrTrace ( const AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | Table |
void | RETURN |
From EMBOSS 5.0.0
void ajTablestrTracekeys ( const AjPTable table );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | Table |
void | RETURN |
From EMBOSS 6.4.0
Functions:
ajTableuintNew | Creates, initialises, and returns a new, empty table that can hold a specified number of unsigned integer key-value pairs. |
ajTableuintNewConst | Creates, initialises, and returns a new, empty table that can hold a specified number of unsigned integer key-value pairs. |
AjPTable ajTableuintNew ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 6.4.0
AjPTable ajTableuintNewConst ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 6.4.0
Functions:
ajTableuintFree | Free keys and value strings in a table and free the table. Use only where the keys and data in the table are real, and not just copies of pointers. Otherwise a call to ajTableFree is enough. |
ajTableuintFreeKey | Free keys and value strings in a table and free the table. Use only where the keys in the table are real, and not just copies of pointers. Otherwise a call to ajTableFree is enough. |
void ajTableuintFree ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableuintFreeKey ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table |
void | RETURN |
From EMBOSS 6.4.0
Functions:
ajTableuintFetch | returns the value associated with key in table, or null if table does not hold key. |
const ajuint* ajTableuintFetch ( const AjPTable table, const ajuint* uintkey );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const ajuint* | uintkey | Input | key to find. |
const ajuint* | RETURN | value associated with key |
From EMBOSS 6.4.0
Functions:
ajTableuintFetchmod | returns the value associated with key in table, or null if table does not hold key. |
ajuint* ajTableuintFetchmod ( AjPTable table, const ajuint* uintkey );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | table to search |
const ajuint* | uintkey | Input | key to find. |
ajuint* | RETURN | value associated with key |
From EMBOSS 6.4.0
Functions:
ajTableuintCmp | Comparison function for a table with an unsigned integer key |
ajTableuintHash | Hash function for a table with an unsigned integer key |
ajint ajTableuintCmp ( const void* x, const void* y );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | x | Input | Standard argument. Item value. |
const void* | y | Input | Standard argument. Comparison item value. |
ajint | RETURN | Comparison result. Zero if equal, non-zero if different. |
From EMBOSS 6.4.0
ajuint ajTableuintHash ( const void* key, ajuint hashsize );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | key | Input | Standard argument. Table key. |
ajuint | hashsize | Input | Standard argument. Estimated Hash size. |
ajuint | RETURN | Hash value in range 0 to hashsize-1 |
From EMBOSS 6.4.0
Functions:
ajTableulongNew | Creates, initialises, and returns a new, empty table that can hold an arbitrary number of unsigned long integer key-value pairs |
ajTableulongNewConst | Creates, initialises, and returns a new, empty table that can hold an arbitrary number of unsigned long integer key-value pairs |
AjPTable ajTableulongNew ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 6.4.0
AjPTable ajTableulongNewConst ( ajuint size );
Type | Name | Read/Write | Description |
---|---|---|---|
ajuint | size | Input | estimate of number of unique keys |
AjPTable | RETURN | new table. |
From EMBOSS 6.4.0
Functions:
ajTableulongFree | Free keys and value strings in a table and free the table. Use only where the keys and data in the table are real, and not just copies of pointers. Otherwise a call to ajTableFree is enough. |
ajTableulongFreeKey | Free keys and value strings in a table and free the table. Use only where the keys in the table are real, and not just copies of pointers. Otherwise a call to ajTableFree is enough. |
void ajTableulongFree ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table |
void | RETURN |
From EMBOSS 6.4.0
void ajTableulongFreeKey ( AjPTable* Ptable );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable* | Ptable | Delete | Table |
void | RETURN |
From EMBOSS 6.4.0
Functions:
ajTableulongFetch | returns the value associated with key in table, or null if table does not hold key. |
const ajulong* ajTableulongFetch ( const AjPTable table, const ajulong* ulongkey );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPTable | table | Input | table to search |
const ajulong* | ulongkey | Input | key to find. |
const ajulong* | RETURN | value associated with key |
From EMBOSS 6.4.0
Functions:
ajTableulongFetchmod | Returns the value associated with key in table, or null if table does not hold key. |
ajulong* ajTableulongFetchmod ( AjPTable table, const ajulong* ulongkey );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPTable | table | Modify | table to search |
const ajulong* | ulongkey | Input | key to find. |
ajulong* | RETURN | value associated with key |
From EMBOSS 6.4.0
Functions:
ajTableulongCmp | Comparison function for a table with an unsigned long integer key |
ajTableulongHash | Hash function for a table with an unsigned long integer key |
ajint ajTableulongCmp ( const void* x, const void* y );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | x | Input | Standard argument. Item value. |
const void* | y | Input | Standard argument. Comparison item value. |
ajint | RETURN | Comparison result. Zero if equal, non-zero if different. |
From EMBOSS 6.4.0
ajuint ajTableulongHash ( const void* key, ajuint hashsize );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | key | Input | Standard argument. Table key. |
ajuint | hashsize | Input | Standard argument. Estimated Hash size. |
ajuint | RETURN | Hash value in range 0 to hashsize-1 |
From EMBOSS 6.4.0