ug4
attachment_util.h File Reference
#include <vector>
#include "lib_grid/grid/grid.h"
#include "attachment_util_impl.hpp"

Go to the source code of this file.

Classes

class  ug::CompareByAttachment< TElem, TAttachment >
 Instances can be used as compare operators, e.g., for std::sort. More...
 
class  ug::MultiElementAttachmentAccessor< TAttachment >
 Accesses attachements in different element types at the same time. More...
 

Namespaces

 ug
 the ug namespace
 

Functions

template<class TIterator , class TAAInt >
void ug::AssignIndices (TIterator begin, TIterator end, TAAInt &aaInt, int baseIndex=0)
 assigns indices to the elements between begin and end. More...
 
template<class TElem , class TSrcAttachment , class TDestAttachment >
bool ug::ConvertMathVectorAttachmentValues (Grid &grid, TSrcAttachment &srcAttachment, TDestAttachment &destAttachment)
 Fills the dest-attachment with values from the source-attachment. More...
 
template<class TElemIter , class TAttachment >
bool ug::CopyAttachments (Grid &grid, TElemIter elemsBegin, TElemIter elemsEnd, TAttachment &aSrc, TAttachment &aDest)
 copies attachments for the specified elements More...
 
template<class TElem , class TAttachment >
bool ug::CopyAttachments (Grid &srcGrid, TAttachment &aSrc, Grid &destGrid, TAttachment &aDest)
 copies attachments from one grid to the other More...
 
template<class TIterator , class TAttAcc >
TIterator ug::FindElementByValue (TIterator begin, TIterator end, const typename TAttAcc::ValueType &val, TAttAcc &aa)
 returns the iterator whose element has the specified attachment value. More...
 
template<class TAttachmentAccessor , class TIter , class TVal >
void ug::SetAttachmentValues (TAttachmentAccessor &aaVal, TIter elemsBegin, TIter elemsEnd, const TVal &val)
 sets attachment-values for elements between elemsBegin and elemsEnd. More...