]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <html> |
2 | <head> | |
3 | <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> | |
4 | <title>Starter Kit</title> | |
5 | <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> | |
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> | |
7 | <link rel="home" href="../index.html" title="Chapter 1. Phoenix 3.2.0"> | |
8 | <link rel="up" href="../index.html" title="Chapter 1. Phoenix 3.2.0"> | |
9 | <link rel="prev" href="introduction.html" title="Introduction"> | |
10 | <link rel="next" href="starter_kit/values.html" title="Values"> | |
11 | </head> | |
12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | |
13 | <table cellpadding="2" width="100%"><tr> | |
14 | <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> | |
15 | <td align="center"><a href="../../../../../index.html">Home</a></td> | |
16 | <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> | |
17 | <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> | |
18 | <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> | |
19 | <td align="center"><a href="../../../../../more/index.htm">More</a></td> | |
20 | </tr></table> | |
21 | <hr> | |
22 | <div class="spirit-nav"> | |
23 | <a accesskey="p" href="introduction.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="starter_kit/values.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> | |
24 | </div> | |
25 | <div class="section"> | |
26 | <div class="titlepage"><div><div><h2 class="title" style="clear: both"> | |
27 | <a name="phoenix.starter_kit"></a><a class="link" href="starter_kit.html" title="Starter Kit">Starter Kit</a> | |
28 | </h2></div></div></div> | |
29 | <div class="toc"><dl> | |
30 | <dt><span class="section"><a href="starter_kit/values.html">Values</a></span></dt> | |
31 | <dt><span class="section"><a href="starter_kit/references.html">References</a></span></dt> | |
32 | <dt><span class="section"><a href="starter_kit/arguments.html">Arguments</a></span></dt> | |
33 | <dt><span class="section"><a href="starter_kit/lazy_operators.html">Lazy Operators</a></span></dt> | |
34 | <dt><span class="section"><a href="starter_kit/lazy_statements.html">Lazy Statements</a></span></dt> | |
35 | <dt><span class="section"><a href="starter_kit/construct__new__delete__casts.html">Construct, | |
36 | New, Delete, Casts</a></span></dt> | |
37 | <dt><span class="section"><a href="starter_kit/lazy_functions.html">Lazy Functions</a></span></dt> | |
38 | <dt><span class="section"><a href="starter_kit/more.html">More</a></span></dt> | |
39 | </dl></div> | |
40 | <p> | |
41 | Most "quick starts" only get you a few blocks from where you are. | |
42 | From there, you are on your own. Yet, typically, you'd want to get to the next | |
43 | city. This starter kit shall be as minimal as possible, yet packed as much | |
44 | power as possible. | |
45 | </p> | |
46 | <p> | |
47 | So you are busy and always on the go. You do not wish to spend a lot of time | |
48 | studying the library. You wish to be spared the details for later when you | |
49 | need it. For now, all you need to do is to get up to speed as quickly as possible | |
50 | and start using the library. If this is the case, this is the right place to | |
51 | start. | |
52 | </p> | |
53 | <p> | |
54 | This section is by no means a thorough discourse of the library. For more information | |
55 | on Phoenix, please take some time to read the rest of the Documentation. Yet, | |
56 | if you just want to use the library quickly, now, this chapter will probably | |
57 | suffice. Rather than taking you to the details of the library, we shall try | |
58 | to provide you with annotated examples instead. Hopefully, this will get you | |
59 | into high gear quickly. | |
60 | </p> | |
61 | <h4> | |
62 | <a name="phoenix.starter_kit.h0"></a> | |
63 | <span><a name="phoenix.starter_kit.functors_everywhere"></a></span><a class="link" href="starter_kit.html#phoenix.starter_kit.functors_everywhere">Functors | |
64 | everywhere</a> | |
65 | </h4> | |
66 | <p> | |
67 | Phoenix is built on function objects (functors). The functor is the main building | |
68 | block. We compose functors to build more complex functors... to build more | |
69 | complex functors... and so on. Almost everything is a functor. | |
70 | </p> | |
71 | <div class="note"><table border="0" summary="Note"> | |
72 | <tr> | |
73 | <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../doc/src/images/note.png"></td> | |
74 | <th align="left">Note</th> | |
75 | </tr> | |
76 | <tr><td align="left" valign="top"><p> | |
77 | Functors are so ubiquitous in Phoenix that, in the manual, the words <span class="emphasis"><em>"functor"</em></span> | |
78 | and <span class="emphasis"><em>"function"</em></span> are used interchangeably. | |
79 | </p></td></tr> | |
80 | </table></div> | |
81 | <p> | |
82 | We start with some core functions that are called <span class="bold"><strong>primitives</strong></span>. | |
83 | You can think of primitives (such as values, references and arguments) as atoms. | |
84 | </p> | |
85 | <p> | |
86 | Things start to get interesting when we start <span class="emphasis"><em>composing</em></span> | |
87 | primitives to form <span class="bold"><strong>expressions</strong></span>. The expressions | |
88 | can, in turn, be composed to form even more complex expressions. | |
89 | </p> | |
90 | </div> | |
91 | <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> | |
92 | <td align="left"></td> | |
93 | <td align="right"><div class="copyright-footer">Copyright © 2002-2005, 2010, 2014, 2015 Joel de Guzman, Dan Marsden, Thomas | |
94 | Heller, John Fletcher<p> | |
95 | Distributed under the Boost Software License, Version 1.0. (See accompanying | |
96 | file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) | |
97 | </p> | |
98 | </div></td> | |
99 | </tr></table> | |
100 | <hr> | |
101 | <div class="spirit-nav"> | |
102 | <a accesskey="p" href="introduction.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="starter_kit/values.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> | |
103 | </div> | |
104 | </body> | |
105 | </html> |