MythTV  master
Public Types | Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
MultiValueImp Class Reference
Collaboration diagram for MultiValueImp:
[legend]

Public Types

using entry = MultiValue::entry
 

Public Member Functions

 MultiValueImp (QString table_name, QString id_name, QString value_name)
 
void load_data ()
 
void cleanup ()
 
int add (int id, int value)
 
bool get (int id, entry &values)
 
void remove (int id, int value)
 
void remove (int id)
 
bool exists (int id, int value)
 
bool exists (int id)
 

Public Attributes

QMutex m_mutex
 

Private Types

using id_map = std::map< int, entry >
 

Private Member Functions

void fill_from_db ()
 

Private Attributes

id_map m_valMap
 
QString m_tableName
 
QString m_idName
 
QString m_valueName
 
QString m_insertSql
 
QString m_fillSql
 
QString m_idSql
 
bool m_ready {false}
 
SimpleCleanup< MultiValueImpm_cleanStub
 

Detailed Description

Definition at line 253 of file dbaccess.cpp.

Member Typedef Documentation

◆ entry

Definition at line 256 of file dbaccess.cpp.

◆ id_map

using MultiValueImp::id_map = std::map<int, entry>
private

Definition at line 259 of file dbaccess.cpp.

Constructor & Destructor Documentation

◆ MultiValueImp()

MultiValueImp::MultiValueImp ( QString  table_name,
QString  id_name,
QString  value_name 
)
inline

Definition at line 262 of file dbaccess.cpp.

Member Function Documentation

◆ load_data()

void MultiValueImp::load_data ( )
inline

Definition at line 275 of file dbaccess.cpp.

Referenced by MultiValue::load_data().

◆ cleanup()

void MultiValueImp::cleanup ( )
inline

Definition at line 285 of file dbaccess.cpp.

◆ add()

int MultiValueImp::add ( int  id,
int  value 
)
inline

Definition at line 291 of file dbaccess.cpp.

Referenced by MultiValue::add().

◆ get()

bool MultiValueImp::get ( int  id,
entry values 
)
inline

◆ remove() [1/2]

void MultiValueImp::remove ( int  id,
int  value 
)
inline

Definition at line 338 of file dbaccess.cpp.

Referenced by MultiValue::remove().

◆ remove() [2/2]

void MultiValueImp::remove ( int  id)
inline

Definition at line 363 of file dbaccess.cpp.

◆ exists() [1/2]

bool MultiValueImp::exists ( int  id,
int  value 
)
inline

Definition at line 381 of file dbaccess.cpp.

Referenced by MultiValue::exists().

◆ exists() [2/2]

bool MultiValueImp::exists ( int  id)
inline

Definition at line 394 of file dbaccess.cpp.

◆ fill_from_db()

void MultiValueImp::fill_from_db ( )
inlineprivate

Definition at line 400 of file dbaccess.cpp.

Referenced by load_data().

Member Data Documentation

◆ m_mutex

QMutex MultiValueImp::m_mutex
mutable

Definition at line 273 of file dbaccess.cpp.

Referenced by load_data().

◆ m_valMap

id_map MultiValueImp::m_valMap
private

Definition at line 431 of file dbaccess.cpp.

Referenced by add(), cleanup(), exists(), fill_from_db(), get(), and remove().

◆ m_tableName

QString MultiValueImp::m_tableName
private

Definition at line 433 of file dbaccess.cpp.

Referenced by MultiValueImp(), and remove().

◆ m_idName

QString MultiValueImp::m_idName
private

Definition at line 434 of file dbaccess.cpp.

Referenced by MultiValueImp(), and remove().

◆ m_valueName

QString MultiValueImp::m_valueName
private

Definition at line 435 of file dbaccess.cpp.

Referenced by MultiValueImp(), and remove().

◆ m_insertSql

QString MultiValueImp::m_insertSql
private

Definition at line 437 of file dbaccess.cpp.

Referenced by add(), and MultiValueImp().

◆ m_fillSql

QString MultiValueImp::m_fillSql
private

Definition at line 438 of file dbaccess.cpp.

Referenced by fill_from_db(), and MultiValueImp().

◆ m_idSql

QString MultiValueImp::m_idSql
private

Definition at line 439 of file dbaccess.cpp.

◆ m_ready

bool MultiValueImp::m_ready {false}
private

Definition at line 441 of file dbaccess.cpp.

Referenced by cleanup(), and load_data().

◆ m_cleanStub

SimpleCleanup<MultiValueImp> MultiValueImp::m_cleanStub
private

Definition at line 442 of file dbaccess.cpp.


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