All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
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...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define List_FOR_ALL(f, i)
 
#define List_END_FOR_ALL   }
 
#define List_CELEM(f, fp, i)   (*fp)
 
#define List_ELEM(f, fp, i)   (*fp++)
 
#define List_ACCESS(type, f, fp)   type* __restrict__ fp = (f).begin()
 
#define List_CONST_ACCESS(type, f, fp)   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.

Macro Definition Documentation

◆ List_FOR_ALL

#define List_FOR_ALL (   f,
 
)
Value:
label i = (f).size(); \
while (i--) \
{ \
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
labelList f(nPoints)

Definition at line 62 of file ListLoopM.H.

Referenced by UList< Foam::wordRe >::deepCopy(), List< Field< scalar > >::List(), UList< Foam::wordRe >::operator=(), List< Field< scalar > >::operator=(), FixedList< Type, 3 >::operator==(), UList< Foam::wordRe >::operator==(), and FixedList< Type, 3 >::swap().

◆ List_END_FOR_ALL

#define List_END_FOR_ALL   }

◆ List_CELEM

#define List_CELEM (   f,
  fp,
 
)    (*fp)

Definition at line 70 of file ListLoopM.H.

Referenced by FixedList< Type, 3 >::swap().

◆ List_ELEM

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

◆ List_ACCESS

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

◆ List_CONST_ACCESS

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