GraphScopeRepository constructs and store GraphScope objects. More...
#include <GraphScopeRepository.h>
Inherits std::enable_shared_from_this< GraphScopeRepository >.
Public Member Functions | |
GraphScopePtr | build (const GsvSets &gsvSets, const GraphScopePtr parent=nullptr) |
GraphScopePtr | get (const GraphScopeId &scopeId) const |
size_t | size () const |
Returns the number of GraphScopes in the repository. | |
GraphScopeRepositoryPtr | ptr () |
Returns a shared pointer to the GraphScopeRepository. | |
Static Public Member Functions | |
static GraphScopeRepositoryPtr | create () |
GraphScopeRepository constructs and store GraphScope objects.
|
static |
Creates a new GraphScopeRepository. The repository initially contains an empty GraphScope, that will be the parent of all scopes created.
GraphScopePtr GraphScopeRepository::build | ( | const GsvSets & | gsvSets, |
const GraphScopePtr | parent = nullptr |
||
) |
Returns a GraphScope with gsvSets and parent as its parent GraphScope. If an existing GraphScope matches the arguments it will be returned instead of creating a new one.
References ptr().
GraphScopePtr GraphScopeRepository::get | ( | const GraphScopeId & | scopeId | ) | const |
Retrieves a GraphScope from the repository. If no GraphScope is found, an empty shared pointer is returned.
©2025 The Foundry Visionmongers, Ltd. All Rights Reserved. |