Skip to content

Commit 24a2160

Browse files
committed
[doc] minor doc fixes
1 parent a27e058 commit 24a2160

File tree

5 files changed

+16
-23
lines changed

5 files changed

+16
-23
lines changed

LICENSE.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Copyright {#core_copyright}
22

3-
| Summary | |
4-
|---------------------------|----------------------------------------------------------------------------------------|
3+
| Summary | |
4+
|---------------------------|---------------------------------------------------------------------------------------------------------|
55
| Copyright holders | deCODE Genetics, Knut Reinert, [FU-Berlin](https://fu-berlin.de), [MPI MolGen](https://molgen.mpg.de/) |
6-
| Library source code | ![](doc/about/copyright/bsdl_badge.svg) |
7-
| Documentation | ![](doc/about/copyright/ccby_badge.svg) |
8-
| Snippets and examples | ![](doc/about/copyright/cc0_badge.svg) |
9-
| Dependencies | ![](doc/about/copyright/copyfree_badge.svg) |
6+
| Library source code | 3-clause BSD license |
7+
| Documentation | CC-BY-3.0 (Creative Commons Attribution 3.0 Unported) |
8+
| Snippets and examples | CC0-1.0 (Creative Commons Public Domain Dedication) |
109

1110
# Source code license
1211

doc/biocpp/customisation.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ BioC++ library. We call these "customisation points" (also known as "extension p
2222
# Customisation points
2323

2424
An example is the bio::alphabet::alphabet concept. One part of this concept's requirements are from
25-
bio::alphabet::semialphabet which requires `to_rank()` to available on an object of the type. `to_rank()`
25+
bio::alphabet::semialphabet which requires `to_rank()` to be available on an object of the type. `to_rank()`
2626
is a "customisation point".
2727

2828
Instead of the bio::alphabet::semialphabet concept looking directly for `.to_rank()` member functions, it checks for
29-
a valid definition of bio::alphabet::to_rank which in turn calls `tag_invoke()` with certain parameters.
29+
a valid definition of bio::alphabet::to_rank which in turn calls `tag_invoke()`.
3030
This mechanism is widely employed in Modern C++ and may be standardised in the future
3131
([P1895](https://wg21.link/P1895)).
3232
There are (hidden) implementations of `tag_invoke()` that typically redirect to the respective member functions.
@@ -38,7 +38,7 @@ The first argument of `tag_invoke()` is the "tag" used to select the implementat
3838
exactly like the function that you otherwise call, except that they are in a `cpo` subnamespace.
3939
E.g. bio::alphabet::to_rank looks for `tag_invoke(bio::alphabet::cpo::to_rank, YOUR_TYPE)`.
4040

41-
If you need to specialise the behaviour for a third party type, and you cannot open that types namespace (or it doesn't have
41+
If you need to specialise the behaviour for a third party type, and you cannot open that type's namespace (or it doesn't have
4242
one), you can also add your overload of `tag_invoke()` to our customisation namespace, e.g. `bio::alphabet::cpo`.
4343
Only do this, if there is no other solution.
4444

@@ -51,3 +51,5 @@ and never explicitly specialise one of our templates (except those in `cpo` name
5151

5252
The \link core_custom_alphabet HowTo on creating your own alphabet \endlink provides many examples of how to
5353
satisfy the requirements of customisation point objects.
54+
55+
Since the customisation point objects are functors, *you can take their address* and use them in higher order functions.

doc/biocpp/overview.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ More modules are planned!
2121

2222
| Library | Module(s) | Include |Namespaces | Code-Owner | Cite |
2323
|-----------------------------------------------|------------|------------------|------------------|------------|--------------------|
24-
| [Core](https://github.com/biocpp/biocpp-core) | Alphabet | <bio/alphabet/*> |`bio::a{lphabet}` | `@h-2` | [10.1007/978-3-030-90990-1](https://link.springer.com/book/10.1007/978-3-030-90990-1) |
24+
| [Core](https://github.com/biocpp/biocpp-core) | Alphabet | <bio/alphabet/*> |`bio::alphabet` | `@h-2` | [10.1007/978-3-030-90990-1](https://link.springer.com/book/10.1007/978-3-030-90990-1) |
2525
| | Ranges | <bio/ranges/*> | `bio::ranges`, `bio::{ranges::}views` | `@h-2` | [10.1007/978-3-030-90990-1](https://link.springer.com/book/10.1007/978-3-030-90990-1) |
26-
| | Meta | <bio/meta/*> |`bio:meta` | `@h-2` | [10.1007/978-3-030-90990-1](https://link.springer.com/book/10.1007/978-3-030-90990-1) |
26+
| | Meta | <bio/meta/*> |`bio::meta` | `@h-2` | [10.1007/978-3-030-90990-1](https://link.springer.com/book/10.1007/978-3-030-90990-1) |
2727
| [I/O](https://github.com/biocpp/biocpp-io) | I/O | <bio/io/*> |`bio::io` | `@h-2` | |
2828

2929

3030
The primary namespace for BioC++ is `bio::`, and each Module is found in a sub-namespace (usually identical to the module name). Some namespaces are aliased into the primary namespace, so `bio::ranges::views` is identical to `bio::views`. Only top-level namespaces are displayed here.
3131

32+
Some modules provide literals in an `inline namespace` within their main namespace. This allows doing e.g.
33+
`using namespace bio::alphabet::literals;` to get easy access to the alphabet literals without importing the rest
34+
of the module into your namespace.
35+
3236
If no citable publication is listed for a Module, please cite [10.1007/978-3-030-90990-1](https://link.springer.com/book/10.1007/978-3-030-90990-1), which is a book by the main author of BioC++.

doc/core/tutorial_concepts/index.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,3 @@ In some parts of the documentation concepts are called "interfaces", please don'
228228
And the "verbose syntax" introduced above is not visible at all in the automatically generated documentation.
229229
That's why it's important to read the detailed documentation section where all requirements are documented.
230230
231-
TODO(bio) the following needs to be updated
232-
233-
Have a look at the documentation of bio::alphabet::argument_parser::add_positional_option().
234-
It has two template parameters, one seems unconstrained (`typename` in the signature) and one is constrained
235-
(`validator` in the signature).
236-
But in fact both are constrained as the detailed documentation reveals.
237-
238-
Now, follow the link to bio::alphabet::validator. We will check in the next section whether you understand the
239-
documentation for the concept.
240-

doc/core/write_an_alphabet/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ This HowTo documents how to write a custom alphabet that can be used with the al
66

77
\tutorial_head{Moderate, 45 min, \ref core_concepts\, \ref core_alphabets, \ref alphabet}
88

9-
TODO(bio) this needs to be updated; equality, inequality, order should all go in one step; needs tag_invoke
10-
119
# Motivation
1210

1311
In the [alphabet tutorial](\ref core_alphabets) you have learned that alphabets are a core component in BioC++

0 commit comments

Comments
 (0)