public空間に置くことで,自らが定義したT*のSetterを提供します [詳解]
#include <Accessor.hpp>
公開メンバ関数 | |
| CustomWriteOnly (T *_variable, function< T(T)> _setFunc) | |
| コンストラクタ | |
| void | operator= (T _set) |
| T * | operator-> () |
| template<typename U = T> | |
| std::enable_if< std::is_arithmetic< U >::value, void >::type | operator+= (T _index) |
| template<typename U = T> | |
| std::enable_if< if_subtraction< U >::value, void >::type | operator-= (U _index) |
| template<typename U = T> | |
| std::enable_if< if_multiplication< U >::value, void >::type | operator*= (U _index) |
| template<typename U = T> | |
| std::enable_if< if_division< U >::value, void >::type | operator/= (U _index) |
| template<typename U = T> | |
| std::enable_if< if_remainder< U >::value, void >::type | operator%= (U _index) |
非公開変数類 | |
| T * | variable |
| function< T(T)> | SetFunc |
public空間に置くことで,自らが定義したT*のSetterを提供します
| T | Setterの型 |
|
inline |
コンストラクタ
| _variable | Accessorがほしい変数 |
| _setFunc | セッタの代入の代わりに行う関数 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
参照元 CustomWriteOnly(), operator=().