TSDuck v3.40-4033
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::VLANIdStack Class Reference

A stack of VLAN identifiers, from outer to inner VLAN. More...

#include <tsIPProtocols.h>

Inheritance diagram for ts::VLANIdStack:
Collaboration diagram for ts::VLANIdStack:

Public Types

using SuperClass = std::vector< VLANId >
 Explicit reference to superclass.
 

Public Member Functions

 VLANIdStack ()=default
 Default constructor.
 
bool match (const VLANIdStack &other) const
 Check if this VLAN id stack matches a template stack.
 
virtual UString toString () const override
 Convert to a string object.
 

Detailed Description

A stack of VLAN identifiers, from outer to inner VLAN.

Member Function Documentation

◆ toString()

virtual UString ts::VLANIdStack::toString ( ) const
overridevirtual

Convert to a string object.

Returns
This object, converted as a string.

Implements ts::StringifyInterface.

◆ match()

bool ts::VLANIdStack::match ( const VLANIdStack other) const

Check if this VLAN id stack matches a template stack.

Parameters
otherThe template stack to compare with.
Returns
True if this object contains at least as many elements as other and all elements in this object match their corresponding element en other. Two elements match if their values are identical or one contains a "null" value. Null values are ETHERTYPE_NULL and VLAN_ID_NULL.

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