NAP
Public Attributes | List of all members
ComponentInstancePtrInitProxy< TargetComponentType, SourceComponentType > Struct Template Reference

#include <componentptr.h>

Public Attributes

ComponentInstancemSourceComponentInstance
 The ComponentInstance that the ComponentInstancePtr is located in. More...
 
ComponentPtr< TargetComponentType > SourceComponentType::* mComponentMemberPointer
 Member pointer to the ComponentPtr located in the Component. More...
 

Description

template<typename TargetComponentType, typename SourceComponentType>
struct nap::ComponentInstancePtrInitProxy< TargetComponentType, SourceComponentType >

The ComponentInstancePtrInitProxy is a proxy object that is only used to pass arguments to the correct constructor of ComponentInstancePtr It's only here so that we can use initComponentInstancePtr to initialize both regular ComponentInstancePtrs, as well as vectors of ComponentInstancePtr.

Collaboration diagram for ComponentInstancePtrInitProxy< TargetComponentType, SourceComponentType >:
[legend]

Member Data Documentation

◆ mComponentMemberPointer

ComponentPtr<TargetComponentType> SourceComponentType::* mComponentMemberPointer

Member pointer to the ComponentPtr located in the Component.

◆ mSourceComponentInstance

ComponentInstance* mSourceComponentInstance

The ComponentInstance that the ComponentInstancePtr is located in.