KisaragiLibrary
 
読み取り中…
検索中…
一致する文字列を見つけられません
Kisaragi_Lib::CustomWriteOnly< T > クラステンプレート

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
 

詳解

template<class T>
class Kisaragi_Lib::CustomWriteOnly< T >

public空間に置くことで,自らが定義したT*のSetterを提供します

テンプレート引数
TSetterの型

構築子と解体子

◆ CustomWriteOnly()

template<class T>
Kisaragi_Lib::CustomWriteOnly< T >::CustomWriteOnly ( T * _variable,
function< T(T)> _setFunc )
inline

コンストラクタ

引数
_variableAccessorがほしい変数
_setFuncセッタの代入の代わりに行う関数
400 {
402 }
public空間に置くことで,自らが定義したT*のSetterを提供します
Definition Accessor.hpp:389
T * variable
Definition Accessor.hpp:391
function< T(T)> SetFunc
Definition Accessor.hpp:392

関数詳解

◆ operator=()

template<class T>
void Kisaragi_Lib::CustomWriteOnly< T >::operator= ( T _set)
inline
405 {
407 }

◆ operator->()

template<class T>
T * Kisaragi_Lib::CustomWriteOnly< T >::operator-> ( )
inline
413 {
414 return variable;
415 }

◆ operator+=()

template<class T>
template<typename U = T>
std::enable_if< std::is_arithmetic< U >::value, void >::type Kisaragi_Lib::CustomWriteOnly< T >::operator+= ( T _index)
inline
422 {
423 *this = *variable + _index;
424 }

◆ operator-=()

template<class T>
template<typename U = T>
std::enable_if< if_subtraction< U >::value, void >::type Kisaragi_Lib::CustomWriteOnly< T >::operator-= ( U _index)
inline
429 {
430 *this = *variable - _index;
431 }

◆ operator*=()

template<class T>
template<typename U = T>
std::enable_if< if_multiplication< U >::value, void >::type Kisaragi_Lib::CustomWriteOnly< T >::operator*= ( U _index)
inline
436 {
437 *this = *variable * _index;
438 }

◆ operator/=()

template<class T>
template<typename U = T>
std::enable_if< if_division< U >::value, void >::type Kisaragi_Lib::CustomWriteOnly< T >::operator/= ( U _index)
inline
443 {
444 *this = *variable / _index;
445 }

◆ operator%=()

template<class T>
template<typename U = T>
std::enable_if< if_remainder< U >::value, void >::type Kisaragi_Lib::CustomWriteOnly< T >::operator%= ( U _index)
inline
450 {
451 *this = *variable % _index;
452 }

メンバ詳解

◆ variable

◆ SetFunc

template<class T>
function<T(T)> Kisaragi_Lib::CustomWriteOnly< T >::SetFunc
private

このクラス詳解は次のファイルから抽出されました: