drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::catalog::Cache Class Reference
Collaboration diagram for drizzled::catalog::Cache:
[legend]

Public Types

typedef std::unordered_map< identifier::Catalog, catalog::Instance::shared_ptr > unordered_map

Static Public Member Functions

static size_t size ()
static Instance::shared_ptr find (const identifier::Catalog &, error_t &)
static bool exist (const identifier::Catalog &)
static bool erase (const identifier::Catalog &, error_t &)
static bool insert (const identifier::Catalog &, Instance::shared_ptr, error_t &)
static bool lock (const identifier::Catalog &, error_t &)
static bool unlock (const identifier::Catalog &, error_t &)
static void copy (catalog::Instance::vector &)

Static Public Attributes

static unordered_map cache
static boost::mutex _mutex

Detailed Description

Definition at line 36 of file catalog/cache.h.

Member Typedef Documentation

◆ unordered_map

typedef std::unordered_map<identifier::Catalog, catalog::Instance::shared_ptr> drizzled::catalog::Cache::unordered_map

Definition at line 52 of file catalog/cache.h.

Member Function Documentation

◆ copy()

void drizzled::catalog::Cache::copy ( catalog::Instance::vector & vector)
static

Definition at line 101 of file catalog/cache.cc.

◆ erase()

bool drizzled::catalog::Cache::erase ( const identifier::Catalog & identifier,
error_t & error )
static

Definition at line 50 of file catalog/cache.cc.

◆ exist()

bool drizzled::catalog::Cache::exist ( const identifier::Catalog & identifier)
static

Definition at line 44 of file catalog/cache.cc.

◆ find()

Instance::shared_ptr drizzled::catalog::Cache::find ( const identifier::Catalog & identifier,
error_t & error )
static

Definition at line 32 of file catalog/cache.cc.

◆ insert()

bool drizzled::catalog::Cache::insert ( const identifier::Catalog & identifier,
Instance::shared_ptr instance,
error_t & error )
static

Definition at line 92 of file catalog/cache.cc.

◆ lock()

bool drizzled::catalog::Cache::lock ( const identifier::Catalog & identifier,
error_t & error )
static

Definition at line 83 of file catalog/cache.cc.

◆ size()

size_t drizzled::catalog::Cache::size ( )
inlinestatic

Definition at line 39 of file catalog/cache.h.

◆ unlock()

bool drizzled::catalog::Cache::unlock ( const identifier::Catalog & identifier,
error_t & error )
static

Definition at line 63 of file catalog/cache.cc.

Member Data Documentation

◆ _mutex

boost::mutex drizzled::catalog::Cache::_mutex
static

Definition at line 55 of file catalog/cache.h.

◆ cache

Cache::unordered_map drizzled::catalog::Cache::cache
static

Definition at line 54 of file catalog/cache.h.


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