3ds Max C++ API Reference
Loading...
Searching...
No Matches
BitArray::NumberSetProxy Class Reference

#include <bitarray.h>

Public Member Functions

 operator bool () const
 
bool operator! () const
 
 operator int () const
 
 operator unsigned long () const
 
 operator uint64_t () const
 
 operator float () const
 
bool operator< (int n) const
 
bool operator<= (int n) const
 
bool operator> (int n) const
 
bool operator>= (int n) const
 
bool operator== (int n) const
 
bool operator!= (int n) const
 
int operator+ (int n) const
 
int operator- (int n) const
 
int operator* (int n) const
 
int operator/ (int n) const
 
int operator% (int n) const
 
int operator+ (const NumberSetProxy &proxy) const
 
int operator- (const NumberSetProxy &proxy) const
 
int operator* (const NumberSetProxy &proxy) const
 

Friends

class BitArray
 

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inline
82 {
83 return !mArray.IsEmpty();
84 }
bool IsEmpty() const
Definition: bitarray.h:357

◆ operator!()

bool operator! ( ) const
inline
87 {
88 return mArray.IsEmpty();
89 }

◆ operator int()

operator int ( ) const
inline
92 {
93 return mArray.NumberSetImpl();
94 }

◆ operator unsigned long()

operator unsigned long ( ) const
inline
97 {
98 return mArray.NumberSetImpl();
99 }

◆ operator uint64_t()

operator uint64_t ( ) const
inline
102 {
103 return mArray.NumberSetImpl();
104 }

◆ operator float()

operator float ( ) const
inline
107 {
108 return (float)mArray.NumberSetImpl();
109 }

◆ operator<()

bool operator< ( int  n) const
inline
112 {
113 // if( NumberSet() < 0 ) or a negative, always returns false.
114 // if( NumberSet() < 1 ), basically mean "IsEmpty()".
115 // if( NumberSet() < n ), we use !(NumberSet() >= n)
116 return (n <= 0) ? false : ((n == 1) ? mArray.IsEmpty() : !mArray.NumberSetAtLeastImpl(n));
117 }

◆ operator<=()

bool operator<= ( int  n) const
inline
120 {
121 // if( x <= n ) ==> if( !(x >= (n+1)) )
122 return !mArray.NumberSetAtLeastImpl(n + 1);
123 }

◆ operator>()

bool operator> ( int  n) const
inline
126 {
127 // if( x > 0 ) ==> !IsEmpty()
128 // if( x > n ) ==> if( x >= (n+1) )
129 return n ? mArray.NumberSetAtLeastImpl(n + 1) : !mArray.IsEmpty();
130 }

◆ operator>=()

bool operator>= ( int  n) const
inline
133 {
134 return mArray.NumberSetAtLeastImpl(n);
135 }

◆ operator==()

bool operator== ( int  n) const
inline
138 {
139 return n?mArray.NumberSetEqualImpl(n): mArray.IsEmpty();
140 }

◆ operator!=()

bool operator!= ( int  n) const
inline
143 {
144 return n?!mArray.NumberSetEqualImpl(n):mArray.AnyBitSet();
145 }
bool AnyBitSet() const
Definition: bitarray.h:361

◆ operator+() [1/2]

int operator+ ( int  n) const
inline
148 {
149 return mArray.NumberSetImpl() + n;
150 }

◆ operator-() [1/2]

int operator- ( int  n) const
inline
153 {
154 return mArray.NumberSetImpl() - n;
155 }

◆ operator*() [1/2]

int operator* ( int  n) const
inline
158 {
159 return mArray.NumberSetImpl() * n;
160 }

◆ operator/()

int operator/ ( int  n) const
inline
163 {
164 return mArray.NumberSetImpl() / n;
165 }

◆ operator%()

int operator% ( int  n) const
inline
168 {
169 return mArray.NumberSetImpl() % n;
170 }

◆ operator+() [2/2]

int operator+ ( const NumberSetProxy proxy) const
inline
173 {
174 return mArray.NumberSetImpl() + int(proxy);
175 }
MAXMEM_EXTERN_C UtilExport int(__cdecl *MAX_heapchk)(void)

◆ operator-() [2/2]

int operator- ( const NumberSetProxy proxy) const
inline
178 {
179 return mArray.NumberSetImpl() - int(proxy);
180 }

◆ operator*() [2/2]

int operator* ( const NumberSetProxy proxy) const
inline
183 {
184 return mArray.NumberSetImpl() * int(proxy);
185 }

Friends And Related Function Documentation

◆ BitArray

friend class BitArray
friend