identt
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
identt::utils::SharedTable Class Reference
Inheritance diagram for identt::utils::SharedTable:

Public Types

using pointer = std::shared_ptr< SharedTable >
 
using dbpointer = identt::store::StoreLevel::dbpointer
 
using LockT = boost::shared_mutex
 
using WriteLockT = boost::unique_lock< LockT >
 
using ReadLockT = boost::shared_lock< LockT >
 
using SharedString = SharedObject< std::string >
 
using SharedDBPointer = SharedObject< dbpointer >
 
using SharedBool = SharedObject< bool >
 
using SharedInt = SharedObject< size_t >
 
using SharedRemote = SharedPairMap< std::string, uint64_t, uint64_t >
 
using RemoteMapT = SharedPairMap< std::string, uint64_t, uint64_t >::PairMapT
 
using SharedTrans = SharedMap< uint64_t, std::string >
 
using KeyRingT = std::unordered_map< std::string, std::shared_ptr< identt::crypto::CryptoBase > >
 
using SharedCache = identt::store::StoreCache::pointer
 

Public Member Functions

 SharedTable (const SharedTable &)=delete
 make noncopyable
 
SharedTableoperator= (const SharedTable &)=delete
 
pointer share ()
 share : return instance More...
 
virtual ~SharedTable ()
 destructor
 

Static Public Member Functions

static pointer create ()
 create : static construction creates new first time More...
 

Public Attributes

KeyRingT keyring
 public stable to be used directly , never updated after init by code
 
SharedRemote remotes
 
SharedTrans transactions
 
SharedCache dbcache
 
SharedString master
 
SharedString shared_secret
 
SharedString hostname
 
SharedString baseurl
 
SharedString thisurl
 
SharedString lastslave
 
SharedCounter maincounter
 
SharedCounter logcounter
 
SharedDBPointer maindb
 
SharedDBPointer logdb
 
SharedBool is_master
 
SharedBool is_ready
 
SharedBool lookup_requires_key
 
SharedBool invite_requires_key
 
SharedBool dont_send_sms
 
SharedBool lookup_uses_local
 

Member Function Documentation

§ create()

static pointer identt::utils::SharedTable::create ( )
inlinestatic

create : static construction creates new first time

Returns
pointer

§ share()

pointer identt::utils::SharedTable::share ( )
inline

share : return instance

Returns
pointer

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