Urho3D::AttributeAccessorFreeImpl< T, U, Trait > Class Template Reference

Template implementation of the attribute accessor that uses free functions invoke helper class. More...

#include <Urho3D/Scene/Serializable.h>

Inheritance diagram for Urho3D::AttributeAccessorFreeImpl< T, U, Trait >:
[legend]
Collaboration diagram for Urho3D::AttributeAccessorFreeImpl< T, U, Trait >:
[legend]

Public Types

typedef Trait::ReturnType(* GetFunctionPtr )(const T *)
 
typedef void(* SetFunctionPtr )(T *, typename Trait::ParameterType)
 

Public Member Functions

 AttributeAccessorFreeImpl (GetFunctionPtr getFunction, SetFunctionPtr setFunction)
 Construct with function pointers.
 
virtual void Get (const Serializable *ptr, Variant &dest) const
 Invoke getter function.
 
virtual void Set (Serializable *ptr, const Variant &value)
 Invoke setter function.
 

Public Attributes

GetFunctionPtr getFunction_
 Class-specific pointer to getter function.
 
SetFunctionPtr setFunction_
 Class-specific pointer to setter function.
 

Detailed Description

template<typename T, typename U, typename Trait>
class Urho3D::AttributeAccessorFreeImpl< T, U, Trait >

Template implementation of the attribute accessor that uses free functions invoke helper class.


The documentation for this class was generated from the following file:
  • Source/Urho3D/Scene/Serializable.h