|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Container for managing multiple connections. More...
#include <Connection.hpp>
Public Member Functions | |
| ConnectionHolder ()=default | |
| ~ConnectionHolder ()=default | |
| ConnectionHolder (ConnectionHolder &&) noexcept=default | |
| ConnectionHolder & | operator= (ConnectionHolder &&) noexcept=default |
| ConnectionHolder (const ConnectionHolder &)=delete | |
| ConnectionHolder & | operator= (const ConnectionHolder &)=delete |
| void | add (Connection &&conn) |
| Add a connection to manage. | |
| void | disconnectAll () |
| Disconnect all managed connections. | |
| usize | size () const |
| Get the number of active connections. | |
| bool | empty () const |
| Check if there are any connections. | |
Container for managing multiple connections.
ConnectionHolder manages a group of connections that should be disconnected together, typically when an object is destroyed.
Definition at line 194 of file Connection.hpp.
|
default |
Referenced by ConnectionHolder(), ConnectionHolder(), operator=(), and operator=().
|
default |
|
defaultnoexcept |
References ConnectionHolder().
|
delete |
References ConnectionHolder().
|
inline |
Add a connection to manage.
| conn | Connection to add |
Definition at line 209 of file Connection.hpp.
References add().
Referenced by add().
|
inline |
Disconnect all managed connections.
Definition at line 216 of file Connection.hpp.
|
inlinenodiscard |
Check if there are any connections.
Definition at line 232 of file Connection.hpp.
|
defaultnoexcept |
References ConnectionHolder().
|
delete |
References ConnectionHolder().
|
inlinenodiscard |
Get the number of active connections.
Definition at line 224 of file Connection.hpp.