ManaPlus
Public Types | Public Member Functions | Friends
mse::CSize_t Class Reference

#include <mseprimitives.h>

Inheritance diagram for mse::CSize_t:
mse::TIntBase1< size_t >

Public Types

typedef size_t _Ty
 
typedef int _T_signed_primitive_integer_type
 
typedef TIntBase1< _Ty_Myt
 

Public Member Functions

 CSize_t ()
 
 CSize_t (const CSize_t &x)
 
 CSize_t (const _Myt &x)
 
CSize_toperator= (const CSize_t &x)
 
CSize_toperator= (long long x)
 
CSize_toperator= (long x)
 
CSize_toperator= (int x)
 
CSize_toperator= (short x)
 
CSize_toperator= (char x)
 
CSize_toperator= (size_t x)
 
CSize_toperator= (CInt x)
 
 CSize_t (long long x)
 
 CSize_t (long x)
 
 CSize_t (int x)
 
 CSize_t (short x)
 
 CSize_t (char x)
 
 CSize_t (size_t x)
 
 CSize_t (CInt x)
 
 operator CInt () const
 
 operator size_t () const
 
CSize_t operator~ () const
 
CSize_toperator|= (const CSize_t &x)
 
CSize_toperator&= (const CSize_t &x)
 
CSize_toperator^= (const CSize_t &x)
 
CInt operator- () const
 
CSize_toperator+= (const CSize_t &x)
 
CSize_toperator-= (const CSize_t &x)
 
CSize_toperator*= (const CSize_t &x)
 
CSize_toperator/= (const CSize_t &x)
 
CSize_toperator%= (const CSize_t &x)
 
CSize_toperator>>= (const CSize_t &x)
 
CSize_toperator<<= (const CSize_t &x)
 
CSize_t operator+ (const CSize_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
 
CSize_t operator+ (size_t x) const
 
CInt operator- (const CSize_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
 
CSize_t operator* (const CSize_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
 
CSize_t operator* (size_t x) const
 
CSize_t operator/ (const CSize_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
 
CSize_t operator/ (size_t x) const
 
bool operator< (const CSize_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 CSize_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 CSize_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 CSize_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 CSize_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 CSize_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
 
CSize_toperator++ ()
 
CSize_t operator++ (int)
 
CSize_toperator-- ()
 
CSize_t operator-- (int)
 
- Public Member Functions inherited from mse::TIntBase1< size_t >
 TIntBase1 ()
 
 TIntBase1 (const TIntBase1 &x)
 
 TIntBase1 (size_t x)
 
void assign_check_range (const _Tz &x)
 
void note_value_assignment ()
 
void assert_initialized () const
 

Friends

size_t as_a_size_t (CSize_t n)
 

Additional Inherited Members

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

Detailed Description

Definition at line 478 of file mseprimitives.h.

Member Typedef Documentation

◆ _Myt

Definition at line 482 of file mseprimitives.h.

◆ _T_signed_primitive_integer_type

Definition at line 481 of file mseprimitives.h.

◆ _Ty

typedef size_t mse::CSize_t::_Ty

Definition at line 480 of file mseprimitives.h.

Constructor & Destructor Documentation

◆ CSize_t() [1/10]

mse::CSize_t::CSize_t ( )
inline

Definition at line 485 of file mseprimitives.h.

485 : _Myt() {}
TIntBase1< _Ty > _Myt

Referenced by operator!=(), operator*(), operator+(), operator-(), operator/(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

◆ CSize_t() [2/10]

mse::CSize_t::CSize_t ( const CSize_t x)
inline

Definition at line 488 of file mseprimitives.h.

488 : _Myt(x) {};

◆ CSize_t() [3/10]

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

Definition at line 489 of file mseprimitives.h.

489 : _Myt(x) {};

◆ CSize_t() [4/10]

mse::CSize_t::CSize_t ( long long  x)
inlineexplicit

Definition at line 512 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ CSize_t() [5/10]

mse::CSize_t::CSize_t ( long  x)
inlineexplicit

Definition at line 513 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ CSize_t() [6/10]

mse::CSize_t::CSize_t ( int  x)
inlineexplicit

Definition at line 514 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ CSize_t() [7/10]

mse::CSize_t::CSize_t ( short  x)
inlineexplicit

Definition at line 515 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ CSize_t() [8/10]

mse::CSize_t::CSize_t ( char  x)
inlineexplicit

Definition at line 516 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ CSize_t() [9/10]

mse::CSize_t::CSize_t ( size_t  x)
inline

Definition at line 517 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ CSize_t() [10/10]

mse::CSize_t::CSize_t ( CInt  x)
inline

Definition at line 518 of file mseprimitives.h.

518 { assign_check_range<MSE_CINT_BASE_INTEGER_TYPE>(x); m_val = static_cast<_Ty>(x); }

References mse::TIntBase1< size_t >::m_val, and x.

Member Function Documentation

◆ operator CInt()

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

Definition at line 528 of file mseprimitives.h.

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

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

◆ operator size_t()

mse::CSize_t::operator size_t ( ) const
inlineexplicit

Definition at line 530 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val.

◆ operator!=() [1/8]

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

Definition at line 644 of file mseprimitives.h.

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

References x.

◆ operator!=() [2/8]

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

Definition at line 639 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator!=() [3/8]

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

Definition at line 638 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator!=() [4/8]

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

Definition at line 642 of file mseprimitives.h.

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

References x.

◆ operator!=() [5/8]

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

Definition at line 640 of file mseprimitives.h.

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

References x.

◆ operator!=() [6/8]

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

Definition at line 641 of file mseprimitives.h.

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

References x.

◆ operator!=() [7/8]

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

Definition at line 643 of file mseprimitives.h.

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

References x.

◆ operator!=() [8/8]

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

Definition at line 645 of file mseprimitives.h.

645 { (*this).assert_initialized(); return ((*this) != CSize_t(x)); }

References CSize_t(), and x.

◆ operator%=()

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

Definition at line 553 of file mseprimitives.h.

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

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

◆ operator&=()

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

Definition at line 536 of file mseprimitives.h.

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

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

◆ operator*() [1/8]

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

Definition at line 581 of file mseprimitives.h.

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

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

◆ operator*() [2/8]

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

Definition at line 576 of file mseprimitives.h.

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

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

◆ operator*() [3/8]

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

Definition at line 575 of file mseprimitives.h.

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

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

◆ operator*() [4/8]

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

Definition at line 579 of file mseprimitives.h.

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

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

◆ operator*() [5/8]

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

Definition at line 577 of file mseprimitives.h.

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

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

◆ operator*() [6/8]

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

Definition at line 578 of file mseprimitives.h.

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

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

◆ operator*() [7/8]

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

Definition at line 580 of file mseprimitives.h.

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

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

◆ operator*() [8/8]

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

Definition at line 582 of file mseprimitives.h.

582 { (*this).assert_initialized(); return ((*this) * CSize_t(x)); }

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

◆ operator*=()

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

Definition at line 551 of file mseprimitives.h.

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

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

◆ operator+() [1/8]

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

Definition at line 563 of file mseprimitives.h.

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

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

◆ operator+() [2/8]

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

Definition at line 558 of file mseprimitives.h.

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

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

◆ operator+() [3/8]

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

Definition at line 557 of file mseprimitives.h.

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

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

◆ operator+() [4/8]

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

Definition at line 561 of file mseprimitives.h.

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

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

◆ operator+() [5/8]

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

Definition at line 559 of file mseprimitives.h.

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

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

◆ operator+() [6/8]

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

Definition at line 560 of file mseprimitives.h.

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

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

◆ operator+() [7/8]

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

Definition at line 562 of file mseprimitives.h.

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

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

◆ operator+() [8/8]

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

Definition at line 564 of file mseprimitives.h.

564 { (*this).assert_initialized(); return ((*this) + CSize_t(x)); }

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

◆ operator++() [1/2]

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

Definition at line 648 of file mseprimitives.h.

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

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

Referenced by operator++().

◆ operator++() [2/2]

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

Definition at line 649 of file mseprimitives.h.

649  { (*this).assert_initialized();
650  CSize_t tmp(*this); // copy
651  operator++(); // pre-increment
652  return tmp; // return old value
653  }
CSize_t & operator++()

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

◆ operator+=()

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

Definition at line 542 of file mseprimitives.h.

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

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

◆ operator-() [1/9]

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

Definition at line 539 of file mseprimitives.h.

539  { (*this).assert_initialized(); /* Should unsigned types even support this opperator? */
540  return (-(CInt(m_val)));
541  }

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

◆ operator-() [2/9]

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

Definition at line 572 of file mseprimitives.h.

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

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

◆ operator-() [3/9]

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

Definition at line 567 of file mseprimitives.h.

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

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

◆ operator-() [4/9]

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

Definition at line 566 of file mseprimitives.h.

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

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

◆ operator-() [5/9]

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

Definition at line 570 of file mseprimitives.h.

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

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

◆ operator-() [6/9]

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

Definition at line 568 of file mseprimitives.h.

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

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

◆ operator-() [7/9]

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

Definition at line 569 of file mseprimitives.h.

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

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

◆ operator-() [8/9]

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

Definition at line 571 of file mseprimitives.h.

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

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

◆ operator-() [9/9]

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

Definition at line 573 of file mseprimitives.h.

573 { (*this).assert_initialized(); return ((*this) - CSize_t(x)); }

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

◆ operator--() [1/2]

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

Definition at line 654 of file mseprimitives.h.

654  { (*this).assert_initialized();
655  if (0 <= std::numeric_limits<_Ty>::lowest()) { (*this).assert_initialized();
656  (*this) = (*this) - 1; return (*this);
657  }
658  else { (*this).assert_initialized();
659  m_val--; return (*this);
660  }
661  }

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

Referenced by operator--().

◆ operator--() [2/2]

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

Definition at line 662 of file mseprimitives.h.

662  { (*this).assert_initialized();
663  CSize_t tmp(*this); // copy
664  operator--(); // pre-decrement
665  return tmp; // return old value
666  }
CSize_t & operator--()

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

◆ operator-=()

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

Definition at line 543 of file mseprimitives.h.

543  {
544  (*this).assert_initialized();
545  //assert(0 <= std::numeric_limits<_Ty>::lowest());
546  if (x.m_val > m_val) {
547  MSE_THROW(primitives_range_error("range error - value to be assigned is out of range of the target (integer) type"));
548  }
549  m_val -= x.m_val; return (*this);
550  }
#define MSE_THROW(x)
Definition: mseprimitives.h:58

References mse::TIntBase1< _Ty >::assert_initialized(), mse::TIntBase1< size_t >::m_val, MSE_THROW, and x.

◆ operator/() [1/8]

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

Definition at line 590 of file mseprimitives.h.

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

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

◆ operator/() [2/8]

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

Definition at line 585 of file mseprimitives.h.

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

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

◆ operator/() [3/8]

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

Definition at line 584 of file mseprimitives.h.

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

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

◆ operator/() [4/8]

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

Definition at line 588 of file mseprimitives.h.

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

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

◆ operator/() [5/8]

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

Definition at line 586 of file mseprimitives.h.

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

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

◆ operator/() [6/8]

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

Definition at line 587 of file mseprimitives.h.

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

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

◆ operator/() [7/8]

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

Definition at line 589 of file mseprimitives.h.

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

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

◆ operator/() [8/8]

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

Definition at line 591 of file mseprimitives.h.

591 { (*this).assert_initialized(); return ((*this) / CSize_t(x)); }

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

◆ operator/=()

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

Definition at line 552 of file mseprimitives.h.

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

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

◆ operator<() [1/8]

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

Definition at line 599 of file mseprimitives.h.

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

References x.

◆ operator<() [2/8]

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

Definition at line 594 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator<() [3/8]

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

Definition at line 593 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator<() [4/8]

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

Definition at line 597 of file mseprimitives.h.

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

References x.

◆ operator<() [5/8]

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

Definition at line 595 of file mseprimitives.h.

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

References x.

◆ operator<() [6/8]

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

Definition at line 596 of file mseprimitives.h.

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

References x.

◆ operator<() [7/8]

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

Definition at line 598 of file mseprimitives.h.

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

References x.

◆ operator<() [8/8]

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

Definition at line 600 of file mseprimitives.h.

600 { (*this).assert_initialized(); return ((*this) < CSize_t(x)); }

References CSize_t(), and x.

◆ operator<<=()

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

Definition at line 555 of file mseprimitives.h.

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

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

◆ operator<=() [1/8]

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

Definition at line 617 of file mseprimitives.h.

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

References x.

◆ operator<=() [2/8]

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

Definition at line 612 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator<=() [3/8]

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

Definition at line 611 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator<=() [4/8]

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

Definition at line 615 of file mseprimitives.h.

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

References x.

◆ operator<=() [5/8]

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

Definition at line 613 of file mseprimitives.h.

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

References x.

◆ operator<=() [6/8]

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

Definition at line 614 of file mseprimitives.h.

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

References x.

◆ operator<=() [7/8]

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

Definition at line 616 of file mseprimitives.h.

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

References x.

◆ operator<=() [8/8]

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

Definition at line 618 of file mseprimitives.h.

618 { (*this).assert_initialized(); return ((*this) <= CSize_t(x)); }

References CSize_t(), and x.

◆ operator=() [1/8]

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

Definition at line 499 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator=() [2/8]

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

Definition at line 501 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator=() [3/8]

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

Definition at line 492 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator=() [4/8]

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

Definition at line 497 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator=() [5/8]

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

Definition at line 495 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator=() [6/8]

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

Definition at line 496 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator=() [7/8]

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

Definition at line 498 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator=() [8/8]

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

Definition at line 500 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator==() [1/8]

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

Definition at line 635 of file mseprimitives.h.

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

References x.

◆ operator==() [2/8]

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

Definition at line 630 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator==() [3/8]

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

Definition at line 629 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator==() [4/8]

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

Definition at line 633 of file mseprimitives.h.

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

References x.

◆ operator==() [5/8]

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

Definition at line 631 of file mseprimitives.h.

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

References x.

◆ operator==() [6/8]

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

Definition at line 632 of file mseprimitives.h.

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

References x.

◆ operator==() [7/8]

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

Definition at line 634 of file mseprimitives.h.

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

References x.

◆ operator==() [8/8]

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

Definition at line 636 of file mseprimitives.h.

636 { (*this).assert_initialized(); return ((*this) == CSize_t(x)); }

References CSize_t(), and x.

◆ operator>() [1/8]

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

Definition at line 608 of file mseprimitives.h.

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

References x.

◆ operator>() [2/8]

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

Definition at line 603 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator>() [3/8]

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

Definition at line 602 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator>() [4/8]

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

Definition at line 606 of file mseprimitives.h.

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

References x.

◆ operator>() [5/8]

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

Definition at line 604 of file mseprimitives.h.

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

References x.

◆ operator>() [6/8]

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

Definition at line 605 of file mseprimitives.h.

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

References x.

◆ operator>() [7/8]

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

Definition at line 607 of file mseprimitives.h.

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

References x.

◆ operator>() [8/8]

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

Definition at line 609 of file mseprimitives.h.

609 { (*this).assert_initialized(); return ((*this) > CSize_t(x)); }

References CSize_t(), and x.

◆ operator>=() [1/8]

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

Definition at line 626 of file mseprimitives.h.

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

References x.

◆ operator>=() [2/8]

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

Definition at line 621 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator>=() [3/8]

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

Definition at line 620 of file mseprimitives.h.

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

References mse::TIntBase1< size_t >::m_val, and x.

◆ operator>=() [4/8]

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

Definition at line 624 of file mseprimitives.h.

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

References x.

◆ operator>=() [5/8]

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

Definition at line 622 of file mseprimitives.h.

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

References x.

◆ operator>=() [6/8]

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

Definition at line 623 of file mseprimitives.h.

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

References x.

◆ operator>=() [7/8]

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

Definition at line 625 of file mseprimitives.h.

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

References x.

◆ operator>=() [8/8]

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

Definition at line 627 of file mseprimitives.h.

627 { (*this).assert_initialized(); return ((*this) >= CSize_t(x)); }

References CSize_t(), and x.

◆ operator>>=()

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

Definition at line 554 of file mseprimitives.h.

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

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

◆ operator^=()

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

Definition at line 537 of file mseprimitives.h.

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

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

◆ operator|=()

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

Definition at line 535 of file mseprimitives.h.

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

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

◆ operator~()

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

Definition at line 534 of file mseprimitives.h.

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

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

Friends And Related Function Documentation

◆ as_a_size_t

size_t as_a_size_t ( CSize_t  n)
friend

Definition at line 672 of file mseprimitives.h.

672 { n.assert_initialized(); return n.m_val; }

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