NEML2 1.4.0
Loading...
Searching...
No Matches
DependencyResolver< Node, ItemType >::Item Struct Reference

Detailed Description

template<typename Node, typename ItemType>
struct neml2::DependencyResolver< Node, ItemType >::Item

Similar to

Template Parameters
ItemTypebut additionally contains information about its
Nodeparent, i.e. the node which defines this consumed/provided item.

#include <DependencyResolver.h>

Public Member Functions

 Item (Node *const node, const ItemType &item)
 
bool operator== (const Item &other) const
 Test for equality between two items.
 
bool operator!= (const Item &other) const
 Test for inequality between two items.
 
bool operator< (const Item &other) const
 An arbitrary comparator so that items can be sorted (for consistency)
 

Public Attributes

Node *const parent
 Node which defines this item.
 
const ItemType value
 The consumed/provided item.
 

Constructor & Destructor Documentation

◆ Item()

Item ( Node *const node,
const ItemType & item )
inline

Member Function Documentation

◆ operator!=()

bool operator!= ( const Item & other) const
inline

Test for inequality between two items.

◆ operator<()

bool operator< ( const Item & other) const
inline

An arbitrary comparator so that items can be sorted (for consistency)

◆ operator==()

bool operator== ( const Item & other) const
inline

Test for equality between two items.

Member Data Documentation

◆ parent

Node* const parent

Node which defines this item.

◆ value

The consumed/provided item.