Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::search::NeighborListBuildTraits< ListType > Struct Template Reference

Traits that couple a concrete neighbor-list type to its build logic and type-specific parameters. More...

#include <NeighborListBuildTraits.hpp>

Inheritance diagram for mundy::search::NeighborListBuildTraits< ListType >:
[legend]

Classes

struct  args_type
 Default empty args; specializations override this with build-specific parameters. More...

Detailed Description

template<typename ListType>
struct mundy::search::NeighborListBuildTraits< ListType >

Specialize this struct for each concrete neighbor-list type. A valid specialization must provide:

  • target_input_type — expected TargetInput type for the builder.
  • source_input_type — expected SourceInput type for the builder.
  • args_type — a struct holding any build-specific parameters (empty struct if none are needed).
  • static list_type build(const Builder&, const stk::mesh::BulkData&, const args_type&) — a static function template that builds the list from a complete NeighborListBuilder, BulkData, and args.

The primary template leaves build() undefined so that accessing it on an unspecialized type is a compile error. The struct args_type {} in the primary allows function signatures in NeighborListBuilder to compile even before a specialization is visible.