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_traits.hxx>
22 :
23 :
24 : // NOT FULLY DEFINED SERVICES
25 : #include <ary/namesort.hxx>
26 : #include "is_ce.hxx"
27 :
28 :
29 :
30 : namespace ary
31 : {
32 : namespace idl
33 : {
34 :
35 :
36 :
37 : //******************** Ce_Traits ********************//
38 : Ce_Traits::entity_base_type &
39 484808 : Ce_Traits::EntityOf_(id_type i_id)
40 : {
41 : csv_assert(i_id.IsValid());
42 484808 : return Ce_Storage::Instance_()[i_id];
43 : }
44 :
45 : //******************** Ce_Compare ********************//
46 : const Ce_Compare::key_type &
47 484808 : Ce_Compare::KeyOf_(const entity_base_type & i_entity)
48 : {
49 484808 : return i_entity.LocalName();
50 : }
51 :
52 : bool
53 242404 : Ce_Compare::Lesser_( const key_type & i_1,
54 : const key_type & i_2 )
55 : {
56 : static ::ary::LesserName less_;
57 242404 : return less_(i_1,i_2);
58 : }
59 :
60 :
61 :
62 :
63 : } // namespace idl
64 3 : } // namespace ary
65 :
66 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|