hashGeneratorBase.I 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Filename: hashGeneratorBase.I
  2. // Created by: drose (14May01)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. ////////////////////////////////////////////////////////////////////
  19. // Function: HashGeneratorBase::Constructor
  20. // Access: Public
  21. // Description:
  22. ////////////////////////////////////////////////////////////////////
  23. INLINE HashGeneratorBase::
  24. HashGeneratorBase() {
  25. _hash = 0;
  26. }
  27. ////////////////////////////////////////////////////////////////////
  28. // Function: HashGeneratorBase::Destructor
  29. // Access: Public
  30. // Description:
  31. ////////////////////////////////////////////////////////////////////
  32. INLINE HashGeneratorBase::
  33. ~HashGeneratorBase() {
  34. }
  35. ////////////////////////////////////////////////////////////////////
  36. // Function: HashGeneratorBase::get_hash
  37. // Access: Public
  38. // Description: Returns the hash number generated.
  39. ////////////////////////////////////////////////////////////////////
  40. INLINE size_t HashGeneratorBase::
  41. get_hash() const {
  42. return _hash;
  43. }