bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / svl / currencytable.hxx
blob275391649ff5d54a0a592ee2af23f49961d53560
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_SVL_CURRENCYTABLE_HXX
11 #define INCLUDED_SVL_CURRENCYTABLE_HXX
13 #include <svl/svldllapi.h>
14 #include <svl/zforlist.hxx>
16 #include <vector>
17 #include <memory>
19 class SVL_DLLPUBLIC NfCurrencyTable
21 typedef std::vector<std::unique_ptr<NfCurrencyEntry>> DataType;
22 DataType maData;
24 NfCurrencyTable(NfCurrencyTable const&) = delete;
25 void operator=(NfCurrencyTable const&) = delete;
27 public:
28 NfCurrencyTable() {}
29 typedef DataType::iterator iterator;
30 typedef DataType::const_iterator const_iterator;
32 iterator begin();
34 NfCurrencyEntry& operator[] ( size_t i );
35 const NfCurrencyEntry& operator[] ( size_t i ) const;
37 size_t size() const;
39 void insert(const iterator& it, std::unique_ptr<NfCurrencyEntry> p);
42 #endif
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */