ug4
ug::CompareByAttachment< TElem, TAttachment > Class Template Reference

Instances can be used as compare operators, e.g., for std::sort. More...

#include <attachment_util.h>

Public Member Functions

 CompareByAttachment (Grid &g, TAttachment &aGID)
 
bool operator() (TElem *e1, TElem *e2)
 

Private Attributes

Grid::AttachmentAccessor< TElem, TAttachment > m_aaGID
 

Detailed Description

template<class TElem, class TAttachment>
class ug::CompareByAttachment< TElem, TAttachment >

Instances can be used as compare operators, e.g., for std::sort.

Make sure that the specified attachment is attached to the elements of the given grid and that a < operator is defined for the attached values!

Constructor & Destructor Documentation

◆ CompareByAttachment()

template<class TElem , class TAttachment >
ug::CompareByAttachment< TElem, TAttachment >::CompareByAttachment ( Grid g,
TAttachment &  aGID 
)
inline

Member Function Documentation

◆ operator()()

template<class TElem , class TAttachment >
bool ug::CompareByAttachment< TElem, TAttachment >::operator() ( TElem *  e1,
TElem *  e2 
)
inline

Member Data Documentation

◆ m_aaGID

template<class TElem , class TAttachment >
Grid::AttachmentAccessor<TElem, TAttachment> ug::CompareByAttachment< TElem, TAttachment >::m_aaGID
private

The documentation for this class was generated from the following file: