Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/hashVal.h

Go to the documentation of this file.
00001 // Filename: hashVal.h
00002 // Created by:  drose (14Nov00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef HASHVAL_H
00020 #define HASHVAL_H
00021 
00022 #include <pandabase.h>
00023 #include "typedef.h"
00024 #include <notify.h>
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : HashVal
00028 // Description : A sixteen-byte hash value sent to the crypt library.
00029 ////////////////////////////////////////////////////////////////////
00030 class EXPCL_PANDAEXPRESS HashVal {
00031 PUBLISHED:
00032   INLINE HashVal();
00033   INLINE HashVal(const HashVal &copy);
00034 
00035   INLINE bool operator == (const HashVal &other) const;
00036   INLINE bool operator != (const HashVal &other) const;
00037   INLINE uint get_value(int val) const;
00038   INLINE void set_value(int val, uint hash);
00039   INLINE void output(ostream &out) const;
00040   string as_string() const;
00041 
00042 public:
00043   uint hv[4];
00044 };
00045 
00046 INLINE ostream &operator << (ostream &out, const HashVal &hv) {
00047   out << "[";
00048   hv.output(out);
00049   out << "]";
00050   return out;
00051 }
00052 
00053 #include "hashVal.I"
00054 
00055 #endif

Generated on Fri May 2 00:38:23 2003 for Panda by doxygen1.3