TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::mesh::MeshPoint

#include <triqs/mesh/concepts.hpp>

Detailed Description

Concept for a mesh point.

Every mesh point mp of type MP

  • belongs to a mesh MP::mesh_t,
  • has a unique index mp.index() that identifies a mesh point within the mesh,
  • has a data index mp.data_index() that is used to access function values/coefficients stored in GF containers and
  • has a hash value mp.mesh_hash() that is used to check if a mesh point belongs to or is compatible with a mesh.
Template Parameters
MPMesh point type.

Definition at line 54 of file concepts.hpp.

Concept definition

template<typename MP>
concept triqs::mesh::MeshPoint = requires(MP const &mp) {
typename MP::mesh_t;
{ mp.index() } -> nda::AnyOf<typename MP::mesh_t::index_t, typename MP::mesh_t::index_t const &>;
{ mp.data_index() } -> nda::AnyOf<typename MP::mesh_t::data_index_t, typename MP::mesh_t::data_index_t const &>;
{ mp.mesh_hash() } -> std::same_as<uint64_t>;
}
Concept for a mesh point.
Definition concepts.hpp:54