NEML2 1.4.0
Loading...
Searching...
No Matches
DependencyDefinition< T > Class Template Referenceabstract

Detailed Description

template<typename T>
class neml2::DependencyDefinition< T >

Defines what this object consume and provide. The consumed and provided items will later be used in DependencyResolver to identify dependencies among a set of objects. In short, this object will depend on whoever provides any of this object's consumed items, and vice versa.

Template Parameters
TThe type of the consumed/provided items

#include <DependencyDefinition.h>

Public Member Functions

virtual const std::set< T > consumed_items () const =0
 What this object consumes.
 
virtual const std::set< T > provided_items () const =0
 What this object provides.
 

Member Function Documentation

◆ consumed_items()

template<typename T >
virtual const std::set< T > consumed_items ( ) const
pure virtual

What this object consumes.

Implemented in Model.

◆ provided_items()

template<typename T >
virtual const std::set< T > provided_items ( ) const
pure virtual

What this object provides.

Implemented in Model.