中英
iterator
/ ɪtəˈreɪtə /
/ ɪtəˈreɪtər /
  • 简明
  • n.迭代器;迭代程序
  • 网络释义
  • 专业释义
  • 英英释义
  • 1

     迭代器

    ...迭代器iterator)是连接容器和算法的纽带,为数据提供了抽象,使写算法的人不必关心各种数据结构的细节。

  • 2

     迭代器模式

    ...1.特点:将对集合的访问与遍历从集合对象中分离出来到迭代器中。 2.概念:迭代器模式(Iterator)就是分离了聚合对象的遍历行为,抽象出一个迭代器来负责这样既可以做到不暴露集合的内部结构,又可让外部代码透明的访问集合内部...

  • 3

     迭代子

    (3) 迭代子(Iterator): 迭代子是指针概念的泛型化,它指向容器中的元素,它能象指针一样增减,轮流指示容器中每个元素。

  • 4

     迭代子模式

    13)迭代子模式(Iterator):供应一种体例依次访谒一个聚合工具中的各个元素,而又不需表露该工具的内部表示。

短语
查看更多
  • 双语例句
  • 1
    Creates an iterator to loop through.
    创建了一个用于循环的迭代器。
  • 2
    Create an iterator to iterate through the collection.
    创建一个迭代器,以便通过集合进行迭代。
  • 3
    Figure 3 shows a class diagram of the iterator pattern.
    图3显示了迭代器模式的类图。
查看更多
  • 百科
  • Iterator

    In object-oriented computer programming, an iterator is an object that enables a programmer to traverse a container, particularly lists. Various types of iterators are often provided via a container's interface. Though the interface and semantics of a given iterator are fixed, iterators are often implemented in terms of the structures underlying a container implementation and are often tightly coupled to the container to enable the operational semantics of the iterator. Note that an iterator performs traversal and also gives access to data elements in a container, but does not perform iteration (i.e., not without some significant liberty taken with that concept or with trivial use of the terminology). An iterator is behaviorally similar to a database cursor. Iterators date to the CLU programming language in 1974.

查看更多