LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/ary/idl - it_xnameroom.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 13 13 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             : #ifndef ARY_IDL_IT_XNAMEROOM_HXX
      21             : #define ARY_IDL_IT_XNAMEROOM_HXX
      22             : 
      23             : // BASE CLASSES
      24             : #include <ary/idl/i_type.hxx>
      25             : #include <nametreenode.hxx>
      26             : 
      27             : 
      28             : 
      29             : 
      30             : namespace ary
      31             : {
      32             : namespace idl
      33             : {
      34             : 
      35             : 
      36             : /** A namespace for ->Type s, as they are explicitly written in code.
      37             : 
      38             :     The search/identification string is usually the local name of
      39             :     the Type. But for templated structs, the search string has this
      40             :     pattern:
      41             :                 <LocalName> '<' <StringOfTemplateTypeId>
      42             : */
      43             : class ExplicitNameRoom : public Type
      44             : {
      45             :   public:
      46             :     enum E_ClassId { class_id = 2204 };
      47             : 
      48             :     // LIFECYCLE
      49             :                         ExplicitNameRoom();
      50             :                         ExplicitNameRoom(
      51             :                             const String &      i_sName,
      52             :                             const ExplicitNameRoom &
      53             :                                                 i_rParent );
      54             :     virtual             ~ExplicitNameRoom();
      55             : 
      56             :     // OPERATIONS
      57             :     /** @param i_sSearchString
      58             :                 A local type name  usually.
      59             :                 For templated types see class docu.
      60             :         @see ExplicitNameRoom
      61             :     */
      62        4718 :     void                Add_Name(
      63             :                             const String &      i_sSearchString,
      64             :                             Type_id             i_nId )
      65        4718 :                             { aImpl.Add_Name(i_sSearchString,i_nId); }
      66             :     // INQUIRY
      67         989 :     const String &      Name() const            { return aImpl.Name(); }
      68        3700 :     intt                Depth() const           { return aImpl.Depth(); }
      69             :     void                Get_FullName(
      70             :                             StringVector &      o_rText,
      71             :                             Ce_idList *         o_pRelatedCes,
      72             :                             const Gate &        i_rGate ) const;
      73        3700 :     bool                IsAbsolute() const      { return Depth() > 0
      74        8968 :                                                     ?   (*NameChain_Begin()).empty()
      75       12668 :                                                     :   false; }
      76             :     /** @param i_sSearchString
      77             :                 A local type name  usually.
      78             :                 For templated types see class docu.
      79             :         @see ExplicitNameRoom
      80             :     */
      81       79902 :     Type_id             Search_Name(
      82             :                             const String &      i_sSearchString ) const
      83       79902 :                             { return aImpl.Search_Name(i_sSearchString); }
      84             : 
      85             :     StringVector::const_iterator
      86        6341 :                         NameChain_Begin() const
      87        6341 :                             { return aImpl.NameChain_Begin(); }
      88             :     StringVector::const_iterator
      89        3742 :                         NameChain_End() const
      90        3742 :                             { return aImpl.NameChain_End(); }
      91             :   private:
      92             :     // Interface csv::ConstProcessorClient:
      93             :     virtual void        do_Accept(
      94             :                             csv::ProcessorIfc & io_processor ) const;
      95             :     // Interface Object:
      96             :     virtual ClassId     get_AryClass() const;
      97             : 
      98             :     // Interface Type:
      99             :     virtual void        inq_Get_Text(
     100             :                             StringVector &      o_module,
     101             :                             String &            o_name,
     102             :                             Ce_id &             o_nRelatedCe,
     103             :                             int &               o_nSequemceCount,
     104             :                             const Gate &        i_rGate ) const;
     105             :     // DATA
     106             :     NameTreeNode<Type_id>
     107             :                         aImpl;
     108             : };
     109             : 
     110             : 
     111             : 
     112             : 
     113             : }   // namespace idl
     114             : }   // namespace ary
     115             : #endif
     116             : 
     117             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10