3ds Max C++ API Reference
Loading...
Searching...
No Matches
NotifyInfo::notify_call_param_t Struct Reference

struct that has the same size as a void* and behaves like a void*. More...

#include <C:/adskgit/3dsmax/3dsmax/3dswin/src/maxsdk/include/notifyParams.h>

Public Member Functions

bool operator== (void *val) const
 operator bool () const
 operator void * ()
notify_call_param_toperator= (void *val)

Public Attributes

voidmData = nullptr

Detailed Description

struct that has the same size as a void* and behaves like a void*.

Its purpose is to improve type safety by restricting the ability to cast callParam to any arbitrary type. Define MAXSDK_DISABLE_STRICT_NOTIFY to revert back to using void* (not recommended). Use GetNotifyParam to retrieve the callParam with the appropriate type in the notification callback.

Member Function Documentation

◆ operator==()

bool operator== ( void * val) const
inline
97{ return val == mData; }
void * mData
Definition notifyParams.h:96

◆ operator bool()

operator bool ( ) const
inlineexplicit
98{ return mData != nullptr; }

◆ operator void *()

operator void * ( )
inline
99{ return mData; }

◆ operator=()

notify_call_param_t & operator= ( void * val)
inline
100{ mData = val; return *this; }

Member Data Documentation

◆ mData

void* mData = nullptr