Ignore:
File:
1 edited

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
    163
    17 #pragma once
    184
    195struct Colable {
    20         // next node in the list
     6        struct Colable * next;                                                                          // next node in the list
    217        // invariant: (next != 0) <=> listed()
    22         struct Colable * next;
    238};
    249#ifdef __cforall
     
    6853        Collection & ?=?( const Collection & ) = void;          // no assignment
    6954
    70         void ?{}( Collection & collection ) with( collection ) {
     55        void ?{}( Collection & collection ) with( collection ) {       
    7156                root = 0p;
    7257        } // post: empty()
Note: See TracChangeset for help on using the changeset viewer.