public

Inheritance Graph

graph BT
	PolymorphicWrapperCreator
	click PolymorphicWrapperCreator "classUtil_1_1PolymorphicWrapperCreator"

Description

Generic creator for wrapper objects.

This functor takes an object of typeInternalBaseType. By using RTTI, it checks if the object is of subtypeInternalDerivedType. If this is the case, it returns a new wrapper of typeWrapperDerivedTypewith the object as constructor parameter.

Note: Only use this creator for polymorphic typesInternalBaseTypeandInternalDerivedType.

Parameters

InternalBaseType
Base type of internal objects that are given to the creator
InternalDerivedType
Concrete type of internal objects for which a wrapper shall be created
WrapperDerivedType
Concrete type of wrapper object that will be created

Author: Benjamin Eikel

Date: 2012-01-31

Public Functions

   
   
WrapperDerivedType * operator()(InternalBaseType * baseObject)

Documentation

function
Util::PolymorphicWrapperCreator::operator()

public inline
     
     
WrapperDerivedType * operator()( InternalBaseType * baseObject )

Defined in Util/Factory/WrapperFactory.h:90