Update of /cvsroot/boost/boost/libs/wave/samples/cpp_tokens
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8366/libs/wave/samples/cpp_tokens
Modified Files:
slex_token.hpp
Log Message:
Wave: Added the is_empty() function to token classes, returning true if the
token has been initialized to be the end of input token (T_EOI).
Index: slex_token.hpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/wave/samples/cpp_tokens/slex_token.hpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- slex_token.hpp 20 Dec 2006 16:55:54 -0000 1.9
+++ slex_token.hpp 3 Apr 2007 13:12:52 -0000 1.10
@@ -55,6 +55,8 @@
operator token_id() const { return id; }
string_type const &get_value() const { return value; }
position_type const &get_position() const { return pos; }
+ bool is_empty() const { id == T_EOI; }
+
void set_token_id (token_id id_) { id = id_; }
void set_value (string_type const &newval) { value = newval; }
void set_position (position_type const &pos_) { pos = pos_; }
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs