
public class ArrayDBIDStore extends Object implements WritableDBIDDataStore
| Modifier and Type | Field and Description |
|---|---|
private ArrayModifiableDBIDs |
data
Data array
|
private DataStoreIDMap |
idmap
DBID to index map
|
| Constructor and Description |
|---|
ArrayDBIDStore(int size,
DataStoreIDMap idmap)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assignVar(DBIDRef id,
DBIDVar var)
Retrieves an object from the storage.
|
void |
delete(DBIDRef id)
Delete the contents for a particular ID and notifies the registered
listeners.
|
void |
destroy()
Deallocate the storage, freeing the memory and notifies the registered
listeners.
|
DBID |
get(DBIDRef id)
Deprecated.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
String |
getShortName()
A short name for the result, useful for file names.
|
DBID |
put(DBIDRef id,
DBID value)
Deprecated.
|
void |
put(DBIDRef id,
DBIDRef value)
Associates the specified value with the specified id in this storage.
|
void |
putDBID(DBIDRef id,
DBIDRef value)
Associates the specified value with the specified id in this storage.
|
private ArrayModifiableDBIDs data
private DataStoreIDMap idmap
public ArrayDBIDStore(int size,
DataStoreIDMap idmap)
size - Sizeidmap - ID map@Deprecated public DBID get(DBIDRef id)
DBIDDataStoreget in interface DataStore<DBID>get in interface DBIDDataStoreid - Database ID.nullpublic void assignVar(DBIDRef id, DBIDVar var)
DBIDDataStoreassignVar in interface DBIDDataStoreid - Database ID.var - Variable to update.@Deprecated public DBID put(DBIDRef id, DBID value)
WritableDBIDDataStoreput in interface WritableDataStore<DBID>put in interface WritableDBIDDataStoreid - Database ID.value - Value to store.public void putDBID(DBIDRef id, DBIDRef value)
WritableDBIDDataStoreputDBID in interface WritableDBIDDataStoreid - Database ID.value - Value to store.public void put(DBIDRef id, DBIDRef value)
WritableDBIDDataStoreput in interface WritableDBIDDataStoreid - Database ID.value - Value to store.public void destroy()
WritableDataStoredestroy in interface WritableDataStore<DBID>public void delete(DBIDRef id)
WritableDataStoredelete in interface WritableDataStore<DBID>id - Database ID.public String getLongName()
ResultgetLongName in interface Resultpublic String getShortName()
ResultgetShortName in interface Result