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

ListLoopM.H File Reference

List<T> is a 1D vector of objects of type T, where the size of the vector is known and used for subscript bounds checking, etc. More...

Go to the source code of this file.


Defines

#define List_FOR_ALL(f, i)
#define List_END_FOR_ALL   }
#define List_ELEM(f, fp, i)   (*fp++)
#define List_ACCESS(type, f, fp)   register type* __restrict__ fp = (f).begin()
#define List_CONST_ACCESS(type, f, fp)   register const type* __restrict__ fp = (f).begin()

Detailed Description

List<T> is a 1D vector of objects of type T, where the size of the vector is known and used for subscript bounds checking, etc.

Original source file ListLoopM.H

Definition in file ListLoopM.H.


Define Documentation

#define List_FOR_ALL ( f,
i   ) 

Value:

register label i = (f).size();          \
        while (i--)                             \
        {                                       \

Definition at line 51 of file ListLoopM.H.

Referenced by UList< T >::assign(), List< T >::List(), FixedList< T, Size >::swap(), and UList< T >::swap().

#define List_END_FOR_ALL   }

Definition at line 56 of file ListLoopM.H.

#define List_ELEM ( f,
fp,
i   )     (*fp++)

Definition at line 58 of file ListLoopM.H.

Referenced by UList< T >::assign(), FixedList< T, Size >::swap(), and UList< T >::swap().

#define List_ACCESS ( type,
f,
fp   )     register type* __restrict__ fp = (f).begin()

#define List_CONST_ACCESS ( type,
f,
fp   )     register const type* __restrict__ fp = (f).begin()

Definition at line 63 of file ListLoopM.H.

Referenced by UList< T >::assign(), and List< T >::List().

Copyright © 2000-2009 OpenCFD Ltd