32 std::vector<std::unique_ptr<SdCustomShow>>
mShows;
36 : mShows(), mnCurPos(0)
43 bool empty()
const {
return mShows.empty();}
45 size_t size()
const {
return mShows.size();}
47 std::unique_ptr<SdCustomShow>&
operator[](
size_t i) {
return mShows[
i];}
49 std::vector<std::unique_ptr<SdCustomShow>>::iterator
begin() {
return mShows.begin();}
51 void erase(std::vector<std::unique_ptr<SdCustomShow>>::iterator it);
53 void push_back(std::unique_ptr<SdCustomShow> p) {mShows.push_back(std::move(
p));}
56 void Seek(sal_uInt16 nNewPos) { mnCurPos = nNewPos; }
63 return mShows[mnCurPos].get();
68 return mnCurPos >= mShows.size() ? nullptr : mShows[mnCurPos].get();
73 mnCurPos = mShows.size() - 1;
77 return mShows.empty() ? nullptr : mShows[mnCurPos].get();
81 auto it = std::find_if(mShows.begin(), mShows.end(),
82 [&] (std::unique_ptr<SdCustomShow>
const &
i) { return i.get() == p; });
83 assert( it != mShows.end() );
84 if( it != mShows.end() )
std::unique_ptr< SdCustomShow > & operator[](size_t i)
std::vector< std::unique_ptr< SdCustomShow > > mShows
void push_back(std::unique_ptr< SdCustomShow > p)
sal_uInt16 GetCurPos() const
void erase(const SdCustomShow *p)
SdCustomShowList & operator=(SdCustomShowList const &)=delete
SdCustomShow * GetCurObject()
void Seek(sal_uInt16 nNewPos)
SdCustomShowList(SdCustomShowList const &)=delete
std::vector< std::unique_ptr< SdCustomShow > >::iterator begin()