Program Listing for File task_id_extract.hpp

Return to documentation for file (cosm/controller/operations/task_id_extract.hpp)

#pragma once

/*******************************************************************************
 * Includes
 ******************************************************************************/
#include "rcppsw/common/common.hpp"

/*******************************************************************************
 * Namespaces/Decls
 ******************************************************************************/
namespace cosm::controller::operations {

/*******************************************************************************
 * Class Definitions
 ******************************************************************************/
template <class TController>
struct task_id_extract {
  task_id_extract(void) = default;

  int operator()(const TController* const c) const {
    return c->current_task_id();
  }
};

} /* namespace cosm::controller::operations */