Blender V2.61 - r43446
Public Member Functions | Protected Attributes

id_map< K, T > Class Template Reference

#include <blender_util.h>

Inheritance diagram for id_map< K, T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 id_map (vector< T * > *scene_data_)
T * find (BL::ID id)
T * find (const K &key)
void set_recalc (BL::ID id)
bool has_recalc ()
void pre_sync ()
bool sync (T **r_data, BL::ID id)
bool sync (T **r_data, BL::ID id, BL::ID parent, const K &key)
void used (T *data)
void set_default (T *data)
bool post_sync (bool do_delete=true)

Protected Attributes

vector< T * > * scene_data
map< K, T * > b_map
set< T * > used_set
set< void * > b_recalc

Detailed Description

template<typename K, typename T>
class id_map< K, T >

Definition at line 198 of file blender_util.h.


Constructor & Destructor Documentation

template<typename K, typename T>
id_map< K, T >::id_map ( vector< T * > *  scene_data_) [inline]

Definition at line 200 of file blender_util.h.


Member Function Documentation

template<typename K, typename T>
T* id_map< K, T >::find ( BL::ID  id) [inline]
template<typename K, typename T>
T* id_map< K, T >::find ( const K &  key) [inline]

Definition at line 210 of file blender_util.h.

template<typename K, typename T>
bool id_map< K, T >::has_recalc ( ) [inline]

Definition at line 225 of file blender_util.h.

Referenced by BlenderSync::sync_recalc().

template<typename K, typename T>
bool id_map< K, T >::post_sync ( bool  do_delete = true) [inline]

Definition at line 275 of file blender_util.h.

template<typename K, typename T>
void id_map< K, T >::pre_sync ( ) [inline]

Definition at line 230 of file blender_util.h.

template<typename K, typename T>
void id_map< K, T >::set_default ( T *  data) [inline]

Definition at line 270 of file blender_util.h.

template<typename K, typename T>
void id_map< K, T >::set_recalc ( BL::ID  id) [inline]

Definition at line 220 of file blender_util.h.

Referenced by BlenderSync::sync_recalc().

template<typename K, typename T>
bool id_map< K, T >::sync ( T **  r_data,
BL::ID  id 
) [inline]

Definition at line 235 of file blender_util.h.

Referenced by id_map< void *, Shader >::sync().

template<typename K, typename T>
bool id_map< K, T >::sync ( T **  r_data,
BL::ID  id,
BL::ID  parent,
const K &  key 
) [inline]

Definition at line 240 of file blender_util.h.

template<typename K, typename T>
void id_map< K, T >::used ( T *  data) [inline]

Definition at line 264 of file blender_util.h.

Referenced by id_map< void *, Shader >::sync().


Member Data Documentation

template<typename K, typename T>
map<K, T*> id_map< K, T >::b_map [protected]
template<typename K, typename T>
set<void*> id_map< K, T >::b_recalc [protected]
template<typename K, typename T>
vector<T*>* id_map< K, T >::scene_data [protected]
template<typename K, typename T>
set<T*> id_map< K, T >::used_set [protected]

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