dcFile.I 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Filename: dcFile.I
  2. // Created by: drose (10Jan06)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. ////////////////////////////////////////////////////////////////////
  19. // Function: DCFile::all_objects_valid
  20. // Access: Published
  21. // Description: Returns true if all of the classes read from the DC
  22. // file were defined and valid, or false if any of them
  23. // were undefined ("bogus classes"). If this is true,
  24. // we might have read a partial file.
  25. ////////////////////////////////////////////////////////////////////
  26. INLINE bool DCFile::
  27. all_objects_valid() const {
  28. return _all_objects_valid;
  29. }
  30. ////////////////////////////////////////////////////////////////////
  31. // Function: DCFile::check_inherited_fields
  32. // Access: Public
  33. // Description: Rebuilds all of the inherited fields tables, if
  34. // necessary.
  35. ////////////////////////////////////////////////////////////////////
  36. INLINE void DCFile::
  37. check_inherited_fields() {
  38. if (_inherited_fields_stale) {
  39. rebuild_inherited_fields();
  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::
  52. mark_inherited_fields_stale() {
  53. _inherited_fields_stale = true;
  54. }