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