HashTable {fuseMLR} | R Documentation |
Class HashTable
Description
Hashtable to contain object modalities. Storage objects like Training and TrainLayer are extensions of this class.
Methods
Public methods
Method new()
Initialize a default parameters list.
Usage
HashTable$new(id)
Arguments
id
character
ID of the hash table. It must be unique.
Method print()
Printer
Usage
HashTable$print(...)
Arguments
...
any
Method add2HashTable()
Function to add a key-value pair to the hash table.
Usage
HashTable$add2HashTable(key, value, .class)
Arguments
key
character
The key to be added.value
object
Object to be added..class
character
Class of the object to be added.
Method getFromHashTable()
Getter of the object which the key passed as argument.
Usage
HashTable$getFromHashTable(key)
Arguments
key
character
Key of the required object.
Method getKeyClass()
Getter of the data.frame
that stores all key class pairs.
Usage
HashTable$getKeyClass()
Returns
Method removeFromHashTable()
Remove the object with the corresponding key from the hashtable.
Usage
HashTable$removeFromHashTable(key)
Arguments
key
Key of the object to be removed.
Method getId()
Getter of the current object ID.
Usage
HashTable$getId()
Method getHashTable()
Getter of the current hashtable.
Usage
HashTable$getHashTable()
Method checkClassExist()
Check whether object from a class has already been stored.
Usage
HashTable$checkClassExist(.class)
Arguments
.class
character
Returns
Boolean value