blob: 15d2bf13371d1f80a920d271a29c4b3659eccfd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
// $Id$
ACE_INLINE
TAO_EC_Event_Set::TAO_EC_Event_Set (CORBA::ULong length,
RtecEventComm::Event* buffer)
: length_ (length),
buffer_ (buffer),
refcnt_ (1)
{
}
ACE_INLINE CORBA::ULong
TAO_EC_Event_Set::length (void) const
{
return this->length_;
}
ACE_INLINE RtecEventComm::Event&
TAO_EC_Event_Set::operator[] (CORBA::ULong i) const
{
return this->buffer_[i];
}
ACE_INLINE TAO_EC_Event_Set*
TAO_EC_Event_Set::_duplicate (TAO_EC_Event_Set* x)
{
if (x == 0)
return 0;
x->_incr_refcnt ();
return x;
}
ACE_INLINE void
TAO_EC_Event_Set::_release (TAO_EC_Event_Set* x)
{
if (x == 0)
return;
x->_decr_refcnt ();
}
// ****************************************************************
ACE_INLINE int
TAO_EC_Event::empty (void) const
{
return this->event_set_ == 0;
}
ACE_INLINE void
TAO_EC_Event::clear (void)
{
TAO_EC_Event_Set::_release (this->event_set_);
this->event_set_ = 0;
this->index_ = 0;
}
ACE_INLINE RtecEventComm::Event&
TAO_EC_Event::event (void)
{
return (*this->event_set_)[this->index_];
}
ACE_INLINE const RtecEventComm::Event&
TAO_EC_Event::event (void) const
{
return (*this->event_set_)[this->index_];
}
ACE_INLINE RtecEventComm::EventHeader&
TAO_EC_Event::header (void)
{
return this->event ().header;
}
ACE_INLINE const RtecEventComm::EventHeader&
TAO_EC_Event::header (void) const
{
return this->event ().header;
}
ACE_INLINE RtecEventComm::EventData&
TAO_EC_Event::data (void)
{
return this->event ().data;
}
ACE_INLINE const RtecEventComm::EventData&
TAO_EC_Event::data (void) const
{
return this->event ().data;
}
ACE_INLINE RtecEventComm::EventSourceID
TAO_EC_Event::source (void) const
{
return this->event ().header.source;
}
ACE_INLINE RtecEventComm::EventType
TAO_EC_Event::type (void) const
{
return this->event ().header.type;
}
|