ListPolicy.H File Reference
Include dependency graph for ListPolicy.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  short_length< T >
 Number of items before requiring line-breaks in the list output. More...
 
struct  no_linebreak< T >
 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...
 

Namespaces

 Foam::ListPolicy
 Additional compile-time controls of List behaviour.
 
 Foam
 Namespace for OpenFOAM.
 

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 T >
constexpr bool is_aligned_type () noexcept
 Consider aligned allocation for the given type? More...
 
template<class IntType >
constexpr bool use_alignment (IntType n) noexcept
 True if size exceeds the min-size for using memory alignment. More...
 
template<class IntType >
constexpr bool use_memory_pool (IntType n) noexcept
 True if size exceeds the min-size for using the memory pool. More...
 
template<class IntType >
constexpr bool use_offload (IntType n) noexcept
 True if size exceeds the min-size for offloading. More...
 
template<class T , class IntType >
Tallocate (IntType n)
 
template<class T , class IntType >
void deallocate (T *ptr)
 
template<class T , class IntType >
void deallocate (T *ptr, [[maybe_unused]] IntType n)
 
template<int SizeMin, int Numerator, class IntType >
IntType reserve_size (IntType requested, IntType capacity) noexcept
 Calculate a reserve size (eg, doubling) based on the requested length and the current capacity. More...
 
template<int SizeMin, int Numerator, int Denominator, class IntType >
IntType reserve_size (IntType requested, IntType capacity) noexcept
 Calculate a reserve size based on the requested length and the current capacity. More...
 
template<class InputIt >
enum uniformity check_uniformity (InputIt first, InputIt last)
 Algorithm to determine list/container uniformity. More...
 

Detailed Description

Original source file ListPolicy.H

Definition in file ListPolicy.H.