![]() |
TSDuck v3.43-4480
MPEG Transport Stream Toolkit
|
Template map of subclasses of AttachedEntry, indexed by size_t. More...
#include <tsAbstractTable.h>


Public Types | |
| using | SuperClass = AttachedEntryMap< size_t, ENTRY > |
| Explicit reference to the super class. | |
Public Member Functions | |
| AttachedEntryList (const AbstractTable *table) | |
| Basic constructor. | |
| AttachedEntryList (const AbstractTable *table, AttachedEntryList &&other) | |
| Basic move-like constructor. | |
| AttachedEntryList (const AbstractTable *table, const SuperClass &other) | |
| Basic copy-like constructor. | |
| void | getOrder (std::vector< size_t > &order) const |
| Get the insertion order of entries in the table. | |
| bool | hasTable () const |
| Check if this instance has a parent table. | |
| ENTRY & | newEntry () |
| Create a new entry in the map. | |
| size_t | nextIndex () const |
| Get a new unused index, greater than the greatest entry. | |
| size_t | nextOrder () const |
| Get the next ordering hint to be used in an entry to make sure it is considered the last one. | |
| AttachedEntryList & | operator= (AttachedEntryList &&other) |
| Move assignment operator. | |
| AttachedEntryList & | operator= (const AttachedEntryList &other) |
| Assignment operator. | |
| ENTRY & | operator[] (const size_t &key) |
| Access or create an entry. | |
| const ENTRY & | operator[] (const size_t &key) const |
| Access an existing entry in a read-only map. | |
| void | setOrder (const std::vector< size_t > &order) |
| Define the insertion order of entries in the table. | |
| void | swap (AttachedEntryMap &other) |
| Swap two instances (override of std::list). | |
| const AbstractTable * | table () const |
| Get the parent table. | |
| TID | tableId () const |
| Get the table id of the parent table. | |
| Standards | tableStandards () const |
| Get the standards of the parent table. | |
Template map of subclasses of AttachedEntry, indexed by size_t.
This is replacement for vectors and lists, which cannot be used by entries containing a descriptor list since it is not CopyAssignable or CopyConstructible.
| ENTRY | A subclass of AttachedEntry (enforced at compile-time). |
|
inlineexplicit |
Basic constructor.
| [in] | table | Parent table. A descriptor list is always attached to a table. |
|
inline |
Basic copy-like constructor.
| [in] | table | Parent table. A descriptor list is always attached to a table. |
| [in] | other | Another instance to copy. |
|
inline |
Basic move-like constructor.
| [in] | table | Parent table. A descriptor list is always attached to a table. |
| [in,out] | other | Another instance to move. |
|
inline |
Assignment operator.
The parent table remains unchanged.
| [in] | other | Another instance to copy. |
|
inline |
Move assignment operator.
The parent table remains unchanged.
| [in,out] | other | Another instance to move. |
|
inline |
Get a new unused index, greater than the greatest entry.
|
inline |
Create a new entry in the map.
|
inherited |
Swap two instances (override of std::list).
| [in,out] | other | Another instance to swap with the current object. |
|
inherited |
Access or create an entry.
| [in] | key | The key of the entry to access. |
|
inherited |
Access an existing entry in a read-only map.
| [in] | key | The key of the entry to access. |
| std::out_of_range | When the entry does not exist. |
|
inherited |
Get the insertion order of entries in the table.
The result is based on the order_hint fields in the AttachedEntry structures.
| [out] | order | Order of entries by key in the table. |
|
inherited |
Define the insertion order of entries in the table.
This can be precisely set using the order_hint fields in the AttachedEntry structures. This method is a helper which sets these fields.
| [in] | order | Order of entries by key in the table. |
|
inherited |
Get the next ordering hint to be used in an entry to make sure it is considered the last one.
|
inherited |
Get the table id of the parent table.
|
inherited |
Get the standards of the parent table.
|
inlineinherited |
Get the parent table.
|
inlineinherited |
Check if this instance has a parent table.