Panda3D
rangeIterator.I
1 // Filename: rangeIterator.I
2 // Created by: drose (07Sep03)
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 
16 ////////////////////////////////////////////////////////////////////
17 // Function: RangeIterator::get_code
18 // Access: Public
19 // Description: Returns the current Unicode value represented by the
20 // iterator, or -1 if the iterator has reached the end.
21 ////////////////////////////////////////////////////////////////////
22 INLINE int RangeIterator::
23 get_code() const {
24  return _code;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: RangeIterator::eof
29 // Access: Public
30 // Description: Returns true if all the code have been retrieved,
31 // false otherwise.
32 ////////////////////////////////////////////////////////////////////
33 INLINE bool RangeIterator::
34 eof() const {
35  return (_it == _desc._range_list.end());
36 }
bool eof() const
Returns true if all the code have been retrieved, false otherwise.
Definition: rangeIterator.I:34
int get_code() const
Returns the current Unicode value represented by the iterator, or -1 if the iterator has reached the ...
Definition: rangeIterator.I:23