MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Persist.hpp File Reference
#include "LiveArena.hpp"
+ Include dependency graph for Persist.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::internal
 

Functions

void MayaFlux::internal::cleanup_persistent_store ()
 
template<typename T , typename... Args>
T & MayaFlux::make_persistent (Args &&... args)
 Construct a T in place, retain it for process lifetime, and return a direct reference.
 
template<typename T >
std::decay_t< T > & MayaFlux::make_persistent (T &&val)
 Store a value in the persistent store and return a reference to it.
 
template<typename T , typename... Args>
std::shared_ptr< T > MayaFlux::make_persistent_shared (Args &&... args)
 Construct a T in place, retain it for process lifetime, and return a shared handle.
 
std::vector< std::shared_ptr< void > > & MayaFlux::internal::persistent_store ()
 
template<typename T >
std::shared_ptr< T > MayaFlux::store (std::shared_ptr< T > obj)
 Transfer ownership of an existing object to the persistent store for process lifetime.
 
template<typename T >
std::shared_ptr< T > MayaFlux::store (std::string_view key, std::shared_ptr< T > obj)
 Transfer ownership of an existing object to the persistent store and expose it to the live arena under key.
 
template<typename T >
void MayaFlux::store (T obj)
 Transfer ownership of a value to the persistent store for process lifetime.