remove some uncommented code
This commit is contained in:
parent
8ae467985f
commit
899ab9ddc0
@ -32,7 +32,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "../Util/SimpleLogger.h"
|
#include "../Util/SimpleLogger.h"
|
||||||
#include "../typedefs.h"
|
#include "../typedefs.h"
|
||||||
|
|
||||||
struct PhantomNode {
|
struct PhantomNode
|
||||||
|
{
|
||||||
PhantomNode() :
|
PhantomNode() :
|
||||||
forward_node_id(SPECIAL_NODEID),
|
forward_node_id(SPECIAL_NODEID),
|
||||||
reverse_node_id(SPECIAL_NODEID),
|
reverse_node_id(SPECIAL_NODEID),
|
||||||
@ -53,7 +54,6 @@ struct PhantomNode {
|
|||||||
int forward_offset;
|
int forward_offset;
|
||||||
int reverse_offset;
|
int reverse_offset;
|
||||||
unsigned packed_geometry_id;
|
unsigned packed_geometry_id;
|
||||||
// double ratio;
|
|
||||||
FixedPointCoordinate location;
|
FixedPointCoordinate location;
|
||||||
unsigned short fwd_segment_position;
|
unsigned short fwd_segment_position;
|
||||||
|
|
||||||
@ -77,7 +77,6 @@ struct PhantomNode {
|
|||||||
reverse_weight = INVALID_EDGE_WEIGHT;
|
reverse_weight = INVALID_EDGE_WEIGHT;
|
||||||
forward_offset = 0;
|
forward_offset = 0;
|
||||||
reverse_offset = 0;
|
reverse_offset = 0;
|
||||||
// ratio = 0.;
|
|
||||||
location.Reset();
|
location.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,9 +117,9 @@ struct PhantomNode {
|
|||||||
|
|
||||||
struct PhantomNodes
|
struct PhantomNodes
|
||||||
{
|
{
|
||||||
//TODO: rename to lower-case non-camel source_*,target_*
|
|
||||||
PhantomNode source_phantom;
|
PhantomNode source_phantom;
|
||||||
PhantomNode target_phantom;
|
PhantomNode target_phantom;
|
||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
source_phantom.Reset();
|
source_phantom.Reset();
|
||||||
@ -144,15 +143,15 @@ struct PhantomNodes
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
inline std::ostream& operator<<(std::ostream &out, const PhantomNodes & pn) {
|
inline std::ostream& operator<<(std::ostream &out, const PhantomNodes & pn)
|
||||||
// out << "Node1: " << pn.source_phantom.forward_node_id << "\n";
|
{
|
||||||
// out << "Node2: " << pn.target_phantom.reverse_node_id << "\n";
|
|
||||||
out << "source_coord: " << pn.source_phantom.location << "\n";
|
out << "source_coord: " << pn.source_phantom.location << "\n";
|
||||||
out << "target_coord: " << pn.target_phantom.location << std::endl;
|
out << "target_coord: " << pn.target_phantom.location << std::endl;
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline std::ostream& operator<<(std::ostream &out, const PhantomNode & pn) {
|
inline std::ostream& operator<<(std::ostream &out, const PhantomNode & pn)
|
||||||
|
{
|
||||||
out << "node1: " << pn.forward_node_id << ", " <<
|
out << "node1: " << pn.forward_node_id << ", " <<
|
||||||
"node2: " << pn.reverse_node_id << ", " <<
|
"node2: " << pn.reverse_node_id << ", " <<
|
||||||
"name: " << pn.name_id << ", " <<
|
"name: " << pn.name_id << ", " <<
|
||||||
@ -160,7 +159,6 @@ inline std::ostream& operator<<(std::ostream &out, const PhantomNode & pn) {
|
|||||||
"rev-w: " << pn.reverse_weight << ", " <<
|
"rev-w: " << pn.reverse_weight << ", " <<
|
||||||
"fwd-o: " << pn.forward_offset << ", " <<
|
"fwd-o: " << pn.forward_offset << ", " <<
|
||||||
"rev-o: " << pn.reverse_offset << ", " <<
|
"rev-o: " << pn.reverse_offset << ", " <<
|
||||||
// "ratio: " << pn.ratio << ", " <<
|
|
||||||
"geom: " << pn.packed_geometry_id << ", " <<
|
"geom: " << pn.packed_geometry_id << ", " <<
|
||||||
"pos: " << pn.fwd_segment_position << ", " <<
|
"pos: " << pn.fwd_segment_position << ", " <<
|
||||||
"loc: " << pn.location;
|
"loc: " << pn.location;
|
||||||
|
Loading…
Reference in New Issue
Block a user