TSDuck v3.38-3675
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::AbstractTable::EntryWithDescriptors Class Reference

Base inner class for table entries with one descriptor list. More...

#include <tsAbstractTable.h>

Inheritance diagram for ts::AbstractTable::EntryWithDescriptors:
Collaboration diagram for ts::AbstractTable::EntryWithDescriptors:

Public Member Functions

 EntryWithDescriptors (const AbstractTable *table)
 Basic constructor.
 
 EntryWithDescriptors (const AbstractTable *table, const EntryWithDescriptors &other)
 Basic copy-like constructor.
 
 EntryWithDescriptors (const AbstractTable *table, EntryWithDescriptors &&other)
 Basic move-like constructor.
 
EntryWithDescriptorsoperator= (const EntryWithDescriptors &other)
 Assignment operator.
 
EntryWithDescriptorsoperator= (EntryWithDescriptors &&other) noexcept
 Move assignment operator.
 

Public Attributes

DescriptorList descs
 List of descriptors for this entry, publicly accessible.
 
size_t order_hint
 Preferred insertion index when serializing the table or NPOS if unspecified.
 

Detailed Description

Base inner class for table entries with one descriptor list.

Some tables, such as PMT, BAT or NIT, contain a list or map of "entries". Each entry contains a descriptor list. The difficulty here is that the class DescriptorList needs to be constructed with a reference to a parent table. The inner class EntryWithDescriptorList can be used as base class for such entries, combined with the template container classes EntryWithDescriptorsList and EntryWithDescriptorsMap.

Constructor & Destructor Documentation

◆ EntryWithDescriptors() [1/3]

ts::AbstractTable::EntryWithDescriptors::EntryWithDescriptors ( const AbstractTable table)
explicit

Basic constructor.

Parameters
[in]tableParent table. A descriptor list is always attached to a table.

◆ EntryWithDescriptors() [2/3]

ts::AbstractTable::EntryWithDescriptors::EntryWithDescriptors ( const AbstractTable table,
const EntryWithDescriptors other 
)

Basic copy-like constructor.

Parameters
[in]tableParent table. A descriptor list is always attached to a table.
[in]otherAnother instance to copy.

◆ EntryWithDescriptors() [3/3]

ts::AbstractTable::EntryWithDescriptors::EntryWithDescriptors ( const AbstractTable table,
EntryWithDescriptors &&  other 
)

Basic move-like constructor.

Parameters
[in]tableParent table. A descriptor list is always attached to a table.
[in,out]otherAnother instance to move.

Member Function Documentation

◆ operator=() [1/2]

EntryWithDescriptors & ts::AbstractTable::EntryWithDescriptors::operator= ( const EntryWithDescriptors other)

Assignment operator.

The parent table remains unchanged.

Parameters
[in]otherAnother instance to copy.
Returns
A reference to this object.

◆ operator=() [2/2]

EntryWithDescriptors & ts::AbstractTable::EntryWithDescriptors::operator= ( EntryWithDescriptors &&  other)
noexcept

Move assignment operator.

The parent table remains unchanged.

Parameters
[in,out]otherAnother instance to move.
Returns
A reference to this object.

Member Data Documentation

◆ order_hint

size_t ts::AbstractTable::EntryBase::order_hint
inherited

Preferred insertion index when serializing the table or NPOS if unspecified.

This is an informational hint which can be used or ignored.


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