Fraxinus
16.5.0-fx-rc9
An IGT application
|
Rep caching and utilities. More...
#include <cxRepManager.h>
Public Member Functions | |
template<class REP > | |
boost::shared_ptr< REP > | getCachedRep (QString uid="") |
Static Public Member Functions | |
static RepManager * | getInstance () |
get the only instance of this class More... | |
static void | destroyInstance () |
destroy the only instance of this class More... | |
Protected Types | |
typedef std::multimap< QString, RepPtr > | RepMultiMap |
Protected Attributes | |
RepMultiMap | mRepCache |
Static Protected Attributes | |
static RepManager * | mTheInstance = NULL |
the only instance of this class More... | |
Rep caching and utilities.
Definition at line 72 of file cxRepManager.h.
|
protected |
Definition at line 125 of file cxRepManager.h.
|
static |
destroy the only instance of this class
Definition at line 50 of file cxRepManager.cpp.
|
inline |
Get a previously cached Rep.
Optionally, provide an uid that can be used to cache several different versions of a rep type.
Name is the name to use IF a new rep is created.
Not implemented: If a Rep of the requested type exist but is not used externally (i.e. has a refcount of 1), it will be reused. Otherwise, a new rep will be created and returned.
Definition at line 93 of file cxRepManager.h.
|
static |
get the only instance of this class
Definition at line 41 of file cxRepManager.cpp.
|
protected |
Definition at line 126 of file cxRepManager.h.
|
staticprotected |
the only instance of this class
Definition at line 123 of file cxRepManager.h.