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

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

#include <Accessor.hpp>

公開メンバ関数

 Accessor (T *_variable)
 
T * operator-> ()
 
 operator T () const
 
template<typename U = T>
std::enable_if< std::is_arithmetic< U >::value, U >::type operator+ (U _plus) const
 
template<typename U = T>
std::enable_if< if_subtraction< U >::value, U >::type operator- (U _index) const
 
template<typename U = T>
std::enable_if< if_multiplication< U >::value, U >::type operator* (U _index) const
 
template<typename U = T>
std::enable_if< if_division< U >::value, U >::type operator/ (U _index) const
 
template<typename U = T>
std::enable_if< if_remainder< U >::value, U >::type operator% (U _index) const
 
void operator= (T _set)
 
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)
 

限定公開変数類

ReadOnly< T > readOnly
 
WriteOnly< T > writeOnly
 

詳解

template<class T>
class Kisaragi_Lib::Accessor< T >

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

テンプレート引数
TAccessorの型

構築子と解体子

◆ Accessor()

template<class T>
Kisaragi_Lib::Accessor< T >::Accessor ( T * _variable)
inline
public空間に置くことで,T*のAccessorを提供します
Definition Accessor.hpp:267
ReadOnly< T > readOnly
Definition Accessor.hpp:269
WriteOnly< T > writeOnly
Definition Accessor.hpp:270

関数詳解

◆ operator->()

template<class T>
T * Kisaragi_Lib::Accessor< T >::operator-> ( )
inline
277 {
278 return writeOnly.operator->();
279 }

◆ operator T()

template<class T>
Kisaragi_Lib::Accessor< T >::operator T ( ) const
inline
285 {
286 //多分暗黙的に変換されるはず...
287 return readOnly.operator T();
288 }

◆ operator+()

template<class T>
template<typename U = T>
std::enable_if< std::is_arithmetic< U >::value, U >::type Kisaragi_Lib::Accessor< T >::operator+ ( U _plus) const
inline
300 {
301 return readOnly.operator+(_plus);
302 }

◆ operator-()

template<class T>
template<typename U = T>
std::enable_if< if_subtraction< U >::value, U >::type Kisaragi_Lib::Accessor< T >::operator- ( U _index) const
inline
308 {
309 return readOnly.operator- (_index);
310 }

◆ operator*()

template<class T>
template<typename U = T>
std::enable_if< if_multiplication< U >::value, U >::type Kisaragi_Lib::Accessor< T >::operator* ( U _index) const
inline
315 {
316 return readOnly.operator* (_index);
317 }

◆ operator/()

template<class T>
template<typename U = T>
std::enable_if< if_division< U >::value, U >::type Kisaragi_Lib::Accessor< T >::operator/ ( U _index) const
inline
322 {
323 return readOnly.operator/ (_index);
324 }

◆ operator%()

template<class T>
template<typename U = T>
std::enable_if< if_remainder< U >::value, U >::type Kisaragi_Lib::Accessor< T >::operator% ( U _index) const
inline
329 {
330 return readOnly.operator% (_index);
331 }

◆ operator=()

template<class T>
void Kisaragi_Lib::Accessor< T >::operator= ( T _set)
inline
338 {
339 writeOnly.operator= (_set);
340 }

◆ operator+=()

template<class T>
template<typename U = T>
std::enable_if< std::is_arithmetic< U >::value, void >::type Kisaragi_Lib::Accessor< T >::operator+= ( T _index)
inline
348 {
349 writeOnly.operator+= (_index);
350 }

◆ operator-=()

template<class T>
template<typename U = T>
std::enable_if< if_subtraction< U >::value, void >::type Kisaragi_Lib::Accessor< T >::operator-= ( U _index)
inline
355 {
356 writeOnly.operator-= (_index);
357 }

◆ operator*=()

template<class T>
template<typename U = T>
std::enable_if< if_multiplication< U >::value, void >::type Kisaragi_Lib::Accessor< T >::operator*= ( U _index)
inline
362 {
363 writeOnly.operator*= (_index);
364 }

◆ operator/=()

template<class T>
template<typename U = T>
std::enable_if< if_division< U >::value, void >::type Kisaragi_Lib::Accessor< T >::operator/= ( U _index)
inline
369 {
370 writeOnly.operator/= (_index);
371 }

◆ operator%=()

template<class T>
template<typename U = T>
std::enable_if< if_remainder< U >::value, void >::type Kisaragi_Lib::Accessor< T >::operator%= ( U _index)
inline
376 {
377 writeOnly.operator%= (_index);
378 }

メンバ詳解

◆ readOnly

template<class T>
ReadOnly<T> Kisaragi_Lib::Accessor< T >::readOnly
protected

◆ writeOnly


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