"Fossies" - the Fresh Open Source Software Archive

Member "ivtools-ivtools-2.0.4/src/Attribute/aliterator.h" (9 Oct 2020, 1875 Bytes) of package /linux/misc/ivtools-ivtools-2.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "aliterator.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (c) 1999 Vectaport Inc.
    3  * Copyright (c) 1990, 1991 Stanford University
    4  *
    5  * Permission to use, copy, modify, distribute, and sell this software and
    6  * its documentation for any purpose is hereby granted without fee, provided
    7  * that the above copyright notice appear in all copies and that both that
    8  * copyright notice and this permission notice appear in supporting
    9  * documentation, and that the names of the copyright holders not be used in
   10  * advertising or publicity pertaining to distribution of the software
   11  * without specific, written prior permission.  The copyright holders make
   12  * no representations about the suitability of this software for any purpose.
   13  * It is provided "as is" without express or implied warranty.
   14  *
   15  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
   16  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
   17  * IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL,
   18  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
   19  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
   20  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
   21  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
   22  */
   23 
   24 /*
   25  * ALIterator - an object that marks a position in a data structure (cloned from Iterator)
   26  */
   27 
   28 #ifndef _al_iterator_h
   29 #define _al_iterator_h
   30 
   31 #ifdef ALITERATOR
   32 #include <InterViews/enter-scope.h>
   33 
   34 #include <InterViews/_enter.h>
   35 
   36 //: copy of Iterator for using Attribute library without Unidraw.
   37 class ALIterator {
   38 public:
   39     ALIterator();
   40     ALIterator(ALIterator&);
   41     ALIterator& operator =(ALIterator&);
   42     virtual void* GetValue();
   43     virtual void SetValue(void*);
   44 protected:
   45     void* _value;
   46 };
   47 
   48 
   49 #else
   50 #define ALIterator _lib_iv(Iterator)
   51 #include <Unidraw/iterator.h>
   52 #endif
   53 
   54 #include <InterViews/_leave.h>
   55 
   56 
   57 
   58 #endif