Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-17 08:35:02

0001 /*
0002  * Licensed to the Apache Software Foundation (ASF) under one
0003  * or more contributor license agreements. See the NOTICE file
0004  * distributed with this work for additional information
0005  * regarding copyright ownership. The ASF licenses this file
0006  * to you under the Apache License, Version 2.0 (the
0007  * "License"); you may not use this file except in compliance
0008  * with the License. You may obtain a copy of the License at
0009  *
0010  *   http://www.apache.org/licenses/LICENSE-2.0
0011  *
0012  * Unless required by applicable law or agreed to in writing,
0013  * software distributed under the License is distributed on an
0014  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
0015  * KIND, either express or implied. See the License for the
0016  * specific language governing permissions and limitations
0017  * under the License.
0018  */
0019 
0020 #ifndef _THRIFT_TMAP_H_
0021 #define _THRIFT_TMAP_H_
0022 
0023 #include <thrift/protocol/TEnum.h>
0024 
0025 namespace apache {
0026 namespace thrift {
0027 namespace protocol {
0028 
0029 /**
0030  * Helper class that encapsulates map metadata.
0031  *
0032  */
0033 class TMap {
0034 public: 
0035   TMap()
0036     : keyType_(T_STOP),
0037       valueType_(T_STOP),
0038       size_(0) {
0039 
0040   }
0041 
0042   TMap(TType k, TType v, int s)
0043     : keyType_(k),
0044       valueType_(v),
0045       size_(s) {
0046 
0047   }
0048 
0049   TType  keyType_;
0050   TType  valueType_;
0051   int   size_;
0052 };
0053 }
0054 }
0055 } // apache::thrift::protocol
0056 
0057 #endif // #ifndef _THRIFT_TMAP_H_