#include <nameidmapping.h>
Collaboration diagram for NameIdMapping:Public Member Functions | |
| void | serialize (std::ostream &os) const |
| void | deSerialize (std::istream &is) |
| void | clear () |
| void | set (u16 id, const std::string &name) |
| void | removeId (u16 id) |
| void | eraseName (const std::string &name) |
| bool | getName (u16 id, std::string &result) const |
| bool | getId (const std::string &name, u16 &result) const |
| u16 | size () const |
Private Attributes | |
| IdToNameMap | m_id_to_name |
| NameToIdMap | m_name_to_id |
|
inline |
References m_id_to_name, and m_name_to_id.
Referenced by NodeDefManager::clear().
Here is the caller graph for this function:| void NameIdMapping::deSerialize | ( | std::istream & | is | ) |
References deSerializeString16(), m_id_to_name, m_name_to_id, readU16(), and readU8().
Referenced by MapBlock::deSerialize(), and MapBlock::deSerialize_pre22().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References getId(), m_id_to_name, and m_name_to_id.
Referenced by NodeDefManager::removeNode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_name_to_id.
Referenced by MapBlock::deSerialize(), NodeDefManager::deSerialize(), MapBlock::deSerialize_pre22(), eraseName(), NodeDefManager::removeNode(), NodeDefManager::set(), and NodeDefManager::updateAliases().
Here is the caller graph for this function:
|
inline |
References m_id_to_name.
Referenced by correctBlockNodeIds(), ItemStack::deSerialize(), and removeId().
Here is the caller graph for this function:
|
inline |
| void NameIdMapping::serialize | ( | std::ostream & | os | ) | const |
References m_id_to_name, serializeString16(), writeU16(), and writeU8().
Referenced by MapBlock::serialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_id_to_name, and m_name_to_id.
Referenced by NodeDefManager::addNameIdMapping(), content_mapnode_get_name_id_mapping(), and getBlockNodeIdMapping().
Here is the caller graph for this function:
|
inline |
References m_id_to_name.
Referenced by MapBlock::deSerialize(), and MapBlock::deSerialize_pre22().
Here is the caller graph for this function:
|
private |
Referenced by clear(), deSerialize(), eraseName(), getName(), removeId(), serialize(), set(), and size().
|
private |
Referenced by clear(), deSerialize(), eraseName(), getId(), removeId(), and set().