Function pointers in UML

I want to describe a function that has an argument that is a function pointer in UML, and don’t know how to do it.

my function looks like:
int m_Find(int (Compare) (void data, unsigned int dataSize))

One way to represent it as I see it is:
m_Seek(Compare : void*) : INT

But if i use that way, I will lose a lot of information I want in my class diagram.

Please help!

Er !!! Daniel

You could try reverse engineering… but of course you’ll get a m_Find defination :wink:

I guess youre using C / C++,
m_Find ( (Compare) (void data, unsigned int dataSize) : int ) : int

ugly but it might work, did in Rose