KiCad PCB EDA Suite
METHOD< Owner, T, Base > Class Template Reference

#include <property.h>

Public Member Functions

 METHOD ()=delete
 

Static Public Member Functions

static GETTER_BASE< Owner, T > * Wrap (T(Base::*aFunc)())
 
static constexpr GETTER_BASE< Owner, T > * Wrap (const T(Base::*aFunc)())
 
static constexpr GETTER_BASE< Owner, T > * Wrap (const T &(Base::*aFunc)())
 
static constexpr GETTER_BASE< Owner, T > * Wrap (T(Base::*aFunc)() const)
 
static constexpr GETTER_BASE< Owner, T > * Wrap (const T(Base::*aFunc)() const)
 
static constexpr GETTER_BASE< Owner, T > * Wrap (const T &(Base::*aFunc)() const)
 
static constexpr SETTER_BASE< Owner, T > * Wrap (void(Base::*aFunc)(T))
 
static constexpr SETTER_BASE< Owner, T > * Wrap (void(Base::*aFunc)(T &))
 
static constexpr SETTER_BASE< Owner, T > * Wrap (void(Base::*aFunc)(const T &))
 

Detailed Description

template<typename Owner, typename T, typename Base = Owner>
class METHOD< Owner, T, Base >

Definition at line 125 of file property.h.

Constructor & Destructor Documentation

◆ METHOD()

template<typename Owner , typename T , typename Base = Owner>
METHOD< Owner, T, Base >::METHOD ( )
delete

Member Function Documentation

◆ Wrap() [1/9]

template<typename Owner , typename T , typename Base = Owner>
static constexpr GETTER_BASE< Owner, T > * METHOD< Owner, T, Base >::Wrap ( const T &(Base::*)() const  aFunc)
inlinestaticconstexpr

Definition at line 153 of file property.h.

154 {
156 }

◆ Wrap() [2/9]

template<typename Owner , typename T , typename Base = Owner>
static constexpr GETTER_BASE< Owner, T > * METHOD< Owner, T, Base >::Wrap ( const T &(Base::*)()  aFunc)
inlinestaticconstexpr

Definition at line 138 of file property.h.

139 {
140 return new GETTER<Owner, T, const T& (Base::*)()>( aFunc );
141 }

◆ Wrap() [3/9]

template<typename Owner , typename T , typename Base = Owner>
static constexpr GETTER_BASE< Owner, T > * METHOD< Owner, T, Base >::Wrap ( const T(Base::*)() const  aFunc)
inlinestaticconstexpr

Definition at line 148 of file property.h.

149 {
150 return new GETTER<Owner, T, T (Base::*)() const>( aFunc );
151 }

◆ Wrap() [4/9]

template<typename Owner , typename T , typename Base = Owner>
static constexpr GETTER_BASE< Owner, T > * METHOD< Owner, T, Base >::Wrap ( const T(Base::*)()  aFunc)
inlinestaticconstexpr

Definition at line 133 of file property.h.

134 {
135 return new GETTER<Owner, T, T (Base::*)()>( aFunc );
136 }

◆ Wrap() [5/9]

template<typename Owner , typename T , typename Base = Owner>
static constexpr GETTER_BASE< Owner, T > * METHOD< Owner, T, Base >::Wrap ( T(Base::*)() const  aFunc)
inlinestaticconstexpr

Definition at line 143 of file property.h.

144 {
145 return new GETTER<Owner, T, T (Base::*)() const>( aFunc );
146 }

◆ Wrap() [6/9]

template<typename Owner , typename T , typename Base = Owner>
static GETTER_BASE< Owner, T > * METHOD< Owner, T, Base >::Wrap ( T(Base::*)()  aFunc)
inlinestatic

Definition at line 128 of file property.h.

129 {
130 return new GETTER<Owner, T, T (Base::*)()>( aFunc );
131 }

◆ Wrap() [7/9]

template<typename Owner , typename T , typename Base = Owner>
static constexpr SETTER_BASE< Owner, T > * METHOD< Owner, T, Base >::Wrap ( void(Base::*)(const T &)  aFunc)
inlinestaticconstexpr

Definition at line 168 of file property.h.

169 {
170 return aFunc ? new SETTER<Owner, T, void (Base::*)( const T& )>( aFunc ) : nullptr;
171 }

◆ Wrap() [8/9]

template<typename Owner , typename T , typename Base = Owner>
static constexpr SETTER_BASE< Owner, T > * METHOD< Owner, T, Base >::Wrap ( void(Base::*)(T &)  aFunc)
inlinestaticconstexpr

Definition at line 163 of file property.h.

164 {
165 return aFunc ? new SETTER<Owner, T, void (Base::*)( T& )>( aFunc ) : nullptr;
166 }

◆ Wrap() [9/9]

template<typename Owner , typename T , typename Base = Owner>
static constexpr SETTER_BASE< Owner, T > * METHOD< Owner, T, Base >::Wrap ( void(Base::*)(T)  aFunc)
inlinestaticconstexpr

Definition at line 158 of file property.h.

159 {
160 return aFunc ? new SETTER<Owner, T, void (Base::*)( T )>( aFunc ) : nullptr;
161 }

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