Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:15:12

0001 /*
0002  * Licensed to the Apache Software Foundation (ASF) under one or more
0003  * contributor license agreements.  See the NOTICE file distributed with
0004  * this work for additional information regarding copyright ownership.
0005  * The ASF licenses this file to You under the Apache License, Version 2.0
0006  * (the "License"); you may not use this file except in compliance with
0007  * the License.  You may obtain a copy of the License at
0008  * 
0009  *      http://www.apache.org/licenses/LICENSE-2.0
0010  * 
0011  * Unless required by applicable law or agreed to in writing, software
0012  * distributed under the License is distributed on an "AS IS" BASIS,
0013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0014  * See the License for the specific language governing permissions and
0015  * limitations under the License.
0016  */
0017 
0018 /*
0019  * $Id$
0020  */
0021 
0022 
0023 // ---------------------------------------------------------------------------
0024 //  Include
0025 // ---------------------------------------------------------------------------
0026 #if defined(XERCES_TMPLSINC)
0027 #include <xercesc/util/KeyValuePair.hpp>
0028 #endif
0029 
0030 XERCES_CPP_NAMESPACE_BEGIN
0031 
0032 // ---------------------------------------------------------------------------
0033 //  KeyValuePair: Constructors and Destructor
0034 // ---------------------------------------------------------------------------
0035 template <class TKey, class TValue> KeyValuePair<TKey,TValue>::KeyValuePair()
0036 {
0037 }
0038 
0039 template <class TKey, class TValue> KeyValuePair<TKey,TValue>::
0040 KeyValuePair(const TKey& key, const TValue& value) :
0041 
0042     fKey(key)
0043     , fValue(value)
0044 {
0045 }
0046 
0047 template <class TKey, class TValue> KeyValuePair<TKey,TValue>::
0048 KeyValuePair(const KeyValuePair<TKey,TValue>& toCopy) :
0049 
0050     fKey(toCopy.fKey)
0051     , fValue(toCopy.fValue)
0052 {
0053 }
0054 
0055 template <class TKey, class TValue> KeyValuePair<TKey,TValue>::~KeyValuePair()
0056 {
0057 }
0058 
0059 
0060 // ---------------------------------------------------------------------------
0061 //  KeyValuePair: Getters
0062 // ---------------------------------------------------------------------------
0063 template <class TKey, class TValue> const TKey&
0064 KeyValuePair<TKey,TValue>::getKey() const
0065 {
0066     return fKey;
0067 
0068 }
0069 
0070 template <class TKey, class TValue> TKey& KeyValuePair<TKey,TValue>::getKey()
0071 {
0072     return fKey;
0073 }
0074 
0075 template <class TKey, class TValue> const TValue&
0076 KeyValuePair<TKey,TValue>::getValue() const
0077 {
0078     return fValue;
0079 }
0080 
0081 template <class TKey, class TValue> TValue& KeyValuePair<TKey,TValue>::getValue()
0082 {
0083     return fValue;
0084 }
0085 
0086 
0087 // ---------------------------------------------------------------------------
0088 //  KeyValuePair: Setters
0089 // ---------------------------------------------------------------------------
0090 template <class TKey, class TValue> TKey&
0091 KeyValuePair<TKey,TValue>::setKey(const TKey& newKey)
0092 {
0093     fKey = newKey;
0094     return fKey;
0095 }
0096 
0097 template <class TKey, class TValue> TValue&
0098 KeyValuePair<TKey,TValue>::setValue(const TValue& newValue)
0099 {
0100     fValue = newValue;
0101     return fValue;
0102 }
0103 
0104 XERCES_CPP_NAMESPACE_END