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

#include <generic_shared.hpp>

Detailed Description

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

Definition at line 240 of file generic_shared.hpp.

Public Member Functions

void tocache (const K &key, const T &f, bool needs_lock=true)
 
void tocache_if_missing (const K &key, T &f)
 
bool incache (const K &key, T &f, bool needs_lock=true) const
 
void cache (std::vector< K > &keys, std::vector< T > &entries) const
 

Member Function Documentation

◆ cache()

template<typename K , typename T >
void casadi::WeakCache< K, T >::cache ( std::vector< K > &  keys,
std::vector< T > &  entries 
) const
inline

Definition at line 288 of file generic_shared.hpp.

◆ incache()

template<typename K , typename T >
bool casadi::WeakCache< K, T >::incache ( const K &  key,
T &  f,
bool  needs_lock = true 
) const
inline

Definition at line 274 of file generic_shared.hpp.

◆ tocache()

template<typename K , typename T >
void casadi::WeakCache< K, T >::tocache ( const K &  key,
const T &  f,
bool  needs_lock = true 
)
inline

Definition at line 242 of file generic_shared.hpp.

◆ tocache_if_missing()

template<typename K , typename T >
void casadi::WeakCache< K, T >::tocache_if_missing ( const K &  key,
T &  f 
)
inline

Definition at line 265 of file generic_shared.hpp.


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