LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/ary/idl - i_ce2s.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 15 15 100.0 %
Date: 2012-12-27 Functions: 7 7 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #include <precomp.h>
      21             : #include <ary/idl/i_ce.hxx>
      22             : 
      23             : 
      24             : // NOT FULLY DEFINED SERVICES
      25             : #include <cosv/tpl/tpltools.hxx>
      26             : #include <ary/doc/d_oldidldocu.hxx>
      27             : #include <ary/getncast.hxx>
      28             : 
      29             : 
      30             : namespace ary
      31             : {
      32             : namespace idl
      33             : {
      34             : 
      35             : namespace
      36             : {
      37           1 : const std::vector<Ce_id> C_sNullVector_Ce_ids;
      38             : }
      39             : 
      40             : 
      41       58581 : Ce_2s::~Ce_2s()
      42             : {
      43       19527 :     csv::erase_container_of_heap_ptrs(aXrefLists);
      44       39054 : }
      45             : 
      46             : DYN Ce_2s *
      47       19527 : Ce_2s::Create_()
      48             : {
      49       19527 :     return new Ce_2s;
      50             : }
      51             : 
      52             : 
      53             : std::vector<Ce_id> &
      54       39497 : Ce_2s::Access_List( int i_indexOfList )
      55             : {
      56             :     csv_assert(i_indexOfList >= 0 AND i_indexOfList < 1000);
      57             : 
      58       85754 :     while (i_indexOfList >= (int) aXrefLists.size())
      59             :     {
      60        6760 :         aXrefLists.push_back(new std::vector<Ce_id>);
      61             :     }
      62       39497 :     return *aXrefLists[i_indexOfList];
      63             : }
      64             : 
      65             : const std::vector<Ce_id> &
      66       20379 : Ce_2s::List( int i_indexOfList ) const
      67             : {
      68       20379 :     if (uintt(i_indexOfList) < aXrefLists.size())
      69        9367 :         return *aXrefLists[i_indexOfList];
      70             :     else
      71       11012 :         return C_sNullVector_Ce_ids;
      72             : }
      73             : 
      74             : 
      75             : }   // namespace idl
      76           3 : }   // namespace ary
      77             : 
      78             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10