Blender V2.61 - r43446
Public Types | Public Member Functions

MEM_CacheLimiter< T > Class Template Reference

#include <MEM_CacheLimiter.h>

Inheritance diagram for MEM_CacheLimiter< T >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::list
< MEM_CacheLimiterHandle< T >
*, MEM_Allocator
< MEM_CacheLimiterHandle< T >
* > >::iterator 
iterator
typedef intptr_t(* MEM_CacheLimiter_DataSize_Func )(void *data)

Public Member Functions

 MEM_CacheLimiter (MEM_CacheLimiter_DataSize_Func getDataSize_)
 ~MEM_CacheLimiter ()
MEM_CacheLimiterHandle< T > * insert (T *elem)
void unmanage (MEM_CacheLimiterHandle< T > *handle)
void enforce_limits ()
void touch (MEM_CacheLimiterHandle< T > *handle)

Detailed Description

template<class T>
class MEM_CacheLimiter< T >

Definition at line 124 of file MEM_CacheLimiter.h.


Member Typedef Documentation

template<class T>
typedef std::list<MEM_CacheLimiterHandle<T> *, MEM_Allocator<MEM_CacheLimiterHandle<T> *> >::iterator MEM_CacheLimiter< T >::iterator

Definition at line 127 of file MEM_CacheLimiter.h.

template<class T>
typedef intptr_t(* MEM_CacheLimiter< T >::MEM_CacheLimiter_DataSize_Func)(void *data)

Definition at line 128 of file MEM_CacheLimiter.h.


Constructor & Destructor Documentation

template<class T>
MEM_CacheLimiter< T >::MEM_CacheLimiter ( MEM_CacheLimiter_DataSize_Func  getDataSize_) [inline]

Definition at line 129 of file MEM_CacheLimiter.h.

template<class T>
MEM_CacheLimiter< T >::~MEM_CacheLimiter ( ) [inline]

Definition at line 132 of file MEM_CacheLimiter.h.


Member Function Documentation

template<class T>
void MEM_CacheLimiter< T >::enforce_limits ( ) [inline]

Definition at line 148 of file MEM_CacheLimiter.h.

Referenced by MEM_CacheLimiter_enforce_limits().

template<class T>
MEM_CacheLimiterHandle<T>* MEM_CacheLimiter< T >::insert ( T *  elem) [inline]

Definition at line 137 of file MEM_CacheLimiter.h.

Referenced by MEM_CacheLimiterCClass::insert().

template<class T>
void MEM_CacheLimiter< T >::touch ( MEM_CacheLimiterHandle< T > *  handle) [inline]

Definition at line 183 of file MEM_CacheLimiter.h.

template<class T>
void MEM_CacheLimiter< T >::unmanage ( MEM_CacheLimiterHandle< T > *  handle) [inline]

Definition at line 144 of file MEM_CacheLimiter.h.


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