Panda3D
 All Classes Functions Variables Enumerations
eggCharacterDb.I
1 // Filename: eggCharacterDb.I
2 // Created by: drose (05Oct06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: EggCharacterDb::Key::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE EggCharacterDb::Key::
22 Key(const EggJointPointer *joint, TableType table_type, int frame) :
23  _joint(joint),
24  _table_type(table_type),
25  _frame(frame)
26 {
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: EggCharacterDb::Key::operator <
31 // Access: Public
32 // Description: Provides an arbitrary unique ordering for all keys.
33 ////////////////////////////////////////////////////////////////////
34 INLINE bool EggCharacterDb::Key::
35 operator < (const EggCharacterDb::Key &other) const {
36  if (_joint != other._joint) {
37  return _joint < other._joint;
38  }
39  if (_table_type != other._table_type) {
40  return _table_type < other._table_type;
41  }
42  return _frame < other._frame;
43 }
This is a base class for EggJointNodePointer and EggMatrixTablePointer.