SGCT
master (487fac4)
Simple Graphics Cluster Toolkit
Toggle main menu visibility
Loading...
Searching...
No Matches
node.h
Go to the documentation of this file.
1
/*****************************************************************************************
2
* SGCT *
3
* Simple Graphics Cluster Toolkit *
4
* *
5
* Copyright (c) 2012-2026 *
6
* For conditions of distribution and use, see copyright notice in LICENSE.md *
7
****************************************************************************************/
8
9
#ifndef __SGCT__NODE__H__
10
#define __SGCT__NODE__H__
11
12
#include <sgct/sgctexports.h>
13
14
#include <
sgct/window.h
>
15
#include <cstdint>
16
#include <memory>
17
#include <string>
18
#include <vector>
19
20
namespace
sgct::config
{
struct
Node
; }
21
22
namespace
sgct
{
23
24
class
SGCT_EXPORT
Node
{
25
public
:
26
Node
(
const
config::Node
& node,
bool
initializeWindows);
27
28
Node
(
const
Node
&) =
delete
;
29
Node
(
Node
&&) =
default
;
30
Node
&
operator=
(
const
Node
&) =
delete
;
31
Node
&
operator=
(
Node
&&) =
delete
;
32
36
void
addWindow
(std::unique_ptr<Window> window);
37
41
bool
closeAllWindows
();
42
46
bool
isUsingSwapGroups
()
const
;
47
48
const
std::vector<std::unique_ptr<Window>>&
windows
()
const
;
49
53
const
std::string&
address
()
const
;
54
58
int
syncPort
()
const
;
59
63
int
dataTransferPort
()
const
;
64
65
private
:
66
const
std::string _address;
67
const
uint16_t _syncPort;
68
const
uint16_t _dataTransferPort;
69
const
bool
_useSwapGroups;
70
71
std::vector<std::unique_ptr<Window>> _windows;
72
};
73
74
}
// namespace sgct
75
76
#endif
// __SGCT__NODE__H__
sgct::Node::Node
Node(const config::Node &node, bool initializeWindows)
sgct::Node::addWindow
void addWindow(std::unique_ptr< Window > window)
Add a window to this node.
sgct::Node::windows
const std::vector< std::unique_ptr< Window > > & windows() const
sgct::Node::operator=
Node & operator=(const Node &)=delete
sgct::Node::syncPort
int syncPort() const
sgct::Node::isUsingSwapGroups
bool isUsingSwapGroups() const
Is this node using nvidia swap groups for its windows?
sgct::Node::Node
Node(Node &&)=default
sgct::Node::dataTransferPort
int dataTransferPort() const
sgct::Node::Node
Node(const Node &)=delete
sgct::Node::address
const std::string & address() const
sgct::Node::closeAllWindows
bool closeAllWindows()
Check if all windows are set to close and close them.
sgct::Node::operator=
Node & operator=(Node &&)=delete
sgct::config
Definition
clustermanager.h:22
sgct
Definition
actions.h:16
sgct::config::Node
Definition
config.h:413
window.h
sgct
node.h
Generated by
1.18.0