cgma
PartitionCoSurf.hpp
Go to the documentation of this file.
00001 //-------------------------------------------------------------------------
00002 // Filename      : PartitionCoSurf.hpp
00003 //
00004 // Purpose       : 
00005 //
00006 // Special Notes : 
00007 //
00008 // Creator       : Jason Kraftcheck
00009 //
00010 // Creation Date : 08/09/02
00011 //-------------------------------------------------------------------------
00012 
00013 #ifndef PARTITION_CO_SURF
00014 #define PARTITION_CO_SURF
00015 
00016 #include "CubitDefines.h"
00017 
00018 class PartitionSurface;
00019 class PartitionShell;
00020 
00021 class PartitionCoSurf
00022 {
00023   
00024   friend class PartitionSurface;
00025   friend class PartitionShell;
00026   
00027   public:
00028   
00029   PartitionCoSurf( CubitSense sense = CUBIT_FORWARD );
00030   ~PartitionCoSurf();
00031   
00032   PartitionSurface* get_surface() const;
00033   PartitionShell*   get_shell()   const;
00034   
00035   CubitSense sense() const;
00036   void sense( CubitSense set );
00037   
00038   PartitionCoSurf* next_in_surface() const;
00039   PartitionCoSurf* next_in_shell() const;
00040   
00041   short mark;
00042   
00043   private:
00044   
00045   CubitSense mySense;
00046   
00047   PartitionSurface* mySurface;
00048   PartitionCoSurf* surfaceNext;
00049   
00050   PartitionShell* myShell;
00051   PartitionCoSurf* shellNext;
00052 };
00053 
00054 inline PartitionCoSurf::PartitionCoSurf( CubitSense sense )
00055   : mark(0),
00056     mySense( sense ),
00057     mySurface(0),
00058     surfaceNext(0),
00059     myShell(0),
00060     shellNext(0)
00061   {}
00062 
00063 inline PartitionSurface* PartitionCoSurf::get_surface() const
00064   { return mySurface; }
00065 
00066 inline PartitionShell* PartitionCoSurf::get_shell() const
00067   { return myShell; }
00068 
00069 inline CubitSense PartitionCoSurf::sense() const
00070   { return mySense; }
00071 
00072 inline void PartitionCoSurf::sense( CubitSense set )
00073  { mySense = set; }
00074 
00075 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines