typedef simgrid::s4u::NetZone s4u_NetZone;
typedef simgrid::s4u::VirtualMachine s4u_VM;
typedef boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> smx_activity_t;
-typedef simgrid::kernel::routing::NetPoint routing_NetPoint;
typedef simgrid::trace_mgr::trace tmgr_Trace;
typedef simgrid::kernel::context::Context* smx_context_t;
typedef struct s4u_NetZone s4u_NetZone;
typedef struct s4u_VM s4u_VM;
typedef struct kernel_Activity* smx_activity_t;
-typedef struct routing_NetPoint routing_NetPoint;
typedef struct Trace tmgr_Trace;
typedef struct s_smx_context* smx_context_t;
typedef s4u_VM* sg_vm_t;
typedef s4u_Actor* sg_actor_t;
-typedef routing_NetPoint* sg_netpoint_t;
-
typedef tmgr_Trace *tmgr_trace_t; /**< Opaque structure defining an availability trace */
typedef struct s_smx_simcall* smx_simcall_t;
} // namespace kernel
} // namespace simgrid
-XBT_PUBLIC sg_netpoint_t sg_netpoint_by_name_or_null(const char* name);
+XBT_PUBLIC simgrid::kernel::routing::NetPoint* sg_netpoint_by_name_or_null(const char* name);
#endif /* KERNEL_ROUTING_NETPOINT_HPP_ */
static void instr_user_srcdst_variable(double time, const char *src, const char *dst, const char *variable,
const char *father_type, double value, InstrUserVariable what)
{
- sg_netpoint_t src_elm = sg_netpoint_by_name_or_null(src);
+ simgrid::kernel::routing::NetPoint* src_elm = sg_netpoint_by_name_or_null(src);
if (not src_elm)
xbt_die("Element '%s' not found!",src);
- sg_netpoint_t dst_elm = sg_netpoint_by_name_or_null(dst);
+ simgrid::kernel::routing::NetPoint* dst_elm = sg_netpoint_by_name_or_null(dst);
if (not dst_elm)
xbt_die("Element '%s' not found!",dst);
-/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2018. 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. */
Type* type_; /* Type of this container */
Container* father_;
std::map<std::string, Container*> children_;
- sg_netpoint_t netpoint_ = nullptr;
+ kernel::routing::NetPoint* netpoint_ = nullptr;
static Container* byNameOrNull(std::string name);
static Container* byName(std::string name);
route->gw_dst = route_stack.front()->gw_dst;
}
- sg_netpoint_t prev_dst_gw = nullptr;
+ NetPoint* prev_dst_gw = nullptr;
while (not route_stack.empty()) {
RouteCreationArgs* e_route = route_stack.back();
route_stack.pop_back();
}
}
-void FloydZone::add_route(kernel::routing::NetPoint* src, kernel::routing::NetPoint* dst,
- kernel::routing::NetPoint* gw_src, kernel::routing::NetPoint* gw_dst,
+void FloydZone::add_route(NetPoint* src, NetPoint* dst, NetPoint* gw_src, NetPoint* gw_dst,
std::vector<simgrid::surf::LinkImpl*>& link_list, bool symmetrical)
{
/* set the size of table routing */
return vertices_.size() - 1; // The rank of the newly created object
}
-void NetZone::add_route(sg_netpoint_t /*src*/, sg_netpoint_t /*dst*/, sg_netpoint_t /*gw_src*/,
- sg_netpoint_t /*gw_dst*/, std::vector<simgrid::surf::LinkImpl*>& /*link_list*/,
- bool /*symmetrical*/)
+void NetZone::add_route(kernel::routing::NetPoint* /*src*/, kernel::routing::NetPoint* /*dst*/,
+ kernel::routing::NetPoint* /*gw_src*/, kernel::routing::NetPoint* /*gw_dst*/,
+ std::vector<simgrid::surf::LinkImpl*>& /*link_list*/, bool /*symmetrical*/)
{
xbt_die("NetZone '%s' does not accept new routes (wrong class).", name_.c_str());
}
class RouteCreationArgs {
public:
- bool symmetrical = false;
- sg_netpoint_t src = nullptr;
- sg_netpoint_t dst = nullptr;
- sg_netpoint_t gw_src = nullptr;
- sg_netpoint_t gw_dst = nullptr;
+ bool symmetrical = false;
+ NetPoint* src = nullptr;
+ NetPoint* dst = nullptr;
+ NetPoint* gw_src = nullptr;
+ NetPoint* gw_dst = nullptr;
std::vector<simgrid::surf::LinkImpl*> link_list;
};