Panda3D

eggCharacterDb.I
Go to the documentation of this file.
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 */
17 INLINE EggCharacterDb::Key::
18 Key(const EggJointPointer *joint, TableType table_type, int frame) :
19 _joint(joint),
20 _table_type(table_type),
21 _frame(frame)
22 {
23 }
24
25 /**
26 * Provides an arbitrary unique ordering for all keys.
27 */
28 INLINE bool EggCharacterDb::Key::
29 operator < (const EggCharacterDb::Key &other) const {
30 if (_joint != other._joint) {
31 return _joint < other._joint;
32 }
33 if (_table_type != other._table_type) {
34 return _table_type < other._table_type;
35 }
36 return _frame < other._frame;
37 }
EggJointPointer
This is a base class for EggJointNodePointer and EggMatrixTablePointer.
Definition: eggJointPointer.h:31