rtti
Using RTTI to determine inheritance graph in C++?
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[详细]
2023-03-26 16:34 分类:问答C++ casting a base pointer to an interface pointer
Here is some pseudo code of my setup: class IMyClass { ... }; // pure virtual class class CMyBaseClass { .... };[详细]
2023-03-25 23:07 分类:问答NSClassFromString returns a Class object which doesn't respond to isSubClassOfClass properly
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.[详细]
2023-03-20 20:00 分类:问答How to solve RTTI size issue for large Enum types in Delphi XE?
I get this error when I try to compile a unit with a Enum type with 5000+ values in Delphi开发者_如何转开发 XE[详细]
2023-03-20 19:05 分类:问答How to FREE nested (object type) field classes?
TBaseClass = class public destructor Destroy; override; end; TFirstClass = class(TBaseClass) FMyProp: string;[详细]
2023-03-17 00:46 分类:问答How to get the typeid of a void* pointer?
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[详细]
2023-03-16 23:36 分类:问答Is there a way to update a field in a record knowing the field name and value
Given a Record: MyRecord = record Company: string; Address: string; NumberOfEmplyees: integer; can you write a function call like[详细]
2023-03-15 05:21 分类:问答Bug with RTTI TRttiMethod.Invoke, stdcall and const parameters
I have a problem with RTTI TRttiMethod.Invoke, stdcall and const parameters: obj := TClassRecordTest.Create;[详细]
2023-03-14 18:55 分类:问答C++ double dispatch "extensible" without RTTI
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[详细]
2023-03-13 08:50 分类:问答Java polymorphism and downcasting
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.[详细]
2023-03-12 08:39 分类:问答