• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

Hash.h

Go to the documentation of this file.
00001 /** @file
00002 
00003   @section license License
00004 
00005   Licensed to the Apache Software Foundation (ASF) under one
00006   or more contributor license agreements.  See the NOTICE file
00007   distributed with this work for additional information
00008   regarding copyright ownership.  The ASF licenses this file
00009   to you under the Apache License, Version 2.0 (the
00010   "License"); you may not use this file except in compliance
00011   with the License.  You may obtain a copy of the License at
00012 
00013       http://www.apache.org/licenses/LICENSE-2.0
00014 
00015   Unless required by applicable law or agreed to in writing, software
00016   distributed under the License is distributed on an "AS IS" BASIS,
00017   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00018   See the License for the specific language governing permissions and
00019   limitations under the License.
00020  */
00021 
00022 #ifndef __HASH_H__
00023 #define __HASH_H__
00024 
00025 #include <cstddef>
00026 #include <stdint.h>
00027 
00028 struct ATSHashBase
00029 {
00030   virtual void update(const void *, size_t) = 0;
00031   virtual void final(void) = 0;
00032   virtual void clear(void) = 0;
00033   virtual ~ATSHashBase();
00034 };
00035 
00036 struct ATSHash:ATSHashBase
00037 {
00038   virtual const void *get(void) const = 0;
00039   virtual size_t size(void) const = 0;
00040   virtual bool operator==(const ATSHash &) const;
00041 };
00042 
00043 struct ATSHash32:ATSHashBase
00044 {
00045   virtual uint32_t get(void) const = 0;
00046   virtual bool operator==(const ATSHash32 &) const;
00047 };
00048 
00049 struct ATSHash64:ATSHashBase
00050 {
00051   virtual uint64_t get(void) const = 0;
00052   virtual bool operator==(const ATSHash64 &) const;
00053 };
00054 
00055 #endif

Generated by  doxygen 1.7.1