Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
StructContainer< S > Class Template Reference

Container for an arbitrary structure to pass through a Hub. More...

#include <Hub.hxx>

Inheritance diagram for StructContainer< S >:

Public Member Functions

S & value ()
 
const void * data () const
 
void * data ()
 
size_t size ()
 

Detailed Description

template<class S>
class StructContainer< S >

Container for an arbitrary structure to pass through a Hub.

Definition at line 47 of file Hub.hxx.

Member Function Documentation

◆ data() [1/2]

template<class S >
void * StructContainer< S >::data ( )
inline
Returns
the contained data as a void pointer.

Definition at line 60 of file Hub.hxx.

◆ data() [2/2]

template<class S >
const void * StructContainer< S >::data ( ) const
inline
Returns
the contained data as a const void pointer.

Definition at line 55 of file Hub.hxx.

◆ size()

template<class S >
size_t StructContainer< S >::size ( )
inline
Returns
the size of the contained structure.

Definition at line 65 of file Hub.hxx.

◆ value()

template<class S >
S & StructContainer< S >::value ( )
inline
Returns
the contained data in mutable form (reference).

Definition at line 50 of file Hub.hxx.


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