| 
    Anklang-0.3.0.dev502+ga23511a1 anklang-0.3.0.dev502+ga23511a1
    
   ASE — Anklang Sound Engine (C++) 
   « « « Anklang Documentation  | 
 
#include "utils.hh"
Public Member Functions | |
| template<class T > | |
| void | set_custom_data (CustomDataKey< T > *key, T data) | 
| Assign data to the custom keyed data member, deletes any previously set data.   | |
| template<class T > | |
| T | get_custom_data (CustomDataKey< T > *key) const | 
| Retrieve contents of the custom keyed data member, returns DataKey::fallback if nothing was set.   | |
| template<class T > | |
| bool | has_custom_data (CustomDataKey< T > *key) const | 
| Retrieve wether contents of the custom keyed data member exists.   | |
| template<class T > | |
| bool | del_custom_data (CustomDataKey< T > *key) | 
| Delete the current contents of the custom keyed data member, invokes DataKey::destroy.   | |
Protected Member Functions | |
| void | custom_data_destroy () | 
DataListContainer - typesafe storage and retrieval of arbitrary members. By using a DataKey, DataListContainer objects allow storage and retrieval of custom data members in a typesafe fashion. The custom data members will initially default to DataKey::fallback and are deleted by the DataListContainer destructor. Example:
      
  | 
  protected | 
      
  | 
  protected | 
| bool Ase::CustomDataContainer::del_custom_data | ( | CustomDataKey< T > * | key | ) | 
| T Ase::CustomDataContainer::get_custom_data | ( | CustomDataKey< T > * | key | ) | const | 
Retrieve contents of the custom keyed data member, returns DataKey::fallback if nothing was set.
Definition at line 113 of file utils.hh.
Referenced by Ase::ServerImpl::broadcast_telemetry().
| bool Ase::CustomDataContainer::has_custom_data | ( | CustomDataKey< T > * | key | ) | const | 
| void Ase::CustomDataContainer::set_custom_data | ( | CustomDataKey< T > * | key, | 
| T | data | ||
| ) | 
Assign data to the custom keyed data member, deletes any previously set data.
Definition at line 110 of file utils.hh.
Referenced by Ase::ServerImpl::broadcast_telemetry().