~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definition/cache.h

  • Committer: Brian Aker
  • Date: 2010-12-23 22:20:46 UTC
  • mto: (2026.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2027.
  • Revision ID: brian@tangent.org-20101223222046-152kydsd1cyexfme
Update to tests, we just want to look at our own tables, not global.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_DEFINITION_CACHE_H
22
22
#define DRIZZLED_DEFINITION_CACHE_H
23
23
 
24
 
#include <drizzled/table/instance.h>
 
24
#include "drizzled/definition/table.h"
25
25
 
26
26
namespace drizzled {
27
27
 
51
51
    cache.rehash(arg);
52
52
  }
53
53
 
54
 
  table::instance::Shared::shared_ptr find(const identifier::Table::Key &identifier);
55
 
  void erase(const identifier::Table::Key &identifier);
56
 
  bool insert(const identifier::Table::Key &identifier, table::instance::Shared::shared_ptr share);
 
54
  TableShare::shared_ptr find(const TableIdentifier::Key &identifier);
 
55
  void erase(const TableIdentifier::Key &identifier);
 
56
  bool insert(const TableIdentifier::Key &identifier, TableShare::shared_ptr share);
57
57
 
58
58
protected:
59
59
  friend class drizzled::generator::TableDefinitionCache;
60
60
 
61
 
  void CopyFrom(table::instance::Shared::vector &vector);
 
61
  void CopyFrom(TableShare::vector &vector);
62
62
 
63
63
private:
64
 
  typedef boost::unordered_map< identifier::Table::Key, table::instance::Shared::shared_ptr> Map;
 
64
  typedef boost::unordered_map< TableIdentifier::Key, TableShare::shared_ptr> Map;
65
65
 
66
66
  Map cache;
67
67
  boost::mutex _mutex;