1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 #include <precomp.h> 23 #include <ary/idl/i_traits.hxx> 24 25 26 // NOT FULLY DEFINED SERVICES 27 #include <ary/namesort.hxx> 28 #include "is_ce.hxx" 29 30 31 32 namespace ary 33 { 34 namespace idl 35 { 36 37 38 39 //******************** Ce_Traits ********************// 40 Ce_Traits::entity_base_type & EntityOf_(id_type i_id)41Ce_Traits::EntityOf_(id_type i_id) 42 { 43 csv_assert(i_id.IsValid()); 44 return Ce_Storage::Instance_()[i_id]; 45 } 46 47 //******************** Ce_Compare ********************// 48 const Ce_Compare::key_type & KeyOf_(const entity_base_type & i_entity)49Ce_Compare::KeyOf_(const entity_base_type & i_entity) 50 { 51 return i_entity.LocalName(); 52 } 53 54 bool Lesser_(const key_type & i_1,const key_type & i_2)55Ce_Compare::Lesser_( const key_type & i_1, 56 const key_type & i_2 ) 57 { 58 static ::ary::LesserName less_; 59 return less_(i_1,i_2); 60 } 61 62 63 64 65 } // namespace idl 66 } // namespace ary 67