secureswitools/swisistools/source/xmlparser/xerces/include/xercesc/util/KeyRefPair.hpp
changeset 0 ba25891c3a9e
child 1 c42dffbd5b4f
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 /*
       
    18  * Licensed to the Apache Software Foundation (ASF) under one or more
       
    19  * contributor license agreements.  See the NOTICE file distributed with
       
    20  * this work for additional information regarding copyright ownership.
       
    21  * The ASF licenses this file to You under the Apache License, Version 2.0
       
    22  * (the "License"); you may not use this file except in compliance with
       
    23  * the License.  You may obtain a copy of the License at
       
    24  * 
       
    25  *      http://www.apache.org/licenses/LICENSE-2.0
       
    26  * 
       
    27  * Unless required by applicable law or agreed to in writing, software
       
    28  * distributed under the License is distributed on an "AS IS" BASIS,
       
    29  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    30  * See the License for the specific language governing permissions and
       
    31  * limitations under the License.
       
    32  */
       
    33 
       
    34 /*
       
    35  * $Id: KeyRefPair.hpp 568078 2007-08-21 11:43:25Z amassari $
       
    36  */
       
    37 
       
    38 #if !defined(KEYREFPAIR_HPP)
       
    39 #define KEYREFPAIR_HPP
       
    40 
       
    41 
       
    42 #include <xercesc/util/XMemory.hpp>
       
    43 
       
    44 XERCES_CPP_NAMESPACE_BEGIN
       
    45 
       
    46 template <class TKey, class TValue> class KeyRefPair : public XMemory
       
    47 {
       
    48     public  :
       
    49         // -------------------------------------------------------------------
       
    50         //  Constructors and Destructor
       
    51         // -------------------------------------------------------------------
       
    52         KeyRefPair();
       
    53         KeyRefPair(TKey* key, TValue* value);
       
    54         KeyRefPair(const KeyRefPair<TKey,TValue>* toCopy);
       
    55         KeyRefPair(const KeyRefPair<TKey,TValue>& toCopy);
       
    56         ~KeyRefPair();
       
    57 
       
    58 
       
    59         // -------------------------------------------------------------------
       
    60         //  Getters
       
    61         // -------------------------------------------------------------------
       
    62         const TKey* getKey() const;
       
    63         TKey* getKey();
       
    64         const TValue* getValue() const;
       
    65         TValue* getValue();
       
    66 
       
    67 
       
    68         // -------------------------------------------------------------------
       
    69         //  Setters
       
    70         // -------------------------------------------------------------------
       
    71         TKey* setKey(TKey* newKey);
       
    72         TValue* setValue(TValue* newValue);
       
    73 
       
    74 
       
    75     private :
       
    76         // unimplemented:        
       
    77         KeyRefPair<TKey,TValue>& operator=(const KeyRefPair<TKey,TValue>&);
       
    78         // -------------------------------------------------------------------
       
    79         //  Private data members
       
    80         //
       
    81         //  fKey
       
    82         //      The object that represents the key of the pair
       
    83         //
       
    84         //  fValue
       
    85         //      The object that represents the value of the pair
       
    86         // -------------------------------------------------------------------
       
    87         TKey*    fKey;
       
    88         TValue*  fValue;
       
    89 };
       
    90 
       
    91 XERCES_CPP_NAMESPACE_END
       
    92 
       
    93 #if !defined(XERCES_TMPLSINC)
       
    94 #include <xercesc/util/KeyRefPair.c>
       
    95 #endif
       
    96 
       
    97 #endif