00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 2008-2010 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software: you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. 00023 00024 Class 00025 Foam::sendingReferralList 00026 00027 Description 00028 00029 SourceFiles 00030 sendingReferralListI.H 00031 sendingReferralList.C 00032 sendingReferralListIO.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef sendingReferralList_H 00037 #define sendingReferralList_H 00038 00039 #include <OpenFOAM/labelList.H> 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 /*---------------------------------------------------------------------------*\ 00047 Class sendingReferralList Declaration 00048 \*---------------------------------------------------------------------------*/ 00049 00050 class sendingReferralList 00051 : 00052 public labelList 00053 { 00054 // Private data 00055 00056 label destinationProc_; 00057 00058 00059 public: 00060 00061 // Constructors 00062 00063 //- Construct null 00064 sendingReferralList(); 00065 00066 //- Construct from components 00067 sendingReferralList 00068 ( 00069 const label destinationProc, 00070 const labelList& cellsToSend 00071 ); 00072 00073 //- Construct as copy 00074 sendingReferralList(const sendingReferralList&); 00075 00076 00077 // Destructor 00078 00079 ~sendingReferralList(); 00080 00081 00082 // Member Functions 00083 00084 // Access 00085 00086 inline label destinationProc() const; 00087 00088 00089 // Member Operators 00090 00091 void operator=(const sendingReferralList&); 00092 00093 00094 // Friend Operators 00095 00096 friend bool operator== 00097 ( 00098 const sendingReferralList& a, 00099 const sendingReferralList& b 00100 ); 00101 00102 inline friend bool operator!= 00103 ( 00104 const sendingReferralList& a, 00105 const sendingReferralList& b 00106 ); 00107 00108 00109 // IOstream Operators 00110 00111 friend Istream& operator>> 00112 ( 00113 Istream&, 00114 sendingReferralList& 00115 ); 00116 00117 friend Ostream& operator<< 00118 ( 00119 Ostream&, 00120 const sendingReferralList& 00121 ); 00122 }; 00123 00124 00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00126 00127 } // End namespace Foam 00128 00129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00130 00131 #include "sendingReferralListI.H" 00132 00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00134 00135 #endif 00136 00137 // ************************ vim: set sw=4 sts=4 et: ************************ //