Panda3D
|
00001 // Filename: eggMaterialCollection.I 00002 // Created by: drose (30Apr01) 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 INLINE EggMaterialCollection::iterator EggMaterialCollection:: 00016 begin() const { 00017 nassertr(_ordered_materials.size() == _materials.size(), 00018 _ordered_materials.begin()); 00019 return _ordered_materials.begin(); 00020 } 00021 00022 INLINE EggMaterialCollection::iterator EggMaterialCollection:: 00023 end() const { 00024 return _ordered_materials.end(); 00025 } 00026 00027 INLINE bool EggMaterialCollection:: 00028 empty() const { 00029 return _ordered_materials.empty(); 00030 } 00031 00032 INLINE EggMaterialCollection::size_type EggMaterialCollection:: 00033 size() const { 00034 nassertr(_ordered_materials.size() == _materials.size(), 0); 00035 return _ordered_materials.size(); 00036 }