You.i Engine
IYIViewRecycler Class Referenceabstract

Detailed Description

An interface for managing view resource allocation. Views can be aquired using GetView() and released using RecycleView().

#include <view/YiViewRecycler.h>

Inheritance diagram for IYIViewRecycler:

Public Member Functions

virtual ~IYIViewRecycler ()
 
virtual std::unique_ptr< CYISceneViewTakeView (const std::shared_ptr< CYIAssetViewTemplate > &pTemplate, CYISceneManager *pSceneManager, const CYIRuntimeTypeInfo *pViewClass=nullptr)=0
 
virtual void RecycleView (std::unique_ptr< CYISceneView > pView)=0
 

Constructor & Destructor Documentation

◆ ~IYIViewRecycler()

virtual IYIViewRecycler::~IYIViewRecycler ( )
virtual

Member Function Documentation

◆ RecycleView()

virtual void IYIViewRecycler::RecycleView ( std::unique_ptr< CYISceneView pView)
pure virtual

Releases pView and all of it's resources back to the IYIViewRecycler.

Implemented in CYIPooledViewRecycler, and CYICreateDeleteViewRecycler.

◆ TakeView()

virtual std::unique_ptr<CYISceneView> IYIViewRecycler::TakeView ( const std::shared_ptr< CYIAssetViewTemplate > &  pTemplate,
CYISceneManager pSceneManager,
const CYIRuntimeTypeInfo pViewClass = nullptr 
)
pure virtual

By default, the class name in pTemplate is used to determine which type of view to create. pViewClass can be specified to override the view template's class name. If neither a view template class name nor a view class is provided, a CYISceneView will be returned.

See also
CYISceneView::BuildFromTemplate

Implemented in CYIPooledViewRecycler, and CYICreateDeleteViewRecycler.


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