FreeFem 3.5.x
Public Member Functions | Public Attributes | List of all members
fem::AAcmat Class Reference

Public Member Functions

 AAcmat (long=0)
 
 AAcmat (const AAcmat &)
 
void destroy ()
 
Acmatoperator[] (long i)
 
Acmatoperator& ()
 
void init (long)
 

Public Attributes

long szz
 
Acmatcc
 

Constructor & Destructor Documentation

◆ AAcmat() [1/2]

fem::AAcmat::AAcmat ( long  sz = 0)
342{
343 cc = 0;
344 if (sz > 0)
345 {
346 cc = new Acmat[sz];
347 if (!cc)
348 erreur ("Out of Memory");
349 for (int i = 0; i < sz; i++)
350 cc[i] = 0;
351 }
352 szz = sz;
353}

◆ AAcmat() [2/2]

fem::AAcmat::AAcmat ( const AAcmat a)
355{
356 cc = 0;
357 if (a.szz > 0)
358 {
359 szz = a.szz;
360 cc = new Acmat[szz];
361 if (!cc)
362 erreur ("Out of Memory");
363 else
364 for (int i = 0; i < szz; i++)
365 cc[i] = a.cc[i];
366 }
367 else
368 {
369 cc = NULL;
370 szz = 0;
371 }
372}

◆ ~AAcmat()

fem::AAcmat::~AAcmat ( )
inline
385{ delete [] cc;cc=0;szz = 0;}

Member Function Documentation

◆ destroy()

void fem::AAcmat::destroy ( )
inline
386{delete [] cc;cc=0;szz = 0;}

◆ init()

void fem::AAcmat::init ( long  newSize)
375{
376 myassert (!(szz || cc));
377 szz = newSize;
378 cc = new Acmat[szz];
379 if (!cc)
380 erreur ("Out of Memory");
381 for (int i = 0; i < szz; i++)
382 cc[i] = 0;
383}

◆ operator&()

Acmat * fem::AAcmat::operator& ( )
inline
388{ return cc;}

◆ operator[]()

Acmat & fem::AAcmat::operator[] ( long  i)
inline
387{ /*myassert((i< szz)&&(i>=0));*/ return cc[i];}

The documentation for this class was generated from the following files:

This is the FreeFEM reference manual
Provided by The KFEM project