|
CeresEngine 0.2.0
A game development framework
|
#include <CeresEngine/Graph/Graph.hpp>
Public Member Functions | |
| Graph ()=default | |
| virtual | ~Graph () noexcept=default |
| GraphNode * | getNode (StringView name) const |
| const Vector< GraphNodePtr > & | getNodes () const noexcept |
| void | addNode (GraphNode &node) |
| template<typename T , typename... Args> requires (std::is_base_of_v<GraphNode, T>) | |
| T & | addNode (Args &&... args) |
| void | removeNode (GraphNode &node) |
| GraphConnection * | connect (GraphSocket &outputSocket, GraphSocket &inputSocket) |
| GraphInstancePtr | instantiate () |
Public Member Functions inherited from CeresEngine::RefCounted< Graph > | |
| RefCounted (Args &&... args) | |
Creates a new RefCounted object and constructs a new Deleter by forwarding Args to it. | |
| void | retain () noexcept |
| Retains the object by increment it's reference count by one. | |
| bool | release () noexcept |
| Relases the object by decrementing it's reference count by one. | |
Public Attributes | |
| Event< void()> | onChange |
| Event< void(GraphNode &)> | onNodeAdded |
| Event< void(GraphNode &)> | onNodeRemoved |
Private Attributes | |
| Vector< GraphNodePtr > | mNodes |
|
explicitdefault |
|
virtualdefaultnoexcept |
|
inline |
| GraphConnection * CeresEngine::Graph::connect | ( | GraphSocket & | outputSocket, |
| GraphSocket & | inputSocket | ||
| ) |
| GraphNode * CeresEngine::Graph::getNode | ( | StringView | name | ) | const |
|
inlinenoexcept |
| GraphInstancePtr CeresEngine::Graph::instantiate | ( | ) |
|
private |