Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53453 - branches/quickbook-1.5/detail
From: daniel_james_at_[hidden]
Date: 2009-05-30 09:02:15


Author: danieljames
Date: 2009-05-30 09:02:14 EDT (Sat, 30 May 2009)
New Revision: 53453
URL: http://svn.boost.org/trac/boost/changeset/53453

Log:
Move the code actions a bit later in actions.hpp so they can use 'plain_char_action'.
Text files modified:
   branches/quickbook-1.5/detail/actions.hpp | 126 ++++++++++++++++++++--------------------
   1 files changed, 63 insertions(+), 63 deletions(-)

Modified: branches/quickbook-1.5/detail/actions.hpp
==============================================================================
--- branches/quickbook-1.5/detail/actions.hpp (original)
+++ branches/quickbook-1.5/detail/actions.hpp 2009-05-30 09:02:14 EDT (Sat, 30 May 2009)
@@ -345,6 +345,69 @@
         std::string& save;
     };
 
+ struct raw_char_action
+ {
+ // Prints a single raw (unprocessed) char.
+ // Allows '<', '>'... etc.
+
+ raw_char_action(collector& phrase)
+ : phrase(phrase) {}
+
+ void operator()(char ch) const;
+ void operator()(iterator first, iterator /*last*/) const;
+
+ collector& phrase;
+ };
+
+ struct plain_char_action
+ {
+ // Prints a single plain char.
+ // Converts '<' to "&lt;"... etc See utils.hpp
+
+ plain_char_action(collector& phrase)
+ : phrase(phrase) {}
+
+ void operator()(char ch) const;
+ void operator()(iterator first, iterator /*last*/) const;
+
+ collector& phrase;
+ };
+
+ struct image_action
+ {
+ // Handles inline images
+
+ image_action(collector& phrase)
+ : phrase(phrase) {}
+
+ void operator()(iterator first, iterator last) const;
+
+ collector& phrase;
+ };
+
+ struct markup_action
+ {
+ // A generic markup action
+
+ markup_action(collector& phrase, std::string const& str)
+ : phrase(phrase), str(str) {}
+
+ template <typename T>
+ void operator()(T const&) const
+ {
+ phrase << str;
+ }
+
+ template <typename T>
+ void operator()(T const&, T const&) const
+ {
+ phrase << str;
+ }
+
+ collector& phrase;
+ std::string str;
+ };
+
     typedef cpp_highlight<
         span
       , space
@@ -429,69 +492,6 @@
         syntax_highlight& syntax_p;
     };
 
- struct raw_char_action
- {
- // Prints a single raw (unprocessed) char.
- // Allows '<', '>'... etc.
-
- raw_char_action(collector& phrase)
- : phrase(phrase) {}
-
- void operator()(char ch) const;
- void operator()(iterator first, iterator /*last*/) const;
-
- collector& phrase;
- };
-
- struct plain_char_action
- {
- // Prints a single plain char.
- // Converts '<' to "&lt;"... etc See utils.hpp
-
- plain_char_action(collector& phrase)
- : phrase(phrase) {}
-
- void operator()(char ch) const;
- void operator()(iterator first, iterator /*last*/) const;
-
- collector& phrase;
- };
-
- struct image_action
- {
- // Handles inline images
-
- image_action(collector& phrase)
- : phrase(phrase) {}
-
- void operator()(iterator first, iterator last) const;
-
- collector& phrase;
- };
-
- struct markup_action
- {
- // A generic markup action
-
- markup_action(collector& phrase, std::string const& str)
- : phrase(phrase), str(str) {}
-
- template <typename T>
- void operator()(T const&) const
- {
- phrase << str;
- }
-
- template <typename T>
- void operator()(T const&, T const&) const
- {
- phrase << str;
- }
-
- collector& phrase;
- std::string str;
- };
-
     struct start_varlistitem_action
     {
         start_varlistitem_action(collector& phrase)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk