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

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

#include <Accessor.hpp>

公開メンバ関数

 ReadOnly (T *_variable)
 
 operator T () const
 
const T * operator-> () 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
 

限定公開変数類

T * variable
 

詳解

template<class T>
class Kisaragi_Lib::ReadOnly< T >

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

テンプレート引数
TSetterの型

構築子と解体子

◆ ReadOnly()

template<class T>
Kisaragi_Lib::ReadOnly< T >::ReadOnly ( T * _variable)
inline
123 {
125 }
public空間に置くことで,T*のSetterを提供します
Definition Accessor.hpp:117
T * variable
Definition Accessor.hpp:119

関数詳解

◆ operator T()

template<class T>
Kisaragi_Lib::ReadOnly< T >::operator T ( ) const
inline
130 {
131 return *variable;
132 }

◆ operator->()

template<class T>
const T * Kisaragi_Lib::ReadOnly< T >::operator-> ( ) const
inline
136 {
137 return variable;
138 }

◆ operator+()

template<class T>
template<typename U = T>
std::enable_if< std::is_arithmetic< U >::value, U >::type Kisaragi_Lib::ReadOnly< T >::operator+ ( U _plus) const
inline
150 {
151 return *variable + _plus;
152 }

◆ operator-()

template<class T>
template<typename U = T>
std::enable_if< if_subtraction< U >::value, U >::type Kisaragi_Lib::ReadOnly< T >::operator- ( U _index) const
inline
158 {
159 return *variable - _index;
160 }

◆ operator*()

template<class T>
template<typename U = T>
std::enable_if< if_multiplication< U >::value, U >::type Kisaragi_Lib::ReadOnly< T >::operator* ( U _index) const
inline
165 {
166 return *variable * _index;
167 }

◆ operator/()

template<class T>
template<typename U = T>
std::enable_if< if_division< U >::value, U >::type Kisaragi_Lib::ReadOnly< T >::operator/ ( U _index) const
inline
172 {
173 return *variable / _index;
174 }

◆ operator%()

template<class T>
template<typename U = T>
std::enable_if< if_remainder< U >::value, U >::type Kisaragi_Lib::ReadOnly< T >::operator% ( U _index) const
inline
179 {
180 return *variable % _index;
181 }

メンバ詳解

◆ variable

template<class T>
T* Kisaragi_Lib::ReadOnly< T >::variable
protected

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