Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:27:24

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/KeyRefPair.hpp>
0028 #endif
0029 
0030 XERCES_CPP_NAMESPACE_BEGIN
0031 
0032 // ---------------------------------------------------------------------------
0033 //  KeyRefPair: Constructors and Destructor
0034 // ---------------------------------------------------------------------------
0035 template <class TKey, class TValue> KeyRefPair<TKey,TValue>::KeyRefPair()
0036 {
0037 }
0038 
0039 template <class TKey, class TValue> KeyRefPair<TKey,TValue>::
0040 KeyRefPair(TKey* key, TValue* value) :
0041 
0042     fKey(key)
0043     , fValue(value)
0044 {
0045 }
0046 
0047 template <class TKey, class TValue> KeyRefPair<TKey,TValue>::
0048 KeyRefPair(const KeyRefPair<TKey,TValue>* toCopy) :
0049 
0050     fKey(toCopy->fKey)
0051     , fValue(toCopy->fValue)
0052 {
0053 }
0054 
0055 template <class TKey, class TValue> KeyRefPair<TKey,TValue>::
0056 KeyRefPair(const KeyRefPair<TKey,TValue>& toCopy) :
0057 
0058     fKey(toCopy.fKey)
0059     , fValue(toCopy.fValue)
0060 {
0061 }
0062 
0063 
0064 template <class TKey, class TValue> KeyRefPair<TKey,TValue>::~KeyRefPair()
0065 {
0066 }
0067 
0068 
0069 // ---------------------------------------------------------------------------
0070 //  KeyRefPair: Getters
0071 // ---------------------------------------------------------------------------
0072 template <class TKey, class TValue> const TKey*
0073 KeyRefPair<TKey,TValue>::getKey() const
0074 {
0075     return fKey;
0076 
0077 }
0078 
0079 template <class TKey, class TValue> TKey* KeyRefPair<TKey,TValue>::getKey()
0080 {
0081     return fKey;
0082 }
0083 
0084 template <class TKey, class TValue> const TValue*
0085 KeyRefPair<TKey,TValue>::getValue() const
0086 {
0087     return fValue;
0088 }
0089 
0090 template <class TKey, class TValue> TValue* KeyRefPair<TKey,TValue>::getValue()
0091 {
0092     return fValue;
0093 }
0094 
0095 
0096 // ---------------------------------------------------------------------------
0097 //  KeyRefPair: Setters
0098 // ---------------------------------------------------------------------------
0099 template <class TKey, class TValue> TKey*
0100 KeyRefPair<TKey,TValue>::setKey(TKey* newKey)
0101 {
0102     fKey = newKey;
0103     return fKey;
0104 }
0105 
0106 template <class TKey, class TValue> TValue*
0107 KeyRefPair<TKey,TValue>::setValue(TValue* newValue)
0108 {
0109     fValue = newValue;
0110     return fValue;
0111 }
0112 
0113 XERCES_CPP_NAMESPACE_END