xref: /aoo42x/main/autodoc/source/ary/idl/i_ce2s.cxx (revision d291ea28)
1*d291ea28SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*d291ea28SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*d291ea28SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*d291ea28SAndrew Rist  * distributed with this work for additional information
6*d291ea28SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*d291ea28SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*d291ea28SAndrew Rist  * "License"); you may not use this file except in compliance
9*d291ea28SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*d291ea28SAndrew Rist  *
11*d291ea28SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*d291ea28SAndrew Rist  *
13*d291ea28SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*d291ea28SAndrew Rist  * software distributed under the License is distributed on an
15*d291ea28SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d291ea28SAndrew Rist  * KIND, either express or implied.  See the License for the
17*d291ea28SAndrew Rist  * specific language governing permissions and limitations
18*d291ea28SAndrew Rist  * under the License.
19*d291ea28SAndrew Rist  *
20*d291ea28SAndrew Rist  *************************************************************/
21cdf0e10cSrcweir 
22cdf0e10cSrcweir #include <precomp.h>
23cdf0e10cSrcweir #include <ary/idl/i_ce.hxx>
24cdf0e10cSrcweir 
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
27cdf0e10cSrcweir #include <cosv/tpl/tpltools.hxx>
28cdf0e10cSrcweir #include <ary/doc/d_oldidldocu.hxx>
29cdf0e10cSrcweir #include <ary/getncast.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir 
32cdf0e10cSrcweir namespace ary
33cdf0e10cSrcweir {
34cdf0e10cSrcweir namespace idl
35cdf0e10cSrcweir {
36cdf0e10cSrcweir 
37cdf0e10cSrcweir namespace
38cdf0e10cSrcweir {
39cdf0e10cSrcweir const std::vector<Ce_id> C_sNullVector_Ce_ids;
40cdf0e10cSrcweir }
41cdf0e10cSrcweir 
42cdf0e10cSrcweir 
~Ce_2s()43cdf0e10cSrcweir Ce_2s::~Ce_2s()
44cdf0e10cSrcweir {
45cdf0e10cSrcweir     csv::erase_container_of_heap_ptrs(aXrefLists);
46cdf0e10cSrcweir }
47cdf0e10cSrcweir 
48cdf0e10cSrcweir DYN Ce_2s *
Create_(ClassId)49cdf0e10cSrcweir Ce_2s::Create_( ClassId )
50cdf0e10cSrcweir {
51cdf0e10cSrcweir     return new Ce_2s;
52cdf0e10cSrcweir }
53cdf0e10cSrcweir 
54cdf0e10cSrcweir 
55cdf0e10cSrcweir std::vector<Ce_id> &
Access_List(int i_indexOfList)56cdf0e10cSrcweir Ce_2s::Access_List( int i_indexOfList )
57cdf0e10cSrcweir {
58cdf0e10cSrcweir     csv_assert(i_indexOfList >= 0 AND i_indexOfList < 1000);
59cdf0e10cSrcweir 
60cdf0e10cSrcweir     while (i_indexOfList >= (int) aXrefLists.size())
61cdf0e10cSrcweir     {
62cdf0e10cSrcweir         aXrefLists.push_back(new std::vector<Ce_id>);
63cdf0e10cSrcweir     }
64cdf0e10cSrcweir     return *aXrefLists[i_indexOfList];
65cdf0e10cSrcweir }
66cdf0e10cSrcweir 
67cdf0e10cSrcweir const std::vector<Ce_id> &
List(int i_indexOfList) const68cdf0e10cSrcweir Ce_2s::List( int i_indexOfList ) const
69cdf0e10cSrcweir {
70cdf0e10cSrcweir     if (uintt(i_indexOfList) < aXrefLists.size())
71cdf0e10cSrcweir         return *aXrefLists[i_indexOfList];
72cdf0e10cSrcweir     else
73cdf0e10cSrcweir         return C_sNullVector_Ce_ids;
74cdf0e10cSrcweir }
75cdf0e10cSrcweir 
76cdf0e10cSrcweir 
77cdf0e10cSrcweir }   // namespace idl
78cdf0e10cSrcweir }   // namespace ary
79