¡@

Home 

c++ Programming Glossary: userdata

std::string in struct - Copy/assignment issues?

http://stackoverflow.com/questions/2009996/stdstring-in-struct-copy-assignment-issues

I have a struct containing a std string like this struct userdata int uid std string username Do I need to create a copy ctor.. or to use it inside a STL container Consider this function userdata SomeClass GetUserData unsigned int uid do error checking and.. and other stuff... m_usermap is std map unsigned int userdata return m_usermap uid When I insert userdata structs into the..

how to pass a non static-member function as a callback?

http://stackoverflow.com/questions/2097738/how-to-pass-a-non-static-member-function-as-a-callback

this question You could keep it static but use the userdata to store the this pointer in addition to whatever other userdata.. to store the this pointer in addition to whatever other userdata you want by packing them into a structure for example and then..

Sending variable pointers back and forth between C++ and Lua?

http://stackoverflow.com/questions/3481856/sending-variable-pointers-back-and-forth-between-c-and-lua

it with C . In the Lua C API a pointer is represented by userdata or light userdata which have no metatables and are not garbage.. Lua C API a pointer is represented by userdata or light userdata which have no metatables and are not garbage collected . Userdata.. a Lua table which acts like an object. To do this lua_newuserdata is used to create a pointer to the pointer to the object. I..

How to convert void (__thiscall MyClass::* )(void *) to void (__cdecl *)(void *) pointer

http://stackoverflow.com/questions/5326251/how-to-convert-void-thiscall-myclass-void-to-void-cdecl-void

extern C static void __cdecl IThreadBeginThreadHelper void userdata IThread ithread reinterpret_cast IThread userdata ithread ThreadMain.. void userdata IThread ithread reinterpret_cast IThread userdata ithread ThreadMain void IThread BeginThread m_ThreadHandle _beginthread..

Audio output with video processing with opencv

http://stackoverflow.com/questions/8187745/audio-output-with-video-processing-with-opencv

pkt.data audio_pkt_size pkt.size void audio_callback void userdata Uint8 stream int len AVCodecContext aCodecCtx AVCodecContext.. stream int len AVCodecContext aCodecCtx AVCodecContext userdata int len1 audio_size static uint8_t audio_buf AVCODEC_MAX_AUDIO_FRAME_SIZE.. wanted_spec.callback audio_callback wanted_spec.userdata aCodecCtx SDL_AudioSpec spec if SDL_OpenAudio wanted_spec spec..

Decode audio and video and process both streams — ffmpeg, sdl, opencv

http://stackoverflow.com/questions/9429342/decode-audio-and-video-and-process-both-streams-ffmpeg-sdl-opencv

pkt.data audio_pkt_size pkt.size void audio_callback void userdata Uint8 stream int len AVCodecContext aCodecCtx AVCodecContext.. stream int len AVCodecContext aCodecCtx AVCodecContext userdata int len1 audio_size static uint8_t audio_buf AVCODEC_MAX_AUDIO_FRAME_SIZE.. wanted_spec.callback audio_callback wanted_spec.userdata aCodecCtx SDL_AudioSpec spec if SDL_OpenAudio wanted_spec spec..

What are the distinctions between the various symbols (*,&, etc) combined with parameters? [duplicate]

http://stackoverflow.com/questions/9636903/what-are-the-distinctions-between-the-various-symbols-etc-combined-with-p

Alternative to c++ static virtual methods

http://stackoverflow.com/questions/2721846/alternative-to-c-static-virtual-methods

in C . Also this C SDKs function signature doesn't have a userData param. Is there any good alternative The best I can think of..

demote boost::function to a plain function pointer

http://stackoverflow.com/questions/282372/demote-boostfunction-to-a-plain-function-pointer

CallbackType cb void user_data void MyCallback int x void userData boost function void int pfn static_cast boost function void.. function void int pfn static_cast boost function void int userData pfn x boost function void int fn boost bind myFunction 5 RegisterCallback..

Will C++0x support __stdcall or extern “C” capture-nothing lambdas?

http://stackoverflow.com/questions/2935201/will-c0x-support-stdcall-or-extern-c-capture-nothing-lambdas

to Windows API functions typedef void callbackType void userData extern C void someCFunction callbackType callback int main someCFunction.. callbackType callback int main someCFunction void userData ... FCD wording at 5.1.2 6 The closure type for a lambda expression..

Is this a pointer? (And if so, how was it initialized?)

http://stackoverflow.com/questions/9815801/is-this-a-pointer-and-if-so-how-was-it-initialized

for a structure called ESContext and one of its members is userData. userData is a pointer to void. The body of a program using.. called ESContext and one of its members is userData. userData is a pointer to void. The body of a program using it is this.. UserData int DoSomething ESContext esContext UserData userData esContext userData ... int main int argc char argv ESContext..

Is this a pointer? (And if so, how was it initialized?)

http://stackoverflow.com/questions/9815801/is-this-a-pointer-and-if-so-how-was-it-initialized

#include esUtil.h typedef struct GLuint programObject UserData int DoSomething ESContext esContext UserData userData esContext.. programObject UserData int DoSomething ESContext esContext UserData userData esContext userData ... int main int argc char argv.. ... int main int argc char argv ESContext esContext UserData userData esStart esContext esContext.userData userData ... if..