Go to the documentation of this file.
28 #ifndef __Lod_Strategy_Manager_H__
29 #define __Lod_Strategy_Manager_H__
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
void setDefaultStrategy(const String &name)
Set the default strategy by name.
static LodStrategyManager * getSingletonPtr(void)
Override standard Singleton retrieval.
map< String, LodStrategy * >::type StrategyMap
Map of strategies.
static LodStrategyManager & getSingleton(void)
Override standard Singleton retrieval.
MapIterator< StrategyMap > getIterator()
Get an iterator for all contained strategies.
void setDefaultStrategy(LodStrategy *strategy)
Set the default strategy.
LodStrategy * removeStrategy(const String &name)
Remove a strategy from the manager with a specified name.
Strategy for determining level of detail.
LodStrategy * mDefaultStrategy
Default strategy.
LodStrategy * getStrategy(const String &name)
Get the strategy with the specified name.
Template class for creating single-instance global classes.
void addStrategy(LodStrategy *strategy)
Add a strategy to the manager.
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
StrategyMap mStrategies
Internal map of strategies.
LodStrategy * getDefaultStrategy()
Get the current default strategy.
LodStrategyManager()
Default constructor.
~LodStrategyManager()
Destructor.
void removeAllStrategies()
Remove and delete all strategies from the manager.
Manager for LOD strategies.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.