Difference between revisions of "Boost"
From ProgrammingExamples
Daviddoria (Talk | contribs) |
Daviddoria (Talk | contribs) |
||
Line 15: | Line 15: | ||
* [[CPP/Boost/Signals/ClassMember|Signal/slot pattern with member classes]] | * [[CPP/Boost/Signals/ClassMember|Signal/slot pattern with member classes]] | ||
* [[CPP/Boost/Signals/ClassMemberWithParameters|Signal/slot pattern with member classes which have parameters]] | * [[CPP/Boost/Signals/ClassMemberWithParameters|Signal/slot pattern with member classes which have parameters]] | ||
− | * [[CPP/Boost/Signals2/Basic|Signal/slot pattern with type safety]] | + | * [[CPP/Boost/Signals2/Basic|Signals2: Signal/slot pattern with type safety]] |
+ | * [[CPP/Boost/Signals2/Parameters|Signals2: Signal/slot pattern with parameters type safety]] | ||
== Boost Graph Library (BGL) == | == Boost Graph Library (BGL) == |
Revision as of 12:54, 1 February 2011
The following examples are frequent use cases of parts of the Boost (http://www.boost.org/) library. Each example includes a CMakeLists.txt file so it can be easily compiled.
- Create a histogram (accumulator)
- Matrix
- Multi dimensional array
- Simple command line argument parsing (ProgramOptions)
- Multiple command line argument parsing (ProgramOptions)
- ProgressBar
- Threads
- Threads with member functions
- ThreadCommunication
- Timer
- Signal/slot pattern
- Signal/slot pattern with member functions
- Signal/slot pattern with member classes
- Signal/slot pattern with member classes which have parameters
- Signals2: Signal/slot pattern with type safety
- Signals2: Signal/slot pattern with parameters type safety
Boost Graph Library (BGL)
- Create a graph
- Add properties to edges
- Add properties to vertices
- Bundled properties
- Get a list of neighboring (adjacent) vertices
- Directed graphs only give access to out edges
- Bidirectional graphs give access to both in and out edges
- Number of incoming, outgoing, and total edges
- Breadth first search (BFS)
- Depth first search (DFS)