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

receivingReferralList.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::receivingReferralList
00027 
00028 Description
00029 
00030 SourceFiles
00031     receivingReferralListI.H
00032     receivingReferralList.C
00033     receivingReferralListIO.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef receivingReferralList_H
00038 #define receivingReferralList_H
00039 
00040 #include "labelList.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                     Class receivingReferralList Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 class receivingReferralList
00052 :
00053     public labelListList
00054 {
00055     // Private data
00056 
00057         label sourceProc_;
00058 
00059 
00060 public:
00061 
00062     // Constructors
00063 
00064         //- Construct null
00065         receivingReferralList();
00066 
00067         //- Construct from components
00068         receivingReferralList
00069         (
00070             const label sourceProc,
00071             const labelListList& refCellsToSendTo
00072         );
00073 
00074         //- Construct as copy
00075         receivingReferralList(const receivingReferralList&);
00076 
00077 
00078     // Destructor
00079 
00080         ~receivingReferralList();
00081 
00082 
00083     // Member Functions
00084 
00085         // Access
00086 
00087             inline label sourceProc() const;
00088 
00089 
00090     // Member Operators
00091 
00092         void operator=(const receivingReferralList&);
00093 
00094 
00095     // Friend Operators
00096 
00097         friend bool operator==
00098         (
00099             const receivingReferralList& a,
00100             const receivingReferralList& b
00101         );
00102 
00103         inline friend bool operator!=
00104         (
00105             const receivingReferralList& a,
00106             const receivingReferralList& b
00107         );
00108 
00109 
00110     // IOstream Operators
00111 
00112         friend Istream& operator>>
00113         (
00114             Istream&,
00115             receivingReferralList&
00116         );
00117 
00118         friend Ostream& operator<<
00119         (
00120             Ostream&,
00121             const receivingReferralList&
00122         );
00123 };
00124 
00125 
00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00127 
00128 } // End namespace Foam
00129 
00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00131 
00132 #include "receivingReferralListI.H"
00133 
00134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00135 
00136 #endif
00137 
00138 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd