Coverage Report

Created: 2026-09-28 10:59

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/oox/helper/refvector.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_OOX_HELPER_REFVECTOR_HXX
21
#define INCLUDED_OOX_HELPER_REFVECTOR_HXX
22
23
#include <algorithm>
24
#include <functional>
25
#include <memory>
26
#include <vector>
27
28
#include <sal/types.h>
29
30
namespace oox {
31
32
33
/** Template for a vector of ref-counted objects with additional accessor functions.
34
35
    An instance of the class RefVector< Type > stores elements of the type
36
    std::shared_ptr< Type >. The new accessor functions has() and get()
37
    work correctly for indexes out of the current range, there is no need to
38
    check the passed index before.
39
 */
40
template< typename ObjType >
41
class RefVector : public ::std::vector< std::shared_ptr< ObjType > >
42
{
43
public:
44
    typedef ::std::vector< std::shared_ptr< ObjType > > container_type;
45
    typedef typename container_type::value_type             value_type;
46
    typedef typename container_type::size_type              size_type;
47
48
public:
49
50
    /** Returns a reference to the object with the passed index, or 0 on error. */
51
    value_type          get( sal_Int32 nIndex ) const
52
42.9M
                        {
53
42.9M
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
10.9M
                            return value_type();
55
42.9M
                        }
oox::RefVector<oox::xls::WorksheetBuffer::SheetInfo>::get(int) const
Line
Count
Source
52
40.2k
                        {
53
40.2k
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
0
                            return value_type();
55
40.2k
                        }
Unexecuted instantiation: oox::RefVector<oox::xls::DefinedName>::get(int) const
Unexecuted instantiation: oox::RefVector<oox::xls::ExternalName>::get(int) const
oox::RefVector<oox::xls::ExternalLink>::get(int) const
Line
Count
Source
52
9
                        {
53
9
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
0
                            return value_type();
55
9
                        }
oox::RefVector<oox::xls::PivotCacheField>::get(int) const
Line
Count
Source
52
2.25k
                        {
53
2.25k
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
0
                            return value_type();
55
2.25k
                        }
oox::RefVector<oox::xls::PivotTableField>::get(int) const
Line
Count
Source
52
895
                        {
53
895
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
9
                            return value_type();
55
895
                        }
oox::RefVector<oox::xls::RichString>::get(int) const
Line
Count
Source
52
270k
                        {
53
270k
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
58.2k
                            return value_type();
55
270k
                        }
oox::RefVector<oox::xls::Dxf>::get(int) const
Line
Count
Source
52
2.37k
                        {
53
2.37k
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
956
                            return value_type();
55
2.37k
                        }
oox::RefVector<oox::xls::Font>::get(int) const
Line
Count
Source
52
189k
                        {
53
189k
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
3.08k
                            return value_type();
55
189k
                        }
oox::RefVector<oox::xls::Border>::get(int) const
Line
Count
Source
52
53.6k
                        {
53
53.6k
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
454
                            return value_type();
55
53.6k
                        }
oox::RefVector<oox::xls::Xf>::get(int) const
Line
Count
Source
52
42.3M
                        {
53
42.3M
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
10.9M
                            return value_type();
55
42.3M
                        }
oox::RefVector<oox::xls::Fill>::get(int) const
Line
Count
Source
52
21.4k
                        {
53
21.4k
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
176
                            return value_type();
55
21.4k
                        }
Unexecuted instantiation: oox::RefVector<oox::drawingml::chart::SeriesModel>::get(int) const
oox::RefVector<oox::drawingml::FillProperties>::get(int) const
Line
Count
Source
52
4.14k
                        {
53
4.14k
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
0
                            return value_type();
55
4.14k
                        }
oox::RefVector<oox::drawingml::LineProperties>::get(int) const
Line
Count
Source
52
1.73k
                        {
53
1.73k
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
0
                            return value_type();
55
1.73k
                        }
oox::RefVector<oox::drawingml::EffectProperties>::get(int) const
Line
Count
Source
52
55
                        {
53
55
                            if( const value_type* pxRef = getRef( nIndex ) ) return *pxRef;
54
0
                            return value_type();
55
55
                        }
Unexecuted instantiation: oox::RefVector<oox::drawingml::chart::TypeGroupModel>::get(int) const
56
57
    /** Calls the passed functor for every contained object, automatically
58
        skips all elements that are empty references. */
59
    template <typename FunctorType> void forEach(FunctorType aFunctor) const
60
28.6k
    {
61
129k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
oox::RefVector<oox::xls::DefinedName>::forEach<oox::RefVector<oox::xls::DefinedName>::forEachMem<void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> >(void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo>&&) const::{lambda(oox::xls::DefinedName&)#1}>(oox::RefVector<oox::xls::DefinedName>::forEachMem<void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> >(void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo>&&) const::{lambda(oox::xls::DefinedName&)#1}) const::{lambda(unsigned long, oox::xls::DefinedName&)#1}::operator()(unsigned long, oox::xls::DefinedName&) const
Line
Count
Source
61
7.63k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
Unexecuted instantiation: oox::RefVector<oox::xls::PivotTableFilter>::forEach<oox::RefVector<oox::xls::PivotTableFilter>::forEachMem<void (oox::xls::PivotTableFilter::*)()>(void (oox::xls::PivotTableFilter::*)()) const::{lambda(oox::xls::PivotTableFilter&)#1}>(oox::RefVector<oox::xls::PivotTableFilter>::forEachMem<void (oox::xls::PivotTableFilter::*)()>(void (oox::xls::PivotTableFilter::*)()) const::{lambda(oox::xls::PivotTableFilter&)#1}) const::{lambda(unsigned long, oox::xls::PivotTableFilter&)#1}::operator()(unsigned long, oox::xls::PivotTableFilter&) const
oox::RefVector<oox::xls::PivotTableField>::forEach<oox::RefVector<oox::xls::PivotTableField>::forEachMem<void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const> >(void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const>&&) const::{lambda(oox::xls::PivotTableField&)#1}>(oox::RefVector<oox::xls::PivotTableField>::forEachMem<void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const> >(void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const>&&) const::{lambda(oox::xls::PivotTableField&)#1}) const::{lambda(unsigned long, oox::xls::PivotTableField&)#1}::operator()(unsigned long, oox::xls::PivotTableField&) const
Line
Count
Source
61
1.22k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
oox::RefVector<oox::xls::PivotTable>::forEach<oox::RefVector<oox::xls::PivotTable>::forEachMem<void (oox::xls::PivotTable::*)()>(void (oox::xls::PivotTable::*)()) const::{lambda(oox::xls::PivotTable&)#1}>(oox::RefVector<oox::xls::PivotTable>::forEachMem<void (oox::xls::PivotTable::*)()>(void (oox::xls::PivotTable::*)()) const::{lambda(oox::xls::PivotTable&)#1}) const::{lambda(unsigned long, oox::xls::PivotTable&)#1}::operator()(unsigned long, oox::xls::PivotTable&) const
Line
Count
Source
61
344
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
oox::RefVector<oox::xls::Scenario>::forEach<oox::RefVector<oox::xls::Scenario>::forEachMem<void (oox::xls::Scenario::*)()>(void (oox::xls::Scenario::*)()) const::{lambda(oox::xls::Scenario&)#1}>(oox::RefVector<oox::xls::Scenario>::forEachMem<void (oox::xls::Scenario::*)()>(void (oox::xls::Scenario::*)()) const::{lambda(oox::xls::Scenario&)#1}) const::{lambda(unsigned long, oox::xls::Scenario&)#1}::operator()(unsigned long, oox::xls::Scenario&) const
Line
Count
Source
61
20
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
oox::RefVector<oox::xls::Font>::forEach<oox::RefVector<oox::xls::Font>::forEachMem<void (oox::xls::Font::*)()>(void (oox::xls::Font::*)()) const::{lambda(oox::xls::Font&)#1}>(oox::RefVector<oox::xls::Font>::forEachMem<void (oox::xls::Font::*)()>(void (oox::xls::Font::*)()) const::{lambda(oox::xls::Font&)#1}) const::{lambda(unsigned long, oox::xls::Font&)#1}::operator()(unsigned long, oox::xls::Font&) const
Line
Count
Source
61
16.0k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
oox::RefVector<oox::xls::Border>::forEach<oox::RefVector<oox::xls::Border>::forEachMem<void (oox::xls::Border::*)(bool), bool>(void (oox::xls::Border::*)(bool), bool&&) const::{lambda(oox::xls::Border&)#1}>(oox::RefVector<oox::xls::Border>::forEachMem<void (oox::xls::Border::*)(bool), bool>(void (oox::xls::Border::*)(bool), bool&&) const::{lambda(oox::xls::Border&)#1}) const::{lambda(unsigned long, oox::xls::Border&)#1}::operator()(unsigned long, oox::xls::Border&) const
Line
Count
Source
61
11.2k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
oox::RefVector<oox::xls::Fill>::forEach<oox::RefVector<oox::xls::Fill>::forEachMem<void (oox::xls::Fill::*)()>(void (oox::xls::Fill::*)()) const::{lambda(oox::xls::Fill&)#1}>(oox::RefVector<oox::xls::Fill>::forEachMem<void (oox::xls::Fill::*)()>(void (oox::xls::Fill::*)()) const::{lambda(oox::xls::Fill&)#1}) const::{lambda(unsigned long, oox::xls::Fill&)#1}::operator()(unsigned long, oox::xls::Fill&) const
Line
Count
Source
61
11.3k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
oox::RefVector<oox::xls::Xf>::forEach<oox::RefVector<oox::xls::Xf>::forEachMem<void (oox::xls::Xf::*)()>(void (oox::xls::Xf::*)()) const::{lambda(oox::xls::Xf&)#1}>(oox::RefVector<oox::xls::Xf>::forEachMem<void (oox::xls::Xf::*)()>(void (oox::xls::Xf::*)()) const::{lambda(oox::xls::Xf&)#1}) const::{lambda(unsigned long, oox::xls::Xf&)#1}::operator()(unsigned long, oox::xls::Xf&) const
Line
Count
Source
61
72.8k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
oox::RefVector<oox::xls::Dxf>::forEach<oox::RefVector<oox::xls::Dxf>::forEachMem<void (oox::xls::Dxf::*)()>(void (oox::xls::Dxf::*)()) const::{lambda(oox::xls::Dxf&)#1}>(oox::RefVector<oox::xls::Dxf>::forEachMem<void (oox::xls::Dxf::*)()>(void (oox::xls::Dxf::*)()) const::{lambda(oox::xls::Dxf&)#1}) const::{lambda(unsigned long, oox::xls::Dxf&)#1}::operator()(unsigned long, oox::xls::Dxf&) const
Line
Count
Source
61
5.88k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
oox::RefVector<oox::xls::TableStyle>::forEach<oox::RefVector<oox::xls::TableStyle>::forEachMem<void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&>(void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&) const::{lambda(oox::xls::TableStyle&)#1}>(oox::RefVector<oox::xls::TableStyle>::forEachMem<void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&>(void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&) const::{lambda(oox::xls::TableStyle&)#1}) const::{lambda(unsigned long, oox::xls::TableStyle&)#1}::operator()(unsigned long, oox::xls::TableStyle&) const
Line
Count
Source
61
43
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
oox::RefVector<oox::xls::QueryTable>::forEach<oox::RefVector<oox::xls::QueryTable>::forEachMem<void (oox::xls::QueryTable::*)()>(void (oox::xls::QueryTable::*)()) const::{lambda(oox::xls::QueryTable&)#1}>(oox::RefVector<oox::xls::QueryTable>::forEachMem<void (oox::xls::QueryTable::*)()>(void (oox::xls::QueryTable::*)()) const::{lambda(oox::xls::QueryTable&)#1}) const::{lambda(unsigned long, oox::xls::QueryTable&)#1}::operator()(unsigned long, oox::xls::QueryTable&) const
Line
Count
Source
61
32
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
Unexecuted instantiation: oox::RefVector<oox::ole::VbaMacroAttacherBase>::forEach<oox::RefVector<oox::ole::VbaMacroAttacherBase>::forEachMem<void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const> >(void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const>&&) const::{lambda(oox::ole::VbaMacroAttacherBase&)#1}>(oox::RefVector<oox::ole::VbaMacroAttacherBase>::forEachMem<void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const> >(void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const>&&) const::{lambda(oox::ole::VbaMacroAttacherBase&)#1}) const::{lambda(unsigned long, oox::ole::VbaMacroAttacherBase&)#1}::operator()(unsigned long, oox::ole::VbaMacroAttacherBase&) const
oox::RefVector<oox::vml::ShapeBase>::forEach<oox::RefVector<oox::vml::ShapeBase>::forEachMem<void (oox::vml::ShapeBase::*)()>(void (oox::vml::ShapeBase::*)()) const::{lambda(oox::vml::ShapeBase&)#1}>(oox::RefVector<oox::vml::ShapeBase>::forEachMem<void (oox::vml::ShapeBase::*)()>(void (oox::vml::ShapeBase::*)()) const::{lambda(oox::vml::ShapeBase&)#1}) const::{lambda(unsigned long, oox::vml::ShapeBase&)#1}::operator()(unsigned long, oox::vml::ShapeBase&) const
Line
Count
Source
61
3.23k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
Unexecuted instantiation: oox::RefVector<oox::ole::VbaFormControl>::forEach<oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>, std::__1::reference_wrapper<oox::StorageBase>, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const> >(void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>&&, std::__1::reference_wrapper<oox::StorageBase>&&, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const>&&) const::{lambda(oox::ole::VbaFormControl&)#1}>(oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>, std::__1::reference_wrapper<oox::StorageBase>, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const> >(void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>&&, std::__1::reference_wrapper<oox::StorageBase>&&, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const>&&) const::{lambda(oox::ole::VbaFormControl&)#1}) const::{lambda(unsigned long, oox::ole::VbaFormControl&)#1}::operator()(unsigned long, oox::ole::VbaFormControl&) const
Unexecuted instantiation: vbacontrol.cxx:oox::RefVector<oox::ole::VbaFormControl>::forEach<oox::ole::(anonymous namespace)::VbaControlNameInserter>(oox::ole::(anonymous namespace)::VbaControlNameInserter) const::{lambda(unsigned long, oox::ole::VbaFormControl&)#1}::operator()(unsigned long, oox::ole::VbaFormControl&) const
Unexecuted instantiation: oox::RefVector<oox::ole::VbaFormControl>::forEach<oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const> >(void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const>&&) const::{lambda(oox::ole::VbaFormControl&)#1}>(oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const> >(void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const>&&) const::{lambda(oox::ole::VbaFormControl&)#1}) const::{lambda(unsigned long, oox::ole::VbaFormControl&)#1}::operator()(unsigned long, oox::ole::VbaFormControl&) const
62
28.6k
    }
void oox::RefVector<oox::xls::DefinedName>::forEach<oox::RefVector<oox::xls::DefinedName>::forEachMem<void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> >(void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo>&&) const::{lambda(oox::xls::DefinedName&)#1}>(oox::RefVector<oox::xls::DefinedName>::forEachMem<void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> >(void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo>&&) const::{lambda(oox::xls::DefinedName&)#1}) const
Line
Count
Source
60
3.74k
    {
61
3.74k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
3.74k
    }
void oox::RefVector<oox::xls::PivotTableFilter>::forEach<oox::RefVector<oox::xls::PivotTableFilter>::forEachMem<void (oox::xls::PivotTableFilter::*)()>(void (oox::xls::PivotTableFilter::*)()) const::{lambda(oox::xls::PivotTableFilter&)#1}>(oox::RefVector<oox::xls::PivotTableFilter>::forEachMem<void (oox::xls::PivotTableFilter::*)()>(void (oox::xls::PivotTableFilter::*)()) const::{lambda(oox::xls::PivotTableFilter&)#1}) const
Line
Count
Source
60
259
    {
61
259
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
259
    }
void oox::RefVector<oox::xls::PivotTableField>::forEach<oox::RefVector<oox::xls::PivotTableField>::forEachMem<void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const> >(void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const>&&) const::{lambda(oox::xls::PivotTableField&)#1}>(oox::RefVector<oox::xls::PivotTableField>::forEachMem<void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const> >(void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const>&&) const::{lambda(oox::xls::PivotTableField&)#1}) const
Line
Count
Source
60
259
    {
61
259
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
259
    }
void oox::RefVector<oox::xls::PivotTable>::forEach<oox::RefVector<oox::xls::PivotTable>::forEachMem<void (oox::xls::PivotTable::*)()>(void (oox::xls::PivotTable::*)()) const::{lambda(oox::xls::PivotTable&)#1}>(oox::RefVector<oox::xls::PivotTable>::forEachMem<void (oox::xls::PivotTable::*)()>(void (oox::xls::PivotTable::*)()) const::{lambda(oox::xls::PivotTable&)#1}) const
Line
Count
Source
60
227
    {
61
227
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
227
    }
void oox::RefVector<oox::xls::Scenario>::forEach<oox::RefVector<oox::xls::Scenario>::forEachMem<void (oox::xls::Scenario::*)()>(void (oox::xls::Scenario::*)()) const::{lambda(oox::xls::Scenario&)#1}>(oox::RefVector<oox::xls::Scenario>::forEachMem<void (oox::xls::Scenario::*)()>(void (oox::xls::Scenario::*)()) const::{lambda(oox::xls::Scenario&)#1}) const
Line
Count
Source
60
10
    {
61
10
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
10
    }
void oox::RefVector<oox::xls::Font>::forEach<oox::RefVector<oox::xls::Font>::forEachMem<void (oox::xls::Font::*)()>(void (oox::xls::Font::*)()) const::{lambda(oox::xls::Font&)#1}>(oox::RefVector<oox::xls::Font>::forEachMem<void (oox::xls::Font::*)()>(void (oox::xls::Font::*)()) const::{lambda(oox::xls::Font&)#1}) const
Line
Count
Source
60
2.37k
    {
61
2.37k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
2.37k
    }
void oox::RefVector<oox::xls::Border>::forEach<oox::RefVector<oox::xls::Border>::forEachMem<void (oox::xls::Border::*)(bool), bool>(void (oox::xls::Border::*)(bool), bool&&) const::{lambda(oox::xls::Border&)#1}>(oox::RefVector<oox::xls::Border>::forEachMem<void (oox::xls::Border::*)(bool), bool>(void (oox::xls::Border::*)(bool), bool&&) const::{lambda(oox::xls::Border&)#1}) const
Line
Count
Source
60
2.37k
    {
61
2.37k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
2.37k
    }
void oox::RefVector<oox::xls::Fill>::forEach<oox::RefVector<oox::xls::Fill>::forEachMem<void (oox::xls::Fill::*)()>(void (oox::xls::Fill::*)()) const::{lambda(oox::xls::Fill&)#1}>(oox::RefVector<oox::xls::Fill>::forEachMem<void (oox::xls::Fill::*)()>(void (oox::xls::Fill::*)()) const::{lambda(oox::xls::Fill&)#1}) const
Line
Count
Source
60
2.37k
    {
61
2.37k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
2.37k
    }
void oox::RefVector<oox::xls::Xf>::forEach<oox::RefVector<oox::xls::Xf>::forEachMem<void (oox::xls::Xf::*)()>(void (oox::xls::Xf::*)()) const::{lambda(oox::xls::Xf&)#1}>(oox::RefVector<oox::xls::Xf>::forEachMem<void (oox::xls::Xf::*)()>(void (oox::xls::Xf::*)()) const::{lambda(oox::xls::Xf&)#1}) const
Line
Count
Source
60
4.74k
    {
61
4.74k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
4.74k
    }
void oox::RefVector<oox::xls::Dxf>::forEach<oox::RefVector<oox::xls::Dxf>::forEachMem<void (oox::xls::Dxf::*)()>(void (oox::xls::Dxf::*)()) const::{lambda(oox::xls::Dxf&)#1}>(oox::RefVector<oox::xls::Dxf>::forEachMem<void (oox::xls::Dxf::*)()>(void (oox::xls::Dxf::*)()) const::{lambda(oox::xls::Dxf&)#1}) const
Line
Count
Source
60
2.37k
    {
61
2.37k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
2.37k
    }
void oox::RefVector<oox::xls::TableStyle>::forEach<oox::RefVector<oox::xls::TableStyle>::forEachMem<void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&>(void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&) const::{lambda(oox::xls::TableStyle&)#1}>(oox::RefVector<oox::xls::TableStyle>::forEachMem<void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&>(void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&) const::{lambda(oox::xls::TableStyle&)#1}) const
Line
Count
Source
60
2.37k
    {
61
2.37k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
2.37k
    }
void oox::RefVector<oox::xls::QueryTable>::forEach<oox::RefVector<oox::xls::QueryTable>::forEachMem<void (oox::xls::QueryTable::*)()>(void (oox::xls::QueryTable::*)()) const::{lambda(oox::xls::QueryTable&)#1}>(oox::RefVector<oox::xls::QueryTable>::forEachMem<void (oox::xls::QueryTable::*)()>(void (oox::xls::QueryTable::*)()) const::{lambda(oox::xls::QueryTable&)#1}) const
Line
Count
Source
60
5.43k
    {
61
5.43k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
5.43k
    }
Unexecuted instantiation: void oox::RefVector<oox::ole::VbaMacroAttacherBase>::forEach<oox::RefVector<oox::ole::VbaMacroAttacherBase>::forEachMem<void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const> >(void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const>&&) const::{lambda(oox::ole::VbaMacroAttacherBase&)#1}>(oox::RefVector<oox::ole::VbaMacroAttacherBase>::forEachMem<void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const> >(void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const>&&) const::{lambda(oox::ole::VbaMacroAttacherBase&)#1}) const
void oox::RefVector<oox::vml::ShapeBase>::forEach<oox::RefVector<oox::vml::ShapeBase>::forEachMem<void (oox::vml::ShapeBase::*)()>(void (oox::vml::ShapeBase::*)()) const::{lambda(oox::vml::ShapeBase&)#1}>(oox::RefVector<oox::vml::ShapeBase>::forEachMem<void (oox::vml::ShapeBase::*)()>(void (oox::vml::ShapeBase::*)()) const::{lambda(oox::vml::ShapeBase&)#1}) const
Line
Count
Source
60
2.16k
    {
61
2.16k
        forEachWithIndex([&aFunctor](size_type, ObjType& rObj) { aFunctor(rObj); });
62
2.16k
    }
Unexecuted instantiation: void oox::RefVector<oox::ole::VbaFormControl>::forEach<oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>, std::__1::reference_wrapper<oox::StorageBase>, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const> >(void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>&&, std::__1::reference_wrapper<oox::StorageBase>&&, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const>&&) const::{lambda(oox::ole::VbaFormControl&)#1}>(oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>, std::__1::reference_wrapper<oox::StorageBase>, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const> >(void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>&&, std::__1::reference_wrapper<oox::StorageBase>&&, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const>&&) const::{lambda(oox::ole::VbaFormControl&)#1}) const
Unexecuted instantiation: vbacontrol.cxx:void oox::RefVector<oox::ole::VbaFormControl>::forEach<oox::ole::(anonymous namespace)::VbaControlNameInserter>(oox::ole::(anonymous namespace)::VbaControlNameInserter) const
Unexecuted instantiation: void oox::RefVector<oox::ole::VbaFormControl>::forEach<oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const> >(void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const>&&) const::{lambda(oox::ole::VbaFormControl&)#1}>(oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const> >(void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const>&&) const::{lambda(oox::ole::VbaFormControl&)#1}) const
63
64
    /** Calls the passed member function of ObjType on every contained object,
65
        automatically skips all elements that are empty references. */
66
    template <typename FuncType, typename... T> void forEachMem(FuncType pFunc, T&&... args) const
67
28.6k
    {
68
129k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
oox::RefVector<oox::xls::DefinedName>::forEachMem<void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> >(void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo>&&) const::{lambda(oox::xls::DefinedName&)#1}::operator()(oox::xls::DefinedName&) const
Line
Count
Source
68
7.63k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
Unexecuted instantiation: oox::RefVector<oox::xls::PivotTableFilter>::forEachMem<void (oox::xls::PivotTableFilter::*)()>(void (oox::xls::PivotTableFilter::*)()) const::{lambda(oox::xls::PivotTableFilter&)#1}::operator()(oox::xls::PivotTableFilter&) const
oox::RefVector<oox::xls::PivotTableField>::forEachMem<void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const> >(void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const>&&) const::{lambda(oox::xls::PivotTableField&)#1}::operator()(oox::xls::PivotTableField&) const
Line
Count
Source
68
1.22k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
oox::RefVector<oox::xls::PivotTable>::forEachMem<void (oox::xls::PivotTable::*)()>(void (oox::xls::PivotTable::*)()) const::{lambda(oox::xls::PivotTable&)#1}::operator()(oox::xls::PivotTable&) const
Line
Count
Source
68
344
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
oox::RefVector<oox::xls::Scenario>::forEachMem<void (oox::xls::Scenario::*)()>(void (oox::xls::Scenario::*)()) const::{lambda(oox::xls::Scenario&)#1}::operator()(oox::xls::Scenario&) const
Line
Count
Source
68
20
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
oox::RefVector<oox::xls::Font>::forEachMem<void (oox::xls::Font::*)()>(void (oox::xls::Font::*)()) const::{lambda(oox::xls::Font&)#1}::operator()(oox::xls::Font&) const
Line
Count
Source
68
16.0k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
oox::RefVector<oox::xls::Border>::forEachMem<void (oox::xls::Border::*)(bool), bool>(void (oox::xls::Border::*)(bool), bool&&) const::{lambda(oox::xls::Border&)#1}::operator()(oox::xls::Border&) const
Line
Count
Source
68
11.2k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
oox::RefVector<oox::xls::Fill>::forEachMem<void (oox::xls::Fill::*)()>(void (oox::xls::Fill::*)()) const::{lambda(oox::xls::Fill&)#1}::operator()(oox::xls::Fill&) const
Line
Count
Source
68
11.3k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
oox::RefVector<oox::xls::Xf>::forEachMem<void (oox::xls::Xf::*)()>(void (oox::xls::Xf::*)()) const::{lambda(oox::xls::Xf&)#1}::operator()(oox::xls::Xf&) const
Line
Count
Source
68
72.8k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
oox::RefVector<oox::xls::Dxf>::forEachMem<void (oox::xls::Dxf::*)()>(void (oox::xls::Dxf::*)()) const::{lambda(oox::xls::Dxf&)#1}::operator()(oox::xls::Dxf&) const
Line
Count
Source
68
5.88k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
oox::RefVector<oox::xls::TableStyle>::forEachMem<void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&>(void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&) const::{lambda(oox::xls::TableStyle&)#1}::operator()(oox::xls::TableStyle&) const
Line
Count
Source
68
43
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
oox::RefVector<oox::xls::QueryTable>::forEachMem<void (oox::xls::QueryTable::*)()>(void (oox::xls::QueryTable::*)()) const::{lambda(oox::xls::QueryTable&)#1}::operator()(oox::xls::QueryTable&) const
Line
Count
Source
68
32
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
Unexecuted instantiation: oox::RefVector<oox::ole::VbaMacroAttacherBase>::forEachMem<void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const> >(void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const>&&) const::{lambda(oox::ole::VbaMacroAttacherBase&)#1}::operator()(oox::ole::VbaMacroAttacherBase&) const
oox::RefVector<oox::vml::ShapeBase>::forEachMem<void (oox::vml::ShapeBase::*)()>(void (oox::vml::ShapeBase::*)()) const::{lambda(oox::vml::ShapeBase&)#1}::operator()(oox::vml::ShapeBase&) const
Line
Count
Source
68
3.23k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
Unexecuted instantiation: oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>, std::__1::reference_wrapper<oox::StorageBase>, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const> >(void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>&&, std::__1::reference_wrapper<oox::StorageBase>&&, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const>&&) const::{lambda(oox::ole::VbaFormControl&)#1}::operator()(oox::ole::VbaFormControl&) const
Unexecuted instantiation: oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const> >(void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const>&&) const::{lambda(oox::ole::VbaFormControl&)#1}::operator()(oox::ole::VbaFormControl&) const
69
28.6k
    }
void oox::RefVector<oox::xls::DefinedName>::forEachMem<void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> >(void (oox::xls::DefinedName::*)(com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&), com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo>&&) const
Line
Count
Source
67
3.74k
    {
68
3.74k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
3.74k
    }
void oox::RefVector<oox::xls::PivotTableFilter>::forEachMem<void (oox::xls::PivotTableFilter::*)()>(void (oox::xls::PivotTableFilter::*)()) const
Line
Count
Source
67
259
    {
68
259
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
259
    }
void oox::RefVector<oox::xls::PivotTableField>::forEachMem<void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const> >(void (oox::xls::PivotTableField::*)(rtl::Reference<ScDataPilotDescriptorBase> const&), std::__1::reference_wrapper<rtl::Reference<ScDataPilotDescriptorBase> const>&&) const
Line
Count
Source
67
259
    {
68
259
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
259
    }
void oox::RefVector<oox::xls::PivotTable>::forEachMem<void (oox::xls::PivotTable::*)()>(void (oox::xls::PivotTable::*)()) const
Line
Count
Source
67
227
    {
68
227
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
227
    }
void oox::RefVector<oox::xls::Scenario>::forEachMem<void (oox::xls::Scenario::*)()>(void (oox::xls::Scenario::*)()) const
Line
Count
Source
67
10
    {
68
10
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
10
    }
void oox::RefVector<oox::xls::Font>::forEachMem<void (oox::xls::Font::*)()>(void (oox::xls::Font::*)()) const
Line
Count
Source
67
2.37k
    {
68
2.37k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
2.37k
    }
void oox::RefVector<oox::xls::Border>::forEachMem<void (oox::xls::Border::*)(bool), bool>(void (oox::xls::Border::*)(bool), bool&&) const
Line
Count
Source
67
2.37k
    {
68
2.37k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
2.37k
    }
void oox::RefVector<oox::xls::Fill>::forEachMem<void (oox::xls::Fill::*)()>(void (oox::xls::Fill::*)()) const
Line
Count
Source
67
2.37k
    {
68
2.37k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
2.37k
    }
void oox::RefVector<oox::xls::Xf>::forEachMem<void (oox::xls::Xf::*)()>(void (oox::xls::Xf::*)()) const
Line
Count
Source
67
4.74k
    {
68
4.74k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
4.74k
    }
void oox::RefVector<oox::xls::Dxf>::forEachMem<void (oox::xls::Dxf::*)()>(void (oox::xls::Dxf::*)()) const
Line
Count
Source
67
2.37k
    {
68
2.37k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
2.37k
    }
void oox::RefVector<oox::xls::TableStyle>::forEachMem<void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&>(void (oox::xls::TableStyle::*)(oox::RefVector<oox::xls::Dxf> const&), oox::RefVector<oox::xls::Dxf>&) const
Line
Count
Source
67
2.37k
    {
68
2.37k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
2.37k
    }
void oox::RefVector<oox::xls::QueryTable>::forEachMem<void (oox::xls::QueryTable::*)()>(void (oox::xls::QueryTable::*)()) const
Line
Count
Source
67
5.43k
    {
68
5.43k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
5.43k
    }
Unexecuted instantiation: void oox::RefVector<oox::ole::VbaMacroAttacherBase>::forEachMem<void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const> >(void (oox::ole::VbaMacroAttacherBase::*)(com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const&), std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::script::vba::XVBAMacroResolver> const>&&) const
void oox::RefVector<oox::vml::ShapeBase>::forEachMem<void (oox::vml::ShapeBase::*)()>(void (oox::vml::ShapeBase::*)()) const
Line
Count
Source
67
2.16k
    {
68
2.16k
        forEach([pFunc, &args...](ObjType& rObj) { (rObj.*pFunc)(args...); });
69
2.16k
    }
Unexecuted instantiation: void oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>, std::__1::reference_wrapper<oox::StorageBase>, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const> >(void (oox::ole::VbaFormControl::*)(oox::BinaryInputStream&, oox::StorageBase&, std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const&), std::__1::reference_wrapper<oox::BinaryXInputStream>&&, std::__1::reference_wrapper<oox::StorageBase>&&, std::__1::reference_wrapper<std::__1::vector<rtl::OUString, std::__1::allocator<rtl::OUString> > const>&&) const
Unexecuted instantiation: void oox::RefVector<oox::ole::VbaFormControl>::forEachMem<void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const> >(void (oox::ole::VbaFormControl::*)(std::__1::pair<int, int> const&), std::__1::reference_wrapper<std::__1::pair<int, int> const>&&) const
70
71
    /** Calls the passed member function of ObjType on every contained object.
72
        Passes the vector index as first argument to the member function. */
73
    template <typename FuncType, typename... T>
74
    void forEachMemWithIndex(FuncType pFunc, T&&... args) const
75
0
    {
76
0
        forEachWithIndex([pFunc, &args...](size_type i, ObjType& rObj)
77
0
                         { (rObj.*pFunc)(i, args...); });
78
0
    }
79
80
    /** Searches for an element by using the passed functor that takes a
81
        constant reference of the object type (const ObjType&). */
82
    template <typename FunctorType> value_type findIf(const FunctorType& rFunctor) const
83
    {
84
        auto aIt = ::std::find_if(this->begin(), this->end(), [&rFunctor](const value_type& rValue)
85
                                  { return rValue && rFunctor(*rValue); });
86
        return (aIt == this->end()) ? value_type() : *aIt;
87
    }
88
89
private:
90
    template <typename F> void forEachWithIndex(const F& f) const
91
28.6k
    {
92
158k
        for (size_type i = 0; i < this->size(); ++i)
93
129k
            if (const value_type& rValue = (*this)[i])
94
129k
                f(i, *rValue);
95
28.6k
    }
_ZNK3oox9RefVectorINS_3xls11DefinedNameEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvRKN3com3sun4star3uno8SequenceINS9_5sheet16ExternalLinkInfoEEEEJSE_EEEvT_DpOT0_EUlRS2_E_EEvSJ_EUlmSN_E_EEvRKSJ_
Line
Count
Source
91
3.74k
    {
92
11.3k
        for (size_type i = 0; i < this->size(); ++i)
93
7.63k
            if (const value_type& rValue = (*this)[i])
94
7.63k
                f(i, *rValue);
95
3.74k
    }
_ZNK3oox9RefVectorINS_3xls16PivotTableFilterEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvvEJEEEvT_DpOT0_EUlRS2_E_EEvS9_EUlmSD_E_EEvRKS9_
Line
Count
Source
91
259
    {
92
259
        for (size_type i = 0; i < this->size(); ++i)
93
0
            if (const value_type& rValue = (*this)[i])
94
0
                f(i, *rValue);
95
259
    }
_ZNK3oox9RefVectorINS_3xls15PivotTableFieldEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvRKN3rtl9ReferenceI25ScDataPilotDescriptorBaseEEEJNSt3__117reference_wrapperISB_EEEEEvT_DpOT0_EUlRS2_E_EEvSI_EUlmSM_E_EEvRKSI_
Line
Count
Source
91
259
    {
92
1.48k
        for (size_type i = 0; i < this->size(); ++i)
93
1.22k
            if (const value_type& rValue = (*this)[i])
94
1.22k
                f(i, *rValue);
95
259
    }
_ZNK3oox9RefVectorINS_3xls10PivotTableEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvvEJEEEvT_DpOT0_EUlRS2_E_EEvS9_EUlmSD_E_EEvRKS9_
Line
Count
Source
91
227
    {
92
571
        for (size_type i = 0; i < this->size(); ++i)
93
344
            if (const value_type& rValue = (*this)[i])
94
344
                f(i, *rValue);
95
227
    }
_ZNK3oox9RefVectorINS_3xls8ScenarioEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvvEJEEEvT_DpOT0_EUlRS2_E_EEvS9_EUlmSD_E_EEvRKS9_
Line
Count
Source
91
10
    {
92
30
        for (size_type i = 0; i < this->size(); ++i)
93
20
            if (const value_type& rValue = (*this)[i])
94
20
                f(i, *rValue);
95
10
    }
_ZNK3oox9RefVectorINS_3xls4FontEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvvEJEEEvT_DpOT0_EUlRS2_E_EEvS9_EUlmSD_E_EEvRKS9_
Line
Count
Source
91
2.37k
    {
92
18.3k
        for (size_type i = 0; i < this->size(); ++i)
93
16.0k
            if (const value_type& rValue = (*this)[i])
94
16.0k
                f(i, *rValue);
95
2.37k
    }
_ZNK3oox9RefVectorINS_3xls6BorderEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvbEJbEEEvT_DpOT0_EUlRS2_E_EEvS9_EUlmSD_E_EEvRKS9_
Line
Count
Source
91
2.37k
    {
92
13.6k
        for (size_type i = 0; i < this->size(); ++i)
93
11.2k
            if (const value_type& rValue = (*this)[i])
94
11.2k
                f(i, *rValue);
95
2.37k
    }
_ZNK3oox9RefVectorINS_3xls4FillEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvvEJEEEvT_DpOT0_EUlRS2_E_EEvS9_EUlmSD_E_EEvRKS9_
Line
Count
Source
91
2.37k
    {
92
13.7k
        for (size_type i = 0; i < this->size(); ++i)
93
11.3k
            if (const value_type& rValue = (*this)[i])
94
11.3k
                f(i, *rValue);
95
2.37k
    }
_ZNK3oox9RefVectorINS_3xls2XfEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvvEJEEEvT_DpOT0_EUlRS2_E_EEvS9_EUlmSD_E_EEvRKS9_
Line
Count
Source
91
4.74k
    {
92
77.5k
        for (size_type i = 0; i < this->size(); ++i)
93
72.8k
            if (const value_type& rValue = (*this)[i])
94
72.8k
                f(i, *rValue);
95
4.74k
    }
_ZNK3oox9RefVectorINS_3xls3DxfEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvvEJEEEvT_DpOT0_EUlRS2_E_EEvS9_EUlmSD_E_EEvRKS9_
Line
Count
Source
91
2.37k
    {
92
8.25k
        for (size_type i = 0; i < this->size(); ++i)
93
5.88k
            if (const value_type& rValue = (*this)[i])
94
5.88k
                f(i, *rValue);
95
2.37k
    }
_ZNK3oox9RefVectorINS_3xls10TableStyleEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvRKNS0_INS1_3DxfEEEEJRS8_EEEvT_DpOT0_EUlRS2_E_EEvSE_EUlmSI_E_EEvRKSE_
Line
Count
Source
91
2.37k
    {
92
2.41k
        for (size_type i = 0; i < this->size(); ++i)
93
43
            if (const value_type& rValue = (*this)[i])
94
43
                f(i, *rValue);
95
2.37k
    }
_ZNK3oox9RefVectorINS_3xls10QueryTableEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvvEJEEEvT_DpOT0_EUlRS2_E_EEvS9_EUlmSD_E_EEvRKS9_
Line
Count
Source
91
5.43k
    {
92
5.47k
        for (size_type i = 0; i < this->size(); ++i)
93
32
            if (const value_type& rValue = (*this)[i])
94
32
                f(i, *rValue);
95
5.43k
    }
Unexecuted instantiation: _ZNK3oox9RefVectorINS_3ole20VbaMacroAttacherBaseEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvRKN3com3sun4star3uno9ReferenceINS9_6script3vba17XVBAMacroResolverEEEEJNSt3__117reference_wrapperISG_EEEEEvT_DpOT0_EUlRS2_E_EEvSN_EUlmSR_E_EEvRKSN_
_ZNK3oox9RefVectorINS_3vml9ShapeBaseEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvvEJEEEvT_DpOT0_EUlRS2_E_EEvS9_EUlmSD_E_EEvRKS9_
Line
Count
Source
91
2.16k
    {
92
5.39k
        for (size_type i = 0; i < this->size(); ++i)
93
3.23k
            if (const value_type& rValue = (*this)[i])
94
3.23k
                f(i, *rValue);
95
2.16k
    }
Unexecuted instantiation: _ZNK3oox9RefVectorINS_3ole14VbaFormControlEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvRNS_17BinaryInputStreamERNS_11StorageBaseERKNSt3__16vectorIN3rtl8OUStringENSB_9allocatorISE_EEEEEJNSB_17reference_wrapperINS_18BinaryXInputStreamEEENSM_IS9_EENSM_ISI_EEEEEvT_DpOT0_EUlRS2_E_EEvSR_EUlmSV_E_EEvRKSR_
Unexecuted instantiation: void oox::RefVector<oox::ole::VbaFormControl>::forEachWithIndex<oox::RefVector<oox::ole::VbaFormControl>::forEachMemWithIndex<void (oox::ole::VbaFormControl::*)(int, com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> const&, oox::ole::ControlConverter const&) const, std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> const>, std::__1::reference_wrapper<oox::ole::ControlConverter const> >(void (oox::ole::VbaFormControl::*)(int, com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> const&, oox::ole::ControlConverter const&) const, std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> const>&&, std::__1::reference_wrapper<oox::ole::ControlConverter const>&&) const::{lambda(unsigned long, oox::ole::VbaFormControl&)#1}>(oox::RefVector<oox::ole::VbaFormControl>::forEachMemWithIndex<void (oox::ole::VbaFormControl::*)(int, com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> const&, oox::ole::ControlConverter const&) const, std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> const>, std::__1::reference_wrapper<oox::ole::ControlConverter const> >(void (oox::ole::VbaFormControl::*)(int, com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> const&, oox::ole::ControlConverter const&) const, std::__1::reference_wrapper<com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> const>&&, std::__1::reference_wrapper<oox::ole::ControlConverter const>&&) const::{lambda(unsigned long, oox::ole::VbaFormControl&)#1} const&) const
Unexecuted instantiation: vbacontrol.cxx:void oox::RefVector<oox::ole::VbaFormControl>::forEachWithIndex<oox::RefVector<oox::ole::VbaFormControl>::forEach<oox::ole::(anonymous namespace)::VbaControlNameInserter>(oox::ole::(anonymous namespace)::VbaControlNameInserter) const::{lambda(unsigned long, oox::ole::VbaFormControl&)#1}>(oox::RefVector<oox::ole::VbaFormControl>::forEach<oox::ole::(anonymous namespace)::VbaControlNameInserter>(oox::ole::(anonymous namespace)::VbaControlNameInserter) const::{lambda(unsigned long, oox::ole::VbaFormControl&)#1} const&) const
Unexecuted instantiation: _ZNK3oox9RefVectorINS_3ole14VbaFormControlEE16forEachWithIndexIZNKS3_7forEachIZNKS3_10forEachMemIMS2_FvRKNSt3__14pairIiiEEEJNS7_17reference_wrapperISA_EEEEEvT_DpOT0_EUlRS2_E_EEvSG_EUlmSK_E_EEvRKSG_
96
97
    const value_type*   getRef( sal_Int32 nIndex ) const
98
42.9M
                        {
99
42.9M
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
31.9M
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
42.9M
                        }
oox::RefVector<oox::xls::WorksheetBuffer::SheetInfo>::getRef(int) const
Line
Count
Source
98
40.2k
                        {
99
40.2k
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
40.2k
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
40.2k
                        }
Unexecuted instantiation: oox::RefVector<oox::xls::DefinedName>::getRef(int) const
Unexecuted instantiation: oox::RefVector<oox::xls::ExternalName>::getRef(int) const
oox::RefVector<oox::xls::ExternalLink>::getRef(int) const
Line
Count
Source
98
9
                        {
99
9
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
9
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
9
                        }
oox::RefVector<oox::xls::PivotCacheField>::getRef(int) const
Line
Count
Source
98
2.25k
                        {
99
2.25k
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
2.25k
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
2.25k
                        }
oox::RefVector<oox::xls::PivotTableField>::getRef(int) const
Line
Count
Source
98
895
                        {
99
895
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
886
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
895
                        }
oox::RefVector<oox::xls::RichString>::getRef(int) const
Line
Count
Source
98
270k
                        {
99
270k
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
212k
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
270k
                        }
oox::RefVector<oox::xls::Dxf>::getRef(int) const
Line
Count
Source
98
2.37k
                        {
99
2.37k
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
1.41k
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
2.37k
                        }
oox::RefVector<oox::xls::Font>::getRef(int) const
Line
Count
Source
98
189k
                        {
99
189k
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
186k
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
189k
                        }
oox::RefVector<oox::xls::Border>::getRef(int) const
Line
Count
Source
98
53.6k
                        {
99
53.6k
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
53.2k
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
53.6k
                        }
oox::RefVector<oox::xls::Xf>::getRef(int) const
Line
Count
Source
98
42.3M
                        {
99
42.3M
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
31.4M
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
42.3M
                        }
oox::RefVector<oox::xls::Fill>::getRef(int) const
Line
Count
Source
98
21.4k
                        {
99
21.4k
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
21.2k
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
21.4k
                        }
Unexecuted instantiation: oox::RefVector<oox::drawingml::chart::SeriesModel>::getRef(int) const
oox::RefVector<oox::drawingml::FillProperties>::getRef(int) const
Line
Count
Source
98
4.14k
                        {
99
4.14k
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
4.14k
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
4.14k
                        }
oox::RefVector<oox::drawingml::LineProperties>::getRef(int) const
Line
Count
Source
98
1.73k
                        {
99
1.73k
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
1.73k
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
1.73k
                        }
oox::RefVector<oox::drawingml::EffectProperties>::getRef(int) const
Line
Count
Source
98
55
                        {
99
55
                            return ((0 <= nIndex) && (static_cast< size_type >( nIndex ) < this->size())) ?
100
55
                                &(*this)[ static_cast< size_type >( nIndex ) ] : nullptr;
101
55
                        }
Unexecuted instantiation: oox::RefVector<oox::drawingml::chart::TypeGroupModel>::getRef(int) const
102
};
103
104
105
} // namespace oox
106
107
#endif
108
109
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */