OpenDDS
Snapshot(2023/04/28-20:55)
dds
DCPS
InstanceHandle.cpp
Go to the documentation of this file.
1
/*
2
*
3
*
4
* Distributed under the OpenDDS License.
5
* See: http://www.opendds.org/license.html
6
*/
7
8
#include "
DCPS/DdsDcps_pch.h
"
//Only the _pch include should start with DCPS/
9
10
#include "dds/DdsDcpsGuidC.h"
11
12
#include "
InstanceHandle.h
"
13
14
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
15
16
namespace
OpenDDS
{
17
namespace
DCPS {
18
19
InstanceHandleGenerator::InstanceHandleGenerator
(
long
begin)
20
: sequence_(begin)
21
{
22
}
23
24
InstanceHandleGenerator::~InstanceHandleGenerator
()
25
{
26
}
27
28
DDS::InstanceHandle_t
29
InstanceHandleGenerator::next
()
30
{
31
return
++
sequence_
;
32
}
33
34
}
// namespace DCPS
35
}
// namespace OpenDDS
36
37
OPENDDS_END_VERSIONED_NAMESPACE_DECL
OpenDDS::DCPS::InstanceHandleGenerator::next
DDS::InstanceHandle_t next()
Definition:
InstanceHandle.cpp:29
OpenDDS::DCPS::InstanceHandleGenerator::InstanceHandleGenerator
InstanceHandleGenerator(long begin=HANDLE_UNKNOWN)
Definition:
InstanceHandle.cpp:19
OpenDDS::DCPS::InstanceHandleGenerator::sequence_
Atomic< long > sequence_
Definition:
InstanceHandle.h:32
DDS::InstanceHandle_t
HANDLE_TYPE_NATIVE InstanceHandle_t
Definition:
DdsDcpsCore.idl:51
DdsDcps_pch.h
OPENDDS_END_VERSIONED_NAMESPACE_DECL
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
Definition:
Versioned_Namespace.h:48
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
Definition:
Hash.cpp:17
OpenDDS::DCPS::InstanceHandleGenerator::~InstanceHandleGenerator
~InstanceHandleGenerator()
Definition:
InstanceHandle.cpp:24
OpenDDS
The Internal API and Implementation of OpenDDS.
Definition:
AddressCache.h:28
InstanceHandle.h
Generated by
1.8.13