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

只写属性 更多...

#include <Property.h>

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

Public 类型

using TBase = PropertyBase<T, WriteOnlyProperty<T>>
 
using FnSet = std::function<void(const T &)>
 

Public 成员函数

 WriteOnlyProperty (const FnSet &setter)
 构造属性
 
void SetterImpl (const T &value) const
 设置属性值
 
void ResetSetter (const FnSet &setter)
 重设Setter
 
- Public 成员函数 继承自 sw::PropertyBase< T, WriteOnlyProperty< T > >
 PropertyBase (PropertyBase &&)=delete
 
 PropertyBase (const PropertyBase &)=delete
 
PropertyBaseoperator= (PropertyBase &&)=delete
 
WriteOnlyProperty< T > & operator= (const T &value)
 设置属性值
 
const WriteOnlyProperty< T > & operator= (const T &value) const
 设置属性值
 
WriteOnlyProperty< T > & operator= (const PropertyBase &prop)
 设置属性值
 
const WriteOnlyProperty< 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
 获取字段,可由子类重写
 
Get () const
 获取属性值
 
void Set (const T &value) const
 设置属性值
 
auto operator-> () const
 取属性字段
 
 operator T () const
 获取属性值
 
std::enable_if< std::is_arithmetic< U >::value, WriteOnlyProperty< 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, WriteOnlyProperty< 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, WriteOnlyProperty< 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, WriteOnlyProperty< 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, WriteOnlyProperty< 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, WriteOnlyProperty< 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, WriteOnlyProperty< 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, WriteOnlyProperty< 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, WriteOnlyProperty< 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, WriteOnlyProperty< 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, WriteOnlyProperty< T > & >::type operator>>= (T value)
 右移赋值运算
 
std::enable_if< std::is_integral< U >::value, constTDerived & >::type operator>>= (T value) const
 右移赋值运算
 

详细描述

template<typename T>
class sw::WriteOnlyProperty< T >

只写属性


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