LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/ary/idl - i_typedef.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 35 35 100.0 %
Date: 2012-12-27 Functions: 17 17 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_typedef.hxx>
      22             : #include <ary/idl/ik_typedef.hxx>
      23             : 
      24             : 
      25             : // NOT FULLY DECLARED SERVICES
      26             : #include <cosv/tpl/processor.hxx>
      27             : #include <sci_impl.hxx>
      28             : #include "i2s_calculator.hxx"
      29             : 
      30             : 
      31             : namespace ary
      32             : {
      33             : namespace idl
      34             : {
      35             : 
      36             : 
      37          18 : Typedef::Typedef( const String &      i_sName,
      38             :                   Ce_id               i_nOwner,
      39             :                   Type_id             i_nDefiningType )
      40             :     :   sName(i_sName),
      41             :         nOwner(i_nOwner),
      42          18 :         nDefiningType(i_nDefiningType)
      43             : {
      44          18 : }
      45             : 
      46          36 : Typedef::~Typedef()
      47             : {
      48          36 : }
      49             : 
      50             : void
      51          36 : Typedef::do_Accept( csv::ProcessorIfc & io_processor ) const
      52             : {
      53          36 :     csv::CheckedCall(io_processor, *this);
      54          36 : }
      55             : 
      56             : ClassId
      57         316 : Typedef::get_AryClass() const
      58             : {
      59         316 :     return class_id;
      60             : }
      61             : 
      62             : const String &
      63        1496 : Typedef::inq_LocalName() const
      64             : {
      65        1496 :     return sName;
      66             : }
      67             : 
      68             : Ce_id
      69         418 : Typedef::inq_NameRoom() const
      70             : {
      71         418 :     return nOwner;
      72             : }
      73             : 
      74             : Ce_id
      75          36 : Typedef::inq_Owner() const
      76             : {
      77          36 :     return nOwner;
      78             : }
      79             : 
      80             : E_SightLevel
      81         450 : Typedef::inq_SightLevel() const
      82             : {
      83         450 :     return sl_File;
      84             : }
      85             : 
      86             : 
      87             : namespace ifc_typedef
      88             : {
      89             : 
      90             : inline const Typedef &
      91          18 : typedef_cast( const CodeEntity & i_ce )
      92             : {
      93             :     csv_assert( i_ce.AryClass() == Typedef::class_id );
      94          18 :     return static_cast< const Typedef& >(i_ce);
      95             : }
      96             : 
      97             : Type_id
      98          18 : attr::DefiningType( const CodeEntity & i_ce )
      99             : {
     100          18 :     return typedef_cast(i_ce).nDefiningType;
     101             : }
     102             : 
     103             : 
     104             : void
     105          18 : xref::Get_SynonymTypedefs( Dyn_CeIterator &    o_result,
     106             :                            const CodeEntity &  i_ce )
     107             : {
     108          18 :     o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(typedef_2s_SynonymTypedefs));
     109          18 : }
     110             : 
     111             : void
     112          18 : xref::Get_AsReturns( Dyn_CeIterator &    o_result,
     113             :                      const CodeEntity &  i_ce )
     114             : {
     115          18 :     o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(typedef_2s_AsReturns));
     116          18 : }
     117             : 
     118             : void
     119          18 : xref::Get_AsParameters( Dyn_CeIterator &    o_result,
     120             :                         const CodeEntity &  i_ce )
     121             : {
     122          18 :     o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(typedef_2s_AsParameters));
     123          18 : }
     124             : 
     125             : void
     126          18 : xref::Get_AsDataTypes( Dyn_CeIterator &    o_result,
     127             :                        const CodeEntity &  i_ce )
     128             : {
     129          18 :     o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(typedef_2s_AsDataTypes));
     130          18 : }
     131             : 
     132             : } // namespace ifc_typedef
     133             : 
     134             : 
     135             : 
     136             : }   //  namespace   idl
     137           3 : }   //  namespace   ary
     138             : 
     139             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10