2017-01-18 07:44:17 -05:00
|
|
|
#ifndef OSRM_ENGINE_DATAFACADE_CONTIGUOUS_BLOCK_ALLOCATOR_HPP_
|
|
|
|
#define OSRM_ENGINE_DATAFACADE_CONTIGUOUS_BLOCK_ALLOCATOR_HPP_
|
|
|
|
|
|
|
|
#include "storage/shared_datatype.hpp"
|
|
|
|
|
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace engine
|
|
|
|
{
|
|
|
|
namespace datafacade
|
|
|
|
{
|
|
|
|
|
|
|
|
class ContiguousBlockAllocator
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~ContiguousBlockAllocator() = default;
|
|
|
|
|
|
|
|
// interface to give access to the datafacades
|
2018-03-22 15:16:19 -04:00
|
|
|
virtual const storage::DataLayout &GetLayout() = 0;
|
2017-01-18 07:44:17 -05:00
|
|
|
virtual char *GetMemory() = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace datafacade
|
|
|
|
} // namespace engine
|
|
|
|
} // namespace osrm
|
|
|
|
|
|
|
|
#endif // OSRM_ENGINE_DATAFACADE_CONTIGUOUS_BLOCK_ALLOCATOR_HPP_
|