MkObjectC - get information from the MkTypeS …
MkObjectC - get information from the MkTypeS …
The Introspection API is used to get information about the details of the instance and type implementation. Only the connection between type and instance is currently implemented.
Three methods are used to create an iteration over all avaialable instances of a type.
Instance
(static), Next
and Prev
Instance
(example: [static] MkBufferC* MkBufferC::Instances()
)MK_NULL
if no instance was created.Next
(example: MkBufferC* buf.Next()
)MK_NULL
if the given-instance is the last-instance.Prev
(example: MkBufferC* buf.Prev()
)MK_NULL
if the given-instance is the first-instance.Example: a simple loop over all instances of class MkBufferC (language C++
) ~~~~{.cc} for (auto buf = MkBufferC::Instances(); buf != NULL; buf = buf->Next()) { SendSTR(buf->ToString()); } ~~~~