Interface_ID Class Reference

Interface_ID Class Reference
+ Related help topics:

#include <maxtypes.h>

Class Description

See also
Class FPInterface, Function Publishing.

Description:
This class is the interface ID for the Function Publishing System of 3ds Max. This class is structurally very similar to a Class_ID, containing two randomly-chosen longwords to provide a unique global ID. The various constructors assign a value to each of these. There are also methods to assign and retrieve the individual parts and operators to check for equality or inequality.

All the methods of this class are implemented by the system.
+ Inheritance diagram for Interface_ID:

Public Member Functions

 Interface_ID ()
 
 Interface_ID (const Interface_ID &iid)
 
 Interface_ID (ulong aa, ulong bb)
 
ULONG PartA ()
 
ULONG PartB ()
 
void SetPartA (ulong aa)
 
void SetPartB (ulong bb)
 
bool operator== (const Interface_ID &iid) const
 
bool operator!= (const Interface_ID &iid) const
 
Interface_IDoperator= (const Interface_ID &iid)
 
bool operator< (const Interface_ID &rhs) const
 

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...
 

Constructor & Destructor Documentation

Interface_ID ( )
inline
Remarks
Constructor. The two parts of the ID are initialized to 0xffffffff.
209 { a = b = 0xffffffff; }
Interface_ID ( const Interface_ID iid)
inline
Remarks
Constructor. The two parts of the ID are initialized from the corresponding parts of the Interface_ID passed.
Parameters:
const Interface_ID& iid

The ID whose parts are used to initialize this ID.
215 { a = iid.a; b = iid.b; }
Interface_ID ( ulong  aa,
ulong  bb 
)
inline
Remarks
Constructor. The two parts of the ID are initialized from the from the parts passed.

Parameters:
ulong aa

Passed to initialize the first part of the ID.

ulong bb

Passed to initialize the second part of the ID.
224 { a = aa; b = bb; }

Member Function Documentation

ULONG PartA ( )
inline
Remarks
Returns the first part of the ID.
226 { return a; }
ULONG PartB ( )
inline
Remarks
Returns the second part of the ID.
228 { return b; }
void SetPartA ( ulong  aa)
inline
Remarks
Sets the first part of the ID.
Parameters:
ulong aa

Passed to set the first part.
233 { a = aa; }
void SetPartB ( ulong  bb)
inline
Remarks
Sets the second part of the ID.
Parameters:
ulong bb

Passed to set the second part.
238 { b = bb; }
bool operator== ( const Interface_ID iid) const
inline
Remarks
Equality operator. Returns nonzero if the two parts of the ID are equal to the ID passed; otherwise zero.
Parameters:
const Interface_ID& iid

The ID to check.
244 { return ((a == iid.a) && (b == iid.b)); }
bool operator!= ( const Interface_ID iid) const
inline
Remarks
Inequality operator. Returns nonzero if either of the parts of the ID are NOT equal to the ID passed; otherwise zero.
Parameters:
const Interface_ID& iid

The ID to check.
250 { return !operator==(iid); }
bool operator==(const Interface_ID &iid) const
Definition: maxtypes.h:244
Interface_ID& operator= ( const Interface_ID iid)
inline
Remarks
Assignment operator.
Parameters:
const Interface_ID& iid

The ID to assign from.
255 { a=iid.a; b = iid.b; return (*this); }
bool operator< ( const Interface_ID rhs) const
inline
258  {
259  if ( a < rhs.a || ( a == rhs.a && b < rhs.b ) )
260  return true;
261 
262  return false;
263  }