HashTable | R Documentation |
Hashtable to contain object modalities. Storage objects like Training and TrainLayer are extensions of this class.
new()
Initialize a default parameters list.
HashTable$new(id)
id
character
ID of the hash table. It must be unique.
print()
Printer
HashTable$print(...)
...
any
add2HashTable()
Function to add a key-value pair to the hash table.
HashTable$add2HashTable(key, value, .class)
key
character
The key to be added.
value
object
Object to be added.
.class
character
Class of the object to be added.
getFromHashTable()
Getter of the object which the key passed as argument.
HashTable$getFromHashTable(key)
key
character
Key of the required object.
getKeyClass()
Getter of the data.frame
that stores all key class pairs.
HashTable$getKeyClass()
data.frame
removeFromHashTable()
Remove the object with the corresponding key from the hashtable.
HashTable$removeFromHashTable(key)
key
Key of the object to be removed.
getId()
Getter of the current object ID.
HashTable$getId()
getHashTable()
Getter of the current hashtable.
HashTable$getHashTable()
checkClassExist()
Check whether object from a class has already been stored.
HashTable$checkClassExist(.class)
.class
character
Boolean value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.