Loading...
Searching...
No Matches
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

namespace  Foam::ListPolicy
 Additional compile-time controls of List behaviour.
namespace  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?
template<class IntType>
constexpr bool use_alignment (IntType n) noexcept
 True if size exceeds the min-size for using memory alignment.
template<class IntType>
constexpr bool use_memory_pool (IntType n) noexcept
 True if size exceeds the min-size for using the memory pool.
template<class IntType>
constexpr bool use_offload (IntType n) noexcept
 True if size exceeds the min-size for offloading.
constexpr std::align_val_t default_alignment () noexcept
 Default alignment for larger fields.
template<class T, class IntType>
Tallocate (IntType n)
 Allocate from memory pool (if active), or aligned, or normal.
template<class T, class IntType>
void deallocate (T *ptr)
 Deallocate from memory pool, or normal.
template<class T, class IntType>
void deallocate (T *ptr, IntType n)
 Deallocate from memory pool, or aligned, or normal.
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.
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.
template<class InputIt>
enum uniformity check_uniformity (InputIt first, InputIt last)
 Algorithm to determine list/container uniformity.

Detailed Description

Original source file ListPolicy.H

Definition in file ListPolicy.H.