TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::InitZero< STRUCT > Struct Template Reference

#include <tsInitZero.h>

Public Member Functions

 InitZero ()
bool operator< (const InitZero< STRUCT > &other) const

Public Attributes

STRUCT data

Static Public Attributes

static constexpr size_t SIZE = sizeof(data)

Detailed Description

template<typename STRUCT>
struct ts::InitZero< STRUCT >

Encapsulate a plain old C data structure with automatic zero initialization.

Template Parameters
STRUCTThe plain old C data structure type to encapsulate.

Constructor & Destructor Documentation

◆ InitZero()

template<typename STRUCT>
ts::InitZero< STRUCT >::InitZero ( )
inline

Default constructor, zeroe the C structure.

Member Function Documentation

◆ operator<()

template<typename STRUCT>
bool ts::InitZero< STRUCT >::operator< ( const InitZero< STRUCT > & other) const
inline

Comparator for containers, no real semantic.

Parameters
otherOther data structure to compare.
Returns
True if the binary content of this data structure is locally less than the content of other.

Member Data Documentation

◆ data

template<typename STRUCT>
STRUCT ts::InitZero< STRUCT >::data

Encapsulated plain old C data structure.

◆ SIZE

template<typename STRUCT>
size_t ts::InitZero< STRUCT >::SIZE = sizeof(data)
staticconstexpr

Size in bytes of the encapsulated plain old C data structure.


The documentation for this struct was generated from the following file: