#include <libmpd++/ContentPopularityRate.hh>
Classes | |
class | PR |
Public Member Functions | |
ContentPopularityRate () | |
ContentPopularityRate (const ContentPopularityRate &to_copy) | |
ContentPopularityRate (ContentPopularityRate &&to_move) | |
virtual | ~ContentPopularityRate () |
ContentPopularityRate & | operator= (const ContentPopularityRate &to_copy) |
ContentPopularityRate & | operator= (ContentPopularityRate &&to_move) |
bool | operator== (const ContentPopularityRate &to_compare) const |
const std::list< PR > & | prs () const |
ContentPopularityRate & | prsRemove (const PR &pr) |
std::list< PR >::const_iterator | cbegin () const |
std::list< PR >::const_iterator | begin () const |
std::list< PR >::iterator | begin () |
std::list< PR >::const_iterator | prsBegin () const |
std::list< PR >::iterator | prsBegin () |
std::list< PR >::const_iterator | cend () const |
std::list< PR >::const_iterator | end () const |
std::list< PR >::iterator | end () |
std::list< PR >::const_iterator | prsEnd () const |
std::list< PR >::iterator | prsEnd () |
ContentPopularityRate & | prs (const std::list< PR > &prs_list) |
ContentPopularityRate & | prs (std::list< PR > &&prs_list) |
ContentPopularityRate & | prsAdd (const PR &pr) |
ContentPopularityRate & | prsAdd (PR &&pr) |
ContentPopularityRate & | prsRemove (const std::list< PR >::iterator &it) |
ContentPopularityRate & | prsRemove (const std::list< PR >::const_iterator &it) |
ContentPopularityRate class
This is the container for ContentPopularityRate elements from a DASH MPD. This indicates the level of popularity of the containing entity (i.e. the AdaptationSet, Representation or Preselection) within the media presentation.
This follows the DASH MPD XML schema definition in ISO 23009-1:2022 Clause 5.14.3.
com::bbc::libmpdpp::ContentPopularityRate::ContentPopularityRate | ( | ) |
Default constructor
Creates an empty ContentPopularityRate.
com::bbc::libmpdpp::ContentPopularityRate::ContentPopularityRate | ( | const ContentPopularityRate & | to_copy | ) |
Copy constructor
Creates a new ContentPopularityRate object which is a copy of to_copy
.
to_copy | The ContentPopularityRate object to copy. |
com::bbc::libmpdpp::ContentPopularityRate::ContentPopularityRate | ( | ContentPopularityRate && | to_move | ) |
Move constructor
Creates a new ContentPopularityRate object which transfers the resources from to_move
.
to_move | The ContentPopularityRate object to move. |
|
inlinevirtual |
Destructor
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
ContentPopularityRate & com::bbc::libmpdpp::ContentPopularityRate::operator= | ( | const ContentPopularityRate & | to_copy | ) |
Copy operator
Copies the values from to_copy
into this ContentPopularityRate object.
to_copy | The ContentPopularityRate object to copy. |
ContentPopularityRate & com::bbc::libmpdpp::ContentPopularityRate::operator= | ( | ContentPopularityRate && | to_move | ) |
Move operator
Transfers the resources from to_move
into this ContentPopularityRate object.
to_move | The ContentPopularityRate object to move. |
bool com::bbc::libmpdpp::ContentPopularityRate::operator== | ( | const ContentPopularityRate & | to_compare | ) | const |
Equality operator
Compare the value of this ContentPopularityRate to to_compare
.
to_compare | The ContentPopularityRate object to compare this object to. |
true
if this ContentPopularityRate object contains the same values as to_compare
, otherwise false
.
|
inline |
|
inline |
Set the PR elements list
Replace the PRs list with prs_list
.
prs_list | The list to set as the list of PR elements. |
|
inline |
Set the PR elements list
Replace the PRs list with prs_list
.
prs_list | The list to set as the list of PR elements. |
|
inline |
Add a PR to the list of PRs
pr | The PR to add to the end of the list. |
|
inline |
Add a PR to the list of PRs
pr | The PR to add to the end of the list. |
|
inline |
|
inline |
|
inline |
|
inline |
ContentPopularityRate & com::bbc::libmpdpp::ContentPopularityRate::prsRemove | ( | const PR & | pr | ) |
Remove an entry from the PR list by value
ContentPopularityRate & com::bbc::libmpdpp::ContentPopularityRate::prsRemove | ( | const std::list< PR >::const_iterator & | it | ) |
Remove an entry from the PR list by iterator
it | An iterator pointing to the entry from the list of PR elements to remove. |
ContentPopularityRate & com::bbc::libmpdpp::ContentPopularityRate::prsRemove | ( | const std::list< PR >::iterator & | it | ) |
Remove an entry from the PR list by iterator
it | An iterator pointing to the entry from the list of PR elements to remove. |