VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvUtil
DtKeyedSignalConnectionManager.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtKeyedSignalConnectionManager.h,v $ $Revision: 1.11 $ $State: Exp $
7
******************************************************************************/
8
13
14
#pragma once
15
16
#include <
vrvUtil/vrvUtil.h
>
17
#include <
vrvUtil/DtSignalConnectionManager.h
>
18
19
#include <boost/unordered_map.hpp>
20
21
namespace
makVrv
22
{
27
template
<
typename
KeyType>
28
class
DtKeyedSignalConnectionManager
:
public
DtSignalConnectionManager
29
{
30
public
:
31
33
DtKeyedSignalConnectionManager
();
34
36
virtual
~DtKeyedSignalConnectionManager
();
37
39
void
manageConnection
(KeyType key,
const
boost::signalslib::connection& conn);
40
42
void
disconnectSignals
();
43
45
void
disconnectSignal
(KeyType key);
46
48
void
removeSignal
(KeyType key);
49
52
bool
blockConnections
(
bool
blocked);
53
55
bool
connectionsBlocked
()
const
;
56
60
bool
blockConnection
(KeyType key,
bool
blocked );
61
63
bool
connectionBlocked
(KeyType key)
const
;
64
65
protected
:
67
typedef
boost::unordered_map<KeyType, boost::signalslib::connection>
KeyedConnectionsMap
;
68
70
KeyedConnectionsMap
myKeyedConnections
;
71
72
private
:
73
75
DtKeyedSignalConnectionManager
&
operator=
(
DtKeyedSignalConnectionManager
asn);
76
78
DtKeyedSignalConnectionManager
(
const
DtKeyedSignalConnectionManager
& copy);
79
};
80
81
}
82
83
#define keyed_signal_connection_manager_INL_
84
#include <vrvUtil/DtKeyedSignalConnectionManager.inl>
85
#undef keyed_signal_connection_manager_INL_
86
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)