|
using | NodeRef = typename Graph< T, U >::NodeRef |
|
using | EdgeRef = typename Graph< T, U >::EdgeRef |
|
using | Callback = std::function< void(Node< T, U > *)> |
|
|
| Node (T &&data) |
| Create a node with data.
|
|
| Node () |
| Create an empty node.
|
|
void | addInEdge (EdgeRef e) |
| Adds an edge by reference to known in-edges. More...
|
|
void | addOutEdge (EdgeRef e) |
| Adds an edge by reference to known out-edges. More...
|
|
void | removeInEdge (EdgeRef e) |
| Removes an edge by reference to known in-edges. More...
|
|
void | removeOutEdge (EdgeRef e) |
| Removes an edge by reference to known out-edges. More...
|
|
const std::vector< EdgeRef > & | getOutEdges () const |
|
const std::vector< EdgeRef > & | getInEdges () const |
|
| StorageType (T &&data) |
|
| StorageType (const T &data)=delete |
|
const T & | data () const |
|
T * | mutableData () |
|
void | resetData (T &&data) |
|
Callback * | registerDestructorCallback (Callback fn) |
|
Callback * | registerNotificationCallback (Callback fn) |
|
void | deleteCallback (std::list< Callback > &callbackList, Callback *toDelete) |
|
void | deleteDestructorCallback (Callback *c) |
|
void | deleteNotificationCallback (Callback *c) |
|
void | notify () |
| Notifies all listeners (registerNotificationCallback users) of an update. More...
|
|
|
std::vector< EdgeRef > | inEdges |
|
std::vector< EdgeRef > | outEdges |
|
template<typename T, typename U>
class nom::Node< T, U >
Definition at line 32 of file Graph.h.
template<typename T , typename U >
void nom::Node< T, U >::addInEdge |
( |
EdgeRef |
e | ) |
|
|
inline |
Adds an edge by reference to known in-edges.
e
A reference to an edge that will be added as an in-edge.
Definition at line 72 of file Graph.h.
template<typename T , typename U >
void nom::Node< T, U >::addOutEdge |
( |
EdgeRef |
e | ) |
|
|
inline |
Adds an edge by reference to known out-edges.
e
A reference to an edge that will be added as an out-edge.
Definition at line 76 of file Graph.h.
template<typename T , typename U >
void nom::Node< T, U >::removeInEdge |
( |
EdgeRef |
e | ) |
|
|
inline |
Removes an edge by reference to known in-edges.
e
A reference to an edge that will be removed from in-edges.
Definition at line 80 of file Graph.h.
template<typename T , typename U >
void nom::Node< T, U >::removeOutEdge |
( |
EdgeRef |
e | ) |
|
|
inline |
Removes an edge by reference to known out-edges.
e
A reference to an edge that will be removed from out-edges.
Definition at line 87 of file Graph.h.
The documentation for this class was generated from the following file:
- caffe2/core/nomnigraph/include/nomnigraph/Graph/Graph.h