Create an empty Cluster of the appropriate implementation for the specified (maximum) tx * count. */
| 705 | /** Create an empty Cluster of the appropriate implementation for the specified (maximum) tx |
| 706 | * count. */ |
| 707 | std::unique_ptr<Cluster> CreateEmptyCluster(DepGraphIndex tx_count) noexcept |
| 708 | { |
| 709 | if (tx_count >= SingletonClusterImpl::MIN_INTENDED_TX_COUNT && tx_count <= SingletonClusterImpl::MAX_TX_COUNT) { |
| 710 | return CreateEmptySingletonCluster(); |
| 711 | } |
| 712 | if (tx_count >= GenericClusterImpl::MIN_INTENDED_TX_COUNT && tx_count <= GenericClusterImpl::MAX_TX_COUNT) { |
| 713 | return CreateEmptyGenericCluster(); |
| 714 | } |
| 715 | assert(false); |
| 716 | return {}; |
| 717 | } |
| 718 | |
| 719 | // Functions for handling Refs. |
| 720 |