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/cpl.h | |
| parent | cbee0d077e698541afcea82a95bafcea5245ab89 (diff) | |
Replace std::list with std::vector in the API.
Diffstat (limited to 'src/cpl.h')
| -rw-r--r-- | src/cpl.h | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2020 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net> This file is part of libdcp. @@ -50,7 +50,6 @@ #include <boost/function.hpp> #include <boost/optional.hpp> #include <memory> -#include <list> #include <vector> @@ -86,13 +85,13 @@ public: void add (DecryptedKDM const &); /** @return the reels in this CPL */ - std::list<std::shared_ptr<Reel> > reels () const { + std::vector<std::shared_ptr<Reel>> reels () const { return _reels; } /** @return the ReelMXFs in this CPL in all reels */ - std::list<std::shared_ptr<const ReelMXF> > reel_mxfs () const; - std::list<std::shared_ptr<ReelMXF> > reel_mxfs (); + std::vector<std::shared_ptr<const ReelMXF>> reel_mxfs () const; + std::vector<std::shared_ptr<ReelMXF>> reel_mxfs (); bool encrypted () const; @@ -102,7 +101,7 @@ public: std::shared_ptr<const CertificateChain> ) const; - void resolve_refs (std::list<std::shared_ptr<Asset> >); + void resolve_refs (std::vector<std::shared_ptr<Asset>>); int64_t duration () const; @@ -316,7 +315,7 @@ private: /* See note for _release_territory above */ std::vector<std::string> _additional_subtitle_languages; - std::list<std::shared_ptr<Reel> > _reels; + std::vector<std::shared_ptr<Reel>> _reels; /** Standard of CPL that was read in */ boost::optional<Standard> _standard; |
