-/* $ID$ */
-
-/* Copyright (c) 2007, 2009, 2010. The SimGrid Team.
+/* Copyright (c) 2007, 2009-2011, 2013-2014. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-
#ifndef _GTNETS_TOPOLOGY_H
#define _GTNETS_TOPOLOGY_H
public:
GTNETS_Node(int);
- GTNETS_Node(const GTNETS_Node & node);
- ~GTNETS_Node();
+ GTNETS_Node(const GTNETS_Node & node);
+ ~GTNETS_Node();
int add_host(int);
int add_router(int);
public:
GTNETS_Link();
GTNETS_Link(int id);
- GTNETS_Link(const GTNETS_Link &);
- ~GTNETS_Link();
+ GTNETS_Link(const GTNETS_Link &);
+ ~GTNETS_Link();
GTNETS_Node *src_node();
GTNETS_Node *dst_node();
private:
int nodeID_;
- map < int, GTNETS_Link * >links_;
- vector < GTNETS_Node * >nodes_;
+ map < int, GTNETS_Link * >links_;
+ vector < GTNETS_Node * >nodes_;
- map < int, int >hosts_; //hostid->nodeid
+ map < int, int >hosts_; //hostid->nodeid
- set < int >routers_;
+ set < int >routers_;
};
#endif