EnTT 3.14.0
|
Vertex type of a task graph defined as an adjacency list. More...
#include <organizer.hpp>
Public Member Functions | |
vertex (vertex_data data, std::vector< std::size_t > from, std::vector< std::size_t > to) | |
Constructs a vertex of the task graph. | |
size_type | ro_dependency (const type_info **buffer, const std::size_t length) const noexcept |
Fills a buffer with the type info objects for the writable resources of a vertex. | |
size_type | rw_dependency (const type_info **buffer, const std::size_t length) const noexcept |
Fills a buffer with the type info objects for the read-only resources of a vertex. | |
size_type | ro_count () const noexcept |
Returns the number of read-only resources of a vertex. | |
size_type | rw_count () const noexcept |
Returns the number of writable resources of a vertex. | |
bool | top_level () const noexcept |
Checks if a vertex is also a top-level one. | |
const type_info & | info () const noexcept |
Returns a type info object associated with a vertex. | |
const char * | name () const noexcept |
Returns a user defined name associated with a vertex, if any. | |
function_type * | callback () const noexcept |
Returns the function associated with a vertex. | |
const void * | data () const noexcept |
Returns the payload associated with a vertex, if any. | |
const std::vector< std::size_t > & | in_edges () const noexcept |
Returns the list of in-edges of a vertex. | |
const std::vector< std::size_t > & | out_edges () const noexcept |
Returns the list of out-edges of a vertex. | |
const std::vector< std::size_t > & | children () const noexcept |
Returns the list of nodes reachable from a given vertex. | |
void | prepare (registry_type ®) const |
Prepares a registry and assures that all required resources are properly instantiated before using them. | |
Vertex type of a task graph defined as an adjacency list.
Definition at line 169 of file organizer.hpp.
|
inline |
Constructs a vertex of the task graph.
data | The data associated with the vertex. |
from | List of in-edges of the vertex. |
to | List of out-edges of the vertex. |
Definition at line 176 of file organizer.hpp.
|
inlinenoexcept |
Returns the function associated with a vertex.
Definition at line 247 of file organizer.hpp.
|
inlinenoexcept |
Returns the list of nodes reachable from a given vertex.
Definition at line 279 of file organizer.hpp.
|
inlinenoexcept |
Returns the payload associated with a vertex, if any.
Definition at line 255 of file organizer.hpp.
|
inlinenoexcept |
Returns the list of in-edges of a vertex.
Definition at line 263 of file organizer.hpp.
|
inlinenoexcept |
Returns a type info object associated with a vertex.
Definition at line 231 of file organizer.hpp.
|
inlinenoexcept |
Returns a user defined name associated with a vertex, if any.
Definition at line 239 of file organizer.hpp.
|
inlinenoexcept |
Returns the list of out-edges of a vertex.
Definition at line 271 of file organizer.hpp.
|
inline |
Prepares a registry and assures that all required resources are properly instantiated before using them.
reg | A valid registry. |
Definition at line 288 of file organizer.hpp.
|
inlinenoexcept |
Returns the number of read-only resources of a vertex.
Definition at line 207 of file organizer.hpp.
|
inlinenoexcept |
Fills a buffer with the type info objects for the writable resources of a vertex.
buffer | A buffer pre-allocated by the user. |
length | The length of the user-supplied buffer. |
Definition at line 188 of file organizer.hpp.
|
inlinenoexcept |
Returns the number of writable resources of a vertex.
Definition at line 215 of file organizer.hpp.
|
inlinenoexcept |
Fills a buffer with the type info objects for the read-only resources of a vertex.
buffer | A buffer pre-allocated by the user. |
length | The length of the user-supplied buffer. |
Definition at line 199 of file organizer.hpp.
|
inlinenoexcept |
Checks if a vertex is also a top-level one.
Definition at line 223 of file organizer.hpp.