senf::emu::TypedInterfaceDecorator< InterfaceType, Base > Class Template Reference

Specialized Interface decorator base-class. More...

#include <senf/Ext/NetEmu/InterfaceDecorator.hh>

Inheritance diagram for senf::emu::TypedInterfaceDecorator< InterfaceType, Base >:

Public Member Functions

InterfaceType & interface ()
 
InterfaceType const & interface () const
 
- Public Member Functions inherited from senf::emu::InterfaceDecorator
virtual ~InterfaceDecorator ()
 
Interfaceinterface ()
 
Interface const & interface () const
 
Interfaceoperator-> ()
 
Interface const * operator-> () const
 
ReceiverDecoratorreceiverDecorator ()
 
ReceiverDecorator const & receiverDecorator () const
 
TransmitterDecoratortransmitterDecorator ()
 
TransmitterDecorator const & transmitterDecorator () const
 
bool canReceive () const
 
bool canTransmit () const
 
MACAddress id () const
 

Protected Member Functions

 TypedInterfaceDecorator (InterfaceType &interface)
 
- Protected Member Functions inherited from senf::emu::InterfaceDecorator
 InterfaceDecorator (Interface &interface)
 

Detailed Description

template<class InterfaceType, class Base>
class senf::emu::TypedInterfaceDecorator< InterfaceType, Base >

Specialized Interface decorator base-class.

This class specializes the interface type and provides a correctly type interface accessor.

See also
senf::emu::ApplyInterfaceDecorator
Implementation note:
This class is for exposition only. The real implementation inherits from Base and not InterfaceDecorator. Base must be either another TypedInterfaceDecorator or InterfaceDecorator.

Definition at line 130 of file InterfaceDecorator.hh.

Constructor & Destructor Documentation

◆ TypedInterfaceDecorator()

template<class InterfaceType, class Base>
senf::emu::TypedInterfaceDecorator< InterfaceType, Base >::TypedInterfaceDecorator ( InterfaceType &  interface)
protected

Member Function Documentation

◆ interface() [1/2]

template<class InterfaceType, class Base>
InterfaceType& senf::emu::TypedInterfaceDecorator< InterfaceType, Base >::interface ( )

◆ interface() [2/2]

template<class InterfaceType, class Base>
InterfaceType const& senf::emu::TypedInterfaceDecorator< InterfaceType, Base >::interface ( ) const

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