<commit_before>/*
*  Author(s):
*  - <NAME> <<EMAIL>>
*
*  Copyright (C) 2012 Aldebaran Robotics
*/


#pragma once
#ifndef _QIMESSAGING_FUTURE_HPP_
#define _QIMESSAGING_FUTURE_HPP_

#include <vector>
#include <qimessaging/api.hpp>
#include <boost/shared_ptr.hpp>

namespace qi {

  template <typename T> class FutureInterface;
  template <typename T> class Future;
  template <>           class Future<void>;
  template <typename T> class Promise;

  namespace detail {
    template <typename T> class FutureState;
    template <>           class FutureState<void>;
  }



  template <typename T>
  class FutureInterface {
  public:
    virtual ~FutureInterface() = 0;
    virtual void onFutureFinished(const T &future, void *data) = 0;
    virtual void onFutureFailed(const std::string &error, void *data) = 0;
  };

  template <>
  class FutureInterface<void> {
  public:<commit_msg>future: rename an argument<commit_after>/*
*  Author(s):
*  - <NAME> <<EMAIL>>
*
*  Copyright (C) 2012 Aldebaran Robotics
*/


#pragma once
#ifndef _QIMESSAGING_FUTURE_HPP_
#define _QIMESSAGING_FUTURE_HPP_

#include <vector>
#include <qimessaging/api.hpp>
#include <boost/shared_ptr.hpp>

namespace qi {

  template <typename T> class FutureInterface;
  template <typename T> class Future;
  template <>           class Future<void>;
  template <typename T> class Promise;

  namespace detail {
    template <typename T> class FutureState;
    template <>           class FutureState<void>;
  }



  template <typename T>
  class FutureInterface {
  public:
    virtual ~FutureInterface() = 0;
    virtual void onFutureFinished(const T &value, void *data) = 0;
    virtual void onFutureFailed(const std::string &error, void *data) = 0;
  };

  template <>
  class FutureInterface<void> {
  public:
{'fraction_non_alphanumeric': 0.10942760942760943, 'fraction_numerical': 0.007856341189674524, 'mean_word_length': 3.8189189189189188, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4610151', 'n_tokens_mistral': 606, 'n_tokens_neox': 566, 'n_words': 162}