File getkir.h
File List > algebra > helpers > getkir.h
Go to the documentation of this file
#ifndef TEMPLAT_LATTICE_ALGEBRA_HELPERS_GETKIR_H
#define TEMPLAT_LATTICE_ALGEBRA_HELPERS_GETKIR_H
/* This file is part of TempLat, available at https://cosmolattice.github.io/templat .
Copyright 2021-2026 The TempLat authors, see AUTHORS.md.
Released under the MIT license, see LICENSE.md. */
// File info: Main contributor(s): Adrien Florio, Year: 2019
#include "TempLat/lattice/algebra/helpers/haskir.h"
namespace TempLat
{
class GetKIR
{
public:
// Put public methods here. These should change very little over time.
template <typename U>
requires HasKIR<U>
static auto getKIR(U &obj)
{
return obj.getKIR();
}
template <typename U>
requires(!HasKIR<U>)
static constexpr int getKIR(U &obj)
{
return 1;
}
};
} // namespace TempLat
#endif