BitArray::NumberSetProxy Class 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...
 

Member Function Documentation

operator bool ( ) const
inline
81  {
82  return !mArray.IsEmpty();
83  }
bool IsEmpty() const
Definition: bitarray.h:344
bool operator! ( ) const
inline
86  {
87  return mArray.IsEmpty();
88  }
bool IsEmpty() const
Definition: bitarray.h:344
operator int ( ) const
inline
91  {
92  return mArray.NumberSetImpl();
93  }
operator DWORD_PTR ( ) const
inline
96  {
97  return mArray.NumberSetImpl();
98  }
operator float ( ) const
inline
101  {
102  return (float)mArray.NumberSetImpl();
103  }
bool operator< ( int  n) const
inline
113  {
114  // if( NumberSet() < 0 ) or a negative, always returns false.
115  // if( NumberSet() < 1 ), basically mean "IsEmpty()".
116  // if( NumberSet() < n ), we use !(NumberSet() >= n)
117  return (n <= 0) ? false : ((n == 1) ? mArray.IsEmpty() : !mArray.NumberSetAtLeastImpl(n));
118  }
bool IsEmpty() const
Definition: bitarray.h:344
bool operator<= ( int  n) const
inline
121  {
122  // if( x <= n ) ==> if( !(x >= (n+1)) )
123  return !mArray.NumberSetAtLeastImpl(n+1);
124  }
bool operator> ( int  n) const
inline
127  {
128  // if( x > 0 ) ==> !IsEmpty()
129  // if( x > n ) ==> if( x >= (n+1) )
130  return n ? mArray.NumberSetAtLeastImpl(n+1) : !mArray.IsEmpty();
131  }
bool IsEmpty() const
Definition: bitarray.h:344
bool operator>= ( int  n) const
inline
134  {
135  return mArray.NumberSetAtLeastImpl(n);
136  }
bool operator== ( int  n) const
inline
139  {
140  return mArray.NumberSetEqualImpl(n);
141  }
bool operator!= ( int  n) const
inline
144  {
145  return !mArray.NumberSetEqualImpl(n);
146  }
int operator+ ( int  n) const
inline
149  {
150  return mArray.NumberSetImpl() + n;
151  }
int operator- ( int  n) const
inline
154  {
155  return mArray.NumberSetImpl() - n;
156  }
int operator* ( int  n) const
inline
159  {
160  return mArray.NumberSetImpl() * n;
161  }
int operator/ ( int  n) const
inline
164  {
165  return mArray.NumberSetImpl() / n;
166  }
int operator% ( int  n) const
inline
169  {
170  return mArray.NumberSetImpl() % n;
171  }
int operator+ ( const NumberSetProxy proxy) const
inline
174  {
175  return mArray.NumberSetImpl() + int(proxy);
176  }
MAXMEM_EXTERN_C UtilExport int(__cdecl *MAX_heapchk)(void)
int operator- ( const NumberSetProxy proxy) const
inline
179  {
180  return mArray.NumberSetImpl() - int(proxy);
181  }
MAXMEM_EXTERN_C UtilExport int(__cdecl *MAX_heapchk)(void)
int operator* ( const NumberSetProxy proxy) const
inline
184  {
185  return mArray.NumberSetImpl() * int(proxy);
186  }
MAXMEM_EXTERN_C UtilExport int(__cdecl *MAX_heapchk)(void)

Friends And Related Function Documentation

friend class BitArray
friend