SimpleWindow
载入中...
搜索中...
未找到
sw::PropertyBase< T, TDerived > 模板类 参考

属性基类模板 更多...

#include <Property.h>

类 sw::PropertyBase< T, TDerived > 继承关系图:
sw::PtrPropertyBase< T, TDerived >

Public 成员函数

 PropertyBase (PropertyBase &&)=delete
 
 PropertyBase (const PropertyBase &)=delete
 
PropertyBaseoperator= (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
 获取字段,可由子类重写
 
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
 右移赋值运算
 

友元

std::wostream & operator<< (std::wostream &wos, const PropertyBase &prop)
 支持Utils::BuildStr
 

详细描述

template<typename T, typename TDerived>
class sw::PropertyBase< T, TDerived >

属性基类模板

成员函数说明

◆ ListFieldsImpl()

template<typename T , typename TDerived >
template<typename U = T>
std::enable_if<!std::is_pointer< U >::value, FakePtr< T > >::type sw::PropertyBase< T, TDerived >::ListFieldsImpl ( ) const
inline

获取属性值,由子类实现

设置属性值,由子类实现

获取字段,可由子类重写

获取字段,可由子类重写


该类的文档由以下文件生成: