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

Public Member Functions

size_t size () const
void rehash (size_t arg)
table::shared_ptr find (const identifier::Table &identifier)
void erase (const identifier::Table &identifier)
bool insert (const identifier::Table &identifier, table::shared_ptr share)
bool insert (const identifier::Table &identifier, Table &share)

Static Public Member Functions

static Cache & singleton ()

Private Types

typedef std::unordered_map< identifier::Table::Key, table::shared_ptr > Map

Private Attributes

boost::mutex _access
Map cache

Detailed Description

Definition at line 32 of file message/cache.h.

Member Typedef Documentation

◆ Map

typedef std::unordered_map<identifier::Table::Key, table::shared_ptr> drizzled::message::Cache::Map
private

Definition at line 56 of file message/cache.h.

Member Function Documentation

◆ erase()

void drizzled::message::Cache::erase ( const identifier::Table & identifier)

Definition at line 37 of file message/cache.cc.

◆ find()

table::shared_ptr drizzled::message::Cache::find ( const identifier::Table & identifier)

Definition at line 29 of file message/cache.cc.

◆ insert()

bool drizzled::message::Cache::insert ( const identifier::Table & identifier,
table::shared_ptr share )

Definition at line 43 of file message/cache.cc.

◆ rehash()

void drizzled::message::Cache::rehash ( size_t arg)
inline

Definition at line 46 of file message/cache.h.

◆ singleton()

Cache & drizzled::message::Cache::singleton ( )
inlinestatic

Definition at line 35 of file message/cache.h.

◆ size()

size_t drizzled::message::Cache::size ( ) const
inline

Definition at line 41 of file message/cache.h.

Member Data Documentation

◆ _access

boost::mutex drizzled::message::Cache::_access
private

Definition at line 58 of file message/cache.h.

◆ cache

Map drizzled::message::Cache::cache
private

Definition at line 59 of file message/cache.h.


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