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

#include <property.h>

Inheritance diagram for GETTER< Owner, T, FuncType >:
GETTER_BASE< Owner, T >

Public Member Functions

 GETTER (FuncType aFunc)
 
operator() (Owner *aOwner) const override
 

Private Attributes

FuncType m_func
 

Detailed Description

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

Definition at line 73 of file property.h.

Constructor & Destructor Documentation

◆ GETTER()

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

Definition at line 76 of file property.h.

77  : m_func( aFunc )
78  {
79  }
FuncType m_func
Definition: property.h:87

Member Function Documentation

◆ operator()()

template<typename Owner , typename T , typename FuncType >
T GETTER< Owner, T, FuncType >::operator() ( Owner *  aOwner) const
inlineoverridevirtual

Implements GETTER_BASE< Owner, T >.

Definition at line 81 of file property.h.

82  {
83  return ( aOwner->*m_func )();
84  }
FuncType m_func
Definition: property.h:87

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

Member Data Documentation

◆ m_func

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

Definition at line 87 of file property.h.

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


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