NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::RepManager Class Reference

Rep caching and utilities. More...

#include <cxRepManager.h>

Inheritance diagram for cx::RepManager:

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...
 

Detailed Description

Rep caching and utilities.

  • Utility functions for accessing reps,
  • cache for reusing the expensive volumetric reps.
Date
Dec 10, 2008 \author Janne Beate Bakeng, SINTEF \author Christian Askeland, SINTEF

Definition at line 51 of file cxRepManager.h.

Member Typedef Documentation

◆ RepMultiMap

typedef std::multimap<QString, RepPtr> cx::RepManager::RepMultiMap
protected

Definition at line 104 of file cxRepManager.h.

Member Function Documentation

◆ destroyInstance()

void cx::RepManager::destroyInstance ( )
static

destroy the only instance of this class

Definition at line 29 of file cxRepManager.cpp.

◆ getCachedRep()

template<class REP >
boost::shared_ptr<REP> cx::RepManager::getCachedRep ( QString  uid = "")
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.

◆ getInstance()

RepManager * cx::RepManager::getInstance ( )
static

get the only instance of this class

Definition at line 20 of file cxRepManager.cpp.

Member Data Documentation

◆ mRepCache

RepMultiMap cx::RepManager::mRepCache
protected

Definition at line 105 of file cxRepManager.h.

◆ mTheInstance

RepManager * cx::RepManager::mTheInstance = NULL
staticprotected

the only instance of this class

Definition at line 102 of file cxRepManager.h.


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