SimpleWindow
|
只读属性 更多...
#include <Property.h>
Public 类型 | |
using | TBase = PropertyBase<T, ReadOnlyProperty<T>> |
using | FnGet = std::function<T()> |
Public 成员函数 | |
ReadOnlyProperty (const FnGet &getter) | |
构造只读属性 | |
T | GetterImpl () const |
获取属性值 | |
void | ResetGetter (const FnGet &getter) |
重设Getter | |
Public 成员函数 继承自 sw::PropertyBase< T, ReadOnlyProperty< T > > | |
PropertyBase (PropertyBase &&)=delete | |
PropertyBase (const PropertyBase &)=delete | |
PropertyBase & | operator= (PropertyBase &&)=delete |
ReadOnlyProperty< T > & | operator= (const T &value) |
设置属性值 | |
const ReadOnlyProperty< T > & | operator= (const T &value) const |
设置属性值 | |
ReadOnlyProperty< T > & | operator= (const PropertyBase &prop) |
设置属性值 | |
const ReadOnlyProperty< T > & | operator= (const PropertyBase &prop) const |
设置属性值 | |
std::enable_if<!std::is_pointer< U >::value, FakePtr< T > >::type | ListFieldsImpl () const |
获取属性值,由子类实现 | |
std::enable_if< std::is_pointer< U >::value, T >::type | ListFieldsImpl () const |
获取字段,可由子类重写 | |
T | Get () const |
获取属性值 | |
void | Set (const T &value) const |
设置属性值 | |
auto | operator-> () const |
取属性字段 | |
operator T () const | |
获取属性值 | |
std::enable_if< std::is_arithmetic< U >::value, ReadOnlyProperty< T > & >::type | operator+= (T value) |
加赋值运算 | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator+= (T value) const |
加赋值运算 | |
std::enable_if< std::is_arithmetic< U >::value, ReadOnlyProperty< T > & >::type | operator-= (T value) |
减赋值运算 | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator-= (T value) const |
减赋值运算 | |
std::enable_if< std::is_arithmetic< U >::value, ReadOnlyProperty< T > & >::type | operator*= (T value) |
乘赋值运算 | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator*= (T value) const |
乘赋值运算 | |
std::enable_if< std::is_arithmetic< U >::value, ReadOnlyProperty< T > & >::type | operator/= (T value) |
除赋值运算 | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator/= (T value) const |
除赋值运算 | |
std::enable_if< std::is_arithmetic< U >::value, ReadOnlyProperty< T > & >::type | operator++ () |
前置自增运算 | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator++ () const |
前置自增运算 | |
std::enable_if< std::is_arithmetic< U >::value, T >::type | operator++ (int) const |
后置自增运算 | |
std::enable_if< std::is_arithmetic< U >::value, ReadOnlyProperty< T > & >::type | operator-- () |
前置自减运算 | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator-- () const |
前置自减运算 | |
std::enable_if< std::is_arithmetic< U >::value, T >::type | operator-- (int) const |
后置自减运算 | |
std::enable_if< std::is_integral< U >::value, ReadOnlyProperty< T > & >::type | operator&= (T value) |
按位与赋值运算 | |
std::enable_if< std::is_integral< U >::value, constTDerived & >::type | operator&= (T value) const |
按位与赋值运算 | |
std::enable_if< std::is_integral< U >::value, ReadOnlyProperty< T > & >::type | operator|= (T value) |
按位或赋值运算 | |
std::enable_if< std::is_integral< U >::value, constTDerived & >::type | operator|= (T value) const |
按位或赋值运算 | |
std::enable_if< std::is_integral< U >::value, ReadOnlyProperty< T > & >::type | operator^= (T value) |
按位异或赋值运算 | |
std::enable_if< std::is_integral< U >::value, constTDerived & >::type | operator^= (T value) const |
按位异或赋值运算 | |
std::enable_if< std::is_integral< U >::value, ReadOnlyProperty< T > & >::type | operator<<= (T value) |
左移赋值运算 | |
std::enable_if< std::is_integral< U >::value, constTDerived & >::type | operator<<= (T value) const |
左移赋值运算 | |
std::enable_if< std::is_integral< U >::value, ReadOnlyProperty< T > & >::type | operator>>= (T value) |
右移赋值运算 | |
std::enable_if< std::is_integral< U >::value, constTDerived & >::type | operator>>= (T value) const |
右移赋值运算 | |
只读属性