go top

generic programming

  • 泛型编程:一种计算机编程风格,其中算法是以待指定的类型编写的,当需要为特定类型提供参数时,这些类型会被实例化。

专业释义英英释义

  • 泛型程序设计 - 引用次数:14

    The character of generic programming brings a new challengc to traditional coveragc metrics in white-box test.

    泛型程序设计的特点,则给传统白盒测试中的代码覆盖度量法则带来了新的挑战。

    参考来源 - 关于泛型程序的覆盖度量方法的探讨 in C
    泛型编程 - 引用次数:7

    参考来源 - 泛型编程与设计模式 in C
    泛型设计 - 引用次数:4

    Generic Programming which had been developed by Alexands Stepanov is rogramming with concepts, and the concept is defined as a family of abstractions that are all related by a common set of requirements.

    Alexander Stepanov发展的泛型设计是用概念进行设计,概念是一组抽象的公共需求条件集合。

    参考来源 - 泛型设计的研究及其在开发Trobus中的应用
    同属程式设计

·2,447,543篇论文数据,部分数据来源于NoteExpress

Generic programming

  • abstract: In the simplest definition, generic programming is a style of computer programming in which algorithms are written in terms of to-be-specified-later types that are then instantiated when needed for specific types provided as parameters. This approach, pioneered by ML in 1973, permits writing common functions or types that differ only in the set of types on which they operate when used, thus reducing duplication.

以上来源于: WordNet

双语例句

  • But no, that's not generic programming.

    但是没有不是一般节目

    youdao

  • Nowadays, generic programming has held an important position in programming.

    现今泛型编程技术已经程序设计中占据了重要地位

    youdao

  • Classes are also the foundation for object-oriented and generic programming, which we cover in Part IV.

    也是第四部分讨论面向对象编程泛型编程的基础

    youdao

更多双语例句

百科

generic programming

类属编程(generic programming) generic是构成库的另一种方式, 这与传统的oop是不同的.这类程序库一般由类属组件和类属算法组成,组件和算法通过迭代器组装起来,组件则对迭代器提供一定的封装.这种程序库的优点在于能够提供比传统程序库更灵活的组装方式,而不损失效率. STL,boost,ACE,ATL等库都是建构在generic的概念之上.STL对迭代器进行了分类,分类是从支持的功能上的,不同的类属算法对迭代器有不同的要求.下面对迭代器的种类做一下归纳。 1. Input Iterator(输入迭代器) : 单向读取和遍历. 2. Output Iterator(输出迭代器):单向写入和遍历. 3. Forward Iterator(前向迭代器):单向,读,写,支持多路遍历 4. Bidirectional Iterator(双向迭代器): 双向,读,写,支持多路遍历 5. RandomAccessIterator(随机访问迭代器):随机访问,读,写,支持多路遍历 强化(Refinement) 五种迭代器有一种归属关系.1<-2<-3<-4<-5 list容器提供了BidirectionalIterator,因此可以用于find算法(该算法需要InputIterator) 但sort算法(需要RandomAccessIterator),因此下面的代码不能通过编译. list lst; //... code insert value in lst sort (lst.begin(), lst.end() ) ; // error!!! 我们知道deque提供了RandomAccessIterator,因此他却可以使用sort算法,而且能高效运行.

详细内容

以上来源于: 百度百科
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定