3ds Max C++ API Reference
BitArray::NumberSetProxy Class Reference

#include <bitarray.h>

+ Inheritance diagram for BitArray::NumberSetProxy:

Public Member Functions

 operator bool () const
 
bool operator! () const
 
 operator int () const
 
 operator DWORD_PTR () 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
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Member Function Documentation

◆ operator bool()

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

◆ operator!()

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

◆ operator int()

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

◆ operator DWORD_PTR()

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

◆ operator float()

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

◆ operator<()

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

◆ operator<=()

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

◆ operator>()

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

◆ operator>=()

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

◆ operator==()

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

◆ operator!=()

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

◆ operator+() [1/2]

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

◆ operator-() [1/2]

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

◆ operator*() [1/2]

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

◆ operator/()

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

◆ operator%()

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

◆ operator+() [2/2]

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

◆ operator-() [2/2]

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

◆ operator*() [2/2]

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

Friends And Related Function Documentation

◆ BitArray

friend class BitArray
friend