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

public空間に置くことで,T*のGetterを提供します [詳解]

#include <Accessor.hpp>

公開メンバ関数

 WriteOnly (T *_variable)
 
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
 

詳解

template<class T>
class Kisaragi_Lib::WriteOnly< T >

public空間に置くことで,T*のGetterを提供します

テンプレート引数
TGetterの型

構築子と解体子

◆ WriteOnly()

template<class T>
Kisaragi_Lib::WriteOnly< T >::WriteOnly ( T * _variable)
inline
201 {
203 }
public空間に置くことで,T*のGetterを提供します
Definition Accessor.hpp:195
T * variable
Definition Accessor.hpp:197

関数詳解

◆ operator=()

template<class T>
void Kisaragi_Lib::WriteOnly< T >::operator= ( T _set)
inline
208 {
209 *variable = _set;
210 }

◆ operator->()

template<class T>
T * Kisaragi_Lib::WriteOnly< T >::operator-> ( )
inline
215 {
216 return variable ;
217 }

◆ operator+=()

template<class T>
template<typename U = T>
std::enable_if< std::is_arithmetic< U >::value, void >::type Kisaragi_Lib::WriteOnly< T >::operator+= ( T _index)
inline
225 {
226 *this = *variable + _index;
227 }

◆ operator-=()

template<class T>
template<typename U = T>
std::enable_if< if_subtraction< U >::value, void >::type Kisaragi_Lib::WriteOnly< T >::operator-= ( U _index)
inline
232 {
233 *this = *variable - _index;
234 }

◆ operator*=()

template<class T>
template<typename U = T>
std::enable_if< if_multiplication< U >::value, void >::type Kisaragi_Lib::WriteOnly< T >::operator*= ( U _index)
inline
239 {
240 *this = *variable * _index;
241 }

◆ operator/=()

template<class T>
template<typename U = T>
std::enable_if< if_division< U >::value, void >::type Kisaragi_Lib::WriteOnly< T >::operator/= ( U _index)
inline
246 {
247 *this = *variable / _index;
248 }

◆ operator%=()

template<class T>
template<typename U = T>
std::enable_if< if_remainder< U >::value, void >::type Kisaragi_Lib::WriteOnly< T >::operator%= ( U _index)
inline
253 {
254 *this = *variable % _index;
255 }

メンバ詳解

◆ variable


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