Foam::Detail::ListPolicy Namespace Reference

Additional compile-time controls of List behaviour. More...

Classes

struct  no_linebreak
 Can suppress additional line breaks separate ASCII data content when the data elements are primitives, or contiguous. More...
 
struct  no_linebreak< keyType >
 Suppress line-breaks for keyType. More...
 
struct  no_linebreak< word >
 Suppress line-breaks for word. More...
 
struct  no_linebreak< wordRe >
 Suppress line-breaks for wordRe. More...
 
struct  short_length
 Number of items before requiring line-breaks in the list output. More...
 

Enumerations

enum  uniformity : unsigned char { EMPTY = 0, UNIFORM = 0x1, NONUNIFORM = 0x2, MIXED = 0x3 }
 Classification of list/container uniformity. The values can be used with bit-wise or reduction. More...
 

Functions

template<class InputIt >
enum uniformity check_uniformity (InputIt first, InputIt last)
 Algorithm to determine list/container uniformity. More...
 

Detailed Description

Additional compile-time controls of List behaviour.

Enumeration Type Documentation

◆ uniformity

enum uniformity : unsigned char

Classification of list/container uniformity. The values can be used with bit-wise or reduction.

Enumerator
EMPTY 

An empty container.

UNIFORM 

Container (non-empty) with identical values.

NONUNIFORM 

Container (non-empty) with different values.

MIXED 

Mixed uniform/non-uniform (eg, after reduction)

Definition at line 103 of file ListPolicy.H.

Function Documentation

◆ check_uniformity()

enum uniformity Foam::Detail::ListPolicy::check_uniformity ( InputIt  first,
InputIt  last 
)

Algorithm to determine list/container uniformity.

Definition at line 115 of file ListPolicy.H.

References EMPTY, NONUNIFORM, and UNIFORM.