-
首页
-
C4D R23.110 C++ SDK
#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
.
成员函数文档编制
◆
MAXON_INTERFACE_NONVIRTUAL_DERIVED()
◆
GetInterface()
const
MAXON_METHOD
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.
-
返回
-
A InterfaceReference for this
Class
, or nullptr if this is no virtual interface.
◆
GetNonvirtualInterface()
const
MAXON_METHOD
NonvirtualInterfaceReference* GetNonvirtualInterface
|
(
|
|
)
|
const
|
Returns a corresponding NonvirtualInterfaceReference if this
Class
is a non-virtual interface, or if this
Class
is a virtual interface with static methods. otherwise nullptr.
-
返回
-
An NonvirtualInterfaceReference for this
Class
, or nullptr if there is no corresponding non-virtual interface.
◆
GetBaseClasses()
TODO: (Ole) Not yet supported.
◆
GetStaticInterface()
Return a
Class
containing the static methods of this virtual interface, or nullptr is this
Class
isn't a virtual interface or has no static methods.
-
返回
-
The
Class
for the static methods of this virtual interface, or nullptr.
◆
Find()
static const
Class
* Find
|
(
|
const
Id
&
|
memberId
|
)
|
|
|
static
|
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.
|
-
返回
-
The class with the given
memberId
, or nullptr.
◆
FindInterface()
[1/3]
static const
Class
* FindInterface
|
(
|
|
)
|
|
|
static
|
Finds the
Class
object for a given non-virtual or virtual interface.
-
Template Parameters
-
-
返回
-
The
Class
object for the given interface, or nullptr if no reflection was registered for that interface.
◆
FindInterface()
[2/3]
static const
Class
* FindInterface
|
(
|
const NonvirtualInterfaceReference *
|
i
|
)
|
|
|
static
|
Finds the
Class
object for a given non-virtual interface reference.
-
参数
-
-
返回
-
The
Class
object for the given interface, or nullptr if no reflection was registered for that interface or #i was nullptr.
◆
FindInterface()
[3/3]
static const
Class
* FindInterface
|
(
|
const InterfaceReference *
|
i
|
)
|
|
|
static
|
Finds the
Class
object for a given virtual interface reference.
-
参数
-
-
返回
-
The
Class
object for the given interface, or nullptr if no reflection was registered for that interface or #i was nullptr.