LibreOffice Module sc (master)  1
filterentries.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef SC_INC_FILTERENTRIES_HXX
11 #define SC_INC_FILTERENTRIES_HXX
12 
13 #include <sal/config.h>
14 #include "typedstrdata.hxx"
15 #include <vector>
16 
18 {
19  std::vector<ScTypedStrData> maStrData;
20  bool mbHasDates;
22 
23  ScFilterEntries() : mbHasDates(false), mbHasEmpties(false) {}
24 
25  std::vector<ScTypedStrData>::iterator begin() { return maStrData.begin(); }
26  std::vector<ScTypedStrData>::iterator end() { return maStrData.end(); }
27  std::vector<ScTypedStrData>::const_iterator begin() const { return maStrData.begin(); }
28  std::vector<ScTypedStrData>::const_iterator end() const { return maStrData.end(); }
29  std::vector<ScTypedStrData>::size_type size() const { return maStrData.size(); }
30  ScTypedStrData& front() { return maStrData.front(); }
31  const ScTypedStrData& front() const { return maStrData.front(); }
32  bool empty() const { return maStrData.empty(); }
33  void push_back( const ScTypedStrData& r ) { maStrData.push_back(r); }
34  void push_back( ScTypedStrData&& r ) { maStrData.push_back(r); }
35 };
36 
37 #endif
38 
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
std::vector< ScTypedStrData >::iterator begin()
std::vector< ScTypedStrData >::iterator end()
std::vector< ScTypedStrData >::const_iterator begin() const
void push_back(const ScTypedStrData &r)
void push_back(ScTypedStrData &&r)
const ScTypedStrData & front() const
std::vector< ScTypedStrData >::size_type size() const
bool empty() const
ScTypedStrData & front()
std::vector< ScTypedStrData >::const_iterator end() const
std::vector< ScTypedStrData > maStrData