Blender  V3.3
Public Member Functions | List of all members
blender::GValueMap< Key > Class Template Reference

#include <BLI_generic_value_map.hh>

Public Member Functions

 GValueMap (LinearAllocator<> &allocator)
 
 ~GValueMap ()
 
template<typename ForwardKey >
void add_new_direct (ForwardKey &&key, GMutablePointer value)
 
template<typename ForwardKey >
void add_new_by_move (ForwardKey &&key, GMutablePointer value)
 
template<typename ForwardKey >
void add_new_by_copy (ForwardKey &&key, GPointer value)
 
template<typename ForwardKey , typename T >
void add_new (ForwardKey &&key, T &&value)
 
template<typename ForwardKey >
GMutablePointer extract (const ForwardKey &key)
 
template<typename ForwardKey >
GPointer lookup (const ForwardKey &key) const
 
template<typename T , typename ForwardKey >
T extract (const ForwardKey &key)
 
template<typename T , typename ForwardKey >
const Tlookup (const ForwardKey &key) const
 
template<typename ForwardKey >
bool contains (const ForwardKey &key) const
 

Detailed Description

template<typename Key>
class blender::GValueMap< Key >

This is a map that stores key-value-pairs. What makes it special is that the type of values does not have to be known at compile time. There just has to be a corresponding CPPType.

Definition at line 15 of file BLI_generic_value_map.hh.

Constructor & Destructor Documentation

◆ GValueMap()

template<typename Key >
blender::GValueMap< Key >::GValueMap ( LinearAllocator<> &  allocator)
inline

Definition at line 22 of file BLI_generic_value_map.hh.

◆ ~GValueMap()

template<typename Key >
blender::GValueMap< Key >::~GValueMap ( )
inline

Member Function Documentation

◆ add_new()

template<typename Key >
template<typename ForwardKey , typename T >
void blender::GValueMap< Key >::add_new ( ForwardKey &&  key,
T &&  value 
)
inline

◆ add_new_by_copy()

template<typename Key >
template<typename ForwardKey >
void blender::GValueMap< Key >::add_new_by_copy ( ForwardKey &&  key,
GPointer  value 
)
inline

◆ add_new_by_move()

template<typename Key >
template<typename ForwardKey >
void blender::GValueMap< Key >::add_new_by_move ( ForwardKey &&  key,
GMutablePointer  value 
)
inline

◆ add_new_direct()

template<typename Key >
template<typename ForwardKey >
void blender::GValueMap< Key >::add_new_direct ( ForwardKey &&  key,
GMutablePointer  value 
)
inline

◆ contains()

template<typename Key >
template<typename ForwardKey >
bool blender::GValueMap< Key >::contains ( const ForwardKey &  key) const
inline

◆ extract() [1/2]

template<typename Key >
template<typename ForwardKey >
GMutablePointer blender::GValueMap< Key >::extract ( const ForwardKey &  key)
inline

◆ extract() [2/2]

template<typename Key >
template<typename T , typename ForwardKey >
T blender::GValueMap< Key >::extract ( const ForwardKey &  key)
inline

◆ lookup() [1/2]

template<typename Key >
template<typename ForwardKey >
GPointer blender::GValueMap< Key >::lookup ( const ForwardKey &  key) const
inline

◆ lookup() [2/2]

template<typename Key >
template<typename T , typename ForwardKey >
const T& blender::GValueMap< Key >::lookup ( const ForwardKey &  key) const
inline

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