/src/libreoffice/include/o3tl/enumarray.hxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
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 | | * This file incorporates work covered by the following license notice: |
10 | | * |
11 | | * Licensed to the Apache Software Foundation (ASF) under one or more |
12 | | * contributor license agreements. See the NOTICE file distributed |
13 | | * with this work for additional information regarding copyright |
14 | | * ownership. The ASF licenses this file to you under the Apache |
15 | | * License, Version 2.0 (the "License"); you may not use this file |
16 | | * except in compliance with the License. You may obtain a copy of |
17 | | * the License at http://www.apache.org/licenses/LICENSE-2.0 . |
18 | | */ |
19 | | |
20 | | #ifndef INCLUDED_O3TL_ENUMARRAY_HXX |
21 | | #define INCLUDED_O3TL_ENUMARRAY_HXX |
22 | | |
23 | | #include <utility> |
24 | | #include <array> |
25 | | #include <cstddef> |
26 | | #include <concepts> |
27 | | |
28 | | namespace o3tl { |
29 | | |
30 | | /// |
31 | | /// This is a container convenience class for arrays indexed by enum values. |
32 | | /// |
33 | | /// This assumes that the 'enum class' definition |
34 | | /// - starts at zero |
35 | | /// - has no holes in its sequence of values |
36 | | /// - defines a value called LAST which refers to the greatest constant. |
37 | | /// |
38 | | /// \param E the 'enum class' type. |
39 | | /// \param V the value type to be stored in the array |
40 | | template<typename E, typename V> |
41 | | class enumarray final |
42 | | { |
43 | | public: |
44 | | typedef V value_type; |
45 | | typedef E key_type; |
46 | | typedef size_t size_type; |
47 | | |
48 | 4 | static constexpr size_type size() { return static_cast<size_type>(E::LAST) + 1; };Unexecuted instantiation: o3tl::enumarray<VclPackType, std::__1::vector<vcl::Window*, std::__1::allocator<vcl::Window*> > >::size() Unexecuted instantiation: o3tl::enumarray<MetaActionType, bool>::size() Unexecuted instantiation: o3tl::enumarray<SalBitmap::BitConvert, int>::size() Unexecuted instantiation: o3tl::enumarray<SvImpLBox::ImageType, Image>::size() Unexecuted instantiation: o3tl::enumarray<vcl::EnumContext::Application, rtl::OUString>::size() Unexecuted instantiation: o3tl::enumarray<vcl::EnumContext::Context, rtl::OUString>::size() Unexecuted instantiation: o3tl::enumarray<INetProtocol, INetURLObject::SchemeInfo>::size() Unexecuted instantiation: o3tl::enumarray<SvtPathOptions::Paths, rtl::OUString>::size() Unexecuted instantiation: moduleoptions.cxx:o3tl::enumarray<SvtModuleOptions::EFactory, (anonymous namespace)::FactoryInfo>::size() Unexecuted instantiation: o3tl::enumarray<UserOptToken, rtl::OUString>::size() Unexecuted instantiation: o3tl::enumarray<XPropertyListType, rtl::Reference<XPropertyList> >::size() Unexecuted instantiation: o3tl::enumarray<oox::xls::Unit, double>::size() Unexecuted instantiation: o3tl::enumarray<oox::drawingml::ShapeProperty, int>::size() Unexecuted instantiation: o3tl::enumarray<ScContentId, std::__1::unique_ptr<weld::TreeIter, std::__1::default_delete<weld::TreeIter> > >::size() Unexecuted instantiation: o3tl::enumarray<ScContentId, unsigned short>::size() Unexecuted instantiation: o3tl::enumarray<ScContentId, bool>::size() Unexecuted instantiation: o3tl::enumarray<sc::DebugTime, double>::size() Unexecuted instantiation: o3tl::enumarray<SvxAdjust, short>::size() Unexecuted instantiation: o3tl::enumarray<TSS_Type, PPTExtParaSheet>::size() Unexecuted instantiation: o3tl::enumarray<TSS_Type, std::__1::unique_ptr<PPTCharSheet, std::__1::default_delete<PPTCharSheet> > >::size() Unexecuted instantiation: o3tl::enumarray<TSS_Type, std::__1::unique_ptr<PPTParaSheet, std::__1::default_delete<PPTParaSheet> > >::size() Unexecuted instantiation: o3tl::enumarray<TSS_Type, std::__1::unique_ptr<SvxNumBulletItem, std::__1::default_delete<SvxNumBulletItem> > >::size() Unexecuted instantiation: o3tl::enumarray<SfxToolsModule, std::__1::unique_ptr<SfxModule, std::__1::default_delete<SfxModule> > >::size() Unexecuted instantiation: o3tl::enumarray<LockFileComponent, rtl::OUString>::size() Unexecuted instantiation: o3tl::enumarray<SdrCompatibilityFlag, bool>::size() Unexecuted instantiation: o3tl::enumarray<SvxBoxItemLine, bool>::size() Unexecuted instantiation: o3tl::enumarray<SvxBoxInfoItemLine, bool>::size() Unexecuted instantiation: o3tl::enumarray<SvxBoxItemLine, unsigned short>::size() Unexecuted instantiation: o3tl::enumarray<SvxNumValCategory, double>::size() o3tl::enumarray<GlobalEventId, rtl::OUString>::size() Line | Count | Source | 48 | 4 | static constexpr size_type size() { return static_cast<size_type>(E::LAST) + 1; }; |
Unexecuted instantiation: o3tl::enumarray<dbaccess::ODatabaseModelImpl::ObjectType, std::__1::shared_ptr<dbaccess::OContentHelper_Impl> >::size() Unexecuted instantiation: o3tl::enumarray<framework::FramePropHandle, rtl::OUString>::size() Unexecuted instantiation: o3tl::enumarray<framework::LayoutManagerPropHandle, rtl::OUString>::size() Unexecuted instantiation: o3tl::enumarray<framework::AutoRecoveryPropHandle, rtl::OUString>::size() Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, std::__1::unique_ptr<ImageList, std::__1::default_delete<ImageList> > >::size() Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, bool>::size() Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, rtl::OUString>::size() Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, Size>::size() Unexecuted instantiation: o3tl::enumarray<SwFontScript, SwSubFont>::size() Unexecuted instantiation: o3tl::enumarray<SwFieldIds, SwFieldTypesEnum>::size() Unexecuted instantiation: o3tl::enumarray<SwFieldTypesEnum, rtl::OUString>::size() Unexecuted instantiation: o3tl::enumarray<SwFontScript, void const*>::size() Unexecuted instantiation: o3tl::enumarray<SwFontScript, unsigned short>::size() Unexecuted instantiation: o3tl::enumarray<SwFontScript, long>::size() Unexecuted instantiation: o3tl::enumarray<ContentTypeId, bool>::size() Unexecuted instantiation: o3tl::enumarray<ContentTypeId, std::__1::unique_ptr<SwContentType, std::__1::default_delete<SwContentType> > >::size() Unexecuted instantiation: o3tl::enumarray<SwFieldTypesEnum, TranslateId>::size() Unexecuted instantiation: o3tl::enumarray<writerfilter::dmapper::BorderHandler::BorderPosition, bool>::size() Unexecuted instantiation: o3tl::enumarray<writerfilter::dmapper::BorderHandler::BorderPosition, com::sun::star::table::BorderLine2>::size() Unexecuted instantiation: o3tl::enumarray<writerfilter::dmapper::BorderHandler::BorderPosition, writerfilter::dmapper::PropertyIds>::size() Unexecuted instantiation: o3tl::enumarray<PageKind, char const*>::size() Unexecuted instantiation: o3tl::enumarray<PresObjKind, char const*>::size() Unexecuted instantiation: o3tl::enumarray<PresObjKind, int>::size() |
49 | | |
50 | | typedef typename std::array<V, size()>::iterator iterator; |
51 | | typedef typename std::array<V, size()>::const_iterator const_iterator; |
52 | | |
53 | | template <std::convertible_to<V>... T> |
54 | | requires(sizeof...(T) == size()) |
55 | | constexpr enumarray(T&&... args) |
56 | 100k | : values{ std::forward<T>(args)... } |
57 | 100k | { |
58 | 100k | } _ZN4o3tl9enumarrayI20SdrCompatibilityFlagbEC2ITpTkNSt3__114convertible_toIT0_EEJbbbbbEQeqsZTL0__clL_ZNS_9enumarray4sizeEvEEEEDpOT_ Line | Count | Source | 56 | 100k | : values{ std::forward<T>(args)... } | 57 | 100k | { | 58 | 100k | } |
Unexecuted instantiation: _ZN4o3tl9enumarrayI12SwFontScriptlEC2ITpTkNSt3__114convertible_toIT0_EEJiiiEQeqsZTL0__clL_ZNS_9enumarray4sizeEvEEEEDpOT_ |
59 | | |
60 | | // coverity[uninit_ctor] - by design: |
61 | 1.19M | enumarray() {}Unexecuted instantiation: o3tl::enumarray<VclPackType, std::__1::vector<vcl::Window*, std::__1::allocator<vcl::Window*> > >::enumarray() Unexecuted instantiation: o3tl::enumarray<MetaActionType, bool>::enumarray() o3tl::enumarray<vcl::EnumContext::Application, rtl::OUString>::enumarray() Line | Count | Source | 61 | 108 | enumarray() {} |
o3tl::enumarray<vcl::EnumContext::Context, rtl::OUString>::enumarray() Line | Count | Source | 61 | 108 | enumarray() {} |
Unexecuted instantiation: o3tl::enumarray<SvImpLBox::ImageType, Image>::enumarray() o3tl::enumarray<SvtPathOptions::Paths, rtl::OUString>::enumarray() Line | Count | Source | 61 | 4 | enumarray() {} |
moduleoptions.cxx:o3tl::enumarray<SvtModuleOptions::EFactory, (anonymous namespace)::FactoryInfo>::enumarray() Line | Count | Source | 61 | 10 | enumarray() {} |
o3tl::enumarray<oox::xls::Unit, double>::enumarray() Line | Count | Source | 61 | 4.11k | enumarray() {} |
Unexecuted instantiation: o3tl::enumarray<ScContentId, bool>::enumarray() Unexecuted instantiation: o3tl::enumarray<ScContentId, std::__1::unique_ptr<weld::TreeIter, std::__1::default_delete<weld::TreeIter> > >::enumarray() Unexecuted instantiation: o3tl::enumarray<ScContentId, unsigned short>::enumarray() o3tl::enumarray<TSS_Type, PPTExtParaSheet>::enumarray() Line | Count | Source | 61 | 10.8k | enumarray() {} |
o3tl::enumarray<TSS_Type, std::__1::unique_ptr<PPTCharSheet, std::__1::default_delete<PPTCharSheet> > >::enumarray() Line | Count | Source | 61 | 10.8k | enumarray() {} |
o3tl::enumarray<TSS_Type, std::__1::unique_ptr<PPTParaSheet, std::__1::default_delete<PPTParaSheet> > >::enumarray() Line | Count | Source | 61 | 10.8k | enumarray() {} |
o3tl::enumarray<TSS_Type, std::__1::unique_ptr<SvxNumBulletItem, std::__1::default_delete<SvxNumBulletItem> > >::enumarray() Line | Count | Source | 61 | 10.8k | enumarray() {} |
o3tl::enumarray<SfxToolsModule, std::__1::unique_ptr<SfxModule, std::__1::default_delete<SfxModule> > >::enumarray() Line | Count | Source | 61 | 26 | enumarray() {} |
Unexecuted instantiation: o3tl::enumarray<LockFileComponent, rtl::OUString>::enumarray() o3tl::enumarray<XPropertyListType, rtl::Reference<XPropertyList> >::enumarray() Line | Count | Source | 61 | 100k | enumarray() {} |
Unexecuted instantiation: o3tl::enumarray<SvxBoxItemLine, bool>::enumarray() Unexecuted instantiation: o3tl::enumarray<SvxBoxInfoItemLine, bool>::enumarray() Unexecuted instantiation: o3tl::enumarray<SvxBoxItemLine, unsigned short>::enumarray() o3tl::enumarray<GlobalEventId, rtl::OUString>::enumarray() Line | Count | Source | 61 | 7 | enumarray() {} |
Unexecuted instantiation: o3tl::enumarray<dbaccess::ODatabaseModelImpl::ObjectType, std::__1::shared_ptr<dbaccess::OContentHelper_Impl> >::enumarray() Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, std::__1::unique_ptr<ImageList, std::__1::default_delete<ImageList> > >::enumarray() Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, bool>::enumarray() o3tl::enumarray<SwFontScript, void const*>::enumarray() Line | Count | Source | 61 | 447k | enumarray() {} |
o3tl::enumarray<SwFontScript, unsigned short>::enumarray() Line | Count | Source | 61 | 447k | enumarray() {} |
o3tl::enumarray<SwFontScript, SwSubFont>::enumarray() Line | Count | Source | 61 | 72.6k | enumarray() {} |
o3tl::enumarray<SwFieldTypesEnum, rtl::OUString>::enumarray() Line | Count | Source | 61 | 1 | enumarray() {} |
Unexecuted instantiation: o3tl::enumarray<ContentTypeId, std::__1::unique_ptr<SwContentType, std::__1::default_delete<SwContentType> > >::enumarray() Unexecuted instantiation: o3tl::enumarray<ContentTypeId, bool>::enumarray() o3tl::enumarray<writerfilter::dmapper::BorderHandler::BorderPosition, bool>::enumarray() Line | Count | Source | 61 | 4.76k | enumarray() {} |
o3tl::enumarray<writerfilter::dmapper::BorderHandler::BorderPosition, com::sun::star::table::BorderLine2>::enumarray() Line | Count | Source | 61 | 4.76k | enumarray() {} |
o3tl::enumarray<PresObjKind, int>::enumarray() Line | Count | Source | 61 | 73.2k | enumarray() {} |
|
62 | | |
63 | 56.7M | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; }Unexecuted instantiation: o3tl::enumarray<MetaActionType, bool>::operator[](MetaActionType) const Unexecuted instantiation: o3tl::enumarray<SalBitmap::BitConvert, int>::operator[](SalBitmap::BitConvert) const o3tl::enumarray<INetProtocol, INetURLObject::SchemeInfo>::operator[](INetProtocol) const Line | Count | Source | 63 | 9.40M | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
moduleoptions.cxx:o3tl::enumarray<SvtModuleOptions::EFactory, (anonymous namespace)::FactoryInfo>::operator[](SvtModuleOptions::EFactory) const Line | Count | Source | 63 | 4.46k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<UserOptToken, rtl::OUString>::operator[](UserOptToken) const o3tl::enumarray<XPropertyListType, rtl::Reference<XPropertyList> >::operator[](XPropertyListType) const Line | Count | Source | 63 | 1.52M | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<oox::xls::Unit, double>::operator[](oox::xls::Unit) const Line | Count | Source | 63 | 272k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<oox::drawingml::ShapeProperty, int>::operator[](oox::drawingml::ShapeProperty) const Line | Count | Source | 63 | 342k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<ScContentId, bool>::operator[](ScContentId) const Unexecuted instantiation: o3tl::enumarray<ScContentId, std::__1::unique_ptr<weld::TreeIter, std::__1::default_delete<weld::TreeIter> > >::operator[](ScContentId) const o3tl::enumarray<SvxAdjust, short>::operator[](SvxAdjust) const Line | Count | Source | 63 | 761k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<TSS_Type, PPTExtParaSheet>::operator[](TSS_Type) const Line | Count | Source | 63 | 8.49k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<TSS_Type, std::__1::unique_ptr<PPTCharSheet, std::__1::default_delete<PPTCharSheet> > >::operator[](TSS_Type) const Line | Count | Source | 63 | 4.71M | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<TSS_Type, std::__1::unique_ptr<PPTParaSheet, std::__1::default_delete<PPTParaSheet> > >::operator[](TSS_Type) const Line | Count | Source | 63 | 5.56M | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<TSS_Type, std::__1::unique_ptr<SvxNumBulletItem, std::__1::default_delete<SvxNumBulletItem> > >::operator[](TSS_Type) const Line | Count | Source | 63 | 172k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<GlobalEventId, rtl::OUString>::operator[](GlobalEventId) const Line | Count | Source | 63 | 196 | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<framework::FramePropHandle, rtl::OUString>::operator[](framework::FramePropHandle) const Line | Count | Source | 63 | 14.6M | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<framework::AutoRecoveryPropHandle, rtl::OUString>::operator[](framework::AutoRecoveryPropHandle) const o3tl::enumarray<framework::LayoutManagerPropHandle, rtl::OUString>::operator[](framework::LayoutManagerPropHandle) const Line | Count | Source | 63 | 59.0k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, rtl::OUString>::operator[](vcl::ImageType) const Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, Size>::operator[](vcl::ImageType) const o3tl::enumarray<SwFontScript, SwSubFont>::operator[](SwFontScript) const Line | Count | Source | 63 | 18.7M | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<SwFieldIds, SwFieldTypesEnum>::operator[](SwFieldIds) const Line | Count | Source | 63 | 109k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<SwFontScript, long>::operator[](SwFontScript) const o3tl::enumarray<SwFieldTypesEnum, TranslateId>::operator[](SwFieldTypesEnum) const Line | Count | Source | 63 | 45 | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<ContentTypeId, std::__1::unique_ptr<SwContentType, std::__1::default_delete<SwContentType> > >::operator[](ContentTypeId) const o3tl::enumarray<writerfilter::dmapper::BorderHandler::BorderPosition, writerfilter::dmapper::PropertyIds>::operator[](writerfilter::dmapper::BorderHandler::BorderPosition) const Line | Count | Source | 63 | 7.81k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<SvxBoxItemLine, unsigned short>::operator[](SvxBoxItemLine) const o3tl::enumarray<PresObjKind, char const*>::operator[](PresObjKind) const Line | Count | Source | 63 | 129k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<PageKind, char const*>::operator[](PageKind) const Line | Count | Source | 63 | 300k | constexpr const V& operator[](E key) const { return values[static_cast<size_type>(key)]; } |
|
64 | | |
65 | 104M | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; }Unexecuted instantiation: o3tl::enumarray<VclPackType, std::__1::vector<vcl::Window*, std::__1::allocator<vcl::Window*> > >::operator[](VclPackType) Unexecuted instantiation: o3tl::enumarray<MetaActionType, bool>::operator[](MetaActionType) Unexecuted instantiation: o3tl::enumarray<SvImpLBox::ImageType, Image>::operator[](SvImpLBox::ImageType) o3tl::enumarray<vcl::EnumContext::Application, rtl::OUString>::operator[](vcl::EnumContext::Application) Line | Count | Source | 65 | 28 | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<vcl::EnumContext::Context, rtl::OUString>::operator[](vcl::EnumContext::Context) Line | Count | Source | 65 | 8.15k | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<SvtPathOptions::Paths, rtl::OUString>::operator[](SvtPathOptions::Paths) Unexecuted instantiation: moduleoptions.cxx:o3tl::enumarray<SvtModuleOptions::EFactory, (anonymous namespace)::FactoryInfo>::operator[](SvtModuleOptions::EFactory) o3tl::enumarray<XPropertyListType, rtl::Reference<XPropertyList> >::operator[](XPropertyListType) Line | Count | Source | 65 | 724k | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<oox::xls::Unit, double>::operator[](oox::xls::Unit) Line | Count | Source | 65 | 29.7k | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<ScContentId, bool>::operator[](ScContentId) Unexecuted instantiation: o3tl::enumarray<sc::DebugTime, double>::operator[](sc::DebugTime) Unexecuted instantiation: o3tl::enumarray<ScContentId, unsigned short>::operator[](ScContentId) Unexecuted instantiation: o3tl::enumarray<ScContentId, std::__1::unique_ptr<weld::TreeIter, std::__1::default_delete<weld::TreeIter> > >::operator[](ScContentId) o3tl::enumarray<TSS_Type, PPTExtParaSheet>::operator[](TSS_Type) Line | Count | Source | 65 | 1.77k | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<TSS_Type, std::__1::unique_ptr<PPTCharSheet, std::__1::default_delete<PPTCharSheet> > >::operator[](TSS_Type) Line | Count | Source | 65 | 1.13M | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<TSS_Type, std::__1::unique_ptr<PPTParaSheet, std::__1::default_delete<PPTParaSheet> > >::operator[](TSS_Type) Line | Count | Source | 65 | 1.09M | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<TSS_Type, std::__1::unique_ptr<SvxNumBulletItem, std::__1::default_delete<SvxNumBulletItem> > >::operator[](TSS_Type) Line | Count | Source | 65 | 195k | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<SfxToolsModule, std::__1::unique_ptr<SfxModule, std::__1::default_delete<SfxModule> > >::operator[](SfxToolsModule) Line | Count | Source | 65 | 21.9M | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<LockFileComponent, rtl::OUString>::operator[](LockFileComponent) o3tl::enumarray<SdrCompatibilityFlag, bool>::operator[](SdrCompatibilityFlag) Line | Count | Source | 65 | 36.7k | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<SvxBoxItemLine, bool>::operator[](SvxBoxItemLine) Unexecuted instantiation: o3tl::enumarray<SvxBoxInfoItemLine, bool>::operator[](SvxBoxInfoItemLine) Unexecuted instantiation: o3tl::enumarray<SvxBoxItemLine, unsigned short>::operator[](SvxBoxItemLine) o3tl::enumarray<GlobalEventId, rtl::OUString>::operator[](GlobalEventId) Line | Count | Source | 65 | 196 | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<oox::drawingml::ShapeProperty, int>::operator[](oox::drawingml::ShapeProperty) Line | Count | Source | 65 | 5.77k | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<dbaccess::ODatabaseModelImpl::ObjectType, std::__1::shared_ptr<dbaccess::OContentHelper_Impl> >::operator[](dbaccess::ODatabaseModelImpl::ObjectType) Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, std::__1::unique_ptr<ImageList, std::__1::default_delete<ImageList> > >::operator[](vcl::ImageType) Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, bool>::operator[](vcl::ImageType) o3tl::enumarray<SwFontScript, SwSubFont>::operator[](SwFontScript) Line | Count | Source | 65 | 57.4M | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<SwFieldTypesEnum, rtl::OUString>::operator[](SwFieldTypesEnum) Line | Count | Source | 65 | 370 | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<SwFontScript, void const*>::operator[](SwFontScript) Line | Count | Source | 65 | 12.7M | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<SwFontScript, unsigned short>::operator[](SwFontScript) Line | Count | Source | 65 | 8.41M | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
Unexecuted instantiation: o3tl::enumarray<SwFontScript, long>::operator[](SwFontScript) Unexecuted instantiation: o3tl::enumarray<ContentTypeId, bool>::operator[](ContentTypeId) Unexecuted instantiation: o3tl::enumarray<ContentTypeId, std::__1::unique_ptr<SwContentType, std::__1::default_delete<SwContentType> > >::operator[](ContentTypeId) o3tl::enumarray<writerfilter::dmapper::BorderHandler::BorderPosition, com::sun::star::table::BorderLine2>::operator[](writerfilter::dmapper::BorderHandler::BorderPosition) Line | Count | Source | 65 | 15.6k | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<writerfilter::dmapper::BorderHandler::BorderPosition, bool>::operator[](writerfilter::dmapper::BorderHandler::BorderPosition) Line | Count | Source | 65 | 21.9k | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
o3tl::enumarray<PresObjKind, int>::operator[](PresObjKind) Line | Count | Source | 65 | 198k | constexpr V& operator[](E key) { return values[static_cast<size_type>(key)]; } |
|
66 | | |
67 | 82.7k | constexpr void fill(const V& val) { values.fill(val); }Unexecuted instantiation: o3tl::enumarray<MetaActionType, bool>::fill(bool const&) Unexecuted instantiation: o3tl::enumarray<ScContentId, bool>::fill(bool const&) Unexecuted instantiation: o3tl::enumarray<SvxBoxItemLine, bool>::fill(bool const&) Unexecuted instantiation: o3tl::enumarray<SvxBoxInfoItemLine, bool>::fill(bool const&) Unexecuted instantiation: o3tl::enumarray<SvxBoxItemLine, unsigned short>::fill(unsigned short const&) o3tl::enumarray<writerfilter::dmapper::BorderHandler::BorderPosition, bool>::fill(bool const&) Line | Count | Source | 67 | 4.76k | constexpr void fill(const V& val) { values.fill(val); } |
o3tl::enumarray<writerfilter::dmapper::BorderHandler::BorderPosition, com::sun::star::table::BorderLine2>::fill(com::sun::star::table::BorderLine2 const&) Line | Count | Source | 67 | 4.76k | constexpr void fill(const V& val) { values.fill(val); } |
o3tl::enumarray<PresObjKind, int>::fill(int const&) Line | Count | Source | 67 | 73.2k | constexpr void fill(const V& val) { values.fill(val); } |
|
68 | | |
69 | 10 | constexpr iterator begin() { return values.begin(); }moduleoptions.cxx:o3tl::enumarray<SvtModuleOptions::EFactory, (anonymous namespace)::FactoryInfo>::begin() Line | Count | Source | 69 | 10 | constexpr iterator begin() { return values.begin(); } |
Unexecuted instantiation: o3tl::enumarray<SfxToolsModule, std::__1::unique_ptr<SfxModule, std::__1::default_delete<SfxModule> > >::begin() Unexecuted instantiation: o3tl::enumarray<GlobalEventId, rtl::OUString>::begin() Unexecuted instantiation: o3tl::enumarray<dbaccess::ODatabaseModelImpl::ObjectType, std::__1::shared_ptr<dbaccess::OContentHelper_Impl> >::begin() Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, std::__1::unique_ptr<ImageList, std::__1::default_delete<ImageList> > >::begin() |
70 | 10 | constexpr iterator end() { return values.end(); }moduleoptions.cxx:o3tl::enumarray<SvtModuleOptions::EFactory, (anonymous namespace)::FactoryInfo>::end() Line | Count | Source | 70 | 10 | constexpr iterator end() { return values.end(); } |
Unexecuted instantiation: o3tl::enumarray<SfxToolsModule, std::__1::unique_ptr<SfxModule, std::__1::default_delete<SfxModule> > >::end() Unexecuted instantiation: o3tl::enumarray<GlobalEventId, rtl::OUString>::end() Unexecuted instantiation: o3tl::enumarray<dbaccess::ODatabaseModelImpl::ObjectType, std::__1::shared_ptr<dbaccess::OContentHelper_Impl> >::end() Unexecuted instantiation: o3tl::enumarray<vcl::ImageType, std::__1::unique_ptr<ImageList, std::__1::default_delete<ImageList> > >::end() |
71 | | constexpr const_iterator begin() const { return values.begin(); } |
72 | | constexpr const_iterator end() const { return values.end(); } |
73 | | |
74 | 4 | constexpr V* data() { return values.data(); } |
75 | | |
76 | | private: |
77 | | std::array<V, size()> values; |
78 | | }; |
79 | | |
80 | | }; // namespace o3tl |
81 | | |
82 | | #endif /* INCLUDED_O3TL_ENUMARRAY_HXX */ |
83 | | |
84 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |