Changes in libcfa/src/bits/collection.hfa [ab1b971:481cf3a]
- File:
-
- 1 edited
-
libcfa/src/bits/collection.hfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/collection.hfa
rab1b971 r481cf3a 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2021 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // bits/collection.hfa -- PUBLIC 8 // Intrusive singly-linked list 9 // 10 // Author : Colby Alexander Parsons & Peter A. Buhr 11 // Created On : Thu Jan 21 19:46:50 2021 12 // Last Modified By : 13 // Last Modified On : 14 // Update Count : 15 // 1 #pragma once 2 #include <stdio.h> // REMOVE THIS AFTER DEBUGGING 16 3 17 #pragma once18 4 19 5 struct Colable { 20 // next node in the list6 struct Colable * next; // next node in the list 21 7 // invariant: (next != 0) <=> listed() 22 struct Colable * next;23 8 }; 24 9 #ifdef __cforall … … 68 53 Collection & ?=?( const Collection & ) = void; // no assignment 69 54 70 void ?{}( Collection & collection ) with( collection ) { 55 void ?{}( Collection & collection ) with( collection ) { 71 56 root = 0p; 72 57 } // post: empty()
Note:
See TracChangeset
for help on using the changeset viewer.