Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

gneighbor.hpp

Go to the documentation of this file.
00001 //************************************************************************************//
00002 // Module       : gneighbor.cpp
00003 // Date         : 7/10/03 (DLR)
00004 // Copyright    : 2003-2006 Copyright University Corporation for Atmospheric
00005 //                Research
00006 // Description  : Encapsulates the access methods and data associated with
00007 //                defining a GASpAR element neighbor
00008 // Derived From : none.
00009 // Modifications:
00010 //************************************************************************************//
00011 #if !defined(GNEIGHBOR_HPP)
00012 #define GNEIGHBOR_HPP
00013 
00014 #include "gtypes.h"
00015 #include <iostream.h>
00016 #include <stdlib.h>
00017 #include "vdbdata.hpp"
00018 
00019 
00020 class GNeighbor
00021 {
00022 public:
00023 
00024                            GNeighbor();
00025                           ~GNeighbor();
00026 
00027 inline   GSHORT             &proc        () { return proc_id_; }       // Get proc id
00028 inline   GKEY              &elemkey     () { return elem_key_; }      // Get element key
00029 inline   GKEY              &elemrootkey () { return elem_root_key_; } // Get element root key
00030 inline   GINT              &elemid      () { return elem_id_; }       // Get elem id
00031 inline   GINT              &compid      () { return comp_id_; }       // Get vertex/edge/face number (component) id
00032 inline   GINT              &ancillary   () { return iancillary_; }    // Get starting index 
00033 inline   void              operator=(VDBData &p)
00034   { proc_id_ = p.proc(); elem_id_ = p.hostid(); comp_id_ = p.localid();
00035     elem_key_ = p.hostkey(); elem_root_key_ = p.hostrootkey(); } 
00036 
00037          friend ostream &operator<<(ostream &str, GNeighbor &a);  // output stream operator
00038 
00039 private:
00040 
00041          // Member data:
00042          GSHORT             proc_id_;
00043          GINT              iancillary_;
00044          GINT              comp_id_;
00045          GINT              elem_id_;                                            
00046          GKEY              elem_key_;                                            
00047          GKEY              elem_root_key_;                                            
00048 
00049 };
00050 
00051 #endif

Generated on Wed Dec 21 16:00:48 2005 for Geophysics & Astrophysics Spectral Element Adaptive Refinement (GASpAR) 2D Code by  doxygen 1.4.4