OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

sendingReferralList.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 2008-2009 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 the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     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, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::sendingReferralList
00027 
00028 Description
00029 
00030 SourceFiles
00031     sendingReferralListI.H
00032     sendingReferralList.C
00033     sendingReferralListIO.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef sendingReferralList_H
00038 #define sendingReferralList_H
00039 
00040 #include "labelList.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                       Class sendingReferralList Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 class sendingReferralList
00052 :
00053     public labelList
00054 {
00055     // Private data
00056 
00057         label destinationProc_;
00058 
00059 
00060 public:
00061 
00062     // Constructors
00063 
00064         //- Construct null
00065         sendingReferralList();
00066 
00067         //- Construct from components
00068         sendingReferralList
00069         (
00070             const label destinationProc,
00071             const labelList& cellsToSend
00072         );
00073 
00074         //- Construct as copy
00075         sendingReferralList(const sendingReferralList&);
00076 
00077 
00078     // Destructor
00079 
00080         ~sendingReferralList();
00081 
00082 
00083     // Member Functions
00084 
00085         // Access
00086 
00087             inline label destinationProc() const;
00088 
00089 
00090     // Member Operators
00091 
00092         void operator=(const sendingReferralList&);
00093 
00094 
00095     // Friend Operators
00096 
00097         friend bool operator==
00098         (
00099             const sendingReferralList& a,
00100             const sendingReferralList& b
00101         );
00102 
00103         inline friend bool operator!=
00104         (
00105             const sendingReferralList& a,
00106             const sendingReferralList& b
00107         );
00108 
00109 
00110     // IOstream Operators
00111 
00112         friend Istream& operator>>
00113         (
00114             Istream&,
00115             sendingReferralList&
00116         );
00117 
00118         friend Ostream& operator<<
00119         (
00120             Ostream&,
00121             const sendingReferralList&
00122         );
00123 };
00124 
00125 
00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00127 
00128 } // End namespace Foam
00129 
00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00131 
00132 #include "sendingReferralListI.H"
00133 
00134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00135 
00136 #endif
00137 
00138 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd