eggCharacterDb.I 875 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * PANDA 3D SOFTWARE
  3. * Copyright (c) Carnegie Mellon University. All rights reserved.
  4. *
  5. * All use of this software is subject to the terms of the revised BSD
  6. * license. You should have received a copy of this license along
  7. * with this source code in a file named "LICENSE."
  8. *
  9. * @file eggCharacterDb.I
  10. * @author drose
  11. * @date 2006-10-05
  12. */
  13. /**
  14. *
  15. */
  16. INLINE EggCharacterDb::Key::
  17. Key(const EggJointPointer *joint, TableType table_type, int frame) :
  18. _joint(joint),
  19. _table_type(table_type),
  20. _frame(frame)
  21. {
  22. }
  23. /**
  24. * Provides an arbitrary unique ordering for all keys.
  25. */
  26. INLINE bool EggCharacterDb::Key::
  27. operator < (const EggCharacterDb::Key &other) const {
  28. if (_joint != other._joint) {
  29. return _joint < other._joint;
  30. }
  31. if (_table_type != other._table_type) {
  32. return _table_type < other._table_type;
  33. }
  34. return _frame < other._frame;
  35. }