Tag Parser  7.0.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Public Member Functions | List of all members
TagParser::PositionInSet Class Reference

#include <positioninset.h>

Public Member Functions

constexpr PositionInSet (int32 position=0, int32 total=0)
 Constructs a new Position in set of the specified element position and total element count. More...
 
template<typename StringType = std::string, Traits::EnableIfAny< Traits::IsSpecializationOf< StringType, std::basic_string >> ...>
 PositionInSet (const StringType &numericString)
 Constructs a new Position in set from the specified numeric string. More...
 
constexpr int32 position () const
 Returns the element position of the current instance. More...
 
constexpr int32 total () const
 Returns the total element count of the current instance. More...
 
constexpr bool isNull () const
 Returns an indication whether both the element position and total element count is 0. More...
 
constexpr bool operator== (const PositionInSet &other) const
 Returns whether this instance equals other. More...
 
template<typename StringType = std::string, Traits::EnableIfAny< Traits::IsSpecializationOf< StringType, std::basic_string >> ...>
StringType toString () const
 Returns the string representation of the current PositionInSet. More...
 

Detailed Description

Definition at line 21 of file positioninset.h.

Constructor & Destructor Documentation

◆ PositionInSet() [1/2]

constexpr TagParser::PositionInSet::PositionInSet ( int32  position = 0,
int32  total = 0 
)
inline

Constructs a new Position in set of the specified element position and total element count.

Parameters
position
total

Definition at line 67 of file positioninset.h.

◆ PositionInSet() [2/2]

template<typename StringType , Traits::EnableIfAny< Traits::IsSpecializationOf< StringType, std::basic_string >> ...>
TagParser::PositionInSet::PositionInSet ( const StringType &  numericString)

Constructs a new Position in set from the specified numeric string.

Template Parameters
StringTypeThe type of the string (should be an instantiation of the basic_string class template).
Parameters
numericStringSpecifies the string containing the position and possibly the total element count (separated by "/").

Definition at line 47 of file positioninset.h.

Member Function Documentation

◆ isNull()

constexpr bool TagParser::PositionInSet::isNull ( ) const
inline

Returns an indication whether both the element position and total element count is 0.

Definition at line 92 of file positioninset.h.

◆ operator==()

constexpr bool TagParser::PositionInSet::operator== ( const PositionInSet other) const
inline

Returns whether this instance equals other.

Definition at line 100 of file positioninset.h.

◆ position()

constexpr int32 TagParser::PositionInSet::position ( ) const
inline

Returns the element position of the current instance.

Definition at line 76 of file positioninset.h.

◆ toString()

template<typename StringType , Traits::EnableIfAny< Traits::IsSpecializationOf< StringType, std::basic_string >> ...>
StringType TagParser::PositionInSet::toString ( ) const

Returns the string representation of the current PositionInSet.

Definition at line 109 of file positioninset.h.

◆ total()

constexpr int32 TagParser::PositionInSet::total ( ) const
inline

Returns the total element count of the current instance.

Definition at line 84 of file positioninset.h.


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