ArcGIS Procedural Runtime  3.2.10650
List of all members | Public Member Functions
prtx::SharedPtrBuilder< C > Class Template Referenceabstract

#include <Builder.h>

Public Member Functions

virtual std::shared_ptr< C > createShared (std::wstring *warnings=0) const =0
 
virtual std::shared_ptr< C > createSharedAndReset (std::wstring *warnings=0)=0
 
SharedPtrBuilderoperator= (const SharedPtrBuilder &)=delete
 
 SharedPtrBuilder (const SharedPtrBuilder &)=delete
 

Detailed Description

template<typename C>
class prtx::SharedPtrBuilder< C >

Interface template for the Shared Pointer Builder Pattern. Builder with additional member functions to create shared pointers for objects with base type prtx::Content

Member Function Documentation

◆ createShared()

template<typename C>
virtual std::shared_ptr<C> prtx::SharedPtrBuilder< C >::createShared ( std::wstring *  warnings = 0) const
pure virtual

Creates an instance of type C based on the current builder state. Does not modify the builder state.

Parameters
[out]warningsIf warnings != 0, a builder implementation may emit warnings about the creation process.
Returns
Shared pointer to a new instance of type C.

Implemented in prtx::MaterialBuilder, prtx::MeshBuilder, prtx::ShaderBuilder, and prtx::GeometryBuilder.

◆ createSharedAndReset()

template<typename C>
virtual std::shared_ptr<C> prtx::SharedPtrBuilder< C >::createSharedAndReset ( std::wstring *  warnings = 0)
pure virtual

Creates and instance of type C based on the current builder state. Resets the builder state at the end.

Parameters
[out]warningsIf warnings != 0, a builder implementation may emit warnings about the creation process.
Returns
Shared pointer to a new instance of type C.

Implemented in prtx::MaterialBuilder, prtx::MeshBuilder, prtx::ShaderBuilder, and prtx::GeometryBuilder.


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