What, if any, c++ constructs are there for listing the ancestors of a class at runtime? Basically, I have a class which stores a pointer to any object, including possibly a primitive type (somewhat
Here is some pseudo code of my setup: class IMyClass { ... }; // pure virtual class class CMyBaseClass { .... };
I have a class that I\'m testing which uses a lot of run-time type identification (reflection) to make decisions about how to behave.
I get this error when I try to compile a unit with a Enum type with 5000+ values in Delphi开发者_如何转开发 XE
TBaseClass = class public destructor Destroy; override; end; TFirstClass = class(TBaseClass) FMyProp: string;
I have a list of pointers to objects. These objects 开发者_Python百科have nothing in common (i.e. no common base class); for better understanding: It is a list of objects that lie under the mouse curs
Given a Record: MyRecord = record Company: string; Address: string; NumberOfEmplyees: integer; can you write a function call like
I have a problem with RTTI TRttiMethod.Invoke, stdcall and const parameters: obj := TClassRecordTest.Create;
Does anyone know a way to have double dispatch handled correctly in C++ without using RTTI and dynamic_cast<> and also a solution, in which the class hierarchy is extensib开发者_如何学Pythonle, tha
I am playing with Java\'s reflection API, and I\'m writing methods that inspect a given object and describes its fields, methods, and so on.