KiCad PCB EDA Suite
SETTER< Owner, T, FuncType > Class Template Reference

#include <property.h>

Inheritance diagram for SETTER< Owner, T, FuncType >:
SETTER_BASE< Owner, T >

Public Member Functions

 SETTER (FuncType aFunc)
 
void operator() (Owner *aOwner, T aValue) override
 

Private Attributes

FuncType m_func
 

Detailed Description

template<typename Owner, typename T, typename FuncType>
class SETTER< Owner, T, FuncType >

Definition at line 100 of file property.h.

Constructor & Destructor Documentation

◆ SETTER()

template<typename Owner , typename T , typename FuncType >
SETTER< Owner, T, FuncType >::SETTER ( FuncType  aFunc)
inline

Definition at line 103 of file property.h.

104  : m_func( aFunc )
105  {
106  }
FuncType m_func
Definition: property.h:115

Member Function Documentation

◆ operator()()

template<typename Owner , typename T , typename FuncType >
void SETTER< Owner, T, FuncType >::operator() ( Owner *  aOwner,
aValue 
)
inlineoverridevirtual

Implements SETTER_BASE< Owner, T >.

Definition at line 108 of file property.h.

109  {
110  wxCHECK( m_func, /*void*/ );
111  ( aOwner->*m_func )( aValue );
112  }
FuncType m_func
Definition: property.h:115

References SETTER< Owner, T, FuncType >::m_func.

Member Data Documentation

◆ m_func

template<typename Owner , typename T , typename FuncType >
FuncType SETTER< Owner, T, FuncType >::m_func
private

Definition at line 115 of file property.h.

Referenced by SETTER< Owner, T, FuncType >::operator()().


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