A movable slot that holds a topology, constructed upon request. More...
Public Member Functions | |
template<typename... AA> | |
core & | allocate (coloring const &coloring_reference, AA &&... aa) |
Create the topology. | |
Color | colors () const |
Return the number of colors for the topology, which must exist. | |
void | deallocate () |
Destroy the topology. | |
bool | is_allocated () const |
Return whether or not this slot is allocated. | |
A movable slot that holds a topology, constructed upon request.
Declare a task parameter as a topology_accessor
to use the topology.
specialization
provides aliases for both these types. topology_slot
outlives that function, use deallocate
before it returns. core & allocate | ( | coloring const & | coloring_reference, |
AA &&... | aa | ||
) |
Create the topology.
coloring_reference | coloring (perhaps from an mpi_coloring ) |
aa | further specialization-specific parameters |
void deallocate | ( | ) |
Destroy the topology.
bool is_allocated | ( | ) | const |
Return whether or not this slot is allocated.
Color colors | ( | ) | const |
Return the number of colors for the topology, which must exist.