lib/component.hpp
/*
   * The constructor initializes and reserves memory for the vector of subscribers.
   * @param communicator         The communicator for the component to use
   * @param address              The logical address for the component to use
   * @param subnetManagerAddress The logical address of the subnet manager
   */
The constructor initializes and reserves memory for the vector of subscribers.
@param communicator         The communicator for the component to use
@param address              The logical address for the component to use
@param subnetManagerAddress The logical address of the subnet manager
The constructor initializes and reserves memory for the vector of subscribers . @param communicator The communicator for the component to use @param address The logical address for the component to use @param subnetManagerAddress The logical address of the subnet manager
Component(std::shared_ptr<LocalCommunicator> communicator = nullptr, LogicalAddress address = LogicalAddress(0, 0), LogicalAddress subnetManagerAddress = LogicalAddress(0, 0))
    : communicator(communicator),
      address(address),
      subnetManagerAddress(subnetManagerAddress)
  {
    subscribers.reserve(8); 
  }
Component ( std :: shared_ptr < LocalCommunicator > communicator = nullptr , LogicalAddress address = LogicalAddress ( 0 , 0 ) , LogicalAddress subnetManagerAddress = LogicalAddress ( 0 , 0 ) ) : communicator ( communicator ) , address ( address ) , subnetManagerAddress ( subnetManagerAddress ) { subscribers . reserve ( 8 ) ; }
The constructor initializes and reserves memory for the vector of subscribers.
The constructor initializes and reserves memory for the vector of subscribers .
// Default to 8 subscribers