Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 222 for linked_list (0.26 sec)

  1. src/runtime/runtime-gdb.py

    		gdb.Function.__init__(self, "dtype")
    
    	def invoke(self, obj):
    		try:
    			return obj['data'].cast(iface_dtype(obj))
    		except gdb.error:
    			pass
    		return obj
    
    #
    #  Commands
    #
    
    def linked_list(ptr, linkfield):
    	while ptr:
    		yield ptr
    		ptr = ptr[linkfield]
    
    
    class GoroutinesCmd(gdb.Command):
    	"List all goroutines."
    
    	def __init__(self):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/SLinkedList.java

     * @author higa
     * @param <E>
     *            要素の型
     *
     */
    public class SLinkedList<E> implements Cloneable, Externalizable {
    
        static final long serialVersionUID = 1L;
    
        private transient Entry header = new Entry(null, null, null);
    
        private transient int size = 0;
    
        /**
         * {@link SLinkedList}を作成します。
         */
        public SLinkedList() {
            header.next = header;
            header.previous = header;
        }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/samples/templates/java-list-library/src/main/java/org/gradle/sample/list/LinkedList.java

    package org.gradle.sample.list;
    
    public class LinkedList {
        private Node head;
    
        public void add(String element) {
            Node newNode = new Node(element);
    
            Node it = tail(head);
            if (it == null) {
                head = newNode;
            } else {
                it.next = newNode;
            }
        }
    
        private static Node tail(Node head) {
            Node it;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/samples/templates/groovy-list-library/src/main/groovy/org/gradle/sample/list/LinkedList.groovy

    package org.gradle.sample.list
    
    class LinkedList {
        private Node head
    
        void add(String element) {
            Node newNode = new Node(element)
    
            Node it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private static Node tail(Node head) {
            Node it
    
            for (it = head; it != null && it.next != null; it = it.next) {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/multi/list/LinkedList.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class LinkedList {
        private var head: Node? = null
    
        fun add(element: String) {
            val newNode = Node(element)
    
            val it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private fun tail(head: Node?): Node? {
            var it: Node?
    
            it = head
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/multi/list/LinkedList.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    public class LinkedList {
        private Node head;
    
        public void add(String element) {
            Node newNode = new Node(element);
    
            Node it = tail(head);
            if (it == null) {
                head = newNode;
            } else {
                it.next = newNode;
            }
        }
    
        private static Node tail(Node head) {
            Node it;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovyapplication/multi/list/LinkedList.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class LinkedList {
        private Node head
    
        void add(String element) {
            Node newNode = new Node(element)
    
            Node it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private static Node tail(Node head) {
            Node it
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/multi/list/LinkedList.scala.template

    ${fileComment.multilineComment}${packageDecl.statement}
    
    class LinkedList {
        private var head: Node = _
    
        def add(element: String): Unit = {
            val newNode = new Node(element)
    
            val it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private def tail(head: Node) = {
            var it: Node = null
    
            it = head
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/samples/templates/java-junit5-test-for-list-library/src/test/java/org/gradle/sample/list/LinkedListTest.java

    import static org.junit.jupiter.api.Assertions.*;
    
    public class LinkedListTest {
        @Test public void testConstructor() {
            LinkedList list = new LinkedList();
            assertEquals(0, list.size());
        }
    
        @Test public void testAdd() {
            LinkedList list = new LinkedList();
    
            list.add("one");
            assertEquals(1, list.size());
            assertEquals("one", list.get(0));
    
            list.add("two");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/multi/utilities/SplitUtils.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    import ${basePackagePrefix.raw}list.LinkedList;
    
    class SplitUtils {
        public static LinkedList split(String source) {
            int lastFind = 0;
            int currentFind = 0;
            LinkedList result = new LinkedList();
    
            while ((currentFind = source.indexOf(" ", lastFind)) != -1) {
                String token = source.substring(lastFind);
                if (currentFind != -1) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 980 bytes
    - Viewed (0)
Back to top