ManaPlus
Public Types | Public Member Functions
mse::CInt Class Reference

#include <mseprimitives.h>

Inheritance diagram for mse::CInt:
mse::TIntBase1< long int >

Public Types

typedef long int _Ty
 
typedef TIntBase1< _Ty_Myt
 

Public Member Functions

 CInt ()
 
 CInt (const CInt &x)
 
 CInt (const _Myt &x)
 
CIntoperator= (const CInt &x)
 
CIntoperator= (long long x)
 
CIntoperator= (long x)
 
CIntoperator= (int x)
 
CIntoperator= (short x)
 
CIntoperator= (char x)
 
CIntoperator= (size_t x)
 
 CInt (long long x)
 
 CInt (long x)
 
 CInt (int x)
 
 CInt (short x)
 
 CInt (char x)
 
 CInt (size_t x)
 
 operator _Ty () const
 
CInt operator~ () const
 
CIntoperator|= (const CInt &x)
 
CIntoperator&= (const CInt &x)
 
CIntoperator^= (const CInt &x)
 
CInt operator- () const
 
CIntoperator+= (const CInt &x)
 
CIntoperator-= (const CInt &x)
 
CIntoperator*= (const CInt &x)
 
CIntoperator/= (const CInt &x)
 
CIntoperator%= (const CInt &x)
 
CIntoperator>>= (const CInt &x)
 
CIntoperator<<= (const CInt &x)
 
CInt operator+ (const CInt &x) const
 
CInt operator+ (long long x) const
 
CInt operator+ (long x) const
 
CInt operator+ (int x) const
 
CInt operator+ (short x) const
 
CInt operator+ (char x) const
 
CInt operator+ (size_t x) const
 
CInt operator- (const CInt &x) const
 
CInt operator- (long long x) const
 
CInt operator- (long x) const
 
CInt operator- (int x) const
 
CInt operator- (short x) const
 
CInt operator- (char x) const
 
CInt operator- (size_t x) const
 
CInt operator* (const CInt &x) const
 
CInt operator* (long long x) const
 
CInt operator* (long x) const
 
CInt operator* (int x) const
 
CInt operator* (short x) const
 
CInt operator* (char x) const
 
CInt operator* (size_t x) const
 
CInt operator/ (const CInt &x) const
 
CInt operator/ (long long x) const
 
CInt operator/ (long x) const
 
CInt operator/ (int x) const
 
CInt operator/ (short x) const
 
CInt operator/ (char x) const
 
CInt operator/ (size_t x) const
 
bool operator< (const CInt &x) const
 
bool operator< (long long x) const
 
bool operator< (long x) const
 
bool operator< (int x) const
 
bool operator< (short x) const
 
bool operator< (char x) const
 
bool operator< (size_t x) const
 
bool operator> (const CInt &x) const
 
bool operator> (long long x) const
 
bool operator> (long x) const
 
bool operator> (int x) const
 
bool operator> (short x) const
 
bool operator> (char x) const
 
bool operator> (size_t x) const
 
bool operator<= (const CInt &x) const
 
bool operator<= (long long x) const
 
bool operator<= (long x) const
 
bool operator<= (int x) const
 
bool operator<= (short x) const
 
bool operator<= (char x) const
 
bool operator<= (size_t x) const
 
bool operator>= (const CInt &x) const
 
bool operator>= (long long x) const
 
bool operator>= (long x) const
 
bool operator>= (int x) const
 
bool operator>= (short x) const
 
bool operator>= (char x) const
 
bool operator>= (size_t x) const
 
bool operator== (const CInt &x) const
 
bool operator== (long long x) const
 
bool operator== (long x) const
 
bool operator== (int x) const
 
bool operator== (short x) const
 
bool operator== (char x) const
 
bool operator== (size_t x) const
 
bool operator!= (const CInt &x) const
 
bool operator!= (long long x) const
 
bool operator!= (long x) const
 
bool operator!= (int x) const
 
bool operator!= (short x) const
 
bool operator!= (char x) const
 
bool operator!= (size_t x) const
 
CIntoperator++ ()
 
CInt operator++ (int)
 
CIntoperator-- ()
 
CInt operator-- (int)
 
- Public Member Functions inherited from mse::TIntBase1< long int >
 TIntBase1 ()
 
 TIntBase1 (const TIntBase1 &x)
 
 TIntBase1 (long int x)
 
void assign_check_range (const _Tz &x)
 
void note_value_assignment ()
 
void assert_initialized () const
 

Additional Inherited Members

- Data Fields inherited from mse::TIntBase1< long int >
long int m_val
 
bool m_initialized
 

Detailed Description

Definition at line 213 of file mseprimitives.h.

Member Typedef Documentation

◆ _Myt

Definition at line 216 of file mseprimitives.h.

◆ _Ty

typedef long int mse::CInt::_Ty

Definition at line 215 of file mseprimitives.h.

Constructor & Destructor Documentation

◆ CInt() [1/9]

mse::CInt::CInt ( )
inline

◆ CInt() [2/9]

mse::CInt::CInt ( const CInt x)
inline

Definition at line 222 of file mseprimitives.h.

222 : _Myt(x) {};

◆ CInt() [3/9]

mse::CInt::CInt ( const _Myt x)
inline

Definition at line 223 of file mseprimitives.h.

223 : _Myt(x) {};

◆ CInt() [4/9]

mse::CInt::CInt ( long long  x)
inline

Definition at line 246 of file mseprimitives.h.

246 { assign_check_range<long long>(x); m_val = static_cast<_Ty>(x); }
long int _Ty

References mse::TIntBase1< long int >::m_val, and x.

◆ CInt() [5/9]

mse::CInt::CInt ( long  x)
inline

Definition at line 247 of file mseprimitives.h.

247 { assign_check_range< long>(x); m_val = static_cast<_Ty>(x); }

References mse::TIntBase1< long int >::m_val, and x.

◆ CInt() [6/9]

mse::CInt::CInt ( int  x)
inline

Definition at line 248 of file mseprimitives.h.

248 { assign_check_range<int>(x); m_val = static_cast<_Ty>(x); }

References mse::TIntBase1< long int >::m_val, and x.

◆ CInt() [7/9]

mse::CInt::CInt ( short  x)
inline

Definition at line 249 of file mseprimitives.h.

249 { assign_check_range<short>(x); m_val = static_cast<_Ty>(x); }

References mse::TIntBase1< long int >::m_val, and x.

◆ CInt() [8/9]

mse::CInt::CInt ( char  x)
inline

Definition at line 250 of file mseprimitives.h.

250 { assign_check_range<char>(x); m_val = static_cast<_Ty>(x); }

References mse::TIntBase1< long int >::m_val, and x.

◆ CInt() [9/9]

mse::CInt::CInt ( size_t  x)
inline

Definition at line 251 of file mseprimitives.h.

251 { assign_check_range<size_t>(x); m_val = static_cast<_Ty>(x); }

References mse::TIntBase1< long int >::m_val, and x.

Member Function Documentation

◆ operator _Ty()

mse::CInt::operator _Ty ( ) const
inline

Definition at line 262 of file mseprimitives.h.

262 { (*this).assert_initialized(); return m_val; }

References mse::TIntBase1< long int >::m_val.

◆ operator!=() [1/7]

bool mse::CInt::operator!= ( char  x) const
inline

Definition at line 364 of file mseprimitives.h.

364 { (*this).assert_initialized(); return ((*this) != CInt(x)); }

References CInt(), and x.

◆ operator!=() [2/7]

bool mse::CInt::operator!= ( const CInt x) const
inline

Definition at line 359 of file mseprimitives.h.

359 { (*this).assert_initialized(); return (m_val != x.m_val); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator!=() [3/7]

bool mse::CInt::operator!= ( int  x) const
inline

Definition at line 362 of file mseprimitives.h.

362 { (*this).assert_initialized(); return ((*this) != CInt(x)); }

References CInt(), and x.

◆ operator!=() [4/7]

bool mse::CInt::operator!= ( long long  x) const
inline

Definition at line 360 of file mseprimitives.h.

360 { (*this).assert_initialized(); return ((*this) != CInt(x)); }

References CInt(), and x.

◆ operator!=() [5/7]

bool mse::CInt::operator!= ( long  x) const
inline

Definition at line 361 of file mseprimitives.h.

361 { (*this).assert_initialized(); return ((*this) != CInt(x)); }

References CInt(), and x.

◆ operator!=() [6/7]

bool mse::CInt::operator!= ( short  x) const
inline

Definition at line 363 of file mseprimitives.h.

363 { (*this).assert_initialized(); return ((*this) != CInt(x)); }

References CInt(), and x.

◆ operator!=() [7/7]

bool mse::CInt::operator!= ( size_t  x) const
inline

Definition at line 365 of file mseprimitives.h.

365 { (*this).assert_initialized(); return ((*this) != CInt(x)); }

References CInt(), and x.

◆ operator%=()

CInt& mse::CInt::operator%= ( const CInt x)
inline

Definition at line 274 of file mseprimitives.h.

274 { (*this).assert_initialized(); m_val %= x.m_val; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< long int >::m_val, and x.

◆ operator&=()

CInt& mse::CInt::operator&= ( const CInt x)
inline

Definition at line 266 of file mseprimitives.h.

266 { (*this).assert_initialized(); m_val &= x.m_val; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< long int >::m_val, and x.

◆ operator*() [1/7]

CInt mse::CInt::operator* ( char  x) const
inline

Definition at line 301 of file mseprimitives.h.

301 { (*this).assert_initialized(); return ((*this) * CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator*() [2/7]

CInt mse::CInt::operator* ( const CInt x) const
inline

Definition at line 296 of file mseprimitives.h.

296 { (*this).assert_initialized(); return CInt(m_val * x.m_val); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), mse::TIntBase1< long int >::m_val, and x.

◆ operator*() [3/7]

CInt mse::CInt::operator* ( int  x) const
inline

Definition at line 299 of file mseprimitives.h.

299 { (*this).assert_initialized(); return ((*this) * CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator*() [4/7]

CInt mse::CInt::operator* ( long long  x) const
inline

Definition at line 297 of file mseprimitives.h.

297 { (*this).assert_initialized(); return ((*this) * CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator*() [5/7]

CInt mse::CInt::operator* ( long  x) const
inline

Definition at line 298 of file mseprimitives.h.

298 { (*this).assert_initialized(); return ((*this) * CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator*() [6/7]

CInt mse::CInt::operator* ( short  x) const
inline

Definition at line 300 of file mseprimitives.h.

300 { (*this).assert_initialized(); return ((*this) * CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator*() [7/7]

CInt mse::CInt::operator* ( size_t  x) const
inline

Definition at line 302 of file mseprimitives.h.

302 { (*this).assert_initialized(); return ((*this) * CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator*=()

CInt& mse::CInt::operator*= ( const CInt x)
inline

Definition at line 272 of file mseprimitives.h.

272 { (*this).assert_initialized(); m_val *= x.m_val; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< long int >::m_val, and x.

◆ operator+() [1/7]

CInt mse::CInt::operator+ ( char  x) const
inline

Definition at line 283 of file mseprimitives.h.

283 { (*this).assert_initialized(); return ((*this) + CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator+() [2/7]

CInt mse::CInt::operator+ ( const CInt x) const
inline

Definition at line 278 of file mseprimitives.h.

278 { (*this).assert_initialized(); return CInt(m_val + x.m_val); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), mse::TIntBase1< long int >::m_val, and x.

◆ operator+() [3/7]

CInt mse::CInt::operator+ ( int  x) const
inline

Definition at line 281 of file mseprimitives.h.

281 { (*this).assert_initialized(); return ((*this) + CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator+() [4/7]

CInt mse::CInt::operator+ ( long long  x) const
inline

Definition at line 279 of file mseprimitives.h.

279 { (*this).assert_initialized(); return ((*this) + CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator+() [5/7]

CInt mse::CInt::operator+ ( long  x) const
inline

Definition at line 280 of file mseprimitives.h.

280 { (*this).assert_initialized(); return ((*this) + CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator+() [6/7]

CInt mse::CInt::operator+ ( short  x) const
inline

Definition at line 282 of file mseprimitives.h.

282 { (*this).assert_initialized(); return ((*this) + CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator+() [7/7]

CInt mse::CInt::operator+ ( size_t  x) const
inline

Definition at line 284 of file mseprimitives.h.

284 { (*this).assert_initialized(); return ((*this) + CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator++() [1/2]

CInt& mse::CInt::operator++ ( )
inline

Definition at line 369 of file mseprimitives.h.

369 { (*this).assert_initialized(); m_val++; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), and mse::TIntBase1< long int >::m_val.

Referenced by operator++().

◆ operator++() [2/2]

CInt mse::CInt::operator++ ( int  )
inline

Definition at line 370 of file mseprimitives.h.

370  {
371  (*this).assert_initialized();
372  CInt tmp(*this); // copy
373  operator++(); // pre-increment
374  return tmp; // return old value
375  }
CInt & operator++()

References mse::TIntBase1< _Ty >::assert_initialized(), and operator++().

◆ operator+=()

CInt& mse::CInt::operator+= ( const CInt x)
inline

Definition at line 270 of file mseprimitives.h.

270 { (*this).assert_initialized(); m_val += x.m_val; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< long int >::m_val, and x.

◆ operator-() [1/8]

CInt mse::CInt::operator- ( ) const
inline

Definition at line 269 of file mseprimitives.h.

269 { (*this).assert_initialized(); return CInt(-m_val); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and mse::TIntBase1< long int >::m_val.

◆ operator-() [2/8]

CInt mse::CInt::operator- ( char  x) const
inline

Definition at line 292 of file mseprimitives.h.

292 { (*this).assert_initialized(); return ((*this) - CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator-() [3/8]

CInt mse::CInt::operator- ( const CInt x) const
inline

Definition at line 287 of file mseprimitives.h.

287 { (*this).assert_initialized(); return CInt(m_val - x.m_val); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), mse::TIntBase1< long int >::m_val, and x.

◆ operator-() [4/8]

CInt mse::CInt::operator- ( int  x) const
inline

Definition at line 290 of file mseprimitives.h.

290 { (*this).assert_initialized(); return ((*this) - CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator-() [5/8]

CInt mse::CInt::operator- ( long long  x) const
inline

Definition at line 288 of file mseprimitives.h.

288 { (*this).assert_initialized(); return ((*this) - CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator-() [6/8]

CInt mse::CInt::operator- ( long  x) const
inline

Definition at line 289 of file mseprimitives.h.

289 { (*this).assert_initialized(); return ((*this) - CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator-() [7/8]

CInt mse::CInt::operator- ( short  x) const
inline

Definition at line 291 of file mseprimitives.h.

291 { (*this).assert_initialized(); return ((*this) - CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator-() [8/8]

CInt mse::CInt::operator- ( size_t  x) const
inline

Definition at line 293 of file mseprimitives.h.

293 { (*this).assert_initialized(); return ((*this) - CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator--() [1/2]

CInt& mse::CInt::operator-- ( )
inline

Definition at line 376 of file mseprimitives.h.

376  {
377  (*this).assert_initialized();
378  if (0 <= std::numeric_limits<_Ty>::lowest()) {
379  (*this).assert_initialized();
380  (*this) = (*this) - 1; return (*this);
381  }
382  else {
383  (*this).assert_initialized();
384  m_val--; return (*this);
385  }
386  }

References mse::TIntBase1< _Ty >::assert_initialized(), and mse::TIntBase1< long int >::m_val.

Referenced by operator--().

◆ operator--() [2/2]

CInt mse::CInt::operator-- ( int  )
inline

Definition at line 387 of file mseprimitives.h.

387  {
388  (*this).assert_initialized();
389  CInt tmp(*this); // copy
390  operator--(); // pre-decrement
391  return tmp; // return old value
392  }
CInt & operator--()

References mse::TIntBase1< _Ty >::assert_initialized(), and operator--().

◆ operator-=()

CInt& mse::CInt::operator-= ( const CInt x)
inline

Definition at line 271 of file mseprimitives.h.

271 { (*this).assert_initialized(); m_val -= x.m_val; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< long int >::m_val, and x.

◆ operator/() [1/7]

CInt mse::CInt::operator/ ( char  x) const
inline

Definition at line 310 of file mseprimitives.h.

310 { (*this).assert_initialized(); return ((*this) / CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator/() [2/7]

CInt mse::CInt::operator/ ( const CInt x) const
inline

Definition at line 305 of file mseprimitives.h.

305 { (*this).assert_initialized(); return CInt(m_val / x.m_val); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), mse::TIntBase1< long int >::m_val, and x.

◆ operator/() [3/7]

CInt mse::CInt::operator/ ( int  x) const
inline

Definition at line 308 of file mseprimitives.h.

308 { (*this).assert_initialized(); return ((*this) / CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator/() [4/7]

CInt mse::CInt::operator/ ( long long  x) const
inline

Definition at line 306 of file mseprimitives.h.

306 { (*this).assert_initialized(); return ((*this) / CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator/() [5/7]

CInt mse::CInt::operator/ ( long  x) const
inline

Definition at line 307 of file mseprimitives.h.

307 { (*this).assert_initialized(); return ((*this) / CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator/() [6/7]

CInt mse::CInt::operator/ ( short  x) const
inline

Definition at line 309 of file mseprimitives.h.

309 { (*this).assert_initialized(); return ((*this) / CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator/() [7/7]

CInt mse::CInt::operator/ ( size_t  x) const
inline

Definition at line 311 of file mseprimitives.h.

311 { (*this).assert_initialized(); return ((*this) / CInt(x)); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and x.

◆ operator/=()

CInt& mse::CInt::operator/= ( const CInt x)
inline

Definition at line 273 of file mseprimitives.h.

273 { (*this).assert_initialized(); m_val /= x.m_val; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< long int >::m_val, and x.

◆ operator<() [1/7]

bool mse::CInt::operator< ( char  x) const
inline

Definition at line 319 of file mseprimitives.h.

319 { (*this).assert_initialized(); return ((*this) < CInt(x)); }

References CInt(), and x.

◆ operator<() [2/7]

bool mse::CInt::operator< ( const CInt x) const
inline

Definition at line 314 of file mseprimitives.h.

314 { (*this).assert_initialized(); return (m_val < x.m_val); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator<() [3/7]

bool mse::CInt::operator< ( int  x) const
inline

Definition at line 317 of file mseprimitives.h.

317 { (*this).assert_initialized(); return ((*this) < CInt(x)); }

References CInt(), and x.

◆ operator<() [4/7]

bool mse::CInt::operator< ( long long  x) const
inline

Definition at line 315 of file mseprimitives.h.

315 { (*this).assert_initialized(); return ((*this) < CInt(x)); }

References CInt(), and x.

◆ operator<() [5/7]

bool mse::CInt::operator< ( long  x) const
inline

Definition at line 316 of file mseprimitives.h.

316 { (*this).assert_initialized(); return ((*this) < CInt(x)); }

References CInt(), and x.

◆ operator<() [6/7]

bool mse::CInt::operator< ( short  x) const
inline

Definition at line 318 of file mseprimitives.h.

318 { (*this).assert_initialized(); return ((*this) < CInt(x)); }

References CInt(), and x.

◆ operator<() [7/7]

bool mse::CInt::operator< ( size_t  x) const
inline

Definition at line 320 of file mseprimitives.h.

320 { (*this).assert_initialized(); return ((*this) < CInt(x)); }

References CInt(), and x.

◆ operator<<=()

CInt& mse::CInt::operator<<= ( const CInt x)
inline

Definition at line 276 of file mseprimitives.h.

276 { (*this).assert_initialized(); m_val <<= x.m_val; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< long int >::m_val, and x.

◆ operator<=() [1/7]

bool mse::CInt::operator<= ( char  x) const
inline

Definition at line 337 of file mseprimitives.h.

337 { (*this).assert_initialized(); return ((*this) <= CInt(x)); }

References CInt(), and x.

◆ operator<=() [2/7]

bool mse::CInt::operator<= ( const CInt x) const
inline

Definition at line 332 of file mseprimitives.h.

332 { (*this).assert_initialized(); return (m_val <= x.m_val); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator<=() [3/7]

bool mse::CInt::operator<= ( int  x) const
inline

Definition at line 335 of file mseprimitives.h.

335 { (*this).assert_initialized(); return ((*this) <= CInt(x)); }

References CInt(), and x.

◆ operator<=() [4/7]

bool mse::CInt::operator<= ( long long  x) const
inline

Definition at line 333 of file mseprimitives.h.

333 { (*this).assert_initialized(); return ((*this) <= CInt(x)); }

References CInt(), and x.

◆ operator<=() [5/7]

bool mse::CInt::operator<= ( long  x) const
inline

Definition at line 334 of file mseprimitives.h.

334 { (*this).assert_initialized(); return ((*this) <= CInt(x)); }

References CInt(), and x.

◆ operator<=() [6/7]

bool mse::CInt::operator<= ( short  x) const
inline

Definition at line 336 of file mseprimitives.h.

336 { (*this).assert_initialized(); return ((*this) <= CInt(x)); }

References CInt(), and x.

◆ operator<=() [7/7]

bool mse::CInt::operator<= ( size_t  x) const
inline

Definition at line 338 of file mseprimitives.h.

338 { (*this).assert_initialized(); return ((*this) <= CInt(x)); }

References CInt(), and x.

◆ operator=() [1/7]

CInt& mse::CInt::operator= ( char  x)
inline

Definition at line 233 of file mseprimitives.h.

233 { assign_check_range<char>(x); m_val = static_cast<_Ty>(x); return (*this); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator=() [2/7]

CInt& mse::CInt::operator= ( const CInt x)
inline

Definition at line 226 of file mseprimitives.h.

226 { (*this).note_value_assignment(); m_val = x.m_val; return (*this); }

References mse::TIntBase1< long int >::m_val, mse::TIntBase1< _Ty >::note_value_assignment(), and x.

◆ operator=() [3/7]

CInt& mse::CInt::operator= ( int  x)
inline

Definition at line 231 of file mseprimitives.h.

231 { assign_check_range<int>(x); m_val = static_cast<_Ty>(x); return (*this); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator=() [4/7]

CInt& mse::CInt::operator= ( long long  x)
inline

Definition at line 229 of file mseprimitives.h.

229 { assign_check_range<long long>(x); m_val = static_cast<_Ty>(x); return (*this); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator=() [5/7]

CInt& mse::CInt::operator= ( long  x)
inline

Definition at line 230 of file mseprimitives.h.

230 { assign_check_range<long>(x); m_val = static_cast<_Ty>(x); return (*this); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator=() [6/7]

CInt& mse::CInt::operator= ( short  x)
inline

Definition at line 232 of file mseprimitives.h.

232 { assign_check_range<short>(x); m_val = static_cast<_Ty>(x); return (*this); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator=() [7/7]

CInt& mse::CInt::operator= ( size_t  x)
inline

Definition at line 234 of file mseprimitives.h.

234 { assign_check_range<size_t>(x); m_val = static_cast<_Ty>(x); return (*this); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator==() [1/7]

bool mse::CInt::operator== ( char  x) const
inline

Definition at line 355 of file mseprimitives.h.

355 { (*this).assert_initialized(); return ((*this) == CInt(x)); }

References CInt(), and x.

◆ operator==() [2/7]

bool mse::CInt::operator== ( const CInt x) const
inline

Definition at line 350 of file mseprimitives.h.

350 { (*this).assert_initialized(); return (m_val == x.m_val); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator==() [3/7]

bool mse::CInt::operator== ( int  x) const
inline

Definition at line 353 of file mseprimitives.h.

353 { (*this).assert_initialized(); return ((*this) == CInt(x)); }

References CInt(), and x.

◆ operator==() [4/7]

bool mse::CInt::operator== ( long long  x) const
inline

Definition at line 351 of file mseprimitives.h.

351 { (*this).assert_initialized(); return ((*this) == CInt(x)); }

References CInt(), and x.

◆ operator==() [5/7]

bool mse::CInt::operator== ( long  x) const
inline

Definition at line 352 of file mseprimitives.h.

352 { (*this).assert_initialized(); return ((*this) == CInt(x)); }

References CInt(), and x.

◆ operator==() [6/7]

bool mse::CInt::operator== ( short  x) const
inline

Definition at line 354 of file mseprimitives.h.

354 { (*this).assert_initialized(); return ((*this) == CInt(x)); }

References CInt(), and x.

◆ operator==() [7/7]

bool mse::CInt::operator== ( size_t  x) const
inline

Definition at line 356 of file mseprimitives.h.

356 { (*this).assert_initialized(); return ((*this) == CInt(x)); }

References CInt(), and x.

◆ operator>() [1/7]

bool mse::CInt::operator> ( char  x) const
inline

Definition at line 328 of file mseprimitives.h.

328 { (*this).assert_initialized(); return ((*this) > CInt(x)); }

References CInt(), and x.

◆ operator>() [2/7]

bool mse::CInt::operator> ( const CInt x) const
inline

Definition at line 323 of file mseprimitives.h.

323 { (*this).assert_initialized(); return (m_val > x.m_val); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator>() [3/7]

bool mse::CInt::operator> ( int  x) const
inline

Definition at line 326 of file mseprimitives.h.

326 { (*this).assert_initialized(); return ((*this) > CInt(x)); }

References CInt(), and x.

◆ operator>() [4/7]

bool mse::CInt::operator> ( long long  x) const
inline

Definition at line 324 of file mseprimitives.h.

324 { (*this).assert_initialized(); return ((*this) > CInt(x)); }

References CInt(), and x.

◆ operator>() [5/7]

bool mse::CInt::operator> ( long  x) const
inline

Definition at line 325 of file mseprimitives.h.

325 { (*this).assert_initialized(); return ((*this) > CInt(x)); }

References CInt(), and x.

◆ operator>() [6/7]

bool mse::CInt::operator> ( short  x) const
inline

Definition at line 327 of file mseprimitives.h.

327 { (*this).assert_initialized(); return ((*this) > CInt(x)); }

References CInt(), and x.

◆ operator>() [7/7]

bool mse::CInt::operator> ( size_t  x) const
inline

Definition at line 329 of file mseprimitives.h.

329 { (*this).assert_initialized(); return ((*this) > CInt(x)); }

References CInt(), and x.

◆ operator>=() [1/7]

bool mse::CInt::operator>= ( char  x) const
inline

Definition at line 346 of file mseprimitives.h.

346 { (*this).assert_initialized(); return ((*this) >= CInt(x)); }

References CInt(), and x.

◆ operator>=() [2/7]

bool mse::CInt::operator>= ( const CInt x) const
inline

Definition at line 341 of file mseprimitives.h.

341 { (*this).assert_initialized(); return (m_val >= x.m_val); }

References mse::TIntBase1< long int >::m_val, and x.

◆ operator>=() [3/7]

bool mse::CInt::operator>= ( int  x) const
inline

Definition at line 344 of file mseprimitives.h.

344 { (*this).assert_initialized(); return ((*this) >= CInt(x)); }

References CInt(), and x.

◆ operator>=() [4/7]

bool mse::CInt::operator>= ( long long  x) const
inline

Definition at line 342 of file mseprimitives.h.

342 { (*this).assert_initialized(); return ((*this) >= CInt(x)); }

References CInt(), and x.

◆ operator>=() [5/7]

bool mse::CInt::operator>= ( long  x) const
inline

Definition at line 343 of file mseprimitives.h.

343 { (*this).assert_initialized(); return ((*this) >= CInt(x)); }

References CInt(), and x.

◆ operator>=() [6/7]

bool mse::CInt::operator>= ( short  x) const
inline

Definition at line 345 of file mseprimitives.h.

345 { (*this).assert_initialized(); return ((*this) >= CInt(x)); }

References CInt(), and x.

◆ operator>=() [7/7]

bool mse::CInt::operator>= ( size_t  x) const
inline

Definition at line 347 of file mseprimitives.h.

347 { (*this).assert_initialized(); return ((*this) >= CInt(x)); }

References CInt(), and x.

◆ operator>>=()

CInt& mse::CInt::operator>>= ( const CInt x)
inline

Definition at line 275 of file mseprimitives.h.

275 { (*this).assert_initialized(); m_val >>= x.m_val; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< long int >::m_val, and x.

◆ operator^=()

CInt& mse::CInt::operator^= ( const CInt x)
inline

Definition at line 267 of file mseprimitives.h.

267 { (*this).assert_initialized(); m_val ^= x.m_val; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< long int >::m_val, and x.

◆ operator|=()

CInt& mse::CInt::operator|= ( const CInt x)
inline

Definition at line 265 of file mseprimitives.h.

265 { (*this).assert_initialized(); m_val |= x.m_val; return (*this); }

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< long int >::m_val, and x.

◆ operator~()

CInt mse::CInt::operator~ ( ) const
inline

Definition at line 264 of file mseprimitives.h.

264 { (*this).assert_initialized(); return CInt(~m_val); }

References mse::TIntBase1< _Ty >::assert_initialized(), CInt(), and mse::TIntBase1< long int >::m_val.


The documentation for this class was generated from the following file: