diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-11 00:16:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:23 +0100 |
| commit | d95eacd3851a20e52202465ec22b4f72a4983dc8 (patch) | |
| tree | 1dfc1092ae7d2e6b6b7c313ad808415f578d9712 /src/dcp.h | |
| parent | cbee0d077e698541afcea82a95bafcea5245ab89 (diff) | |
Replace std::list with std::vector in the API.
Diffstat (limited to 'src/dcp.h')
| -rw-r--r-- | src/dcp.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -91,7 +91,7 @@ public: * as stereoscopic if the monoscopic load fails; fixes problems some 3D DCPs that (I think) * have an incorrect descriptor in their MXF. */ - void read (std::list<VerificationNote>* notes = 0, bool ignore_incorrect_picture_mxf_type = false); + void read (std::vector<VerificationNote>* notes = 0, bool ignore_incorrect_picture_mxf_type = false); /** Compare this DCP with another, according to various options. * @param other DCP to compare this one to. @@ -103,8 +103,8 @@ public: void add (std::shared_ptr<CPL> cpl); - std::list<std::shared_ptr<CPL> > cpls () const; - std::list<std::shared_ptr<Asset> > assets (bool ignore_unresolved = false) const; + std::vector<std::shared_ptr<CPL>> cpls () const; + std::vector<std::shared_ptr<Asset>> assets (bool ignore_unresolved = false) const; bool encrypted () const; @@ -120,7 +120,7 @@ public: NameFormat name_format = NameFormat("%t") ); - void resolve_refs (std::list<std::shared_ptr<Asset> > assets); + void resolve_refs (std::vector<std::shared_ptr<Asset>> assets); /** @return Standard of a DCP that was read in */ boost::optional<Standard> standard () const { @@ -132,9 +132,9 @@ public: } /** @return PKLs if this DCP was read from an existing one, or if write_xml() has been called on it. - * If neither is true, this method returns an empty list. + * If neither is true, this method returns an empty vector. */ - std::list<std::shared_ptr<PKL> > pkls () const { + std::vector<std::shared_ptr<PKL>> pkls () const { return _pkls; } @@ -160,9 +160,9 @@ private: /** The directory that we are writing to */ boost::filesystem::path _directory; /** The CPLs that make up this DCP */ - std::list<std::shared_ptr<CPL> > _cpls; + std::vector<std::shared_ptr<CPL>> _cpls; /** The PKLs that make up this DCP */ - std::list<std::shared_ptr<PKL> > _pkls; + std::vector<std::shared_ptr<PKL>> _pkls; /** File that the ASSETMAP was read from or last written to */ mutable boost::optional<boost::filesystem::path> _asset_map; |
