List of all members | Public Member Functions
casadi::SimpleCache< K, T > Class Template Reference

#include <generic_shared.hpp>

Detailed Description

template<typename K, typename T>
class casadi::SimpleCache< K, T >

Simple cache template for regular (non-weak) key-value pairs Both key and value are stored as regular references

Definition at line 400 of file generic_shared.hpp.

Public Member Functions

void tocache (const K &key, const T &value)
 
bool incache (const K &key, T &value) const
 
const std::unordered_map< K, T > & cache_map () const
 

Member Function Documentation

◆ cache_map()

template<typename K , typename T >
const std::unordered_map<K, T>& casadi::SimpleCache< K, T >::cache_map ( ) const
inline

Definition at line 415 of file generic_shared.hpp.

◆ incache()

template<typename K , typename T >
bool casadi::SimpleCache< K, T >::incache ( const K &  key,
T &  value 
) const
inline

Definition at line 406 of file generic_shared.hpp.

◆ tocache()

template<typename K , typename T >
void casadi::SimpleCache< K, T >::tocache ( const K &  key,
const T &  value 
)
inline

Definition at line 402 of file generic_shared.hpp.


The documentation for this class was generated from the following file: