#include <SharedConnection.hpp>
Public Types | |
| typedef std::string | key_t |
| typedef std::map< key_t, SharedConnectionBase * > | Map |
| typedef boost::shared_ptr< SharedConnectionRepository > | shared_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 |
A repository which stores pointers to all shared connections within the process.
Definition at line 109 of file SharedConnection.hpp.
| typedef std::string RTT::internal::SharedConnectionRepository::key_t |
Definition at line 114 of file SharedConnection.hpp.
| typedef std::map<key_t, SharedConnectionBase*> RTT::internal::SharedConnectionRepository::Map |
Definition at line 115 of file SharedConnection.hpp.
| typedef boost::shared_ptr<SharedConnectionRepository> RTT::internal::SharedConnectionRepository::shared_ptr |
Definition at line 112 of file SharedConnection.hpp.
|
inlineprivate |
Definition at line 131 of file SharedConnection.hpp.
| 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.
|
static |
Definition at line 116 of file SharedConnection.cpp.
| void SharedConnectionRepository::remove | ( | SharedConnectionBase * | connection | ) |
Definition at line 132 of file SharedConnection.cpp.
|
private |
Definition at line 119 of file SharedConnection.hpp.
|
mutableprivate |
Definition at line 118 of file SharedConnection.hpp.