Sha256: ca0fc67004146098dc3d6101ade7d6d437513c9377bca604deb1b44d0429f678

Contents?: true

Size: 1.46 KB

Versions: 14

Compression:

Stored size: 1.46 KB

Contents

/*
 *
 * Copyright (C) 2015 Jason Gowan
 * All rights reserved.
 *
 * This software may be modified and distributed under the terms
 * of the BSD license.  See the LICENSE file for details.
 */

#include "dither.h"

ipog_handle dither_ipog_new(const unsigned int t) { return new dither::Ipog(t); }

void dither_ipog_delete(ipog_handle self) {
  delete static_cast<dither::Ipog *>(self);
}

void dither_ipog_add_parameter_int(ipog_handle self, const int index,
                                   const int *values, const int values_length) {
  const std::string name = std::to_string(index);
  static_cast<dither::Ipog *>(self)->add_parameter(name, values, values_length);
}

void dither_ipog_run(ipog_handle self) {
  static_cast<dither::Ipog *>(self)->init_param_cache();
  static_cast<dither::Ipog *>(self)->run();
}

int dither_ipog_size(ipog_handle self) {
  return static_cast<dither::Ipog *>(self)->size();
}

void dither_ipog_display_raw_solution(ipog_handle self) {
  static_cast<dither::Ipog *>(self)->display_raw_solution();
}

void dither_ipog_fill(ipog_handle self, int *solution) {
  static_cast<dither::Ipog *>(self)->fill(solution);
}

void dither_ipog_add_constraint(ipog_handle self, const int constraint[], const int length) {
  static_cast<dither::Ipog *>(self)->add_constraint(constraint, length);
}

void dither_ipog_add_previously_tested(ipog_handle self, const int tested[], const int length) {
  static_cast<dither::Ipog *>(self)->add_previously_tested(tested, length);
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dither-0.2.5 ext/dither/dither.cc
dither-0.2.5-java ext/dither/dither.cc
dither-0.2.2-java ext/dither/dither.cc
dither-0.2.2 ext/dither/dither.cc
dither-0.2.1 ext/dither/dither.cc
dither-0.2.1-java ext/dither/dither.cc
dither-0.2.0-java ext/dither/dither.cc
dither-0.2.0 ext/dither/dither.cc
dither-0.2.0.rc5 ext/dither/dither.cc
dither-0.2.0.rc5-java ext/dither/dither.cc
dither-0.2.0.rc4-java ext/dither/dither.cc
dither-0.2.0.rc4 ext/dither/dither.cc
dither-0.2.0.rc3-java ext/dither/dither.cc
dither-0.2.0.rc3 ext/dither/dither.cc