util.h File Reference
+ Include dependency graph for util.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 armarx
 This file offers overloads of toIce() and fromIce() functions for STL container types.
 
 armarx::armem
 

Functions

template<typename AronClass >
std::vector< AronClass > allOfType (const std::map< std::string, wm::Entity > &entities)
 Returns all entities that can be cast to AronClass. More...
 
std::optional< std::pair< armarx::aron::data::DictPtr, armarx::aron::type::ObjectPtr > > extractDataAndType (const armarx::armem::wm::Memory &memory, const armarx::armem::MemoryID &memoryID)
 get the data and type of the given MemoryID in the given Memory. More...
 
std::optional< armarx::armem::wm::MemoryresolveID (armarx::armem::client::MemoryNameSystem &mns, const armarx::armem::MemoryID &memoryID)
 resolve a single MemoryID with the given MemoryNameSystem. More...
 
template<typename AronClass >
auto transformAllOfType (const std::map< std::string, wm::Entity > &entities, auto pred) -> std::vector< decltype(pred(AronClass()))>
 filter + transform for entities. More...
 
template<typename AronClass >
std::optional< AronClass > tryCast (const wm::EntityInstance &item)
 Tries to cast a armem::EntityInstance to AronClass. More...