EnTT 3.14.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
entt::basic_organizer< Registry >::vertex Struct Reference

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_infoinfo () const noexcept
 Returns a type info object associated with a vertex.
 
const charname () const noexcept
 Returns a user defined name associated with a vertex, if any.
 
function_typecallback () const noexcept
 Returns the function associated with a vertex.
 
const voiddata () 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 &reg) const
 Prepares a registry and assures that all required resources are properly instantiated before using them.
 

Detailed Description

template<typename Registry>
struct entt::basic_organizer< Registry >::vertex

Vertex type of a task graph defined as an adjacency list.

Definition at line 169 of file organizer.hpp.

Constructor & Destructor Documentation

◆ vertex()

template<typename Registry >
entt::basic_organizer< Registry >::vertex::vertex ( vertex_data data,
std::vector< std::size_t > from,
std::vector< std::size_t > to )
inline

Constructs a vertex of the task graph.

Parameters
dataThe data associated with the vertex.
fromList of in-edges of the vertex.
toList of out-edges of the vertex.

Definition at line 176 of file organizer.hpp.

Member Function Documentation

◆ callback()

template<typename Registry >
function_type * entt::basic_organizer< Registry >::vertex::callback ( ) const
inlinenoexcept

Returns the function associated with a vertex.

Returns
The function associated with the vertex.

Definition at line 247 of file organizer.hpp.

◆ children()

template<typename Registry >
const std::vector< std::size_t > & entt::basic_organizer< Registry >::vertex::children ( ) const
inlinenoexcept

Returns the list of nodes reachable from a given vertex.

Returns
The list of nodes reachable from the vertex.

Definition at line 279 of file organizer.hpp.

◆ data()

template<typename Registry >
const void * entt::basic_organizer< Registry >::vertex::data ( ) const
inlinenoexcept

Returns the payload associated with a vertex, if any.

Returns
The payload associated with the vertex, if any.

Definition at line 255 of file organizer.hpp.

◆ in_edges()

template<typename Registry >
const std::vector< std::size_t > & entt::basic_organizer< Registry >::vertex::in_edges ( ) const
inlinenoexcept

Returns the list of in-edges of a vertex.

Returns
The list of in-edges of a vertex.

Definition at line 263 of file organizer.hpp.

◆ info()

template<typename Registry >
const type_info & entt::basic_organizer< Registry >::vertex::info ( ) const
inlinenoexcept

Returns a type info object associated with a vertex.

Returns
A properly initialized type info object.

Definition at line 231 of file organizer.hpp.

◆ name()

template<typename Registry >
const char * entt::basic_organizer< Registry >::vertex::name ( ) const
inlinenoexcept

Returns a user defined name associated with a vertex, if any.

Returns
The user defined name associated with the vertex, if any.

Definition at line 239 of file organizer.hpp.

◆ out_edges()

template<typename Registry >
const std::vector< std::size_t > & entt::basic_organizer< Registry >::vertex::out_edges ( ) const
inlinenoexcept

Returns the list of out-edges of a vertex.

Returns
The list of out-edges of a vertex.

Definition at line 271 of file organizer.hpp.

◆ prepare()

template<typename Registry >
void entt::basic_organizer< Registry >::vertex::prepare ( registry_type & reg) const
inline

Prepares a registry and assures that all required resources are properly instantiated before using them.

Parameters
regA valid registry.

Definition at line 288 of file organizer.hpp.

◆ ro_count()

template<typename Registry >
size_type entt::basic_organizer< Registry >::vertex::ro_count ( ) const
inlinenoexcept

Returns the number of read-only resources of a vertex.

Returns
The number of read-only resources of the vertex.

Definition at line 207 of file organizer.hpp.

◆ ro_dependency()

template<typename Registry >
size_type entt::basic_organizer< Registry >::vertex::ro_dependency ( const type_info ** buffer,
const std::size_t length ) const
inlinenoexcept

Fills a buffer with the type info objects for the writable resources of a vertex.

Parameters
bufferA buffer pre-allocated by the user.
lengthThe length of the user-supplied buffer.
Returns
The number of type info objects written to the buffer.

Definition at line 188 of file organizer.hpp.

◆ rw_count()

template<typename Registry >
size_type entt::basic_organizer< Registry >::vertex::rw_count ( ) const
inlinenoexcept

Returns the number of writable resources of a vertex.

Returns
The number of writable resources of the vertex.

Definition at line 215 of file organizer.hpp.

◆ rw_dependency()

template<typename Registry >
size_type entt::basic_organizer< Registry >::vertex::rw_dependency ( const type_info ** buffer,
const std::size_t length ) const
inlinenoexcept

Fills a buffer with the type info objects for the read-only resources of a vertex.

Parameters
bufferA buffer pre-allocated by the user.
lengthThe length of the user-supplied buffer.
Returns
The number of type info objects written to the buffer.

Definition at line 199 of file organizer.hpp.

◆ top_level()

template<typename Registry >
bool entt::basic_organizer< Registry >::vertex::top_level ( ) const
inlinenoexcept

Checks if a vertex is also a top-level one.

Returns
True if the vertex is a top-level one, false otherwise.

Definition at line 223 of file organizer.hpp.


The documentation for this struct was generated from the following file: