QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches
qx::trait::generic_container_item< Key, Value > Struct Template Reference

#include <generic_container.h>

Classes

struct  new_Helper
 
struct  new_Helper< false, T, dummy >
 
struct  value_qx_Helper
 
struct  value_qx_Helper< false, T, U, dummy >
 

Public Types

enum  { is_key_pointer = (std::is_pointer<type_key>::value || qx::trait::is_smart_ptr<type_key>::value) }
 
enum  { is_value_pointer = (std::is_pointer<type_value>::value || qx::trait::is_smart_ptr<type_value>::value) }
 
typedef Key type_key
 
typedef Value type_value
 
typedef qx::trait::remove_attr< Value >::type type_value_qx_tmp
 
typedef qx::trait::remove_smart_ptr< type_value_qx_tmp >::type type_value_qx
 

Public Member Functions

 generic_container_item ()
 
 generic_container_item (const Key &key, const Value &value)
 
 ~generic_container_item ()
 
type_keykey ()
 
type_valuevalue ()
 
const type_keykey () const
 
const type_valuevalue () const
 
type_value_qxvalue_qx ()
 
const type_value_qxvalue_qx () const
 
void key (const Key &key)
 
void value (const Value &value)
 

Static Public Member Functions

static type_key newKey ()
 
static type_value newValue ()
 

Private Attributes

std::pair< type_key, type_valuem_pair
 

Detailed Description

template<typename Key, typename Value>
struct qx::trait::generic_container_item< Key, Value >

Definition at line 66 of file generic_container.h.

Member Typedef Documentation

◆ type_key

template<typename Key , typename Value >
typedef Key qx::trait::generic_container_item< Key, Value >::type_key

Definition at line 69 of file generic_container.h.

◆ type_value

template<typename Key , typename Value >
typedef Value qx::trait::generic_container_item< Key, Value >::type_value

Definition at line 70 of file generic_container.h.

◆ type_value_qx

template<typename Key , typename Value >
typedef qx::trait::remove_smart_ptr<type_value_qx_tmp>::type qx::trait::generic_container_item< Key, Value >::type_value_qx

Definition at line 72 of file generic_container.h.

◆ type_value_qx_tmp

template<typename Key , typename Value >
typedef qx::trait::remove_attr<Value>::type qx::trait::generic_container_item< Key, Value >::type_value_qx_tmp

Definition at line 71 of file generic_container.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Key , typename Value >
anonymous enum
Enumerator
is_key_pointer 

Definition at line 74 of file generic_container.h.

◆ anonymous enum

template<typename Key , typename Value >
anonymous enum
Enumerator
is_value_pointer 

Definition at line 75 of file generic_container.h.

Constructor & Destructor Documentation

◆ generic_container_item() [1/2]

template<typename Key , typename Value >
qx::trait::generic_container_item< Key, Value >::generic_container_item ( )
inline

Definition at line 83 of file generic_container.h.

◆ generic_container_item() [2/2]

template<typename Key , typename Value >
qx::trait::generic_container_item< Key, Value >::generic_container_item ( const Key & key,
const Value & value )
inline

Definition at line 84 of file generic_container.h.

◆ ~generic_container_item()

template<typename Key , typename Value >
qx::trait::generic_container_item< Key, Value >::~generic_container_item ( )
inline

Definition at line 85 of file generic_container.h.

Member Function Documentation

◆ key() [1/3]

template<typename Key , typename Value >
type_key & qx::trait::generic_container_item< Key, Value >::key ( )
inline

Definition at line 87 of file generic_container.h.

◆ key() [2/3]

template<typename Key , typename Value >
const type_key & qx::trait::generic_container_item< Key, Value >::key ( ) const
inline

Definition at line 89 of file generic_container.h.

◆ key() [3/3]

template<typename Key , typename Value >
void qx::trait::generic_container_item< Key, Value >::key ( const Key & key)
inline

Definition at line 94 of file generic_container.h.

◆ newKey()

template<typename Key , typename Value >
static type_key qx::trait::generic_container_item< Key, Value >::newKey ( )
inlinestatic

Definition at line 97 of file generic_container.h.

◆ newValue()

template<typename Key , typename Value >
static type_value qx::trait::generic_container_item< Key, Value >::newValue ( )
inlinestatic

Definition at line 98 of file generic_container.h.

◆ value() [1/3]

template<typename Key , typename Value >
type_value & qx::trait::generic_container_item< Key, Value >::value ( )
inline

Definition at line 88 of file generic_container.h.

◆ value() [2/3]

template<typename Key , typename Value >
const type_value & qx::trait::generic_container_item< Key, Value >::value ( ) const
inline

Definition at line 90 of file generic_container.h.

◆ value() [3/3]

template<typename Key , typename Value >
void qx::trait::generic_container_item< Key, Value >::value ( const Value & value)
inline

Definition at line 95 of file generic_container.h.

◆ value_qx() [1/2]

template<typename Key , typename Value >
type_value_qx & qx::trait::generic_container_item< Key, Value >::value_qx ( )
inline

Definition at line 91 of file generic_container.h.

◆ value_qx() [2/2]

template<typename Key , typename Value >
const type_value_qx & qx::trait::generic_container_item< Key, Value >::value_qx ( ) const
inline

Definition at line 92 of file generic_container.h.

Member Data Documentation

◆ m_pair

template<typename Key , typename Value >
std::pair<type_key, type_value> qx::trait::generic_container_item< Key, Value >::m_pair
private

Definition at line 79 of file generic_container.h.


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