maxon.Registry¶
Description¶
Methods Signature¶
  | 
Retrieves the object stored with the given   | 
Retrieve a RegistryIterator that can be iterate with a for loop.  | 
|
  | 
Return the identifier of this registry.  | 
  | 
Inserts a new entry into the current registry.  | 
  | 
Retrieves an entry in the registry.  | 
  | 
Iterates over all elements available in the registry.  | 
  | 
Returns the number of entries in the registry.  | 
Methods Definition¶
- 
classmethod 
Registry.Get(eid)¶ Retrieves the object stored with the given
maxon.Idwithin the current registry.
- 
classmethod 
Registry.GetEntries()¶ Retrieve a RegistryIterator that can be iterate with a for loop.
- Returns
 an iterator.
- 
classmethod 
Registry.GetId()¶ Return the identifier of this registry.
- Returns
 The identifier of this registry.
- Return type
 
- 
classmethod 
Registry.Insert(eid, object)¶ Inserts a new entry into the current registry.
- Parameters
 eid (
maxon.Id) – The identifier of the object.object (Any) – The object to store into the registry.
- Returns
 
- 
Registry.__getitem__(item)¶ Retrieves an entry in the registry.
- Parameters
 item (
maxon.InternedId) – The identifier of the registry entry you want to retrieve.
- 
Registry.__iter__()¶ Iterates over all elements available in the registry.
- 
Registry.__len__()¶ Returns the number of entries in the registry.
- Returns
 Number of entries in the registry.
- Return type
 int