This repository has been archived on 2020-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
php-armadillo/src/constants.hh
2019-03-22 16:30:44 +08:00

52 lines
1.3 KiB
C++

//
// php-armadillo/constants.hh
//
// @Author CismonX
//
#ifndef PHP_ARMA_CONSTANTS_HH
#define PHP_ARMA_CONSTANTS_HH
#include <php.h>
namespace php_arma
{
struct fill
{
static constexpr auto none = 0;
static constexpr auto zeros = 1;
static constexpr auto ones = 2;
static constexpr auto eye = 3;
static constexpr auto randu = 4;
static constexpr auto randn = 5;
};
struct file_type
{
static constexpr auto auto_detect = 0;
static constexpr auto arma_binary = 1;
static constexpr auto arma_ascii = 2;
static constexpr auto raw_binary = 3;
static constexpr auto raw_ascii = 4;
static constexpr auto csv_ascii = 5;
static constexpr auto coord_ascii = 6;
static constexpr auto pgm_binary = 7;
};
struct sort_direction
{
static constexpr auto ascend = 0;
static constexpr auto descend = 1;
static constexpr auto strict_ascend = 2;
static constexpr auto strict_descend = 3;
};
void constants_init();
inline zend_class_entry *fill_ce;
inline zend_class_entry *file_type_ce;
inline zend_class_entry *sort_direction_ce;
}
#endif //!PHP_ARMA_CONSTANTS_HH