/[resiprocate]/main/resip/dum/DialogId.hxx
ViewVC logotype

Contents of /main/resip/dum/DialogId.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2857 - (show annotations) (download)
Sun May 30 03:46:09 2004 UTC (15 years, 7 months ago) by alan
Original Path: main/sip/resiprocate/dum/DialogId.hxx
File size: 1146 byte(s)
hash repairs
1 #if !defined(RESIP_DIALOG_ID_HXX)
2 #define RESIP_DIALOG_ID_HXX
3
4 #include "resiprocate/os/Data.hxx"
5 #include "resiprocate/dum/DialogSetId.hxx"
6
7 namespace resip
8 {
9
10 class DialogId
11 {
12 public:
13 DialogId(const SipMessage& msg );
14 DialogId(const Data& callId, const Data& localTag, const Data& remoteTag );
15 DialogId(const DialogSetId id, const Data& remoteTag );
16
17 bool operator==(const DialogId& rhs) const;
18 bool operator!=(const DialogId& rhs) const;
19 bool operator<(const DialogId& rhs) const;
20
21 const DialogSetId& getDialogSetId() const;
22
23 size_t hash() const;
24
25 #if defined(HASH_MAP_NAMESPACE)
26 friend struct HASH_MAP_NAMESPACE::hash<resip::DialogId>;
27 #elif defined(__INTEL_COMPILER )
28 friend size_t hash_value(const resip::DialogId& id);
29 #endif
30
31 private:
32 DialogSetId mDialogSetId;
33 Data mRemoteTag;
34 };
35 }
36 #if defined(HASH_MAP_NAMESPACE)
37 namespace HASH_MAP_NAMESPACE
38 {
39 struct hash<resip::DialogId>
40 {
41 size_t operator()(const resip::DialogId& id) const;
42 };
43 }
44 #elif defined(__INTEL_COMPILER)
45 namespace std { size_t hash_value(const resip::DialogId& id); }
46 #endif
47
48
49 #endif

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27