SimpleWindow
|
指针属性基类模板 更多...
#include <Property.h>
Public 类型 | |
using | TBase = PropertyBase<T, TDerived> |
Public 成员函数 | |
T | ListFieldsImpl () const |
获取字段 | |
bool | IsNull () const |
属性值是否为nullptr | |
auto & | operator* () const |
解引用 | |
auto & | operator[] (int index) const |
解引用 | |
PropertyBase ()=default | |
PropertyBase (PropertyBase &&)=delete | |
PropertyBase (const PropertyBase &)=delete | |
PropertyBase & | operator= (PropertyBase &&)=delete |
TDerived & | operator= (const T &value) |
设置属性值 | |
const TDerived & | operator= (const T &value) const |
设置属性值 | |
TDerived & | operator= (const PropertyBase &prop) |
设置属性值 | |
const TDerived & | operator= (const PropertyBase &prop) const |
设置属性值 | |
Public 成员函数 继承自 sw::PropertyBase< T, TDerived > | |
PropertyBase (PropertyBase &&)=delete | |
PropertyBase (const PropertyBase &)=delete | |
PropertyBase & | operator= (PropertyBase &&)=delete |
template<typename U = T> | |
std::enable_if<!std::is_pointer< U >::value, FakePtr< T > >::type | ListFieldsImpl () const |
获取属性值,由子类实现 | |
template<typename U = T> | |
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 | |
获取属性值 | |
TDerived & | operator= (const T &value) |
设置属性值 | |
const TDerived & | operator= (const T &value) const |
设置属性值 | |
TDerived & | operator= (const PropertyBase &prop) |
设置属性值 | |
const TDerived & | operator= (const PropertyBase &prop) const |
设置属性值 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, TDerived & >::type | operator+= (T value) |
加赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator+= (T value) const |
加赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, TDerived & >::type | operator-= (T value) |
减赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator-= (T value) const |
减赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, TDerived & >::type | operator*= (T value) |
乘赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator*= (T value) const |
乘赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, TDerived & >::type | operator/= (T value) |
除赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator/= (T value) const |
除赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, TDerived & >::type | operator++ () |
前置自增运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator++ () const |
前置自增运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, TDerived & >::type | operator-- () |
前置自减运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, constTDerived & >::type | operator-- () const |
前置自减运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, T >::type | operator++ (int) const |
后置自增运算 | |
template<typename U = T> | |
std::enable_if< std::is_arithmetic< U >::value, T >::type | operator-- (int) const |
后置自减运算 | |
template<typename U = T> | |
std::enable_if< std::is_integral< U >::value, TDerived & >::type | operator&= (T value) |
按位与赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_integral< U >::value, constTDerived & >::type | operator&= (T value) const |
按位与赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_integral< U >::value, TDerived & >::type | operator|= (T value) |
按位或赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_integral< U >::value, constTDerived & >::type | operator|= (T value) const |
按位或赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_integral< U >::value, TDerived & >::type | operator^= (T value) |
按位异或赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_integral< U >::value, constTDerived & >::type | operator^= (T value) const |
按位异或赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_integral< U >::value, TDerived & >::type | operator<<= (T value) |
左移赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_integral< U >::value, constTDerived & >::type | operator<<= (T value) const |
左移赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_integral< U >::value, TDerived & >::type | operator>>= (T value) |
右移赋值运算 | |
template<typename U = T> | |
std::enable_if< std::is_integral< U >::value, constTDerived & >::type | operator>>= (T value) const |
右移赋值运算 | |
指针属性基类模板