Skip to content

Commit

Permalink
doc: add doc for all files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Baptiste Rouquier committed Dec 16, 2024
1 parent 1837537 commit f62673e
Show file tree
Hide file tree
Showing 15 changed files with 58 additions and 27 deletions.
3 changes: 3 additions & 0 deletions include/hpcombi/arch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

/** @file
@brief check the required compiler flags for SSE-4.1 */

#ifndef HPCOMBI_ARCH_HPP_
#define HPCOMBI_ARCH_HPP_

Expand Down
3 changes: 2 additions & 1 deletion include/hpcombi/bmat8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

// This file contains a declaration of fast boolean matrices up to dimension 8.
/** @file
@brief declaration of HPCombi::BMat8 */

#ifndef HPCOMBI_BMAT8_HPP_
#define HPCOMBI_BMAT8_HPP_
Expand Down
4 changes: 2 additions & 2 deletions include/hpcombi/bmat8_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

// This file contains an implementation of fast boolean matrices up to
// dimension 8 x 8.
/** @file
@brief implementation of bmat8.hpp ; this file should not be included directly. */

// NOLINT(build/header_guard)

Expand Down
3 changes: 3 additions & 0 deletions include/hpcombi/builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

/** @file
@brief HPCombi::TPUBuild and casts from HPCombi::TPU */

#ifndef HPCOMBI_BUILDER_HPP_
#define HPCOMBI_BUILDER_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/hpcombi/debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

/** @file
@brief defines the macro \c HPCOMBI_ASSERT */

#ifndef HPCOMBI_DEBUG_HPP_
#define HPCOMBI_DEBUG_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/hpcombi/epu8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

/** @file
@brief declaration of HPCombi::epu8 */

#ifndef HPCOMBI_EPU8_HPP_
#define HPCOMBI_EPU8_HPP_

Expand Down
4 changes: 2 additions & 2 deletions include/hpcombi/epu8_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

// NOLINT(build/header_guard)

// This is the implementation part of epu8.hpp this should be seen as
// implementation details and should not be included directly.
/** @file
@brief implementation of epu8.hpp ; this file should not be included directly. */

#include <initializer_list>
#include <iostream>
Expand Down
4 changes: 4 additions & 0 deletions include/hpcombi/hpcombi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

/** @file
@brief Main entry point; includes the API files: bmat8.hpp, perm16.hpp, etc
and also debug.hpp, epu8.hpp, etc.*/

#ifndef HPCOMBI_HPCOMBI_HPP_
#define HPCOMBI_HPCOMBI_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/hpcombi/perm16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

/** @file
@brief declaration of HPCombi::PTransf16, HPCombi::Transf16, HPCombi::PPerm16 and HPCombi::Perm16. */

#ifndef HPCOMBI_PERM16_HPP_
#define HPCOMBI_PERM16_HPP_

Expand Down
8 changes: 3 additions & 5 deletions include/hpcombi/perm16_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@

// NOLINT(build/header_guard)

namespace HPCombi {

///////////////////////////////////////////////////////////////////////////////
// Implementation part for inline functions //////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/** @file
@brief implementation of perm16.hpp ; this file should not be included directly. */

namespace HPCombi {
inline PTransf16::PTransf16(std::initializer_list<uint8_t> il)
: Vect16(Epu8.id()) {
HPCOMBI_ASSERT(il.size() <= 16);
Expand Down
3 changes: 3 additions & 0 deletions include/hpcombi/perm_generic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

/** @file
@brief declaration of HPCombi::PermGeneric */

#ifndef HPCOMBI_PERM_GENERIC_HPP_
#define HPCOMBI_PERM_GENERIC_HPP_

Expand Down
4 changes: 4 additions & 0 deletions include/hpcombi/perm_generic_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

// NOLINT(build/header_guard)

/** @file
@brief implementation of perm_generic.hpp ;
this file should not be included directly. */

namespace HPCombi {

template <size_t Size, typename Expo>
Expand Down
34 changes: 17 additions & 17 deletions include/hpcombi/power.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
//****************************************************************************//

/** @file
* @brief Generic compile time power
*
* The goal of this file is to be able to write expressions such as @c
* pow<23>(2.5) or @c pow<n>(x) where the first expression is entirely
* computed as compile time and the second one is expanded also as compile
* time to a O(log n) long sequence of multiplication. Furthermore such
* expression not only works for numbers for for any type where there is a
* neutral element and an associative (non necessarily commutative) product,
* namely what mathematicians call \e monoids. These include for example,
* strings where the neutral element is the empty string and the product is
* the concatenation.
*
* see HPCombi::power_helper::Monoid<std::string>
*
* @example stringmonoid.cpp
* This is an example of how to use pow with a non numerical Monoid.
*/
@brief Generic compile-time exponentiation algorithm.
The goal of this file is to be able to write expressions such as @c
pow<23>(2.5) or @c pow<n>(x) where the first expression is entirely
computed as compile time and the second one is expanded also as compile
time to a O(log n) long sequence of multiplication. Furthermore such
expression not only works for numbers for for any type where there is a
neutral element and an associative (non necessarily commutative) product,
namely what mathematicians call \e monoids. These include for example,
strings where the neutral element is the empty string and the product is
the concatenation.
see HPCombi::power_helper::Monoid<std::string>
@example stringmonoid.cpp
This is an example of how to use pow with a non numerical Monoid.
*/

#ifndef HPCOMBI_POWER_HPP_
#define HPCOMBI_POWER_HPP_
Expand Down
3 changes: 3 additions & 0 deletions include/hpcombi/vect16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

/** @file
@brief HPCombi::Vect16 */

#ifndef HPCOMBI_VECT16_HPP_
#define HPCOMBI_VECT16_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/hpcombi/vect_generic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// with HP-Combi. If not, see <https://www.gnu.org/licenses/>. //
//****************************************************************************//

/** @file
@brief HPCombi::VectGeneric */

#ifndef HPCOMBI_VECT_GENERIC_HPP_
#define HPCOMBI_VECT_GENERIC_HPP_

Expand Down

0 comments on commit f62673e

Please sign in to comment.