00001 // Filename: dcFile.I 00002 // Created by: drose (10Jan06) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: DCFile::all_objects_valid 00018 // Access: Published 00019 // Description: Returns true if all of the classes read from the DC 00020 // file were defined and valid, or false if any of them 00021 // were undefined ("bogus classes"). If this is true, 00022 // we might have read a partial file. 00023 //////////////////////////////////////////////////////////////////// 00024 INLINE bool DCFile:: 00025 all_objects_valid() const { 00026 return _all_objects_valid; 00027 } 00028 00029 //////////////////////////////////////////////////////////////////// 00030 // Function: DCFile::check_inherited_fields 00031 // Access: Public 00032 // Description: Rebuilds all of the inherited fields tables, if 00033 // necessary. 00034 //////////////////////////////////////////////////////////////////// 00035 INLINE void DCFile:: 00036 check_inherited_fields() { 00037 if (_inherited_fields_stale) { 00038 rebuild_inherited_fields(); 00039 } 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function: DCFile::mark_inherited_fields_stale 00044 // Access: Public 00045 // Description: Indicates that something has changed in one or more 00046 // of the inheritance chains or the set of fields; the 00047 // next time check_inherited_fields() is called, the 00048 // inherited fields tables of all classes will be 00049 // rebuilt. 00050 //////////////////////////////////////////////////////////////////// 00051 INLINE void DCFile:: 00052 mark_inherited_fields_stale() { 00053 _inherited_fields_stale = true; 00054 }