chronon::PortDirectory
#include <PortDirectory.hpp>
Inherits from chronon::ThreadSafeRegistry< IPortHandle >
Public Functions
| Name | |
|---|---|
| void | registerPort(const std::string & full_path, std::unique_ptr< IPortHandle > handle) |
| PortDirectory & | instance() |
| bool | hasPort(const std::string & full_path) const |
| IPortHandle * | findPort(const std::string & full_path) |
Additional inherited members
Public Functions inherited from chronon::ThreadSafeRegistry< IPortHandle >
| Name | |
|---|---|
| size_t | size() const |
| std::vector< std::string > | keys() const |
| void | insert(const std::string & key, std::unique_ptr< V > value) |
| bool | has(const std::string & key) const |
| template <typename Func > void | forEach(Func && fn) const |
| V * | find(const std::string & key) |
| void | clear() |
Protected Functions inherited from chronon::ThreadSafeRegistry< IPortHandle >
| Name | |
|---|---|
| ~ThreadSafeRegistry() =default | |
| ThreadSafeRegistry & | operator=(const ThreadSafeRegistry & ) =delete |
| ThreadSafeRegistry() =default | |
| ThreadSafeRegistry(const ThreadSafeRegistry & ) =delete |
Protected Attributes inherited from chronon::ThreadSafeRegistry< IPortHandle >
| Name | |
|---|---|
| std::mutex | mutex_ |
| std::unordered_map< std::string, std::unique_ptr< V > > | entries_ |
Detailed Description
class chronon::PortDirectory;
PortDirectory - Singleton registry for port discovery.
Thread-safe registration and lookup by full path.
Public Functions Documentation
function registerPort
inline void registerPort(
const std::string & full_path,
std::unique_ptr< IPortHandle > handle
)
function instance
static inline PortDirectory & instance()
function hasPort
inline bool hasPort(
const std::string & full_path
) const
function findPort
inline IPortHandle * findPort(
const std::string & full_path
)
Updated on 2026-07-06 at 09:03:34 +0000