Inheritance diagram for lestes::lang::cplus::lex::loc:

Public Member Functions | |
| bool | equals (const ptr< loc > &other) const |
| Tests equality. | |
Static Public Member Functions | |
| static ptr< loc > | create (ulint a_position) |
| Returns new location. | |
Protected Member Functions | |
| loc (ulint a_position) | |
| Creates new location. | |
Private Member Functions | |
| loc (const loc &) | |
| Hides copy constructor. | |
| loc & | operator= (const loc &) |
| Hides assingment operator. | |
Private Attributes | |
| ulint | position |
| The represented position. | |
Location only for testing purposes.
Definition at line 50 of file basic_token.test.cc.
| lestes::lang::cplus::lex::loc::loc | ( | ulint | a_position | ) | [protected] |
Creates new location.
Creates new location.
| a_position | The position to initialize wiht. |
Definition at line 72 of file basic_token.test.cc.
Referenced by create().
00072 : 00073 position(a_position) 00074 { 00075 }
| lestes::lang::cplus::lex::loc::loc | ( | const loc & | ) | [private] |
Hides copy constructor.
| bool lestes::lang::cplus::lex::loc::equals | ( | const ptr< loc > & | rhs | ) | const |
Tests equality.
Tests equality to other location.
| other | The location to compare to. |
Definition at line 82 of file basic_token.test.cc.
References lestes::is_equal(), and position.
| ptr< loc > lestes::lang::cplus::lex::loc::create | ( | ulint | a_position | ) | [static] |
Returns new location.
Returns new location, initializes with position.
| a_position | The position to initialize with. |
Definition at line 91 of file basic_token.test.cc.
References loc().
Referenced by lestes::lang::cplus::lex::basic_token_test().
00091 { 00092 return new loc(a_position); 00093 }
ulint lestes::lang::cplus::lex::loc::position [private] |
The represented position.
Definition at line 61 of file basic_token.test.cc.
Referenced by equals().
1.5.1-20070107