ug4
ug::attachment_traits< TElem, TElemHandler > Class Template Reference

define the interface that enables you to use your own types as element-types in an AttachmentPipe. More...

#include <attachment_pipe.h>

Public Types

typedef const void * ConstElemHandlerPtr
 
typedef const void * ConstElemPtr
 
typedef void element_iterator
 
typedef void * ElemHandlerPtr
 
typedef void * ElemPtr
 
typedef TElem & ElemRef
 

Static Public Member Functions

static element_iterator elements_begin (ElemHandlerPtr pHandler)
 
static element_iterator elements_end (ElemHandlerPtr pHandler)
 
static uint get_data_index (ElemHandlerPtr pHandler, ConstElemPtr elem)
 
static void set_data_index (ElemHandlerPtr pHandler, ElemPtr elem, size_t index)
 

Detailed Description

template<class TElem, class TElemHandler>
class ug::attachment_traits< TElem, TElemHandler >

define the interface that enables you to use your own types as element-types in an AttachmentPipe.

By creating a template specialization for your own element types, you can use arbitrary types as element-types in an AttachmentPipe.

Member Typedef Documentation

◆ ConstElemHandlerPtr

template<class TElem , class TElemHandler >
typedef const void* ug::attachment_traits< TElem, TElemHandler >::ConstElemHandlerPtr

◆ ConstElemPtr

template<class TElem , class TElemHandler >
typedef const void* ug::attachment_traits< TElem, TElemHandler >::ConstElemPtr

◆ element_iterator

template<class TElem , class TElemHandler >
typedef void ug::attachment_traits< TElem, TElemHandler >::element_iterator

◆ ElemHandlerPtr

template<class TElem , class TElemHandler >
typedef void* ug::attachment_traits< TElem, TElemHandler >::ElemHandlerPtr

◆ ElemPtr

template<class TElem , class TElemHandler >
typedef void* ug::attachment_traits< TElem, TElemHandler >::ElemPtr

◆ ElemRef

template<class TElem , class TElemHandler >
typedef TElem& ug::attachment_traits< TElem, TElemHandler >::ElemRef

Member Function Documentation

◆ elements_begin()

template<class TElem , class TElemHandler >
static element_iterator ug::attachment_traits< TElem, TElemHandler >::elements_begin ( ElemHandlerPtr  pHandler)
inlinestatic

◆ elements_end()

template<class TElem , class TElemHandler >
static element_iterator ug::attachment_traits< TElem, TElemHandler >::elements_end ( ElemHandlerPtr  pHandler)
inlinestatic

◆ get_data_index()

template<class TElem , class TElemHandler >
static uint ug::attachment_traits< TElem, TElemHandler >::get_data_index ( ElemHandlerPtr  pHandler,
ConstElemPtr  elem 
)
inlinestatic

◆ set_data_index()

template<class TElem , class TElemHandler >
static void ug::attachment_traits< TElem, TElemHandler >::set_data_index ( ElemHandlerPtr  pHandler,
ElemPtr  elem,
size_t  index 
)
inlinestatic

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