Panda3D
dcFile.I
1 // Filename: dcFile.I
2 // Created by: drose (10Jan06)
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: DCFile::all_objects_valid
18 // Access: Published
19 // Description: Returns true if all of the classes read from the DC
20 // file were defined and valid, or false if any of them
21 // were undefined ("bogus classes"). If this is true,
22 // we might have read a partial file.
23 ////////////////////////////////////////////////////////////////////
24 INLINE bool DCFile::
26  return _all_objects_valid;
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: DCFile::check_inherited_fields
31 // Access: Public
32 // Description: Rebuilds all of the inherited fields tables, if
33 // necessary.
34 ////////////////////////////////////////////////////////////////////
35 INLINE void DCFile::
37  if (_inherited_fields_stale) {
38  rebuild_inherited_fields();
39  }
40 }
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function: DCFile::mark_inherited_fields_stale
44 // Access: Public
45 // Description: Indicates that something has changed in one or more
46 // of the inheritance chains or the set of fields; the
47 // next time check_inherited_fields() is called, the
48 // inherited fields tables of all classes will be
49 // rebuilt.
50 ////////////////////////////////////////////////////////////////////
51 INLINE void DCFile::
53  _inherited_fields_stale = true;
54 }
void check_inherited_fields()
Rebuilds all of the inherited fields tables, if necessary.
Definition: dcFile.I:36
bool all_objects_valid() const
Returns true if all of the classes read from the DC file were defined and valid, or false if any of t...
Definition: dcFile.I:25
void mark_inherited_fields_stale()
Indicates that something has changed in one or more of the inheritance chains or the set of fields; t...
Definition: dcFile.I:52