Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
RTT::internal::SharedConnectionRepository Class Reference

#include <SharedConnection.hpp>

Public Types

typedef std::string key_t
 
typedef std::map< key_t, SharedConnectionBase * > Map
 
typedef boost::shared_ptr< SharedConnectionRepositoryshared_ptr
 

Public Member Functions

bool add (const key_t &key, SharedConnectionBase *connection)
 
SharedConnectionBase::shared_ptr get (const key_t &key) const
 
bool has (const key_t &key) const
 
void remove (SharedConnectionBase *connection)
 

Static Public Member Functions

static shared_ptr Instance ()
 

Private Member Functions

 SharedConnectionRepository ()
 

Private Attributes

Map map
 
RTT::os::SharedMutex mutex
 

Detailed Description

A repository which stores pointers to all shared connections within the process.

Definition at line 109 of file SharedConnection.hpp.

Member Typedef Documentation

Definition at line 114 of file SharedConnection.hpp.

Definition at line 115 of file SharedConnection.hpp.

Definition at line 112 of file SharedConnection.hpp.

Constructor & Destructor Documentation

RTT::internal::SharedConnectionRepository::SharedConnectionRepository ( )
inlineprivate

Definition at line 131 of file SharedConnection.hpp.

Member Function Documentation

bool SharedConnectionRepository::add ( const key_t key,
SharedConnectionBase connection 
)

Definition at line 124 of file SharedConnection.cpp.

SharedConnectionBase::shared_ptr SharedConnectionRepository::get ( const key_t key) const

Definition at line 152 of file SharedConnection.cpp.

bool SharedConnectionRepository::has ( const key_t key) const

Definition at line 146 of file SharedConnection.cpp.

SharedConnectionRepository::shared_ptr SharedConnectionRepository::Instance ( )
static

Definition at line 116 of file SharedConnection.cpp.

void SharedConnectionRepository::remove ( SharedConnectionBase connection)

Definition at line 132 of file SharedConnection.cpp.

Member Data Documentation

Map RTT::internal::SharedConnectionRepository::map
private

Definition at line 119 of file SharedConnection.hpp.

RTT::os::SharedMutex RTT::internal::SharedConnectionRepository::mutex
mutableprivate

Definition at line 118 of file SharedConnection.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:45