Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

/magnus/back_end/SessionManager/include/SMVectorOfWords.h

Go to the documentation of this file.
00001 /*
00002  *   $Id: SMVectorOfWords.h,v 1.1 1996/10/11 23:38:10 paderin Exp $
00003  */
00004 
00005 // Copyright (C) 1995 The New York Group Theory Cooperative
00006 // See magnus/doc/COPYRIGHT for the full notice.
00007 
00008 // Contents: Declaration of class SMVectorOfWords
00009 //
00010 // Principal Author: Eugene Paderin
00011 //
00012 // Status: in progress
00013 //
00014 // Revision History:
00015 //
00016 
00017 #ifndef _SMVectorOfWords_H_
00018 #define _SMVectorOfWords_H_
00019 
00020 #include "AlgebraicObject.h"
00021 #include "SMFPGroup.h"
00022 #include "conversions.h"
00023 
00024 
00025 //--------------------------- SMVectorOfWords ----------------------------------//
00026 
00027 
00028 class SMVectorOfWords : public AlgebraicObject
00029 {
00030 public:
00031 
00032   /////////////////////////////////////////////////////////////////////////
00033   //                                                                     //
00034   // Constructors:                                                       //
00035   //                                                                     //
00036   /////////////////////////////////////////////////////////////////////////
00037 
00038   SMVectorOfWords(SMFPGroup& G, const VectorOf<Word>& V, const Chars heritage);
00039 
00040   SMVectorOfWords(SMFPGroup& G)
00041     : AlgebraicObject(""), theGroup(G), theWords(0)
00042   { }
00043   //@rn Bogus ctor; see `But no' comment in Menu.h
00044 
00045   /////////////////////////////////////////////////////////////////////////
00046   //                                                                     //
00047   // Accessors:                                                          //
00048   //                                                                     //
00049   /////////////////////////////////////////////////////////////////////////
00050 
00051   VectorOf<Word> getWords( ) const { return theWords; }
00052 
00053   SMFPGroup& getParent( ) const { return theGroup; }
00054 
00055   /////////////////////////////////////////////////////////////////////////
00056   //                                                                     //
00057   // Front End Interfacing:                                              //
00058   //                                                                     //
00059   /////////////////////////////////////////////////////////////////////////
00060 
00061   static const char* type( ) { return "SMVectorOfWords"; }
00062 
00063   const char* typeID( ) const { return type(); }          // overrides SMObject
00064 
00065   const IconID iconID( ) const { return IconID::VectorOfWords; }
00066   // overrides SMObject
00067 
00068   void viewStructure(ostream& ostr) const;                // overrides SMObject
00069 
00070   void printProperties(ostream& ostr) const;              // overrides SMObject
00071 
00072   void printDefinition(ostream& ostr) const;              // overrides SMObject
00073 
00074 
00075 protected:
00076 
00077   /////////////////////////////////////////////////////////////////////////
00078   //                                                                     //
00079   // Restricted Access:                                                  //
00080   //                                                                     //
00081   /////////////////////////////////////////////////////////////////////////
00082 
00083   void readMessage(istream&) { }                        // overrides SMObject
00084 
00085 
00086 private:
00087 
00088   /////////////////////////////////////////////////////////////////////////
00089   //                                                                     //
00090   // Data Members:                                                       //
00091   //                                                                     //
00092   /////////////////////////////////////////////////////////////////////////
00093 
00094   VectorOf<Word> theWords;
00095 
00096   SMFPGroup& theGroup;
00097 
00098 };
00099 
00100 #endif

Generated at Tue Jun 19 09:49:39 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001