2011-01-12 13:08:10 -05:00
|
|
|
/*
|
2013-10-14 07:42:28 -04:00
|
|
|
|
2015-02-19 03:19:51 -05:00
|
|
|
Copyright (c) 2014, Project OSRM contributors
|
2013-10-14 07:42:28 -04:00
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without modification,
|
|
|
|
are permitted provided that the following conditions are met:
|
|
|
|
|
|
|
|
Redistributions of source code must retain the above copyright notice, this list
|
|
|
|
of conditions and the following disclaimer.
|
|
|
|
Redistributions in binary form must reproduce the above copyright notice, this
|
|
|
|
list of conditions and the following disclaimer in the documentation and/or
|
|
|
|
other materials provided with the distribution.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
*/
|
2011-01-12 13:08:10 -05:00
|
|
|
|
2014-11-28 06:13:18 -05:00
|
|
|
#ifndef EXTERNAL_MEMORY_NODE_HPP_
|
|
|
|
#define EXTERNAL_MEMORY_NODE_HPP_
|
2012-08-27 11:40:59 -04:00
|
|
|
|
2014-11-28 06:13:18 -05:00
|
|
|
#include "query_node.hpp"
|
2012-08-29 12:33:18 -04:00
|
|
|
|
2015-02-09 11:38:40 -05:00
|
|
|
#include "../typedefs.h"
|
2014-05-10 08:54:46 -04:00
|
|
|
|
2014-08-29 06:37:07 -04:00
|
|
|
struct ExternalMemoryNode : QueryNode
|
2014-05-07 12:39:16 -04:00
|
|
|
{
|
2014-08-29 06:28:10 -04:00
|
|
|
ExternalMemoryNode(int lat, int lon, NodeID id, bool barrier, bool traffic_light);
|
2014-02-18 13:26:57 -05:00
|
|
|
|
2014-05-29 12:31:02 -04:00
|
|
|
ExternalMemoryNode();
|
2014-05-07 12:39:16 -04:00
|
|
|
|
2014-05-29 12:31:02 -04:00
|
|
|
static ExternalMemoryNode min_value();
|
2014-02-18 13:26:57 -05:00
|
|
|
|
2014-05-29 12:31:02 -04:00
|
|
|
static ExternalMemoryNode max_value();
|
2014-05-07 12:39:16 -04:00
|
|
|
|
2014-08-29 06:28:10 -04:00
|
|
|
bool barrier;
|
|
|
|
bool traffic_lights;
|
2012-08-29 12:33:18 -04:00
|
|
|
};
|
2012-08-27 11:40:59 -04:00
|
|
|
|
2014-08-29 06:07:00 -04:00
|
|
|
struct ExternalMemoryNodeSTXXLCompare
|
|
|
|
{
|
|
|
|
using value_type = ExternalMemoryNode;
|
|
|
|
bool operator()(const ExternalMemoryNode &left, const ExternalMemoryNode &right) const;
|
|
|
|
value_type max_value();
|
|
|
|
value_type min_value();
|
|
|
|
};
|
|
|
|
|
2014-11-28 06:13:18 -05:00
|
|
|
#endif /* EXTERNAL_MEMORY_NODE_HPP_ */
|