A composite layout, that contains sub layouts.
More...
#include <WatchpointLayout.h>
A composite layout, that contains sub layouts.
Definition at line 197 of file WatchpointLayout.h.
◆ ~WatchpointLayoutComposite()
| BifrostGraph::Executor::WatchpointLayoutComposite::~WatchpointLayoutComposite |
( |
| ) |
|
|
override |
◆ WatchpointLayoutComposite()
| BifrostGraph::Executor::WatchpointLayoutComposite::WatchpointLayoutComposite |
( |
Amino::Type const & |
type, |
|
|
Amino::TypeId const & |
typeId, |
|
|
bool |
placeHolder |
|
) |
| |
|
protected |
◆ add()
Add a sub layout.
- Parameters
-
| name | The name of the sub layout. |
| layout | The sub layout. |
- Returns
- The sub layout on success or an empty pointer otherwise.
◆ begin()
| Iterator BifrostGraph::Executor::WatchpointLayoutComposite::begin |
( |
| ) |
const |
Return an iterator on the first sub layout.
◆ create() [1/2]
| static WatchpointLayoutPtr BifrostGraph::Executor::WatchpointLayoutComposite::create |
( |
Amino::Type const & |
type, |
|
|
Amino::TypeId const & |
typeId, |
|
|
bool |
placeHolder = false |
|
) |
| |
|
static |
Create a new WatchpointLayoutComposite.
- Parameters
-
| type | the datamodel type of the layout |
| typeId | the typeId of the layout |
| placeHolder | Whether or not this is a place holder for a custom layout. |
- Returns
- a smart pointer to the new layout.
◆ create() [2/2]
Create a new WatchpointLayoutComposite.
- Parameters
-
| factory | The layout factory. |
| typeId | the typeId of the layout |
| placeHolder | Whether or not this is a place holder for a custom layout. |
- Returns
- a smart pointer to the new layout.
◆ empty()
| bool BifrostGraph::Executor::WatchpointLayoutComposite::empty |
( |
| ) |
const |
Return whether or not the composite has no sub layouts.
◆ end()
| Iterator BifrostGraph::Executor::WatchpointLayoutComposite::end |
( |
| ) |
const |
Return an iterator past the last sub layout.
◆ flattenedRepresentation() [1/2]
| Amino::String const & BifrostGraph::Executor::WatchpointLayoutComposite::flattenedRepresentation |
( |
| ) |
const |
Get the template of the flattened string representation for the composite.
- Note
- This corresponds to the layout's type 'watchpoint_layout' metadata.
- Returns
- The flattened string representation's template.
◆ flattenedRepresentation() [2/2]
Get the flattened string representation of the value based on the composite's custom layout.
- Parameters
-
| factory | The layout factory. |
| value | The value. |
| [out] | out_value | The flattened representation. |
- Returns
- The true if the layout has a flattened representation, false otherwise.
-
The flattened string representation.
◆ get()
Get the sub layout of given name.
- Parameters
-
| name | The name of the sub layout. |
- Returns
- The layout or an empty pointer if not found.
◆ hasFlattenedRepresentation()
| bool BifrostGraph::Executor::WatchpointLayoutComposite::hasFlattenedRepresentation |
( |
| ) |
const |
Check whether or not the composite has a flattened string representation.
- Returns
- True if composite has a flattened string representation, false otherwise.
◆ placeHolder()
| bool BifrostGraph::Executor::WatchpointLayoutComposite::placeHolder |
( |
| ) |
const |
Return whether or not this is a place holder for a custom layout.
- Note
- A place holder should be excluded from an element path.
◆ size()
| std::size_t BifrostGraph::Executor::WatchpointLayoutComposite::size |
( |
| ) |
const |
Return the number of sub layouts.