In these cases, RTTI offers an alternate mechanism.
在这些情况下,RTTI提供了可选的机制。
Given this observation, we can now use RTTI to solve our problem.
有了这个观察,现在可以使用RTTI解决我们的问题。
Disabling RTTI might help produce an executable of a smaller size.
禁用rtti可能有助于产生更小的可执行文件。
Can we use RTTI to find functions/procedures by name and run them?
我们可以使用RTTI通过名字查找函数/过程和运行?
The toolchain binaries *do* support C++ exceptions and RTTI by default.
工具链二进制文件默认支持C++异常和RTTI(运行时类型识别)。
Returns a pointer to the run-time type information (RTTI) table for the object type.
返回一个指向用于说明对象类型的RTTI表的指针。
If the sources don't use dynamic_cast or the typeid operator, Run Time type Identification (RTTI) might be disabled.
如果源代码没有使用dynamic_cast或者typeid操作符,那么就可以禁用运行时类型识别(RTTI)。
As an example of when RTTI might be useful, consider a class hierarchy for which we'd like to implement the equality operator.
作为说明何时可以使用RTTI的例子,考虑一个类层次,我们希望为它实现相等操作符。
Note that disabling RTTI in a code that contains dynamic_cast or typeid might produce undesirable effects, including code crash.
请注意,在包含dynamic_cast或者typeid的代码中禁用rtti,可能会产生一些负面的影响,包括代码崩溃。
The RTTI operators execute at run time for classes with virtual functions, but are evaluated at compile time for all other types.
对于带虚函数的类,在运行时执行rtti操作符,但对于其他类型,在编译时计算rtti操作符。
This requirement on RTTI was a restricting factor in the environments with limited resources that were being targeted on the project.
如果项目中的某些目标资源是有限的,对于RTTI的需求会成为这种环境中的限制性因素。
The interaction between the explicit interface, proxy, invoker, and component configurator implementations relied heavily on C++ Run-Time Type Information (RTTI).
这个方法的重要后果是显而易见的。显式接口、代理、调用程序和组件配置器实现间的交互严重依赖于 C++实时类型信息 (Run-Time Type Information,RTTI)。
fno-rtti -qnortti Disables generation of runtime type -qrtti identification (RTTI) for exception handling and for use by typeid and dynamic_cast operators. On XL C/C++, the default is -qnortti.
fno-rtti -qnortti对于异常处理和typeid 和 dynamic_cast 操作符的使用,禁止生成运行时类型 –qrtti识别(RTTI)。
To add further tests, simply create new test methods in class method USES RTTI (RunTime Type Information) to find them and call them automatically, provided the methods meet these two conditions.
若要加入更多的测试,只需简单地在ttestcasefirst里加入新的测试方法,TTestCase . Suite类别方法会透过RTTI (RunTimeTypeInformation,执行时期型态信息)自动地寻找并且呼叫它们,这些测试方法必须符合两个条件。
Run-time Type Identification (RTTI) allows programs that use pointers or references to base classes to retrieve the actual derived types of the objects to which these pointers or references refer.
通过运行时类型识别(RTTI),程序能够使用基类的指针或引用来检索这些指针或引用所指对象的实际派生类型。
Run-time Type Identification (RTTI) allows programs that use pointers or references to base classes to retrieve the actual derived types of the objects to which these pointers or references refer.
通过运行时类型识别(RTTI),程序能够使用基类的指针或引用来检索这些指针或引用所指对象的实际派生类型。
应用推荐