home *** CD-ROM | disk | FTP | other *** search
/ ftptest.leeds.ac.uk / 2015.02.ftptest.leeds.ac.uk.tar / ftptest.leeds.ac.uk / bionet / CAE-GROUP / SCL-WIN3x / SCL.EXE / ATT_LIST.H < prev    next >
C/C++ Source or Header  |  1994-08-06  |  2KB  |  72 lines

  1.  
  2. #ifndef _att_List_h
  3. #define _att_List_h 1
  4.  
  5. /*
  6. * NIST STEP Core Class Library
  7. * clstepcore/STEPattributeList.h
  8. * February, 1994
  9. * K. C. Morris
  10. * David Sauder
  11.  
  12. * Development of this software was funded by the United States Government,
  13. * and is not subject to copyright.
  14. */
  15.  
  16. /* $Id: STEPattributeList.h,v 2.0.1.2 1994/04/05 16:36:17 sauderd Exp $ */
  17.  
  18.  
  19.  
  20. //#ifndef _STEPattribute_typedefs
  21. //#define _STEPattribute_typedefs 1
  22.  
  23. #include <attribute.h>
  24. #include <List.h>
  25.  
  26. //class STEPattribute;
  27. class STEPattributeList;
  28. //class AttrListNode;
  29.  
  30. class AttrListNode :  public SingleLinkNode 
  31. {
  32.   friend STEPattributeList;
  33.  
  34.   protected:
  35.     STEPattribute *attr;
  36.  
  37.   public:
  38.     AttrListNode(STEPattribute *a) { attr = a; }
  39. };
  40.  
  41. class STEPattributeList : public SingleLinkList
  42. {
  43.   public:
  44.     STEPattributeList() { }
  45.  
  46.     STEPattribute& operator [] (int n);
  47.     int list_length();
  48.     void push(STEPattribute *a);
  49.  
  50. };
  51.  
  52. /*****************************************************************
  53. **                                                              **
  54. **      This file defines the type STEPattributeList -- a list  **
  55. **      of pointers to STEPattribute objects.  The nodes on the **
  56. **      list point to STEPattributes.  
  57. **                                                              **
  58.         USED TO BE - DAS
  59. **      The file was generated by using GNU's genclass.sh       **
  60. **      script with the List prototype definitions.  The        **
  61. **      command to generate it was as follows:                  **
  62.  
  63.         genclass.sh STEPattribute ref List STEPattribute
  64.  
  65. **      The file is dependent on the file "STEPattribute.h"     **
  66. **      which contains the definition of STEPattribute.         **
  67. **                                                              **
  68. **      1/15/91  kcm                                            **
  69. *****************************************************************/
  70.  
  71. #endif
  72.