Common ODB Runtime Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Types | Static Public Member Functions | List of all members
odb::pointer_cache_traits_impl< P, S, pk > Struct Template Reference

Classes

struct  insert_guard
 

Public Types

typedef P pointer_type
 
typedef S session_type
 
typedef odb::pointer_traits
< pointer_type
pointer_traits
 
typedef
pointer_traits::element_type 
object_type
 
typedef object_traits
< object_type >::id_type 
id_type
 
typedef session_type::template
cache_position< object_type
position_type
 

Static Public Member Functions

static position_type insert (odb::database &db, const id_type &id, const pointer_type &p)
 
static position_type insert (odb::database &db, const pointer_type &p)
 
static pointer_type find (odb::database &db, const id_type &id)
 
static void erase (const position_type &p)
 
static void persist (const position_type &p)
 
static void load (const position_type &p)
 
static void update (odb::database &db, const object_type &obj)
 
static void erase (odb::database &db, const id_type &id)
 

Member Typedef Documentation

template<typename P, typename S, pointer_kind pk>
typedef P odb::pointer_cache_traits_impl< P, S, pk >::pointer_type
template<typename P, typename S, pointer_kind pk>
typedef S odb::pointer_cache_traits_impl< P, S, pk >::session_type
template<typename P, typename S, pointer_kind pk>
typedef odb::pointer_traits<pointer_type> odb::pointer_cache_traits_impl< P, S, pk >::pointer_traits
template<typename P, typename S, pointer_kind pk>
typedef pointer_traits::element_type odb::pointer_cache_traits_impl< P, S, pk >::object_type
template<typename P, typename S, pointer_kind pk>
typedef object_traits<object_type>::id_type odb::pointer_cache_traits_impl< P, S, pk >::id_type
template<typename P, typename S, pointer_kind pk>
typedef session_type::template cache_position<object_type> odb::pointer_cache_traits_impl< P, S, pk >::position_type

Member Function Documentation

template<typename P, typename S, pointer_kind pk>
static position_type odb::pointer_cache_traits_impl< P, S, pk >::insert ( odb::database db,
const id_type id,
const pointer_type p 
)
inlinestatic
template<typename P, typename S, pointer_kind pk>
static position_type odb::pointer_cache_traits_impl< P, S, pk >::insert ( odb::database db,
const pointer_type p 
)
inlinestatic
template<typename P, typename S, pointer_kind pk>
static pointer_type odb::pointer_cache_traits_impl< P, S, pk >::find ( odb::database db,
const id_type id 
)
inlinestatic
template<typename P, typename S, pointer_kind pk>
static void odb::pointer_cache_traits_impl< P, S, pk >::erase ( const position_type p)
inlinestatic
template<typename P, typename S, pointer_kind pk>
static void odb::pointer_cache_traits_impl< P, S, pk >::persist ( const position_type p)
inlinestatic
template<typename P, typename S, pointer_kind pk>
static void odb::pointer_cache_traits_impl< P, S, pk >::load ( const position_type p)
inlinestatic
template<typename P, typename S, pointer_kind pk>
static void odb::pointer_cache_traits_impl< P, S, pk >::update ( odb::database db,
const object_type obj 
)
inlinestatic
template<typename P, typename S, pointer_kind pk>
static void odb::pointer_cache_traits_impl< P, S, pk >::erase ( odb::database db,
const id_type id 
)
inlinestatic

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