◆ Aint() [1/2]
fem::Aint::Aint |
( |
long |
sz = 0 | ) |
|
210{
211 cc = 0;
212 if (sz > 0)
213 {
214 cc = new int[sz];
215 if (!cc)
216 erreur ("Out of Memory");
217 for (int i = 0; i < sz; i++)
218 cc[i] = 0;
219 }
220 szz = sz;
221}
◆ Aint() [2/2]
fem::Aint::Aint |
( |
const Aint & |
a | ) |
|
223{
224 cc = 0;
225 if (a.szz > 0)
226 {
227 szz = a.szz;
228 cc = new int[szz];
229 if (!cc)
230 erreur ("Out of Memory");
231 else
232 for (int i = 0; i < szz; i++)
233 cc[i] = a.cc[i];
234 }
235 else
236 {
237 cc = NULL;
238 szz = 0;
239 }
240}
◆ ~Aint()
334{ delete [] cc;cc=0;szz = 0;}
◆ destroy()
void fem::Aint::destroy |
( |
| ) |
|
|
inline |
335{delete [] cc;cc=0;szz = 0;}
◆ init()
void fem::Aint::init |
( |
long |
newSize | ) |
|
243{
244 myassert (!(szz || cc));
245 szz = newSize;
246 cc = new int[szz];
247 if (!cc)
248 erreur ("Out of Memory");
249 for (int i = 0; i < szz; i++)
250 cc[i] = 0;
251}
◆ operator&()
int * fem::Aint::operator& |
( |
| ) |
|
|
inline |
◆ operator[]()
int & fem::Aint::operator[] |
( |
long |
i | ) |
|
|
inline |
336{ myassert((i< szz)&&(i>=0)); return cc[i];}
The documentation for this class was generated from the following files: