Update concepts.qbk

This commit is contained in:
Hans Dembinski 2017-03-21 22:43:55 +01:00 committed by GitHub
parent 5e1d0fa75a
commit c8ead78fea

View File

@ -0,0 +1,23 @@
[section concepts]
Users can extend the library with new axis and storage types.
[section Axis type]
An axis type is:
* default/copy/move constructable
* copy/move assignable
* equal comparablint index] ce
* provides a nexted type `value_type`
* has the following methods:
* `int index(value_type x) const`
* `value_type operator[](int index) const`
* `const std::string& label() const`
* `int bin() const`
* `int shape() const`
* `bool uoflow() const`
Optionally, the type is also
* streamable
* serializable
[endsect]