SNode.C
Loading...
Searching...
No Matches
core::socket::Socket< ConfigT > Class Template Reference

#include <Socket.h>

Collaboration diagram for core::socket::Socket< ConfigT >:

Public Types

using Config = ConfigT
 

Public Member Functions

 Socket (const std::string &name)
 
 Socket (const Socket &)=default
 
Socketoperator= (const Socket &)=default
 
 Socket (Socket &&) noexcept=delete
 
Socketoperator= (Socket &&) noexcept=delete
 
virtual ~Socket ()
 
ConfiggetConfig () const
 

Protected Attributes

std::shared_ptr< Configconfig
 

Detailed Description

template<typename ConfigT>
class core::socket::Socket< ConfigT >

Definition at line 33 of file Socket.h.

Member Typedef Documentation

◆ Config

template<typename ConfigT >
using core::socket::Socket< ConfigT >::Config = ConfigT

Definition at line 35 of file Socket.h.

Constructor & Destructor Documentation

◆ Socket() [1/3]

template<typename Config >
core::socket::Socket< Config >::Socket ( const std::string & name)
explicit

Definition at line 29 of file Socket.hpp.

30 : config(std::make_shared<Config>(name)) {
31 }
std::shared_ptr< Config > config
Definition Socket.h:50

References core::socket::Socket< ConfigT >::Socket().

Referenced by core::socket::Socket< ConfigT >::Socket().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Socket() [2/3]

template<typename ConfigT >
core::socket::Socket< ConfigT >::Socket ( const Socket< ConfigT > & )
default

◆ Socket() [3/3]

template<typename ConfigT >
core::socket::Socket< ConfigT >::Socket ( Socket< ConfigT > && )
deletenoexcept

◆ ~Socket()

template<typename Config >
core::socket::Socket< Config >::~Socket ( )
virtual

Definition at line 34 of file Socket.hpp.

34 {
35 }

Member Function Documentation

◆ getConfig()

template<typename Config >
Config & core::socket::Socket< Config >::getConfig ( ) const

Definition at line 38 of file Socket.hpp.

38 {
39 return *config;
40 }

References core::socket::Socket< ConfigT >::config.

◆ operator=() [1/2]

template<typename ConfigT >
Socket & core::socket::Socket< ConfigT >::operator= ( const Socket< ConfigT > & )
default

◆ operator=() [2/2]

template<typename ConfigT >
Socket & core::socket::Socket< ConfigT >::operator= ( Socket< ConfigT > && )
deletenoexcept

Member Data Documentation

◆ config

template<typename ConfigT >
std::shared_ptr<Config> core::socket::Socket< ConfigT >::config
protected

Definition at line 50 of file Socket.h.

Referenced by core::socket::Socket< ConfigT >::getConfig().


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