MIRA
Public Types | Static Public Member Functions | List of all members
ChannelBufferPromoter< U > Struct Template Reference

forward decl. More...

#include <fw/ChannelBuffer.h>

Inheritance diagram for ChannelBufferPromoter< U >:
Inheritance graph
[legend]

Public Types

typedef ChannelBufferPromoterCommon< U > Base
 

Static Public Member Functions

static ChannelBufferBasepromote (ChannelBufferBase *buffer)
 
static ChannelBufferBasepromoteUntyped (ChannelBufferBase *buffer)
 

Detailed Description

template<typename U>
struct mira::ChannelBufferPromoter< U >

forward decl.

Class with a single static promote method that promotes an arbitrary ChannelBuffer to a ChannelBuffer of the U.

The class is needed since C++ does not allow partial function template specialization. Otherwise defining specializations of the ChannelBuffer::promote() method would be much nicer (regarding access rights etc.), but does not work as said before. To be able to access the internals of ChannelBuffer this class is a friend of ChannelBuffer.

Member Typedef Documentation

◆ Base

Member Function Documentation

◆ promote()

static ChannelBufferBase* promote ( ChannelBufferBase buffer)
inlinestatic

◆ promoteUntyped()

static ChannelBufferBase* promoteUntyped ( ChannelBufferBase buffer)
inlinestaticinherited

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