Layout factory to build layouts for types and/or values.
More...
#include <WatchpointLayout.h>
Layout factory to build layouts for types and/or values.
Definition at line 392 of file WatchpointLayout.h.
◆ ~WatchpointLayoutFactory()
| BifrostGraph::Executor::WatchpointLayoutFactory::~WatchpointLayoutFactory |
( |
| ) |
|
|
noexcept |
◆ add()
Register a fixed layout for given type.
- Parameters
-
- Returns
- The added layout on success, or nullptr on failure.
- Note
- This will fail the layout is nullptr or another layout was already registered for layout's type.
◆ exists()
| bool BifrostGraph::Executor::WatchpointLayoutFactory::exists |
( |
Amino::TypeId const & |
typeId | ) |
const |
Query if a layout is registered for given type.
- Parameters
-
- Returns
- True if a layout is registered, false otherwise.
◆ get() [1/3]
Get the layout for given value.
- Parameters
-
- Returns
- The layout of value on success, or nullptr otherwise.
◆ get() [2/3]
Get the layout for given value.
- Parameters
-
| type | The datamodel type of the value |
| any | The value |
- Returns
- The layout of value on success, or nullptr otherwise.
◆ get() [3/3]
Get the layout for given type.
- Parameters
-
- Returns
- The layout if it existed or was successfuly created, nullptr otherwise.
◆ getInvalid()
Get a statically allocated factory that is uninitialized and invalid. Any operation on this instance will always fail and WatchpointLayoutFactory::isValid will return false.
◆ getType()
| Amino::Type BifrostGraph::Executor::WatchpointLayoutFactory::getType |
( |
Amino::String const & |
typeName | ) |
const |
Get the Type corresponding to given fully qualified type name.
- Parameters
-
| typeName | The fully qualified type name. |
- Returns
- The corresponding type.
◆ getValue()
Get the string representation of an element of a given value.
- Parameters
-
| any | The value |
| path | The path to the element |
| [out] | out_value | The string representation |
- Note
- The path is consumed (pop_front) until the final layout element is reached.
- Returns
- The true if the path was valid, false otherwise.
◆ getWorkspace()
| Workspace const & BifrostGraph::Executor::WatchpointLayoutFactory::getWorkspace |
( |
| ) |
const |
Get the Workspace object this factory belongs to.
◆ isValid()
| bool BifrostGraph::Executor::WatchpointLayoutFactory::isValid |
( |
| ) |
const |
|
noexcept |
◆ BifrostGraph::Executor::Private::WorkspaceImpl
| friend class BifrostGraph::Executor::Private::WorkspaceImpl |
|
friend |
Allow the WorkspaceImpl object to access the private constructors and setWorkspace.
Definition at line 410 of file WatchpointLayout.h.