This section tells you how to create C++ inline functions from a UML model.
本小节向您介绍如何从一个UML模型中创建 C++内联函数。
It provides the best readability with inline functions and complex structures.
且它让内联函数和混合结构具有最好的可读性。
With WPO, the compiler can inline functions from any source file in the program.
有了WPO,编译器就可以从程序中的所有源文件内联函数。
This is one of a set of inline functions designed to provide type conversions and perform validity checks with minimal impact on performance.
这个是设计的一组内联函数中的一个目的是提供类型转换和在性能上使用最小的影响执行有效性检查。
Another feature of imported inline functions is that you can initialize static local data of the imported function, unlike global imported data.
导入内联函数的另一项功能是您可以初始化导入函数的静态局部数据,这一点与全局导入数据不同。
The CLR's JIT compiler can even inline functions across assemblies, significantly reducing the overhead for the fine-grained methods that OOP programmers prefer.
CLR的JIT编译器甚至可以跨程序集内联函数,从而大大降低了调用细粒度方法(OOP程序员偏爱此类方法)的开销。
Because the function will presumably be called a lot more often, the CLR is allowed to inline functions that are up to 5 times larger than the original call site.
这是因为据推测函数通常会被多次调用,所以CLR允许内联函数可以增长至原始调用大小的5倍大。
The other possible branches in the code are either inline functions (which can, obviously, be inlined by the compiler), or are easily branch-eliminated by the compiler.
其他代码要么是内联函数(显然可以由编译器进行内联),要么是可以由编译器轻松消除分支的代码。
Another useful rule of thumb: it's typically not cost effective to inline functions with loops or switch statements (unless, in the common case, the loop or switch statement is never executed).
其他有用的经验法则:一个函数如果有判断或循环语句通常是没效率的。(除非在通常的情况下循环语句或判断语句不会执行)。
You may have noticed through the course of this article that the functions are created inline and are not named.
在阅读本文的过程中,您也许会注意到函数使用内联方式创建且都没有命名。
CREATE with errors support has been added for the views and inline SQL functions.
为视图和内联s QL函数添加了带有错误支持的CREATE。
Array initializers may also be used inline for calling functions.
数组初始值设定项也可以在调用函数中内联使用。
Inline editing: Quick editing of specific items in the backlog allows users to make fast changes without going to a separate screen to perform edit functions.
行内编辑:对backlog中指定项目进行快速编辑,这让用户可以对其做出快速的改变,而不需要转到单独的页面去执行编辑功能。
In addition to any of the preceding sets of options, when the -qipa option is in effect, if the compiler cannot vectorize, it tries to inline the MASS scalar functions before deciding to call them.
除了一系列的选项之外,当 -qipa选项处于可用状态时,如果汇编器不能进行向量化,那么它会试着在决定调用它们之前去内联MASS标量函数。
Definition: You can declare functions in a way that allows the compiler to expand them inline rather than calling them through the usual function call mechanism.
定义:一种函数调用机制,你将函数声明为内联,编译器会将整个函数体在调用处展开。
Define functions inline only when they are small, say, 10 lines or less.
只有函数非常小,10行以内才定义为内联。
Inline assembly code in functions that pass copy-constructed function parameters is not supported.
传递复制构造函数参数的函数中的内联程序集代码不受支持。
Functions that contain inline assembly code in the first statement.
函数的第一行语句包含内联程序集代码。
Imported functions can be defined as inline.
可以将导入函数定义为内联。
Describes how to make inline calls to functions and the differences in execution when the call is made inline.
介绍如何对函数进行内联调用,以及进行内联调用时在执行方面的差异。
This pragma suppresses the generation of entry code and is useful for inline assembler functions.
这个编译指令抑制入口代码的产生,有益于内嵌汇编函数。
There is no guarantee that functions will be expanded inline.
并不保证函式一定会内嵌展开。
The compiler will only inline very small functions when compiling for space.
当编译器针对空间编译时,只会内嵌非常小的函式。
The compiler will only inline very small functions when compiling for space.
当编译器针对空间编译时,只会内嵌非常小的函式。
应用推荐