Safe DDS
eprosima::safedds::memory::container Namespace Reference

Classes

struct  ArrayTraits
 Array traits. More...
 
struct  ArrayTraits< T, 0 >
 Array traits specialization for 0 elements. More...
 
struct  Array
 Array container. More...
 
class  BitmapFunctionality
 Template class to provide a set of utils for bitmaps. More...
 
class  BitmapSet
 Template class to hold a bitmap and its memory. More...
 
class  EmptyMap
 empty Map-like data structure. More...
 
class  PreallocLinkedList
 LinkedList data structure with preallocation. More...
 
class  PreallocList
 List-like data structure. More...
 
class  PreallocMap
 static size Map-like data structure. More...
 
class  PreallocMemoryConfig
 Preallocation memory configuration values. More...
 
class  PreallocOrderedLinkedList
 LinkedList data structure with preallocation and ordered insertion. The list is ordered from greater (used head) to lower values. More...
 
class  PreallocReferenceList
 List-like data structure. More...
 
class  PreallocReferenceMap
 Preallocated Map-like data structure. More...
 
class  PreallocSet
 Set-like data structure. More...
 
class  StaticLinkedList
 LinkedList data structure. More...
 
class  StaticList
 List-like data structure. More...
 
class  StaticMap
 static size Map-like data structure. More...
 
class  StaticOrderedLinkedList
 LinkedList data structure with ordered insertion. The list is ordered from greater (used head) to lower values. More...
 
class  StaticReferenceList
 List-like data structure. More...
 
class  StaticReferenceMap
 static size Map-like data structure. More...
 
class  StaticSet
 Set-like data structure. More...
 
class  StaticString
 Static size string that copies a string into a fixed size array. More...
 
class  Uint32BitmapHelper
 Class that exposes utilities for BitmapFunctionality. More...
 

Typedefs

using StaticString256 = memory::container::StaticString< DEFAULT_STRING_SIZE >
 StaticString256. More...
 

Functions

template<typename T , uint32_t N>
bool operator== (const Array< T, N > &first, const Array< T, N > &second) noexcept
 Equality operator for Array objects. More...
 
template<typename T , uint32_t N>
bool operator!= (const Array< T, N > &first, const Array< T, N > &second) noexcept
 Inequality operator for Array objects. More...
 
constexpr uint32_t bits_to_longs (const uint32_t bits) noexcept
 bits size to longs size. More...
 
template<uint32_t N>
bool operator== (const StaticString< N > &first, const StaticString< N > &second) noexcept
 Operator== for StaticString objects. More...
 

Variables

constexpr PreallocMemoryConfig DEFAULT_MEMORY_CONFIG {0U, UINT32_MAX}
 Default preallocated memory configuration. More...
 
constexpr uint32_t DEFAULT_STRING_SIZE = 256
 Default string size. More...
 

Typedef Documentation

◆ StaticString256

Function Documentation

◆ bits_to_longs()

constexpr uint32_t eprosima::safedds::memory::container::bits_to_longs ( const uint32_t  bits)
constexprnoexcept

bits size to longs size.

Parameters
bitsnumber of bits.
Returns
uint32_t.

◆ operator!=()

template<typename T , uint32_t N>
bool eprosima::safedds::memory::container::operator!= ( const Array< T, N > &  first,
const Array< T, N > &  second 
)
noexcept

Inequality operator for Array objects.

Template Parameters
TType of the elements
NNumber of elements
Parameters
firstLeft-hand side Array object
secondRight-hand side Array object
Returns
True if the Array objects are different, false otherwise

◆ operator==() [1/2]

template<typename T , uint32_t N>
bool eprosima::safedds::memory::container::operator== ( const Array< T, N > &  first,
const Array< T, N > &  second 
)
noexcept

Equality operator for Array objects.

Template Parameters
TType of the elements
NNumber of elements
Parameters
firstLeft-hand side Array object
secondRight-hand side Array object
Returns
True if the Array objects are equal, false otherwise

◆ operator==() [2/2]

template<uint32_t N>
bool eprosima::safedds::memory::container::operator== ( const StaticString< N > &  first,
const StaticString< N > &  second 
)
noexcept

Operator== for StaticString objects.

Parameters
firstfirst StaticString to compare.
secondsecond StaticString to compare.
Returns
True if StaticString are equal, false otherwise.

Variable Documentation

◆ DEFAULT_MEMORY_CONFIG

constexpr PreallocMemoryConfig eprosima::safedds::memory::container::DEFAULT_MEMORY_CONFIG {0U, UINT32_MAX}
constexpr

Default preallocated memory configuration.

◆ DEFAULT_STRING_SIZE

constexpr uint32_t eprosima::safedds::memory::container::DEFAULT_STRING_SIZE = 256
constexpr

Default string size.