#include <reflectionbase.h>
Class represents a C++ class. It may contain member functions and member classes. Also if the class is an interface (in the sense of the MAXON API), the corresponding interface information can be obtained from Class.
Static Public Member Functions | |
static const Class * | Find (const Id &memberId) |
template<typename INTERFACE > | |
static const Class * | FindInterface () |
static const Class * | FindInterface (const NonvirtualInterfaceReference *i) |
static const Class * | FindInterface (const InterfaceReference *i) |
Static Public Member Functions inherited from Container | |
static const Container * | Find (const Id &memberId) |
Static Public Member Functions inherited from Member | |
static MAXON_METHOD Result< Bool > | GetMembers (const ValueReceiver< const Member & > &members) |
static MAXON_METHOD const Member * | Find (const Id &memberId) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL_DERIVED (Class, MAXON_REFERENCE_NONE, "net.maxon.reflection.interface.class", MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel")) | |
Additional Inherited Members | |
Public Types inherited from Member | |
enum class | KIND { PACKAGE , CLASS , FUNCTION , INSTANCE_FUNCTION , CONST_INSTANCE_FUNCTION , CONTAINER_TEST , FUNCTION_TEST } |
|
private |
MAXON_METHOD const InterfaceReference* GetInterface | ( | ) | const |
Returns a corresponding InterfaceReference if this Class is virtual interface, otherwise nullptr. If the interface has static methods, also GetNonvirtualInterface() returns a valid pointer which points to the NonvirtualInterfaceReference for the static methods.
MAXON_METHOD const NonvirtualInterfaceReference* GetNonvirtualInterface | ( | ) | const |
MAXON_METHOD const DataType& GetType | ( | ) | const |
MAXON_METHOD Block<const Class* const> GetBaseClasses | ( | ) | const |
TODO: (Ole) Not yet supported.
MAXON_METHOD const Class* GetStaticInterface | ( | ) | const |
Finds the class whose id is memberId
. The id is the qualified name of the class with dot as separator, see Member::GetId(). If there is no class with the given memberId
, nullptr is returned.
[in] | memberId | A member id for a class. |
memberId
, or nullptr.
|
static |
Finds the Class object for a given non-virtual or virtual interface.
INTERFACE | The interface class (such as StringInterface). |
|
static |