示例#1
0
    virtual ~CellList()
    {
      for (IntCells::iterator it = intCells.begin(); it!=intCells.end(); ++it)
        delete it->second;

      for (ExtCells::iterator it = extCells.begin(); it!=extCells.end(); ++it)
          delete it->second;
    }
示例#2
0
文件: reclists.hpp 项目: am0s/openmw
    const Cell* findInt(const std::string &id) const
    {
      IntCells::const_iterator it = intCells.find(id);

      if(it == intCells.end())
        return NULL;

      return it->second;
    }
示例#3
0
    const ESM::Cell* searchInt(const std::string &id) const
    {
      IntCells::const_iterator iter = intCells.find(id);

      if (iter!=intCells.end())
        return iter->second;

      return 0;
    }
示例#4
0
文件: reclists.hpp 项目: am0s/openmw
    ~CellList()
    {
      for (IntCells::iterator it = intCells.begin(); it!=intCells.end(); ++it)
        delete it->second;

      for (ExtCells::iterator it = extCells.begin(); it!=extCells.end(); ++it)
      {
        ExtCellsCol& col = it->second;
        for (ExtCellsCol::iterator it = col.begin(); it!=col.end(); ++it)
        {
          delete it->second;
        }
      }
    }
示例#5
0
 virtual void listIdentifier (std::vector<std::string>& identifier) const
 {
     for (IntCells::const_iterator iter (intCells.begin()); iter!=intCells.end(); ++iter)
         identifier.push_back (iter->first);
 }