RINASim  October 2016
Documentation of framework for OMNeT++
DCAddr.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 namespace NSPSimpleDC {
6 
7 using namespace std;
8 
9  struct DCAddr {
10  int type, a, b;
11 
12  DCAddr();
13  DCAddr(const int & _type, const int & _a, const int & _b);
14  DCAddr(const string & s_addr);
15 
16  bool operator<( const DCAddr & n ) const;
17  bool operator==( const DCAddr & n ) const;
18  bool operator!=( const DCAddr & n ) const;
19 
20  string toString();
21  };
22 
23  std::ostream& operator << (std::ostream &o, const DCAddr &a);
24 }
std::ostream & operator<<(std::ostream &o, const DCAddr &a)
Definition: DCAddr.cc:49