Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | List of all members
cChunkCoordsHash Class Reference

A simple hash function for chunk coords, we assume that chunk coords won't use more than 16 bits, so the hash is almost an identity. More...

#include <ChunkDef.h>

Public Member Functions

size_t operator() (const cChunkCoords &a_Coords) const
 

Detailed Description

A simple hash function for chunk coords, we assume that chunk coords won't use more than 16 bits, so the hash is almost an identity.

Used for std::unordered_map<cChunkCoords, ...>

Definition at line 575 of file ChunkDef.h.

Member Function Documentation

size_t cChunkCoordsHash::operator() ( const cChunkCoords a_Coords) const
inline

Definition at line 578 of file ChunkDef.h.


The documentation for this class was generated from the following file: