Panda3D
eggMaterialCollection.I
1 // Filename: eggMaterialCollection.I
2 // Created by: drose (30Apr01)
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 INLINE EggMaterialCollection::iterator EggMaterialCollection::
16 begin() const {
17  nassertr(_ordered_materials.size() == _materials.size(),
18  _ordered_materials.begin());
19  return _ordered_materials.begin();
20 }
21 
22 INLINE EggMaterialCollection::iterator EggMaterialCollection::
23 end() const {
24  return _ordered_materials.end();
25 }
26 
27 INLINE bool EggMaterialCollection::
28 empty() const {
29  return _ordered_materials.empty();
30 }
31 
32 INLINE EggMaterialCollection::size_type EggMaterialCollection::
33 size() const {
34  nassertr(_ordered_materials.size() == _materials.size(), 0);
35  return _ordered_materials.size();
36 }