histogram/doc/concepts.qbk
2017-03-21 22:43:55 +01:00

24 lines
559 B
Plaintext

[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]