Hello, fast noobi question

So I'm doing some work here and see stuff like this:

 
((oclMat*)abc)->type();


If someone could help explain what exactly does this line do it would be very helpful. I've never seen something like the arrow before and the (oclmat*) baffles me. I'm not sure but I think it means it casts abc to a oclMat type that is a pointer but I'd like to hear from someone before I assume it. I also thought only int* can be pointers because a pointer should point to a number of an memory cell.

So its a few questions, thanks in advance and thanks for your time
Last edited on
DaGoblin,
abc is being cast to oclMat pointer type here. My understanding is, you can have pointers to user-defined datatypes. oclMat is one such datatype in this example. After the casting, the code is accessing the type function using the arrow operator.

Hope this helps.
Very helpful, thank you
Topic archived. No new replies allowed.