blob: ab8e0eee53d4df267567418d09926b7c4ed13608 (
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
|
/* -*- C++ -*- */
// $Id$
// ============================================================================
//
// = LIBRARY
// apps
//
// = FILENAME
// Routing_Entry.h
//
// = AUTHOR
// Doug Schmidt
//
// ============================================================================
#if !defined (_ROUTING_ENTRY)
#define _ROUTING_ENTRY
#include "ace/Set.h"
// Forward reference.
class Channel;
class Routing_Entry
{
// = TITLE
// Defines an entry in the Routing_Table.
public:
Routing_Entry (int validity_interval = 0);
~Routing_Entry (void);
typedef ACE_Unbounded_Set<Channel *> ENTRY_SET;
typedef ACE_Unbounded_Set_Iterator<Channel *> ENTRY_ITERATOR;
// = Set/get the associated set of destinations.
ENTRY_SET *destinations (void);
void destinations (ENTRY_SET *);
// = Set/get current validity interval for this routing entry.
int validity_interval (void);
void validity_interval (int);
protected:
ENTRY_SET *destinations_;
// The set of destinations;
int validity_interval_;
// The current validity interval of this link.
};
#endif /* _ROUTING_ENTRY */
|