OverSim
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
I3IdentifierStack.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2006 Institut fuer Telematik, Universitaet Karlsruhe (TH)
3
//
4
// This program is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU General Public License
6
// as published by the Free Software Foundation; either version 2
7
// of the License, or (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
//
18
24
#ifndef __I3IDENTIFIERSTACK_H__
25
#define __I3IDENTIFIERSTACK_H__
26
27
#include "
I3Identifier.h
"
28
#include "
I3IPAddress.h
"
29
#include "
I3SubIdentifier.h
"
30
#include <IPAddressResolver.h>
31
33
class
I3IdentifierStack
{
34
public
:
38
void
push
(
const
I3Identifier
&
id
);
39
43
void
push
(
const
I3IPAddress
&ip);
44
49
void
push
(
const
IPvXAddress &add,
int
port);
50
54
void
push
(
const
I3IdentifierStack
&
stack
);
55
57
I3SubIdentifier
&
peek
();
58
60
const
I3SubIdentifier
&
peek
()
const
;
61
63
void
pop
();
64
65
void
clear
();
66
68
uint32_t
size
()
const
;
69
73
int
compareTo
(
const
I3IdentifierStack
&s)
const
;
74
75
int
length
()
const
;
76
77
void
replaceAddress
(
const
I3IPAddress
&source,
const
I3IPAddress
&dest);
78
79
friend
std::ostream&
operator<<
(std::ostream& os,
const
I3IdentifierStack
&t);
80
81
protected
:
83
std::list<I3SubIdentifier>
stack
;
84
};
85
86
#endif
src
applications
i3
I3IdentifierStack.h
Generated on Fri Dec 7 2012 13:37:52 for OverSim by
1.8.1.2