Panda3D
eggMaterialCollection.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file eggMaterialCollection.I
10  * @author drose
11  * @date 2001-04-30
12  */
13 
14 INLINE EggMaterialCollection::iterator EggMaterialCollection::
15 begin() const {
16  nassertr(_ordered_materials.size() == _materials.size(),
17  _ordered_materials.begin());
18  return _ordered_materials.begin();
19 }
20 
21 INLINE EggMaterialCollection::iterator EggMaterialCollection::
22 end() const {
23  return _ordered_materials.end();
24 }
25 
26 INLINE bool EggMaterialCollection::
27 empty() const {
28  return _ordered_materials.empty();
29 }
30 
31 INLINE EggMaterialCollection::size_type EggMaterialCollection::
32 size() const {
33  nassertr(_ordered_materials.size() == _materials.size(), 0);
34  return _ordered_materials.size();
35 }