surfZone.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef surfZone_H
00039 #define surfZone_H
00040
00041 #include "word.H"
00042 #include "label.H"
00043 #include "className.H"
00044 #include "surfZoneIdentifier.H"
00045 #include "autoPtr.H"
00046 #include "dictionary.H"
00047
00048
00049
00050 namespace Foam
00051 {
00052
00053
00054
00055 class surfZone;
00056
00057 Istream& operator>>(Istream&, surfZone&);
00058 Ostream& operator<<(Ostream&, const surfZone&);
00059
00060
00061
00062
00063
00064 class surfZone
00065 :
00066 public surfZoneIdentifier
00067 {
00068
00069
00070
00071 label size_;
00072
00073
00074 label start_;
00075
00076
00077 public:
00078
00079
00080 ClassName("surfZone");
00081
00082
00083
00084
00085
00086 surfZone();
00087
00088
00089 surfZone
00090 (
00091 const word& name,
00092 const label size,
00093 const label start,
00094 const label index,
00095 const word& geometricType = word::null
00096 );
00097
00098
00099 surfZone(Istream& is, const label index);
00100
00101
00102 surfZone
00103 (
00104 const word& name,
00105 const dictionary& dict,
00106 const label index
00107 );
00108
00109
00110 surfZone(const surfZone&);
00111
00112
00113 surfZone(const surfZone&, const label index);
00114
00115
00116 autoPtr<surfZone> clone() const
00117 {
00118 notImplemented("autoPtr<surfZone> clone() const");
00119 return autoPtr<surfZone>(NULL);
00120 }
00121
00122 static autoPtr<surfZone> New(Istream& is)
00123 {
00124 word name(is);
00125 dictionary dict(is);
00126
00127 return autoPtr<surfZone>(new surfZone(name, dict, 0));
00128 }
00129
00130
00131
00132
00133
00134 label start() const
00135 {
00136 return start_;
00137 }
00138
00139
00140 label& start()
00141 {
00142 return start_;
00143 }
00144
00145
00146 label size() const
00147 {
00148 return size_;
00149 }
00150
00151
00152 label& size()
00153 {
00154 return size_;
00155 }
00156
00157
00158 void write(Ostream&) const;
00159
00160
00161 void writeDict(Ostream&) const;
00162
00163
00164
00165
00166 bool operator!=(const surfZone&) const;
00167
00168
00169 bool operator==(const surfZone&) const;
00170
00171
00172
00173
00174 friend Istream& operator>>(Istream&, surfZone&);
00175 friend Ostream& operator<<(Ostream&, const surfZone&);
00176 };
00177
00178
00179
00180
00181 }
00182
00183
00184
00185 #endif
00186
00187
Copyright © 2000-2009 OpenCFD Ltd