Update of /cvsroot/boost/boost/boost/wave/util
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25038/boost/wave/util
Modified Files:
cpp_macromap.hpp
Log Message:
Wave: Updated docs, added const specifiers.
Index: cpp_macromap.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/wave/util/cpp_macromap.hpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- cpp_macromap.hpp 8 Mar 2007 14:04:37 -0000 1.34
+++ cpp_macromap.hpp 20 Mar 2007 19:19:15 -0000 1.35
@@ -102,16 +102,18 @@
// expects a token sequence as its parameters
template <typename IteratorT>
- bool is_defined(IteratorT const &begin, IteratorT const &end);
+ bool is_defined(IteratorT const &begin, IteratorT const &end) const;
// expects an arbitrary string as its parameter
template<typename StringT>
- bool is_defined(StringT const &str);
+ bool is_defined(StringT const &str) const;
// Get the macro definition for the given macro scope
bool get_macro(string_type const &name, bool &has_parameters,
- bool &is_predefined, position_type &pos, parameter_container_type
¶meters,
- definition_container_type &definition, defined_macros_type *scope = 0);
+ bool &is_predefined, position_type &pos,
+ parameter_container_type ¶meters,
+ definition_container_type &definition,
+ defined_macros_type *scope = 0) const;
// Remove a macro name from the given macro scope
bool remove_macro(token_type const &token, bool even_predefined = false);
@@ -382,7 +384,7 @@
template <typename IteratorT>
inline bool
macromap<ContextT>::is_defined(IteratorT const &begin,
- IteratorT const &end)
+ IteratorT const &end) const
{
// in normal mode the name under inspection should consist of an identifier
// only
@@ -416,7 +418,7 @@
template <typename ContextT>
template<typename StringT>
inline bool
-macromap<ContextT>::is_defined(StringT const &str)
+macromap<ContextT>::is_defined(StringT const &str) const
{
string_type name (str.c_str());
typename defined_macros_type::iterator cit(current_macros -> find(name));
@@ -435,7 +437,7 @@
bool &is_predefined, position_type &pos,
parameter_container_type ¶meters,
definition_container_type &definition,
- defined_macros_type *scope)
+ defined_macros_type *scope) const
{
typename defined_macros_type::iterator it;
if (!is_defined(name, it, scope))
-------------------------------------------------------------------------
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