home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / oct93 / graphics / graphtal.lha / Graphtal / Predecessor.C < prev    next >
C/C++ Source or Header  |  1992-11-19  |  976b  |  36 lines

  1. /*
  2.  * Predecessor.C - methods for L-System predecessors.
  3.  *
  4.  * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
  5.  *                     University of Berne, Switzerland
  6.  * All rights reserved.
  7.  *
  8.  * This software may be freely copied, modified, and redistributed
  9.  * provided that this copyright notice is preserved on all copies.
  10.  *
  11.  * You may not distribute this software, in whole or in part, as part of
  12.  * any commercial product without the express consent of the authors.
  13.  *
  14.  * There is no warranty or other guarantee of fitness of this software
  15.  * for any purpose.  It is provided solely "as is".
  16.  *
  17.  */
  18.  
  19. #include "Predecessor.h"
  20.  
  21. //___________________________________________________________ Predecessor
  22.  
  23. Predecessor::Predecessor(const Name& n, NameList* param)
  24. : name(n), formalParam(param)
  25. {}
  26.  
  27. Predecessor::~Predecessor()
  28. {
  29.   if (formalParam) {
  30.     for (long i=0; i<formalParam->count(); i++)
  31.       delete formalParam->item(i);
  32.     delete formalParam;
  33.   }
  34. }
  35.  
  36.