NorMIT-nav  22.09
An IGT application
cx::ViewCache< VIEW_TYPE > Class Template Reference

#include <cxViewCache.h>

Public Member Functions

 ViewCache (RenderWindowFactoryPtr factory, QWidget *widget, QString typeText)
 
VIEW_TYPE * retrieveView ()
 
void clearUsedViews ()
 
void clearCache ()
 

Detailed Description

template<class VIEW_TYPE>
class cx::ViewCache< VIEW_TYPE >

Cache for reuse of Views. Use the retrieve*() method to get views that can be used in layouts. You will get unique views for each call. When rebuilding the gui, remove all views from their layouts, and call clearUsedViews(). The cache will assume all views now are free and ready for reuse.

Date
2010-07-29
Author
christiana

Definition at line 46 of file cxViewCache.h.

Constructor & Destructor Documentation

◆ ViewCache()

template<class VIEW_TYPE >
cx::ViewCache< VIEW_TYPE >::ViewCache ( RenderWindowFactoryPtr  factory,
QWidget *  widget,
QString  typeText 
)
inline

Definition at line 49 of file cxViewCache.h.

Member Function Documentation

◆ clearCache()

template<class VIEW_TYPE >
void cx::ViewCache< VIEW_TYPE >::clearCache ( )
inline

Clear all cached values

Definition at line 86 of file cxViewCache.h.

◆ clearUsedViews()

template<class VIEW_TYPE >
void cx::ViewCache< VIEW_TYPE >::clearUsedViews ( )
inline

Reset the cache for new use. Remove all used views from the central widget and hide them.

Definition at line 78 of file cxViewCache.h.

◆ retrieveView()

template<class VIEW_TYPE >
VIEW_TYPE* cx::ViewCache< VIEW_TYPE >::retrieveView ( )
inline

Retrieve a view that is unique since the last call to clearUsedViews()

Definition at line 58 of file cxViewCache.h.


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