NorMIT-nav
2023.01.05-dev+develop.0da12
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 51 of file cxRepManager.h.
|
protected |
Definition at line 104 of file cxRepManager.h.
|
static |
destroy the only instance of this class
Definition at line 29 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 72 of file cxRepManager.h.
|
static |
get the only instance of this class
Definition at line 20 of file cxRepManager.cpp.
|
protected |
Definition at line 105 of file cxRepManager.h.
|
staticprotected |
the only instance of this class
Definition at line 102 of file cxRepManager.h.