alternative Standard Libary  0.29.8
std::property< T, TBase > Template-Klassenreferenz

#include <property.hpp>

Öffentliche Typen

using setter_type = void(TBase::*)(const T)
 
using getter_type = T(TBase::*)()
 

Öffentliche Methoden

 property (auto_ptr< TBase > base, getter_type gtyp, setter_type styp)
 
 operator T () const
 
const auto_ptr< TBase > operator= (const T &value)
 
const TBase & operator= (const property< T, TBase > &other)
 

Ausführliche Beschreibung

template<typename T, class TBase>
class std::property< T, TBase >

Dokumentation der benutzerdefinierten Datentypen

◆ getter_type

template<typename T, class TBase>
using std::property< T, TBase >::getter_type = T (TBase::*)()

◆ setter_type

template<typename T, class TBase>
using std::property< T, TBase >::setter_type = void (TBase::*)(const T)

Beschreibung der Konstruktoren und Destruktoren

◆ property()

template<typename T, class TBase>
std::property< T, TBase >::property ( auto_ptr< TBase >  base,
getter_type  gtyp,
setter_type  styp 
)
inline
45  {
46  m_aupClass = base;
47  m_clGetter = gtyp;
48  m_cSetter = styp;
49  }

Dokumentation der Elementfunktionen

◆ operator T()

template<typename T, class TBase>
std::property< T, TBase >::operator T ( ) const
inline
50  {
51  assert(m_clGetter != 0);
52  assert(m_aupClass.get() != 0);
53  return (m_aupClass->*m_clGetter());
54  }
value_type * get() const
Definition: auto_ptr.hpp:134

◆ operator=() [1/2]

template<typename T, class TBase>
const auto_ptr<TBase> std::property< T, TBase >::operator= ( const T &  value)
inline
55  {
56  (m_aupClass->*m_cSetter(value));
57  return m_aupClass;
58  }

◆ operator=() [2/2]

template<typename T, class TBase>
const TBase& std::property< T, TBase >::operator= ( const property< T, TBase > &  other)
inline
59  {
60  m_aupClass = other.m_aupClass;
61  m_clGetter = other.m_cSetter;
62  m_cSetter = other.m_cSetter;
63  }

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: