repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
SonarSource/sonar-javascript
javascript-checks/src/main/java/org/sonar/javascript/checks/EncryptionSecureModeCheck.java
1307
/* * SonarQube JavaScript Plugin * Copyright (C) 2011-2021 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package org.sonar.javascript.checks; import org.sonar.check.Rule; import org.sonar.plugins.javascript.api.EslintBasedCheck; import org.sonar.plugins.javascript.api.JavaScriptRule; import org.sonar.plugins.javascript.api.TypeScriptRule; @JavaScriptRule @TypeScriptRule @Rule(key = "S5542") public class EncryptionSecureModeCheck implements EslintBasedCheck { @Override public String eslintKey() { return "encryption-secure-mode"; } }
lgpl-3.0
ari-zah/gaiasandbox
core/src/gaiasky/desktop/util/SysUtils.java
9893
/* * This file is part of Gaia Sky, which is released under the Mozilla Public License 2.0. * See the file LICENSE.md in the project root for full license details. */ package gaiasky.desktop.util; import gaiasky.util.Logger; import gaiasky.util.Logger.Log; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; /** * Wee utility class to check the operating system and the desktop environment. * It also offers retrieval of common system folders. * * @author Toni Sagrista */ public class SysUtils { private static Log logger = Logger.getLogger(SysUtils.class); /** * Initialise directories */ public static void mkdirs() { // Top level try { Files.createDirectories(getDataDir()); Files.createDirectories(getConfigDir()); // Bottom level Files.createDirectories(getDefaultCameraDir()); Files.createDirectories(getDefaultMusicDir()); Files.createDirectories(getDefaultFramesDir()); Files.createDirectories(getDefaultScreenshotsDir()); Files.createDirectories(getDefaultTmpDir()); Files.createDirectories(getDefaultMappingsDir()); Files.createDirectories(getDefaultBookmarksDir()); } catch (IOException e) { logger.error(e); } } private static String OS; private static boolean linux, mac, windows, unix, solaris; static { OS = System.getProperty("os.name").toLowerCase(); linux = OS.indexOf("linux") >= 0; mac = OS.indexOf("macos") >= 0 || OS.indexOf("mac os") >= 0; windows = OS.indexOf("win") >= 0; unix = OS.indexOf("unix") >= 0; solaris = OS.indexOf("sunos") >= 0; } public static String getXdgDesktop() { return System.getenv("XDG_CURRENT_DESKTOP"); } public static boolean checkLinuxDesktop(String desktop) { try { String value = getXdgDesktop(); return value != null && !value.isEmpty() && value.equalsIgnoreCase(desktop); } catch (Exception e) { e.printStackTrace(System.err); } return false; } public static boolean checkUnity() { return isLinux() && checkLinuxDesktop("ubuntu"); } public static boolean checkGnome() { return isLinux() && checkLinuxDesktop("gnome"); } public static boolean checkKDE() { return isLinux() && checkLinuxDesktop("kde"); } public static boolean checkXfce() { return isLinux() && checkLinuxDesktop("xfce"); } public static boolean checkBudgie() { return isLinux() && checkLinuxDesktop("budgie:GNOME"); } public static boolean checkI3() { return isLinux() && checkLinuxDesktop("i3"); } public static String getOSName() { return OS; } public static String getOSFamily() { if (isLinux()) return "linux"; if (isWindows()) return "win"; if (isMac()) return "macos"; if (isUnix()) return "unix"; if (isSolaris()) return "solaris"; return "unknown"; } public static boolean isLinux() { return linux; } public static boolean isWindows() { return windows; } public static boolean isMac() { return mac; } public static boolean isUnix() { return unix; } public static boolean isSolaris() { return solaris; } public static String getOSArchitecture() { return System.getProperty("os.arch"); } public static String getOSVersion() { return System.getProperty("os.version"); } private static final String GAIASKY_DIR_NAME = "gaiasky"; private static final String DOTGAIASKY_DIR_NAME = ".gaiasky"; private static final String CAMERA_DIR_NAME = "camera"; private static final String SCREENSHOTS_DIR_NAME = "screenshots"; private static final String FRAMES_DIR_NAME = "frames"; private static final String MUSIC_DIR_NAME = "music"; private static final String MAPPINGS_DIR_NAME = "mappings"; private static final String BOOKMARKS_DIR_NAME = "bookmarks"; private static final String MPCDI_DIR_NAME = "mpcdi"; private static final String DATA_DIR_NAME = "data"; private static final String TMP_DIR_NAME = "tmp"; private static final String CRASHREPORTS_DIR_NAME = "crashreports"; /** * Gets a file pointer to the camera directory. * * @return A pointer to the Gaia Sky camera directory */ public static Path getDefaultCameraDir() { return getDataDir().resolve(CAMERA_DIR_NAME); } /** * Gets a file pointer to the default screenshots directory. * * @return A pointer to the Gaia Sky screenshots directory */ public static Path getDefaultScreenshotsDir() { return getDataDir().resolve(SCREENSHOTS_DIR_NAME); } /** * Gets a file pointer to the frames directory. * * @return A pointer to the Gaia Sky frames directory */ public static Path getDefaultFramesDir() { return getDataDir().resolve(FRAMES_DIR_NAME); } /** * Gets a file pointer to the music directory. * * @return A pointer to the Gaia Sky music directory */ public static Path getDefaultMusicDir() { return getDataDir().resolve(MUSIC_DIR_NAME); } /** * Gets a file pointer to the mappings directory. * * @return A pointer to the Gaia Sky mappings directory */ public static Path getDefaultMappingsDir() { return getConfigDir().resolve(MAPPINGS_DIR_NAME); } public static String getMappingsDirName() { return MAPPINGS_DIR_NAME; } /** * Gets a file pointer to the bookmarks directory. * * @return A pointer to the Gaia Sky bookmarks directory */ public static Path getDefaultBookmarksDir() { return getConfigDir().resolve(BOOKMARKS_DIR_NAME); } public static String getBookmarksDirName() { return BOOKMARKS_DIR_NAME; } /** * Gets a file pointer to the mpcdi directory. * * @return A pointer to the Gaia Sky mpcdi directory */ public static Path getDefaultMpcdiDir() { return getDataDir().resolve(MPCDI_DIR_NAME); } /** * Gets a file pointer to the local data directory where the data files are downloaded and stored. * * @return A pointer to the local data directory where the data files are */ public static Path getLocalDataDir() { return getDataDir().resolve(DATA_DIR_NAME); } /** * Gets a file pointer to the crash reports directory, where crash reports are stored. * * @return A pointer to the crash reports directory */ public static Path getCrashReportsDir() { return getDataDir().resolve(CRASHREPORTS_DIR_NAME); } /** * Gets a file pointer to the temporary directory within the cache directory. See {@link #getCacheDir()}. * * @return A pointer to the Gaia Sky temporary directory in the user's home. */ public static Path getDefaultTmpDir() { return getCacheDir().resolve(TMP_DIR_NAME); } /** * Returns the default data directory. That is ~/.gaiasky/ in Windows and macOS, and ~/.local/share/gaiasky * in Linux. * * @return Default data directory */ public static Path getDataDir() { if (isLinux()) { return getXdgDataHome().resolve(GAIASKY_DIR_NAME); } else { return getUserHome().resolve(DOTGAIASKY_DIR_NAME); } } /** * Returns the default cache directory, for non-essential data. This is ~/.gaiasky/ in Windows and macOS, and ~/.cache/gaiasky * in Linux. * * @return The default cache directory */ public static Path getCacheDir() { if (isLinux()) { return getXdgCacheHome().resolve(GAIASKY_DIR_NAME); } else { return getDataDir(); } } public static Path getConfigDir() { if (isLinux()) { return getXdgConfigHome().resolve(GAIASKY_DIR_NAME); } else { return getUserHome().resolve(DOTGAIASKY_DIR_NAME); } } public static Path getHomeDir() { return getUserHome(); } public static Path getUserHome() { return Paths.get(System.getProperty("user.home")); } private static Path getXdgDataHome() { String dataHome = System.getenv("XDG_DATA_HOME"); if (dataHome == null || dataHome.isEmpty()) { return Paths.get(System.getProperty("user.home"), ".local", "share"); } else { return Paths.get(dataHome); } } private static Path getXdgConfigHome() { String configHome = System.getenv("XDG_CONFIG_HOME"); if (configHome == null || configHome.isEmpty()) { return Paths.get(System.getProperty("user.home"), ".config"); } else { return Paths.get(configHome); } } private static Path getXdgCacheHome() { String cacheHome = System.getenv("XDG_CACHE_HOME"); if (cacheHome == null || cacheHome.isEmpty()) { return Paths.get(System.getProperty("user.home"), ".cache"); } else { return Paths.get(cacheHome); } } public static double getJavaVersion() { String version = System.getProperty("java.version"); if (version.contains(("."))) { int pos = version.indexOf('.'); pos = version.indexOf('.', pos + 1); return Double.parseDouble(version.substring(0, pos)); } else { return Double.parseDouble(version); } } }
lgpl-3.0
Taiterio/ce
src/com/taiter/ce/Enchantments/Global/Headless.java
2233
package com.taiter.ce.Enchantments.Global; import org.bukkit.Material; import org.bukkit.entity.Creeper; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import org.bukkit.entity.Skeleton; import org.bukkit.entity.Skeleton.SkeletonType; import org.bukkit.entity.Zombie; import org.bukkit.event.Event; import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.SkullMeta; import org.bukkit.scheduler.BukkitRunnable; import com.taiter.ce.EffectManager; import com.taiter.ce.Enchantments.CEnchantment; public class Headless extends CEnchantment { public Headless(Application app) { super(app); triggers.add(Trigger.DAMAGE_GIVEN); resetMaxLevel(); } @Override public void effect(Event e, ItemStack item, int level) { EntityDamageByEntityEvent event = (EntityDamageByEntityEvent) e; final Player player = (Player) event.getDamager(); final LivingEntity ent = (LivingEntity) event.getEntity(); new BukkitRunnable() { @Override public void run() { if (ent.getHealth() <= 0) { byte type = 3; if (ent instanceof Skeleton) { type = 0; if (((Skeleton) ent).getSkeletonType().equals(SkeletonType.WITHER)) type = 1; } else if (ent instanceof Zombie) type = 2; else if (ent instanceof Creeper) type = 4; ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, type); if (type == 3) { SkullMeta sm = (SkullMeta) skull.getItemMeta(); sm.setOwner(ent.getName()); skull.setItemMeta(sm); } ent.getWorld().dropItem(ent.getLocation(), skull); EffectManager.playSound(player.getLocation(), "BLOCK_ANVIL_LAND", 0.1f, 1.5f); } } }.runTaskLater(getPlugin(), 5l); } @Override public void initConfigEntries() { } }
lgpl-3.0
Spoutcraft/Spoutcraft
src/main/java/net/minecraft/src/ItemArmor.java
6355
package net.minecraft.src; // MCPatcher Start import com.prupe.mcpatcher.cc.ColorizeEntity; // MCPatcher End public class ItemArmor extends Item { /** Holds the 'base' maxDamage that each armorType have. */ private static final int[] maxDamageArray = new int[] {11, 16, 15, 13}; private static final String[] field_94606_cu = new String[] {"leather_helmet_overlay", "leather_chestplate_overlay", "leather_leggings_overlay", "leather_boots_overlay"}; public static final String[] field_94603_a = new String[] {"empty_armor_slot_helmet", "empty_armor_slot_chestplate", "empty_armor_slot_leggings", "empty_armor_slot_boots"}; private static final IBehaviorDispenseItem field_96605_cw = new BehaviorDispenseArmor(); /** * Stores the armor type: 0 is helmet, 1 is plate, 2 is legs and 3 is boots */ public final int armorType; /** Holds the amount of damage that the armor reduces at full durability. */ public final int damageReduceAmount; /** * Used on RenderPlayer to select the correspondent armor to be rendered on the player: 0 is cloth, 1 is chain, 2 is * iron, 3 is diamond and 4 is gold. */ public final int renderIndex; /** The EnumArmorMaterial used for this ItemArmor */ private final EnumArmorMaterial material; private Icon field_94605_cw; private Icon field_94604_cx; public ItemArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { super(par1); this.material = par2EnumArmorMaterial; this.armorType = par4; this.renderIndex = par3; this.damageReduceAmount = par2EnumArmorMaterial.getDamageReductionAmount(par4); this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4)); this.maxStackSize = 1; this.setCreativeTab(CreativeTabs.tabCombat); BlockDispenser.dispenseBehaviorRegistry.putObject(this, field_96605_cw); } public int getColorFromItemStack(ItemStack par1ItemStack, int par2) { if (par2 > 0) { return 16777215; } else { int var3 = this.getColor(par1ItemStack); if (var3 < 0) { var3 = 16777215; } return var3; } } public boolean requiresMultipleRenderPasses() { return this.material == EnumArmorMaterial.CLOTH; } /** * Return the enchantability factor of the item, most of the time is based on material. */ public int getItemEnchantability() { return this.material.getEnchantability(); } /** * Return the armor material for this armor item. */ public EnumArmorMaterial getArmorMaterial() { return this.material; } /** * Return whether the specified armor ItemStack has a color. */ public boolean hasColor(ItemStack par1ItemStack) { return this.material != EnumArmorMaterial.CLOTH ? false : (!par1ItemStack.hasTagCompound() ? false : (!par1ItemStack.getTagCompound().hasKey("display") ? false : par1ItemStack.getTagCompound().getCompoundTag("display").hasKey("color"))); } /** * Return the color for the specified armor ItemStack. */ public int getColor(ItemStack par1ItemStack) { if (this.material != EnumArmorMaterial.CLOTH) { return -1; } else { NBTTagCompound var2 = par1ItemStack.getTagCompound(); if (var2 == null) { // MCPatcher Start return ColorizeEntity.undyedLeatherColor; // MCPatcher End } else { NBTTagCompound var3 = var2.getCompoundTag("display"); // MCPatcher Start return var3 == null ? ColorizeEntity.undyedLeatherColor : (var3.hasKey("color") ? var3.getInteger("color") : ColorizeEntity.undyedLeatherColor); // MCPatcher End } } } /** * Gets an icon index based on an item's damage value and the given render pass */ public Icon getIconFromDamageForRenderPass(int par1, int par2) { return par2 == 1 ? this.field_94605_cw : super.getIconFromDamageForRenderPass(par1, par2); } /** * Remove the color from the specified armor ItemStack. */ public void removeColor(ItemStack par1ItemStack) { if (this.material == EnumArmorMaterial.CLOTH) { NBTTagCompound var2 = par1ItemStack.getTagCompound(); if (var2 != null) { NBTTagCompound var3 = var2.getCompoundTag("display"); if (var3.hasKey("color")) { var3.removeTag("color"); } } } } public void func_82813_b(ItemStack par1ItemStack, int par2) { if (this.material != EnumArmorMaterial.CLOTH) { throw new UnsupportedOperationException("Can\'t dye non-leather!"); } else { NBTTagCompound var3 = par1ItemStack.getTagCompound(); if (var3 == null) { var3 = new NBTTagCompound(); par1ItemStack.setTagCompound(var3); } NBTTagCompound var4 = var3.getCompoundTag("display"); if (!var3.hasKey("display")) { var3.setCompoundTag("display", var4); } var4.setInteger("color", par2); } } /** * Return whether this item is repairable in an anvil. */ public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack) { return this.material.getArmorCraftingMaterial() == par2ItemStack.itemID ? true : super.getIsRepairable(par1ItemStack, par2ItemStack); } public void registerIcons(IconRegister par1IconRegister) { super.registerIcons(par1IconRegister); if (this.material == EnumArmorMaterial.CLOTH) { this.field_94605_cw = par1IconRegister.registerIcon(field_94606_cu[this.armorType]); } this.field_94604_cx = par1IconRegister.registerIcon(field_94603_a[this.armorType]); } /** * Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer */ public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { int var4 = EntityLiving.getArmorPosition(par1ItemStack) - 1; ItemStack var5 = par3EntityPlayer.getCurrentArmor(var4); if (var5 == null) { par3EntityPlayer.setCurrentItemOrArmor(var4, par1ItemStack.copy()); par1ItemStack.stackSize = 0; } return par1ItemStack; } public static Icon func_94602_b(int par0) { switch (par0) { case 0: return Item.helmetDiamond.field_94604_cx; case 1: return Item.plateDiamond.field_94604_cx; case 2: return Item.legsDiamond.field_94604_cx; case 3: return Item.bootsDiamond.field_94604_cx; default: return null; } } /** * Returns the 'max damage' factor array for the armor, each piece of armor have a durability factor (that gets * multiplied by armor material factor) */ static int[] getMaxDamageArray() { return maxDamageArray; } }
lgpl-3.0
ideals/Ideal-CMS
Library/Cron/CronClass.php
14959
<?php namespace Cron; class CronClass { /** @var array Обработанный список задач крона */ protected $cron = array(); /** @var string Путь к файлу с задачами крона */ protected $cronFile; /** @var string Адрес, на который будут высылаться уведомления с крона */ protected $cronEmail; /** @var \DateTime Время последнего успешного запуска крона */ protected $modifyTime; /** @var string Путь к файлу с настройками Ideal CMS */ protected $dataFile; /** @var string Корень сайта */ protected $siteRoot; /** @var string Сообщение после тестового запуска скрипта */ protected $message = ''; /** * CronClass constructor. * * @param string $siteRoot Корень сайта, относительно которого указываются скрипты в кроне * @param string $cronFile Путь к файлу crontab сайта * @param string $dataFile Путь к файлу настроек Ideal CMS (для получения координат отправки сообщений с крона) */ public function __construct($siteRoot = '', $cronFile = '', $dataFile = '') { $this->cronFile = empty($cronFile) ? __DIR__ . '/../../../crontab' : $cronFile; $this->dataFile = empty($dataFile) ? __DIR__ . '/../../../site_data.php' : $dataFile; $this->siteRoot = empty($siteRoot) ? dirname(dirname(dirname(dirname(__DIR__)))) : $siteRoot; } /** * Делает проверку на доступность файла настроек, правильность заданий в системе и возможность * модификации скрипта обработчика крона */ public function testAction() { $success = true; // Проверяем доступность файла настроек для чтения if (is_readable($this->dataFile)) { $this->message .= "Файл с настройками сайта существует и доступен для чтения\n"; } else { $this->message .= "Файл с настройками сайта {$this->dataFile} не существует или он недоступен для чтения\n"; $success = false; } // Проверяем доступность запускаемого файла для изменения его даты if (is_writable($this->cronFile)) { $this->message .= "Файл \"" . $this->cronFile . "\" позволяет вносить изменения в дату модификации\n"; } else { $this->message .= "Не получается изменить дату модификации файла \"" . $this->cronFile . "\"\n"; $success = false; } // Загружаем данные из cron-файла в переменные класса try { $this->loadCrontab($this->cronFile); } catch (\Exception $e) { $this->message .= $e->getMessage() . "\n"; $success = false; } // Проверяем правильность задач в файле if (!$this->testTasks($this->cron)) { $success = false; } return $success; } /** * Проверяет правильность введённых задач * * @param array $cron Список задач крона * @return bool Правильно или нет записаны задачи крона */ public function testTasks($cron) { $success = true; $taskIsset = false; $tasks = $currentTasks = ''; foreach ($cron as $cronTask) { list($taskExpression, $fileTask) = $this->parseCronTask($cronTask); // Проверяем правильность написания выражения для крона и существование файла для выполнения if (\Cron\CronExpression::isValidExpression($taskExpression) !== true) { $this->message .= "Неверное выражение \"{$taskExpression}\"\n"; $success = false; } if ($fileTask && !is_readable($fileTask)) { $this->message .= "Файл \"{$fileTask}\" не существует или он недоступен для чтения\n"; $success = false; } elseif (!$fileTask) { $this->message .= "Не задан исполняемый файл для выражения \"{$taskExpression}\"\n"; $success = false; } // Получаем дату следующего запуска задачи $cronModel = \Cron\CronExpression::factory($taskExpression); $nextRunDate = $cronModel->getNextRunDate($this->modifyTime); $tasks .= $cronTask . "\nСледующий запуск файла \"{$fileTask}\" назначен на " . $nextRunDate->format('d.m.Y H:i:s') . "\n"; $taskIsset = true; // Если дата следующего запуска меньше, либо равна текущей дате, то добавляем задачу на запуск $now = new \DateTime(); if ($nextRunDate <= $now) { $currentTasks .= $cronTask . "\n" . $fileTask . "\n" . 'modify: ' . $this->modifyTime->format('d.m.Y H:i:s') . "\n" . 'nextRun: ' . $nextRunDate->format('d.m.Y H:i:s') . "\n" . 'now: ' . $now->format('d.m.Y H:i:s') . "\n"; } } // Если в задачах из настройках Ideal CMS не обнаружено ошибок, уведомляем об этом if ($success && $taskIsset) { $this->message .= "В задачах из файла crontab ошибок не обнаружено\n"; } elseif (!$taskIsset) { $this->message .= implode("\n", $cron) . "Пока нет ни одного задания для выполнения\n"; } // Отображение информации о задачах, требующих запуска в данный момент if ($currentTasks && $success) { $this->message .= "\nЗадачи для запуска в данный момент:\n"; $this->message .= $currentTasks; } elseif ($taskIsset && $success) { $this->message .= "\nВ данный момент запуск задач не требуется\n"; } // Отображение информации о запланированных задачах и времени их запуска $tasks = $tasks && $success ? "\nЗапланированные задачи:\n" . $tasks : ''; $this->message .= $tasks . "\n"; return $success; } /** * Обработка задач крона и запуск нужных задач * @throws \Exception */ public function runAction() { // Загружаем данные из cron-файла $this->loadCrontab($this->cronFile); // Вычисляем путь до файла "site_data.php" в корне админки $dataFileName = stream_resolve_include_path($this->dataFile); // Получаем данные настроек системы $siteData = require $dataFileName; $data = array( 'domain' => $siteData['domain'], 'robotEmail' => $siteData['robotEmail'], 'adminEmail' => $this->cronEmail ? $this->cronEmail : $siteData['cms']['adminEmail'], ); // Переопределяем стандартный обработчик ошибок для отправки уведомлений на почту set_error_handler(function ($errno, $errstr, $errfile, $errline) use ($data) { // Формируем текст ошибки $_err = 'Ошибка [' . $errno . '] ' . $errstr . ', в строке ' . $errline . ' файла ' . $errfile; // Выводим текст ошибки echo $_err . "\n"; // Формируем заголовки письма и отправляем уведомление об ошибке на почту ответственного лица $header = "From: \"{$data['domain']}\" <{$data['robotEmail']}>\r\n"; $header .= "Content-type: text/plain; charset=\"utf-8\""; mail($data['adminEmail'], 'Ошибка при выполнении крона', $_err, $header); }); // Обрабатываем задачи для крона из настроек Ideal CMS $nowCron = new \DateTime(); foreach ($this->cron as $cronTask) { list($taskExpression, $fileTask) = $this->parseCronTask($cronTask); if (!$taskExpression || !$fileTask) { continue; } // Получаем дату следующего запуска задачи $cron = \Cron\CronExpression::factory($taskExpression); $nextRunDate = $cron->getNextRunDate($this->modifyTime); $nowCron = new \DateTime(); // Если дата следующего запуска меньше, либо равна текущей дате, то запускаем скрипт if ($nextRunDate <= $nowCron) { // Что бы не случилось со скриптом, изменяем дату модификации файла содержащего задачи для крона touch($this->cronFile, $nowCron->getTimestamp()); // todo завести отдельный временный файл, куда записывать дату последнего прохода по крону, чтобы // избежать ситуации, когда два задания должны выполниться в одну минуту, а выполняется только одно // Запускаем скрипт require_once $fileTask; break; // Прекращаем цикл выполнения задач, чтобы не произошло наложения задач друг на друга } } // Изменяем дату модификации файла содержащего задачи для крона touch($this->cronFile, $nowCron->getTimestamp()); } /** * Возвращает сообщения после тестирования cron'а * * @return string */ public function getMessage() { return $this->message; } /** * Разбирает задачу для крона из настроек Ideal CMS * @param string $cronTask Строка в формате "* * * * * /path/to/file.php" * @return array Массив, где первым элементом является строка соответствующая интервалу запуска задачи по крону, * а вторым элементом является путь до запускаемого файла */ protected function parseCronTask($cronTask) { // Получаем cron-формат запуска файла в первых пяти элементах массива и путь до файла в последнем элементе $taskParts = explode(' ', $cronTask, 6); $fileTask = ''; if (count($taskParts) >= 6) { $fileTask = array_pop($taskParts); } // Если запускаемый скрипт указан относительно корня сайта, то абсолютизируем его if ($fileTask && strpos($fileTask, '/') !== 0) { $fileTask = $this->siteRoot . '/' . $fileTask; } $fileTask = trim($fileTask); $taskExpression = implode(' ', $taskParts); return array($taskExpression, $fileTask); } /** * Загружаем данные из крона в переменные cron, cronEmail, modifyTime * * @throws \Exception */ private function loadCrontab($fileName) { $fileName = stream_resolve_include_path($fileName); if ($fileName) { $this->cron = $this->parseCrontab(file_get_contents($fileName)); } else { $this->cron = array(); $fileName = stream_resolve_include_path(dirname($fileName)) . 'crontab'; file_put_contents($fileName, ''); } $this->cronFile = $fileName; // Получаем дату модификации скрипта (она же считается датой последнего запуска) $this->modifyTime = new \DateTime(); $this->modifyTime->setTimestamp(filemtime($fileName)); } /** * Извлечение почтового адреса для отправки уведомлений с крона. Формат MAILTO="[email protected]" * * @param string $cronString Необработанный crontab * @return array Обработанный crontab */ public function parseCrontab($cronString) { $cron = explode(PHP_EOL, $cronString); foreach ($cron as $k => $item) { $item = trim($item); if (empty($item)) { // Пропускаем пустые строки continue; } if ($item[0] === '#') { // Если это комментарий, то удаляем его из задач unset($cron[$k]); continue; } if (stripos($item, 'mailto') !== false) { // Если это адрес, извлекаем его $arr = explode('=', $item); if (empty($arr[1])) { $this->message = 'Некорректно указан почтовый ящик для отправки сообщений'; } $email = trim($arr[1]); $this->cronEmail = trim($email, '"\''); // Убираем строку с адресом из списка задач unset($cron[$k]); } } return $cron; } }
lgpl-3.0
Frankie-PellesC/fSDK
Lib/src/strmiids/X64/strmiids0000008F.c
466
// Created file "Lib\src\strmiids\X64\strmiids" typedef struct _GUID { unsigned long Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[8]; } GUID; #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } DEFINE_GUID(CLSID_FilterGraphNoThread, 0xe436ebb8, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
lgpl-3.0
drzhonghao/grapa
jung-algorithms/src/main/java/edu/uci/ics/jung/algorithms/filters/VertexPredicateFilter.java
2185
/* * Created on May 19, 2008 * * Copyright (c) 2008, The JUNG Authors * * All rights reserved. * * This software is open-source under the BSD license; see either * "license.txt" or * https://github.com/jrtom/jung/blob/master/LICENSE for a description. */ package edu.uci.ics.jung.algorithms.filters; import java.util.Collection; import com.google.common.base.Predicate; import edu.uci.ics.jung.graph.Graph; /** * Transforms the input graph into one which contains only those vertices * that pass the specified <code>Predicate</code>. The filtered graph * is a copy of the original graph (same type, uses the same vertex and * edge objects). Only those edges whose entire incident vertex collection * passes the predicate are copied into the new graph. * * @author Joshua O'Madadhain */ public class VertexPredicateFilter<V,E> implements Filter<V,E> { protected Predicate<V> vertex_pred; /** * Creates an instance based on the specified vertex <code>Predicate</code>. * @param vertex_pred the predicate that specifies which vertices to add to the filtered graph */ public VertexPredicateFilter(Predicate<V> vertex_pred) { this.vertex_pred = vertex_pred; } @SuppressWarnings("unchecked") public Graph<V,E> apply(Graph<V,E> g) { Graph<V, E> filtered; try { filtered = g.getClass().newInstance(); } catch (InstantiationException e) { throw new RuntimeException("Unable to create copy of existing graph: ", e); } catch (IllegalAccessException e) { throw new RuntimeException("Unable to create copy of existing graph: ", e); } for (V v : g.getVertices()) if (vertex_pred.apply(v)) filtered.addVertex(v); Collection<V> filtered_vertices = filtered.getVertices(); for (E e : g.getEdges()) { Collection<V> incident = g.getIncidentVertices(e); if (filtered_vertices.containsAll(incident)) filtered.addEdge(e, incident); } return filtered; } }
lgpl-3.0
SonarSource/sonarqube
server/sonar-webserver-core/src/main/java/org/sonar/server/ce/CeModule.java
1241
/* * SonarQube * Copyright (C) 2009-2022 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package org.sonar.server.ce; import org.sonar.ce.queue.CeQueueImpl; import org.sonar.ce.task.log.CeTaskLogging; import org.sonar.core.platform.Module; import org.sonar.server.ce.http.CeHttpClientImpl; public class CeModule extends Module { @Override protected void configureModule() { add(CeTaskLogging.class, CeHttpClientImpl.class, // Queue CeQueueImpl.class); } }
lgpl-3.0
Godin/sonar
server/sonar-web/src/main/js/apps/projects/filters/__tests__/SearchFilterContainer-test.tsx
1288
/* * SonarQube * Copyright (C) 2009-2019 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; import { shallow } from 'enzyme'; import SearchFilterContainer from '../SearchFilterContainer'; it('searches', () => { const onQueryChange = jest.fn(); const wrapper = shallow(<SearchFilterContainer onQueryChange={onQueryChange} query={{}} />); expect(wrapper).toMatchSnapshot(); wrapper.find('SearchBox').prop<Function>('onChange')('foo'); expect(onQueryChange).toBeCalledWith({ search: 'foo' }); });
lgpl-3.0
MetaModels/core
src/Helper/ContaoController.php
2956
<?php /** * This file is part of MetaModels/core. * * (c) 2012-2019 The MetaModels team. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * This project is provided in good faith and hope to be usable by anyone. * * @package MetaModels/core * @author Christian Schiffler <[email protected]> * @author David Maack <[email protected]> * @author Sven Baumann <[email protected]> * @copyright 2012-2019 The MetaModels team. * @license https://github.com/MetaModels/core/blob/master/LICENSE LGPL-3.0-or-later * @filesource */ namespace MetaModels\Helper; /** * Gateway to the Contao "Controller" class for usage of the core without * importing any class. * * This is achieved using the magic functions which will relay the call * to the parent class Controller. See there for a list of function that can * be called (everything in Controller.php that is declared as protected). * * @deprecated Deprecated in favor of contao-events-bindings */ class ContaoController extends \Controller { /** * The instance. * * @var ContaoController */ protected static $objInstance = null; /** * Get the static instance. * * @static * @return ContaoController */ public static function getInstance() { if (self::$objInstance == null) { self::$objInstance = new self(); } return self::$objInstance; } /** * Protected constructor for singleton instance. */ protected function __construct() { parent::__construct(); $this->import('Database'); } /** * Makes all protected methods from class Controller callable publically. * * @param string $strMethod The method to call. * * @param array $arrArgs The arguments. * * @return mixed * * @throws \RuntimeException When the method is unknown. */ public function __call($strMethod, $arrArgs) { if (method_exists($this, $strMethod)) { return call_user_func_array(array($this, $strMethod), $arrArgs); } throw new \RuntimeException('undefined method: Controller::' . $strMethod); } /** * Makes all protected methods from class Controller callable publically from static context (requires PHP 5.3). * * @param string $strMethod The method to call. * * @param array $arrArgs The arguments. * * @return mixed * * @throws \RuntimeException When the method is unknown. */ public static function __callStatic($strMethod, $arrArgs) { if (method_exists(__CLASS__, $strMethod)) { return call_user_func_array(array(self::getInstance(), $strMethod), $arrArgs); } throw new \RuntimeException('undefined method: Controller::' . $strMethod); } }
lgpl-3.0
rmeekers/Google-Analytics-Manager
src/index.html
9420
<!-- /** Google Analytics Manager * Manage your Google Analytics account in batch via a Google Sheet * * @license GNU LESSER GENERAL PUBLIC LICENSE Version 3 * @author Rutger Meekers [[email protected]] * @version 1.5 * @see {@link http://rutger.meekers.eu/Google-Analytics-Manager/ Project Page} * */ --> <!DOCTYPE html> <html> <head> <link href="//ssl.gstatic.com/docs/script/css/add-ons.css" rel="stylesheet"> <link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.2/css/select2.min.css" rel="stylesheet"> <style> body { margin: 0; } h2 { margin: 0 0 12px !important; color: #000 !important; font-weight: bold !important; font-size: 14px !important; } section { padding-bottom: 12px; } select[multiple] { text-align: left; } .help { padding-top: 12px; color: #666; font-size: 11px; line-height: 1.3; } .row { margin-bottom: 12px; } .full { width: 100%; } .select2-results ul.select2-result-sub { padding: 0; } .select2-container-multi .select2-choices .select2-search-field input { height: auto; } /* Spinner CSS */ .spinner_block { display: none; z-index: 1000; background-color: #ffffff; opacity: 0.75; width: 100%; height: 100%; position: absolute; } .spinner { -webkit-animation: rotation 1.4s linear infinite; animation: rotation 1.4s linear infinite; left: 45%; top: 35%; position: fixed; z-index: 1100; } @-webkit-keyframes rotation { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(270deg); transform: rotate(270deg); } } @keyframes rotation { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(270deg); transform: rotate(270deg); } } .circle { stroke-dasharray: 187; stroke-dashoffset: 0; -webkit-transform-origin: center; -ms-transform-origin: center; transform-origin: center; -webkit-animation: turn 1.4s ease-in-out infinite; animation: turn 1.4s ease-in-out infinite; } @-webkit-keyframes turn { 0% { stroke-dashoffset: 187; } 50% { stroke-dashoffset: 46.75; -webkit-transform: rotate(135deg); transform: rotate(135deg); } 100% { stroke-dashoffset: 187; -webkit-transform: rotate(450deg); transform: rotate(450deg); } } @keyframes turn { 0% { stroke-dashoffset: 187; } 50% { stroke-dashoffset: 46.75; -webkit-transform: rotate(135deg); transform: rotate(135deg); } 100% { stroke-dashoffset: 187; -webkit-transform: rotate(450deg); transform: rotate(450deg); } } svg.spinner { stroke:#ff9800; } </style> </head> <body> <div class="spinner_block"> <svg class="spinner" width="65px" height="65px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg"> <circle class="circle" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle> </svg> </div> <form class="sidebar" name="sidebar"> <section> <script> var accounts =<?!= getAccountSummary() ?>;</script> <h2>1) Select Account(s)</h2> <div class="row form-group"> <select multiple id="account" name="account" class="full"></select> </div> </section> <section> <script> var reports =<?!= getReports() ?>;</script> <h2>2) Select Report</h2> <div class="row form-group"> <select id="report" class="full" name="report"></select> </div> </section> <div class="row form-group"> <button class="action" id="submit" type="submit">Audit Account(s)</button> <button id="close" type="button">Cancel</button> </div> <p class="help">If you have questions about using this tool, check out <a href="http://rutger.meekers.eu/Google-Analytics-Manager/" target="_blank">the project page</a> for more detailed instructions.</p> </form> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.2/js/select2.min.js"></script> <script> /** * Global google, accounts, Browser, reports */ /** * Handle User Exceptions * @param {string} message */ function UserException(message) { this.messsage = message; this.name = 'UserException'; } /** * Handle User Exceptions * @param {array} array * @param {string} selector */ function appendOptionsToSelect(array, selector) { var select = $(selector); var isAccount = selector === '#account'; select.empty(); if (!array.length) { if (isAccount) { throw new UserException( 'We couldn\'t find any Google Analytics accounts. ' + 'Please log in with another Google account.' ); } throw new UserException('We we\'re unable to locate the report list. Please try again.'); } array.forEach(function(element, index) { var setValue = isAccount ? index : element.id; var option = $('<option>') .attr('value', setValue) .text(element.name); select.append(option); }); } /** * Audit data */ var audit = { flag: false, spinner: $('.spinner_block'), form: $('.sidebar_block'), init: function() { this.showAccounts(accounts); this.showReports(reports); $('#submit').on('click', $.proxy(audit.submit, audit)); $('#close').on('click', $.proxy(audit.close, audit)); }, showAccounts: function(accounts) { try { appendOptionsToSelect(accounts, '#account'); } catch (error) { this.error(error); } }, showReports: function(reports) { try { appendOptionsToSelect(reports, '#report'); } catch (error) { this.error(error); } }, submit: function(e) { var accountList = []; for (var i = 0; i < $('#account').val().length; i++) { accountList.push(accounts[$('#account').val()[i]]); } var data = JSON.stringify({ ids: accountList, report: $('#report').val() }); e.preventDefault(); this.form.hide(); this.spinner.show(); google.script.run .withSuccessHandler(this.success.bind(this)) .withFailureHandler(this.error.bind(this)) .runFunction('saveReportDataFromSidebar', data); }, success: function() { this.close(); }, error: function(error) { if (error.message === 'Quota Error: User Rate Limit Exceeded.') { return this.errorHandleUserRateLimit(); } this.close(); window.alert(error); }, errorHandleUserRateLimit: function() { if (!this.flag) { this.flag = true; window.alert('It looks like you\'ve exceeded the API User Rate Limit. ' + 'We\'ll continue to retrieve the data. If it takes too long,' + 'feel free to cancel the request and try again later.'); } return setTimeout(function() { $('#submit').trigger('click'); }, 1000); }, close: function() { google.script.host.close(); } }; $(function() { // onReady - initialized audit.init(); }); </script> </body> </html>
lgpl-3.0
ampayne2/AlmightyNotch
src/main/java/ninja/amp/almightynotch/event/player/QuicksandEvent.java
931
/* * This file is part of AlmightyNotch. * * Copyright (c) 2014 <http://dev.bukkit.org/server-mods/almightynotch//> * * AlmightyNotch is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * AlmightyNotch is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with AlmightyNotch. If not, see <http://www.gnu.org/licenses/>. */ package ninja.amp.almightynotch.event.player; public class QuicksandEvent { // Moods: Bored, Displeased // Mood Modifier: 5 }
lgpl-3.0
TheE/Intake
intake-example/src/main/java/com/sk89q/intake/example/i18n/ExampleResourceProvider.java
1183
/* * Intake, a command processing library * Copyright (C) sk89q <http://www.sk89q.com> * Copyright (C) Intake team and contributors * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by the * Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License * for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package com.sk89q.intake.example.i18n; import com.sk89q.intake.example.i18n.util.Messages; import com.sk89q.intake.util.i18n.ResourceProvider; public class ExampleResourceProvider implements ResourceProvider { private final Messages msg = new Messages(I18nExample.RESOURCE_NAME); @Override public String getString(String key) { return msg.getString(key); } }
lgpl-3.0
Frankie-PellesC/fSDK
Lib/src/Uuid/X64/guids00000465.c
456
// Created file "Lib\src\Uuid\X64\guids" typedef struct _GUID { unsigned long Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[8]; } GUID; #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } DEFINE_GUID(PKEY_Document_ClientID, 0x276d7bb0, 0x5b34, 0x4fb0, 0xaa, 0x4b, 0x15, 0x8e, 0xd1, 0x2a, 0x18, 0x09);
lgpl-3.0
Frankie-PellesC/fSDK
Lib/src/PortableDeviceGuids/X64/guids000000E3.c
470
// Created file "Lib\src\PortableDeviceGuids\X64\guids" typedef struct _GUID { unsigned long Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[8]; } GUID; #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } DEFINE_GUID(WPD_OBJECT_FORMAT_JPX, 0x38100000, 0xae6c, 0x4804, 0x98, 0xba, 0xc5, 0x7b, 0x46, 0x96, 0x5f, 0xe7);
lgpl-3.0
fhermeni/btrplace-btrpsl
src/test/java/btrplace/btrpsl/constraint/DefaultConstraintsCatalogTest.java
1816
/* * Copyright (c) 2013 University of Nice Sophia-Antipolis * * This file is part of btrplace. * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package btrplace.btrpsl.constraint; import btrplace.model.constraint.SatConstraint; import org.reflections.Reflections; import org.testng.Assert; import org.testng.annotations.Test; import java.lang.reflect.Modifier; import java.util.HashSet; import java.util.Set; /** * Unit tests for {@link DefaultConstraintsCatalog}. * * @author Fabien Hermenier */ public class DefaultConstraintsCatalogTest { /** * Check if there is a builder for each SatConstraint * bundled with btrplace-api. */ @Test public void testCovering() throws Exception { DefaultConstraintsCatalog c = DefaultConstraintsCatalog.newBundle(); Reflections reflections = new Reflections("btrplace.model"); Set<Class<? extends SatConstraint>> impls = new HashSet<>(); for (Class cstr : reflections.getSubTypesOf(SatConstraint.class)) { if (!Modifier.isAbstract(cstr.getModifiers())) { impls.add(cstr); } } Assert.assertEquals(c.getAvailableConstraints().size(), impls.size()); } }
lgpl-3.0
infinitycoding/huge
src/sdl/sdl.cpp
2586
/* Copyright 2012-2014 Infinitycoding all rights reserved This file is part of the HugeUniversalGameEngine. HUGE is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. HUGE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the Universe Kernel. If not, see <http://www.gnu.org/licenses/>. */ /* @author Michael Sippel <[email protected]> */ #include <huge/math/vector.h> #include <huge/sdl.h> namespace huge { namespace sdl { int init(void) { return SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER); } Window::Window() : title(NULL), size(Vector2i(800, 600)) { } Window::Window(char *title_) : title(title_), size(Vector2i(800, 600)) { } Window::Window(Vector2i size_) : title(NULL), size(size_) { } Window::Window(char *title_, Vector2i size_) : title(title_), size(size_) { } Window::~Window() { } GLContext::GLContext() { GLContext(new GLWindow()); } GLContext::GLContext(Window *window_) : window(window_) { this->sdl_context = (SDL_GLContext*) SDL_GL_CreateContext(this->window->sdl_window); if(this->sdl_context == NULL) { printf("OpenGL context creation failed!\n"); } } GLContext::~GLContext() { SDL_GL_DeleteContext(this->sdl_context); } void GLContext::activate_(void) { SDL_GL_MakeCurrent(this->window->sdl_window, this->sdl_context); } GLWindow::GLWindow() { this->create(); } GLWindow::GLWindow(char *title_) { this->title = title_; this->create(); } GLWindow::GLWindow(Vector2i size_) { this->size = size_; this->create(); } GLWindow::GLWindow(char *title_, Vector2i size_) { this->title = title_; this->size = size_; this->create(); } GLWindow::~GLWindow() { SDL_DestroyWindow(this->sdl_window); } void GLWindow::swap(void) { SDL_GL_SwapWindow(this->sdl_window); } void GLWindow::create(void) { this->sdl_window = SDL_CreateWindow(this->title, 0, 0, this->size.x(), this->size.y(), SDL_WINDOW_OPENGL); if(this->sdl_window == NULL) { printf("SDL window creation failed!\n"); } } }; // namespace sdl }; // namespace huge
lgpl-3.0
xrlopez/ABP
controller/JuradoProfesionalController.php
6331
<?php require_once(__DIR__."/../model/JuradoProfesional.php"); require_once(__DIR__."/../model/JuradoProfesionalMapper.php"); require_once(__DIR__."/../model/User.php"); require_once(__DIR__."/../model/UserMapper.php"); require_once(__DIR__."/../model/Concurso.php"); require_once(__DIR__."/../model/ConcursoMapper.php"); require_once(__DIR__."/../core/ViewManager.php"); require_once(__DIR__."/../controller/BaseController.php"); require_once(__DIR__."/../controller/UsersController.php"); class JuradoProfesionalController extends BaseController { private $juradoProfesionalMapper; private $userMapper; private $concursoMapper; public function __construct() { parent::__construct(); $this->juradoProfesionalMapper = new JuradoProfesionalMapper(); $this->concursoMapper = new ConcursoMapper(); $this->userMapper = new UserMapper(); } /*redirecciona a la página principal del sitio web*/ public function index() { $juradoProfesional = $this->juradoProfesionalMapper->findAll(); $concursos = $this->concursoMapper->findConcurso("pinchosOurense"); $this->view->setVariable("juradoProfesional", $juradoProfesional); $this->view->setVariable("concursos", $concursos); $this->view->render("concursos", "index"); } /*redirecciona a la vista del perfil del jurado profesional*/ public function perfil(){ $currentuser = $this->view->getVariable("currentusername"); $juradoProfesional = $this->juradoProfesionalMapper->findById($currentuser); $this->view->setVariable("juradoPro", $juradoProfesional); $this->view->render("juradoProfesional", "perfil"); } /*redirecciona al formulario de modificacion de los datos de un jurado profesional*/ public function modificar(){ $currentuser = $this->view->getVariable("currentusername"); $juradoProfesional = $this->juradoProfesionalMapper->findById($currentuser); $this->view->setVariable("juradoPro", $juradoProfesional); $this->view->render("juradoProfesional", "modificar"); } /*Recupera los datos del formulario de modificacion de un jurado profesional, comprueba que son correctos y llama a update() de JuradoProfesionalMapper.php donde se realiza la actualizacion de los datos.*/ public function update(){ $jproid = $_REQUEST["usuario"]; $jpro = $this->juradoProfesionalMapper->findById($jproid); $errors = array(); if($this->userMapper->isValidUser($_POST["usuario"],$_POST["passActual"])){ if (isset($_POST["submit"])) { $jpro->setNombre($_POST["nombre"]); $jpro->setEmail($_POST["correo"]); $jpro->setProfesion($_POST["profesion"]); if(!(strlen(trim($_POST["passNew"])) == 0)){ if ($_POST["passNew"]==$_POST["passNueva"]) { $jpro->setPassword($_POST["passNueva"]); } else{ $errors["pass"] = "Las contraseñas tienen que ser iguales"; $this->view->setVariable("errors", $errors); $this->view->setVariable("juradoPro", $jpro); $this->view->render("juradoProfesional", "modificar"); return false; } } try{ $this->juradoProfesionalMapper->update($jpro); $this->view->setFlash(sprintf("Usuario \"%s\" modificado correctamente.",$jpro ->getNombre())); $this->view->redirect("juradoProfesional", "index"); }catch(ValidationException $ex) { $errors = $ex->getErrors(); $this->view->setVariable("errors", $errors); } } } else{ $errors["passActual"] = "<span>La contraseña es obligatoria</span>"; $this->view->setVariable("errors", $errors); $this->view->setVariable("juradoPro", $jpro); $this->view->render("juradoProfesional", "modificar"); } } /*Llama a delete() de JuradoProfesionalMapper.php que elimina un jurado profesional y las votaciones que este realizó.*/ public function eliminar(){ $jproid = $_REQUEST["usuario"]; $juradoProfesional = $this->juradoProfesionalMapper->findById($jproid); // Does the post exist? if ($juradoProfesional == NULL) { throw new Exception("No existe el usuario ".$jproid); } // Delete the Jurado Popular object from the database $this->juradoProfesionalMapper->delete($juradoProfesional); $this->view->setFlash(sprintf("Usuario \"%s\" eliminado.",$juradoProfesional ->getId())); $this->view->redirect("organizador", "index"); } /*lista los jurado profesionales para eliminarlos*/ public function listarEliminar(){ $juradoProfesional = $this->juradoProfesionalMapper->findAll(); $this->view->setVariable("juradoProfesional", $juradoProfesional); $this->view->render("juradoProfesional", "listaEliminar"); } /*lista los jurados profesionales*/ public function listar(){ $juradoProfesional = $this->juradoProfesionalMapper->findAll(); $this->view->setVariable("juradoProfesional", $juradoProfesional); $this->view->render("juradoProfesional", "listar"); } /*redirecciona a la vista de votar de un jurado profesional*/ public function votar(){ $currentuser = $this->view->getVariable("currentusername"); $juradoProfesional = $this->juradoProfesionalMapper->findById($currentuser); //devuelve los pinchos con sus votos de un jurado profesional $votos = $this->juradoProfesionalMapper->votos($currentuser); //devuelve la ronda en la que esta el jurado profesional $ronda = $this->juradoProfesionalMapper->getRonda($currentuser); $this->view->setVariable("juradoPro", $juradoProfesional); $this->view->setVariable("votos", $votos); $this->view->setVariable("ronda", $ronda); $this->view->render("juradoProfesional", "votar"); } /*modifica el pincho y su voto correspondiente de un jurado profesional*/ public function votarPincho(){ $currentuser = $this->view->getVariable("currentusername"); $juradoProfesional = $this->juradoProfesionalMapper->findById($currentuser); $votos = $this->juradoProfesionalMapper->votar($_POST['currentusername'], $_POST['idPincho'], $_POST['voto']); $this->view->redirect("juradoProfesional", "votar"); } }
lgpl-3.0
sockethub/sockethub-platform-xmpp
lib/incoming-handlers.js
7988
let idCounter = 0; function nextId() { return ++idCounter; } // if the platform throws an exception, the worker will kill & restart it, however if a callback comes in there could // be a race condition which tries to still access session functions which have already been terminated by the worker. // this function wrapper only calls the session functions if they still exist. function referenceProtection(session) { if (typeof session === 'undefined') { throw new Error('session object not provided'); } function checkScope(funcName) { return (msg) => { if (typeof session[funcName] === 'function') { session[funcName](msg); } } } return { actor: session.actor, debug: checkScope('debug'), sendToClient: checkScope('sendToClient') } } class IncomingHandlers { constructor(session) { this.session = referenceProtection(session); } buddy(from, state, statusText) { if (from !== this.session.actor['@id']) { this.session.debug('received buddy presence update: ' + from + ' - ' + state); this.session.sendToClient({ '@type': 'update', actor: { '@id': from }, target: this.session.actor, object: { '@type': 'presence', status: statusText, presence: state } }); } } buddyCapabilities(id, capabilities) { this.session.debug('received buddyCapabilities: ' + id); } chat(from, message) { this.session.debug("received chat message from " + from); this.session.sendToClient({ '@type': 'send', actor: { '@type': 'person', '@id': from }, target: this.session.actor, object: { '@type': 'message', content: message, '@id': nextId() } }); } chatstate(from, name) { this.session.debug('received chatstate event: ' + from, name); } close() { this.session.debug('received close event with no handler specified'); this.session.sendToClient({ '@type': 'close', actor: this.session.actor, target: this.session.actor }); this.session.debug('**** xmpp this.session.for ' + this.session.actor['@id'] + ' closed'); this.session.connection.disconnect(); } error(error) { try { this.session.debug("*** XMPP ERROR (rl): " + error); this.session.sendToClient({ '@type': 'error', object: { '@type': 'error', content: error } }); } catch (e) { this.session.debug('*** XMPP ERROR (rl catch): ', e); } } groupBuddy(id, groupBuddy, state, statusText) { this.session.debug('received groupbuddy event: ' + id); this.session.sendToClient({ '@type': 'update', actor: { '@id': `${id}/${groupBuddy}`, '@type': 'person', displayName: groupBuddy }, target: { '@id': id, '@type': 'room' }, object: { '@type': 'presence', status: statusText, presence: state } }); } groupChat(room, from, message, stamp) { this.session.debug('received groupchat event: ' + room, from, message, stamp); this.session.sendToClient({ '@type': 'send', actor: { '@type': 'person', '@id': from }, target: { '@type': 'room', '@id': room }, object: { '@type': 'message', content: message, '@id': nextId() } }); } online() { this.session.debug('online'); this.session.debug('reconnectioned ' + this.session.actor['@id']); } subscribe(from) { this.session.debug('received subscribe request from ' + from); this.session.sendToClient({ '@type': "request-friend", actor: { '@id': from }, target: this.session.actor }); } unsubscribe(from) { this.session.debug('received unsubscribe request from ' + from); this.session.sendToClient({ '@type': "remove-friend", actor: { '@id': from }, target: this.session.actor }); } /** * Handles all unknown conditions that we don't have an explicit handler for **/ __stanza(stanza) { // simple-xmpp currently doesn't seem to handle error state presence so we'll do it here for now. // TODO: consider moving this.session.to simple-xmpp once it's ironed out and proven to work well. if ((stanza.attrs.type === 'error')) { const error = stanza.getChild('error'); let message = stanza.toString(); let type = 'message'; if (stanza.is('presence')) { type = 'update'; } if (error) { message = error.toString(); if (error.getChild('remote-server-not-found')) { // when we get this.session.type of return message, we know it was a response from a join type = 'join'; message = 'remote server not found ' + stanza.attrs.from; } } this.session.sendToClient({ '@type': type, actor: { '@id': stanza.attrs.from, '@type': 'room' }, object: { '@type': 'error', // type error content: message }, target: { '@id': stanza.attrs.to, '@type': 'person' } }); } else if (stanza.is('iq')) { if (stanza.attrs.id === 'muc_id' && stanza.attrs.type === 'result') { this.session.debug('got room attendance list'); this.roomAttendance(stanza); return; } const query = stanza.getChild('query'); if (query) { const entries = query.getChildren('item'); for (let e in entries) { if (! entries.hasOwnProperty(e)) { continue; } this.session.debug('STANZA ATTRS: ', entries[e].attrs); if (entries[e].attrs.subscription === 'both') { this.session.sendToClient({ '@type': 'update', actor: { '@id': entries[e].attrs.jid, displayName: entries[e].attrs.name }, target: this.session.actor, object: { '@type': 'presence', status: '', presence: state } }); } else if ((entries[e].attrs.subscription === 'from') && (entries[e].attrs.ask) && (entries[e].attrs.ask === 'subscribe')) { this.session.sendToClient({ '@type': 'update', actor: { '@id': entries[e].attrs.jid, displayName: entries[e].attrs.name }, target: this.session.actor, object: { '@type': 'presence', statusText: '', presence: 'notauthorized' } }); } else { /** * cant figure out how to know if one of these query stanzas are from * added contacts or pending requests */ this.session.sendToClient({ '@type': 'request-friend', actor: { '@id': entries[e].attrs.jid, displayName: entries[e].attrs.name }, target: this.session.actor }); } } } // } else { // this.session.debug("got XMPP unknown stanza... " + stanza); } } roomAttendance(stanza) { const query = stanza.getChild('query'); if (query) { let members = []; const entries = query.getChildren('item'); for (let e in entries) { if (!entries.hasOwnProperty(e)) { continue; } members.push(entries[e].attrs.name); } this.session.sendToClient({ '@type': 'observe', actor: { '@id': stanza.attrs.from, '@type': 'room' }, target: { '@id': stanza.attrs.to, '@type': 'person' }, object: { '@type': 'attendance', members: members } }); } } } module.exports = IncomingHandlers;
lgpl-3.0
RoanKanninga/NGS_DNA
protocols/SnpEff.sh
1339
#Parameter mapping #string tmpName #string tempDir #string intermediateDir #string projectVariantCallsSnpEff_Annotated #string projectVariantCallsSnpEff_SummaryHtml #string projectBatchGenotypedAnnotatedVariantCalls #string project #string logsDir #string groupname #string tmpDataDir #string snpEffVersion #string javaVersion makeTmpDir "${projectVariantCallsSnpEff_Annotated}" tmpProjectVariantCallsSnpEff_Annotated="${MC_tmpFile}" module load "${snpEffVersion}" module list if [ -f "${projectBatchGenotypedAnnotatedVariantCalls}" ] then # ## ###Annotate with SnpEff ## # #Run snpEff java -XX:ParallelGCThreads=1 -Djava.io.tmpdir="${tempDir}" -Xmx3g -jar \ "${EBROOTSNPEFF}/snpEff.jar" \ -v hg19 \ -csvStats "${tmpProjectVariantCallsSnpEff_Annotated}.csvStats.csv" \ -noLog \ -lof \ -stats "${projectVariantCallsSnpEff_SummaryHtml}" \ -canon \ -ud 0 \ -c "${EBROOTSNPEFF}/snpEff.config" \ "${projectBatchGenotypedAnnotatedVariantCalls}" \ > "${tmpProjectVariantCallsSnpEff_Annotated}" mv "${tmpProjectVariantCallsSnpEff_Annotated}" "${projectVariantCallsSnpEff_Annotated}" mv "${tmpProjectVariantCallsSnpEff_Annotated}.csvStats.csv" "${projectVariantCallsSnpEff_Annotated}.csvStats.csv" echo "mv ${tmpProjectVariantCallsSnpEff_Annotated} ${projectVariantCallsSnpEff_Annotated}" else echo "skipped" fi
lgpl-3.0
axsh/openvnet
vnet/lib/vnet/event.rb
13317
# -*- coding: utf-8 -*- module Vnet module Event # # Shared events: # ACTIVATE_INTERFACE = "activate_interface" DEACTIVATE_INTERFACE = "deactivate_interface" # *_INITIALIZED # # First event queued after the non-yielding and non-blocking # initialization of an item query from the database. # # *_UNLOAD_ITEM # # When the node wants to unload it's own loaded items the # 'unload_item' event should be used instead of 'deleted_item'. # # *_CREATED_ITEM # # The item was added to the database and basic information of # the item sent to relevant nodes. The manager should decide if it # should initialize the item or not. # # *_DELETED_ITEM # # The item was deleted from the database and should be unloaded # from all nodes. # # Active Interface events: # ACTIVE_INTERFACE_INITIALIZED = "active_interface_initialized" ACTIVE_INTERFACE_UNLOAD_ITEM = "active_interface_unload_item" ACTIVE_INTERFACE_CREATED_ITEM = "active_interface_created_item" ACTIVE_INTERFACE_DELETED_ITEM = "active_interface_deleted_item" ACTIVE_INTERFACE_UPDATED = "active_interface_updated" # # Active Network events: # ACTIVE_NETWORK_INITIALIZED = "active_network_initialized" ACTIVE_NETWORK_UNLOAD_ITEM = "active_network_unload_item" ACTIVE_NETWORK_CREATED_ITEM = "active_network_created_item" ACTIVE_NETWORK_DELETED_ITEM = "active_network_deleted_item" ACTIVE_NETWORK_ACTIVATE = "active_network_activate" ACTIVE_NETWORK_DEACTIVATE = "active_network_deactivate" # # Active Route Link events: # ACTIVE_ROUTE_LINK_INITIALIZED = "active_route_link_initialized" ACTIVE_ROUTE_LINK_UNLOAD_ITEM = "active_route_link_unload_item" ACTIVE_ROUTE_LINK_CREATED_ITEM = "active_route_link_created_item" ACTIVE_ROUTE_LINK_DELETED_ITEM = "active_route_link_deleted_item" ACTIVE_ROUTE_LINK_ACTIVATE = "active_route_link_activate" ACTIVE_ROUTE_LINK_DEACTIVATE = "active_route_link_deactivate" # # Active Segment events: # ACTIVE_SEGMENT_INITIALIZED = "active_segment_initialized" ACTIVE_SEGMENT_UNLOAD_ITEM = "active_segment_unload_item" ACTIVE_SEGMENT_CREATED_ITEM = "active_segment_created_item" ACTIVE_SEGMENT_DELETED_ITEM = "active_segment_deleted_item" ACTIVE_SEGMENT_ACTIVATE = "active_segment_activate" ACTIVE_SEGMENT_DEACTIVATE = "active_segment_deactivate" # # Active Port events: # ACTIVE_PORT_INITIALIZED = "active_port_initialized" ACTIVE_PORT_UNLOAD_ITEM = "active_port_unload_item" ACTIVE_PORT_CREATED_ITEM = "active_port_created_item" ACTIVE_PORT_DELETED_ITEM = "active_port_deleted_item" ACTIVE_PORT_ACTIVATE = "active_port_activate" ACTIVE_PORT_DEACTIVATE = "active_port_deactivate" # # Datapath events: # DATAPATH_INITIALIZED = 'datapath_initialized' DATAPATH_UNLOAD_ITEM = 'datapath_unload_item' DATAPATH_CREATED_ITEM = 'datapath_created_item' DATAPATH_DELETED_ITEM = 'datapath_deleted_item' DATAPATH_UPDATED_ITEM = 'datapath_updated_item' HOST_DATAPATH_INITIALIZED = 'host_datapath_initialized' HOST_DATAPATH_UNLOAD_ITEM = 'host_datapath_unload_item' ACTIVATE_NETWORK_ON_HOST = 'activate_network_on_host' DEACTIVATE_NETWORK_ON_HOST = 'deactivate_network_on_host' ADDED_DATAPATH_NETWORK = 'added_datapath_network' REMOVED_DATAPATH_NETWORK = 'removed_datapath_network' ACTIVATE_DATAPATH_NETWORK = 'activate_datapath_network' DEACTIVATE_DATAPATH_NETWORK = 'deactivate_datapath_network' ACTIVATE_SEGMENT_ON_HOST = 'activate_segment_on_host' DEACTIVATE_SEGMENT_ON_HOST = 'deactivate_segment_on_host' ADDED_DATAPATH_SEGMENT = 'added_datapath_segment' REMOVED_DATAPATH_SEGMENT = 'removed_datapath_segment' ACTIVATE_DATAPATH_SEGMENT = 'activate_datapath_segment' DEACTIVATE_DATAPATH_SEGMENT = 'deactivate_datapath_segment' ACTIVATE_ROUTE_LINK_ON_HOST = 'activate_route_link_on_host' DEACTIVATE_ROUTE_LINK_ON_HOST = 'deactivate_route_link_on_host' ADDED_DATAPATH_ROUTE_LINK = 'added_datapath_route_link' REMOVED_DATAPATH_ROUTE_LINK = 'removed_datapath_route_link' ACTIVATE_DATAPATH_ROUTE_LINK = 'activate_datapath_route_link' DEACTIVATE_DATAPATH_ROUTE_LINK = 'deactivate_datapath_route_link' # # Interface events: # INTERFACE_INITIALIZED = "interface_initialized" INTERFACE_UNLOAD_ITEM = "interface_unload_item" INTERFACE_CREATED_ITEM = "interface_created_item" INTERFACE_DELETED_ITEM = "interface_deleted_item" INTERFACE_UPDATED = "interface_updated" INTERFACE_ENABLED_FILTERING = "interface_enabled_filtering" INTERFACE_DISABLED_FILTERING = "interface_disabled_filtering" INTERFACE_ENABLED_FILTERING2 = "interface_enabled_filtering2" INTERFACE_DISABLED_FILTERING2 = "interface_disabled_filtering2" # MAC and IPv4 addresses: INTERFACE_LEASED_MAC_ADDRESS = "interface_leased_mac_address" INTERFACE_RELEASED_MAC_ADDRESS = "interface_released_mac_address" INTERFACE_LEASED_IPV4_ADDRESS = "interface_leased_ipv4_address" INTERFACE_RELEASED_IPV4_ADDRESS = "interface_released_ipv4_address" # # Interface Network events: # INTERFACE_NETWORK_INITIALIZED = "interface_network_initialized" INTERFACE_NETWORK_UNLOAD_ITEM = "interface_network_unload_item" INTERFACE_NETWORK_CREATED_ITEM = "interface_network_created_item" INTERFACE_NETWORK_DELETED_ITEM = "interface_network_deleted_item" INTERFACE_NETWORK_UPDATED_ITEM = "interface_network_updated_item" # # Interface Route Link events: # INTERFACE_ROUTE_LINK_INITIALIZED = "interface_route_link_initialized" INTERFACE_ROUTE_LINK_UNLOAD_ITEM = "interface_route_link_unload_item" INTERFACE_ROUTE_LINK_CREATED_ITEM = "interface_route_link_created_item" INTERFACE_ROUTE_LINK_DELETED_ITEM = "interface_route_link_deleted_item" INTERFACE_ROUTE_LINK_UPDATED_ITEM = "interface_route_link_updated_item" # # Interface Segment events: # INTERFACE_SEGMENT_INITIALIZED = "interface_segment_initialized" INTERFACE_SEGMENT_UNLOAD_ITEM = "interface_segment_unload_item" INTERFACE_SEGMENT_CREATED_ITEM = "interface_segment_created_item" INTERFACE_SEGMENT_DELETED_ITEM = "interface_segment_deleted_item" INTERFACE_SEGMENT_UPDATED_ITEM = "interface_segment_updated_item" # # Interface Port events: # INTERFACE_PORT_INITIALIZED = "interface_port_initialized" INTERFACE_PORT_UNLOAD_ITEM = "interface_port_unload_item" INTERFACE_PORT_CREATED_ITEM = "interface_port_created_item" INTERFACE_PORT_DELETED_ITEM = "interface_port_deleted_item" INTERFACE_PORT_UPDATED = "interface_port_updated" INTERFACE_PORT_ACTIVATE = "interface_port_activate" INTERFACE_PORT_DEACTIVATE = "interface_port_deactivate" # # Filter events: # FILTER_INITIALIZED = "filter_initialized" FILTER_UNLOAD_ITEM = "filter_unload_item" FILTER_CREATED_ITEM = "filter_created_item" FILTER_DELETED_ITEM = "filter_deleted_item" FILTER_UPDATED = "filter_updated" FILTER_ADDED_STATIC = "filter_added_static" FILTER_REMOVED_STATIC = "filter_removed_static" # # Filter events: # MAC_RANGE_GROUP_CREATED_ITEM = "mac_range_group_created_item" MAC_RANGE_GROUP_DELETED_ITEM = "mac_range_group_deleted_item" # # Network event: # NETWORK_INITIALIZED = "network_initialized" NETWORK_UNLOAD_ITEM = "network_unload_item" NETWORK_DELETED_ITEM = "network_deleted_item" NETWORK_UPDATE_ITEM_STATES = "network_update_item_states" # # lease policy event # LEASE_POLICY_INITIALIZED = "lease_policy_initialized" LEASE_POLICY_CREATED_ITEM = "lease_policy_created_item" LEASE_POLICY_DELETED_ITEM = "lease_policy_deleted_item" # # Port events: # PORT_INITIALIZED = "port_initialized" PORT_FINALIZED = "port_finalized" PORT_ATTACH_INTERFACE = "port_attach_interface" PORT_DETACH_INTERFACE = "port_detach_interface" # # Route events: # ROUTE_INITIALIZED = "route_initialized" ROUTE_UNLOAD_ITEM = "route_unload_item" ROUTE_CREATED_ITEM = "route_created_item" ROUTE_DELETED_ITEM = "route_deleted_item" ROUTE_ACTIVATE_NETWORK = "route_activate_network" ROUTE_DEACTIVATE_NETWORK = "route_deactivate_network" ROUTE_ACTIVATE_ROUTE_LINK = "route_activate_route_link" ROUTE_DEACTIVATE_ROUTE_LINK = "route_deactivate_route_link" # # Router event: # ROUTER_INITIALIZED = "router_initialized" ROUTER_UNLOAD_ITEM = "router_unload_item" ROUTER_CREATED_ITEM = "router_created_item" ROUTER_DELETED_ITEM = "router_deleted_item" # # Segment events: # SEGMENT_INITIALIZED = "segment_initialized" SEGMENT_UNLOAD_ITEM = "segment_unload_item" SEGMENT_CREATED_ITEM = "segment_created_item" SEGMENT_DELETED_ITEM = "segment_deleted_item" SEGMENT_UPDATE_ITEM_STATES = "segment_update_item_states" # # Service events: # SERVICE_INITIALIZED = "service_initialized" SERVICE_UNLOAD_ITEM = "service_unload_item" SERVICE_CREATED_ITEM = "service_created_item" SERVICE_DELETED_ITEM = "service_deleted_item" SERVICE_ACTIVATE_INTERFACE = "service_activate_interface" SERVICE_DEACTIVATE_INTERFACE = "service_deactivate_interface" # # Translation events: # TRANSLATION_INITIALIZED = "translation_initialized" TRANSLATION_UNLOAD_ITEM = "translation_unload_item" TRANSLATION_CREATED_ITEM = "translation_created_item" TRANSLATION_DELETED_ITEM = "translation_deleted_item" TRANSLATION_ADDED_STATIC_ADDRESS = "translation_added_static_address" TRANSLATION_REMOVED_STATIC_ADDRESS = "translation_removed_static_address" # # Topology events: # TOPOLOGY_INITIALIZED = 'topology_initialized' TOPOLOGY_UNLOAD_ITEM = 'topology_unload_item' TOPOLOGY_CREATED_ITEM = 'topology_created_item' TOPOLOGY_DELETED_ITEM = 'topology_deleted_item' TOPOLOGY_ADDED_DATAPATH = 'topology_added_datapath' TOPOLOGY_REMOVED_DATAPATH = 'topology_removed_datapath' TOPOLOGY_ADDED_LAYER = 'topology_added_layer' TOPOLOGY_REMOVED_LAYER = 'topology_removed_layer' TOPOLOGY_ADDED_MAC_RANGE_GROUP = 'topology_added_mac_range_group' TOPOLOGY_REMOVED_MAC_RANGE_GROUP = 'topology_removed_mac_range_group' TOPOLOGY_ADDED_NETWORK = 'topology_added_network' TOPOLOGY_REMOVED_NETWORK = 'topology_removed_network' TOPOLOGY_ADDED_SEGMENT = 'topology_added_segment' TOPOLOGY_REMOVED_SEGMENT = 'topology_removed_segment' TOPOLOGY_ADDED_ROUTE_LINK = 'topology_added_route_link' TOPOLOGY_REMOVED_ROUTE_LINK = 'topology_removed_route_link' TOPOLOGY_NETWORK_ACTIVATED = 'topology_network_activated' TOPOLOGY_NETWORK_DEACTIVATED = 'topology_network_deactivated' TOPOLOGY_SEGMENT_ACTIVATED = 'topology_segment_activated' TOPOLOGY_SEGMENT_DEACTIVATED = 'topology_segment_deactivated' TOPOLOGY_ROUTE_LINK_ACTIVATED = 'topology_route_link_activated' TOPOLOGY_ROUTE_LINK_DEACTIVATED = 'topology_route_link_deactivated' # # tunnel event # ADDED_TUNNEL = "added_tunnel" REMOVED_TUNNEL = "removed_tunnel" INITIALIZED_TUNNEL = "initialized_tunnel" TUNNEL_UPDATE_PROPERTY_STATES = "tunnel_update_property_states" ADDED_HOST_DATAPATH_NETWORK = "added_host_datapath_network" ADDED_REMOTE_DATAPATH_NETWORK = "added_remote_datapath_network" ADDED_HOST_DATAPATH_SEGMENT = "added_host_datapath_segment" ADDED_REMOTE_DATAPATH_SEGMENT = "added_remote_datapath_segment" ADDED_HOST_DATAPATH_ROUTE_LINK = "added_host_datapath_route_link" ADDED_REMOTE_DATAPATH_ROUTE_LINK = "added_remote_datapath_route_link" REMOVED_HOST_DATAPATH_NETWORK = "removed_host_datapath_network" REMOVED_REMOTE_DATAPATH_NETWORK = "removed_remote_datapath_network" REMOVED_HOST_DATAPATH_SEGMENT = "removed_host_datapath_segment" REMOVED_REMOTE_DATAPATH_SEGMENT = "removed_remote_datapath_segment" REMOVED_HOST_DATAPATH_ROUTE_LINK = "removed_host_datapath_route_link" REMOVED_REMOTE_DATAPATH_ROUTE_LINK = "removed_remote_datapath_route_link" # # dns service # SERVICE_ADDED_DNS = "added_dns_service" SERVICE_REMOVED_DNS = "removed_dns_service" SERVICE_UPDATED_DNS = "updated_dns_service" # # dns record # ADDED_DNS_RECORD = "added_dns_record" REMOVED_DNS_RECORD = "removed_dns_record" # # Ip Retention Container Events: # IP_RETENTION_CONTAINER_INITIALIZED = 'ip_retention_container_initialized' IP_RETENTION_CONTAINER_UNLOAD_ITEM = 'ip_retention_container_unload_item' IP_RETENTION_CONTAINER_CREATED_ITEM = 'ip_retention_container_created_item' IP_RETENTION_CONTAINER_DELETED_ITEM = 'ip_retention_container_deleted_item' IP_RETENTION_CONTAINER_ADDED_IP_RETENTION = 'ip_retention_container_added_ip_retention' IP_RETENTION_CONTAINER_REMOVED_IP_RETENTION = 'ip_retention_container_removed_ip_retention' IP_RETENTION_CONTAINER_LEASE_TIME_EXPIRED = 'ip_retention_container_lease_time_expired' IP_RETENTION_CONTAINER_GRACE_TIME_EXPIRED = 'ip_retention_container_grace_time_expired' end end
lgpl-3.0
qian256/HoloLensARToolKit
ARToolKitUWP/ARToolKitUWP/src/ARMarkerSquare.cpp
8515
/* * ARMarkerSquare.cpp * ARToolKitUWP * * This work is a modified version of the original "ARMarkerSquare.cpp" of * ARToolKit. The copyright and license information of ARToolKit is included * in this document as required by its GNU Lesser General Public License * version 3. * * This file is a part of ARToolKitUWP. * * ARToolKitUWP is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * ARToolKitUWP is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with ARToolKitUWP. If not, see <http://www.gnu.org/licenses/>. * * Copyright 2017 Long Qian * * Author: Long Qian * Contact: [email protected] * */ /* The original copyright information: *//* * ARMarkerSquare.cpp * ARToolKit5 * * This file is part of ARToolKit. * * ARToolKit is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * ARToolKit is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with ARToolKit. If not, see <http://www.gnu.org/licenses/>. * * As a special exception, the copyright holders of this library give you * permission to link this library with independent modules to produce an * executable, regardless of the license terms of these independent modules, and to * copy and distribute the resulting executable under terms of your choice, * provided that you also meet, for each linked independent module, the terms and * conditions of the license of that module. An independent module is a module * which is neither derived from nor based on this library. If you modify this * library, you may extend this exception to your version of the library, but you * are not obligated to do so. If you do not wish to do so, delete this exception * statement from your version. * * Copyright 2015 Daqri, LLC. * Copyright 2010-2015 ARToolworks, Inc. * * Author(s): Philip Lamb. * */ #include "pch.h" #include <ARMarkerSquare.h> #include <ARController.h> #ifndef MAX # define MAX(x,y) (x > y ? x : y) #endif ARMarkerSquare::ARMarkerSquare() : ARMarker(SINGLE), m_loaded(false), m_arPattHandle(NULL), m_cf(0.0f), m_cfMin(AR_CONFIDENCE_CUTOFF_DEFAULT), patt_id(-1), patt_type(-1), useContPoseEstimation(true) { } ARMarkerSquare::~ARMarkerSquare() { if (m_loaded) unload(); } bool ARMarkerSquare::unload() { if (m_loaded) { freePatterns(); if (patt_type == AR_PATTERN_TYPE_TEMPLATE && patt_id != -1) { if (m_arPattHandle) { arPattFree(m_arPattHandle, patt_id); m_arPattHandle = NULL; } } patt_id = patt_type = -1; m_cf = 0.0f; m_width = 0.0f; m_loaded = false; } return (true); } bool ARMarkerSquare::initWithPatternFile(const char* path, ARdouble width, ARPattHandle *arPattHandle) { // Ensure the pattern string is valid if (!path || !arPattHandle) return false; if (m_loaded) unload(); ARController::logv(AR_LOG_LEVEL_INFO, "Loading single AR marker from file '%s', width %f.", path, width); m_arPattHandle = arPattHandle; patt_id = arPattLoad(m_arPattHandle, path); if (patt_id < 0) { ARController::logv(AR_LOG_LEVEL_ERROR, "Error: unable to load single AR marker from file '%s'.", path); arPattHandle = NULL; return false; } patt_type = AR_PATTERN_TYPE_TEMPLATE; m_width = width; visible = visiblePrev = false; // An ARPattern to hold an image of the pattern for display to the user. allocatePatterns(1); patterns[0]->loadTemplate(patt_id, m_arPattHandle, (float)m_width); m_loaded = true; return true; } bool ARMarkerSquare::initWithPatternFromBuffer(const char* buffer, ARdouble width, ARPattHandle *arPattHandle) { // Ensure the pattern string is valid if (!buffer || !arPattHandle) return false; if (m_loaded) unload(); ARController::logv(AR_LOG_LEVEL_INFO, "Loading single AR marker from buffer, width %f.", width); m_arPattHandle = arPattHandle; patt_id = arPattLoadFromBuffer(m_arPattHandle, buffer); if (patt_id < 0) { ARController::logv(AR_LOG_LEVEL_ERROR, "Error: unable to load single AR marker from buffer."); return false; } patt_type = AR_PATTERN_TYPE_TEMPLATE; m_width = width; visible = visiblePrev = false; // An ARPattern to hold an image of the pattern for display to the user. allocatePatterns(1); patterns[0]->loadTemplate(patt_id, arPattHandle, (float)m_width); m_loaded = true; return true; } bool ARMarkerSquare::initWithBarcode(int barcodeID, ARdouble width) { if (barcodeID < 0) return false; if (m_loaded) unload(); ARController::logv(AR_LOG_LEVEL_INFO, "Adding single AR marker with barcode %d, width %f.", barcodeID, width); patt_id = barcodeID; patt_type = AR_PATTERN_TYPE_MATRIX; m_width = width; visible = visiblePrev = false; // An ARPattern to hold an image of the pattern for display to the user. allocatePatterns(1); patterns[0]->loadMatrix(patt_id, AR_MATRIX_CODE_3x3, (float)m_width); // FIXME: need to determine actual matrix code type. m_loaded = true; return true; } ARdouble ARMarkerSquare::getConfidence() { return (m_cf); } ARdouble ARMarkerSquare::getConfidenceCutoff() { return (m_cfMin); } void ARMarkerSquare::setConfidenceCutoff(ARdouble value) { if (value >= AR_CONFIDENCE_CUTOFF_DEFAULT && value <= 1.0f) { m_cfMin = value; } } bool ARMarkerSquare::updateWithDetectedMarkers(ARMarkerInfo* markerInfo, int markerNum, AR3DHandle *ar3DHandle) { ARController::logv(AR_LOG_LEVEL_DEBUG, "ARMarkerSquare::update(), id: %d\n", patt_id); if (patt_id < 0) return false; // Can't update if no pattern loaded visiblePrev = visible; if (markerInfo) { int k = -1; if (patt_type == AR_PATTERN_TYPE_TEMPLATE) { // Iterate over all detected markers. for (int j = 0; j < markerNum; j++) { if (patt_id == markerInfo[j].idPatt) { // The pattern of detected trapezoid matches marker[k]. if (k == -1) { if (markerInfo[j].cfPatt > m_cfMin) k = j; // Count as a match if match confidence exceeds cfMin. } else if (markerInfo[j].cfPatt > markerInfo[k].cfPatt) k = j; // Or if it exceeds match confidence of a different already matched trapezoid (i.e. assume only one instance of each marker). } } if (k != -1) { markerInfo[k].id = markerInfo[k].idPatt; markerInfo[k].cf = markerInfo[k].cfPatt; markerInfo[k].dir = markerInfo[k].dirPatt; } } else { for (int j = 0; j < markerNum; j++) { if (patt_id == markerInfo[j].idMatrix) { if (k == -1) { if (markerInfo[j].cfMatrix >= m_cfMin) k = j; // Count as a match if match confidence exceeds cfMin. } else if (markerInfo[j].cfMatrix > markerInfo[k].cfMatrix) k = j; // Or if it exceeds match confidence of a different already matched trapezoid (i.e. assume only one instance of each marker). } } if (k != -1) { markerInfo[k].id = markerInfo[k].idMatrix; markerInfo[k].cf = markerInfo[k].cfMatrix; markerInfo[k].dir = markerInfo[k].dirMatrix; } } // Consider marker visible if a match was found. if (k != -1) { visible = true; m_cf = markerInfo[k].cf; // If the model is visible, update its transformation matrix if (visiblePrev && useContPoseEstimation) { // If the marker was visible last time, use "cont" version of arGetTransMatSquare arGetTransMatSquareCont(ar3DHandle, &(markerInfo[k]), trans, m_width, trans); } else { // If the marker wasn't visible last time, use normal version of arGetTransMatSquare arGetTransMatSquare(ar3DHandle, &(markerInfo[k]), m_width, trans); } } else { visible = false; m_cf = 0.0f; } } else { visible = false; m_cf = 0.0f; } return (ARMarker::update()); // Parent class will finish update. }
lgpl-3.0
cnsoft/kbengine-cocos2dx
kbe/src/server/cellappmgr/cellappmgr_interface.hpp
3080
/* This source file is part of KBEngine For the latest info, see http://www.kbengine.org/ Copyright (c) 2008-2012 KBEngine. KBEngine is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. KBEngine is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with KBEngine. If not, see <http://www.gnu.org/licenses/>. */ #if defined(DEFINE_IN_INTERFACE) #undef __CELLAPPMGR_INTERFACE_H__ #endif #ifndef __CELLAPPMGR_INTERFACE_H__ #define __CELLAPPMGR_INTERFACE_H__ // common include #if defined(CELLAPPMGR) #include "cellappmgr.hpp" #endif #include "cellappmgr_interface_macros.hpp" #include "network/interface_defs.hpp" //#define NDEBUG // windows include #if KBE_PLATFORM == PLATFORM_WIN32 #else // linux include #endif namespace KBEngine{ /** BASEAPPMGRËùÓÐÏûÏ¢½Ó¿ÚÔڴ˶¨Òå */ NETWORK_INTERFACE_DECLARE_BEGIN(CellappmgrInterface) // ijapp×¢²á×Ô¼ºµÄ½Ó¿ÚµØÖ·µ½±¾app CELLAPPMGR_MESSAGE_DECLARE_ARGS10(onRegisterNewApp, MERCURY_VARIABLE_MESSAGE, int32, uid, std::string, username, int8, componentType, uint64, componentID, int8, globalorderID, int8, grouporderID, uint32, intaddr, uint16, intport, uint32, extaddr, uint16, extport) // ijappÖ÷¶¯ÇëÇólook¡£ CELLAPPMGR_MESSAGE_DECLARE_ARGS0(lookApp, MERCURY_FIXED_MESSAGE) // ij¸öappÇëÇó²é¿´¸Ãapp¸ºÔØ×´Ì¬¡£ CELLAPPMGR_MESSAGE_DECLARE_ARGS0(queryLoad, MERCURY_FIXED_MESSAGE) // ij¸öappÏò±¾app¸æÖª´¦Óڻ״̬¡£ CELLAPPMGR_MESSAGE_DECLARE_ARGS2(onAppActiveTick, MERCURY_FIXED_MESSAGE, COMPONENT_TYPE, componentType, COMPONENT_ID, componentID) // baseEntityÇëÇó´´½¨ÔÚÒ»¸öеÄspaceÖС£ CELLAPPMGR_MESSAGE_DECLARE_STREAM(reqCreateInNewSpace, MERCURY_VARIABLE_MESSAGE) // baseEntityÇëÇó»Ö¸´ÔÚÒ»¸öеÄspaceÖС£ CELLAPPMGR_MESSAGE_DECLARE_STREAM(reqRestoreSpaceInCell, MERCURY_VARIABLE_MESSAGE) // ÏûϢת·¢£¬ ÓÉij¸öappÏëͨ¹ý±¾app½«ÏûϢת·¢¸øÄ³¸öapp¡£ CELLAPPMGR_MESSAGE_DECLARE_STREAM(forwardMessage, MERCURY_VARIABLE_MESSAGE) // ÇëÇ󹨱շþÎñÆ÷ CELLAPPMGR_MESSAGE_DECLARE_STREAM(reqCloseServer, MERCURY_VARIABLE_MESSAGE) // ÇëÇó²éѯwatcherÊý¾Ý CELLAPPMGR_MESSAGE_DECLARE_STREAM(queryWatcher, MERCURY_VARIABLE_MESSAGE) // ¸üÐÂcellappÐÅÏ¢¡£ CELLAPPMGR_MESSAGE_DECLARE_ARGS2(updateCellapp, MERCURY_FIXED_MESSAGE, COMPONENT_ID, componentID, float, load) NETWORK_INTERFACE_DECLARE_END() #ifdef DEFINE_IN_INTERFACE #undef DEFINE_IN_INTERFACE #endif } #endif
lgpl-3.0
nightscape/JMathLib
src/jmathlibtests/toolbox/string/testStrncmp.java
1263
package jmathlibtests.toolbox.string; import jmathlib.tools.junit.framework.JMathLibTestCase; import junit.framework.Test; import junit.framework.TestSuite; public class testStrncmp extends JMathLibTestCase { public testStrncmp(String name) { super(name); } public static void main (String[] args) { junit.textui.TestRunner.run (suite()); } public static Test suite() { return new TestSuite(testStrncmp.class); } public void testStrcmpi01() { assertEvalScalarEquals("a=strncmp('abcdxxx','abcddd', 3);", "a", 1); } public void testStrcmpi02() { assertEvalScalarEquals("a=strncmp('abcDDD','abcDD', 3);", "a", 1); } public void testStrcmpi03() { assertEvalScalarEquals("a=strncmp('abxxxd','abcd', 3);", "a", 0); } public void testStrcmpi04() { assertEvalScalarEquals("a=strncmp('abc','abcdd', 3);", "a", 1); } public void testStrcmpi05() { assertEvalScalarEquals("a=strncmp('ab','abcd', 3);", "a", 0); } public void testStrcmpi06() { assertEvalScalarEquals("a=strncmpi('abcd','ab', 3);", "a", 0); } public void testStrcmpi07() { assertEvalScalarEquals("a=strncmp('abcd','abcXx', 3);", "a", 1); } }
lgpl-3.0
skuater/radare2
libr/cons/output.c
9697
/* radare - LGPL - Copyright 2009-2019 - pancake */ #include <r_cons.h> #include <r_util/r_assert.h> #define I r_cons_singleton () #if __WINDOWS__ static void __fill_tail(int cols, int lines) { lines++; if (lines > 0) { char white[1024]; cols = R_MIN (cols, sizeof (white)); memset (white, ' ', cols - 1); lines--; white[cols] = '\n'; while (lines-- > 0) { write (1, white, cols); } } } R_API void r_cons_w32_clear(void) { static HANDLE hStdout = NULL; static CONSOLE_SCREEN_BUFFER_INFO csbi; const COORD startCoords = { 0, 0 }; DWORD dummy; if (I->is_wine == 1) { write (1, "\033[0;0H\033[0m\033[2J", 6 + 4 + 4); } if (!hStdout) { hStdout = GetStdHandle (STD_OUTPUT_HANDLE); GetConsoleScreenBufferInfo (hStdout, &csbi); //GetConsoleWindowInfo (hStdout, &csbi); } FillConsoleOutputCharacter (hStdout, ' ', csbi.dwSize.X * csbi.dwSize.Y, startCoords, &dummy); FillConsoleOutputAttribute (hStdout, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY, csbi.dwSize.X * csbi.dwSize.Y, startCoords, &dummy); } R_API void r_cons_w32_gotoxy(int fd, int x, int y) { static HANDLE hStdout = NULL; static HANDLE hStderr = NULL; HANDLE *hConsole = fd == 1 ? &hStdout : &hStderr; COORD coord; coord.X = x; coord.Y = y; if (I->is_wine == 1) { write (fd, "\x1b[0;0H", 6); } if (!*hConsole) { *hConsole = GetStdHandle (fd == 1 ? STD_OUTPUT_HANDLE : STD_ERROR_HANDLE); } SetConsoleCursorPosition (*hConsole, coord); } static int wrapline(const char *s, int len) { int l = 0, n = 0; for (; n < len; ) { l = r_str_len_utf8char (s+n, (len-n)); n += l; } return n - (n > len)? l: 1; } // Dupe from canvas.c static int utf8len_fixed(const char *s, int n) { int i = 0, j = 0, fullwidths = 0; while (s[i] && n > 0) { if ((s[i] & 0xc0) != 0x80) { j++; if (r_str_char_fullwidth (s + i, n)) { fullwidths++; } } n--; i++; } return j + fullwidths; } static int bytes_utf8len(const char *s, int n) { int ret = 0; while (n > 0) { int sz = r_str_utf8_charsize (s); ret += sz; s += sz; n--; } return ret; } static int r_cons_w32_hprint(DWORD hdl, const ut8 *ptr, int len, bool vmode) { HANDLE hConsole = GetStdHandle (hdl); int fd = hdl == STD_OUTPUT_HANDLE ? 1 : 2; int esc = 0; int bg = 0, fg = 1|2|4|8; const ut8 *ptr_end, *str = ptr; int ret = 0; int inv = 0; int linelen = 0; int ll = 0; int raw_ll = 0; int lines, cols = r_cons_get_size (&lines); if (I->is_wine==-1) { I->is_wine = r_file_is_directory ("/proc")? 1: 0; } if (len < 0) { len = strlen ((const char *)ptr); } ptr_end = ptr + len; if (ptr && hConsole) for (; *ptr && ptr < ptr_end; ptr++) { if (ptr[0] == 0xa) { raw_ll = (size_t)(ptr - str); ll = utf8len_fixed (str, raw_ll); lines--; if (vmode && lines < 1) { break; } if (raw_ll < 1) { continue; } if (vmode) { /* only chop columns if necessary */ if (ll + linelen >= cols) { // chop line if too long ll = (cols - linelen) - 1; if (ll < 0) { continue; } } } if (ll > 0) { raw_ll = bytes_utf8len (str, ll, strlen (str)); write (fd, str, raw_ll); linelen += ll; } esc = 0; str = ptr + 1; if (vmode) { int wlen = cols - linelen; char white[1024]; if (wlen > 0 && wlen < sizeof (white)) { memset (white, ' ', sizeof (white)); write (fd, white, wlen-1); } } write (fd, "\n\r", 2); // reset colors for next line SetConsoleTextAttribute (hConsole, 1 | 2 | 4 | 8); linelen = 0; continue; } if (ptr[0] == 0x1b) { raw_ll = (size_t)(ptr - str); ll = utf8len_fixed (str, raw_ll); if (str[0] == '\n') { str++; ll--; if (vmode) { int wlen = cols - linelen - 1; char white[1024]; //wlen = 5; if (wlen > 0) { memset (white, ' ', sizeof (white)); write (fd, white, wlen); } } write (fd, "\n\r", 2); //write (fd, "\r\n", 2); //lines--; linelen = 0; } if (vmode) { if (linelen + ll >= cols) { // chop line if too long ll = (cols - linelen) - 1; if (ll > 0) { // fix utf8 len here ll = wrapline ((const char*)str, cols - linelen - 1); } } } if (ll > 0) { raw_ll = bytes_utf8len (str, ll, strlen (str)); write (fd, str, raw_ll); linelen += ll; } esc = 1; str = ptr + 1; continue; } if (esc == 1) { // \x1b[2J if (ptr[0] != '[') { eprintf ("Oops invalid escape char\n"); esc = 0; str = ptr + 1; continue; } esc = 2; continue; } else if (esc == 2) { const char *ptr2 = NULL; int x, y, i, state = 0; for (i = 0; ptr[i] && state >= 0; i++) { switch (state) { case 0: if (ptr[i] == ';') { y = atoi ((const char *)ptr); state = 1; ptr2 = (const char *)ptr+i+1; } else if (ptr[i] >='0' && ptr[i]<='9') { // ok } else { state = -1; // END FAIL } break; case 1: if (ptr[i]=='H') { x = atoi (ptr2); state = -2; // END OK } else if (ptr[i] >='0' && ptr[i]<='9') { // ok } else { state = -1; // END FAIL } break; } } if (state == -2) { r_cons_w32_gotoxy (fd, x, y); ptr += i; str = ptr; // + i-2; continue; } bool bright = false; if (ptr[0]=='0' && ptr[1] == ';' && ptr[2]=='0') { // \x1b[0;0H /** clear screen if gotoxy **/ if (vmode) { // fill row here __fill_tail (cols, lines); } r_cons_w32_gotoxy (fd, 0, 0); lines = 0; esc = 0; ptr += 3; str = ptr + 1; continue; } else if (ptr[0]=='2'&&ptr[1]=='J') { r_cons_w32_clear (); esc = 0; ptr = ptr + 1; str = ptr + 1; continue; } else if (ptr[0]=='0'&&(ptr[1]=='m' || ptr [1]=='K')) { SetConsoleTextAttribute (hConsole, 1|2|4|8); fg = 1|2|4|8; bg = 0; inv = 0; esc = 0; ptr++; str = ptr + 1; continue; // reset color } else if (ptr[0]=='2'&&ptr[1]=='7'&&ptr[2]=='m') { SetConsoleTextAttribute (hConsole, bg|fg); inv = 0; esc = 0; ptr = ptr + 2; str = ptr + 1; continue; // invert off } else if (ptr[0]=='7'&&ptr[1]=='m') { SetConsoleTextAttribute (hConsole, bg|fg|COMMON_LVB_REVERSE_VIDEO); inv = COMMON_LVB_REVERSE_VIDEO; esc = 0; ptr = ptr + 1; str = ptr + 1; continue; // invert } else if ((ptr[0] == '3' || (bright = ptr[0] == '9')) && (ptr[2] == 'm' || ptr[2] == ';')) { switch (ptr[1]) { case '0': // BLACK fg = 0; break; case '1': // RED fg = 4; break; case '2': // GREEN fg = 2; break; case '3': // YELLOW fg = 2|4; break; case '4': // BLUE fg = 1; break; case '5': // MAGENTA fg = 1|4; break; case '6': // CYAN fg = 1|2; break; case '7': // WHITE fg = 1|2|4; break; case '8': // ??? case '9': break; } if (bright) { fg |= 8; } SetConsoleTextAttribute (hConsole, bg|fg|inv); esc = 0; ptr = ptr + 2; str = ptr + 1; continue; } else if ((ptr[0] == '4' && ptr[2] == 'm') || (bright = ptr[0] == '1' && ptr[1] == '0' && ptr[3] == 'm')) { /* background color */ ut8 col = bright ? ptr[2] : ptr[1]; switch (col) { case '0': // BLACK bg = 0x0; break; case '1': // RED bg = 0x40; break; case '2': // GREEN bg = 0x20; break; case '3': // YELLOW bg = 0x20|0x40; break; case '4': // BLUE bg = 0x10; break; case '5': // MAGENTA bg = 0x10|0x40; break; case '6': // CYAN bg = 0x10|0x20; break; case '7': // WHITE bg = 0x10|0x20|0x40; break; case '8': // ??? case '9': break; } if (bright) { bg |= 0x80; } SetConsoleTextAttribute (hConsole, bg|fg|inv); esc = 0; ptr = ptr + (bright ? 3 : 2); str = ptr + 1; continue; } } ret++; } if (vmode) { /* fill partial line */ int wlen = cols - linelen - 1; if (wlen > 0) { char white[1024]; memset (white, ' ', sizeof (white)); write (fd, white, wlen); } /* fill tail */ __fill_tail (cols, lines); } else { int ll = (size_t)(ptr - str); if (ll > 0) { write (fd, str, ll); linelen += ll; } } return ret; } R_API int r_cons_w32_print(const ut8 *ptr, int len, bool vmode) { return r_cons_w32_hprint (STD_OUTPUT_HANDLE, ptr, len, vmode); } R_API int r_cons_win_vhprintf(DWORD hdl, bool vmode, const char *fmt, va_list ap) { va_list ap2; int ret = -1; FILE *con = hdl == STD_OUTPUT_HANDLE ? stdout : stderr; if (!strchr (fmt, '%')) { size_t len = strlen (fmt); if (I->ansicon) { return fwrite (fmt, 1, len, con); } return r_cons_w32_hprint (hdl, fmt, len, vmode); } va_copy (ap2, ap); int num_chars = vsnprintf (NULL, 0, fmt, ap2); num_chars++; char *buf = calloc (1, num_chars); if (buf) { (void)vsnprintf (buf, num_chars, fmt, ap); if (I->ansicon) { ret = fwrite (buf, 1, num_chars - 1, con); } else { ret = r_cons_w32_hprint (hdl, buf, num_chars - 1, vmode); } free (buf); } va_end (ap2); return ret; } R_API int r_cons_win_printf(bool vmode, const char *fmt, ...) { va_list ap; int ret; r_return_val_if_fail (fmt, -1); va_start (ap, fmt); ret = r_cons_win_vhprintf (STD_OUTPUT_HANDLE, vmode, fmt, ap); va_end (ap); return ret; } R_API int r_cons_win_eprintf(bool vmode, const char *fmt, ...) { va_list ap; int ret; r_return_val_if_fail (fmt, -1); va_start (ap, fmt); ret = r_cons_win_vhprintf (STD_ERROR_HANDLE, vmode, fmt, ap); va_end (ap); return ret; } #endif
lgpl-3.0
lunarray-org/model-descriptor
src/test/java/org/lunarray/model/descriptor/test/domain/SampleEntity18.java
2482
/* * Model Tools. * Copyright (C) 2013 Pal Hargitai ([email protected]) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.lunarray.model.descriptor.test.domain; import java.math.BigInteger; import java.util.Calendar; import org.lunarray.model.descriptor.presentation.RenderType; import org.lunarray.model.descriptor.presentation.annotations.PresentationHint; public class SampleEntity18 implements ModelMarker { private SampleEntity17 test01; private boolean test02; private BigInteger test03; private String test04; @PresentationHint(format = "ddmmyyyy") private Calendar test05; private SampleEnum01 test06; private SampleEntity01 test07; @PresentationHint(render = RenderType.RADIO) private SampleEnum01 test08; public SampleEntity17 getTest01() { return this.test01; } public BigInteger getTest03() { return this.test03; } public String getTest04() { return this.test04; } public Calendar getTest05() { return this.test05; } public SampleEnum01 getTest06() { return this.test06; } public SampleEntity01 getTest07() { return this.test07; } public SampleEnum01 getTest08() { return this.test08; } public boolean isTest02() { return this.test02; } public void setTest01(final SampleEntity17 test01) { this.test01 = test01; } public void setTest02(final boolean test02) { this.test02 = test02; } public void setTest03(final BigInteger test03) { this.test03 = test03; } public void setTest04(final String test04) { this.test04 = test04; } public void setTest05(final Calendar test05) { this.test05 = test05; } public void setTest06(final SampleEnum01 test06) { this.test06 = test06; } public void setTest07(final SampleEntity01 test07) { this.test07 = test07; } public void setTest08(final SampleEnum01 test08) { this.test08 = test08; } }
lgpl-3.0
passcod/My-Manga
res/chapter.css
271
section { text-align: center; border-bottom: 1em solid black; margin-bottom: 3em; padding-bottom: 1em; } section img { margin: 1em auto; border: 1em solid white; } section h1 { font-size: 3em; margin-bottom: 0.5em; } section h2 { font-size: 2em; }
unlicense
jezzsantos/ssauthz
src/Services.Interfaces/DataContracts/IUserAccount.gen.cs
1722
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ using Common; namespace Services.DataContracts { /// <summary> /// Defines the UserAccount DTO /// </summary> public partial interface IUserAccount : IHasIdentifier { /// <summary> /// Gets or sets the forenames /// </summary> System.String Forenames { get; set; } /// <summary> /// Gets or sets the surname /// </summary> System.String Surname { get; set; } /// <summary> /// Gets or sets the email /// </summary> System.String Email { get; set; } /// <summary> /// Gets or sets the username /// </summary> System.String Username { get; set; } /// <summary> /// Gets or sets the passwordhash /// </summary> System.String PasswordHash { get; set; } /// <summary> /// Gets or sets the roles /// </summary> System.String Roles { get; set; } /// <summary> /// Gets or sets the mobilephone /// </summary> System.String MobilePhone { get; set; } /// <summary> /// Gets or sets the address /// </summary> DataContracts.Address Address { get; set; } /// <summary> /// Gets or sets the isregistered /// </summary> System.Boolean IsRegistered { get; set; } } }
unlicense
givanse/broccoli-babel-examples
es6-website/src/index.html
767
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>ES6 Today</title> <meta name="description" content="Using ES6 today with Broccoli and Babel"> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <style> body { border: 2px solid #9a9a9a; border-radius: 10px; padding: 6px; font-family: monospace; text-align: center; } .color { padding: 1rem; color: #fff; } </style> <body> <h1>ES6 Today</h1> <div id="info"></div> <hr> <div id="content"></div> <script src="//code.jquery.com/jquery-2.1.4.min.js"></script> <script src="js/my-app.js"></script> </body> </html>
unlicense
samuelskanberg/riksdagen-crawler
scraper.py
4168
#!/usr/bin/env python # -*- coding: utf-8 -*- from lxml import html import requests import csv, codecs, cStringIO import sys class Person: def __init__(self, party, name, email): self.party = party self.name = name self.email = email class UnicodeWriter: """ A CSV writer which will write rows to CSV file "f", which is encoded in the given encoding. """ def __init__(self, f, dialect=csv.excel, encoding="utf-8", **kwds): # Redirect output to a queue self.queue = cStringIO.StringIO() self.writer = csv.writer(self.queue, dialect=dialect, **kwds) self.stream = f self.encoder = codecs.getincrementalencoder(encoding)() def writerow(self, row): self.writer.writerow([s.encode("utf-8") for s in row]) # Fetch UTF-8 output from the queue ... data = self.queue.getvalue() data = data.decode("utf-8") # ... and reencode it into the target encoding data = self.encoder.encode(data) # write to the target stream self.stream.write(data) # empty queue self.queue.truncate(0) def writerows(self, rows): for row in rows: self.writerow(row) # For some very weird reason, party can contain utf-8 characters. But last_name can. Weird party_pages = { 'Socialdemokraterna': 'http://www.riksdagen.se/sv/ledamoter-partier/Socialdemokraterna/Ledamoter/', 'Moderaterna': 'http://www.riksdagen.se/sv/ledamoter-partier/Moderata-samlingspartiet/Ledamoter/', 'Sverigedemokraterna': 'http://www.riksdagen.se/sv/ledamoter-partier/Sverigedemokraterna/Ledamoter/', 'Miljopartiet': 'http://www.riksdagen.se/sv/ledamoter-partier/Miljopartiet-de-grona/Ledamoter/', 'Centerpartiet': 'http://www.riksdagen.se/sv/ledamoter-partier/Centerpartiet/Ledamoter/', 'Vansterpartiet': 'http://www.riksdagen.se/sv/ledamoter-partier/Vansterpartiet/Ledamoter/', 'Liberalerna': 'http://www.riksdagen.se/sv/ledamoter-partier/Folkpartiet/Ledamoter/', 'Kristdemokraterna': 'http://www.riksdagen.se/sv/ledamoter-partier/Kristdemokraterna/Ledamoter/', } if __name__ == "__main__": all_people = [] for party, party_page in party_pages.iteritems(): page = requests.get(party_page) tree = html.fromstring(page.text) # Only include "ledamöter", not "partisekreterare" and such since they don't have emails names = tree.xpath("//*[contains(@class, 'large-12 columns alphabetical component-fellows-list')]//a[contains(@class, 'fellow-item-container')]/@href") root = "http://www.riksdagen.se" unique_name_list = [] for name in names: full_url = root + name if full_url not in unique_name_list: unique_name_list.append(full_url) print unique_name_list print "unique:" for name_url in unique_name_list: print name_url personal_page = requests.get(name_url) personal_tree = html.fromstring(personal_page.text) email_list = personal_tree.xpath("//*[contains(@class, 'scrambled-email')]/text()") email_scrambled = email_list[0] email = email_scrambled.replace(u'[på]', '@') print email name_list = personal_tree.xpath("//header/h1[contains(@class, 'biggest fellow-name')]/text()") name = name_list[0] name = name.replace("\n", "") name = name.replace("\r", "") name = name[:name.find("(")-1] name = name.strip() print name print "-----" person = Person(party, name, email) all_people.append(person) for person in all_people: print person.party + ", " + person.name + ", " + person.email with open('names.csv', 'wb') as csvfile: fieldnames = ['name', 'email', 'party'] writer = UnicodeWriter(csvfile) writer.writerow(fieldnames) for person in all_people: print person.party + ", " + person.name + ", " + person.email writer.writerow([person.name, person.email, person.party])
unlicense
NizarHafizulllah/pertanahan
application/modules/regis_kec/controllers/regis_kec.php
8314
<?php class regis_kec extends kecamatan_controller{ var $controller; function regis_kec(){ parent::__construct(); $this->controller = get_class($this); $this->load->model('regis_kec_model','dm'); $this->load->model("coremodel","cm"); //$this->load->helper("serviceurl"); } function index(){ $data_array=array(); $content = $this->load->view($this->controller."_view",$data_array,true); $this->set_subtitle("Registrasi Pertanahan"); $this->set_title("Kecamatan"); $this->set_content($content); $this->cetak(); } function get_data() { // show_array($userdata); $draw = $_REQUEST['draw']; // get the requested page $start = $_REQUEST['start']; $limit = $_REQUEST['length']; // get how many rows we want to have into the grid $sidx = isset($_REQUEST['order'][0]['column'])?$_REQUEST['order'][0]['column']:0; // get index row - i.e. user click to sort $sord = isset($_REQUEST['order'][0]['dir'])?$_REQUEST['order'][0]['dir']:"asc"; // get the direction if(!$sidx) $sidx =1; $nama_pemilik = $_REQUEST['columns'][1]['search']['value']; $userdata = $this->session->userdata('kec_login'); $desa = $userdata['kecamatan']; // $this->db->where('desa_tanah', $desa); // order[0][column] $req_param = array ( "sort_by" => $sidx, "sort_direction" => $sord, "limit" => null, "nama_pemilik" => $nama_pemilik, "desa" => $desa ); $row = $this->dm->data($req_param)->result_array(); $count = count($row); $req_param['limit'] = array( 'start' => $start, 'end' => $limit ); $result = $this->dm->data($req_param)->result_array(); $arr_data = array(); foreach($result as $row) : $id = $row['id']; if ($row['status'] == 1) { $action = "<div class='btn-group'> <button type='button' class='btn btn-danger'>Pending</button> <button type='button' class='btn btn-danger dropdown-toggle' data-toggle='dropdown'> <span class='caret'></span> <span class='sr-only'>Toggle Dropdown</span> </button> <ul class='dropdown-menu' role='menu'> <li><a href='#' onclick=\"approved('$id')\" ><i class='fa fa-trash'></i> Menyetujui</a></li> <li><a href='regis_kec/detail?id=$id'><i class='fa fa-edit'></i> Detail</a></li> </ul> </div>"; }else { $action = '<div class="btn-group"> <button type="button" class="btn btn-success">Selsai</button> <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> </ul> </div>'; } $row['tgl_register_desa'] = flipdate($row['tgl_register_desa']); $arr_data[] = array( $row['tgl_register_desa'], $row['no_register_desa'], $row['nama_pemilik'], $action, ); endforeach; $responce = array('draw' => $draw, // ($start==0)?1:$start, 'recordsTotal' => $count, 'recordsFiltered' => $count, 'data'=>$arr_data ); echo json_encode($responce); } function detail(){ $get = $this->input->get(); $id = $get['id']; $this->db->where('id',$id); $biro_jasa = $this->db->get('tanah'); $data = $biro_jasa->row_array(); $this->db->where('id', $id); $rs = $this->db->get('tanah'); $data = $rs->row_array(); extract($data); $this->db->where('id', $desa_tanah); $qr = $this->db->get('tiger_desa'); $rs = $qr->row_array(); $data['desa_tanah'] = $rs['desa']; $this->db->where('id', $kec_tanah); $qr = $this->db->get('tiger_kecamatan'); $rs = $qr->row_array(); $data['kec_tanah'] = $rs['kecamatan']; $this->db->where('id', $kab_tanah); $qr = $this->db->get('tiger_kota'); $rs = $qr->row_array(); $data['kab_tanah'] = $rs['kota']; $data['tgl_lhr_pemilik'] = flipdate($data['tgl_lhr_pemilik']); $data['tgl_pernyataan'] = flipdate($data['tgl_pernyataan']); $data['tgl_register_desa'] = flipdate($data['tgl_register_desa']); $userdata = $this->session->userdata('kec_login'); $this->db->where('kec_tanah', $userdata['kecamatan']); $this->db->where('status', 2); $rs = $this->db->get('tanah'); $data['no_data_kec'] = $rs->num_rows()+1; $data['arr_kecamatan'] = $this->cm->arr_dropdown3("tiger_kecamatan", "id", "kecamatan", "kecamatan", "id_kota", "19_5"); $data['action'] = 'update'; $content = $this->load->view("regis_kec_view_form_detail",$data,true); $this->set_subtitle(""); $this->set_title("Detail Registrasi Pertanahan"); $this->set_content($content); $this->cetak(); } function cek_no_reg($no_register_kec){ $this->db->where("no_register_kec",$no_register_kec); if(empty($no_register_kec)){ $this->form_validation->set_message('cek_no_reg', ' No Registrasi Harus Di Isi'); return false; } if($this->db->get("tanah")->num_rows() > 0) { $this->form_validation->set_message('cek_no_reg', ' Sudah Ada Data Dengan No Registrasi Ini'); return false; } } function update(){ $post = $this->input->post(); $this->load->library('form_validation'); $this->form_validation->set_rules('tgl_register_kec','Tanggal Registrasi','required'); $userdata = $this->session->userdata('kec_login'); $post['no_register_kec'] = $post['no_data_kec'].''.$userdata['format_reg']; $post['no_ket_kec'] = $post['no_data_kec'].''.$userdata['format_ket']; $this->form_validation->set_message('required', ' %s Harus diisi '); $this->form_validation->set_error_delimiters('', '<br>'); //show_array($data); if($this->form_validation->run() == TRUE ) { $userdata = $this->session->userdata('kec_login'); $post['camat'] = $userdata['nama_camat']; $post['jabatan_camat'] = $userdata['jabatan_camat']; $post['nip_camat'] = $userdata['nip_camat']; $post['tgl_register_kec'] = flipdate($post['tgl_register_kec']); $post['status'] = 2; $this->db->where("id",$post['id']); $res = $this->db->update('tanah', $post); if($res){ $arr = array("error"=>false,'message'=>"Register Kecamatan Berhasil"); } else { $arr = array("error"=>true,'message'=>"Register Kecamatan Gagal"); } } else { $arr = array("error"=>true,'message'=>validation_errors()); } echo json_encode($arr); } function approved(){ $get = $this->input->post(); $id = $get['id']; $userdata = $this->session->userdata(); $this->db->where("id",$post['id']); $res = $this->db->update('tanah', $post); if($res){ $arr = array("error"=>false,"message"=>$this->db->last_query()." DATA BERASIL DI SETUJUI"); } else { $arr = array("error"=>true,"message"=>"DATA GAGAL DISETUJUI ".mysql_error()); } //redirect('sa_birojasa_user'); echo json_encode($arr); } } ?>
unlicense
Edisonangela/manager
app/models/concerns/collectable.rb
379
module Collectable extend ActiveSupport::Concern included do attr_readonly :collectors_count has_many :collections, as: :target has_many :collectors, through: :collections, class_name: 'User', source: :user end def collected_by?(current_user) return false if current_user.nil? !!collections.where(user_id: current_user.id).first end end
unlicense
cc14514/hq6
hq-api/src/main/java/org/hyperic/hq/api/model/ResourceConfig.java
3524
package org.hyperic.hq.api.model; import java.io.Serializable; import java.util.Collection; import java.util.HashMap; import java.util.Map; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.hyperic.hq.api.model.common.MapPropertiesAdapter; import org.hyperic.hq.api.model.common.PropertyListMapAdapter; @XmlRootElement(namespace=RestApiConstants.SCHEMA_NAMESPACE) @XmlType(name="ResourceConfigType", namespace=RestApiConstants.SCHEMA_NAMESPACE) public class ResourceConfig implements Serializable{ private static final long serialVersionUID = 8233944180632888593L; private String resourceID; private Map<String,String> mapProps ; private Map<String,PropertyList> mapListProps; public ResourceConfig() {}//EOM public ResourceConfig(final String resourceID, final Map<String,String> mapProps, final Map<String,PropertyList> mapListProps) { this.resourceID = resourceID ; this.mapProps = mapProps ; this.mapListProps = mapListProps ; }//EOM public final void setResourceID(final String resourceID) { this.resourceID = resourceID ; }//EOM public final String getResourceID() { return this.resourceID ; }//EOM public final void setMapProps(final Map<String,String> configValues) { this.mapProps= configValues ; }//EOM @XmlJavaTypeAdapter(MapPropertiesAdapter.class) public final Map<String,String> getMapProps() { return this.mapProps ; }//EOM @XmlJavaTypeAdapter(PropertyListMapAdapter.class) public Map<String,PropertyList> getMapListProps() { return mapListProps; } public void setMapListProps(Map<String,PropertyList> mapListProps) { this.mapListProps = mapListProps; } /** * Adds properties to the given key if it already exists, * otherwise adds the key with the given properties list * @param key * @param properties Values to add to the Property list */ public void putMapListProps(String key, Collection<ConfigurationValue> properties) { if (null == this.mapListProps) { this.mapListProps = new HashMap<String, PropertyList>(); } if (mapListProps.containsKey(key)) { mapListProps.get(key).addAll(properties); } else { mapListProps.put(key, new PropertyList(properties)); } } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((resourceID == null) ? 0 : resourceID.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ResourceConfig other = (ResourceConfig) obj; if (resourceID == null) { if (other.resourceID != null) return false; } else if (!resourceID.equals(other.resourceID)) return false; return true; } @Override public String toString() { final StringBuilder builder = new StringBuilder() ; return this.toString(builder, "").toString() ; }//EOM public final StringBuilder toString(final StringBuilder builder, final String indentation) { return builder.append(indentation).append("ResourceConfig [resourceID=").append(resourceID).append("\n").append(indentation).append(", mapProps="). append(mapProps.toString().replaceAll(",", "\n"+indentation + " ")).append("]") ; }//EOM }//EOC
unlicense
pythonpatterns/patterns
p0171.py
323
import matplotlib.pyplot as plt import numpy as np n = 50 x = np.random.randn(n) y = x * np.random.randn(n) fig, ax = plt.subplots(2, figsize=(6, 6)) ax[0].scatter(x, y, s=50) sizes = (np.random.randn(n) * 8) ** 2 ax[1].scatter(x, y, s=sizes) fig.show() """( ![Plot](/assets/img/pp/patterns/p0171_1.png "output") )"""
unlicense
Yury191/brownstonetutors
GroupInvitations/apps.py
144
from django.apps import AppConfig class GroupInvitationsConfig(AppConfig): name = 'GroupInvitations' verbose_name = 'Group Invitations'
unlicense
AdrianPT/Eureka-PLC
src/PLCv4/Models/ApplicationRoleListViewModel.cs
369
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace PLCv4.Models { public class ApplicationRoleListViewModel { public string Id { get; set; } public string RoleName { get; set; } public string Description { get; set; } public int NumberOfUsers { get; set; } } }
unlicense
XihuLai/Points
README.md
210
# Points record some common usage of c/c++/lua/java tech in code directory record usefull link or content in doc directory libcurl.zip, package with scripts to build curl with c-ares and ssl used on android
unlicense
rick-li/quiz
src/main/webapp/admin/app/templates/login.html
838
<div class="login-popout"> <div class="container"> <div class="row"> <div class=""> <!-- <h1 class="text-center login-title">Must Login</h1> --> <div class="account-wall"> <img class="profile-img" src="./img/user.png" alt=""> <form class="form-signin form" ng-submit="login()" ng-controller="LoginCtrl"> <input type="text" class="form-control" placeholder="用户名" ng-model="username" required autofocus> <input type="password" class="form-control" placeholder="密码" ng-model="password" required> <button class="btn btn-lg btn-primary btn-block" type="submit"> 登录 </button> </form> </div> </div> </div> </div> </div>
unlicense
kuakman/app-start-pipeline
scripts/html.js
526
/** * Gulp Task HTML * @author kuakman <[email protected]> **/ let fs = require('fs-extra'); let _ = require('underscore'); let spawnSync = require('child_process').spawnSync; module.exports = function(package, args) { return () => { return spawnSync('./node_modules/.bin/pug', [ '--path', './src/html', '--out', './dist', '--obj', `\'${JSON.stringify(_.pick(package, 'name', 'version', 'profile'))}\'`, '--pretty', './src/html' ], { cwd: process.cwd(), stdio: 'inherit', shell: true }); }; };
unlicense
picodotdev/blog-ejemplos
EntitiesId/src/test/java/io/github/picodotdev/blogbitix/entitiesid/domain/product/ProductRepositoryTest.java
1085
package io.github.picodotdev.blogbitix.entitiesid.domain.product; import io.github.picodotdev.blogbitix.entitiesid.DefaultPostgresContainer; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ContextConfiguration; import java.math.BigDecimal; import java.time.LocalDate; import java.util.UUID; import static org.junit.jupiter.api.Assertions.assertEquals; @SpringBootTest @ContextConfiguration(initializers = { DefaultPostgresContainer.Initializer.class }) public class ProductRepositoryTest { @Autowired private ProductRepository productRepository; @Test void testRepositoryGenerateId() { // given ProductId id = productRepository.generateId(); Product product = new Product(id, "Raspberry Pi", LocalDate.now(), new BigDecimal("80.0"), 10); // and productRepository.save(product); // then assertEquals(product, productRepository.findById(id).get()); } }
unlicense
ConflictingTheories/scripts
javascript/lib/nSplit.js
2366
function nSplit(msg, n) { let expr = new RegExp(".{1," + n + "}", "g"); let presplit = msg.match(expr); let twoSplit = presplit.map((x) => { if (x.length != n) { let i = 0; let ret = ""; while (i < n - x.length) { ret += " "; i++ }; return x + ret; } else return x; }); return twoSplit; } function backSwap(msg) { let newBw = ""; let newFw = ""; let newArr = []; for (let fw = 0; fw < msg.length; fw++) { let bw = msg.length - (fw + 1); let myFw = msg[fw]; let myBw = msg[bw]; newFw = myBw[0] + myFw.slice(1); newBw = myFw[0] + myBw.slice(1); newArr[fw] = newFw; newArr[bw] = newBw; // console.log(fw, newFw, bw, newBw); if (bw <= fw) break; } return newArr; } function encode(msg, n) { let comp_msg = msg.split(' ').join(''); let split_msg = nSplit(comp_msg, n); return backSwap(split_msg); } // var myLoveMsg = "Dear Jade, I love you so much! Lets go on adventures & make memories."; var myLoveMsg = "Ja de Il ov ey ou so mu ch .Y ou ar ew on de rf ul an da ma zi ng in so ma ny wa ys .Y ou ar et ru ly sp ec ia lt om eb ee b an dl ho pe we ca ns up po rt ea ch ot he ra nd be tw ee nu sd oa ma zi ng th in gs ❤"; // var rvLoveMsg = "se ir oa ee eI ao &e eo us nm vc a! oe gs to Ln hd ue ot ur ys vm lk ,m dm Jr ae D."; var rvLoveMsg = ".a ge il tv ny zu mo ou sh nY eu tr bw nn re hf ol cn ea ra pi ug nn co wa py ha ds aY bu er et ou ly ip ec sa lt rm eb ae o, .n yl wo ne me sa is np zo mt da ah ut re da od ee aw oe .u cd ma sa oi eg oh In ds J❤"; var nwsMsg = myLoveMsg.split(' ').join(''); var nwsrvMsg = rvLoveMsg.split(' ').join(''); var myCode = nSplit(myLoveMsg, 2); var nwsCode = nSplit(nwsMsg, 2); var nwsrvCode = nSplit(nwsrvMsg, 2); var bsmyCode = backSwap(myCode); var bsmynwsCode = backSwap(nwsCode); var bsmynwsrvCode = backSwap(nwsrvCode); console.log(myLoveMsg); // console.log(myCode.join(' ')); // console.log(bsmyCode.join(' ')); console.log(nwsCode.join(' ')); console.log(bsmynwsCode.join(' ')); console.log(nwsrvCode.join(' ')); console.log(bsmynwsrvCode.join(' ')); // let myText = encode("Hello Dawg, HEllo DAWGDJLKSAD", 2); // console.log(myText.join(' '));
unlicense
WolfGaming/NutraloafProject
README.md
293
# NutraloafProject ## Description A project for a class involving deciding on food to provide for customers each day. ## How to Run Install NodeJS and the NPM package manager on your system Run npm install Run the start.sh script (windows might have to copy the line inside the script file).
unlicense
ALanHua/Object-C
day17/代理设计模式练习及规范/LinkHome.h
194
// // LinkHome.h // day17 // // Created by yhp on 16/2/2. // Copyright © 2016年 YouHuaPei. All rights reserved. // #import <Foundation/Foundation.h> @interface LinkHome : NSObject @end
unlicense
bitmovin/bitmovin-python
bitmovin/resources/enums/h264_trellis.py
144
import enum class H264Trellis(enum.Enum): DISABLED = 'DISABLED' ENABLED_FINAL_MB = 'ENABLED_FINAL_MB' ENABLED_ALL = 'ENABLED_ALL'
unlicense
sandycho/spring-security-module
spring_security_module/src/main/webapp/WEB-INF/views/html/hello.html
403
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <title>Insert title here</title> </head> <body> <h1>Title : ${title}</h1> <h1>Message : ${message}</h1> <div class="container bg_white"> <div id="nombre_usuario"> <span id="dir" th:text="${title}">Se rellena con lo que contenga tittle</span> <span id="dir" th:text="${message}">el mensaje va aquí</span> </div> </div> </body> </html>
unlicense
mamu7211/VisioPomAnalyzer
PomExplorer/PomExplorer/VisioDrawing/PomPainter.cs
5331
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Visio = Microsoft.Office.Interop.Visio; using VisCellIndicies = Microsoft.Office.Interop.Visio.VisCellIndices; using VisSectionIndices = Microsoft.Office.Interop.Visio.VisSectionIndices; using VisRowIndicies = Microsoft.Office.Interop.Visio.VisRowIndices; using VisSLO = Microsoft.Office.Interop.Visio.VisSpatialRelationCodes; using PomExplorer.PomAccess; using System.IO; namespace PomExplorer.VisioDrawing { class PomPainter { private Dictionary<String, Visio.Shape> _artifactsAlreadyDrawn = new Dictionary<string, Visio.Shape>(); private Visio.Page _page; private double _rectWidth = 2.5; private double _rectHeight = 0.5; private double _spacing = 0.5; private double _centerHor; private double _centerVert; private double _pageTop; private String _fontSize = "9pt"; private MavenProject _project; private PomPainterStyle _style; public PomPainter(Visio.Page page, MavenProject project) { _page = page; _centerHor = _page.PageSheet.CellsU["PageWidth"].ResultIU / 2; _pageTop = _page.PageSheet.CellsU["PageHeight"].ResultIU; _centerVert = _pageTop / 2; _project = project; } public void Paint(PomPainterStyle style) { _style = style; if (_project.Shape == null) { _project.Shape = CreateRect(_project, 0, _rectHeight * 2); } DrawProject(_project); } public void DrawProject(MavenProject project) { if (_style == PomPainterStyle.PomDependencies || _style == PomPainterStyle.PomHierarchy) DrawDependencies(project); if (_style == PomPainterStyle.PomHierarchy) DrawModules(project); } private void DrawModules(MavenProject project) { foreach (var module in project.Modules) { if (module.Project.Shape == null) { module.Project.Shape = CreateRect(module.Project, _centerHor, _centerVert); } Connect(project.Shape, module.Project.Shape); DrawProject(module.Project); } } private void DrawDependencies(MavenProject project) { foreach (var dependency in project.Dependencies) { var rectDependency = CreateRect(dependency, _centerHor, _centerVert); Connect(project.Shape, rectDependency); } } private double getBottom(Visio.Shape shape) { return shape.CellsU["PinY"].ResultIU+shape.CellsU["Height"].ResultIU; } private Visio.Shape CreateRect(Artifact artifact, double offsetX, double offsetY) { if (!_artifactsAlreadyDrawn.ContainsKey(artifact.ArtifactKey)) { _artifactsAlreadyDrawn.Add(artifact.ArtifactKey, CreateRect(artifact.ArtifactSummary, offsetX, offsetY, _rectWidth, _rectHeight)); } return _artifactsAlreadyDrawn[artifact.ArtifactKey]; } private Visio.Shape CreateRect(String name, double offsetX, double offsetY, double width, double height) { Visio.Page page = Globals.ThisAddIn.Application.ActivePage; var rect = page.DrawRectangle(_centerHor + offsetX - width / 2, _pageTop - offsetY, _centerHor + offsetX + width / 2, _pageTop - offsetY - height); var textFont = rect.CellsSRC[(short)VisSectionIndices.visSectionCharacter, 0, (short)VisCellIndicies.visCharacterSize]; var textAlign = rect.CellsSRC[(short)VisSectionIndices.visSectionCharacter, 0, (short)VisCellIndicies.visHorzAlign]; textFont.FormulaU = _fontSize; rect.Text = name; textAlign.FormulaU = "0"; return rect; } private void Connect(Visio.Shape shape1, Visio.Shape shape2) { var cn = _page.Application.ConnectorToolDataObject; var connector = _page.Drop(cn, 3, 3) as Visio.Shape; // https://msdn.microsoft.com/en-us/library/office/ff767991.aspx var anchorShape1 = shape1.CellsSRC[1, 1, 0]; var beginConnector = connector.CellsU["BeginX"]; var anchorShape2 = shape2.CellsSRC[1, 1, 0]; var endConnector = connector.CellsU["EndX"]; beginConnector.GlueTo(anchorShape1); endConnector.GlueTo(anchorShape2); connector.CellsSRC[(short)VisSectionIndices.visSectionObject, (short)VisRowIndicies.visRowLine, (short)VisCellIndicies.visLineEndArrow].FormulaU = "13"; connector.CellsSRC[(short)VisSectionIndices.visSectionObject, (short)VisRowIndicies.visRowShapeLayout, (short)VisCellIndicies.visLineEndArrow].FormulaU = "1"; connector.CellsSRC[(short)VisSectionIndices.visSectionObject, (short)VisRowIndicies.visRowShapeLayout, (short)VisCellIndicies.visSLOLineRouteExt].FormulaU = "16"; } } }
unlicense
agguro/linux-assembly-programming
Examples/networking/readme.md
346
### Network examples #### httpserver home made http server based on [asmutils](http://asm.sourceforge.net/asmutils.html), listens to localhost:4444 #### sockettest program to test connectivity with localhost:4444 #### sslsocket program to get the web contents of a https site libssl-dev libgcrypt20-dev are required for sslsocket example
unlicense
maikodaraine/EnlightenmentUbuntu
bindings/elev8/data/javascript/radio.js
2132
#!/usr/local/bin/elev8 var EXPAND_BOTH = { x : 1.0, y : 1.0 }; var FILL_BOTH = { x : -1.0, y : -1.0 }; var logo_icon = elm.Icon ({ image : elm.datadir + "data/images/logo_small.png", }); var logo_icon_unscaled = elm.Icon ({ image : elm.datadir + "data/images/logo_small.png", resizable_up : false, resizable_down : false, }); var desc = elm.Window({ title : "Radios demo", elements : { the_background : elm.Background ({ weight : EXPAND_BOTH, resize : true, }), radio_box : elm.Box ({ weight : EXPAND_BOTH, resize : true, elements : { sized_radio_icon : elm.Radio ({ icon : logo_icon, label : "Icon sized to radio", weight : EXPAND_BOTH, align : { x : 1.0, y : 0.5 }, value : 0, group : "rdg", }), unscaled_radio_icon : elm.Radio ({ icon : logo_icon_unscaled, label : "Icon no scale", weight : EXPAND_BOTH, align : { x : 1.0, y : 0.5 }, value : 1, group : "rdg", }), label_only_radio : elm.Radio ({ label : "Label Only", value : 2, group : "rdg", }), disabled_radio : elm.Radio ({ label : "Disabled", enabled : false, value : 3, group : "rdg", }), icon_radio : elm.Radio ({ icon : logo_icon_unscaled, value : 4, group : "rdg", }), disabled_icon_radio : elm.Radio ({ enabled : false, icon : logo_icon_unscaled, value : 5, group : "rdg", }), }, }), }, }); var win = elm.realise(desc);
unlicense
varpeti/Suli
Angol/Előad/p009.cpp
399
#include <iostream> int main(int argc, char const *argv[]) { int x = 1; int y = 9; printf("0. x:%i y:%i\n",x,y); //newbie int s; s = x; x = y; y = s; printf("1. x:%i y:%i\n",x,y); //hacker x=x+y; y=x-y; x=x-y; printf("2. x:%i y:%i\n",x,y); //pro hacker x^=y; y^=x; x^=y; printf("3. x:%i y:%i\n",x,y); return 0; }
unlicense
madeso/script-test
external/angelscript_2.35.0/docs/manual/angelscript_8h.html
237923
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.18"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>AngelScript: angelscript.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function() { init_search(); }); /* @license-end */ </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="aslogo_small.png"/></td> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">AngelScript </div> </td> <td> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.18 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('angelscript_8h.html',''); initResizable(); }); /* @license-end */ </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> &#124; <a href="#define-members">Macros</a> &#124; <a href="#typedef-members">Typedefs</a> &#124; <a href="#enum-members">Enumerations</a> &#124; <a href="#func-members">Functions</a> &#124; <a href="#var-members">Variables</a> </div> <div class="headertitle"> <div class="title">angelscript.h File Reference</div> </div> </div><!--header--> <div class="contents"> <p>The API definition for AngelScript. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> Classes</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structas_s_func_ptr.html">asSFuncPtr</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Represents a function or method pointer. <a href="structas_s_func_ptr.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structas_s_message_info.html">asSMessageInfo</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Represents a compiler message. <a href="structas_s_message_info.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_script_engine.html">asIScriptEngine</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The engine interface. <a href="classas_i_script_engine.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_string_factory.html">asIStringFactory</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface for the string factory. <a href="classas_i_string_factory.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_thread_manager.html">asIThreadManager</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface for the thread manager. <a href="classas_i_thread_manager.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_script_module.html">asIScriptModule</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface to the script modules. <a href="classas_i_script_module.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_script_context.html">asIScriptContext</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface to the virtual machine. <a href="classas_i_script_context.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_script_generic.html">asIScriptGeneric</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface for the generic calling convention. <a href="classas_i_script_generic.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_script_object.html">asIScriptObject</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface for an instance of a script object. <a href="classas_i_script_object.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_type_info.html">asITypeInfo</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface for describing types This interface is used to describe the types in the script engine. <a href="classas_i_type_info.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_script_function.html">asIScriptFunction</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface for a script function description. <a href="classas_i_script_function.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_binary_stream.html">asIBinaryStream</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A binary stream interface. <a href="classas_i_binary_stream.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_lockable_shared_bool.html">asILockableSharedBool</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A lockable shared boolean. <a href="classas_i_lockable_shared_bool.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structas_s_v_m_registers.html">asSVMRegisters</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A struct with registers from the VM sent to a JIT compiled function. <a href="structas_s_v_m_registers.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classas_i_j_i_t_compiler.html">asIJITCompiler</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface that AS use to interact with the JIT compiler. <a href="classas_i_j_i_t_compiler.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structas_s_b_c_info.html">asSBCInfo</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Information on a bytecode instruction. <a href="structas_s_b_c_info.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> Macros</h2></td></tr> <tr class="memitem:a99c6b8b0882e45e5d0b2ed19f6f7a157"><td class="memItemLeft" align="right" valign="top"><a id="a99c6b8b0882e45e5d0b2ed19f6f7a157"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a99c6b8b0882e45e5d0b2ed19f6f7a157">ANGELSCRIPT_VERSION</a>&#160;&#160;&#160;23500</td></tr> <tr class="memdesc:a99c6b8b0882e45e5d0b2ed19f6f7a157"><td class="mdescLeft">&#160;</td><td class="mdescRight">Version 2.35.0. <br /></td></tr> <tr class="separator:a99c6b8b0882e45e5d0b2ed19f6f7a157"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a9e0eb27a2013e875a33565dd3fe76f79"><td class="memItemLeft" align="right" valign="top"><a id="a9e0eb27a2013e875a33565dd3fe76f79"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a9e0eb27a2013e875a33565dd3fe76f79">AS_CAN_USE_CPP11</a>&#160;&#160;&#160;1</td></tr> <tr class="memdesc:a9e0eb27a2013e875a33565dd3fe76f79"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro is defined if the compiler supports the C++11 feature set. <br /></td></tr> <tr class="separator:a9e0eb27a2013e875a33565dd3fe76f79"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a717eccea17214bc1eb64bb9789c4915a"><td class="memItemLeft" align="right" valign="top"><a id="a717eccea17214bc1eb64bb9789c4915a"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a717eccea17214bc1eb64bb9789c4915a">asOFFSET</a>(s, m)&#160;&#160;&#160;((int)(size_t)(&amp;reinterpret_cast&lt;s*&gt;(100000)-&gt;m)-100000)</td></tr> <tr class="memdesc:a717eccea17214bc1eb64bb9789c4915a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the offset of an attribute in a struct. <br /></td></tr> <tr class="separator:a717eccea17214bc1eb64bb9789c4915a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a78f8f2c7f1c88b12e74a5ac47b4184ae"><td class="memItemLeft" align="right" valign="top"><a id="a78f8f2c7f1c88b12e74a5ac47b4184ae"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a78f8f2c7f1c88b12e74a5ac47b4184ae">asFUNCTION</a>(f)&#160;&#160;&#160;asFunctionPtr(f)</td></tr> <tr class="memdesc:a78f8f2c7f1c88b12e74a5ac47b4184ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an <a class="el" href="structas_s_func_ptr.html" title="Represents a function or method pointer.">asSFuncPtr</a> representing the function specified by the name. <br /></td></tr> <tr class="separator:a78f8f2c7f1c88b12e74a5ac47b4184ae"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a153aee5a6228913a469b6e6867e54efb"><td class="memItemLeft" align="right" valign="top"><a id="a153aee5a6228913a469b6e6867e54efb"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a153aee5a6228913a469b6e6867e54efb">asFUNCTIONPR</a>(f, p, r)&#160;&#160;&#160;asFunctionPtr(reinterpret_cast&lt;void (*)()&gt;(static_cast&lt;r (*)p&gt;(f)))</td></tr> <tr class="memdesc:a153aee5a6228913a469b6e6867e54efb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an <a class="el" href="structas_s_func_ptr.html" title="Represents a function or method pointer.">asSFuncPtr</a> representing the function specified by the name, parameter list, and return type. <br /></td></tr> <tr class="separator:a153aee5a6228913a469b6e6867e54efb"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a7345e6b3afabec24efd0ff77886d49a6"><td class="memItemLeft" align="right" valign="top"><a id="a7345e6b3afabec24efd0ff77886d49a6"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a7345e6b3afabec24efd0ff77886d49a6">asMETHOD</a>(c, m)&#160;&#160;&#160;asSMethodPtr&lt;sizeof(void (c::*)())&gt;::Convert((void (c::*)())(&amp;c::m))</td></tr> <tr class="memdesc:a7345e6b3afabec24efd0ff77886d49a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an <a class="el" href="structas_s_func_ptr.html" title="Represents a function or method pointer.">asSFuncPtr</a> representing the class method specified by class and method name. <br /></td></tr> <tr class="separator:a7345e6b3afabec24efd0ff77886d49a6"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ac45ccb5854326cce38d721e2c00f1563"><td class="memItemLeft" align="right" valign="top"><a id="ac45ccb5854326cce38d721e2c00f1563"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#ac45ccb5854326cce38d721e2c00f1563">asMETHODPR</a>(c, m, p, r)&#160;&#160;&#160;asSMethodPtr&lt;sizeof(void (c::*)())&gt;::Convert(AS_METHOD_AMBIGUITY_CAST(r (c::*)p)(&amp;c::m))</td></tr> <tr class="memdesc:ac45ccb5854326cce38d721e2c00f1563"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an <a class="el" href="structas_s_func_ptr.html" title="Represents a function or method pointer.">asSFuncPtr</a> representing the class method specified by class, method name, parameter list, return type. <br /></td></tr> <tr class="separator:ac45ccb5854326cce38d721e2c00f1563"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a6412a04ba6b2737922fdb2d8f822f51c"><td class="memItemLeft" align="right" valign="top"><a id="a6412a04ba6b2737922fdb2d8f822f51c"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a></td></tr> <tr class="memdesc:a6412a04ba6b2737922fdb2d8f822f51c"><td class="mdescLeft">&#160;</td><td class="mdescRight">A define that specifies how the function should be imported. <br /></td></tr> <tr class="separator:a6412a04ba6b2737922fdb2d8f822f51c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a7b3dbfcc3928ddd853a4ee53cbc13b69"><td class="memItemLeft" align="right" valign="top"><a id="a7b3dbfcc3928ddd853a4ee53cbc13b69"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a7b3dbfcc3928ddd853a4ee53cbc13b69">asBC_DWORDARG</a>(x)&#160;&#160;&#160;(*(((<a class="el" href="angelscript_8h.html#a5428f0c940201e5f3bbb28304aeb81bc">asDWORD</a>*)x)+1))</td></tr> <tr class="memdesc:a7b3dbfcc3928ddd853a4ee53cbc13b69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to access the first DWORD argument in the bytecode instruction. <br /></td></tr> <tr class="separator:a7b3dbfcc3928ddd853a4ee53cbc13b69"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a290586f7a153d5e8717b01680262b667"><td class="memItemLeft" align="right" valign="top"><a id="a290586f7a153d5e8717b01680262b667"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a290586f7a153d5e8717b01680262b667">asBC_INTARG</a>(x)&#160;&#160;&#160;(*(int*)(((<a class="el" href="angelscript_8h.html#a5428f0c940201e5f3bbb28304aeb81bc">asDWORD</a>*)x)+1))</td></tr> <tr class="memdesc:a290586f7a153d5e8717b01680262b667"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to access the first 32bit integer argument in the bytecode instruction. <br /></td></tr> <tr class="separator:a290586f7a153d5e8717b01680262b667"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a92e1437ea399e8c545e15bffd651f45f"><td class="memItemLeft" align="right" valign="top"><a id="a92e1437ea399e8c545e15bffd651f45f"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a92e1437ea399e8c545e15bffd651f45f">asBC_QWORDARG</a>(x)&#160;&#160;&#160;(*(<a class="el" href="angelscript_8h.html#a10aea5de212e440ffd6ec8fc0b17563d">asQWORD</a>*)(((<a class="el" href="angelscript_8h.html#a5428f0c940201e5f3bbb28304aeb81bc">asDWORD</a>*)x)+1))</td></tr> <tr class="memdesc:a92e1437ea399e8c545e15bffd651f45f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to access the first QWORD argument in the bytecode instruction. <br /></td></tr> <tr class="separator:a92e1437ea399e8c545e15bffd651f45f"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a0183edd413564ff4897eb4a2473d01f6"><td class="memItemLeft" align="right" valign="top"><a id="a0183edd413564ff4897eb4a2473d01f6"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a0183edd413564ff4897eb4a2473d01f6">asBC_FLOATARG</a>(x)&#160;&#160;&#160;(*(float*)(((<a class="el" href="angelscript_8h.html#a5428f0c940201e5f3bbb28304aeb81bc">asDWORD</a>*)x)+1))</td></tr> <tr class="memdesc:a0183edd413564ff4897eb4a2473d01f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to access the first float argument in the bytecode instruction. <br /></td></tr> <tr class="separator:a0183edd413564ff4897eb4a2473d01f6"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:aac9eb586274fc44bb1b838d833963996"><td class="memItemLeft" align="right" valign="top"><a id="aac9eb586274fc44bb1b838d833963996"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#aac9eb586274fc44bb1b838d833963996">asBC_PTRARG</a>(x)&#160;&#160;&#160;(*(<a class="el" href="angelscript_8h.html#a76fc6994aba7ff6c685a62c273c057e3">asPWORD</a>*)(((<a class="el" href="angelscript_8h.html#a5428f0c940201e5f3bbb28304aeb81bc">asDWORD</a>*)x)+1))</td></tr> <tr class="memdesc:aac9eb586274fc44bb1b838d833963996"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to access the first pointer argument in the bytecode instruction. <br /></td></tr> <tr class="separator:aac9eb586274fc44bb1b838d833963996"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a942798ec89a8ac96550523d80570c703"><td class="memItemLeft" align="right" valign="top"><a id="a942798ec89a8ac96550523d80570c703"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a942798ec89a8ac96550523d80570c703">asBC_WORDARG0</a>(x)&#160;&#160;&#160;(*(((<a class="el" href="angelscript_8h.html#a340da175136fbe283932fa3c3442cea0">asWORD</a>*)x)+1))</td></tr> <tr class="memdesc:a942798ec89a8ac96550523d80570c703"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to access the first WORD argument in the bytecode instruction. <br /></td></tr> <tr class="separator:a942798ec89a8ac96550523d80570c703"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a0a704bf4db31deda2a69d3216312618c"><td class="memItemLeft" align="right" valign="top"><a id="a0a704bf4db31deda2a69d3216312618c"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a0a704bf4db31deda2a69d3216312618c">asBC_WORDARG1</a>(x)&#160;&#160;&#160;(*(((<a class="el" href="angelscript_8h.html#a340da175136fbe283932fa3c3442cea0">asWORD</a>*)x)+2))</td></tr> <tr class="memdesc:a0a704bf4db31deda2a69d3216312618c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to access the second WORD argument in the bytecode instruction. <br /></td></tr> <tr class="separator:a0a704bf4db31deda2a69d3216312618c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a2287157faea7f6d32b316c17e0858ddf"><td class="memItemLeft" align="right" valign="top"><a id="a2287157faea7f6d32b316c17e0858ddf"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a2287157faea7f6d32b316c17e0858ddf">asBC_SWORDARG0</a>(x)&#160;&#160;&#160;(*(((short*)x)+1))</td></tr> <tr class="memdesc:a2287157faea7f6d32b316c17e0858ddf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to access the first signed WORD argument in the bytecode instruction. <br /></td></tr> <tr class="separator:a2287157faea7f6d32b316c17e0858ddf"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a92601565873cf5d29a6876c2638d7fec"><td class="memItemLeft" align="right" valign="top"><a id="a92601565873cf5d29a6876c2638d7fec"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a92601565873cf5d29a6876c2638d7fec">asBC_SWORDARG1</a>(x)&#160;&#160;&#160;(*(((short*)x)+2))</td></tr> <tr class="memdesc:a92601565873cf5d29a6876c2638d7fec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to access the second signed WORD argument in the bytecode instruction. <br /></td></tr> <tr class="separator:a92601565873cf5d29a6876c2638d7fec"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a698449bbbe369b8a479fb0dd82c9b18e"><td class="memItemLeft" align="right" valign="top"><a id="a698449bbbe369b8a479fb0dd82c9b18e"></a> #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a698449bbbe369b8a479fb0dd82c9b18e">asBC_SWORDARG2</a>(x)&#160;&#160;&#160;(*(((short*)x)+3))</td></tr> <tr class="memdesc:a698449bbbe369b8a479fb0dd82c9b18e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to access the third signed WORD argument in the bytecode instruction. <br /></td></tr> <tr class="separator:a698449bbbe369b8a479fb0dd82c9b18e"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> Typedefs</h2></td></tr> <tr class="memitem:a2b6922ec0cb3785c6c2328afa7bd9a9b"><td class="memItemLeft" align="right" valign="top"><a id="a2b6922ec0cb3785c6c2328afa7bd9a9b"></a> typedef signed char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a2b6922ec0cb3785c6c2328afa7bd9a9b">asINT8</a></td></tr> <tr class="memdesc:a2b6922ec0cb3785c6c2328afa7bd9a9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">8 bit signed integer <br /></td></tr> <tr class="separator:a2b6922ec0cb3785c6c2328afa7bd9a9b"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:afd9f62d6b3a975d02b22432f7a923f83"><td class="memItemLeft" align="right" valign="top"><a id="afd9f62d6b3a975d02b22432f7a923f83"></a> typedef signed short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#afd9f62d6b3a975d02b22432f7a923f83">asINT16</a></td></tr> <tr class="memdesc:afd9f62d6b3a975d02b22432f7a923f83"><td class="mdescLeft">&#160;</td><td class="mdescRight">16 bit signed integer <br /></td></tr> <tr class="separator:afd9f62d6b3a975d02b22432f7a923f83"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a48b3da7121b3abb56bff63b3beb0df63"><td class="memItemLeft" align="right" valign="top"><a id="a48b3da7121b3abb56bff63b3beb0df63"></a> typedef unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a48b3da7121b3abb56bff63b3beb0df63">asBYTE</a></td></tr> <tr class="memdesc:a48b3da7121b3abb56bff63b3beb0df63"><td class="mdescLeft">&#160;</td><td class="mdescRight">8 bit unsigned integer <br /></td></tr> <tr class="separator:a48b3da7121b3abb56bff63b3beb0df63"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a340da175136fbe283932fa3c3442cea0"><td class="memItemLeft" align="right" valign="top"><a id="a340da175136fbe283932fa3c3442cea0"></a> typedef unsigned short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a340da175136fbe283932fa3c3442cea0">asWORD</a></td></tr> <tr class="memdesc:a340da175136fbe283932fa3c3442cea0"><td class="mdescLeft">&#160;</td><td class="mdescRight">16 bit unsigned integer <br /></td></tr> <tr class="separator:a340da175136fbe283932fa3c3442cea0"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ac8186f029686800b7ce36bde4a55c815"><td class="memItemLeft" align="right" valign="top"><a id="ac8186f029686800b7ce36bde4a55c815"></a> typedef unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#ac8186f029686800b7ce36bde4a55c815">asUINT</a></td></tr> <tr class="memdesc:ac8186f029686800b7ce36bde4a55c815"><td class="mdescLeft">&#160;</td><td class="mdescRight">32 bit unsigned integer <br /></td></tr> <tr class="separator:ac8186f029686800b7ce36bde4a55c815"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a76fc6994aba7ff6c685a62c273c057e3"><td class="memItemLeft" align="right" valign="top"><a id="a76fc6994aba7ff6c685a62c273c057e3"></a> typedef uintptr_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a76fc6994aba7ff6c685a62c273c057e3">asPWORD</a></td></tr> <tr class="memdesc:a76fc6994aba7ff6c685a62c273c057e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsigned integer with the size of a pointer. <br /></td></tr> <tr class="separator:a76fc6994aba7ff6c685a62c273c057e3"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a5428f0c940201e5f3bbb28304aeb81bc"><td class="memItemLeft" align="right" valign="top"><a id="a5428f0c940201e5f3bbb28304aeb81bc"></a> typedef unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a5428f0c940201e5f3bbb28304aeb81bc">asDWORD</a></td></tr> <tr class="memdesc:a5428f0c940201e5f3bbb28304aeb81bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">32 bit unsigned integer <br /></td></tr> <tr class="separator:a5428f0c940201e5f3bbb28304aeb81bc"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a10aea5de212e440ffd6ec8fc0b17563d"><td class="memItemLeft" align="right" valign="top"><a id="a10aea5de212e440ffd6ec8fc0b17563d"></a> typedef unsigned __int64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a10aea5de212e440ffd6ec8fc0b17563d">asQWORD</a></td></tr> <tr class="memdesc:a10aea5de212e440ffd6ec8fc0b17563d"><td class="mdescLeft">&#160;</td><td class="mdescRight">64 bit unsigned integer <br /></td></tr> <tr class="separator:a10aea5de212e440ffd6ec8fc0b17563d"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:aa8044b56ee56e2350b06f1e7207b43df"><td class="memItemLeft" align="right" valign="top"><a id="aa8044b56ee56e2350b06f1e7207b43df"></a> typedef __int64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#aa8044b56ee56e2350b06f1e7207b43df">asINT64</a></td></tr> <tr class="memdesc:aa8044b56ee56e2350b06f1e7207b43df"><td class="mdescLeft">&#160;</td><td class="mdescRight">64 bit integer <br /></td></tr> <tr class="separator:aa8044b56ee56e2350b06f1e7207b43df"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ac69a827822c73771cd972bff270cefc7"><td class="memItemLeft" align="right" valign="top"><a id="ac69a827822c73771cd972bff270cefc7"></a> typedef void *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#ac69a827822c73771cd972bff270cefc7">asALLOCFUNC_t</a>) (size_t)</td></tr> <tr class="memdesc:ac69a827822c73771cd972bff270cefc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the custom memory allocation function. <br /></td></tr> <tr class="separator:ac69a827822c73771cd972bff270cefc7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:adeecc934971e695fc4441a47694860fb"><td class="memItemLeft" align="right" valign="top"><a id="adeecc934971e695fc4441a47694860fb"></a> typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#adeecc934971e695fc4441a47694860fb">asFREEFUNC_t</a>) (void *)</td></tr> <tr class="memdesc:adeecc934971e695fc4441a47694860fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the custom memory deallocation function. <br /></td></tr> <tr class="separator:adeecc934971e695fc4441a47694860fb"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:aa3dd561bcccb3d5e4966966d7eb2715c"><td class="memItemLeft" align="right" valign="top"><a id="aa3dd561bcccb3d5e4966966d7eb2715c"></a> typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#aa3dd561bcccb3d5e4966966d7eb2715c">asCLEANENGINEFUNC_t</a>) (<a class="el" href="classas_i_script_engine.html">asIScriptEngine</a> *)</td></tr> <tr class="memdesc:aa3dd561bcccb3d5e4966966d7eb2715c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the engine cleanup callback function. <br /></td></tr> <tr class="separator:aa3dd561bcccb3d5e4966966d7eb2715c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a5a01d6871440c3b6261da54a8308c452"><td class="memItemLeft" align="right" valign="top"><a id="a5a01d6871440c3b6261da54a8308c452"></a> typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a5a01d6871440c3b6261da54a8308c452">asCLEANMODULEFUNC_t</a>) (<a class="el" href="classas_i_script_module.html">asIScriptModule</a> *)</td></tr> <tr class="memdesc:a5a01d6871440c3b6261da54a8308c452"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the module cleanup callback function. <br /></td></tr> <tr class="separator:a5a01d6871440c3b6261da54a8308c452"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a761b892984e5af51e0f6e37c27dfadb6"><td class="memItemLeft" align="right" valign="top"><a id="a761b892984e5af51e0f6e37c27dfadb6"></a> typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a761b892984e5af51e0f6e37c27dfadb6">asCLEANCONTEXTFUNC_t</a>) (<a class="el" href="classas_i_script_context.html">asIScriptContext</a> *)</td></tr> <tr class="memdesc:a761b892984e5af51e0f6e37c27dfadb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the context cleanup callback function. <br /></td></tr> <tr class="separator:a761b892984e5af51e0f6e37c27dfadb6"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a6c0fcc7fee72733c9feb03c0bbf8f5d6"><td class="memItemLeft" align="right" valign="top"><a id="a6c0fcc7fee72733c9feb03c0bbf8f5d6"></a> typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a6c0fcc7fee72733c9feb03c0bbf8f5d6">asCLEANFUNCTIONFUNC_t</a>) (<a class="el" href="classas_i_script_function.html">asIScriptFunction</a> *)</td></tr> <tr class="memdesc:a6c0fcc7fee72733c9feb03c0bbf8f5d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the function cleanup callback function. <br /></td></tr> <tr class="separator:a6c0fcc7fee72733c9feb03c0bbf8f5d6"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:aca9bfb1e5a93426df269bd10d88e5cb3"><td class="memItemLeft" align="right" valign="top"><a id="aca9bfb1e5a93426df269bd10d88e5cb3"></a> typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#aca9bfb1e5a93426df269bd10d88e5cb3">asCLEANTYPEINFOFUNC_t</a>) (<a class="el" href="classas_i_type_info.html">asITypeInfo</a> *)</td></tr> <tr class="memdesc:aca9bfb1e5a93426df269bd10d88e5cb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the type info cleanup callback function. <br /></td></tr> <tr class="separator:aca9bfb1e5a93426df269bd10d88e5cb3"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ab89ff127aa05aef3793646b377e9c724"><td class="memItemLeft" align="right" valign="top"><a id="ab89ff127aa05aef3793646b377e9c724"></a> typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#ab89ff127aa05aef3793646b377e9c724">asCLEANSCRIPTOBJECTFUNC_t</a>) (<a class="el" href="classas_i_script_object.html">asIScriptObject</a> *)</td></tr> <tr class="memdesc:ab89ff127aa05aef3793646b377e9c724"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the script object cleanup callback function. <br /></td></tr> <tr class="separator:ab89ff127aa05aef3793646b377e9c724"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a2925360becae92319e68abb23a61fd56"><td class="memItemLeft" align="right" valign="top"><a id="a2925360becae92319e68abb23a61fd56"></a> typedef <a class="el" href="classas_i_script_context.html">asIScriptContext</a> *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a2925360becae92319e68abb23a61fd56">asREQUESTCONTEXTFUNC_t</a>) (<a class="el" href="classas_i_script_engine.html">asIScriptEngine</a> *, void *)</td></tr> <tr class="memdesc:a2925360becae92319e68abb23a61fd56"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the request context callback. <br /></td></tr> <tr class="separator:a2925360becae92319e68abb23a61fd56"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a3ffcfca5bd3be4f4c633408a6b209476"><td class="memItemLeft" align="right" valign="top"><a id="a3ffcfca5bd3be4f4c633408a6b209476"></a> typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a3ffcfca5bd3be4f4c633408a6b209476">asRETURNCONTEXTFUNC_t</a>) (<a class="el" href="classas_i_script_engine.html">asIScriptEngine</a> *, <a class="el" href="classas_i_script_context.html">asIScriptContext</a> *, void *)</td></tr> <tr class="memdesc:a3ffcfca5bd3be4f4c633408a6b209476"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the return context callback. <br /></td></tr> <tr class="separator:a3ffcfca5bd3be4f4c633408a6b209476"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ad39eb868abeebf44bb67fd3965f8bc5f"><td class="memItemLeft" align="right" valign="top"><a id="ad39eb868abeebf44bb67fd3965f8bc5f"></a> typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#ad39eb868abeebf44bb67fd3965f8bc5f">asCIRCULARREFFUNC_t</a>) (<a class="el" href="classas_i_type_info.html">asITypeInfo</a> *, const void *, void *)</td></tr> <tr class="memdesc:ad39eb868abeebf44bb67fd3965f8bc5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature for the callback used when detecting a circular reference in garbage. <br /></td></tr> <tr class="separator:ad39eb868abeebf44bb67fd3965f8bc5f"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:af9d3986a33c1bda5c4f82a7aaa0dfeeb"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#af9d3986a33c1bda5c4f82a7aaa0dfeeb">asJITFunction</a>) (<a class="el" href="structas_s_v_m_registers.html">asSVMRegisters</a> *registers, <a class="el" href="angelscript_8h.html#a76fc6994aba7ff6c685a62c273c057e3">asPWORD</a> jitArg)</td></tr> <tr class="memdesc:af9d3986a33c1bda5c4f82a7aaa0dfeeb"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function signature of a JIT compiled function. <a href="angelscript_8h.html#af9d3986a33c1bda5c4f82a7aaa0dfeeb">More...</a><br /></td></tr> <tr class="separator:af9d3986a33c1bda5c4f82a7aaa0dfeeb"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> Enumerations</h2></td></tr> <tr class="memitem:a6e2a1647f02f2c5da931bab09e860f54"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54">asERetCodes</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a0bf59062f03c90599e66a87275f37854">asSUCCESS</a> = 0, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54ac265666b65474ec2848d93201a5bc8c8">asERROR</a> = -1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54aa818a5cf319a2b2da155554d33cc91b4">asCONTEXT_ACTIVE</a> = -2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54aaca0bfc695713c03655328bf0e2ff814">asCONTEXT_NOT_FINISHED</a> = -3, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a82940f46469cd8cee7b00b346611658c">asCONTEXT_NOT_PREPARED</a> = -4, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a04e0f0b1ea30eacff3b4a6dddf2060b8">asINVALID_ARG</a> = -5, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54ad021afee96a6ef28423c2d37d3430eed">asNO_FUNCTION</a> = -6, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a93ccbf6a4f741cb8c0c7ef3fae4c4084">asNOT_SUPPORTED</a> = -7, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a85a932230d1622bcb5ec341d25db7775">asINVALID_NAME</a> = -8, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a0210997973bc0b74288a2041757f2763">asNAME_TAKEN</a> = -9, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54ab25fab2dbf4379d7a95a800b765287e4">asINVALID_DECLARATION</a> = -10, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54aa9b05e66771b2af2e7d14d32701a6015">asINVALID_OBJECT</a> = -11, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a4af648067b42f433f0b1d7141f6e487c">asINVALID_TYPE</a> = -12, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a8025c1eca773e41db5f3102ae3c41690">asALREADY_REGISTERED</a> = -13, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54acb8338c55edbf8c27e2eb0b2505a0773">asMULTIPLE_FUNCTIONS</a> = -14, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a4cf88b5ffb76ebe34cb57d4d983bae79">asNO_MODULE</a> = -15, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54aa465751329c2a7315318f609b1c271d4">asNO_GLOBAL_VAR</a> = -16, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a7416ebaf18f32e180595fb366a072754">asINVALID_CONFIGURATION</a> = -17, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a87279b314ed35fc9a6bff9e7cb05eb73">asINVALID_INTERFACE</a> = -18, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a412d2352693e848f46ccdd93c8d047e4">asCANT_BIND_ALL_FUNCTIONS</a> = -19, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54ab11ea721572e02e63498b681105fe8cc">asLOWER_ARRAY_DIMENSION_NOT_REGISTERED</a> = -20, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54ace5f5b97f2832c2f3aed3bb47ac1e486">asWRONG_CONFIG_GROUP</a> = -21, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54ae38f8f5613a631df20d2cc105aafc612">asCONFIG_GROUP_IS_IN_USE</a> = -22, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a5cd00c005a05345d8967021ebaae51f8">asILLEGAL_BEHAVIOUR_FOR_TYPE</a> = -23, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a2774780aba35e11f224f8c0bd0937207">asWRONG_CALLING_CONV</a> = -24, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54abbab3f809b0eeea2c331e5239be517c1">asBUILD_IN_PROGRESS</a> = -25, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a539a1fcf3f48feaaf7c0776c88123430">asINIT_GLOBAL_VARS_FAILED</a> = -26, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54a9a5232a5c1028cd729a744f592387059">asOUT_OF_MEMORY</a> = -27, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54af1e13f62c802e525a94722429575a345">asMODULE_IS_IN_USE</a> = -28 <br /> }</td></tr> <tr class="memdesc:a6e2a1647f02f2c5da931bab09e860f54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return codes. <a href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54">More...</a><br /></td></tr> <tr class="separator:a6e2a1647f02f2c5da931bab09e860f54"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a53c2e8a74ade77c928316396394ebe0f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0f">asEEngineProp</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa8facaf887921a6b26e5a1f06e01ec37a">asEP_ALLOW_UNSAFE_REFERENCES</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa6159294272e4d20dd4b35359a25f3ac6">asEP_OPTIMIZE_BYTECODE</a> = 2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fabf1577418b716c92f0a85be3e2617243">asEP_COPY_SCRIPT_SECTIONS</a> = 3, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa1ab4c8f8734f0d90bee4005afd810f83">asEP_MAX_STACK_SIZE</a> = 4, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa6dc1c33f9227c66f18fc0f95a0c798b2">asEP_USE_CHARACTER_LITERALS</a> = 5, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa218fdf7e181bf9ee0498112f5a87c415">asEP_ALLOW_MULTILINE_STRINGS</a> = 6, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa77c3747503489ca122aa61276dae3c1f">asEP_ALLOW_IMPLICIT_HANDLE_TYPES</a> = 7, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa73b396e4ea6376f0962d19add962bd91">asEP_BUILD_WITHOUT_LINE_CUES</a> = 8, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0facac241d97facce4eaf9e5b0ca40dfcf1">asEP_INIT_GLOBAL_VARS_AFTER_BUILD</a> = 9, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa90adb1e54ce0217235545941daa2dccd">asEP_REQUIRE_ENUM_SCOPE</a> = 10, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa02405d96a12b81aa816986b22bf752c2">asEP_SCRIPT_SCANNER</a> = 11, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa7ff74f4afa490b55839daaf217cf898c">asEP_INCLUDE_JIT_INSTRUCTIONS</a> = 12, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fab6daa2ae0c712da7f6f16d698305fba1">asEP_STRING_ENCODING</a> = 13, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0facc694c9d52274a113262ebf5984f20ad">asEP_PROPERTY_ACCESSOR_MODE</a> = 14, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa530e8d9576f94a258446c5fb9b7bd7a5">asEP_EXPAND_DEF_ARRAY_TO_TMPL</a> = 15, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa9b5d1d8ff5143a6a77dfd18143d87c7d">asEP_AUTO_GARBAGE_COLLECT</a> = 16, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fab81c81f4fdeb616dd6487da48a0c3456">asEP_DISALLOW_GLOBAL_VARS</a> = 17, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa6d80b60995ad046918b2376d7d79f2af">asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT</a> = 18, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fadd96da828860b5de2352de07c2456633">asEP_COMPILER_WARNINGS</a> = 19, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa563bec877e91b0646c47197b2ae7ac0c">asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE</a> = 20, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa9c876445c7d138ad096705fc18f311d1">asEP_ALTER_SYNTAX_NAMED_ARGS</a> = 21, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fae6af9c6963372e11c6da873868f594cd">asEP_DISABLE_INTEGER_DIVISION</a> = 22, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fabed7d49670612ec27227210021926692">asEP_DISALLOW_EMPTY_LIST_ELEMENTS</a> = 23, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0faa6f88a81f5706542acb94f3c470ac3f3">asEP_PRIVATE_PROP_AS_PROTECTED</a> = 24, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa651f1843c922a61ccee5c81fac58e4d1">asEP_ALLOW_UNICODE_IDENTIFIERS</a> = 25, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa9658b61d2368cc84fe816c817444e0ba">asEP_HEREDOC_TRIM_MODE</a> = 26, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fab441e1bdd7488bbe8f6dfa9c6b80e4fc">asEP_MAX_NESTED_CALLS</a> = 27, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa58fa0f29330923b24ab795e7c6ada52e">asEP_GENERIC_CALL_MODE</a> = 28, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa6d74b8325be718ace661484f1e8e7fb1">asEP_INIT_STACK_SIZE</a> = 29, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0faabb0261a40d98af8a0f6d38c2150a4e8">asEP_INIT_CALL_STACK_SIZE</a> = 30, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fa4d8ec81a881162a1f0689b56ba864346">asEP_MAX_CALL_STACK_SIZE</a> = 31 <br /> }</td></tr> <tr class="memdesc:a53c2e8a74ade77c928316396394ebe0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Engine properties. <a href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0f">More...</a><br /></td></tr> <tr class="separator:a53c2e8a74ade77c928316396394ebe0f"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a3ec92ea3c4762e44c2df788ceccdd1e4"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4">asECallConvTypes</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4a68ae43cc91cdfc3fa4590c9e6164e4f4">asCALL_CDECL</a> = 0, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4a138a08e8363ebc695636dfe987674e2e">asCALL_STDCALL</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4aa241a0c1deedaa2d55eb99a83829efad">asCALL_THISCALL_ASGLOBAL</a> = 2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4aea516c8742acc1edff6a43dc1bb09e96">asCALL_THISCALL</a> = 3, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4ac08652c72f1cc0dc81c37812fab0e253">asCALL_CDECL_OBJLAST</a> = 4, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4a7c3e88628c2722d0a103b411d4aceaa0">asCALL_CDECL_OBJFIRST</a> = 5, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4a750c26b6a6e0c9ccbb93078f532ef8ce">asCALL_GENERIC</a> = 6, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4a491f0ab2b66032a7b5541364f7f225b1">asCALL_THISCALL_OBJLAST</a> = 7, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4a613a388ed51315f6fce19f3824d6b17a">asCALL_THISCALL_OBJFIRST</a> = 8 <br /> }</td></tr> <tr class="memdesc:a3ec92ea3c4762e44c2df788ceccdd1e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calling conventions. <a href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4">More...</a><br /></td></tr> <tr class="separator:a3ec92ea3c4762e44c2df788ceccdd1e4"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a855d86fa9ee15b9f75e553ee376b5c7a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7a">asEObjTypeFlags</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa9450e038342b36c745858d2e5ae4b861">asOBJ_REF</a> = (1&lt;&lt;0), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa9fc16a8ac0f30f9ff9c6568e0b7be91d">asOBJ_VALUE</a> = (1&lt;&lt;1), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aacc1d835f9c25043cef86026a4aa6a470">asOBJ_GC</a> = (1&lt;&lt;2), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa8ad017ddf25368870b28ee0fba96495a">asOBJ_POD</a> = (1&lt;&lt;3), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aafa1830b02c4d51ddc25451e7ad1a7592">asOBJ_NOHANDLE</a> = (1&lt;&lt;4), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aaaae92b24e278976320f19d9dc75fe6db">asOBJ_SCOPED</a> = (1&lt;&lt;5), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aae8de459b4106475aa8766edb5b088aac">asOBJ_TEMPLATE</a> = (1&lt;&lt;6), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aadf3d1f30658e593f48c5c5f542ac4845">asOBJ_ASHANDLE</a> = (1&lt;&lt;7), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa103297ed88696a3c30ec12e533d902c3">asOBJ_APP_CLASS</a> = (1&lt;&lt;8), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aafd799c0705cee720a12ceb2838796024">asOBJ_APP_CLASS_CONSTRUCTOR</a> = (1&lt;&lt;9), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa18d80c6d92e4bc104955da393c966917">asOBJ_APP_CLASS_DESTRUCTOR</a> = (1&lt;&lt;10), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa6bf9b7bead31a40e7983538d8cecc3a4">asOBJ_APP_CLASS_ASSIGNMENT</a> = (1&lt;&lt;11), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa925febfd30b150d97a84b7c6ee6a8677">asOBJ_APP_CLASS_COPY_CONSTRUCTOR</a> = (1&lt;&lt;12), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa3eb67e27cc0fac7602934c1ff101aed5">asOBJ_APP_CLASS_C</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_CONSTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aaf15f3dd82be0e77e05ee0dbea096bb36">asOBJ_APP_CLASS_CD</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_CONSTRUCTOR + asOBJ_APP_CLASS_DESTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa90b85700943e8acb45316943f1951d04">asOBJ_APP_CLASS_CA</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_CONSTRUCTOR + asOBJ_APP_CLASS_ASSIGNMENT), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa619d54158a026e44bc5cffbb30794497">asOBJ_APP_CLASS_CK</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_CONSTRUCTOR + asOBJ_APP_CLASS_COPY_CONSTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aae13159e3ea949d52803cb635538a77f2">asOBJ_APP_CLASS_CDA</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_CONSTRUCTOR + asOBJ_APP_CLASS_DESTRUCTOR + asOBJ_APP_CLASS_ASSIGNMENT), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa2aa6c871af75df3852f52658bf284765">asOBJ_APP_CLASS_CDK</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_CONSTRUCTOR + asOBJ_APP_CLASS_DESTRUCTOR + asOBJ_APP_CLASS_COPY_CONSTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa97b022a4656cd9f351cd68c3903170b2">asOBJ_APP_CLASS_CAK</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_CONSTRUCTOR + asOBJ_APP_CLASS_ASSIGNMENT + asOBJ_APP_CLASS_COPY_CONSTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa12d358962300537f2b0da20106eb270c">asOBJ_APP_CLASS_CDAK</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_CONSTRUCTOR + asOBJ_APP_CLASS_DESTRUCTOR + asOBJ_APP_CLASS_ASSIGNMENT + asOBJ_APP_CLASS_COPY_CONSTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa30a67a6e98721d20d41b70fe961ff778">asOBJ_APP_CLASS_D</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_DESTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa38dd93911127894c5594474b4f06db1a">asOBJ_APP_CLASS_DA</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_DESTRUCTOR + asOBJ_APP_CLASS_ASSIGNMENT), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aab59c583cdcee2acce632f35db39139ae">asOBJ_APP_CLASS_DK</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_DESTRUCTOR + asOBJ_APP_CLASS_COPY_CONSTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa4b7a67f596940218860dc36ad9a4c66c">asOBJ_APP_CLASS_DAK</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_DESTRUCTOR + asOBJ_APP_CLASS_ASSIGNMENT + asOBJ_APP_CLASS_COPY_CONSTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aaf7389e5dc914e6ab121580430be6d88b">asOBJ_APP_CLASS_A</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_ASSIGNMENT), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa7b1ce7e4c79ba23fd26b01474d550173">asOBJ_APP_CLASS_AK</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_ASSIGNMENT + asOBJ_APP_CLASS_COPY_CONSTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa54236f54163e1df076bef918a862bd82">asOBJ_APP_CLASS_K</a> = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_COPY_CONSTRUCTOR), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa4d3329b6e6e223207da73c97f01533e7">asOBJ_APP_CLASS_MORE_CONSTRUCTORS</a> = (1&lt;&lt;31), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa539ede421d313b03464c88cb15f08c75">asOBJ_APP_PRIMITIVE</a> = (1&lt;&lt;13), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa7f7690d53d9bfc580e09ac7bf5868175">asOBJ_APP_FLOAT</a> = (1&lt;&lt;14), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa84a949c5cc6d4d872054baac1a085419">asOBJ_APP_ARRAY</a> = (1&lt;&lt;15), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa5b8de58c5be3145aaa3e54008fb2edeb">asOBJ_APP_CLASS_ALLINTS</a> = (1&lt;&lt;16), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa12afb6a0fa4ac874ce89815d3611823d">asOBJ_APP_CLASS_ALLFLOATS</a> = (1&lt;&lt;17), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aad8b12da6bf9cd48990d48c2ddf13584d">asOBJ_NOCOUNT</a> = (1&lt;&lt;18), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa244efb813b401b3a6d087c3add802818">asOBJ_APP_CLASS_ALIGN8</a> = (1&lt;&lt;19), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aaee8bfdbc6c2faac1938bba7e3a8b5ff2">asOBJ_IMPLICIT_HANDLE</a> = (1&lt;&lt;20), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa6570f63d7f13e7d945770228a82f1f12">asOBJ_MASK_VALID_FLAGS</a> = 0x801FFFFF, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aaa82f3ef517372e0db029f7dcfe7f88eb">asOBJ_SCRIPT_OBJECT</a> = (1&lt;&lt;21), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa92354ace56201eb543c818b6c0852baf">asOBJ_SHARED</a> = (1&lt;&lt;22), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa770f4012f052a1190edbac8931140091">asOBJ_NOINHERIT</a> = (1&lt;&lt;23), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa5b0f6287649893c8a04b43ed1f71a182">asOBJ_FUNCDEF</a> = (1&lt;&lt;24), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aaa1094cbe2986e60ba82da9dea38bba05">asOBJ_LIST_PATTERN</a> = (1&lt;&lt;25), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa018e73b8c343fe8f46fa7a7829643ff9">asOBJ_ENUM</a> = (1&lt;&lt;26), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa8e4f2ff9cea9a561be32711c91bf71e6">asOBJ_TEMPLATE_SUBTYPE</a> = (1&lt;&lt;27), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aad9ec544ec0cca5ec329d19bceefadf0c">asOBJ_TYPEDEF</a> = (1&lt;&lt;28), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aa7c3d513b69c810647dbb80d48da77ee5">asOBJ_ABSTRACT</a> = (1&lt;&lt;29), <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7aacb0a87a6461924a892502c0e7a861d24">asOBJ_APP_ALIGN16</a> = (1&lt;&lt;30) <br /> }</td></tr> <tr class="memdesc:a855d86fa9ee15b9f75e553ee376b5c7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Object type flags. <a href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7a">More...</a><br /></td></tr> <tr class="separator:a855d86fa9ee15b9f75e553ee376b5c7a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a7e38df5b10ec8cbf2a688f1d114097c5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5">asEBehaviours</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5aa4cf235bfbf72ec03d0f651cea324101">asBEHAVE_CONSTRUCT</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5a04c0b561986c6814e8a54ce3679178a2">asBEHAVE_LIST_CONSTRUCT</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5a0748a0f3a559354761ce15c2d1de2e51">asBEHAVE_DESTRUCT</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5a0b3db16eea35213b6f41f8d19dc1bd4c">asBEHAVE_FACTORY</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5aea078bc3b877ce33a2335e78ddb4938d">asBEHAVE_LIST_FACTORY</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5a1dfa5b72ad69a7bf70636d4fcb1b1d84">asBEHAVE_ADDREF</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5a7134ce13c81967191af401a1e5170a0c">asBEHAVE_RELEASE</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5a7a5e435e88a5fc1dcdee13fce091b081">asBEHAVE_GET_WEAKREF_FLAG</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5a8c9afe12ff833cd09bd893e1408b9103">asBEHAVE_TEMPLATE_CALLBACK</a> , <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5af998529f8ea1e54567997b8fb2867640">asBEHAVE_GETREFCOUNT</a> = asBEHAVE_FIRST_GC, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5aadbad474a338c3a0fe6e90df679bb2e6">asBEHAVE_SETGCFLAG</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5abfce2539609e667f15b24bbc8551c7b7">asBEHAVE_GETGCFLAG</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5a08ccf78a37567b5dd192ff5d95c6667b">asBEHAVE_ENUMREFS</a>, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5a4275ebe0b4852f2d4a10d4d9db333fe9">asBEHAVE_RELEASEREFS</a> <br /> }</td></tr> <tr class="memdesc:a7e38df5b10ec8cbf2a688f1d114097c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Behaviours. <a href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5">More...</a><br /></td></tr> <tr class="separator:a7e38df5b10ec8cbf2a688f1d114097c5"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a867f14b4137dd4602fda1e616b217a69"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69">asEContextState</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69a6d3730dd7a91aff81cafaaca4e93efaa">asEXECUTION_FINISHED</a> = 0, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69a7b5644be315c46f2fa44f032731242c7">asEXECUTION_SUSPENDED</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69a6f384f00eac7033b4da1430ea7267bbf">asEXECUTION_ABORTED</a> = 2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69aa3d548fa7d2278d848e50222b700c6c8">asEXECUTION_EXCEPTION</a> = 3, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69ab976b0bdaae9969d72a7c73db62e61e1">asEXECUTION_PREPARED</a> = 4, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69a684a042709702ab93417d7db98ae7090">asEXECUTION_UNINITIALIZED</a> = 5, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69a690200ba7f2d821b0f330ac4220b299a">asEXECUTION_ACTIVE</a> = 6, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69a9024318029d37f82b07b8c92a42b1bb2">asEXECUTION_ERROR</a> = 7 <br /> }</td></tr> <tr class="memdesc:a867f14b4137dd4602fda1e616b217a69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Context states. <a href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69">More...</a><br /></td></tr> <tr class="separator:a867f14b4137dd4602fda1e616b217a69"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a8badcd23652646db5c5c6981dc73d4f5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a8badcd23652646db5c5c6981dc73d4f5">asEMsgType</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a8badcd23652646db5c5c6981dc73d4f5a2e3d48fd09f1ca865fc5b81b0dbeb7d4">asMSGTYPE_ERROR</a> = 0, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a8badcd23652646db5c5c6981dc73d4f5a210c2023d6971d688a0302096acf945d">asMSGTYPE_WARNING</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a8badcd23652646db5c5c6981dc73d4f5ae29dba474231c07149dca09a9258f80d">asMSGTYPE_INFORMATION</a> = 2 <br /> }</td></tr> <tr class="memdesc:a8badcd23652646db5c5c6981dc73d4f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compiler message types. <a href="angelscript_8h.html#a8badcd23652646db5c5c6981dc73d4f5">More...</a><br /></td></tr> <tr class="separator:a8badcd23652646db5c5c6981dc73d4f5"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ac06582350753eb4d89d6ba9442eadf9d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#ac06582350753eb4d89d6ba9442eadf9d">asEGCFlags</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ac06582350753eb4d89d6ba9442eadf9da31e476bfb875b0f4fb209a3ef2540709">asGC_FULL_CYCLE</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ac06582350753eb4d89d6ba9442eadf9da33a4cea43ee17e4f01bef742762e5af8">asGC_ONE_STEP</a> = 2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ac06582350753eb4d89d6ba9442eadf9da61ab8361ad09823a287572d026efe7f1">asGC_DESTROY_GARBAGE</a> = 4, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ac06582350753eb4d89d6ba9442eadf9da3ff3b60e4d1bbc94f6ad46604994526a">asGC_DETECT_GARBAGE</a> = 8 <br /> }</td></tr> <tr class="memdesc:ac06582350753eb4d89d6ba9442eadf9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Garbage collector flags. <a href="angelscript_8h.html#ac06582350753eb4d89d6ba9442eadf9d">More...</a><br /></td></tr> <tr class="separator:ac06582350753eb4d89d6ba9442eadf9d"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a012a602727ca3fe1efa27053bc58cbca"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a012a602727ca3fe1efa27053bc58cbca">asETokenClass</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a012a602727ca3fe1efa27053bc58cbcaa2a6ba011564d30250b5664beee57f727">asTC_UNKNOWN</a> = 0, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a012a602727ca3fe1efa27053bc58cbcaa96a4ebcca4fd7cade65c6163d4eb2bc0">asTC_KEYWORD</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a012a602727ca3fe1efa27053bc58cbcaa75fd6044f67010b490a65ff3718d93e2">asTC_VALUE</a> = 2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a012a602727ca3fe1efa27053bc58cbcaad31e06870d87e2eb0d37da0bdd06d87f">asTC_IDENTIFIER</a> = 3, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a012a602727ca3fe1efa27053bc58cbcaac738f8a91d1e0badd12d456206372224">asTC_COMMENT</a> = 4, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a012a602727ca3fe1efa27053bc58cbcaa7ca0b961e4d799140f79c971d3596cf8">asTC_WHITESPACE</a> = 5 <br /> }</td></tr> <tr class="memdesc:a012a602727ca3fe1efa27053bc58cbca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Token classes. <a href="angelscript_8h.html#a012a602727ca3fe1efa27053bc58cbca">More...</a><br /></td></tr> <tr class="separator:a012a602727ca3fe1efa27053bc58cbca"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ae8c3a67a97321be53181e9ed396ad83a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83a">asETypeIdFlags</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aad924c0d48ab734431bbd7467a9bfa819">asTYPEID_VOID</a> = 0, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa502865ff428df06342ac9d94d69318ec">asTYPEID_BOOL</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa7e647a9a1ce963f22d5c384673d0dc5f">asTYPEID_INT8</a> = 2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa3d246e59038d67ba2945b9c89ed874c0">asTYPEID_INT16</a> = 3, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aabcc8e086d59505f6ba18ea85e72afc33">asTYPEID_INT32</a> = 4, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aaa73d32346b63cef156c6783703414a21">asTYPEID_INT64</a> = 5, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa32fa8c495f1eed78592d3898d35e1a46">asTYPEID_UINT8</a> = 6, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aae72cf12a6d4a77c74b278972256d11f3">asTYPEID_UINT16</a> = 7, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aac069cb7584e126ac4cf6faeb33fa87a3">asTYPEID_UINT32</a> = 8, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aaf22925e9946a4493c2e1c238c6043844">asTYPEID_UINT64</a> = 9, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa43ec6e15e840ebf165070c2ebe9c954d">asTYPEID_FLOAT</a> = 10, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa8b069e24ecddd678b3811126832df49f">asTYPEID_DOUBLE</a> = 11, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa63249041dff18d01e362d71efca2b4ed">asTYPEID_OBJHANDLE</a> = 0x40000000, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aaa4c35253b679ef667c30153f586ecbb5">asTYPEID_HANDLETOCONST</a> = 0x20000000, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa09eef59280d15a58c75e0c8983a3c3af">asTYPEID_MASK_OBJECT</a> = 0x1C000000, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa3b1403bbf7d1c617f734c39a574c7aa1">asTYPEID_APPOBJECT</a> = 0x04000000, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa29f9a7c07904452b512431b7b4b5b6e4">asTYPEID_SCRIPTOBJECT</a> = 0x08000000, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aab5fde5eaa0401712c8abd01fc366e9cc">asTYPEID_TEMPLATE</a> = 0x10000000, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83aa8a0789b5d397d79ba34a441116a6321b">asTYPEID_MASK_SEQNBR</a> = 0x03FFFFFF <br /> }</td></tr> <tr class="memdesc:ae8c3a67a97321be53181e9ed396ad83a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type id flags. <a href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83a">More...</a><br /></td></tr> <tr class="separator:ae8c3a67a97321be53181e9ed396ad83a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a335bd4a1384b6e408bf9b37ffdeb54c7"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a335bd4a1384b6e408bf9b37ffdeb54c7">asETypeModifiers</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a335bd4a1384b6e408bf9b37ffdeb54c7aad24888f100d685b7eb4c330e8e09047">asTM_NONE</a> = 0, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a335bd4a1384b6e408bf9b37ffdeb54c7a8de0af7f268793bb251f0607b72cad19">asTM_INREF</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a335bd4a1384b6e408bf9b37ffdeb54c7a8ebee94d0968a789e3953d0100a9d2ee">asTM_OUTREF</a> = 2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a335bd4a1384b6e408bf9b37ffdeb54c7aaefa7d0cb8d421469fcfc4248d3ba5c5">asTM_INOUTREF</a> = 3, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a335bd4a1384b6e408bf9b37ffdeb54c7a75422a76c05f8b084895e73f90972e34">asTM_CONST</a> = 4 <br /> }</td></tr> <tr class="memdesc:a335bd4a1384b6e408bf9b37ffdeb54c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type modifiers. <a href="angelscript_8h.html#a335bd4a1384b6e408bf9b37ffdeb54c7">More...</a><br /></td></tr> <tr class="separator:a335bd4a1384b6e408bf9b37ffdeb54c7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ae4cf50de5273eb8c03c6e91e6e014f0c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#ae4cf50de5273eb8c03c6e91e6e014f0c">asEGMFlags</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae4cf50de5273eb8c03c6e91e6e014f0ca2feb963eb04c221e251867bc3a93d79d">asGM_ONLY_IF_EXISTS</a> = 0, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae4cf50de5273eb8c03c6e91e6e014f0cafaa7b80aa39b669fbe250c0822af63bb">asGM_CREATE_IF_NOT_EXISTS</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ae4cf50de5273eb8c03c6e91e6e014f0ca0843ab784ed9a9ea6cb47d915825186f">asGM_ALWAYS_CREATE</a> = 2 <br /> }</td></tr> <tr class="memdesc:ae4cf50de5273eb8c03c6e91e6e014f0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flags for GetModule. <a href="angelscript_8h.html#ae4cf50de5273eb8c03c6e91e6e014f0c">More...</a><br /></td></tr> <tr class="separator:ae4cf50de5273eb8c03c6e91e6e014f0c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a2bf48c41455371788805269376ca5e41"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a2bf48c41455371788805269376ca5e41">asECompileFlags</a> { <a class="el" href="angelscript_8h.html#a2bf48c41455371788805269376ca5e41a85d0a4fa51dbcc4ad4150f406185b918">asCOMP_ADD_TO_MODULE</a> = 1 }</td></tr> <tr class="memdesc:a2bf48c41455371788805269376ca5e41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flags for compilation. <a href="angelscript_8h.html#a2bf48c41455371788805269376ca5e41">More...</a><br /></td></tr> <tr class="separator:a2bf48c41455371788805269376ca5e41"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a06fb2a1ebf5d007e0d542abced1b648f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a06fb2a1ebf5d007e0d542abced1b648f">asEFuncType</a> { , <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a06fb2a1ebf5d007e0d542abced1b648fa9ea0b7b39362f427b7449b11d70f306b">asFUNC_SYSTEM</a> = 0, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a06fb2a1ebf5d007e0d542abced1b648fac5431c6f2ee2e7cf530739c01c1343eb">asFUNC_SCRIPT</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a06fb2a1ebf5d007e0d542abced1b648fac245ebb3ca53d4037e28de80ae81991f">asFUNC_INTERFACE</a> = 2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a06fb2a1ebf5d007e0d542abced1b648fac6a82b2b64cfee8e143a41b4b627083a">asFUNC_VIRTUAL</a> = 3, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a06fb2a1ebf5d007e0d542abced1b648fa73c9b6201770e89cb90212c793ca5173">asFUNC_FUNCDEF</a> = 4, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a06fb2a1ebf5d007e0d542abced1b648fa9c44f646079e0592316cf5892e33d0ec">asFUNC_IMPORTED</a> = 5, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a06fb2a1ebf5d007e0d542abced1b648fa02773b148f9c6fb3ed5d945a940f302a">asFUNC_DELEGATE</a> = 6 <br /> }</td></tr> <tr class="memdesc:a06fb2a1ebf5d007e0d542abced1b648f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function types. <a href="angelscript_8h.html#a06fb2a1ebf5d007e0d542abced1b648f">More...</a><br /></td></tr> <tr class="separator:a06fb2a1ebf5d007e0d542abced1b648f"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ab3692c4e5d47fc93f8c9646d1783aef0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0">asEBCInstr</a> { <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a61f3044359836f88001928bcab382c1e">asBC_PopPtr</a> = 0, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a0c1133692af5029feef4a1e5aec5c65b">asBC_PshGPtr</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a53fa213a7d3fed6add6d37dfe073e1cb">asBC_PshC4</a> = 2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ab858dd8ba0b9fed72638c549f40f60ba">asBC_PshV4</a> = 3, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a1c42ff5ba726e656b989e3408fe9648f">asBC_PSF</a> = 4, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac23d851c5aaffca166d6494bec9bcf24">asBC_SwapPtr</a> = 5, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a13a6093971474018818db5a76f012f26">asBC_NOT</a> = 6, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a71be4bc7beb5407aac980f73cce33bd6">asBC_PshG4</a> = 7, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a2d39346b29e025ea48c3d1f9ad5be43e">asBC_LdGRdR4</a> = 8, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a4055fd59f44ce3f31eac60377b0967c8">asBC_CALL</a> = 9, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0adf0df27f972bc4edb9b2213fe6448f68">asBC_RET</a> = 10, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a6742a11dd679468b98df9c45aabfb32b">asBC_JMP</a> = 11, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a497ae321f5a5889c9bee415b7cc38e9c">asBC_JZ</a> = 12, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a262d3c0a50f45e6b6de3f1b77f4b4bf0">asBC_JNZ</a> = 13, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a2357fddab027985d9af0398e304b0ec1">asBC_JS</a> = 14, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a736796cbac759ad4fc43bb09267f36ca">asBC_JNS</a> = 15, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac2792270f8022801384ccd0ae3b00604">asBC_JP</a> = 16, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ae4f95a73cfe667f1928e7766ea09511e">asBC_JNP</a> = 17, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0afa0764106ecce859b73b84119cdbbb19">asBC_TZ</a> = 18, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac63ed68678f4e7490d67727fd3dc6a80">asBC_TNZ</a> = 19, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a0136c50e72d9f3e09f053768373f8fd2">asBC_TS</a> = 20, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a6283325ca6354974eec243ce918e6902">asBC_TNS</a> = 21, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a6dc225b22eecb133457b82700081cbcf">asBC_TP</a> = 22, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aa57f16a2b46be5e2ce7740389c8eb479">asBC_TNP</a> = 23, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a01fe11f3f95464cb3e409c3181a02c1a">asBC_NEGi</a> = 24, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a7de6d0118307feca68660e67c79ca7dc">asBC_NEGf</a> = 25, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a928187662dfd857cf8edb10a632651d4">asBC_NEGd</a> = 26, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a4669b8c92a8b8d9c6e84d0ed1db14d33">asBC_INCi16</a> = 27, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a152dde2647cf17bf01f255cab7d7a398">asBC_INCi8</a> = 28, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a9ea8e03a8da22997477fca4f79d55830">asBC_DECi16</a> = 29, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aeb53c8898d91276563cf360539b2c4ce">asBC_DECi8</a> = 30, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a630408d0f3892bfa8ba01da409ca30e3">asBC_INCi</a> = 31, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ad78d2aec3e51a9aaf3fb5f3c12afc420">asBC_DECi</a> = 32, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aef2f50c2ed4d67c3da6630616ad00a7b">asBC_INCf</a> = 33, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a0fedf5312b600d2cd8e991139ff237f1">asBC_DECf</a> = 34, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a46b7c1d75685f454688e361e4da99994">asBC_INCd</a> = 35, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a46ccee51c06462cd452c6a97a2854a22">asBC_DECd</a> = 36, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af9579b13bff9bcc81710fe7dba9c0957">asBC_IncVi</a> = 37, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a0f57e25fb34f2d086f35f60cfe51782e">asBC_DecVi</a> = 38, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac9e8418aad908e23c4e2e9cbbc71f8fe">asBC_BNOT</a> = 39, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a051857d502a904223293d1604765c0f5">asBC_BAND</a> = 40, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a4265bc99ed27ff3e3cd55e7de3f6ee57">asBC_BOR</a> = 41, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a099bdbc768c58ad62d2662dd9727806a">asBC_BXOR</a> = 42, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a671220a8df608a65acb7c5be7d950134">asBC_BSLL</a> = 43, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a427239dea36c73be86be67963dbc1935">asBC_BSRL</a> = 44, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ae7f2672c3c3a6859f17ebc25df4d95a1">asBC_BSRA</a> = 45, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aa06ef833e37285449bfc72e0c93479a9">asBC_COPY</a> = 46, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac987a5f48ff66860142d01ed51670d91">asBC_PshC8</a> = 47, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a15f565f207bdaab4d5b72867cdd25007">asBC_PshVPtr</a> = 48, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a2628264804fd19af3ce94e0336b3eeeb">asBC_RDSPtr</a> = 49, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ad72b54941de6dccfbea9c6ccb5d915df">asBC_CMPd</a> = 50, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a2d473195aba3ddcc8d6419c047d0c741">asBC_CMPu</a> = 51, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a158d7962cea577c9a18f639976c6c0ab">asBC_CMPf</a> = 52, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af81b0602117dd9ef104dea7d2d526cfa">asBC_CMPi</a> = 53, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a33a798d1fe04ec8e1794ddb0838039d9">asBC_CMPIi</a> = 54, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a2f5efa47419aa3a053f1e8916b46e303">asBC_CMPIf</a> = 55, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ad7195755387f9159b4a2c5de9e60a068">asBC_CMPIu</a> = 56, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a31eae477a85a0b1ee618df42deb0519c">asBC_JMPP</a> = 57, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a567f07266bd50926c205460b31d579f6">asBC_PopRPtr</a> = 58, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a3ecef93739a85d45002cd073b00da52c">asBC_PshRPtr</a> = 59, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aa9541dbcbb58f820d5d8e81414367d5e">asBC_STR</a> = 60, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac21b3ff5a3ecb6d834bfe2bf7ff36669">asBC_CALLSYS</a> = 61, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a22f812924fa0048de540e0cca53a2718">asBC_CALLBND</a> = 62, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a175714567c483ff439c1d2c125ca9608">asBC_SUSPEND</a> = 63, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac215e24151dbbf8ca218ee90b77953d2">asBC_ALLOC</a> = 64, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a1d13cb9820edf1d65e09e3c70f67d3b9">asBC_FREE</a> = 65, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a05fa84bd9f65d7e99871d9b78da54e16">asBC_LOADOBJ</a> = 66, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aaa9dd5f07ce2b4b9d72750daa4b64294">asBC_STOREOBJ</a> = 67, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aaef456de01ad209271078728d304b803">asBC_GETOBJ</a> = 68, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a0509f97130860b6fe3477f66e9fb712d">asBC_REFCPY</a> = 69, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a0ae4b5ff463c26aad9fbd975a144f2fa">asBC_CHKREF</a> = 70, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a6b9d0ef0c8e981a591c384792acf2c6d">asBC_GETOBJREF</a> = 71, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a6ad13f895f055f69384efb4a67941369">asBC_GETREF</a> = 72, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a9343148f733f970e3463f37fac57f998">asBC_PshNull</a> = 73, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a8b5cd32b4b5bc6aaafb0456d931dc11e">asBC_ClrVPtr</a> = 74, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a0dcad2ccee9332253501c3cef2200fad">asBC_OBJTYPE</a> = 75, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a8f1ffc19b950ebc7b6a4b9ac97f8dc4d">asBC_TYPEID</a> = 76, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a95d9223bb76b2abcbc590318007aed93">asBC_SetV4</a> = 77, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ade5e3b21c7d1b9348ac12fc4cd1cbf8a">asBC_SetV8</a> = 78, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a0219f343e6e7248e72d209ea22b63f4d">asBC_ADDSi</a> = 79, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac8e1a29718cf8958201d578d56cf74b4">asBC_CpyVtoV4</a> = 80, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af0a7f6b4a1c14352e7cd02e03c1e7595">asBC_CpyVtoV8</a> = 81, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af77782bde1062e849fc6c02c8c4e0106">asBC_CpyVtoR4</a> = 82, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a25f9b87968cb0fea646d003a90bbd0a6">asBC_CpyVtoR8</a> = 83, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a4e7398002dfd57870657a8df142259a1">asBC_CpyVtoG4</a> = 84, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a27458705bfaa7f4e5b27f848c0e59c7c">asBC_CpyRtoV4</a> = 85, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a399ae190caa78f468883f9736e8f9d40">asBC_CpyRtoV8</a> = 86, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a4ed62e4b84509466aef25d638026b883">asBC_CpyGtoV4</a> = 87, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a94dbdd03bb807ceb48c3ced7b08cbaf3">asBC_WRTV1</a> = 88, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af50492589b9b48fb6cce810ea12b2313">asBC_WRTV2</a> = 89, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aecc937d822668f3d443c2cf7c2c9a91b">asBC_WRTV4</a> = 90, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac912670273a5cc5857967d6c4ee9fb71">asBC_WRTV8</a> = 91, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a0375f41153eeaa6d250a6ee262ffa0ba">asBC_RDR1</a> = 92, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aa470ed962fa3e1a86296998914cbcc12">asBC_RDR2</a> = 93, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac66bc5d2959ef22b6c967313aa791b54">asBC_RDR4</a> = 94, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a36dc7a09798a7055d8faece1321e241a">asBC_RDR8</a> = 95, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a7eecc42f41efaa2a9e52a38b5b2e0761">asBC_LDG</a> = 96, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a506cf72989aae9c3f0613b3fdd788a96">asBC_LDV</a> = 97, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0adc83ae72a402eb4c8d8248ef2ef75d9c">asBC_PGA</a> = 98, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a17c0368321613c9e38e438f96b80bdd7">asBC_CmpPtr</a> = 99, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0adb056673fe9802b5d8351835d0c4cea9">asBC_VAR</a> = 100, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a92116eabda2e6b20e1ea2a13a316decd">asBC_iTOf</a> = 101, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a505d5d669a5d046b5fe5edbde407d12a">asBC_fTOi</a> = 102, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a6f445f24f6501cf4c3711929a1d5e111">asBC_uTOf</a> = 103, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a9e9e1d16d150ca95e5f8abee59aaed51">asBC_fTOu</a> = 104, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0afbfb6f5aaf4d6599e16b4bfe458ce01e">asBC_sbTOi</a> = 105, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aad0cc8bb8012f257fa99f01b8b7035bd">asBC_swTOi</a> = 106, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a9c20fcde56da1d0386a10490fb13a7d6">asBC_ubTOi</a> = 107, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a1d90e73c2b31b0e15282d092b46cf742">asBC_uwTOi</a> = 108, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0afb5dbe4edea3e5cfa521fd3a5738ccf6">asBC_dTOi</a> = 109, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ab316237649a76cf10a1b9bc68c2792c4">asBC_dTOu</a> = 110, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a854599de98fcbd9334c9223e8e9058db">asBC_dTOf</a> = 111, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ad9a5f8875c44b01fa6e1501bb70bae00">asBC_iTOd</a> = 112, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0abb2e2f37012d6cb75b446fc992dba6c4">asBC_uTOd</a> = 113, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a8d1a589383ae9187b58a3f774cbe77cd">asBC_fTOd</a> = 114, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a42520944f391260636e0eed5c9ab76a9">asBC_ADDi</a> = 115, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af04edb64674c1c46b1769b4f31828441">asBC_SUBi</a> = 116, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a93c630d303bb6e91e044d6afea71b798">asBC_MULi</a> = 117, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a27123834824beb61355869faf5e23cf4">asBC_DIVi</a> = 118, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ae8e569143d23f682b3aecfa100bdfd4e">asBC_MODi</a> = 119, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ab1bffd05b8b41e4a9dd09618b82bba9d">asBC_ADDf</a> = 120, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aca247b39114dc45ae993dd1cf80226aa">asBC_SUBf</a> = 121, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ab32f923ffcabab481a2e46f702b17f7a">asBC_MULf</a> = 122, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0acf3448b40f2fc34b4007f27c4f8488a2">asBC_DIVf</a> = 123, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ae54338068d6b6e965c497c6b1d68c64e">asBC_MODf</a> = 124, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ad2ff7a206ad788bd2b37b8ee92be7940">asBC_ADDd</a> = 125, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a40632786e202cc6a617bbe63a8d4cc0f">asBC_SUBd</a> = 126, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a411e71202157cfece504379e6171a464">asBC_MULd</a> = 127, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a016b86c3e0706775fc653d6f94048765">asBC_DIVd</a> = 128, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac2137a8a8fe7af5070f37e796d863af2">asBC_MODd</a> = 129, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a1194db3e433a943156d548b2bb34ef13">asBC_ADDIi</a> = 130, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ab77b30af827c52ee62a5ccab94d96003">asBC_SUBIi</a> = 131, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af29eb13449c228f4dead9ba6da590147">asBC_MULIi</a> = 132, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a15032e422f3346940aa37ec6dc6305d7">asBC_ADDIf</a> = 133, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a83fc6f0a163316a6be6c280df57fcd13">asBC_SUBIf</a> = 134, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a29cb2ee51427268cf549f90e110b1e38">asBC_MULIf</a> = 135, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a880a2be05a247612df28ea4569a7a99b">asBC_SetG4</a> = 136, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ad0c18f6eab27072771563d4464d06a4a">asBC_ChkRefS</a> = 137, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a81142673f63ffd177e20b6296718d3aa">asBC_ChkNullV</a> = 138, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aedb4e479a4988aac48f1facb6a0048d6">asBC_CALLINTF</a> = 139, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aea965df01399592f1e8c3950a35e837f">asBC_iTOb</a> = 140, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0acdf698af6bd4a5e427922e9462244319">asBC_iTOw</a> = 141, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af3909e9889d0994c0d0190a147eac3cb">asBC_SetV1</a> = 142, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a709cec30c38c5dc89dfcd92341dafd61">asBC_SetV2</a> = 143, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a4ef6c5e255ffe285bff104bacaed2ba9">asBC_Cast</a> = 144, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ae66d679b16934aeb2c7047ea1b1fae85">asBC_i64TOi</a> = 145, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af5f7cad82e5cd2dc4a3d690a2ab46bce">asBC_uTOi64</a> = 146, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aa48a1b118c32dc9d5667b9039aa06bff">asBC_iTOi64</a> = 147, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0acd75aec128802694c2674b122204e704">asBC_fTOi64</a> = 148, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a043e40662a884a7c39bbd982d3e2266f">asBC_dTOi64</a> = 149, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ae5bd9d9c6b756c2898f2776b0b08e793">asBC_fTOu64</a> = 150, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a062cb021be1b64d913527c22c7dba896">asBC_dTOu64</a> = 151, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a22f2099b91cb1bde2df44760ea2efed7">asBC_i64TOf</a> = 152, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ad293bf12c4a8de3c50794a9eaeac636d">asBC_u64TOf</a> = 153, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a7e110775dee3e08f9ef7e2215fb48b26">asBC_i64TOd</a> = 154, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a61a9abe7f4b17874cc1f2eff761bc3b2">asBC_u64TOd</a> = 155, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a3cf16372d571ec566ae93fd80e05b1ad">asBC_NEGi64</a> = 156, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a6216ec910e53970e52e518da4786a37b">asBC_INCi64</a> = 157, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a27cdd04643b9331e2aedfb6c1af1c021">asBC_DECi64</a> = 158, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a263c5cfa90baf8f63c5b4d110c3d9daa">asBC_BNOT64</a> = 159, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ab1afb9b4dbebb726108b46887175c57e">asBC_ADDi64</a> = 160, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a14984f047b26178d73ea024e97b3718c">asBC_SUBi64</a> = 161, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a38931ac737104c4ccca730705bd7ec48">asBC_MULi64</a> = 162, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a9f31be749c98afaa86f5b3a83218752b">asBC_DIVi64</a> = 163, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a3bd852f5aa7c1a12da37a7ac91b1c83f">asBC_MODi64</a> = 164, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af1dff3cce666a689e8b1d5ceb91f1b42">asBC_BAND64</a> = 165, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a5d6d553690fa38dc7f2b6a7b9ee14345">asBC_BOR64</a> = 166, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ae4d7a6a1af23b2f14d5af7b6dfaa3f28">asBC_BXOR64</a> = 167, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af18e856f167de0796acb84d3f5df09b2">asBC_BSLL64</a> = 168, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0abb511dcd15fb9875ba270d5b95fed24d">asBC_BSRL64</a> = 169, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a4203e09b3bf5f15810f0e2076c0088a5">asBC_BSRA64</a> = 170, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aa2c75f0562b433b18406a939bcd62e95">asBC_CMPi64</a> = 171, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af521b982839cdc97e9b2413ac085b09f">asBC_CMPu64</a> = 172, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0af859e97239e00dd003a8f75fbf963ded">asBC_ChkNullS</a> = 173, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a1293f6086ce51f270a7d756413cabb9c">asBC_ClrHi</a> = 174, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a6705ee9692b45f118cfe0ea24581fae5">asBC_JitEntry</a> = 175, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a35c09c890b9f46160c193a3a07cdeedb">asBC_CallPtr</a> = 176, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ab4a58c4177502bd6d3a034f2d4244404">asBC_FuncPtr</a> = 177, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a8950187a9c91330124df91bb27d7a1a3">asBC_LoadThisR</a> = 178, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ae2923dbf7fc9bb70c0c3cbbf8673467c">asBC_PshV8</a> = 179, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a4e171bc08a91c52a5eae821ff3435892">asBC_DIVu</a> = 180, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a22772f5830ff9c17b6427e70128711f8">asBC_MODu</a> = 181, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a8cc1a88aa5da6d91bbf7bccb7abc3327">asBC_DIVu64</a> = 182, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aaa0fe36a1a3467428d9d9bc06bf038fe">asBC_MODu64</a> = 183, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a55e484687643f87565827249a81cf3a8">asBC_LoadRObjR</a> = 184, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a2285121bf664f86d462560fde6dad0f7">asBC_LoadVObjR</a> = 185, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a8b1c7e7b7c8054b36a9d48c3452adf79">asBC_RefCpyV</a> = 186, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a9da365af8ea85e3eb538567207d4a705">asBC_JLowZ</a> = 187, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a12e9c561f401be75a6db13a94a687d77">asBC_JLowNZ</a> = 188, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a60cb5c56bd8cd1dfd7bde88be588b19c">asBC_AllocMem</a> = 189, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a8c8a41c980d7b8f2054780da0153ae64">asBC_SetListSize</a> = 190, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a980fccdeeebe67503f9623722ed893a5">asBC_PshListElmnt</a> = 191, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a7abb1d21f26401e75305a2b4cf7a4733">asBC_SetListType</a> = 192, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a1b9ae2022b484a3c44820b6528c68ac0">asBC_POWi</a> = 193, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a45adae8be4e9dde1b77dc9346786cfef">asBC_POWu</a> = 194, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0aedc33b037796cfbb5879799a6bea3b0d">asBC_POWf</a> = 195, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a17794eb37e2e24d3f92945e492fd8fdc">asBC_POWd</a> = 196, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a550ee3e286be8a70a06194206c0ae1b9">asBC_POWdi</a> = 197, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a7546139b9cafeae5d71a345ec3b4424d">asBC_POWi64</a> = 198, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a23bbb267da86c108b4fe23f0443d5f1d">asBC_POWu64</a> = 199, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a25fe35c5c31674255821ecc3c9a9d23c">asBC_Thiscall1</a> = 200 <br /> }</td></tr> <tr class="memdesc:ab3692c4e5d47fc93f8c9646d1783aef0"><td class="mdescLeft">&#160;</td><td class="mdescRight">The bytecode instructions used by the VM. <a href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0">More...</a><br /></td></tr> <tr class="separator:ab3692c4e5d47fc93f8c9646d1783aef0"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a05f4716428617975227a75eef995d3dc"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dc">asEBCType</a> { , <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca5d474089af62503917b5a9075ea884a0">asBCTYPE_NO_ARG</a> = 1, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca2ed4017596353fbfd8284abb87693479">asBCTYPE_W_ARG</a> = 2, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca35b791ccee8b22494cf5c0d1cd7c1bf1">asBCTYPE_wW_ARG</a> = 3, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dcacda81b5a95de8ef351d80f7f007f3c1f">asBCTYPE_DW_ARG</a> = 4, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dcab6ce6fd0303ba86f9933afba82af1da5">asBCTYPE_rW_DW_ARG</a> = 5, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dcab5ccbe43d9de8e5261c5d98c0235e680">asBCTYPE_QW_ARG</a> = 6, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dcac7dee47b6d43b90ec5d3f348d9adb29b">asBCTYPE_DW_DW_ARG</a> = 7, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca70e3f2b6c20b552f734afa1237ffbfa1">asBCTYPE_wW_rW_rW_ARG</a> = 8, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dcad0f58ec314c7ee6b346428f181406462">asBCTYPE_wW_QW_ARG</a> = 9, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca983e22175938d52ed285d05729082356">asBCTYPE_wW_rW_ARG</a> = 10, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca8f31f45900a4e5a456c8423e6efa2435">asBCTYPE_rW_ARG</a> = 11, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dcaca83b5ca2543f825bfb235a7c75bf861">asBCTYPE_wW_DW_ARG</a> = 12, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dcabd1019654afbbc88a6d7ec145d187d43">asBCTYPE_wW_rW_DW_ARG</a> = 13, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca3bab72c18fc7528b191c07fa69ce8592">asBCTYPE_rW_rW_ARG</a> = 14, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca20eff83445fbfaeccf0099d04434ddff">asBCTYPE_wW_W_ARG</a> = 15, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca1923164123cd74d611b8ed4bf491a489">asBCTYPE_QW_DW_ARG</a> = 16, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dcac7dd4b17f956dd9f77154a969826c5b9">asBCTYPE_rW_QW_ARG</a> = 17, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca3363c16ca9a7dd52a6292e4006a97e25">asBCTYPE_W_DW_ARG</a> = 18, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dca21c4ffbfac771e092bf8b229d041bfa8">asBCTYPE_rW_W_DW_ARG</a> = 19, <br /> &#160;&#160;<a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dcae203bd09b5f39c9c2b6f9da1cb125fc9">asBCTYPE_rW_DW_DW_ARG</a> = 20 <br /> }</td></tr> <tr class="memdesc:a05f4716428617975227a75eef995d3dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Describes the structure of a bytecode instruction. <a href="angelscript_8h.html#a05f4716428617975227a75eef995d3dc">More...</a><br /></td></tr> <tr class="separator:a05f4716428617975227a75eef995d3dc"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:gacb6a62345d9cca6c9b5a3dac67d80d0b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> <a class="el" href="classas_i_script_engine.html">asIScriptEngine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__principal__functions.html#gacb6a62345d9cca6c9b5a3dac67d80d0b">asCreateScriptEngine</a> (<a class="el" href="angelscript_8h.html#a5428f0c940201e5f3bbb28304aeb81bc">asDWORD</a> version=<a class="el" href="angelscript_8h.html#a99c6b8b0882e45e5d0b2ed19f6f7a157">ANGELSCRIPT_VERSION</a>)</td></tr> <tr class="memdesc:gacb6a62345d9cca6c9b5a3dac67d80d0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates the script engine. <a href="group__api__principal__functions.html#gacb6a62345d9cca6c9b5a3dac67d80d0b">More...</a><br /></td></tr> <tr class="separator:gacb6a62345d9cca6c9b5a3dac67d80d0b"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga79cbcfe1a47e436da6f2f28ff0314f75"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__auxiliary__functions.html#ga79cbcfe1a47e436da6f2f28ff0314f75">asGetLibraryVersion</a> ()</td></tr> <tr class="memdesc:ga79cbcfe1a47e436da6f2f28ff0314f75"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the version of the compiled library. <a href="group__api__auxiliary__functions.html#ga79cbcfe1a47e436da6f2f28ff0314f75">More...</a><br /></td></tr> <tr class="separator:ga79cbcfe1a47e436da6f2f28ff0314f75"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaba86cba765a7148e2a306b4305ba48f9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__auxiliary__functions.html#gaba86cba765a7148e2a306b4305ba48f9">asGetLibraryOptions</a> ()</td></tr> <tr class="memdesc:gaba86cba765a7148e2a306b4305ba48f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the options used to compile the library. <a href="group__api__auxiliary__functions.html#gaba86cba765a7148e2a306b4305ba48f9">More...</a><br /></td></tr> <tr class="separator:gaba86cba765a7148e2a306b4305ba48f9"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gad3a20dc58093b92a5a44c7b6ada34a10"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> <a class="el" href="classas_i_script_context.html">asIScriptContext</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__principal__functions.html#gad3a20dc58093b92a5a44c7b6ada34a10">asGetActiveContext</a> ()</td></tr> <tr class="memdesc:gad3a20dc58093b92a5a44c7b6ada34a10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the currently active context. <a href="group__api__principal__functions.html#gad3a20dc58093b92a5a44c7b6ada34a10">More...</a><br /></td></tr> <tr class="separator:gad3a20dc58093b92a5a44c7b6ada34a10"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaa5bea65c3f2a224bb1c677515e3bb0e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#gaa5bea65c3f2a224bb1c677515e3bb0e2">asPrepareMultithread</a> (<a class="el" href="classas_i_thread_manager.html">asIThreadManager</a> *externalMgr=0)</td></tr> <tr class="memdesc:gaa5bea65c3f2a224bb1c677515e3bb0e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets up the internally shared resources for multithreading. <a href="group__api__multithread__functions.html#gaa5bea65c3f2a224bb1c677515e3bb0e2">More...</a><br /></td></tr> <tr class="separator:gaa5bea65c3f2a224bb1c677515e3bb0e2"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga011355a8978d438cec77b4e1f041cba7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#ga011355a8978d438cec77b4e1f041cba7">asUnprepareMultithread</a> ()</td></tr> <tr class="memdesc:ga011355a8978d438cec77b4e1f041cba7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees resources prepared for multithreading. <a href="group__api__multithread__functions.html#ga011355a8978d438cec77b4e1f041cba7">More...</a><br /></td></tr> <tr class="separator:ga011355a8978d438cec77b4e1f041cba7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga948def50c98db90596b706ca4b58041e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> <a class="el" href="classas_i_thread_manager.html">asIThreadManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#ga948def50c98db90596b706ca4b58041e">asGetThreadManager</a> ()</td></tr> <tr class="memdesc:ga948def50c98db90596b706ca4b58041e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the thread manager used by the application. <a href="group__api__multithread__functions.html#ga948def50c98db90596b706ca4b58041e">More...</a><br /></td></tr> <tr class="separator:ga948def50c98db90596b706ca4b58041e"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga016dbf716a1c761b3f903b92eb8bb580"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#ga016dbf716a1c761b3f903b92eb8bb580">asAcquireExclusiveLock</a> ()</td></tr> <tr class="memdesc:ga016dbf716a1c761b3f903b92eb8bb580"><td class="mdescLeft">&#160;</td><td class="mdescRight">Acquire an exclusive lock. <a href="group__api__multithread__functions.html#ga016dbf716a1c761b3f903b92eb8bb580">More...</a><br /></td></tr> <tr class="separator:ga016dbf716a1c761b3f903b92eb8bb580"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga8a0617637eea3d76e33a52758b2cd49f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#ga8a0617637eea3d76e33a52758b2cd49f">asReleaseExclusiveLock</a> ()</td></tr> <tr class="memdesc:ga8a0617637eea3d76e33a52758b2cd49f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Release an exclusive lock. <a href="group__api__multithread__functions.html#ga8a0617637eea3d76e33a52758b2cd49f">More...</a><br /></td></tr> <tr class="separator:ga8a0617637eea3d76e33a52758b2cd49f"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaa45545a038adcc8c73348cfe9488f32d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#gaa45545a038adcc8c73348cfe9488f32d">asAcquireSharedLock</a> ()</td></tr> <tr class="memdesc:gaa45545a038adcc8c73348cfe9488f32d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Acquire a shared lock. <a href="group__api__multithread__functions.html#gaa45545a038adcc8c73348cfe9488f32d">More...</a><br /></td></tr> <tr class="separator:gaa45545a038adcc8c73348cfe9488f32d"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga44f7327c5601e8dbf74768a2f3cc0dc3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#ga44f7327c5601e8dbf74768a2f3cc0dc3">asReleaseSharedLock</a> ()</td></tr> <tr class="memdesc:ga44f7327c5601e8dbf74768a2f3cc0dc3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Release a shared lock. <a href="group__api__multithread__functions.html#ga44f7327c5601e8dbf74768a2f3cc0dc3">More...</a><br /></td></tr> <tr class="separator:ga44f7327c5601e8dbf74768a2f3cc0dc3"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaf0074d581ac2edd06e63e56e4be52c8e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#gaf0074d581ac2edd06e63e56e4be52c8e">asAtomicInc</a> (int &amp;value)</td></tr> <tr class="memdesc:gaf0074d581ac2edd06e63e56e4be52c8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Increments the value by one and returns the result as a single atomic instruction. <a href="group__api__multithread__functions.html#gaf0074d581ac2edd06e63e56e4be52c8e">More...</a><br /></td></tr> <tr class="separator:gaf0074d581ac2edd06e63e56e4be52c8e"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga0565bcb53be170dd85ae27a5b6f2b828"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#ga0565bcb53be170dd85ae27a5b6f2b828">asAtomicDec</a> (int &amp;value)</td></tr> <tr class="memdesc:ga0565bcb53be170dd85ae27a5b6f2b828"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrements the value by one and returns the result as a single atomic instruction. <a href="group__api__multithread__functions.html#ga0565bcb53be170dd85ae27a5b6f2b828">More...</a><br /></td></tr> <tr class="separator:ga0565bcb53be170dd85ae27a5b6f2b828"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga51079811680d5217046aad2a2b695dc7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#ga51079811680d5217046aad2a2b695dc7">asThreadCleanup</a> ()</td></tr> <tr class="memdesc:ga51079811680d5217046aad2a2b695dc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cleans up memory allocated for the current thread. <a href="group__api__multithread__functions.html#ga51079811680d5217046aad2a2b695dc7">More...</a><br /></td></tr> <tr class="separator:ga51079811680d5217046aad2a2b695dc7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga527ab125defc58aa40cc151a25582a31"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__memory__functions.html#ga527ab125defc58aa40cc151a25582a31">asSetGlobalMemoryFunctions</a> (<a class="el" href="angelscript_8h.html#ac69a827822c73771cd972bff270cefc7">asALLOCFUNC_t</a> allocFunc, <a class="el" href="angelscript_8h.html#adeecc934971e695fc4441a47694860fb">asFREEFUNC_t</a> freeFunc)</td></tr> <tr class="memdesc:ga527ab125defc58aa40cc151a25582a31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the memory management functions that AngelScript should use. <a href="group__api__memory__functions.html#ga527ab125defc58aa40cc151a25582a31">More...</a><br /></td></tr> <tr class="separator:ga527ab125defc58aa40cc151a25582a31"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga9267c4ad35aceaf7cc0961cd42147ee7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__memory__functions.html#ga9267c4ad35aceaf7cc0961cd42147ee7">asResetGlobalMemoryFunctions</a> ()</td></tr> <tr class="memdesc:ga9267c4ad35aceaf7cc0961cd42147ee7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove previously registered memory management functions. <a href="group__api__memory__functions.html#ga9267c4ad35aceaf7cc0961cd42147ee7">More...</a><br /></td></tr> <tr class="separator:ga9267c4ad35aceaf7cc0961cd42147ee7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga54a201f99d19e648526abf30ae31e466"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__memory__functions.html#ga54a201f99d19e648526abf30ae31e466">asAllocMem</a> (size_t size)</td></tr> <tr class="memdesc:ga54a201f99d19e648526abf30ae31e466"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate memory using the memory function registered with AngelScript. <a href="group__api__memory__functions.html#ga54a201f99d19e648526abf30ae31e466">More...</a><br /></td></tr> <tr class="separator:ga54a201f99d19e648526abf30ae31e466"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga9da61275bbfd5f7bd55ed411d05fe103"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__memory__functions.html#ga9da61275bbfd5f7bd55ed411d05fe103">asFreeMem</a> (void *mem)</td></tr> <tr class="memdesc:ga9da61275bbfd5f7bd55ed411d05fe103"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deallocates memory using the memory function registered with AngelScript. <a href="group__api__memory__functions.html#ga9da61275bbfd5f7bd55ed411d05fe103">More...</a><br /></td></tr> <tr class="separator:ga9da61275bbfd5f7bd55ed411d05fe103"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaa0ffb789dab56b5617e2f961f9c79fdb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#a6412a04ba6b2737922fdb2d8f822f51c">AS_API</a> <a class="el" href="classas_i_lockable_shared_bool.html">asILockableSharedBool</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__api__multithread__functions.html#gaa0ffb789dab56b5617e2f961f9c79fdb">asCreateLockableSharedBool</a> ()</td></tr> <tr class="memdesc:gaa0ffb789dab56b5617e2f961f9c79fdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a lockable shared boolean. <a href="group__api__multithread__functions.html#gaa0ffb789dab56b5617e2f961f9c79fdb">More...</a><br /></td></tr> <tr class="separator:gaa0ffb789dab56b5617e2f961f9c79fdb"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga863f2a1e60e6c19eea9c6b34690dcc00"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr> <tr class="memitem:ga863f2a1e60e6c19eea9c6b34690dcc00"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="angelscript_8h.html#ac8186f029686800b7ce36bde4a55c815">asUINT</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__api__principal__functions.html#ga863f2a1e60e6c19eea9c6b34690dcc00">asGetTypeTraits</a> ()</td></tr> <tr class="memdesc:ga863f2a1e60e6c19eea9c6b34690dcc00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the appropriate flags for use with RegisterObjectType. <a href="group__api__principal__functions.html#ga863f2a1e60e6c19eea9c6b34690dcc00">More...</a><br /></td></tr> <tr class="separator:ga863f2a1e60e6c19eea9c6b34690dcc00"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> Variables</h2></td></tr> <tr class="memitem:a9f93754a6f4d43118cd0d2b3896875a5"><td class="memItemLeft" align="right" valign="top"><a id="a9f93754a6f4d43118cd0d2b3896875a5"></a> const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#a9f93754a6f4d43118cd0d2b3896875a5">asBCTypeSize</a> [21]</td></tr> <tr class="memdesc:a9f93754a6f4d43118cd0d2b3896875a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lookup table for determining the size of each <a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dc">type</a> of bytecode instruction. <br /></td></tr> <tr class="separator:a9f93754a6f4d43118cd0d2b3896875a5"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ac58d23b688ddd6d6e788b034daf25df7"><td class="memItemLeft" align="right" valign="top"><a id="ac58d23b688ddd6d6e788b034daf25df7"></a> const <a class="el" href="structas_s_b_c_info.html">asSBCInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="angelscript_8h.html#ac58d23b688ddd6d6e788b034daf25df7">asBCInfo</a> [256]</td></tr> <tr class="memdesc:ac58d23b688ddd6d6e788b034daf25df7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Information on each bytecode instruction. <br /></td></tr> <tr class="separator:ac58d23b688ddd6d6e788b034daf25df7"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>This header file describes the complete application programming interface for AngelScript. </p> </div><h2 class="groupheader">Typedef Documentation</h2> <a id="af9d3986a33c1bda5c4f82a7aaa0dfeeb"></a> <h2 class="memtitle"><span class="permalink"><a href="#af9d3986a33c1bda5c4f82a7aaa0dfeeb">&#9670;&nbsp;</a></span>asJITFunction</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef void(* asJITFunction) (<a class="el" href="structas_s_v_m_registers.html">asSVMRegisters</a> *registers, <a class="el" href="angelscript_8h.html#a76fc6994aba7ff6c685a62c273c057e3">asPWORD</a> jitArg)</td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">registers</td><td>A pointer to the virtual machine's registers. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">jitArg</td><td>The value defined by the JIT compiler for the current entry point in the JIT function.</td></tr> </table> </dd> </dl> <p>A JIT function receives a pointer to the virtual machine's registers when called and an argument telling it where in the script function to continue the execution. The JIT function must make sure to update the VM's registers according to the actions performed before returning control to the VM.</p> <dl class="section see"><dt>See also</dt><dd><a class="el" href="doc_adv_jit.html">How to build a JIT compiler</a> </dd></dl> </div> </div> <h2 class="groupheader">Enumeration Type Documentation</h2> <a id="ab3692c4e5d47fc93f8c9646d1783aef0"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab3692c4e5d47fc93f8c9646d1783aef0">&#9670;&nbsp;</a></span>asEBCInstr</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0">asEBCInstr</a></td> </tr> </table> </div><div class="memdoc"> <dl class="section see"><dt>See also</dt><dd><a class="el" href="doc_adv_jit_1.html">Byte code instructions</a> </dd></dl> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a61f3044359836f88001928bcab382c1e"></a>asBC_PopPtr&#160;</td><td class="fielddoc"><p>Removes a pointer from the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a0c1133692af5029feef4a1e5aec5c65b"></a>asBC_PshGPtr&#160;</td><td class="fielddoc"><p>Pushes a pointer from a global variable onto the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a53fa213a7d3fed6add6d37dfe073e1cb"></a>asBC_PshC4&#160;</td><td class="fielddoc"><p>Push the 32bit value in the argument onto the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ab858dd8ba0b9fed72638c549f40f60ba"></a>asBC_PshV4&#160;</td><td class="fielddoc"><p>Push the 32bit value from a variable onto the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a1c42ff5ba726e656b989e3408fe9648f"></a>asBC_PSF&#160;</td><td class="fielddoc"><p>Push the address of the stack frame onto the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac23d851c5aaffca166d6494bec9bcf24"></a>asBC_SwapPtr&#160;</td><td class="fielddoc"><p>Swap the top two pointers on the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a13a6093971474018818db5a76f012f26"></a>asBC_NOT&#160;</td><td class="fielddoc"><p>Perform a boolean not on the value in a variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a71be4bc7beb5407aac980f73cce33bd6"></a>asBC_PshG4&#160;</td><td class="fielddoc"><p>Push the 32bit value from a global variable onto the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a2d39346b29e025ea48c3d1f9ad5be43e"></a>asBC_LdGRdR4&#160;</td><td class="fielddoc"><p>Perform the actions of <a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a7eecc42f41efaa2a9e52a38b5b2e0761">asBC_LDG</a> followed by <a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0ac66bc5d2959ef22b6c967313aa791b54">asBC_RDR4</a>. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a4055fd59f44ce3f31eac60377b0967c8"></a>asBC_CALL&#160;</td><td class="fielddoc"><p>Jump to a script function, indexed by the argument. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0adf0df27f972bc4edb9b2213fe6448f68"></a>asBC_RET&#160;</td><td class="fielddoc"><p>Return to the instruction after the last executed call. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a6742a11dd679468b98df9c45aabfb32b"></a>asBC_JMP&#160;</td><td class="fielddoc"><p>Unconditional jump to a relative position in this function. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a497ae321f5a5889c9bee415b7cc38e9c"></a>asBC_JZ&#160;</td><td class="fielddoc"><p>If the value register is 0 jump to a relative position in this function. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a262d3c0a50f45e6b6de3f1b77f4b4bf0"></a>asBC_JNZ&#160;</td><td class="fielddoc"><p>If the value register is not 0 jump to a relative position in this function. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a2357fddab027985d9af0398e304b0ec1"></a>asBC_JS&#160;</td><td class="fielddoc"><p>If the value register is less than 0 jump to a relative position in this function. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a736796cbac759ad4fc43bb09267f36ca"></a>asBC_JNS&#160;</td><td class="fielddoc"><p>If the value register is greater than or equal to 0 jump to a relative position in this function. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac2792270f8022801384ccd0ae3b00604"></a>asBC_JP&#160;</td><td class="fielddoc"><p>If the value register is greater than 0 jump to a relative position in this function. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ae4f95a73cfe667f1928e7766ea09511e"></a>asBC_JNP&#160;</td><td class="fielddoc"><p>If the value register is less than or equal to 0 jump to a relative position in this function. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0afa0764106ecce859b73b84119cdbbb19"></a>asBC_TZ&#160;</td><td class="fielddoc"><p>If the value register is 0 set it to 1. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac63ed68678f4e7490d67727fd3dc6a80"></a>asBC_TNZ&#160;</td><td class="fielddoc"><p>If the value register is not 0 set it to 1. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a0136c50e72d9f3e09f053768373f8fd2"></a>asBC_TS&#160;</td><td class="fielddoc"><p>If the value register is less than 0 set it to 1. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a6283325ca6354974eec243ce918e6902"></a>asBC_TNS&#160;</td><td class="fielddoc"><p>If the value register is greater than or equal to 0 set it to 1. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a6dc225b22eecb133457b82700081cbcf"></a>asBC_TP&#160;</td><td class="fielddoc"><p>If the value register is greater than 0 set it to 1. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aa57f16a2b46be5e2ce7740389c8eb479"></a>asBC_TNP&#160;</td><td class="fielddoc"><p>If the value register is less than or equal to 0 set it to 1. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a01fe11f3f95464cb3e409c3181a02c1a"></a>asBC_NEGi&#160;</td><td class="fielddoc"><p>Negate the 32bit integer value in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a7de6d0118307feca68660e67c79ca7dc"></a>asBC_NEGf&#160;</td><td class="fielddoc"><p>Negate the float value in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a928187662dfd857cf8edb10a632651d4"></a>asBC_NEGd&#160;</td><td class="fielddoc"><p>Negate the double value in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a4669b8c92a8b8d9c6e84d0ed1db14d33"></a>asBC_INCi16&#160;</td><td class="fielddoc"><p>Increment the 16bit integer value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a152dde2647cf17bf01f255cab7d7a398"></a>asBC_INCi8&#160;</td><td class="fielddoc"><p>Increment the 8bit integer value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a9ea8e03a8da22997477fca4f79d55830"></a>asBC_DECi16&#160;</td><td class="fielddoc"><p>Decrement the 16bit integer value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aeb53c8898d91276563cf360539b2c4ce"></a>asBC_DECi8&#160;</td><td class="fielddoc"><p>Increment the 8bit integer value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a630408d0f3892bfa8ba01da409ca30e3"></a>asBC_INCi&#160;</td><td class="fielddoc"><p>Increment the 32bit integer value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ad78d2aec3e51a9aaf3fb5f3c12afc420"></a>asBC_DECi&#160;</td><td class="fielddoc"><p>Decrement the 32bit integer value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aef2f50c2ed4d67c3da6630616ad00a7b"></a>asBC_INCf&#160;</td><td class="fielddoc"><p>Increment the float value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a0fedf5312b600d2cd8e991139ff237f1"></a>asBC_DECf&#160;</td><td class="fielddoc"><p>Decrement the float value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a46b7c1d75685f454688e361e4da99994"></a>asBC_INCd&#160;</td><td class="fielddoc"><p>Increment the double value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a46ccee51c06462cd452c6a97a2854a22"></a>asBC_DECd&#160;</td><td class="fielddoc"><p>Decrement the double value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af9579b13bff9bcc81710fe7dba9c0957"></a>asBC_IncVi&#160;</td><td class="fielddoc"><p>Increment the 32bit integer value in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a0f57e25fb34f2d086f35f60cfe51782e"></a>asBC_DecVi&#160;</td><td class="fielddoc"><p>Decrement the 32bit integer value in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac9e8418aad908e23c4e2e9cbbc71f8fe"></a>asBC_BNOT&#160;</td><td class="fielddoc"><p>Perform a bitwise complement on the 32bit value in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a051857d502a904223293d1604765c0f5"></a>asBC_BAND&#160;</td><td class="fielddoc"><p>Perform a bitwise and of two 32bit values and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a4265bc99ed27ff3e3cd55e7de3f6ee57"></a>asBC_BOR&#160;</td><td class="fielddoc"><p>Perform a bitwise or of two 32bit values and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a099bdbc768c58ad62d2662dd9727806a"></a>asBC_BXOR&#160;</td><td class="fielddoc"><p>Perform a bitwise exclusive or of two 32bit values and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a671220a8df608a65acb7c5be7d950134"></a>asBC_BSLL&#160;</td><td class="fielddoc"><p>Perform a logical left shift of a 32bit value and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a427239dea36c73be86be67963dbc1935"></a>asBC_BSRL&#160;</td><td class="fielddoc"><p>Perform a logical right shift of a 32bit value and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ae7f2672c3c3a6859f17ebc25df4d95a1"></a>asBC_BSRA&#160;</td><td class="fielddoc"><p>Perform a arithmetical right shift of a 32bit value and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aa06ef833e37285449bfc72e0c93479a9"></a>asBC_COPY&#160;</td><td class="fielddoc"><p>Pop the destination and source addresses from the stack. Perform a bitwise copy of the referred object. Push the destination address on the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac987a5f48ff66860142d01ed51670d91"></a>asBC_PshC8&#160;</td><td class="fielddoc"><p>Push a 64bit value on the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a15f565f207bdaab4d5b72867cdd25007"></a>asBC_PshVPtr&#160;</td><td class="fielddoc"><p>Push a pointer from the variable on the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a2628264804fd19af3ce94e0336b3eeeb"></a>asBC_RDSPtr&#160;</td><td class="fielddoc"><p>Pop top address, read a pointer from it, and push the pointer onto the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ad72b54941de6dccfbea9c6ccb5d915df"></a>asBC_CMPd&#160;</td><td class="fielddoc"><p>Compare two double variables and store the result in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a2d473195aba3ddcc8d6419c047d0c741"></a>asBC_CMPu&#160;</td><td class="fielddoc"><p>Compare two unsigned 32bit integer variables and store the result in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a158d7962cea577c9a18f639976c6c0ab"></a>asBC_CMPf&#160;</td><td class="fielddoc"><p>Compare two float variables and store the result in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af81b0602117dd9ef104dea7d2d526cfa"></a>asBC_CMPi&#160;</td><td class="fielddoc"><p>Compare two 32bit integer variables and store the result in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a33a798d1fe04ec8e1794ddb0838039d9"></a>asBC_CMPIi&#160;</td><td class="fielddoc"><p>Compare 32bit integer variable with constant and store the result in value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a2f5efa47419aa3a053f1e8916b46e303"></a>asBC_CMPIf&#160;</td><td class="fielddoc"><p>Compare float variable with constant and store the result in value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ad7195755387f9159b4a2c5de9e60a068"></a>asBC_CMPIu&#160;</td><td class="fielddoc"><p>Compare unsigned 32bit integer variable with constant and store the result in value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a31eae477a85a0b1ee618df42deb0519c"></a>asBC_JMPP&#160;</td><td class="fielddoc"><p>Jump to relative position in the function where the offset is stored in a variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a567f07266bd50926c205460b31d579f6"></a>asBC_PopRPtr&#160;</td><td class="fielddoc"><p>Pop a pointer from the stack and store it in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a3ecef93739a85d45002cd073b00da52c"></a>asBC_PshRPtr&#160;</td><td class="fielddoc"><p>Push a pointer from the value register onto the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aa9541dbcbb58f820d5d8e81414367d5e"></a>asBC_STR&#160;</td><td class="fielddoc"><p>Not used. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac21b3ff5a3ecb6d834bfe2bf7ff36669"></a>asBC_CALLSYS&#160;</td><td class="fielddoc"><p>Call registered function. Suspend further execution if requested. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a22f812924fa0048de540e0cca53a2718"></a>asBC_CALLBND&#160;</td><td class="fielddoc"><p>Jump to an imported script function, indexed by the argument. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a175714567c483ff439c1d2c125ca9608"></a>asBC_SUSPEND&#160;</td><td class="fielddoc"><p>Call line callback function if set. Suspend execution if requested. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac215e24151dbbf8ca218ee90b77953d2"></a>asBC_ALLOC&#160;</td><td class="fielddoc"><p>Allocate the memory for the object. If the type is a script object then jump to the constructor, else call the registered constructor behaviour. Suspend further execution if requested. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a1d13cb9820edf1d65e09e3c70f67d3b9"></a>asBC_FREE&#160;</td><td class="fielddoc"><p>Pop the address of the object variable from the stack. If ref type, call the release method, else call the destructor then free the memory. Clear the pointer in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a05fa84bd9f65d7e99871d9b78da54e16"></a>asBC_LOADOBJ&#160;</td><td class="fielddoc"><p>Copy the object pointer from a variable to the object register. Clear the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aaa9dd5f07ce2b4b9d72750daa4b64294"></a>asBC_STOREOBJ&#160;</td><td class="fielddoc"><p>Copy the object pointer from the object register to the variable. Clear the object register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aaef456de01ad209271078728d304b803"></a>asBC_GETOBJ&#160;</td><td class="fielddoc"><p>Move object pointer from variable onto stack location. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a0509f97130860b6fe3477f66e9fb712d"></a>asBC_REFCPY&#160;</td><td class="fielddoc"><p>Pop destination handle reference. Perform a handle assignment, while updating the reference count for both previous and new objects. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a0ae4b5ff463c26aad9fbd975a144f2fa"></a>asBC_CHKREF&#160;</td><td class="fielddoc"><p>Throw an exception if the pointer on the top of the stack is null. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a6b9d0ef0c8e981a591c384792acf2c6d"></a>asBC_GETOBJREF&#160;</td><td class="fielddoc"><p>Replace a variable index on the stack with the object handle stored in that variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a6ad13f895f055f69384efb4a67941369"></a>asBC_GETREF&#160;</td><td class="fielddoc"><p>Replace a variable index on the stack with the address of the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a9343148f733f970e3463f37fac57f998"></a>asBC_PshNull&#160;</td><td class="fielddoc"><p>Push a null pointer on the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a8b5cd32b4b5bc6aaafb0456d931dc11e"></a>asBC_ClrVPtr&#160;</td><td class="fielddoc"><p>Clear pointer in a variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a0dcad2ccee9332253501c3cef2200fad"></a>asBC_OBJTYPE&#160;</td><td class="fielddoc"><p>Push the pointer argument onto the stack. The pointer is a pointer to an object type structure. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a8f1ffc19b950ebc7b6a4b9ac97f8dc4d"></a>asBC_TYPEID&#160;</td><td class="fielddoc"><p>Push the type id onto the stack. Equivalent to <a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a53fa213a7d3fed6add6d37dfe073e1cb">PshC4</a>. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a95d9223bb76b2abcbc590318007aed93"></a>asBC_SetV4&#160;</td><td class="fielddoc"><p>Initialize the variable with a DWORD. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ade5e3b21c7d1b9348ac12fc4cd1cbf8a"></a>asBC_SetV8&#160;</td><td class="fielddoc"><p>Initialize the variable with a QWORD. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a0219f343e6e7248e72d209ea22b63f4d"></a>asBC_ADDSi&#160;</td><td class="fielddoc"><p>Add a value to the top pointer on the stack, thus updating the address itself. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac8e1a29718cf8958201d578d56cf74b4"></a>asBC_CpyVtoV4&#160;</td><td class="fielddoc"><p>Copy a DWORD from one variable to another. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af0a7f6b4a1c14352e7cd02e03c1e7595"></a>asBC_CpyVtoV8&#160;</td><td class="fielddoc"><p>Copy a QWORD from one variable to another. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af77782bde1062e849fc6c02c8c4e0106"></a>asBC_CpyVtoR4&#160;</td><td class="fielddoc"><p>Copy a DWORD from a variable into the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a25f9b87968cb0fea646d003a90bbd0a6"></a>asBC_CpyVtoR8&#160;</td><td class="fielddoc"><p>Copy a QWORD from a variable into the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a4e7398002dfd57870657a8df142259a1"></a>asBC_CpyVtoG4&#160;</td><td class="fielddoc"><p>Copy a DWORD from a local variable to a global variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a27458705bfaa7f4e5b27f848c0e59c7c"></a>asBC_CpyRtoV4&#160;</td><td class="fielddoc"><p>Copy a DWORD from the value register into a variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a399ae190caa78f468883f9736e8f9d40"></a>asBC_CpyRtoV8&#160;</td><td class="fielddoc"><p>Copy a QWORD from the value register into a variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a4ed62e4b84509466aef25d638026b883"></a>asBC_CpyGtoV4&#160;</td><td class="fielddoc"><p>Copy a DWORD from a global variable to a local variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a94dbdd03bb807ceb48c3ced7b08cbaf3"></a>asBC_WRTV1&#160;</td><td class="fielddoc"><p>Copy a BYTE from a variable to the address held in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af50492589b9b48fb6cce810ea12b2313"></a>asBC_WRTV2&#160;</td><td class="fielddoc"><p>Copy a WORD from a variable to the address held in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aecc937d822668f3d443c2cf7c2c9a91b"></a>asBC_WRTV4&#160;</td><td class="fielddoc"><p>Copy a DWORD from a variable to the address held in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac912670273a5cc5857967d6c4ee9fb71"></a>asBC_WRTV8&#160;</td><td class="fielddoc"><p>Copy a QWORD from a variable to the address held in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a0375f41153eeaa6d250a6ee262ffa0ba"></a>asBC_RDR1&#160;</td><td class="fielddoc"><p>Copy a BYTE from address held in the value register to a variable. Clear the top bytes in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aa470ed962fa3e1a86296998914cbcc12"></a>asBC_RDR2&#160;</td><td class="fielddoc"><p>Copy a WORD from address held in the value register to a variable. Clear the top word in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac66bc5d2959ef22b6c967313aa791b54"></a>asBC_RDR4&#160;</td><td class="fielddoc"><p>Copy a DWORD from address held in the value register to a variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a36dc7a09798a7055d8faece1321e241a"></a>asBC_RDR8&#160;</td><td class="fielddoc"><p>Copy a QWORD from address held in the value register to a variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a7eecc42f41efaa2a9e52a38b5b2e0761"></a>asBC_LDG&#160;</td><td class="fielddoc"><p>Load the address of a global variable into the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a506cf72989aae9c3f0613b3fdd788a96"></a>asBC_LDV&#160;</td><td class="fielddoc"><p>Load the address of a local variable into the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0adc83ae72a402eb4c8d8248ef2ef75d9c"></a>asBC_PGA&#160;</td><td class="fielddoc"><p>Push the address of a global variable on the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a17c0368321613c9e38e438f96b80bdd7"></a>asBC_CmpPtr&#160;</td><td class="fielddoc"><p>Compare two pointers. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0adb056673fe9802b5d8351835d0c4cea9"></a>asBC_VAR&#160;</td><td class="fielddoc"><p>Push the index of the variable on the stack, with the size of a pointer. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a92116eabda2e6b20e1ea2a13a316decd"></a>asBC_iTOf&#160;</td><td class="fielddoc"><p>Convert the 32bit integer value to a float in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a505d5d669a5d046b5fe5edbde407d12a"></a>asBC_fTOi&#160;</td><td class="fielddoc"><p>Convert the float value to a 32bit integer in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a6f445f24f6501cf4c3711929a1d5e111"></a>asBC_uTOf&#160;</td><td class="fielddoc"><p>Convert the unsigned 32bit integer value to a float in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a9e9e1d16d150ca95e5f8abee59aaed51"></a>asBC_fTOu&#160;</td><td class="fielddoc"><p>Convert the float value to an unsigned 32bit integer in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0afbfb6f5aaf4d6599e16b4bfe458ce01e"></a>asBC_sbTOi&#160;</td><td class="fielddoc"><p>Expand the low byte as a signed value to a full 32bit integer in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aad0cc8bb8012f257fa99f01b8b7035bd"></a>asBC_swTOi&#160;</td><td class="fielddoc"><p>Expand the low word as a signed value to a full 32bit integer in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a9c20fcde56da1d0386a10490fb13a7d6"></a>asBC_ubTOi&#160;</td><td class="fielddoc"><p>Expand the low byte as an unsigned value to a full 32bit integer in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a1d90e73c2b31b0e15282d092b46cf742"></a>asBC_uwTOi&#160;</td><td class="fielddoc"><p>Expand the low word as an unsigned value to a full 32bit integer in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0afb5dbe4edea3e5cfa521fd3a5738ccf6"></a>asBC_dTOi&#160;</td><td class="fielddoc"><p>Convert the double value in one variable to a 32bit integer in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ab316237649a76cf10a1b9bc68c2792c4"></a>asBC_dTOu&#160;</td><td class="fielddoc"><p>Convert the double value in one variable to a 32bit unsigned integer in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a854599de98fcbd9334c9223e8e9058db"></a>asBC_dTOf&#160;</td><td class="fielddoc"><p>Convert the double value in one variable to a float in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ad9a5f8875c44b01fa6e1501bb70bae00"></a>asBC_iTOd&#160;</td><td class="fielddoc"><p>Convert the 32bit integer value in one variable to a double in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0abb2e2f37012d6cb75b446fc992dba6c4"></a>asBC_uTOd&#160;</td><td class="fielddoc"><p>Convert the 32bit unsigned integer value in one variable to a double in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a8d1a589383ae9187b58a3f774cbe77cd"></a>asBC_fTOd&#160;</td><td class="fielddoc"><p>Convert the float value in one variable to a double in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a42520944f391260636e0eed5c9ab76a9"></a>asBC_ADDi&#160;</td><td class="fielddoc"><p>Add the values of two 32bit integer variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af04edb64674c1c46b1769b4f31828441"></a>asBC_SUBi&#160;</td><td class="fielddoc"><p>Subtract the values of two 32bit integer variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a93c630d303bb6e91e044d6afea71b798"></a>asBC_MULi&#160;</td><td class="fielddoc"><p>Multiply the values of two 32bit integer variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a27123834824beb61355869faf5e23cf4"></a>asBC_DIVi&#160;</td><td class="fielddoc"><p>Divide the values of two 32bit integer variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ae8e569143d23f682b3aecfa100bdfd4e"></a>asBC_MODi&#160;</td><td class="fielddoc"><p>Calculate the modulo of values of two 32bit integer variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ab1bffd05b8b41e4a9dd09618b82bba9d"></a>asBC_ADDf&#160;</td><td class="fielddoc"><p>Add the values of two float variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aca247b39114dc45ae993dd1cf80226aa"></a>asBC_SUBf&#160;</td><td class="fielddoc"><p>Subtract the values of two float variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ab32f923ffcabab481a2e46f702b17f7a"></a>asBC_MULf&#160;</td><td class="fielddoc"><p>Multiply the values of two float variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0acf3448b40f2fc34b4007f27c4f8488a2"></a>asBC_DIVf&#160;</td><td class="fielddoc"><p>Divide the values of two float variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ae54338068d6b6e965c497c6b1d68c64e"></a>asBC_MODf&#160;</td><td class="fielddoc"><p>Calculate the modulo of values of two float variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ad2ff7a206ad788bd2b37b8ee92be7940"></a>asBC_ADDd&#160;</td><td class="fielddoc"><p>Add the values of two double variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a40632786e202cc6a617bbe63a8d4cc0f"></a>asBC_SUBd&#160;</td><td class="fielddoc"><p>Subtract the values of two double variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a411e71202157cfece504379e6171a464"></a>asBC_MULd&#160;</td><td class="fielddoc"><p>Multiply the values of two double variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a016b86c3e0706775fc653d6f94048765"></a>asBC_DIVd&#160;</td><td class="fielddoc"><p>Divide the values of two double variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ac2137a8a8fe7af5070f37e796d863af2"></a>asBC_MODd&#160;</td><td class="fielddoc"><p>Calculate the modulo of values of two double variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a1194db3e433a943156d548b2bb34ef13"></a>asBC_ADDIi&#160;</td><td class="fielddoc"><p>Add a 32bit integer variable with a constant value and store the result in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ab77b30af827c52ee62a5ccab94d96003"></a>asBC_SUBIi&#160;</td><td class="fielddoc"><p>Subtract a 32bit integer variable with a constant value and store the result in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af29eb13449c228f4dead9ba6da590147"></a>asBC_MULIi&#160;</td><td class="fielddoc"><p>Multiply a 32bit integer variable with a constant value and store the result in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a15032e422f3346940aa37ec6dc6305d7"></a>asBC_ADDIf&#160;</td><td class="fielddoc"><p>Add a float variable with a constant value and store the result in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a83fc6f0a163316a6be6c280df57fcd13"></a>asBC_SUBIf&#160;</td><td class="fielddoc"><p>Subtract a float variable with a constant value and store the result in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a29cb2ee51427268cf549f90e110b1e38"></a>asBC_MULIf&#160;</td><td class="fielddoc"><p>Multiply a float variable with a constant value and store the result in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a880a2be05a247612df28ea4569a7a99b"></a>asBC_SetG4&#160;</td><td class="fielddoc"><p>Set the value of global variable to a 32bit word. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ad0c18f6eab27072771563d4464d06a4a"></a>asBC_ChkRefS&#160;</td><td class="fielddoc"><p>Throw an exception if the address stored on the stack points to a null pointer. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a81142673f63ffd177e20b6296718d3aa"></a>asBC_ChkNullV&#160;</td><td class="fielddoc"><p>Throw an exception if the variable is null. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aedb4e479a4988aac48f1facb6a0048d6"></a>asBC_CALLINTF&#160;</td><td class="fielddoc"><p>Jump to an interface method, indexed by the argument. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aea965df01399592f1e8c3950a35e837f"></a>asBC_iTOb&#160;</td><td class="fielddoc"><p>Convert a 32bit integer in a variable to a byte, clearing the top bytes. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0acdf698af6bd4a5e427922e9462244319"></a>asBC_iTOw&#160;</td><td class="fielddoc"><p>Convert a 32bit integer in a variable to a word, clearing the top word. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af3909e9889d0994c0d0190a147eac3cb"></a>asBC_SetV1&#160;</td><td class="fielddoc"><p>Same as <a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a95d9223bb76b2abcbc590318007aed93">SetV4</a>. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a709cec30c38c5dc89dfcd92341dafd61"></a>asBC_SetV2&#160;</td><td class="fielddoc"><p>Same as <a class="el" href="angelscript_8h.html#ab3692c4e5d47fc93f8c9646d1783aef0a95d9223bb76b2abcbc590318007aed93">SetV4</a>. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a4ef6c5e255ffe285bff104bacaed2ba9"></a>asBC_Cast&#160;</td><td class="fielddoc"><p>Pop an object handle to a script class from the stack. Perform a dynamic cast on it and store the result in the object register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ae66d679b16934aeb2c7047ea1b1fae85"></a>asBC_i64TOi&#160;</td><td class="fielddoc"><p>Convert the 64bit integer value in one variable to a 32bit integer in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af5f7cad82e5cd2dc4a3d690a2ab46bce"></a>asBC_uTOi64&#160;</td><td class="fielddoc"><p>Convert the 32bit unsigned integer value in one variable to a 64bit integer in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aa48a1b118c32dc9d5667b9039aa06bff"></a>asBC_iTOi64&#160;</td><td class="fielddoc"><p>Convert the 32bit integer value in one variable to a 64bit integer in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0acd75aec128802694c2674b122204e704"></a>asBC_fTOi64&#160;</td><td class="fielddoc"><p>Convert the float value in one variable to a 64bit integer in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a043e40662a884a7c39bbd982d3e2266f"></a>asBC_dTOi64&#160;</td><td class="fielddoc"><p>Convert the double value in the variable to a 64bit integer. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ae5bd9d9c6b756c2898f2776b0b08e793"></a>asBC_fTOu64&#160;</td><td class="fielddoc"><p>Convert the float value in one variable to a 64bit unsigned integer in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a062cb021be1b64d913527c22c7dba896"></a>asBC_dTOu64&#160;</td><td class="fielddoc"><p>Convert the double value in the variable to a 64bit unsigned integer. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a22f2099b91cb1bde2df44760ea2efed7"></a>asBC_i64TOf&#160;</td><td class="fielddoc"><p>Convert the 64bit integer value in one variable to a float in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ad293bf12c4a8de3c50794a9eaeac636d"></a>asBC_u64TOf&#160;</td><td class="fielddoc"><p>Convert the 64bit unsigned integer value in one variable to a float in another variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a7e110775dee3e08f9ef7e2215fb48b26"></a>asBC_i64TOd&#160;</td><td class="fielddoc"><p>Convert the 32bit integer value in the variable to a double. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a61a9abe7f4b17874cc1f2eff761bc3b2"></a>asBC_u64TOd&#160;</td><td class="fielddoc"><p>Convert the 32bit unsigned integer value in the variable to a double. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a3cf16372d571ec566ae93fd80e05b1ad"></a>asBC_NEGi64&#160;</td><td class="fielddoc"><p>Negate the 64bit integer value in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a6216ec910e53970e52e518da4786a37b"></a>asBC_INCi64&#160;</td><td class="fielddoc"><p>Increment the 64bit integer value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a27cdd04643b9331e2aedfb6c1af1c021"></a>asBC_DECi64&#160;</td><td class="fielddoc"><p>Decrement the 64bit integer value that is stored at the address pointed to by the reference in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a263c5cfa90baf8f63c5b4d110c3d9daa"></a>asBC_BNOT64&#160;</td><td class="fielddoc"><p>Perform a bitwise complement on the 64bit value in the variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ab1afb9b4dbebb726108b46887175c57e"></a>asBC_ADDi64&#160;</td><td class="fielddoc"><p>Perform an addition with two 64bit integer variables and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a14984f047b26178d73ea024e97b3718c"></a>asBC_SUBi64&#160;</td><td class="fielddoc"><p>Perform a subtraction with two 64bit integer variables and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a38931ac737104c4ccca730705bd7ec48"></a>asBC_MULi64&#160;</td><td class="fielddoc"><p>Perform a multiplication with two 64bit integer variables and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a9f31be749c98afaa86f5b3a83218752b"></a>asBC_DIVi64&#160;</td><td class="fielddoc"><p>Perform a division with two 64bit integer variables and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a3bd852f5aa7c1a12da37a7ac91b1c83f"></a>asBC_MODi64&#160;</td><td class="fielddoc"><p>Perform the modulo operation with two 64bit integer variables and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af1dff3cce666a689e8b1d5ceb91f1b42"></a>asBC_BAND64&#160;</td><td class="fielddoc"><p>Perform a bitwise and of two 64bit values and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a5d6d553690fa38dc7f2b6a7b9ee14345"></a>asBC_BOR64&#160;</td><td class="fielddoc"><p>Perform a bitwise or of two 64bit values and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ae4d7a6a1af23b2f14d5af7b6dfaa3f28"></a>asBC_BXOR64&#160;</td><td class="fielddoc"><p>Perform a bitwise exclusive or of two 64bit values and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af18e856f167de0796acb84d3f5df09b2"></a>asBC_BSLL64&#160;</td><td class="fielddoc"><p>Perform a logical left shift of a 64bit value and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0abb511dcd15fb9875ba270d5b95fed24d"></a>asBC_BSRL64&#160;</td><td class="fielddoc"><p>Perform a logical right shift of a 64bit value and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a4203e09b3bf5f15810f0e2076c0088a5"></a>asBC_BSRA64&#160;</td><td class="fielddoc"><p>Perform a arithmetical right shift of a 64bit value and store the result in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aa2c75f0562b433b18406a939bcd62e95"></a>asBC_CMPi64&#160;</td><td class="fielddoc"><p>Compare two 64bit integer variables and store the result in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af521b982839cdc97e9b2413ac085b09f"></a>asBC_CMPu64&#160;</td><td class="fielddoc"><p>Compare two unsigned 64bit integer variables and store the result in the value register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0af859e97239e00dd003a8f75fbf963ded"></a>asBC_ChkNullS&#160;</td><td class="fielddoc"><p>Check if a pointer on the stack is null, and if it is throw an exception. The argument is relative to the top of the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a1293f6086ce51f270a7d756413cabb9c"></a>asBC_ClrHi&#160;</td><td class="fielddoc"><p>Clear the upper bytes of the value register so that only the value in the lowest byte is kept. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a6705ee9692b45f118cfe0ea24581fae5"></a>asBC_JitEntry&#160;</td><td class="fielddoc"><p>If a JIT function is available and the argument is not 0 then call the JIT function. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a35c09c890b9f46160c193a3a07cdeedb"></a>asBC_CallPtr&#160;</td><td class="fielddoc"><p>Call a function stored in a local function pointer. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ab4a58c4177502bd6d3a034f2d4244404"></a>asBC_FuncPtr&#160;</td><td class="fielddoc"><p>Push a function pointer on the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a8950187a9c91330124df91bb27d7a1a3"></a>asBC_LoadThisR&#160;</td><td class="fielddoc"><p>Load the address to a property of the local object into the stack. PshV4 0, ADDSi x, PopRPtr. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0ae2923dbf7fc9bb70c0c3cbbf8673467c"></a>asBC_PshV8&#160;</td><td class="fielddoc"><p>Push the 64bit value from a variable onto the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a4e171bc08a91c52a5eae821ff3435892"></a>asBC_DIVu&#160;</td><td class="fielddoc"><p>Divide the values of two 32bit unsigned integer variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a22772f5830ff9c17b6427e70128711f8"></a>asBC_MODu&#160;</td><td class="fielddoc"><p>Calculate the modulo of values of two 32bit unsigned integer variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a8cc1a88aa5da6d91bbf7bccb7abc3327"></a>asBC_DIVu64&#160;</td><td class="fielddoc"><p>Divide the values of two 64bit unsigned integer variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aaa0fe36a1a3467428d9d9bc06bf038fe"></a>asBC_MODu64&#160;</td><td class="fielddoc"><p>Calculate the modulo of values of two 64bit unsigned integer variables and store in a third variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a55e484687643f87565827249a81cf3a8"></a>asBC_LoadRObjR&#160;</td><td class="fielddoc"><p>Load address of member of reference object into register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a2285121bf664f86d462560fde6dad0f7"></a>asBC_LoadVObjR&#160;</td><td class="fielddoc"><p>Load address of member of value object into register. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a8b1c7e7b7c8054b36a9d48c3452adf79"></a>asBC_RefCpyV&#160;</td><td class="fielddoc"><p>Copies a handle to a variable. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a9da365af8ea85e3eb538567207d4a705"></a>asBC_JLowZ&#160;</td><td class="fielddoc"><p>Jump if low byte of value register is 0. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a12e9c561f401be75a6db13a94a687d77"></a>asBC_JLowNZ&#160;</td><td class="fielddoc"><p>Jump if low byte of value register is not 0. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a60cb5c56bd8cd1dfd7bde88be588b19c"></a>asBC_AllocMem&#160;</td><td class="fielddoc"><p>Allocates memory for an initialization list buffer. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a8c8a41c980d7b8f2054780da0153ae64"></a>asBC_SetListSize&#160;</td><td class="fielddoc"><p>Sets a repeat count in the list buffer. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a980fccdeeebe67503f9623722ed893a5"></a>asBC_PshListElmnt&#160;</td><td class="fielddoc"><p>Pushes the address of an element in the list buffer on the stack. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a7abb1d21f26401e75305a2b4cf7a4733"></a>asBC_SetListType&#160;</td><td class="fielddoc"><p>Sets the type of the next element in the list buffer. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a1b9ae2022b484a3c44820b6528c68ac0"></a>asBC_POWi&#160;</td><td class="fielddoc"><p>Computes the power of for two int values. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a45adae8be4e9dde1b77dc9346786cfef"></a>asBC_POWu&#160;</td><td class="fielddoc"><p>Computes the power of for two uint values. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0aedc33b037796cfbb5879799a6bea3b0d"></a>asBC_POWf&#160;</td><td class="fielddoc"><p>Computes the power of for two float values. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a17794eb37e2e24d3f92945e492fd8fdc"></a>asBC_POWd&#160;</td><td class="fielddoc"><p>Computes the power of for two double values. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a550ee3e286be8a70a06194206c0ae1b9"></a>asBC_POWdi&#160;</td><td class="fielddoc"><p>Computes the power of where base is a double and exponent is an int value. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a7546139b9cafeae5d71a345ec3b4424d"></a>asBC_POWi64&#160;</td><td class="fielddoc"><p>Computes the power of for two int64 values. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a23bbb267da86c108b4fe23f0443d5f1d"></a>asBC_POWu64&#160;</td><td class="fielddoc"><p>Computes the power of for two uint64 values. </p> </td></tr> <tr><td class="fieldname"><a id="ab3692c4e5d47fc93f8c9646d1783aef0a25fe35c5c31674255821ecc3c9a9d23c"></a>asBC_Thiscall1&#160;</td><td class="fielddoc"><p>Call registered function with single 32bit integer argument. Suspend further execution if requested. </p> </td></tr> </table> </div> </div> <a id="a05f4716428617975227a75eef995d3dc"></a> <h2 class="memtitle"><span class="permalink"><a href="#a05f4716428617975227a75eef995d3dc">&#9670;&nbsp;</a></span>asEBCType</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a05f4716428617975227a75eef995d3dc">asEBCType</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca5d474089af62503917b5a9075ea884a0"></a>asBCTYPE_NO_ARG&#160;</td><td class="fielddoc"><p>Instruction + no args. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca2ed4017596353fbfd8284abb87693479"></a>asBCTYPE_W_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca35b791ccee8b22494cf5c0d1cd7c1bf1"></a>asBCTYPE_wW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (dest var) </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dcacda81b5a95de8ef351d80f7f007f3c1f"></a>asBCTYPE_DW_ARG&#160;</td><td class="fielddoc"><p>Instruction + DWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dcab6ce6fd0303ba86f9933afba82af1da5"></a>asBCTYPE_rW_DW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (source var) + DWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dcab5ccbe43d9de8e5261c5d98c0235e680"></a>asBCTYPE_QW_ARG&#160;</td><td class="fielddoc"><p>Instruction + QWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dcac7dee47b6d43b90ec5d3f348d9adb29b"></a>asBCTYPE_DW_DW_ARG&#160;</td><td class="fielddoc"><p>Instruction + DWORD arg + DWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca70e3f2b6c20b552f734afa1237ffbfa1"></a>asBCTYPE_wW_rW_rW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (dest var) + WORD arg (source var) + WORD arg (source var) </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dcad0f58ec314c7ee6b346428f181406462"></a>asBCTYPE_wW_QW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (dest var) + QWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca983e22175938d52ed285d05729082356"></a>asBCTYPE_wW_rW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (dest var) + WORD arg (source var) </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca8f31f45900a4e5a456c8423e6efa2435"></a>asBCTYPE_rW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (source var) </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dcaca83b5ca2543f825bfb235a7c75bf861"></a>asBCTYPE_wW_DW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (dest var) + DWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dcabd1019654afbbc88a6d7ec145d187d43"></a>asBCTYPE_wW_rW_DW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (dest var) + WORD arg (source var) + DWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca3bab72c18fc7528b191c07fa69ce8592"></a>asBCTYPE_rW_rW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (source var) + WORD arg (source var) </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca20eff83445fbfaeccf0099d04434ddff"></a>asBCTYPE_wW_W_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (dest var) + WORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca1923164123cd74d611b8ed4bf491a489"></a>asBCTYPE_QW_DW_ARG&#160;</td><td class="fielddoc"><p>Instruction + QWORD arg + DWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dcac7dd4b17f956dd9f77154a969826c5b9"></a>asBCTYPE_rW_QW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg (source var) + QWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca3363c16ca9a7dd52a6292e4006a97e25"></a>asBCTYPE_W_DW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg + DWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dca21c4ffbfac771e092bf8b229d041bfa8"></a>asBCTYPE_rW_W_DW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg(source var) + WORD arg + DWORD arg. </p> </td></tr> <tr><td class="fieldname"><a id="a05f4716428617975227a75eef995d3dcae203bd09b5f39c9c2b6f9da1cb125fc9"></a>asBCTYPE_rW_DW_DW_ARG&#160;</td><td class="fielddoc"><p>Instruction + WORD arg(source var) + DWORD arg + DWORD arg. </p> </td></tr> </table> </div> </div> <a id="a7e38df5b10ec8cbf2a688f1d114097c5"></a> <h2 class="memtitle"><span class="permalink"><a href="#a7e38df5b10ec8cbf2a688f1d114097c5">&#9670;&nbsp;</a></span>asEBehaviours</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a7e38df5b10ec8cbf2a688f1d114097c5">asEBehaviours</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5aa4cf235bfbf72ec03d0f651cea324101"></a>asBEHAVE_CONSTRUCT&#160;</td><td class="fielddoc"><p>Constructor. </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5a04c0b561986c6814e8a54ce3679178a2"></a>asBEHAVE_LIST_CONSTRUCT&#160;</td><td class="fielddoc"><p>Constructor used exclusively for initialization lists. </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5a0748a0f3a559354761ce15c2d1de2e51"></a>asBEHAVE_DESTRUCT&#160;</td><td class="fielddoc"><p>Destructor. </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5a0b3db16eea35213b6f41f8d19dc1bd4c"></a>asBEHAVE_FACTORY&#160;</td><td class="fielddoc"><p>Factory. </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5aea078bc3b877ce33a2335e78ddb4938d"></a>asBEHAVE_LIST_FACTORY&#160;</td><td class="fielddoc"><p>Factory used exclusively for initialization lists. </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5a1dfa5b72ad69a7bf70636d4fcb1b1d84"></a>asBEHAVE_ADDREF&#160;</td><td class="fielddoc"><p>AddRef. </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5a7134ce13c81967191af401a1e5170a0c"></a>asBEHAVE_RELEASE&#160;</td><td class="fielddoc"><p>Release. </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5a7a5e435e88a5fc1dcdee13fce091b081"></a>asBEHAVE_GET_WEAKREF_FLAG&#160;</td><td class="fielddoc"><p>Obtain weak ref flag. </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5a8c9afe12ff833cd09bd893e1408b9103"></a>asBEHAVE_TEMPLATE_CALLBACK&#160;</td><td class="fielddoc"><p>Callback for validating template instances. </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5af998529f8ea1e54567997b8fb2867640"></a>asBEHAVE_GETREFCOUNT&#160;</td><td class="fielddoc"><p>(GC) Get reference count </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5aadbad474a338c3a0fe6e90df679bb2e6"></a>asBEHAVE_SETGCFLAG&#160;</td><td class="fielddoc"><p>(GC) Set GC flag </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5abfce2539609e667f15b24bbc8551c7b7"></a>asBEHAVE_GETGCFLAG&#160;</td><td class="fielddoc"><p>(GC) Get GC flag </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5a08ccf78a37567b5dd192ff5d95c6667b"></a>asBEHAVE_ENUMREFS&#160;</td><td class="fielddoc"><p>(GC) Enumerate held references </p> </td></tr> <tr><td class="fieldname"><a id="a7e38df5b10ec8cbf2a688f1d114097c5a4275ebe0b4852f2d4a10d4d9db333fe9"></a>asBEHAVE_RELEASEREFS&#160;</td><td class="fielddoc"><p>(GC) Release all references </p> </td></tr> </table> </div> </div> <a id="a3ec92ea3c4762e44c2df788ceccdd1e4"></a> <h2 class="memtitle"><span class="permalink"><a href="#a3ec92ea3c4762e44c2df788ceccdd1e4">&#9670;&nbsp;</a></span>asECallConvTypes</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a3ec92ea3c4762e44c2df788ceccdd1e4">asECallConvTypes</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a3ec92ea3c4762e44c2df788ceccdd1e4a68ae43cc91cdfc3fa4590c9e6164e4f4"></a>asCALL_CDECL&#160;</td><td class="fielddoc"><p>A cdecl function. </p> </td></tr> <tr><td class="fieldname"><a id="a3ec92ea3c4762e44c2df788ceccdd1e4a138a08e8363ebc695636dfe987674e2e"></a>asCALL_STDCALL&#160;</td><td class="fielddoc"><p>A stdcall function. </p> </td></tr> <tr><td class="fieldname"><a id="a3ec92ea3c4762e44c2df788ceccdd1e4aa241a0c1deedaa2d55eb99a83829efad"></a>asCALL_THISCALL_ASGLOBAL&#160;</td><td class="fielddoc"><p>A thiscall class method registered as a global function. </p> </td></tr> <tr><td class="fieldname"><a id="a3ec92ea3c4762e44c2df788ceccdd1e4aea516c8742acc1edff6a43dc1bb09e96"></a>asCALL_THISCALL&#160;</td><td class="fielddoc"><p>A thiscall class method. </p> </td></tr> <tr><td class="fieldname"><a id="a3ec92ea3c4762e44c2df788ceccdd1e4ac08652c72f1cc0dc81c37812fab0e253"></a>asCALL_CDECL_OBJLAST&#160;</td><td class="fielddoc"><p>A cdecl function that takes the object pointer as the last parameter. </p> </td></tr> <tr><td class="fieldname"><a id="a3ec92ea3c4762e44c2df788ceccdd1e4a7c3e88628c2722d0a103b411d4aceaa0"></a>asCALL_CDECL_OBJFIRST&#160;</td><td class="fielddoc"><p>A cdecl function that takes the object pointer as the first parameter. </p> </td></tr> <tr><td class="fieldname"><a id="a3ec92ea3c4762e44c2df788ceccdd1e4a750c26b6a6e0c9ccbb93078f532ef8ce"></a>asCALL_GENERIC&#160;</td><td class="fielddoc"><p>A function using the generic calling convention. </p> </td></tr> <tr><td class="fieldname"><a id="a3ec92ea3c4762e44c2df788ceccdd1e4a491f0ab2b66032a7b5541364f7f225b1"></a>asCALL_THISCALL_OBJLAST&#160;</td><td class="fielddoc"><p>A thiscall class method registered as a functor object. </p> </td></tr> <tr><td class="fieldname"><a id="a3ec92ea3c4762e44c2df788ceccdd1e4a613a388ed51315f6fce19f3824d6b17a"></a>asCALL_THISCALL_OBJFIRST&#160;</td><td class="fielddoc"><p>A thiscall class method registered as a functor object. </p> </td></tr> </table> </div> </div> <a id="a2bf48c41455371788805269376ca5e41"></a> <h2 class="memtitle"><span class="permalink"><a href="#a2bf48c41455371788805269376ca5e41">&#9670;&nbsp;</a></span>asECompileFlags</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a2bf48c41455371788805269376ca5e41">asECompileFlags</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a2bf48c41455371788805269376ca5e41a85d0a4fa51dbcc4ad4150f406185b918"></a>asCOMP_ADD_TO_MODULE&#160;</td><td class="fielddoc"><p>The compiled function should be added to the scope of the module. </p> </td></tr> </table> </div> </div> <a id="a867f14b4137dd4602fda1e616b217a69"></a> <h2 class="memtitle"><span class="permalink"><a href="#a867f14b4137dd4602fda1e616b217a69">&#9670;&nbsp;</a></span>asEContextState</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a867f14b4137dd4602fda1e616b217a69">asEContextState</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a867f14b4137dd4602fda1e616b217a69a6d3730dd7a91aff81cafaaca4e93efaa"></a>asEXECUTION_FINISHED&#160;</td><td class="fielddoc"><p>The context has successfully completed the execution. </p> </td></tr> <tr><td class="fieldname"><a id="a867f14b4137dd4602fda1e616b217a69a7b5644be315c46f2fa44f032731242c7"></a>asEXECUTION_SUSPENDED&#160;</td><td class="fielddoc"><p>The execution is suspended and can be resumed. </p> </td></tr> <tr><td class="fieldname"><a id="a867f14b4137dd4602fda1e616b217a69a6f384f00eac7033b4da1430ea7267bbf"></a>asEXECUTION_ABORTED&#160;</td><td class="fielddoc"><p>The execution was aborted by the application. </p> </td></tr> <tr><td class="fieldname"><a id="a867f14b4137dd4602fda1e616b217a69aa3d548fa7d2278d848e50222b700c6c8"></a>asEXECUTION_EXCEPTION&#160;</td><td class="fielddoc"><p>The execution was terminated by an unhandled script exception. </p> </td></tr> <tr><td class="fieldname"><a id="a867f14b4137dd4602fda1e616b217a69ab976b0bdaae9969d72a7c73db62e61e1"></a>asEXECUTION_PREPARED&#160;</td><td class="fielddoc"><p>The context has been prepared for a new execution. </p> </td></tr> <tr><td class="fieldname"><a id="a867f14b4137dd4602fda1e616b217a69a684a042709702ab93417d7db98ae7090"></a>asEXECUTION_UNINITIALIZED&#160;</td><td class="fielddoc"><p>The context is not initialized. </p> </td></tr> <tr><td class="fieldname"><a id="a867f14b4137dd4602fda1e616b217a69a690200ba7f2d821b0f330ac4220b299a"></a>asEXECUTION_ACTIVE&#160;</td><td class="fielddoc"><p>The context is currently executing a function call. </p> </td></tr> <tr><td class="fieldname"><a id="a867f14b4137dd4602fda1e616b217a69a9024318029d37f82b07b8c92a42b1bb2"></a>asEXECUTION_ERROR&#160;</td><td class="fielddoc"><p>The context has encountered an error and must be reinitialized. </p> </td></tr> </table> </div> </div> <a id="a53c2e8a74ade77c928316396394ebe0f"></a> <h2 class="memtitle"><span class="permalink"><a href="#a53c2e8a74ade77c928316396394ebe0f">&#9670;&nbsp;</a></span>asEEngineProp</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0f">asEEngineProp</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa8facaf887921a6b26e5a1f06e01ec37a"></a>asEP_ALLOW_UNSAFE_REFERENCES&#160;</td><td class="fielddoc"><p>Allow unsafe references. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa6159294272e4d20dd4b35359a25f3ac6"></a>asEP_OPTIMIZE_BYTECODE&#160;</td><td class="fielddoc"><p>Optimize byte code. Default: true. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fabf1577418b716c92f0a85be3e2617243"></a>asEP_COPY_SCRIPT_SECTIONS&#160;</td><td class="fielddoc"><p>Copy script section memory. Default: true. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa1ab4c8f8734f0d90bee4005afd810f83"></a>asEP_MAX_STACK_SIZE&#160;</td><td class="fielddoc"><p>Maximum stack size in bytes for script contexts. Default: 0 (no limit). </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa6dc1c33f9227c66f18fc0f95a0c798b2"></a>asEP_USE_CHARACTER_LITERALS&#160;</td><td class="fielddoc"><p>Interpret single quoted strings as character literals. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa218fdf7e181bf9ee0498112f5a87c415"></a>asEP_ALLOW_MULTILINE_STRINGS&#160;</td><td class="fielddoc"><p>Allow linebreaks in string constants. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa77c3747503489ca122aa61276dae3c1f"></a>asEP_ALLOW_IMPLICIT_HANDLE_TYPES&#160;</td><td class="fielddoc"><p>Allow script to declare implicit handle types. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa73b396e4ea6376f0962d19add962bd91"></a>asEP_BUILD_WITHOUT_LINE_CUES&#160;</td><td class="fielddoc"><p>Remove SUSPEND instructions between each statement. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0facac241d97facce4eaf9e5b0ca40dfcf1"></a>asEP_INIT_GLOBAL_VARS_AFTER_BUILD&#160;</td><td class="fielddoc"><p>Initialize global variables after a build. Default: true. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa90adb1e54ce0217235545941daa2dccd"></a>asEP_REQUIRE_ENUM_SCOPE&#160;</td><td class="fielddoc"><p>When set the enum values must be prefixed with the enum type. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa02405d96a12b81aa816986b22bf752c2"></a>asEP_SCRIPT_SCANNER&#160;</td><td class="fielddoc"><p>Select scanning method: 0 - ASCII, 1 - UTF8. Default: 1 (UTF8). </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa7ff74f4afa490b55839daaf217cf898c"></a>asEP_INCLUDE_JIT_INSTRUCTIONS&#160;</td><td class="fielddoc"><p>When set extra bytecode instructions needed for JIT compiled funcions will be included. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fab6daa2ae0c712da7f6f16d698305fba1"></a>asEP_STRING_ENCODING&#160;</td><td class="fielddoc"><p>Select string encoding for literals: 0 - UTF8/ASCII, 1 - UTF16. Default: 0 (UTF8) </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0facc694c9d52274a113262ebf5984f20ad"></a>asEP_PROPERTY_ACCESSOR_MODE&#160;</td><td class="fielddoc"><p>Enable or disable property accessors: 0 - no accessors, 1 - app registered accessors only, property keyword optional, 2 - app and script created accessors, property keyword optional, 3 - app and script created accesors, property keyword required. Default: 3. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa530e8d9576f94a258446c5fb9b7bd7a5"></a>asEP_EXPAND_DEF_ARRAY_TO_TMPL&#160;</td><td class="fielddoc"><p>Format default array in template form in messages and declarations. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa9b5d1d8ff5143a6a77dfd18143d87c7d"></a>asEP_AUTO_GARBAGE_COLLECT&#160;</td><td class="fielddoc"><p>Enable or disable automatic garbage collection. Default: true. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fab81c81f4fdeb616dd6487da48a0c3456"></a>asEP_DISALLOW_GLOBAL_VARS&#160;</td><td class="fielddoc"><p>Disallow the use of global variables in the script. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa6d80b60995ad046918b2376d7d79f2af"></a>asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT&#160;</td><td class="fielddoc"><p>When true, the compiler will always provide a default constructor for script classes. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fadd96da828860b5de2352de07c2456633"></a>asEP_COMPILER_WARNINGS&#160;</td><td class="fielddoc"><p>Set how warnings should be treated: 0 - dismiss, 1 - emit, 2 - treat as error. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa563bec877e91b0646c47197b2ae7ac0c"></a>asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE&#160;</td><td class="fielddoc"><p>Disallow value assignment for reference types to avoid ambiguity. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa9c876445c7d138ad096705fc18f311d1"></a>asEP_ALTER_SYNTAX_NAMED_ARGS&#160;</td><td class="fielddoc"><p>Change the script syntax for named arguments: 0 - no change, 1 - accept '=' but warn, 2 - accept '=' without warning. Default: 0. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fae6af9c6963372e11c6da873868f594cd"></a>asEP_DISABLE_INTEGER_DIVISION&#160;</td><td class="fielddoc"><p>When true, the / and /= operators will perform floating-point division (i.e. 1/2 = 0.5 instead of 0). Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fabed7d49670612ec27227210021926692"></a>asEP_DISALLOW_EMPTY_LIST_ELEMENTS&#160;</td><td class="fielddoc"><p>When true, the initialization lists may not contain empty elements. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0faa6f88a81f5706542acb94f3c470ac3f3"></a>asEP_PRIVATE_PROP_AS_PROTECTED&#160;</td><td class="fielddoc"><p>When true, private properties behave like protected properties. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa651f1843c922a61ccee5c81fac58e4d1"></a>asEP_ALLOW_UNICODE_IDENTIFIERS&#160;</td><td class="fielddoc"><p>When true, the compiler will not give an error if identifiers contain characters with byte value above 127, thus permit identifiers to contain international characters. Default: false. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa9658b61d2368cc84fe816c817444e0ba"></a>asEP_HEREDOC_TRIM_MODE&#160;</td><td class="fielddoc"><p>Define how heredoc strings will be trimmed by the compiler: 0 - never trim, 1 - trim if multiple lines, 2 - always trim. Default: 1. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fab441e1bdd7488bbe8f6dfa9c6b80e4fc"></a>asEP_MAX_NESTED_CALLS&#160;</td><td class="fielddoc"><p>Define the maximum number of nested calls the script engine will allow. Default: 100. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa58fa0f29330923b24ab795e7c6ada52e"></a>asEP_GENERIC_CALL_MODE&#160;</td><td class="fielddoc"><p>Define how generic calling convention treats handles: 0 - ignore auto handles, 1 - treat them the same way as native calling convention. Default: 1. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa6d74b8325be718ace661484f1e8e7fb1"></a>asEP_INIT_STACK_SIZE&#160;</td><td class="fielddoc"><p>Initial stack size in bytes for script contexts. Default: 4096. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0faabb0261a40d98af8a0f6d38c2150a4e8"></a>asEP_INIT_CALL_STACK_SIZE&#160;</td><td class="fielddoc"><p>Initial call stack size for script contexts. Default: 10. </p> </td></tr> <tr><td class="fieldname"><a id="a53c2e8a74ade77c928316396394ebe0fa4d8ec81a881162a1f0689b56ba864346"></a>asEP_MAX_CALL_STACK_SIZE&#160;</td><td class="fielddoc"><p>Maximum call stack size for script contexts. Default: 0 (no limit) </p> </td></tr> </table> </div> </div> <a id="a06fb2a1ebf5d007e0d542abced1b648f"></a> <h2 class="memtitle"><span class="permalink"><a href="#a06fb2a1ebf5d007e0d542abced1b648f">&#9670;&nbsp;</a></span>asEFuncType</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a06fb2a1ebf5d007e0d542abced1b648f">asEFuncType</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a06fb2a1ebf5d007e0d542abced1b648fa9ea0b7b39362f427b7449b11d70f306b"></a>asFUNC_SYSTEM&#160;</td><td class="fielddoc"><p>An application registered function. </p> </td></tr> <tr><td class="fieldname"><a id="a06fb2a1ebf5d007e0d542abced1b648fac5431c6f2ee2e7cf530739c01c1343eb"></a>asFUNC_SCRIPT&#160;</td><td class="fielddoc"><p>A script implemented function. </p> </td></tr> <tr><td class="fieldname"><a id="a06fb2a1ebf5d007e0d542abced1b648fac245ebb3ca53d4037e28de80ae81991f"></a>asFUNC_INTERFACE&#160;</td><td class="fielddoc"><p>An interface method. </p> </td></tr> <tr><td class="fieldname"><a id="a06fb2a1ebf5d007e0d542abced1b648fac6a82b2b64cfee8e143a41b4b627083a"></a>asFUNC_VIRTUAL&#160;</td><td class="fielddoc"><p>A virtual method for script classes. </p> </td></tr> <tr><td class="fieldname"><a id="a06fb2a1ebf5d007e0d542abced1b648fa73c9b6201770e89cb90212c793ca5173"></a>asFUNC_FUNCDEF&#160;</td><td class="fielddoc"><p>A function definition. </p> </td></tr> <tr><td class="fieldname"><a id="a06fb2a1ebf5d007e0d542abced1b648fa9c44f646079e0592316cf5892e33d0ec"></a>asFUNC_IMPORTED&#160;</td><td class="fielddoc"><p>An imported function. </p> </td></tr> <tr><td class="fieldname"><a id="a06fb2a1ebf5d007e0d542abced1b648fa02773b148f9c6fb3ed5d945a940f302a"></a>asFUNC_DELEGATE&#160;</td><td class="fielddoc"><p>A function delegate. </p> </td></tr> </table> </div> </div> <a id="ac06582350753eb4d89d6ba9442eadf9d"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac06582350753eb4d89d6ba9442eadf9d">&#9670;&nbsp;</a></span>asEGCFlags</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#ac06582350753eb4d89d6ba9442eadf9d">asEGCFlags</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ac06582350753eb4d89d6ba9442eadf9da31e476bfb875b0f4fb209a3ef2540709"></a>asGC_FULL_CYCLE&#160;</td><td class="fielddoc"><p>Execute a full cycle. </p> </td></tr> <tr><td class="fieldname"><a id="ac06582350753eb4d89d6ba9442eadf9da33a4cea43ee17e4f01bef742762e5af8"></a>asGC_ONE_STEP&#160;</td><td class="fielddoc"><p>Execute only one step. </p> </td></tr> <tr><td class="fieldname"><a id="ac06582350753eb4d89d6ba9442eadf9da61ab8361ad09823a287572d026efe7f1"></a>asGC_DESTROY_GARBAGE&#160;</td><td class="fielddoc"><p>Destroy known garbage. </p> </td></tr> <tr><td class="fieldname"><a id="ac06582350753eb4d89d6ba9442eadf9da3ff3b60e4d1bbc94f6ad46604994526a"></a>asGC_DETECT_GARBAGE&#160;</td><td class="fielddoc"><p>Detect garbage with circular references. </p> </td></tr> </table> </div> </div> <a id="ae4cf50de5273eb8c03c6e91e6e014f0c"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae4cf50de5273eb8c03c6e91e6e014f0c">&#9670;&nbsp;</a></span>asEGMFlags</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#ae4cf50de5273eb8c03c6e91e6e014f0c">asEGMFlags</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ae4cf50de5273eb8c03c6e91e6e014f0ca2feb963eb04c221e251867bc3a93d79d"></a>asGM_ONLY_IF_EXISTS&#160;</td><td class="fielddoc"><p>Don't return any module if it is not found. </p> </td></tr> <tr><td class="fieldname"><a id="ae4cf50de5273eb8c03c6e91e6e014f0cafaa7b80aa39b669fbe250c0822af63bb"></a>asGM_CREATE_IF_NOT_EXISTS&#160;</td><td class="fielddoc"><p>Create the module if it doesn't exist. </p> </td></tr> <tr><td class="fieldname"><a id="ae4cf50de5273eb8c03c6e91e6e014f0ca0843ab784ed9a9ea6cb47d915825186f"></a>asGM_ALWAYS_CREATE&#160;</td><td class="fielddoc"><p>Always create a new module, discarding the existing one. </p> </td></tr> </table> </div> </div> <a id="a8badcd23652646db5c5c6981dc73d4f5"></a> <h2 class="memtitle"><span class="permalink"><a href="#a8badcd23652646db5c5c6981dc73d4f5">&#9670;&nbsp;</a></span>asEMsgType</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a8badcd23652646db5c5c6981dc73d4f5">asEMsgType</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a8badcd23652646db5c5c6981dc73d4f5a2e3d48fd09f1ca865fc5b81b0dbeb7d4"></a>asMSGTYPE_ERROR&#160;</td><td class="fielddoc"><p>The message is an error. </p> </td></tr> <tr><td class="fieldname"><a id="a8badcd23652646db5c5c6981dc73d4f5a210c2023d6971d688a0302096acf945d"></a>asMSGTYPE_WARNING&#160;</td><td class="fielddoc"><p>The message is a warning. </p> </td></tr> <tr><td class="fieldname"><a id="a8badcd23652646db5c5c6981dc73d4f5ae29dba474231c07149dca09a9258f80d"></a>asMSGTYPE_INFORMATION&#160;</td><td class="fielddoc"><p>The message is informational only. </p> </td></tr> </table> </div> </div> <a id="a855d86fa9ee15b9f75e553ee376b5c7a"></a> <h2 class="memtitle"><span class="permalink"><a href="#a855d86fa9ee15b9f75e553ee376b5c7a">&#9670;&nbsp;</a></span>asEObjTypeFlags</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a855d86fa9ee15b9f75e553ee376b5c7a">asEObjTypeFlags</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa9450e038342b36c745858d2e5ae4b861"></a>asOBJ_REF&#160;</td><td class="fielddoc"><p>A reference type. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa9fc16a8ac0f30f9ff9c6568e0b7be91d"></a>asOBJ_VALUE&#160;</td><td class="fielddoc"><p>A value type. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aacc1d835f9c25043cef86026a4aa6a470"></a>asOBJ_GC&#160;</td><td class="fielddoc"><p>A garbage collected type. Only valid for reference types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa8ad017ddf25368870b28ee0fba96495a"></a>asOBJ_POD&#160;</td><td class="fielddoc"><p>A plain-old-data type. Only valid for value types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aafa1830b02c4d51ddc25451e7ad1a7592"></a>asOBJ_NOHANDLE&#160;</td><td class="fielddoc"><p>This reference type doesn't allow handles to be held. Only valid for reference types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aaaae92b24e278976320f19d9dc75fe6db"></a>asOBJ_SCOPED&#160;</td><td class="fielddoc"><p>The life time of objects of this type are controlled by the scope of the variable. Only valid for reference types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aae8de459b4106475aa8766edb5b088aac"></a>asOBJ_TEMPLATE&#160;</td><td class="fielddoc"><p>A template type. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aadf3d1f30658e593f48c5c5f542ac4845"></a>asOBJ_ASHANDLE&#160;</td><td class="fielddoc"><p>The value type should be treated as a handle. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa103297ed88696a3c30ec12e533d902c3"></a>asOBJ_APP_CLASS&#160;</td><td class="fielddoc"><p>The C++ type is a class type. Only valid for value types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aafd799c0705cee720a12ceb2838796024"></a>asOBJ_APP_CLASS_CONSTRUCTOR&#160;</td><td class="fielddoc"><p>The C++ class has an explicit constructor. Only valid for value types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa18d80c6d92e4bc104955da393c966917"></a>asOBJ_APP_CLASS_DESTRUCTOR&#160;</td><td class="fielddoc"><p>The C++ class has an explicit destructor. Only valid for value types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa6bf9b7bead31a40e7983538d8cecc3a4"></a>asOBJ_APP_CLASS_ASSIGNMENT&#160;</td><td class="fielddoc"><p>The C++ class has an explicit assignment operator. Only valid for value types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa925febfd30b150d97a84b7c6ee6a8677"></a>asOBJ_APP_CLASS_COPY_CONSTRUCTOR&#160;</td><td class="fielddoc"><p>The C++ class has an explicit copy constructor. Only valid for value types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa3eb67e27cc0fac7602934c1ff101aed5"></a>asOBJ_APP_CLASS_C&#160;</td><td class="fielddoc"><p>The C++ type is a class with a constructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aaf15f3dd82be0e77e05ee0dbea096bb36"></a>asOBJ_APP_CLASS_CD&#160;</td><td class="fielddoc"><p>The C++ type is a class with a constructor and destructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa90b85700943e8acb45316943f1951d04"></a>asOBJ_APP_CLASS_CA&#160;</td><td class="fielddoc"><p>The C++ type is a class with a constructor and assignment operator. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa619d54158a026e44bc5cffbb30794497"></a>asOBJ_APP_CLASS_CK&#160;</td><td class="fielddoc"><p>The C++ type is a class with a constructor and copy constructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aae13159e3ea949d52803cb635538a77f2"></a>asOBJ_APP_CLASS_CDA&#160;</td><td class="fielddoc"><p>The C++ type is a class with a constructor, destructor, and assignment operator. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa2aa6c871af75df3852f52658bf284765"></a>asOBJ_APP_CLASS_CDK&#160;</td><td class="fielddoc"><p>The C++ type is a class with a constructor, destructor, and copy constructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa97b022a4656cd9f351cd68c3903170b2"></a>asOBJ_APP_CLASS_CAK&#160;</td><td class="fielddoc"><p>The C++ type is a class with a constructor, assignment operator, and copy constructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa12d358962300537f2b0da20106eb270c"></a>asOBJ_APP_CLASS_CDAK&#160;</td><td class="fielddoc"><p>The C++ type is a class with a constructor, destructor, assignment operator, and copy constructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa30a67a6e98721d20d41b70fe961ff778"></a>asOBJ_APP_CLASS_D&#160;</td><td class="fielddoc"><p>The C++ type is a class with a destructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa38dd93911127894c5594474b4f06db1a"></a>asOBJ_APP_CLASS_DA&#160;</td><td class="fielddoc"><p>The C++ type is a class with a destructor and assignment operator. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aab59c583cdcee2acce632f35db39139ae"></a>asOBJ_APP_CLASS_DK&#160;</td><td class="fielddoc"><p>The C++ type is a class with a destructor and copy constructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa4b7a67f596940218860dc36ad9a4c66c"></a>asOBJ_APP_CLASS_DAK&#160;</td><td class="fielddoc"><p>The C++ type is a class with a destructor, assignment operator, and copy constructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aaf7389e5dc914e6ab121580430be6d88b"></a>asOBJ_APP_CLASS_A&#160;</td><td class="fielddoc"><p>The C++ type is a class with an assignment operator. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa7b1ce7e4c79ba23fd26b01474d550173"></a>asOBJ_APP_CLASS_AK&#160;</td><td class="fielddoc"><p>The C++ type is a class with an assignment operator and copy constructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa54236f54163e1df076bef918a862bd82"></a>asOBJ_APP_CLASS_K&#160;</td><td class="fielddoc"><p>The C++ type is a class with a copy constructor. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa4d3329b6e6e223207da73c97f01533e7"></a>asOBJ_APP_CLASS_MORE_CONSTRUCTORS&#160;</td><td class="fielddoc"><p>The C++ class has additional constructors beyond the default and copy constructors. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa539ede421d313b03464c88cb15f08c75"></a>asOBJ_APP_PRIMITIVE&#160;</td><td class="fielddoc"><p>The C++ type is a primitive type. Only valid for value types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa7f7690d53d9bfc580e09ac7bf5868175"></a>asOBJ_APP_FLOAT&#160;</td><td class="fielddoc"><p>The C++ type is a float or double. Only valid for value types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa84a949c5cc6d4d872054baac1a085419"></a>asOBJ_APP_ARRAY&#160;</td><td class="fielddoc"><p>The C++ type is a static array. Only valid for value types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa5b8de58c5be3145aaa3e54008fb2edeb"></a>asOBJ_APP_CLASS_ALLINTS&#160;</td><td class="fielddoc"><p>The C++ class can be treated as if all its members are integers. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa12afb6a0fa4ac874ce89815d3611823d"></a>asOBJ_APP_CLASS_ALLFLOATS&#160;</td><td class="fielddoc"><p>The C++ class can be treated as if all its members are floats or doubles. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aad8b12da6bf9cd48990d48c2ddf13584d"></a>asOBJ_NOCOUNT&#160;</td><td class="fielddoc"><p>The type doesn't use reference counting. Only valid for reference types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa244efb813b401b3a6d087c3add802818"></a>asOBJ_APP_CLASS_ALIGN8&#160;</td><td class="fielddoc"><p>The C++ class contains types that may require 8byte alignment. Only valid for value types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aaee8bfdbc6c2faac1938bba7e3a8b5ff2"></a>asOBJ_IMPLICIT_HANDLE&#160;</td><td class="fielddoc"><p>The object is declared for implicit handle. Only valid for reference types. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa6570f63d7f13e7d945770228a82f1f12"></a>asOBJ_MASK_VALID_FLAGS&#160;</td><td class="fielddoc"><p>This mask shows which flags are value for RegisterObjectType. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aaa82f3ef517372e0db029f7dcfe7f88eb"></a>asOBJ_SCRIPT_OBJECT&#160;</td><td class="fielddoc"><p>The object is a script class or an interface. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa92354ace56201eb543c818b6c0852baf"></a>asOBJ_SHARED&#160;</td><td class="fielddoc"><p>Type object type is shared between modules. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa770f4012f052a1190edbac8931140091"></a>asOBJ_NOINHERIT&#160;</td><td class="fielddoc"><p>The object type is marked as final and cannot be inherited. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa5b0f6287649893c8a04b43ed1f71a182"></a>asOBJ_FUNCDEF&#160;</td><td class="fielddoc"><p>The type is a script funcdef. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aaa1094cbe2986e60ba82da9dea38bba05"></a>asOBJ_LIST_PATTERN&#160;</td><td class="fielddoc"><p>Internal type. Do not use. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa018e73b8c343fe8f46fa7a7829643ff9"></a>asOBJ_ENUM&#160;</td><td class="fielddoc"><p>The type is an enum. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa8e4f2ff9cea9a561be32711c91bf71e6"></a>asOBJ_TEMPLATE_SUBTYPE&#160;</td><td class="fielddoc"><p>Internal type. Do no use. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aad9ec544ec0cca5ec329d19bceefadf0c"></a>asOBJ_TYPEDEF&#160;</td><td class="fielddoc"><p>The type is a typedef. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aa7c3d513b69c810647dbb80d48da77ee5"></a>asOBJ_ABSTRACT&#160;</td><td class="fielddoc"><p>The class is abstract, i.e. cannot be instantiated. </p> </td></tr> <tr><td class="fieldname"><a id="a855d86fa9ee15b9f75e553ee376b5c7aacb0a87a6461924a892502c0e7a861d24"></a>asOBJ_APP_ALIGN16&#160;</td><td class="fielddoc"><p>Reserved for future use. </p> </td></tr> </table> </div> </div> <a id="a6e2a1647f02f2c5da931bab09e860f54"></a> <h2 class="memtitle"><span class="permalink"><a href="#a6e2a1647f02f2c5da931bab09e860f54">&#9670;&nbsp;</a></span>asERetCodes</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a6e2a1647f02f2c5da931bab09e860f54">asERetCodes</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a0bf59062f03c90599e66a87275f37854"></a>asSUCCESS&#160;</td><td class="fielddoc"><p>Success. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54ac265666b65474ec2848d93201a5bc8c8"></a>asERROR&#160;</td><td class="fielddoc"><p>Failure. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54aa818a5cf319a2b2da155554d33cc91b4"></a>asCONTEXT_ACTIVE&#160;</td><td class="fielddoc"><p>The context is active. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54aaca0bfc695713c03655328bf0e2ff814"></a>asCONTEXT_NOT_FINISHED&#160;</td><td class="fielddoc"><p>The context is not finished. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a82940f46469cd8cee7b00b346611658c"></a>asCONTEXT_NOT_PREPARED&#160;</td><td class="fielddoc"><p>The context is not prepared. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a04e0f0b1ea30eacff3b4a6dddf2060b8"></a>asINVALID_ARG&#160;</td><td class="fielddoc"><p>Invalid argument. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54ad021afee96a6ef28423c2d37d3430eed"></a>asNO_FUNCTION&#160;</td><td class="fielddoc"><p>The function was not found. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a93ccbf6a4f741cb8c0c7ef3fae4c4084"></a>asNOT_SUPPORTED&#160;</td><td class="fielddoc"><p>Not supported. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a85a932230d1622bcb5ec341d25db7775"></a>asINVALID_NAME&#160;</td><td class="fielddoc"><p>Invalid name. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a0210997973bc0b74288a2041757f2763"></a>asNAME_TAKEN&#160;</td><td class="fielddoc"><p>The name is already taken. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54ab25fab2dbf4379d7a95a800b765287e4"></a>asINVALID_DECLARATION&#160;</td><td class="fielddoc"><p>Invalid declaration. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54aa9b05e66771b2af2e7d14d32701a6015"></a>asINVALID_OBJECT&#160;</td><td class="fielddoc"><p>Invalid object. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a4af648067b42f433f0b1d7141f6e487c"></a>asINVALID_TYPE&#160;</td><td class="fielddoc"><p>Invalid type. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a8025c1eca773e41db5f3102ae3c41690"></a>asALREADY_REGISTERED&#160;</td><td class="fielddoc"><p>Already registered. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54acb8338c55edbf8c27e2eb0b2505a0773"></a>asMULTIPLE_FUNCTIONS&#160;</td><td class="fielddoc"><p>Multiple matching functions. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a4cf88b5ffb76ebe34cb57d4d983bae79"></a>asNO_MODULE&#160;</td><td class="fielddoc"><p>The module was not found. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54aa465751329c2a7315318f609b1c271d4"></a>asNO_GLOBAL_VAR&#160;</td><td class="fielddoc"><p>The global variable was not found. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a7416ebaf18f32e180595fb366a072754"></a>asINVALID_CONFIGURATION&#160;</td><td class="fielddoc"><p>Invalid configuration. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a87279b314ed35fc9a6bff9e7cb05eb73"></a>asINVALID_INTERFACE&#160;</td><td class="fielddoc"><p>Invalid interface. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a412d2352693e848f46ccdd93c8d047e4"></a>asCANT_BIND_ALL_FUNCTIONS&#160;</td><td class="fielddoc"><p>All imported functions couldn't be bound. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54ab11ea721572e02e63498b681105fe8cc"></a>asLOWER_ARRAY_DIMENSION_NOT_REGISTERED&#160;</td><td class="fielddoc"><p>The array sub type has not been registered yet. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54ace5f5b97f2832c2f3aed3bb47ac1e486"></a>asWRONG_CONFIG_GROUP&#160;</td><td class="fielddoc"><p>Wrong configuration group. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54ae38f8f5613a631df20d2cc105aafc612"></a>asCONFIG_GROUP_IS_IN_USE&#160;</td><td class="fielddoc"><p>The configuration group is in use. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a5cd00c005a05345d8967021ebaae51f8"></a>asILLEGAL_BEHAVIOUR_FOR_TYPE&#160;</td><td class="fielddoc"><p>Illegal behaviour for the type. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a2774780aba35e11f224f8c0bd0937207"></a>asWRONG_CALLING_CONV&#160;</td><td class="fielddoc"><p>The specified calling convention doesn't match the function/method pointer. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54abbab3f809b0eeea2c331e5239be517c1"></a>asBUILD_IN_PROGRESS&#160;</td><td class="fielddoc"><p>A build is currently in progress. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a539a1fcf3f48feaaf7c0776c88123430"></a>asINIT_GLOBAL_VARS_FAILED&#160;</td><td class="fielddoc"><p>The initialization of global variables failed. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54a9a5232a5c1028cd729a744f592387059"></a>asOUT_OF_MEMORY&#160;</td><td class="fielddoc"><p>It wasn't possible to allocate the needed memory. </p> </td></tr> <tr><td class="fieldname"><a id="a6e2a1647f02f2c5da931bab09e860f54af1e13f62c802e525a94722429575a345"></a>asMODULE_IS_IN_USE&#160;</td><td class="fielddoc"><p>The module is referred to by live objects or from the application. </p> </td></tr> </table> </div> </div> <a id="a012a602727ca3fe1efa27053bc58cbca"></a> <h2 class="memtitle"><span class="permalink"><a href="#a012a602727ca3fe1efa27053bc58cbca">&#9670;&nbsp;</a></span>asETokenClass</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a012a602727ca3fe1efa27053bc58cbca">asETokenClass</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a012a602727ca3fe1efa27053bc58cbcaa2a6ba011564d30250b5664beee57f727"></a>asTC_UNKNOWN&#160;</td><td class="fielddoc"><p>Unknown token. </p> </td></tr> <tr><td class="fieldname"><a id="a012a602727ca3fe1efa27053bc58cbcaa96a4ebcca4fd7cade65c6163d4eb2bc0"></a>asTC_KEYWORD&#160;</td><td class="fielddoc"><p>Keyword token. </p> </td></tr> <tr><td class="fieldname"><a id="a012a602727ca3fe1efa27053bc58cbcaa75fd6044f67010b490a65ff3718d93e2"></a>asTC_VALUE&#160;</td><td class="fielddoc"><p>Literal value token. </p> </td></tr> <tr><td class="fieldname"><a id="a012a602727ca3fe1efa27053bc58cbcaad31e06870d87e2eb0d37da0bdd06d87f"></a>asTC_IDENTIFIER&#160;</td><td class="fielddoc"><p>Identifier token. </p> </td></tr> <tr><td class="fieldname"><a id="a012a602727ca3fe1efa27053bc58cbcaac738f8a91d1e0badd12d456206372224"></a>asTC_COMMENT&#160;</td><td class="fielddoc"><p>Comment token. </p> </td></tr> <tr><td class="fieldname"><a id="a012a602727ca3fe1efa27053bc58cbcaa7ca0b961e4d799140f79c971d3596cf8"></a>asTC_WHITESPACE&#160;</td><td class="fielddoc"><p>White space token. </p> </td></tr> </table> </div> </div> <a id="ae8c3a67a97321be53181e9ed396ad83a"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae8c3a67a97321be53181e9ed396ad83a">&#9670;&nbsp;</a></span>asETypeIdFlags</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#ae8c3a67a97321be53181e9ed396ad83a">asETypeIdFlags</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aad924c0d48ab734431bbd7467a9bfa819"></a>asTYPEID_VOID&#160;</td><td class="fielddoc"><p>The type id for void. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa502865ff428df06342ac9d94d69318ec"></a>asTYPEID_BOOL&#160;</td><td class="fielddoc"><p>The type id for bool. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa7e647a9a1ce963f22d5c384673d0dc5f"></a>asTYPEID_INT8&#160;</td><td class="fielddoc"><p>The type id for int8. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa3d246e59038d67ba2945b9c89ed874c0"></a>asTYPEID_INT16&#160;</td><td class="fielddoc"><p>The type id for int16. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aabcc8e086d59505f6ba18ea85e72afc33"></a>asTYPEID_INT32&#160;</td><td class="fielddoc"><p>The type id for int. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aaa73d32346b63cef156c6783703414a21"></a>asTYPEID_INT64&#160;</td><td class="fielddoc"><p>The type id for int64. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa32fa8c495f1eed78592d3898d35e1a46"></a>asTYPEID_UINT8&#160;</td><td class="fielddoc"><p>The type id for uint8. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aae72cf12a6d4a77c74b278972256d11f3"></a>asTYPEID_UINT16&#160;</td><td class="fielddoc"><p>The type id for uint16. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aac069cb7584e126ac4cf6faeb33fa87a3"></a>asTYPEID_UINT32&#160;</td><td class="fielddoc"><p>The type id for uint. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aaf22925e9946a4493c2e1c238c6043844"></a>asTYPEID_UINT64&#160;</td><td class="fielddoc"><p>The type id for uint64. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa43ec6e15e840ebf165070c2ebe9c954d"></a>asTYPEID_FLOAT&#160;</td><td class="fielddoc"><p>The type id for float. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa8b069e24ecddd678b3811126832df49f"></a>asTYPEID_DOUBLE&#160;</td><td class="fielddoc"><p>The type id for double. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa63249041dff18d01e362d71efca2b4ed"></a>asTYPEID_OBJHANDLE&#160;</td><td class="fielddoc"><p>The bit that shows if the type is a handle. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aaa4c35253b679ef667c30153f586ecbb5"></a>asTYPEID_HANDLETOCONST&#160;</td><td class="fielddoc"><p>The bit that shows if the type is a handle to a const. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa09eef59280d15a58c75e0c8983a3c3af"></a>asTYPEID_MASK_OBJECT&#160;</td><td class="fielddoc"><p>If any of these bits are set, then the type is an object. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa3b1403bbf7d1c617f734c39a574c7aa1"></a>asTYPEID_APPOBJECT&#160;</td><td class="fielddoc"><p>The bit that shows if the type is an application registered type. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa29f9a7c07904452b512431b7b4b5b6e4"></a>asTYPEID_SCRIPTOBJECT&#160;</td><td class="fielddoc"><p>The bit that shows if the type is a script class. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aab5fde5eaa0401712c8abd01fc366e9cc"></a>asTYPEID_TEMPLATE&#160;</td><td class="fielddoc"><p>The bit that shows if the type is a template type. </p> </td></tr> <tr><td class="fieldname"><a id="ae8c3a67a97321be53181e9ed396ad83aa8a0789b5d397d79ba34a441116a6321b"></a>asTYPEID_MASK_SEQNBR&#160;</td><td class="fielddoc"><p>The mask for the type id sequence number. </p> </td></tr> </table> </div> </div> <a id="a335bd4a1384b6e408bf9b37ffdeb54c7"></a> <h2 class="memtitle"><span class="permalink"><a href="#a335bd4a1384b6e408bf9b37ffdeb54c7">&#9670;&nbsp;</a></span>asETypeModifiers</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="angelscript_8h.html#a335bd4a1384b6e408bf9b37ffdeb54c7">asETypeModifiers</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a335bd4a1384b6e408bf9b37ffdeb54c7aad24888f100d685b7eb4c330e8e09047"></a>asTM_NONE&#160;</td><td class="fielddoc"><p>No modification. </p> </td></tr> <tr><td class="fieldname"><a id="a335bd4a1384b6e408bf9b37ffdeb54c7a8de0af7f268793bb251f0607b72cad19"></a>asTM_INREF&#160;</td><td class="fielddoc"><p>Input reference. </p> </td></tr> <tr><td class="fieldname"><a id="a335bd4a1384b6e408bf9b37ffdeb54c7a8ebee94d0968a789e3953d0100a9d2ee"></a>asTM_OUTREF&#160;</td><td class="fielddoc"><p>Output reference. </p> </td></tr> <tr><td class="fieldname"><a id="a335bd4a1384b6e408bf9b37ffdeb54c7aaefa7d0cb8d421469fcfc4248d3ba5c5"></a>asTM_INOUTREF&#160;</td><td class="fielddoc"><p>In/out reference. </p> </td></tr> <tr><td class="fieldname"><a id="a335bd4a1384b6e408bf9b37ffdeb54c7a75422a76c05f8b084895e73f90972e34"></a>asTM_CONST&#160;</td><td class="fielddoc"><p>Read only. </p> </td></tr> </table> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_b2f33c71d4aa5e7af42a1ca61ff5af1b.html">source</a></li><li class="navelem"><a class="el" href="angelscript_8h.html">angelscript.h</a></li> <li class="footer">Generated on Sat Dec 5 2020 23:20:24 for AngelScript by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.18 </li> </ul> </div> </body> </html>
unlicense
HenryLoenwind/EnderIO
enderio-conduits/src/main/java/crazypants/enderio/conduits/conduit/redstone/InsulatedRedstoneConduit.java
33880
package crazypants.enderio.conduits.conduit.redstone; import java.util.EnumMap; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import javax.annotation.Nonnull; import javax.annotation.Nullable; import com.enderio.core.api.client.gui.ITabPanel; import com.enderio.core.common.util.DyeColor; import com.enderio.core.common.util.NNList; import com.enderio.core.common.util.NullHelper; import com.enderio.core.common.vecmath.Vector4f; import com.google.common.collect.Lists; import crazypants.enderio.base.EnderIO; import crazypants.enderio.base.conduit.ConduitUtil; import crazypants.enderio.base.conduit.ConnectionMode; import crazypants.enderio.base.conduit.IClientConduit; import crazypants.enderio.base.conduit.IConduit; import crazypants.enderio.base.conduit.IConduitNetwork; import crazypants.enderio.base.conduit.IConduitTexture; import crazypants.enderio.base.conduit.IGuiExternalConnection; import crazypants.enderio.base.conduit.RaytraceResult; import crazypants.enderio.base.conduit.geom.CollidableComponent; import crazypants.enderio.base.conduit.redstone.ConnectivityTool; import crazypants.enderio.base.conduit.redstone.signals.BundledSignal; import crazypants.enderio.base.conduit.redstone.signals.CombinedSignal; import crazypants.enderio.base.conduit.redstone.signals.Signal; import crazypants.enderio.base.conduit.registry.ConduitRegistry; import crazypants.enderio.base.diagnostics.Prof; import crazypants.enderio.base.filter.FilterRegistry; import crazypants.enderio.base.filter.capability.CapabilityFilterHolder; import crazypants.enderio.base.filter.capability.IFilterHolder; import crazypants.enderio.base.filter.gui.FilterGuiUtil; import crazypants.enderio.base.filter.redstone.DefaultInputSignalFilter; import crazypants.enderio.base.filter.redstone.DefaultOutputSignalFilter; import crazypants.enderio.base.filter.redstone.IInputSignalFilter; import crazypants.enderio.base.filter.redstone.IOutputSignalFilter; import crazypants.enderio.base.filter.redstone.IRedstoneSignalFilter; import crazypants.enderio.base.filter.redstone.items.IItemInputSignalFilterUpgrade; import crazypants.enderio.base.filter.redstone.items.IItemOutputSignalFilterUpgrade; import crazypants.enderio.base.render.registry.TextureRegistry; import crazypants.enderio.base.tool.ToolUtil; import crazypants.enderio.conduits.conduit.AbstractConduit; import crazypants.enderio.conduits.config.ConduitConfig; import crazypants.enderio.conduits.gui.RedstoneSettings; import crazypants.enderio.conduits.render.BlockStateWrapperConduitBundle; import crazypants.enderio.conduits.render.ConduitTexture; import crazypants.enderio.powertools.lang.Lang; import crazypants.enderio.util.EnumReader; import crazypants.enderio.util.Prep; import net.minecraft.block.Block; import net.minecraft.block.BlockRedstoneWire; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.text.TextComponentTranslation; import net.minecraft.util.text.TextFormatting; import net.minecraft.world.World; import net.minecraftforge.common.capabilities.Capability; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import static crazypants.enderio.conduits.init.ConduitObject.item_redstone_conduit; public class InsulatedRedstoneConduit extends AbstractConduit implements IRedstoneConduit, IFilterHolder<IRedstoneSignalFilter> { static final Map<String, IConduitTexture> ICONS = new HashMap<>(); static { ICONS.put(KEY_INS_CORE_OFF_ICON, new ConduitTexture(TextureRegistry.registerTexture("blocks/conduit_core_1"), ConduitTexture.core(3))); ICONS.put(KEY_INS_CORE_ON_ICON, new ConduitTexture(TextureRegistry.registerTexture("blocks/conduit_core_0"), ConduitTexture.core(3))); ICONS.put(KEY_INS_CONDUIT_ICON, new ConduitTexture(TextureRegistry.registerTexture("blocks/conduit"), ConduitTexture.arm(1))); ICONS.put(KEY_CONDUIT_ICON, new ConduitTexture(TextureRegistry.registerTexture("blocks/conduit"), ConduitTexture.arm(3))); ICONS.put(KEY_TRANSMISSION_ICON, new ConduitTexture(TextureRegistry.registerTexture("blocks/conduit"), ConduitTexture.arm(2))); } // --------------------------------- Class Start // ------------------------------------------- private final EnumMap<EnumFacing, IRedstoneSignalFilter> outputFilters = new EnumMap<EnumFacing, IRedstoneSignalFilter>(EnumFacing.class); private final EnumMap<EnumFacing, IRedstoneSignalFilter> inputFilters = new EnumMap<EnumFacing, IRedstoneSignalFilter>(EnumFacing.class); private final EnumMap<EnumFacing, ItemStack> outputFilterUpgrades = new EnumMap<EnumFacing, ItemStack>(EnumFacing.class); private final EnumMap<EnumFacing, ItemStack> inputFilterUpgrades = new EnumMap<EnumFacing, ItemStack>(EnumFacing.class); private Map<EnumFacing, ConnectionMode> forcedConnections = new EnumMap<EnumFacing, ConnectionMode>(EnumFacing.class); private Map<EnumFacing, DyeColor> inputSignalColors = new EnumMap<EnumFacing, DyeColor>(EnumFacing.class); private Map<EnumFacing, DyeColor> outputSignalColors = new EnumMap<EnumFacing, DyeColor>(EnumFacing.class); private Map<EnumFacing, Boolean> signalStrengths = new EnumMap<EnumFacing, Boolean>(EnumFacing.class); private RedstoneConduitNetwork network; private int activeUpdateCooldown = 0; private boolean activeDirty = false; private boolean connectionsDirty = false; // TODO: can this be merged with super.connectionsDirty? private int signalIdBase = 0; @SuppressWarnings("unused") public InsulatedRedstoneConduit() { } @Override public @Nullable RedstoneConduitNetwork getNetwork() { return network; } @Override public boolean setNetwork(@Nonnull IConduitNetwork<?, ?> network) { this.network = (RedstoneConduitNetwork) network; return super.setNetwork(network); } @Override public void clearNetwork() { this.network = null; } @Override @Nonnull public Class<? extends IConduit> getBaseConduitType() { return IRedstoneConduit.class; } @Override public void updateNetwork() { World world = getBundle().getEntity().getWorld(); if (NullHelper.untrust(world) != null) { updateNetwork(world); } } @Override public void updateEntity(@Nonnull World world) { super.updateEntity(world); if (!world.isRemote) { if (activeUpdateCooldown > 0) { --activeUpdateCooldown; Prof.start(world, "updateActiveState"); updateActiveState(); Prof.stop(world); } if (connectionsDirty) { if (hasExternalConnections()) { network.updateInputsFromConduit(this, false); } connectionsDirty = false; } } } @Override public void setActive(boolean active) { if (active != this.active) { activeDirty = true; } this.active = active; updateActiveState(); } private void updateActiveState() { if (ConduitConfig.showState.get() && activeDirty && activeUpdateCooldown == 0) { setClientStateDirty(); activeDirty = false; activeUpdateCooldown = 4; } } @Override public void onChunkUnload() { RedstoneConduitNetwork networkR = getNetwork(); if (networkR != null) { BundledSignal oldSignals = networkR.getBundledSignal(); List<IRedstoneConduit> conduits = Lists.newArrayList(networkR.getConduits()); super.onChunkUnload(); networkR.afterChunkUnload(conduits, oldSignals); } } @Override public boolean onBlockActivated(@Nonnull EntityPlayer player, @Nonnull EnumHand hand, @Nonnull RaytraceResult res, @Nonnull List<RaytraceResult> all) { World world = getBundle().getEntity().getWorld(); DyeColor col = DyeColor.getColorFromDye(player.getHeldItem(hand)); final CollidableComponent component = res.component; if (col != null && component != null && component.isDirectional()) { if (!world.isRemote) { if (getConnectionMode(component.getDirection()).acceptsInput()) { // Note: There's no way to set the input color in IN_OUT mode... setOutputSignalColor(component.getDirection(), col); } else { setInputSignalColor(component.getDirection(), col); } } return true; } else if (ToolUtil.isToolEquipped(player, hand)) { if (world.isRemote) { return true; } if (component != null) { EnumFacing faceHit = res.movingObjectPosition.sideHit; if (component.isCore()) { BlockPos pos = getBundle().getLocation().offset(faceHit); Block id = world.getBlockState(pos).getBlock(); if (id == ConduitRegistry.getConduitModObjectNN().getBlock()) { IRedstoneConduit neighbour = ConduitUtil.getConduit(world, pos.getX(), pos.getY(), pos.getZ(), IRedstoneConduit.class); if (neighbour != null && neighbour.getConnectionMode(faceHit.getOpposite()) == ConnectionMode.DISABLED) { neighbour.setConnectionMode(faceHit.getOpposite(), ConnectionMode.NOT_SET); } setConnectionMode(faceHit, ConnectionMode.NOT_SET); return ConduitUtil.connectConduits(this, faceHit); } forceConnectionMode(faceHit, ConnectionMode.IN_OUT); return true; } else { EnumFacing connDir = component.getDirection(); if (externalConnections.contains(connDir)) { if (network != null) { network.destroyNetwork(); } externalConnectionRemoved(connDir); forceConnectionMode(connDir, ConnectionMode.getNext(getConnectionMode(connDir))); return true; } else if (containsConduitConnection(connDir)) { BlockPos pos = getBundle().getLocation().offset(connDir); IRedstoneConduit neighbour = ConduitUtil.getConduit(getBundle().getEntity().getWorld(), pos.getX(), pos.getY(), pos.getZ(), IRedstoneConduit.class); if (neighbour != null) { if (network != null) { network.destroyNetwork(); } final RedstoneConduitNetwork neighbourNetwork = neighbour.getNetwork(); if (neighbourNetwork != null) { neighbourNetwork.destroyNetwork(); } neighbour.conduitConnectionRemoved(connDir.getOpposite()); conduitConnectionRemoved(connDir); neighbour.connectionsChanged(); connectionsChanged(); updateNetwork(); neighbour.updateNetwork(); return true; } } } } } return false; } @Override public void forceConnectionMode(@Nonnull EnumFacing dir, @Nonnull ConnectionMode mode) { setConnectionMode(dir, mode); forcedConnections.put(dir, mode); onAddedToBundle(); if (network != null) { network.updateInputsFromConduit(this, false); } } @Override @Nonnull public ItemStack createItem() { return new ItemStack(item_redstone_conduit.getItemNN(), 1, 0); } @Override public void onInputsChanged(@Nonnull EnumFacing side, int[] inputValues) { } @Override public void onInputChanged(@Nonnull EnumFacing side, int inputValue) { } @Override @Nonnull public DyeColor getInputSignalColor(@Nonnull EnumFacing dir) { DyeColor res = inputSignalColors.get(dir); if (res == null) { return DyeColor.RED; } return res; } @Override public void setInputSignalColor(@Nonnull EnumFacing dir, @Nonnull DyeColor col) { inputSignalColors.put(dir, col); if (network != null) { network.updateInputsFromConduit(this, false); } setClientStateDirty(); collidablesDirty = true; } @Override @Nonnull public DyeColor getOutputSignalColor(@Nonnull EnumFacing dir) { DyeColor res = outputSignalColors.get(dir); if (res == null) { return DyeColor.GREEN; } return res; } @Override public void setOutputSignalColor(@Nonnull EnumFacing dir, @Nonnull DyeColor col) { outputSignalColors.put(dir, col); if (network != null) { network.updateInputsFromConduit(this, false); } setClientStateDirty(); collidablesDirty = true; } @Override public boolean isOutputStrong(@Nonnull EnumFacing dir) { if (signalStrengths.containsKey(dir)) { return signalStrengths.get(dir); } return false; } @Override public void setOutputStrength(@Nonnull EnumFacing dir, boolean isStrong) { if (isOutputStrong(dir) != isStrong) { if (isStrong) { signalStrengths.put(dir, isStrong); } else { signalStrengths.remove(dir); } if (network != null) { network.notifyNeigborsOfSignalUpdate(); } } } @Override public boolean canConnectToExternal(@Nonnull EnumFacing direction, boolean ignoreConnectionState) { if (ignoreConnectionState) { // you can always force an external connection return true; } ConnectionMode forcedConnection = forcedConnections.get(direction); if (forcedConnection == ConnectionMode.DISABLED) { return false; } else if (forcedConnection == ConnectionMode.IN_OUT || forcedConnection == ConnectionMode.OUTPUT || forcedConnection == ConnectionMode.INPUT) { return true; } // Not set so figure it out World world = getBundle().getBundleworld(); BlockPos pos = getBundle().getLocation().offset(direction); IBlockState bs = world.getBlockState(pos); if (bs.getBlock() == ConduitRegistry.getConduitModObjectNN().getBlock()) { return false; } return ConnectivityTool.shouldAutoConnectRedstone(world, bs, pos, direction.getOpposite()); } @Override public int isProvidingWeakPower(@Nonnull EnumFacing toDirection) { toDirection = toDirection.getOpposite(); if (!getConnectionMode(toDirection).acceptsInput()) { return 0; } if (network == null || !network.isNetworkEnabled()) { return 0; } int result = 0; CombinedSignal signal = getNetworkOutput(toDirection); result = Math.max(result, signal.getStrength()); return result; } @Override public int isProvidingStrongPower(@Nonnull EnumFacing toDirection) { if (isOutputStrong(toDirection.getOpposite())) { return isProvidingWeakPower(toDirection); } else { return 0; } } @Override @Nonnull public CombinedSignal getNetworkOutput(@Nonnull EnumFacing side) { ConnectionMode mode = getConnectionMode(side); if (network == null || !mode.acceptsInput()) { return CombinedSignal.NONE; } DyeColor col = getOutputSignalColor(side); BundledSignal bundledSignal = network.getBundledSignal(); return bundledSignal.getFilteredSignal(col, (IOutputSignalFilter) getSignalFilter(side, true)); } @Override @Nonnull public Signal getNetworkInput(@Nonnull EnumFacing side) { if (network != null) { network.setNetworkEnabled(false); } CombinedSignal result = CombinedSignal.NONE; if (acceptSignalsForDir(side)) { int input = getExternalPowerLevel(side); result = new CombinedSignal(input); IInputSignalFilter filter = (IInputSignalFilter) getSignalFilter(side, false); result = filter.apply(result, getBundle().getBundleworld(), getBundle().getLocation().offset(side)); } if (network != null) { network.setNetworkEnabled(true); } return new Signal(result, signalIdBase + side.ordinal()); } protected int getExternalPowerLevelProtected(@Nonnull EnumFacing side) { if (network != null) { network.setNetworkEnabled(false); } int input = getExternalPowerLevel(side); if (network != null) { network.setNetworkEnabled(true); } return input; } protected int getExternalPowerLevel(@Nonnull EnumFacing dir) { World world = getBundle().getBundleworld(); BlockPos loc = getBundle().getLocation().offset(dir); int res = 0; if (world.isBlockLoaded(loc)) { int strong = world.getStrongPower(loc, dir); if (strong > 0) { return strong; } res = world.getRedstonePower(loc, dir); IBlockState bs = world.getBlockState(loc); Block block = bs.getBlock(); if (res <= 15 && block == Blocks.REDSTONE_WIRE) { int wireIn = bs.getValue(BlockRedstoneWire.POWER); res = Math.max(res, wireIn); } } return res; } // @Optional.Method(modid = "computercraft") // @Override // @Nonnull // public Map<DyeColor, Signal> getComputerCraftSignals(@Nonnull EnumFacing side) { // Map<DyeColor, Signal> ccSignals = new EnumMap<DyeColor, Signal>(DyeColor.class); // // int bundledInput = getComputerCraftBundledPowerLevel(side); // if (bundledInput >= 0) { // for (int i = 0; i < 16; i++) { // int color = bundledInput >>> i & 1; // Signal signal = new Signal(color == 1 ? 16 : 0, signalIdBase + side.ordinal()); // ccSignals.put(DyeColor.fromIndex(Math.max(0, 15 - i)), signal); // } // } // // return ccSignals; // } // @Optional.Method(modid = "computercraft") // private int getComputerCraftBundledPowerLevel(EnumFacing dir) { // World world = getBundle().getBundleworld(); // BlockPos pos = getBundle().getLocation().offset(dir); // // if (world.isBlockLoaded(pos)) { // return ComputerCraftAPI.getBundledRedstoneOutput(world, pos, dir.getOpposite()); // } else { // return -1; // } // } @Override @Nonnull public ConnectionMode getConnectionMode(@Nonnull EnumFacing dir) { ConnectionMode res = forcedConnections.get(dir); if (res == null) { return getDefaultConnectionMode(); } return res; } @Override @Nonnull public ConnectionMode getDefaultConnectionMode() { return ConnectionMode.OUTPUT; } @Override @Nonnull public NNList<ItemStack> getDrops() { NNList<ItemStack> res = super.getDrops(); for (ItemStack stack : inputFilterUpgrades.values()) { if (stack != null && Prep.isValid(stack)) { res.add(stack); } } for (ItemStack stack : outputFilterUpgrades.values()) { if (stack != null && Prep.isValid(stack)) { res.add(stack); } } return res; } @Override public boolean onNeighborBlockChange(@Nonnull Block blockId) { World world = getBundle().getBundleworld(); if (world.isRemote) { return false; } boolean res = super.onNeighborBlockChange(blockId); if (network == null || network.updatingNetwork) { return false; } if (blockId != ConduitRegistry.getConduitModObjectNN().getBlock()) { connectionsDirty = true; } return res; } private boolean acceptSignalsForDir(@Nonnull EnumFacing dir) { if (!getConnectionMode(dir).acceptsOutput()) { return false; } BlockPos loc = getBundle().getLocation().offset(dir); return ConduitUtil.getConduit(getBundle().getEntity().getWorld(), loc.getX(), loc.getY(), loc.getZ(), IRedstoneConduit.class) == null; } // --------------------- // TEXTURES // --------------------- @Override public int getRedstoneSignalForColor(@Nonnull DyeColor col) { if (network != null) { return network.getSignalStrengthForColor(col); } return 0; } @SuppressWarnings("null") @Override @Nonnull public IConduitTexture getTextureForState(@Nonnull CollidableComponent component) { if (component.isCore()) { return ConduitConfig.showState.get() && isActive() ? ICONS.get(KEY_INS_CORE_ON_ICON) : ICONS.get(KEY_INS_CORE_OFF_ICON); } return ICONS.get(KEY_INS_CONDUIT_ICON); } @SuppressWarnings("null") @Override @Nonnull public IConduitTexture getTransmitionTextureForState(@Nonnull CollidableComponent component) { return ConduitConfig.showState.get() && isActive() ? ICONS.get(KEY_TRANSMISSION_ICON) : ICONS.get(KEY_CONDUIT_ICON); } @Override @SideOnly(Side.CLIENT) public @Nullable Vector4f getTransmitionTextureColorForState(@Nonnull CollidableComponent component) { return null; } @Override protected void readTypeSettings(@Nonnull EnumFacing dir, @Nonnull NBTTagCompound dataRoot) { forceConnectionMode(dir, EnumReader.get(ConnectionMode.class, dataRoot.getShort("connectionMode"))); setInputSignalColor(dir, EnumReader.get(DyeColor.class, dataRoot.getShort("inputSignalColor"))); setOutputSignalColor(dir, EnumReader.get(DyeColor.class, dataRoot.getShort("outputSignalColor"))); setOutputStrength(dir, dataRoot.getBoolean("signalStrong")); } @Override protected void writeTypeSettingsToNbt(@Nonnull EnumFacing dir, @Nonnull NBTTagCompound dataRoot) { dataRoot.setShort("connectionMode", (short) forcedConnections.get(dir).ordinal()); dataRoot.setShort("inputSignalColor", (short) getInputSignalColor(dir).ordinal()); dataRoot.setShort("outputSignalColor", (short) getOutputSignalColor(dir).ordinal()); dataRoot.setBoolean("signalStrong", isOutputStrong(dir)); } @Override public void writeToNBT(@Nonnull NBTTagCompound nbtRoot) { super.writeToNBT(nbtRoot); if (!forcedConnections.isEmpty()) { byte[] modes = new byte[6]; int i = 0; for (EnumFacing dir : EnumFacing.VALUES) { ConnectionMode mode = forcedConnections.get(dir); if (mode != null) { modes[i] = (byte) mode.ordinal(); } else { modes[i] = -1; } i++; } nbtRoot.setByteArray("forcedConnections", modes); } if (!inputSignalColors.isEmpty()) { byte[] modes = new byte[6]; int i = 0; for (EnumFacing dir : EnumFacing.VALUES) { DyeColor col = inputSignalColors.get(dir); if (col != null) { modes[i] = (byte) col.ordinal(); } else { modes[i] = -1; } i++; } nbtRoot.setByteArray("signalColors", modes); } if (!outputSignalColors.isEmpty()) { byte[] modes = new byte[6]; int i = 0; for (EnumFacing dir : EnumFacing.VALUES) { DyeColor col = outputSignalColors.get(dir); if (col != null) { modes[i] = (byte) col.ordinal(); } else { modes[i] = -1; } i++; } nbtRoot.setByteArray("outputSignalColors", modes); } if (!signalStrengths.isEmpty()) { byte[] modes = new byte[6]; int i = 0; for (EnumFacing dir : EnumFacing.VALUES) { boolean isStrong = dir != null && isOutputStrong(dir); if (isStrong) { modes[i] = 1; } else { modes[i] = 0; } i++; } nbtRoot.setByteArray("signalStrengths", modes); } for (Entry<EnumFacing, IRedstoneSignalFilter> entry : inputFilters.entrySet()) { if (entry.getValue() != null) { IRedstoneSignalFilter f = entry.getValue(); NBTTagCompound itemRoot = new NBTTagCompound(); FilterRegistry.writeFilterToNbt(f, itemRoot); nbtRoot.setTag("inSignalFilts." + entry.getKey().name(), itemRoot); } } for (Entry<EnumFacing, IRedstoneSignalFilter> entry : outputFilters.entrySet()) { if (entry.getValue() != null) { IRedstoneSignalFilter f = entry.getValue(); NBTTagCompound itemRoot = new NBTTagCompound(); FilterRegistry.writeFilterToNbt(f, itemRoot); nbtRoot.setTag("outSignalFilts." + entry.getKey().name(), itemRoot); } } for (Entry<EnumFacing, ItemStack> entry : inputFilterUpgrades.entrySet()) { ItemStack up = entry.getValue(); if (up != null && Prep.isValid(up)) { IRedstoneSignalFilter filter = getSignalFilter(entry.getKey(), true); FilterRegistry.writeFilterToStack(filter, up); NBTTagCompound itemRoot = new NBTTagCompound(); up.writeToNBT(itemRoot); nbtRoot.setTag("inputSignalFilterUpgrades." + entry.getKey().name(), itemRoot); } } for (Entry<EnumFacing, ItemStack> entry : outputFilterUpgrades.entrySet()) { ItemStack up = entry.getValue(); if (up != null && Prep.isValid(up)) { IRedstoneSignalFilter filter = getSignalFilter(entry.getKey(), false); FilterRegistry.writeFilterToStack(filter, up); NBTTagCompound itemRoot = new NBTTagCompound(); up.writeToNBT(itemRoot); nbtRoot.setTag("outputSignalFilterUpgrades." + entry.getKey().name(), itemRoot); } } } @Override public void readFromNBT(@Nonnull NBTTagCompound nbtRoot) { super.readFromNBT(nbtRoot); forcedConnections.clear(); byte[] modes = nbtRoot.getByteArray("forcedConnections"); if (modes.length == 6) { int i = 0; for (EnumFacing dir : EnumFacing.VALUES) { if (modes[i] >= 0) { forcedConnections.put(dir, ConnectionMode.values()[modes[i]]); } i++; } } inputSignalColors.clear(); byte[] cols = nbtRoot.getByteArray("signalColors"); if (cols.length == 6) { int i = 0; for (EnumFacing dir : EnumFacing.VALUES) { if (cols[i] >= 0) { inputSignalColors.put(dir, DyeColor.values()[cols[i]]); } i++; } } outputSignalColors.clear(); byte[] outCols = nbtRoot.getByteArray("outputSignalColors"); if (outCols.length == 6) { int i = 0; for (EnumFacing dir : EnumFacing.VALUES) { if (outCols[i] >= 0) { outputSignalColors.put(dir, DyeColor.values()[outCols[i]]); } i++; } } signalStrengths.clear(); byte[] strengths = nbtRoot.getByteArray("signalStrengths"); if (strengths.length == 6) { int i = 0; for (EnumFacing dir : EnumFacing.VALUES) { if (strengths[i] > 0) { signalStrengths.put(dir, true); } i++; } } inputFilters.clear(); outputFilters.clear(); inputFilterUpgrades.clear(); outputFilterUpgrades.clear(); for (EnumFacing dir : EnumFacing.VALUES) { String key = "inSignalFilts." + dir.name(); if (nbtRoot.hasKey(key)) { NBTTagCompound filterTag = (NBTTagCompound) nbtRoot.getTag(key); IRedstoneSignalFilter filter = (IRedstoneSignalFilter) FilterRegistry.loadFilterFromNbt(filterTag); inputFilters.put(dir, filter); } key = "inputSignalFilterUpgrades." + dir.name(); if (nbtRoot.hasKey(key)) { NBTTagCompound upTag = (NBTTagCompound) nbtRoot.getTag(key); ItemStack ups = new ItemStack(upTag); inputFilterUpgrades.put(dir, ups); } key = "outputSignalFilterUpgrades." + dir.name(); if (nbtRoot.hasKey(key)) { NBTTagCompound upTag = (NBTTagCompound) nbtRoot.getTag(key); ItemStack ups = new ItemStack(upTag); outputFilterUpgrades.put(dir, ups); } key = "outSignalFilts." + dir.name(); if (nbtRoot.hasKey(key)) { NBTTagCompound filterTag = (NBTTagCompound) nbtRoot.getTag(key); IRedstoneSignalFilter filter = (IRedstoneSignalFilter) FilterRegistry.loadFilterFromNbt(filterTag); outputFilters.put(dir, filter); } } } @Override public String toString() { return "RedstoneConduit [network=" + network + " connections=" + conduitConnections + " active=" + active + "]"; } @SideOnly(Side.CLIENT) @Override public void hashCodeForModelCaching(BlockStateWrapperConduitBundle.ConduitCacheKey hashCodes) { super.hashCodeForModelCaching(hashCodes); hashCodes.addEnum(inputSignalColors); hashCodes.addEnum(outputSignalColors); if (ConduitConfig.showState.get() && isActive()) { hashCodes.add(1); } } @Override public @Nonnull RedstoneConduitNetwork createNetworkForType() { return new RedstoneConduitNetwork(); } @SideOnly(Side.CLIENT) @Nonnull @Override public ITabPanel createGuiPanel(@Nonnull IGuiExternalConnection gui, @Nonnull IClientConduit con) { return new RedstoneSettings(gui, con); } @Override @SideOnly(Side.CLIENT) public boolean updateGuiPanel(@Nonnull ITabPanel panel) { if (panel instanceof RedstoneSettings) { return ((RedstoneSettings) panel).updateConduit(this); } return false; } @SideOnly(Side.CLIENT) @Override public int getGuiPanelTabOrder() { return 2; } // ----------------- CAPABILITIES ------------ @Override public boolean hasInternalCapability(@Nonnull Capability<?> capability, @Nullable EnumFacing facing) { if (capability == CapabilityFilterHolder.FILTER_HOLDER_CAPABILITY) { return true; } return super.hasInternalCapability(capability, facing); } @Override @Nullable public <T> T getInternalCapability(@Nonnull Capability<T> capability, @Nullable EnumFacing facing) { if (capability == CapabilityFilterHolder.FILTER_HOLDER_CAPABILITY) { return CapabilityFilterHolder.FILTER_HOLDER_CAPABILITY.cast(this); } return super.getInternalCapability(capability, facing); } // ------------------------------------------- // FILTERS // ------------------------------------------- @Override public void setSignalIdBase(int id) { signalIdBase = id; } @Override @Nonnull public IRedstoneSignalFilter getSignalFilter(@Nonnull EnumFacing dir, boolean isOutput) { if (!isOutput) { return NullHelper.first(inputFilters.get(dir), DefaultInputSignalFilter.instance); } else { return NullHelper.first(outputFilters.get(dir), DefaultOutputSignalFilter.instance); } } public void setSignalFilter(@Nonnull EnumFacing dir, boolean isInput, @Nonnull IRedstoneSignalFilter filter) { if (!isInput) { inputFilters.put(dir, filter); } else { outputFilters.put(dir, filter); } setClientStateDirty(); connectionsDirty = true; } @Override public @Nonnull IRedstoneSignalFilter getFilter(int filterIndex, int param1) { return getSignalFilter(EnumFacing.getFront(param1), filterIndex == getInputFilterIndex() ? true : !(filterIndex == getOutputFilterIndex())); } @Override public void setFilter(int filterIndex, int param1, @Nonnull IRedstoneSignalFilter filter) { setSignalFilter(EnumFacing.getFront(param1), filterIndex == getInputFilterIndex() ? true : !(filterIndex == getOutputFilterIndex()), filter); } @Override @Nonnull public ItemStack getFilterStack(int filterIndex, int param1) { if (filterIndex == getInputFilterIndex()) { return NullHelper.first(inputFilterUpgrades.get(EnumFacing.getFront(param1)), Prep.getEmpty()); } else if (filterIndex == getOutputFilterIndex()) { return NullHelper.first(outputFilterUpgrades.get(EnumFacing.getFront(param1)), Prep.getEmpty()); } return Prep.getEmpty(); } @Override public void setFilterStack(int filterIndex, int param1, @Nonnull ItemStack stack) { if (filterIndex == getInputFilterIndex()) { if (Prep.isValid(stack)) { inputFilterUpgrades.put(EnumFacing.getFront(param1), stack); } else { inputFilterUpgrades.remove(EnumFacing.getFront(param1)); } } else if (filterIndex == getOutputFilterIndex()) { if (Prep.isValid(stack)) { outputFilterUpgrades.put(EnumFacing.getFront(param1), stack); } else { outputFilterUpgrades.remove(EnumFacing.getFront(param1)); } } final IRedstoneSignalFilter filterForUpgrade = FilterRegistry.<IRedstoneSignalFilter> getFilterForUpgrade(stack); if (filterForUpgrade != null) { setFilter(filterIndex, param1, filterForUpgrade); } } @Override public int getInputFilterIndex() { return FilterGuiUtil.INDEX_INPUT_REDSTONE; } @Override public int getOutputFilterIndex() { return FilterGuiUtil.INDEX_OUTPUT_REDSTONE; } @Override public boolean isFilterUpgradeAccepted(@Nonnull ItemStack stack, boolean isInput) { if (!isInput) { return stack.getItem() instanceof IItemInputSignalFilterUpgrade; } else { return stack.getItem() instanceof IItemOutputSignalFilterUpgrade; } } @Override @Nonnull public NNList<ITextComponent> getConduitProbeInformation(@Nonnull EntityPlayer player) { final NNList<ITextComponent> result = super.getConduitProbeInformation(player); if (getExternalConnections().isEmpty()) { ITextComponent elem = Lang.GUI_CONDUIT_PROBE_REDSTONE_HEADING_NO_CONNECTIONS.toChatServer(); elem.getStyle().setColor(TextFormatting.GOLD); result.add(elem); } else { for (EnumFacing dir : getExternalConnections()) { if (dir == null) { continue; } ITextComponent elem = Lang.GUI_CONDUIT_PROBE_REDSTONE_HEADING.toChatServer(new TextComponentTranslation(EnderIO.lang.addPrefix("facing." + dir))); elem.getStyle().setColor(TextFormatting.GREEN); result.add(elem); ConnectionMode mode = getConnectionMode(dir); if (mode.acceptsInput()) { elem = Lang.GUI_CONDUIT_PROBE_REDSTONE_STRONG.toChatServer(isProvidingStrongPower(dir)); elem.getStyle().setColor(TextFormatting.BLUE); result.add(elem); elem = Lang.GUI_CONDUIT_PROBE_REDSTONE_WEAK.toChatServer(isProvidingWeakPower(dir)); elem.getStyle().setColor(TextFormatting.BLUE); result.add(elem); } if (mode.acceptsOutput()) { elem = Lang.GUI_CONDUIT_PROBE_REDSTONE_EXTERNAL.toChatServer(getExternalPowerLevelProtected(dir)); elem.getStyle().setColor(TextFormatting.BLUE); result.add(elem); } } } return result; } }
unlicense
trollderius/wouldyourather_phonegap
www/~commons/modules/tutorial/lang/fa.js
76
$.extend(window.lang_fa, { "helpStop": "متوقف کردن آموزش", });
unlicense
D-Inc/EnderIO
src/main/java/crazypants/enderio/machine/capbank/network/EnergyReceptor.java
2445
package crazypants.enderio.machine.capbank.network; import javax.annotation.Nonnull; import com.enderio.core.common.util.BlockCoord; import crazypants.enderio.conduit.IConduitBundle; import crazypants.enderio.conduit.power.IPowerConduit; import crazypants.enderio.machine.IoMode; import crazypants.enderio.machine.capbank.TileCapBank; import crazypants.enderio.power.IPowerInterface; import net.minecraft.util.EnumFacing; public class EnergyReceptor { private final @Nonnull IPowerInterface receptor; private final @Nonnull EnumFacing fromDir; private final @Nonnull IoMode mode; private final BlockCoord location; private final IPowerConduit conduit; public EnergyReceptor(@Nonnull TileCapBank cb, @Nonnull IPowerInterface receptor, @Nonnull EnumFacing dir) { this.receptor = receptor; fromDir = dir; mode = cb.getIoMode(dir); if(receptor.getProvider() instanceof IConduitBundle) { conduit = ((IConduitBundle) receptor.getProvider()).getConduit(IPowerConduit.class); } else { conduit = null; } location = cb.getLocation(); } public IPowerConduit getConduit() { return conduit; } public @Nonnull IPowerInterface getReceptor() { return receptor; } public @Nonnull EnumFacing getDir() { return fromDir; } public @Nonnull IoMode getMode() { return mode; } //NB: Special impl of equals and hash code based solely on the location and dir //This is done to ensure the receptors in the Networks Set are added / removed correctly @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + fromDir.hashCode(); result = prime * result + ((location == null) ? 0 : location.hashCode()); return result; } @Override public boolean equals(Object obj) { if(this == obj) { return true; } if(obj == null) { return false; } if(getClass() != obj.getClass()) { return false; } EnergyReceptor other = (EnergyReceptor) obj; if(fromDir != other.fromDir) { return false; } if(location == null) { if(other.location != null) { return false; } } else if(!location.equals(other.location)) { return false; } return true; } @Override public String toString() { return "EnergyReceptor [receptor=" + receptor + ", fromDir=" + fromDir + ", mode=" + mode + ", conduit=" + conduit + "]"; } }
unlicense
yangjun2/android
telematics_android/src/com/hoperun/telematics/mobile/activity/FuelStateActivity.java
6629
/***************************************************************************** * * HOPERUN PROPRIETARY INFORMATION * * The information contained herein is proprietary to HopeRun * and shall not be reproduced or disclosed in whole or in part * or used for any design or manufacture * without direct written authorization from HopeRun. * * Copyright (c) 2012 by HopeRun. All rights reserved. * *****************************************************************************/ package com.hoperun.telematics.mobile.activity; import android.content.ComponentName; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.os.Bundle; import android.util.Log; import android.widget.ImageView; import android.widget.TextView; import com.google.gson.Gson; import com.hoperun.telematics.mobile.R; import com.hoperun.telematics.mobile.framework.net.ENetworkServiceType; import com.hoperun.telematics.mobile.framework.net.callback.INetCallback; import com.hoperun.telematics.mobile.framework.net.callback.INetCallbackArgs; import com.hoperun.telematics.mobile.framework.service.NetworkService; import com.hoperun.telematics.mobile.helper.AnimationHelper; import com.hoperun.telematics.mobile.helper.CacheManager; import com.hoperun.telematics.mobile.helper.DialogHelper; import com.hoperun.telematics.mobile.helper.NetworkCallbackHelper; import com.hoperun.telematics.mobile.helper.TestDataManager; import com.hoperun.telematics.mobile.model.fuel.FuelRequest; import com.hoperun.telematics.mobile.model.fuel.FuelResponse; /** * * @author fan_leilei * */ public class FuelStateActivity extends DefaultActivity { private ImageView pointerImage; private TextView consumeText; private TextView remainText; private static final String TAG = "FuelStateActivity"; private FuelResponse fuelResponse; /* * (non-Javadoc) * * @see * com.hoperun.telematics.mobile.framework.BaseActivity#onCreate(android * .os.Bundle) */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.ui_fuel_layout); initViews(); setTitleBar(this, getString(R.string.fuel_title)); } /** * */ private void initViews() { pointerImage = (ImageView) findViewById(R.id.pointerImage); consumeText = (TextView) findViewById(R.id.consumeText); remainText = (TextView) findViewById(R.id.remainText); } @Override protected void onBindServiceFinish(ComponentName className) { super.onBindServiceFinish(className); if (className.getClassName().equals(NetworkService.class.getName())) { startProgressDialog(ENetworkServiceType.Fuel); getFuelInfo(); } } /** * */ private void getFuelInfo() { // leilei,test code if // if (TestDataManager.IS_TEST_MODE) { // mCallBack2.callback(null); // } else { String vin = CacheManager.getInstance().getVin(); if (vin == null) { vin = getString(R.string.testVin); } String license = CacheManager.getInstance().getLicense(); if (license == null) { license = getString(R.string.testLicense1); } FuelRequest request = new FuelRequest(vin, license); String postJson = request.toJsonStr(); sendAsyncMessage(ENetworkServiceType.Fuel, postJson, mCallBack); // } } // NetworkCallbackHelper.IErrorEventListener displayer = new // NetworkCallbackHelper.IErrorEventListener() { // @Override // public void onResponseReturned(BaseResponse response) { // fuelResponse = (FuelResponse) response; // updateViews(fuelResponse); // } // // @Override // public void onRetryButtonClicked() { // // refresh(null); // } // }; // NetworkCallbackHelper.showInfoFromResponse(FuelStateActivity.this, args, // FuelResponse.class, displayer); private INetCallback mCallBack = new INetCallback() { @Override public void callback(final INetCallbackArgs args) { stopProgressDialog(); Context context = FuelStateActivity.this; OnClickListener retryBtnListener = new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { startProgressDialog(ENetworkServiceType.Fuel); } }; // 检查是否有非业务级的错误 if (!NetworkCallbackHelper.haveSystemError(context, args.getStatus())) { stopProgressDialog(); String payload = args.getPayload(); if (NetworkCallbackHelper.isPayloadNullOrEmpty(payload)) { DialogHelper.alertDialog(context, R.string.error_empty_payload, R.string.ok); } else { Gson gson = new Gson(); fuelResponse = gson.fromJson(payload, FuelResponse.class); if (NetworkCallbackHelper.isErrorResponse(context, fuelResponse)) { // 当返回的信息为异常提示信息的时候,判断异常类型并弹出提示对话框 NetworkCallbackHelper.alertBusinessError(context, fuelResponse.getErrorCode()); } else { updateViews(fuelResponse); } } } else { // 根据各接口情况选择重试或直接提示 String errMsg = args.getErrorMessage(); Log.e(TAG, errMsg); errMsg = getString(R.string.error_async_return_fault); startReload(errMsg, retryBtnListener); } } }; // leilei,test code // private INetCallback mCallBack2 = new INetCallback() { // // @Override // public void callback(INetCallbackArgs args) { // new Thread() { // @Override // public void run() { // try { // Thread.sleep(1500); // stopProgressDialog(); // mHandler.post(new Runnable() { // // @Override // public void run() { // updateViews(TestDataManager.getInstance().getFuelInfo()); // } // }); // } catch (InterruptedException e) { // Log.e(TAG, e.getMessage(), e); // } // } // }.start(); // // } // }; private static final long ANIMATION_DURATION = 1000; private static final float ANIMATION_START_DEGREE = 0; private static final float ANIMATION_END_DEGREE = 108; private static final float ANIMATION_DEGREE_RANGE = ANIMATION_END_DEGREE - ANIMATION_START_DEGREE; private void updateViews(FuelResponse response) { consumeText.setText(getString(R.string.fuel_consume, response.getConsumption())); remainText.setText(getString(R.string.fuel_remaining, response.getRemainingMileage())); float maxFuel = response.getMaxFuel(); float remainFuel = response.getRemainingFuel(); float endDegree = ANIMATION_DEGREE_RANGE * remainFuel / maxFuel; AnimationHelper.startOnceRotateAnimation(pointerImage, ANIMATION_START_DEGREE, endDegree, ANIMATION_DURATION); } }
unlicense
hyller/GladiatorCots
STM32F10x_StdPeriph_Lib/V3.1.X/Project/STM32F10x_StdPeriph_Examples/DAC/OneChannel_NoiseWave/main.c
4955
/** ****************************************************************************** * @file DAC/OneChannel_NoiseWave/main.c * @author MCD Application Team * @version V3.1.2 * @date 09/28/2009 * @brief Main program body. ****************************************************************************** * @copy * * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. * * <h2><center>&copy; COPYRIGHT 2009 STMicroelectronics</center></h2> */ /* Includes ------------------------------------------------------------------*/ #include "stm32f10x.h" /** @addtogroup STM32F10x_StdPeriph_Examples * @{ */ /** @addtogroup DAC_OneChannel_NoiseWave * @{ */ /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Init Structure definition */ DAC_InitTypeDef DAC_InitStructure; /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ void RCC_Configuration(void); void GPIO_Configuration(void); void Delay(__IO uint32_t nCount); /* Private functions ---------------------------------------------------------*/ /** * @brief Main program. * @param None * @retval None */ int main(void) { /* System Clocks Configuration */ RCC_Configuration(); /* Once the DAC channel is enabled, the corresponding GPIO pin is automatically connected to the DAC converter. In order to avoid parasitic consumption, the GPIO pin should be configured in analog */ GPIO_Configuration(); /* DAC channel1 Configuration */ DAC_InitStructure.DAC_Trigger = DAC_Trigger_Software; DAC_InitStructure.DAC_WaveGeneration = DAC_WaveGeneration_Noise; DAC_InitStructure.DAC_LFSRUnmask_TriangleAmplitude = DAC_LFSRUnmask_Bits8_0; DAC_InitStructure.DAC_OutputBuffer = DAC_OutputBuffer_Enable; DAC_Init(DAC_Channel_1, &DAC_InitStructure); /* Enable DAC Channel1: Once the DAC channel1 is enabled, PA.04 is automatically connected to the DAC converter. */ DAC_Cmd(DAC_Channel_1, ENABLE); /* Set DAC Channel1 DHR12L register */ DAC_SetChannel1Data(DAC_Align_12b_L, 0x7FF0); while (1) { /* Start DAC Channel1 conversion by software */ DAC_SoftwareTriggerCmd(DAC_Channel_1, ENABLE); } } /** * @brief Configures the different system clocks. * @param None * @retval None */ void RCC_Configuration(void) { /* Setup the microcontroller system. Initialize the Embedded Flash Interface, initialize the PLL and update the SystemFrequency variable. */ SystemInit(); /* Enable peripheral clocks --------------------------------------------------*/ /* GPIOA Periph clock enable */ RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE); /* DAC Periph clock enable */ RCC_APB1PeriphClockCmd(RCC_APB1Periph_DAC, ENABLE); } /** * @brief Configures the different GPIO ports. * @param None * @retval None */ void GPIO_Configuration(void) { GPIO_InitTypeDef GPIO_InitStructure; /* Once the DAC channel is enabled, the corresponding GPIO pin is automatically connected to the DAC converter. In order to avoid parasitic consumption, the GPIO pin should be configured in analog */ GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AIN; GPIO_Init(GPIOA, &GPIO_InitStructure); } /** * @brief Inserts a delay time. * @param nCount: specifies the delay time length. * @retval None */ void Delay(__IO uint32_t nCount) { for(; nCount != 0; nCount--); } #ifdef USE_FULL_ASSERT /** * @brief Reports the name of the source file and the source line number * where the assert_param error has occurred. * @param file: pointer to the source file name * @param line: assert_param error line source number * @retval None */ void assert_failed(uint8_t* file, uint32_t line) { /* User can add his own implementation to report the file name and line number, ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ /* Infinite loop */ while (1) { } } #endif /** * @} */ /** * @} */ /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
unlicense
republib/reqt
cunit/cuReVM.cpp
1955
/* * cuReVM.cpp * * (Un)License: Public Domain * You can use and modify this file without any restriction. * Do what you want. * No warranties and disclaimer of any damages. * More info: http://unlicense.org * The latest sources: https://github.com/republib */ #include "base/rebase.hpp" #include "expr/reexpr.hpp" class TestReVM: public ReTest { private: ReSource m_source; ReASTree m_tree; ReStringReader m_reader; const char* m_currentSource; public: TestReVM() : ReTest("ReVM"), m_source(), m_tree(), m_reader(m_source) { m_source.addReader(&m_reader); doIt(); } protected: void setSource(const char* content) { ReASItem::reset(); m_currentSource = content; m_tree.clear(); m_source.clear(); m_reader.clear(); m_reader.addSource("<test>", content); m_source.addReader(&m_reader); m_source.addSourceUnit(m_reader.currentSourceUnit()); } private: void checkAST(const char* fileExpected, int lineNo) { QByteArray fnExpected = "test"; fnExpected += QDir::separator().toLatin1(); fnExpected += "ReVM"; fnExpected += (char) QDir::separator().toLatin1(); fnExpected += fileExpected; QByteArray fnCurrent = getTempFile(fileExpected, "ReVM"); ReMFParser parser(m_source, m_tree); parser.parse(); ReVirtualMachine vm(m_tree, m_source); vm.setFlag(ReVirtualMachine::VF_TRACE_STATEMENTS); ReFileWriter writer(fnCurrent); vm.setTraceWriter(&writer); writer.write(m_currentSource); vm.executeModule("<test>"); assertEqualFiles(fnExpected.constData(), fnCurrent.constData(), __FILE__, lineNo); } public: void baseTest() { setSource("Int a=2+3*4;\nfunc Void main():\na;\nendf"); checkAST("baseTest.txt", __LINE__); } virtual void run(void) { baseTest(); } }; void testReVM() { TestReVM test; }
unlicense
yuyaotsuka/core
include/core/meta/mathematics/set/Union.type.h
1620
#ifndef _core_meta_mathematics_set_Union #define _core_meta_mathematics_set_Union ::core::meta_mathematics_set_Union namespace core { template<typename ... A> struct meta_mathematics_set_Union_; template<typename ... A> using meta_mathematics_set_Union = typename meta_mathematics_set_Union_<A ...>::Value; } #include <core/RemoveAllQualifiers.type.h> #include <core/meta/Set.type.h> #include <core/meta/mathematics/set/contains.h> namespace core { template<> struct meta_mathematics_set_Union_<> { using Value = meta_mathematics_Set<>; }; template<typename A> struct meta_mathematics_set_Union_<A> { using Value = A; }; template<typename A, typename ... B> struct meta_mathematics_set_Union_<A, B ...> { using Value = meta_mathematics_set_Union<A, meta_mathematics_set_Union<B ...>>; }; template<typename ... A> struct meta_mathematics_set_Union_<meta_mathematics_Set<A ...>, meta_mathematics_Set<>> { using Value = meta_mathematics_Set<A ...>; }; template< typename ... A, typename B, typename ... C > struct meta_mathematics_set_Union_<meta_mathematics_Set<A ...>, meta_mathematics_Set<B, C ...>> { static constexpr auto value() -> decltype(auto) { if constexpr (meta_mathematics_set_contains<meta_mathematics_Set<A ...>, B>) return meta_declval<meta_mathematics_set_Union<meta_mathematics_Set<A ...>, meta_mathematics_Set<C ...>>>(); else return meta_declval<meta_mathematics_set_Union<meta_mathematics_Set<A ..., B>, meta_mathematics_Set<C ...>>>(); } using Value = RemoveAllQualifiers<decltype(value())>; }; } #endif
unlicense
luiz-simples/kauris
server/src/profile/profile.search.js
703
'use strict'; function ProfileSearch(injector) { var service = this; service.list = function(params) { var connection = injector.connection; var ProfileModel = injector.ProfileModel; var profileSearch = new ProfileModel(); var page = params.page || 1; var where = params.where || []; var order = params.order || []; var limit = params.limit || 10; var fields = params.fields || profileSearch.fields; profileSearch.page = page; profileSearch.order = order; profileSearch.where = where; profileSearch.limit = limit; profileSearch.fields = fields; connection.search(profileSearch); }; } module.exports = ProfileSearch;
unlicense
pine613/chef-repo-nginx-php-fcgi
site-cookbooks/nginx-php-fcgi-default-site/README.md
1684
nginx-php-fcgi-default-site Cookbook ==================================== TODO: Enter the cookbook description here. e.g. This cookbook makes your favorite breakfast sandwich. Requirements ------------ TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc. e.g. #### packages - `toaster` - nginx-php-fcgi-default-site needs toaster to brown your bagel. Attributes ---------- TODO: List your cookbook attributes here. e.g. #### nginx-php-fcgi-default-site::default <table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>['nginx-php-fcgi-default-site']['bacon']</tt></td> <td>Boolean</td> <td>whether to include bacon</td> <td><tt>true</tt></td> </tr> </table> Usage ----- #### nginx-php-fcgi-default-site::default TODO: Write usage instructions for each cookbook. e.g. Just include `nginx-php-fcgi-default-site` in your node's `run_list`: ```json { "name":"my_node", "run_list": [ "recipe[nginx-php-fcgi-default-site]" ] } ``` Contributing ------------ TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section. e.g. 1. Fork the repository on Github 2. Create a named feature branch (like `add_component_x`) 3. Write your change 4. Write tests for your change (if applicable) 5. Run the tests, ensuring they all pass 6. Submit a Pull Request using Github License and Authors ------------------- Authors: TODO: List authors
unlicense
B1zDelNick/phaser-npm-webpack-typescript-starter-project-master
src/states/template/final/cross.button.ts
2417
import {GameConfig} from '../../../config/game.config'; import {GuiUtils} from '../../../utils/gui.utils'; import {isString} from 'util'; export class CrossButton { private state: Phaser.State = null; private game: Phaser.Game = null; private url: string = ''; private container: Phaser.Group = null; private btns: Phaser.Button[] = []; private sprites: Phaser.Sprite[] = []; constructor(state: Phaser.State, crossUrl: string = '') { this.state = state; this.game = GameConfig.GAME; this.url = crossUrl; this.container = this.game.add.group(); } link(url: string): CrossButton { this.url = url; return this; } sprite(): CrossButton { return this; } animatedSprite(): CrossButton { return this; } button(x: number, y: number, scale: number, asset: string, frames?: any|any[], overHandler: Function = GuiUtils.addOverHandler, outHandler: Function = GuiUtils.addOutHandler): CrossButton { if (frames == null) { frames = [0, 0, 0]; } else if (isString(frames)) { frames = [frames, frames, frames]; } this.btns.push(GuiUtils.makeButton( this.state, this.container, x, y, scale, '', asset, frames, true, true, true, GuiUtils.goCross(this.url), overHandler, outHandler)); return this; } buttonAndReturn(x: number, y: number, scale: number, asset: string, frames?: any|any[], overHandler: Function = GuiUtils.addOverHandler, outHandler: Function = GuiUtils.addOutHandler): Phaser.Button { if (frames == null) { frames = [0, 0, 0]; } else if (isString(frames)) { frames = [frames, frames, frames]; } const btn = GuiUtils.makeButton( this.state, this.container, x, y, scale, '', asset, frames, true, true, true, GuiUtils.goCross(this.url), overHandler, outHandler); this.btns.push(btn); return btn; } getBody(): Phaser.Group { return this.container; } dispose() { for (let btn of this.btns) { btn.destroy(true); } for (let spr of this.sprites) { spr.destroy(true); } this.container.destroy(true); } }
unlicense
bon-secours/jeremie
_posts/2017-06-07-welcome-to-jekyll.markdown
1184
--- layout: default title: "Welcome to Jekyll!" date: 2017-06-07 21:35:59 +0200 --- You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. Jekyll also offers powerful support for code snippets: {% highlight ruby %} def print_hi(name) puts "Hi, #{name}" end print_hi('Tom') #=> prints 'Hi, Tom' to STDOUT. {% endhighlight %} Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. [jekyll-docs]: https://jekyllrb.com/docs/home [jekyll-gh]: https://github.com/jekyll/jekyll [jekyll-talk]: https://talk.jekyllrb.com/
unlicense
gkellogg/gkellogg.github.io
galleries/Above the Bay Area/large-22.html
2208
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><!-- STOCK BOOK DETAIL HTML --><head> <title>Above the Bay Area - Above the Bay Area 2008-04-23 16-51-04</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="assets/css/global.css" rel="stylesheet" type="text/css"> <meta name="description" localizable="true" content="Created by Apple Aperture"> </head><body class="detail"> <div id="header"> <h1 localizable="true">Above the Bay Area</h1> <ul id="nav"><!-- The list items below need to be smashed together for IE on Windows --> <li class="index"><a href="index3.html" localizable="true">Index</a></li><li class="previous"> <a href="large-21.html"><em class="previous_text" localizable="true">Previous</em> </a> </li><li class="pageNumber">22 of 97</li><li class="next"> <a href="large-23.html"><em class="next_text" localizable="true">Next</em> </a> </li></ul> <div style="clear: both;"></div> </div> <table><tbody><tr><td class="sideinfo"> <h2></h2> <ul id="metadata"><li>Rating: 3 </li><li>Badges: Adjusted Keyword </li><li>Caption: USS Iowa </li><li>Keywords: KGO Traffic Helicopter, Mothball Fleet, USS Iowa Battleship </li><li>Name: Above the Bay Area 2008-04-23 16-51-04 </li><li>Image Date: 4/23/08 4:51:04 PM PDT </li><li>Aperture: ƒ/8 </li><li>Shutter Speed: 1/640 </li><li>Exposure Bias: -1.0ev </li><li>ISO Speed Rating: ISO 200 </li><li>Focal Length (35mm): 127.0mm </li><li>Focal Length: 85.0mm </li><li>Pixel Size: 3884 × 2600 </li><li>File Name: KGO Traffic 2008-04-23 16-51-04.NEF </li><li>File Size: 15.90 MB </li><li>Camera Model: NIKON D200 </li><li>Project: Above the Bay Area </li><li>Copyright Notice: Copyright 2008, Gregg Kellogg </li></ul> </td><td style="width:100%;"> <div id="photo"><table startoffset="21"><tr><td><img name="img" src="pictures/picture-22.jpg" width="600" height="401" alt=""></td></tr></table></div> </td></tr></tbody></table> <div id="footer"> <p localizable="true">Copyright 2008, Gregg Kellogg. All rights reserved.</p> </div> </body></html>
unlicense
paly2/minetest-minetestforfun-server
mods/inventory_icon/init.lua
4424
inventory_icon = {} inventory_icon.hudids = {} inventory_icon.COLORIZE_STRING = "[colorize:#A00000:192" function inventory_icon.get_inventory_state(inv, listname) local size = inv:get_size(listname) local occupied = 0 for i=1,size do local stack = inv:get_stack(listname, i) if not stack:is_empty() then occupied = occupied + 1 end end return occupied, size end function inventory_icon.replace_icon(name) return "inventory_icon_"..name end minetest.register_on_joinplayer(function(player) local name = player:get_player_name() inventory_icon.hudids[name] = {} local occupied, size = inventory_icon.get_inventory_state(player:get_inventory(), "main") local icon if occupied >= size then icon = "inventory_icon_backpack_full.png" else icon = "inventory_icon_backpack_free.png" end inventory_icon.hudids[name].main = {} inventory_icon.hudids[name].main.icon = player:hud_add({ hud_elem_type = "image", position = {x=1,y=1}, scale = {x=1,y=1}, offset = {x=-32,y=-32}, text = icon, }) inventory_icon.hudids[name].main.text = player:hud_add({ hud_elem_type = "text", position = {x=1,y=1}, scale = {x=1,y=1}, offset = {x=-36,y=-20}, alignment = {x=0,y=0}, number = 0xFFFFFF, text = string.format("%d/%d", occupied, size) }) if minetest.get_modpath("unified_inventory") ~= nil then inventory_icon.hudids[name].bags = {} local bags_inv = minetest.get_inventory({type = "detached", name = name.."_bags"}) for i=1,4 do local bag = bags_inv:get_stack("bag"..i, 1) local scale, text, icon if bag:is_empty() then scale = { x = 0, y = 0 } text = "" icon = "inventory_icon_bags_small.png" else scale = { x = 1, y = 1 } local occupied, size = inventory_icon.get_inventory_state(player:get_inventory(), "bag"..i.."contents") text = string.format("%d/%d", occupied, size) icon = inventory_icon.replace_icon(minetest.registered_items[bag:get_name()].inventory_image) if occupied >= size then icon = icon .. "^" .. inventory_icon.COLORIZE_STRING end end inventory_icon.hudids[name].bags[i] = {} inventory_icon.hudids[name].bags[i].icon = player:hud_add({ hud_elem_type = "image", position = {x=1,y=1}, scale = scale, size = { x=32, y=32 }, offset = {x=-36,y=-32 -40*i}, text = icon, }) inventory_icon.hudids[name].bags[i].text = player:hud_add({ hud_elem_type = "text", position = {x=1,y=1}, scale = scale, offset = {x=-36,y=-20 -40*i}, alignment = {x=0,y=0}, number = 0xFFFFFF, text = text, }) end end end) minetest.register_on_leaveplayer(function(player) inventory_icon.hudids[player:get_player_name()] = nil end) local function tick() minetest.after(1, tick) for playername,hudids in pairs(inventory_icon.hudids) do local player = minetest.get_player_by_name(playername) if player then local occupied, size = inventory_icon.get_inventory_state(player:get_inventory(), "main") local icon, color if occupied >= size then icon = "inventory_icon_backpack_full.png" else icon = "inventory_icon_backpack_free.png" end player:hud_change(hudids.main.icon, "text", icon) player:hud_change(hudids.main.text, "text", string.format("%d/%d", occupied, size)) if minetest.get_modpath("unified_inventory") ~= nil then local bags_inv = minetest.get_inventory({type = "detached", name = playername.."_bags"}) for i=1,4 do local bag = bags_inv:get_stack("bag"..i, 1) local scale, text, icon if bag:is_empty() then scale = { x = 0, y = 0 } text = "" icon = "inventory_icon_bags_small.png" else scale = { x = 1, y = 1 } local occupied, size = inventory_icon.get_inventory_state(player:get_inventory(), "bag"..i.."contents") text = string.format("%d/%d", occupied, size) icon = inventory_icon.replace_icon(minetest.registered_items[bag:get_name()].inventory_image) if occupied >= size then icon = icon .. "^" .. inventory_icon.COLORIZE_STRING end end player:hud_change(inventory_icon.hudids[playername].bags[i].icon, "text", icon) player:hud_change(inventory_icon.hudids[playername].bags[i].icon, "scale", scale) player:hud_change(inventory_icon.hudids[playername].bags[i].text, "text", text) player:hud_change(inventory_icon.hudids[playername].bags[i].text, "scale", scale) end end end end end tick()
unlicense
gagarwal/codingproblemsandsolutions
src/BreadthAndDepthFirstSearch/IncreasingOrderBinarySearchTree.java
1654
package BreadthAndDepthFirstSearch; // https://leetcode.com/problems/increasing-order-search-tree/ import java.util.ArrayList; import java.util.Arrays; public class IncreasingOrderBinarySearchTree { private static class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int value) { val = value; } static TreeNode buildBinaryTree(ArrayList<Integer> array) { return buildBinaryTree(array, 0, array.size() - 1); } private static TreeNode buildBinaryTree(ArrayList<Integer> array, int start, int end) { if (start > end || array.get(start) == null) { return null; } TreeNode node = new TreeNode(array.get(start)); int leftChildIndex = 2 * start + 1; int rightChildIndex = 2 * start + 2; if (leftChildIndex <= end) { node.left = buildBinaryTree(array, leftChildIndex, end); } if (rightChildIndex <= end) { node.right = buildBinaryTree(array, rightChildIndex, end); } return node; } } private static TreeNode current = null; private static TreeNode increasingBST(TreeNode root) { TreeNode result = new TreeNode(0); current = result; inOrder(root); return result.right; } private static void inOrder(TreeNode node) { if (node == null) { return; } inOrder(node.left); node.left = null; current.right = node; current = node; inOrder(node.right); } public static void main(String[] args) { ArrayList<Integer> array = new ArrayList<>(Arrays.asList(5, 3, 6, 2, 4, null, 8, 1, null, null, null, 7, 9)); TreeNode root = TreeNode.buildBinaryTree(array); TreeNode result = increasingBST(root); System.out.println(result); } }
unlicense
emeeks/d3_in_action_2
chapter7/7_19.html
5105
<!doctype html> <html> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.8/d3.min.js" type="text/JavaScript"></script> <style> .link { stroke: #93C464; } marker { fill: #93C464; } </style> </head> <body> <div id="controls"> </div> <div id="viz"> <svg style="width:600px;height:600px;" ></svg> </div> <script> var roleScale = d3.scaleOrdinal() .domain(["contractor", "employee", "manager"]) .range(["#75739F", "#41A368", "#FE9922"]); var PromiseWrapper = d => new Promise(resolve => d3.csv(d, p => resolve(p))); Promise .all([ PromiseWrapper("../data/nodelist.csv"), PromiseWrapper("../data/edgelist.csv") ]) .then(resolve => { createForceLayout(resolve[0], resolve[1]); }); function createForceLayout(nodes,edges) { var marker = d3.select("svg").append('defs') .append('marker') .attr("id", "Triangle") .attr("refX", 12) .attr("refY", 6) .attr("markerUnits", 'userSpaceOnUse') .attr("markerWidth", 12) .attr("markerHeight", 18) .attr("orient", 'auto') .append('path') .attr("d", 'M 0 0 12 6 0 12 3 6'); var nodeHash = {}; nodes.forEach(node => { nodeHash[node.id] = node; }); edges.forEach(edge => { edge.weight = parseInt(edge.weight); edge.source = nodeHash[edge.source]; edge.target = nodeHash[edge.target]; }); nodes.forEach(d => { d.degreeCentrality = edges.filter( p => p.source === d || p.target === d).length }); console.log(nodes); var linkForce = d3.forceLink().strength(d => d.weight * .1); var simulation = d3.forceSimulation() .force("charge", d3.forceManyBody().strength(-500)) .force("x", d3.forceX(250)) .force("y", d3.forceY(250)) .force("link", linkForce) .nodes(nodes) .on("tick", forceTick); simulation.force("link").links(edges); d3.select("svg").selectAll("line.link") .data(edges, d => `${d.source.id}-${d.target.id}`) .enter() .append("line") .attr("class", "link") .style("opacity", .5) .style("stroke-width", d => d.weight); d3.selectAll("line").attr("marker-end", "url(#Triangle)"); var nodeEnter = d3.select("svg").selectAll("g.node") .data(nodes, d => d.id) .enter() .append("g") .attr("class", "node"); nodeEnter.append("circle") .attr("r", d => d.degreeCentrality * 2) .style("fill", d => roleScale(d.role)); nodeEnter.append("text") .style("text-anchor", "middle") .attr("y", 15) .text(d => d.id); d3.select("svg") .on("click", manuallyPositionNodes); function manuallyPositionNodes() { var xExtent = d3.extent(simulation.nodes(), d => parseInt(d.degreeCentrality)); var yExtent = d3.extent(simulation.nodes(), d => parseInt(d.salary)); var xScale = d3.scaleLinear().domain(xExtent).range([50,450]); var yScale = d3.scaleLinear().domain(yExtent).range([450,50]); simulation.stop(); d3.selectAll("g.node") .transition() .duration(1000) .attr("transform", d => `translate(${xScale(d.degreeCentrality)} , ${yScale(d.salary) })`); d3.selectAll("line.link") .transition() .duration(1000) .attr("x1", d => xScale(d.source.degreeCentrality)) .attr("y1", d => yScale(d.source.salary)) .attr("x2", d => xScale(d.target.degreeCentrality)) .attr("y2", d => yScale(d.target.salary)); var xAxis = d3.axisBottom().scale(xScale).tickSize(4); var yAxis = d3.axisRight().scale(yScale).tickSize(4); d3.select("svg").append("g").attr("transform", "translate(0,460)").call(xAxis); d3.select("svg").append("g").attr("transform", "translate(460,0)").call(yAxis); d3.selectAll("g.node").each(d => { d.x = xScale(d.degreeCentrality); d.vx = 0; d.y = yScale(d.salary); d.vy = 0; }); } function forceTick() { d3.selectAll("line.link") .attr("x1", d => d.source.x) .attr("x2", d => d.target.x) .attr("y1", d => d.source.y) .attr("y2", d => d.target.y); d3.selectAll("g.node") .attr("transform", d => `translate(${d.x},${d.y})`); } } </script> </body> </html>
unlicense
caiorss/Functional-Programming
scala/src/clockDisplayGui.scala
584
def runTimer(interval: Int, taskFn: () => Unit) = { val task = new java.util.TimerTask() { def run() { taskFn() } } val timer = new java.util.Timer() // Run the task every 1 second interval (or 1000 milli seconds) timer.schedule(task, 1, interval) timer } def currentTime() = { java.time.LocalDateTime.now.toString } val frame = new javax.swing.JFrame("Java Clock App") val label = new javax.swing.JLabel("") frame.add(label) frame.setSize(375, 76) frame.setVisible(true) runTimer(1000, () => label.setText(currentTime())) print("\nob_scala_eol")
unlicense
mattcoffey/node.js
chatServer.js
1002
var net = require('net') var chatServer = net.createServer(), clientList = [] chatServer.on('connection', function(client) { client.name = client.remoteAddress + ':' + client.remotePort client.write('Hi ' + client.name + '!\n'); console.log(client.name + ' joined') clientList.push(client) client.on('data', function(data) { broadcast(data, client) }) client.on('end', function(data) { console.log(client.name + ' quit') clientList.splice(clientList.indexOf(client), 1) }) client.on('error', function(e) { console.log(e) }) }) function broadcast(message, client) { for(var i=0;i<clientList.length;i+=1) { if(client !== clientList[i]) { if(clientList[i].writable) { clientList[i].write(client.name + " says " + message) } else { cleanup.push(clientList[i]) clientList[i].destroy() } } } } chatServer.listen(9000)
unlicense
Bozebo/buddhabrot
vec2.h
798
#ifndef HEADER_VEC2 #define HEADER_VEC2 namespace maths{ struct vec2 { float x, y; vec2() = default; vec2(const float &x, const float &y); bool operator==(const vec2 &other); bool operator!=(const vec2 &other); vec2& add(const vec2 &other); vec2& subtract(const vec2 &other); vec2& multiply(const vec2 &other); vec2& divide(const vec2 &other); friend vec2 operator+(vec2 left, const vec2 &right); friend vec2 operator-(vec2 left, const vec2 &right); friend vec2 operator*(vec2 left, const vec2 &right); friend vec2 operator/(vec2 left, const vec2 &right); vec2& operator+=(const vec2 &other); vec2& operator-=(const vec2 &other); vec2& operator*=(const vec2 &other); vec2& operator/=(const vec2 &other); }; } #endif
unlicense
ghostxwheel/utorrent-webui
resources/sap/ui/model/odata/type/Guid-dbg.js
5646
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['sap/ui/model/FormatException', 'sap/ui/model/odata/type/ODataType', 'sap/ui/model/ParseException', 'sap/ui/model/ValidateException'], function(FormatException, ODataType, ParseException, ValidateException) { "use strict"; var rGuid = /^[A-F0-9]{8}-([A-F0-9]{4}-){3}[A-F0-9]{12}$/i; /** * Returns the locale-dependent error message. * * @returns {string} * the locale-dependent error message. * @private */ function getErrorMessage() { return sap.ui.getCore().getLibraryResourceBundle().getText("EnterGuid"); } /** * Sets the constraints. * * @param {sap.ui.model.odata.type.Guid} oType * the type instance * @param {object} [oConstraints] * constraints, see {@link #constructor} */ function setConstraints(oType, oConstraints) { var vNullable = oConstraints && oConstraints.nullable; oType.oConstraints = undefined; if (vNullable === false || vNullable === "false") { oType.oConstraints = {nullable: false}; } else if (vNullable !== undefined && vNullable !== true && vNullable !== "true") { jQuery.sap.log.warning("Illegal nullable: " + vNullable, null, oType.getName()); } } /** * Constructor for an OData primitive type <code>Edm.Guid</code>. * * @class This class represents the OData primitive type <a * href="http://www.odata.org/documentation/odata-version-2-0/overview#AbstractTypeSystem"> * <code>Edm.Guid</code></a>. * * In {@link sap.ui.model.odata.v2.ODataModel ODataModel} this type is represented as a * <code>string</code>. * * @extends sap.ui.model.odata.type.ODataType * * @author SAP SE * @version 1.28.10 * * @alias sap.ui.model.odata.type.Guid * @param {object} [oFormatOptions] * format options as defined in the interface of {@link sap.ui.model.SimpleType}; this * type ignores them since it does not support any format options * @param {object} [oConstraints] * constraints; {@link #validateValue validateValue} throws an error if any constraint is * violated * @param {boolean|string} [oConstraints.nullable=true] * if <code>true</code>, the value <code>null</code> is accepted * @public * @since 1.27.0 */ var EdmGuid = ODataType.extend("sap.ui.model.odata.type.Guid", /** @lends sap.ui.model.odata.type.Guid.prototype */ { constructor : function (oFormatOptions, oConstraints) { ODataType.apply(this, arguments); setConstraints(this, oConstraints); } } ); /** * Formats the given value to the given target type. * * @param {string} sValue * the value to be formatted * @param {string} sTargetType * the target type; may be "any" or "string". * See {@link sap.ui.model.odata.type} for more information. * @returns {string} * the formatted output value in the target type; <code>undefined</code> or <code>null</code> * are formatted to <code>null</code> * @throws {sap.ui.model.FormatException} * if <code>sTargetType</code> is unsupported * @public */ EdmGuid.prototype.formatValue = function(sValue, sTargetType) { if (sValue === undefined || sValue === null) { return null; } if (sTargetType === "string" || sTargetType === "any") { return sValue; } throw new FormatException("Don't know how to format " + this.getName() + " to " + sTargetType); }; /** * Returns the type's name. * * @returns {string} * the type's name * @public */ EdmGuid.prototype.getName = function () { return "sap.ui.model.odata.type.Guid"; }; /** * Parses the given value to a GUID. * * @param {string} sValue * the value to be parsed, maps <code>""</code> to <code>null</code> * @param {string} sSourceType * the source type (the expected type of <code>sValue</code>); must be "string". * See {@link sap.ui.model.odata.type} for more information. * @returns {string} * the parsed value * @throws {sap.ui.model.ParseException} * if <code>sSourceType</code> is unsupported * @public */ EdmGuid.prototype.parseValue = function (sValue, sSourceType) { var sResult; if (sValue === "" || sValue === null) { return null; } if (sSourceType !== "string") { throw new ParseException("Don't know how to parse " + this.getName() + " from " + sSourceType); } // remove all whitespaces and separators sResult = sValue.replace(/[-\s]/g, ''); if (sResult.length != 32) { // don't try to add separators to invalid value return sValue; } sResult = sResult.slice(0, 8) + '-' + sResult.slice(8, 12) + '-' + sResult.slice(12, 16) + '-' + sResult.slice(16, 20) + '-' + sResult.slice(20); return sResult.toUpperCase(); }; /** * Validates whether the given value in model representation is valid and meets the * given constraints. * * @param {string} sValue * the value to be validated * @returns {void} * @throws {sap.ui.model.ValidateException} * if the value is not valid * @public */ EdmGuid.prototype.validateValue = function (sValue) { if (sValue === null) { if (this.oConstraints && this.oConstraints.nullable === false) { throw new ValidateException(getErrorMessage()); } return; } if (typeof sValue !== "string") { // This is a "technical" error by calling validate w/o parse throw new ValidateException("Illegal " + this.getName() + " value: " + sValue); } if (!rGuid.test(sValue)) { throw new ValidateException(getErrorMessage()); } }; return EdmGuid; });
unlicense
Sofronio/youtube-dl-gui
tests/test_utils.py
1981
#!/usr/bin/env python # -*- coding: utf-8 -*- """Contains test cases for the utils.py module.""" from __future__ import unicode_literals import sys import os.path import unittest PATH = os.path.realpath(os.path.abspath(__file__)) sys.path.insert(0, os.path.dirname(os.path.dirname(PATH))) try: from youtube_dl_gui import utils except ImportError as error: print error sys.exit(1) class TestToBytes(unittest.TestCase): """Test case for the to_bytes method.""" def test_to_bytes_bytes(self): self.assertEqual(utils.to_bytes("596.00B"), 596.00) self.assertEqual(utils.to_bytes("133.55B"), 133.55) def test_to_bytes_kilobytes(self): self.assertEqual(utils.to_bytes("1.00KiB"), 1024.00) self.assertEqual(utils.to_bytes("5.55KiB"), 5683.20) def test_to_bytes_megabytes(self): self.assertEqual(utils.to_bytes("13.64MiB"), 14302576.64) self.assertEqual(utils.to_bytes("1.00MiB"), 1048576.00) def test_to_bytes_gigabytes(self): self.assertEqual(utils.to_bytes("1.00GiB"), 1073741824.00) self.assertEqual(utils.to_bytes("1.55GiB"), 1664299827.20) def test_to_bytes_terabytes(self): self.assertEqual(utils.to_bytes("1.00TiB"), 1099511627776.00) class TestFormatBytes(unittest.TestCase): """Test case for the format_bytes method.""" def test_format_bytes_bytes(self): self.assertEqual(utils.format_bytes(518.00), "518.00B") def test_format_bytes_kilobytes(self): self.assertEqual(utils.format_bytes(1024.00), "1.00KiB") def test_format_bytes_megabytes(self): self.assertEqual(utils.format_bytes(1048576.00), "1.00MiB") def test_format_bytes_gigabytes(self): self.assertEqual(utils.format_bytes(1073741824.00), "1.00GiB") def test_format_bytes_terabytes(self): self.assertEqual(utils.format_bytes(1099511627776.00), "1.00TiB") def main(): unittest.main() if __name__ == "__main__": main()
unlicense
kamilwu/fracx
src/escapeTimeFractal.cpp
904
#include "escapeTimeFractal.h" escapeTimeFractal::escapeTimeFractal() : fractal() { zoomed_fr_x_max = FR_X_MAX; zoomed_fr_x_min = FR_X_MIN; zoomed_fr_y_max = FR_Y_MAX; zoomed_fr_y_min = FR_Y_MIN; } void escapeTimeFractal::render(QImage *image, int begin, int end) { for (int i = begin; i < end; ++i) { for (int j = 0; j < screenWidth; ++j) { int iteration = escape((double)j, (double)i); image->setPixel(j, i, getColor(iteration, maxIterations).rgb()); } } } QColor escapeTimeFractal::getColor(int value, int maxValue) const { QColor color; if (value >= maxValue) { // zwróć czarny kolor color.setRgb(0, 0, 0); return color; } double t = value / (double) maxValue; int r = (int)(9 * (1 - t) * t * t * t * 255); int g = (int)(15 * (1 - t) * (1 - t) * t * t * 255); int b = (int)(8.5 * (1 - t) * (1 - t) * (1 - t) * t * 255); color.setRgb(r, g, b); return color; }
unlicense
raphaelsavina/mdl_gdgdublin_workshop
Step_2.html
1902
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content="A simple tutorial for Material Design Lite."> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>MDL-Static Website - GDG Dublin</title> <!-- Another must have, the material Icons font --> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <!-- Here is the link to CSS, you can choose your theme here: --> <!-- http://www.getmdl.io/customize/index.html --> <link rel="stylesheet" href="https://code.getmdl.io/1.1.3/material.blue-green.min.css" /> <!-- and you need the minified .js --> <script src="https://code.getmdl.io/1.1.3/material.min.js"></script> </head> <body> <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-layout--no-desktop-drawer-button"> <header class="mdl-layout__header"> <div class="mdl-layout__header-row mdl-layout--large-screen-only"> <span class="mdl-layout__title">Material Design Lite</span> <div class="mdl-layout-spacer"></div> <nav class="mdl-navigation"> <a class="mdl-navigation__link" href="#">Hello</a> <a class="mdl-navigation__link" href="#">World</a> </nav> </div> </header> <div class="mdl-layout__drawer"> <span class="mdl-layout__title">Material Design Lite</span> <nav class="mdl-navigation"> <a class="mdl-navigation__link" href="#">Hello</a> <a class="mdl-navigation__link" href="#">World</a> </nav> </div> <main class="mdl-layout__content"> Here will be the content... </main> </div> </body> </html>
unlicense
htpcaff/ezqueue
rollup.bat
93
set EZHOME=C:\ezqueue cd %EZHOME% call env.bat "C:\Program Files\nodejs\node.exe" .\app.js
unlicense
sunflowerdeath/broccoli-glob-filter
tests/test.js
5011
var assert = require('assert') var path = require('path') var fs = require('fs-extra') var sinon = require('sinon') var broccoli = require('broccoli') var Q = require('q') var Filter = require('..') describe('Filter', function() { var ORIG_DIR = path.join(__dirname, 'files') var DIR = path.join(__dirname, 'files-copy') var ONE_FILE_DIR = path.join(__dirname, 'one-file') var builder var createCustomFilter = function() { var CustomFilter = function(inputTrees, options) { if (!(this instanceof CustomFilter)) return new CustomFilter(inputTrees, options) Filter.apply(this, arguments) } CustomFilter.prototype = Object.create(Filter.prototype) return CustomFilter } beforeEach(function() { fs.copySync(ORIG_DIR, DIR) }) afterEach(function() { if (builder) builder.cleanup() fs.removeSync(DIR) }) it('throws when "processFileContent" is not implemented', function(done) { var CustomFilter = createCustomFilter() var tree = new CustomFilter(DIR) builder = new broccoli.Builder(tree) builder.build() .then(function() { done(new Error('Have not thrown')) }) .catch(function() { done() }) }) it('calls "processFileContent"', function() { var CustomFilter = createCustomFilter() var spy = CustomFilter.prototype.processFileContent = sinon.spy() var tree = new CustomFilter(ONE_FILE_DIR) builder = new broccoli.Builder(tree) return builder.build().then(function() { var args = spy.firstCall.args assert.equal(args[0], 'file.js\n') assert.equal(args[1], 'file.js') assert.equal(args[2], ONE_FILE_DIR) }) }) var FILTERED = 'filtered' it('filters files', function() { var CustomFilter = createCustomFilter() CustomFilter.prototype.processFileContent = function() { return FILTERED } var tree = new CustomFilter(ONE_FILE_DIR) builder = new broccoli.Builder(tree) return builder.build().then(function(result) { var dir = result.directory var content = fs.readFileSync(path.join(dir, 'file.js'), 'utf-8') assert.equal(content, FILTERED) }) }) it('uses "targetExtension"', function() { var CustomFilter = createCustomFilter() CustomFilter.prototype.processFileContent = function() { return FILTERED } var tree = new CustomFilter(ONE_FILE_DIR, {targetExtension: 'ext'}) builder = new broccoli.Builder(tree) return builder.build().then(function(result) { var dir = result.directory var content = fs.readFileSync(path.join(dir, 'file.ext'), 'utf-8') assert.equal(content, FILTERED) }) }) it('uses "changeFileName"', function() { var CustomFilter = createCustomFilter() CustomFilter.prototype.processFileContent = function() { return FILTERED } var tree = new CustomFilter(ONE_FILE_DIR, { targetExtension: 'ext', changeFileName: function(name) { return name + '.changed' } }) builder = new broccoli.Builder(tree) return builder.build().then(function(result) { var dir = result.directory var content = fs.readFileSync(path.join(dir, 'file.js.changed'), 'utf-8') assert.equal(content, FILTERED) }) }) it('can return many files', function() { var RESULT = [ {path: 'file1.js', content: 'FILE1'}, {path: 'file2.js', content: 'FILE2'} ] var CustomFilter = createCustomFilter() CustomFilter.prototype.processFileContent = function() { return RESULT } var tree = new CustomFilter(ONE_FILE_DIR) builder = new broccoli.Builder(tree) return builder.build().then(function(result) { var dir = result.directory RESULT.forEach(function(file) { var content = fs.readFileSync(path.join(dir, file.path), 'utf-8') assert.equal(content, file.content) }) }) }) it('can process files asynchronously', function() { var CustomFilter = createCustomFilter() CustomFilter.prototype.processFileContent = function() { var deferred = Q.defer() setTimeout(function() { deferred.resolve(FILTERED) }) return deferred.promise } var tree = new CustomFilter(ONE_FILE_DIR) builder = new broccoli.Builder(tree) return builder.build().then(function(result) { var dir = result.directory var content = fs.readFileSync(path.join(dir, 'file.js'), 'utf-8') assert.equal(content, FILTERED) }) }) it('copy not changed files from cache', function() { var CustomFilter = createCustomFilter() var spy = CustomFilter.prototype.processFileContent = sinon.spy() var tree = new CustomFilter(DIR) builder = new broccoli.Builder(tree) return builder.build() .then(function() { assert.equal(spy.callCount, 3) }) .then(function() { fs.writeFileSync(path.join(DIR, 'file.js'), 'CHANGED') return builder.build() }) .then(function() { assert.equal(spy.callCount, 4) }) }) it('finds files using globs', function() { var CustomFilter = createCustomFilter() var spy = CustomFilter.prototype.processFileContent = sinon.spy() var tree = new CustomFilter(DIR, {files: ['**/*.js']}) builder = new broccoli.Builder(tree) return builder.build() .then(function() { assert.equal(spy.callCount, 1) }) }) })
unlicense
chrascher/cpp-poker
PokerEins/Deck.h
773
#pragma once #include <stack> #include <array> #include "Card.h" // # include "PokerApp.h" class PokerApp; /* * We have the Deck of cards to be a stack itself, so basically we can add additional infos * and limitations here to be able to enforce correct deck behaviour */ class Deck { private: PokerApp & app; // a game knows which app it is attached to, generall basic infos will be get from there std::stack<Card *> cardStack; public: Deck(PokerApp & app); ~Deck(void); // creates a new random stack for a new game to play void shuffleNewStack() ; Card * getNextCard() { Card * nextCard = cardStack.top(); cardStack.pop(); return nextCard; } private: void cearStack() ; void debugRandomStack( std::array<Card *, 52> & cards) ; };
unlicense
mikewolfli/workflow
doxygen/html/classnstd__reason__list-members.html
9087
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.3.1"/> <title>wf: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">wf </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('classnstd__reason__list.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">nstd_reason_list Member List</div> </div> </div><!--header--> <div class="contents"> <p>This is the complete list of members for <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>, including all inherited members.</p> <table class="directory"> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>Button1</b> (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>Button2</b> (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>Button3</b> (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>clb_reason</b> (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>ID_BUTTON1</b> (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"><span class="mlabel">protected</span><span class="mlabel">static</span></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>ID_BUTTON2</b> (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"><span class="mlabel">protected</span><span class="mlabel">static</span></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>ID_BUTTON3</b> (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"><span class="mlabel">protected</span><span class="mlabel">static</span></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>ID_CHECKLISTBOX1</b> (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"><span class="mlabel">protected</span><span class="mlabel">static</span></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>init_checklistbox</b>(wxArrayString &amp;array_str) (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>m_reason</b> (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>nstd_reason_list</b>(wxWindow *parent=0, wxWindowID id=wxID_ANY, const wxPoint &amp;pos=wxDefaultPosition, const wxSize &amp;size=wxDefaultSize) (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>~nstd_reason_list</b>() (defined in <a class="el" href="classnstd__reason__list.html">nstd_reason_list</a>)</td><td class="entry"><a class="el" href="classnstd__reason__list.html">nstd_reason_list</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr> </table></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Tue Nov 24 2015 14:16:31 for wf by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3.1 </li> </ul> </div> </body> </html>
unlicense
kfazolin/biblia
language/es/bible/deuteronomy_14_9.html
92
De todo lo que está en el agua, de éstos podréis comer; todo lo que tiene aleta y escama.
unlicense
hhhayssh/nflpicks
src/main/webapp/javascript/nflpicks.js
78271
/** * * This is the "container" for global variables. I made it so we won't have to worry * about "conflicts" with local variable names. * */ var NFL_PICKS_GLOBAL = { /** * Here to store data from the server so we can hopefully load it once and then * get to it whenever it's needed as we're dealing with other stuff. */ data: { teams: [], players: [], years: [] }, /** * The possible types for what they can view. Like standings, picks, and stats. * Holds label and value pairs of all the possible types. */ types: [], /** * Holds label value pairs of all the players we show. Not all of them will be "real"... like if we * want to show "Everybody" or something like that. It'll be in here too. */ players: [], /** * All of the real players in label value pairs. This is so we can send only real players to the server * and pick them apart from the non-real players. */ realPlayers: [], /** * All the years we want to show. It'll have year ranges too (like "jurassic period" and "modern era"). It's * label and value pairs like the other arrays. */ years: [], /** * All the label and value pairs for the real and individual years. */ realYears: [], /** * All the weeks we want to show in label value pairs. It'll have ranges too (like "regular season" and "playoffs). */ weeks: [], /** * All the individual and real weeks that we want to send to the server. */ realWeeks: [], /** * All of the label/value pairs of the different stats we can show. */ statNames: [], /** * The current selections for everything they can pick. */ selections: {}, /** * Whether they're selecting more than one player at a time * or not. */ multiselectPlayer: false, /** * Whether they're selecting more than one week at a time or not. */ multiselectWeek: false, /** * Whether they're selecting more than one year at a time or not. */ multiselectYear: false, /** * The previous type they picked. This is so we can decide how much of the view we need * to "refresh" when we update it. */ previousType: null, /** * Switches that say whether these pick grids have been shown. If they haven't, we want * to make sure we don't show the picks for all years and weeks (unless they specifically asked * for that). * We don't want to do that because that's a lot of info to show. So, these are here basically * so we can "smartly" default the year and week selections for the picks and pick splits grids. */ havePicksBeenShown: false, havePickSplitsBeenShown: false, /** * Whether we should push the previous parameters onto the backward navigation stack. */ pushPreviousParameters: true, /** * The previous parameters that were used to show the view. This is so they can go back * and forth pretty easily. */ previousParameters: null, /** * The stacks for navigating forward and backward. They hold the parameters that were shown for the "view". * When they change the view, we put the previous parameters on the backward stack and when they navigate backward, * we pop those parameters off to change the view and put the previous ones on the forward stack. */ navigationForwardStack: [], navigationBackwardStack: [], /** * So we can get the current year and week number which come in handy. */ currentYear: null, currentWeekKey: null, /** * So we can show the games for the current week. */ gamesForCurrentWeek: null, /** * For holding the initial selections for when the page first shows up. We set some of these * variables with values from the server (like the year) and others (like the type) to constants. */ initialType: null, initialYear: null, initialWeek: null, initialPlayer: null, initialTeam: null, initialStatName: null }; /** * When the document's been loaded on the browser, we want to: * * 1. Go to the server and get the selection criteria (teams, players, initial values). * 2. Initialize the UI based on those values. */ $(document).ready( function(){ getSelectionCriteriaAndInitialize(); }); /** * * This function will initialize the view. It assumes all the stuff from the server * that's needed to initialize is setup. * * @returns */ function initializeView(){ //Steps to do: // 1. Set the initial selections for the type, year, week, ... // 2. Update the view based on those selections. initializeSelections(); updateView(); } /** * * Sets the initial selections for the type, year, week... * They're all set like this: * * 1. The initial value comes from NFL_PICKS_GLOBAL. * 2. If there's a url parameter for the selection, it's used instead. * * This way, we... * * 1. Set the initial values when loading the data from the server (for stuff like * week and year). * 2. Allow the overriding of the values by url parameters. * * Number 2 makes it so people can send direct urls and get the view they want the first * time the page shows up. * * @returns */ function initializeSelections(){ //Steps to do: // 1. Get the parameters that were sent in the url. // 2. Initialize each selection with its global initial value. // 3. If there's a value for it in the url, use that instead so the url // overrides what we assume initially. var parameters = getUrlParameters(); var type = NFL_PICKS_GLOBAL.initialType; if (isDefined(parameters) && isDefined(parameters.type)){ type = parameters.type; } setSelectedType(type); var year = NFL_PICKS_GLOBAL.initialYear; if (isDefined(parameters) && isDefined(parameters.year)){ year = parameters.year; } setSelectedYears(year); var week = NFL_PICKS_GLOBAL.initialWeek; if (isDefined(parameters) && isDefined(parameters.week)){ week = parameters.week; } setSelectedWeeks(week); var player = NFL_PICKS_GLOBAL.initialPlayer; if (isDefined(parameters) && isDefined(parameters.player)){ player = parameters.player; } setSelectedPlayers(player); var statName = NFL_PICKS_GLOBAL.initialStatName; if (isDefined(parameters) && isDefined(parameters.statName)){ statName = parameters.statName; } setSelectedStatName(statName); var team = NFL_PICKS_GLOBAL.initialTeam; if (isDefined(parameters) && isDefined(parameters.team)){ team = parameters.team; } setSelectedTeams(team); resetPlayerSelections(); resetYearSelections(); resetWeekSelections(); resetTeamSelections(); updateTypeLink(); updatePlayersLink(); updateWeeksLink(); updateYearsLink(); updateTeamsLink(); updateStatNameLink(); } /** * * This function will set all the selections from the given parameters. It's here * so that we can do the "navigate forward and backward" thing. We keep those parameters * in maps and then, to go forward and backward, we just have to feed the map we want to * this function. * * This function <i>WON'T</i> update the view. You'll have to do that yourself after calling it. * * @param parameters * @returns */ function setSelectionsFromParameters(parameters){ //Steps to do: // 1. If the parameters don't have anything, there's nothing to do. // 2. Otherwise, just go through and set each individual value. if (!isDefined(parameters)){ return; } if (isDefined(parameters.type)){ setSelectedType(parameters.type); } if (isDefined(parameters.player)){ setSelectedPlayers(parameters.player); } if (isDefined(parameters.year)){ setSelectedYears(parameters.year); } if (isDefined(parameters.week)){ setSelectedWeeks(parameters.week); } if (isDefined(parameters.team)){ setSelectedTeams(parameters.team); } if (isDefined(parameters.statName)){ setSelectedStatName(parameters.statName); } if (isDefined(parameters.multiselectPlayer)){ setMultiselectPlayer(parameters.multiselectPlayer); setMultiselectPlayerValue(parameters.multiselectPlayer); } if (isDefined(parameters.multiselectYear)){ setMultiselectYear(parameters.multiselectYear); setMultiselectYearValue(parameters.multiselectYear); } if (isDefined(parameters.multiselectWeek)){ setMultiselectWeek(parameters.multiselectWeek); setMultiselectWeekValue(parameters.multiselectWeek); } if (isDefined(parameters.multiselectTeam)){ setMultiselectTeam(parameters.multiselectTeam); setMultiselectTeamValue(parameters.multiselectTeam); } } /** * * This function will get the parameters in a map from the url in the browser. If there * aren't any parameters, it'll return null. Otherwise, it'll return a map with the parameter * names as the keys and the values as the url. * * @returns */ function getUrlParameters() { //Steps to do: // 1. If there aren't any parameters, there's nothing to do. // 2. Otherwise, each parameter should be separated by an ampersand, so break them apart on that. // 3. Go through each parameter and get the key and value and that's a parameter. // 4. That's it. if (isBlank(location.search)){ return null; } var parameterNamesAndValues = location.search.substring(1, location.search.length).split('&'); var urlParameters = {}; for (var index = 0; index < parameterNamesAndValues.length; index++) { var parameterNameAndValue = parameterNamesAndValues[index].split('='); //Make sure to decode both the name and value in case there are weird values in them. var name = decodeURIComponent(parameterNameAndValue[0]); var value = decodeURIComponent(parameterNameAndValue[1]); urlParameters[name] = value; } return urlParameters; } /** * * Gets all the values for each kind of parameter (type, year, week, ...) * and returns them in a map with the key being the parameter. * * Here so we can easily get what's selected (for the navigate forward and backward * stuff). * * @returns */ function getSelectedParameters(){ var parameters = {}; parameters.type = getSelectedType(); parameters.player = getSelectedPlayerValues(); parameters.year = getSelectedYearValues(); parameters.week = getSelectedWeekValues(); parameters.statName = getSelectedStatName(); parameters.team = getSelectedTeamValues(); parameters.multiselectPlayer = getMultiselectPlayer(); parameters.multiselectYear = getMultiselectYear(); parameters.multiselectWeek = getMultiselectWeek(); parameters.multiselectTeam = getMultiselectTeam(); return parameters; } /** * * This function will get the initial selection criteria (teams, players, ...) * from the server and create the selection criteria for those options. * * It will also initialize the NFL_PICKS_GLOBAL values (some are pulled from the server, * so that's why we do it in this function) and call the function that initializes the view * once it's ready. * * Those initial values will be: * * 1. type - standings * 2. year - current * 3. week - all * 4. player - all * 5. team - all * 6. statName - champions * * @returns */ function getSelectionCriteriaAndInitialize(){ //Steps to do: // 1. Send the request to the server to get the selection criteria. // 2. When it comes back, pull out the years, players, and teams // and set the options for them in each select. // 3. Set the initial values in the NFL_PICKS_GLOBAL variable. // 4. Now that we have all the criteria and initial values, we can initialize the view. $.ajax({url: 'nflpicks?target=selectionCriteria', contentType: 'application/json; charset=UTF-8'} ) .done(function(data) { var selectionCriteriaContainer = $.parseJSON(data); NFL_PICKS_GLOBAL.data.teams = selectionCriteriaContainer.teams; NFL_PICKS_GLOBAL.data.players = selectionCriteriaContainer.players; NFL_PICKS_GLOBAL.data.years = selectionCriteriaContainer.years; var types = [{label: 'Standings', value: 'standings'}, {label: 'Picks', value: 'picks'}, {label: 'Stats', value: 'stats'}]; NFL_PICKS_GLOBAL.types = types; var typeSelectorHtml = createTypeSelectorHtml(types); $('#typesContainer').empty(); $('#selectorContainer').append(typeSelectorHtml); var years = selectionCriteriaContainer.years; //We want the "all" year option to be first. var yearOptions = [{label: 'All', value: 'all'}, {label: 'Jurassic Period (2010-2015)', value: 'jurassic-period'}, {label: 'First year (2016)', value: 'first-year'}, {label: 'Modern Era (2017 - now)', value: 'modern-era'}]; var realYears = []; for (var index = 0; index < years.length; index++){ var year = years[index]; yearOptions.push({label: year, value: year}); realYears.push({label: year, value: year}); } NFL_PICKS_GLOBAL.years = yearOptions; NFL_PICKS_GLOBAL.realYears = realYears; var yearSelectorHtml = createYearSelectorHtml(yearOptions); $('#yearsContainer').empty(); $('#selectorContainer').append(yearSelectorHtml); var weekOptions = [{label: 'All', value: 'all'}, {label: 'Regular season', value: 'regular_season'}, {label: 'Playoffs', value: 'playoffs'}, {label: 'Week 1', value: '1'}, {label: 'Week 2', value: '2'}, {label: 'Week 3', value: '3'}, {label: 'Week 4', value: '4'}, {label: 'Week 5', value: '5'}, {label: 'Week 6', value: '6'}, {label: 'Week 7', value: '7'}, {label: 'Week 8', value: '8'}, {label: 'Week 9', value: '9'}, {label: 'Week 10', value: '10'}, {label: 'Week 11', value: '11'}, {label: 'Week 12', value: '12'}, {label: 'Week 13', value: '13'}, {label: 'Week 14', value: '14'}, {label: 'Week 15', value: '15'}, {label: 'Week 16', value: '16'}, {label: 'Week 17', value: '17'}, {label: 'Week 18', value: '18'}, {label: 'Wild Card', value: 'wildcard'}, {label: 'Divisional', value: 'divisional'}, {label: 'Conference Championship', value: 'conference_championship'}, {label: 'Superbowl', value: 'superbowl'} ]; //could these be 1, 2, 3, 4, ... again and just change the playoffs? //yeah i think so //week=1,2,3,4,wildcard,divisional,superbowl //yeah that's better than //week=1,2,3,wildcard,divisional //need to change .... importer ... the model util function ... this //and that should be it. var realWeeks = [{label: 'Week 1', value: '1'}, {label: 'Week 2', value: '2'}, {label: 'Week 3', value: '3'}, {label: 'Week 4', value: '4'}, {label: 'Week 5', value: '5'}, {label: 'Week 6', value: '6'}, {label: 'Week 7', value: '7'}, {label: 'Week 8', value: '8'}, {label: 'Week 9', value: '9'}, {label: 'Week 10', value: '10'}, {label: 'Week 11', value: '11'}, {label: 'Week 12', value: '12'}, {label: 'Week 13', value: '13'}, {label: 'Week 14', value: '14'}, {label: 'Week 15', value: '15'}, {label: 'Week 16', value: '16'}, {label: 'Week 17', value: '17'}, {label: 'Week 18', value: '18'}, {label: 'Wild Card', value: 'wildcard'}, {label: 'Divisional', value: 'divisional'}, {label: 'Conference Championship', value: 'conference_championship'}, {label: 'Superbowl', value: 'superbowl'} ]; //need to refactor the NFL_PICKS_GLOBAL so that it has all the options //and all the data //NFL_PICKS_GLOBAL.criteria.weeks - the weeks as selection criteria //NFL_PICKS_GLOBAL.data.weeks - all the actual weeks //global_setWeeks //global_setRealWeeks //global_getWeeks //selector_blah //html_blah //yeah this needs to be done //nflpicks global needs to be defined in a separate javascript file NFL_PICKS_GLOBAL.weeks = weekOptions; NFL_PICKS_GLOBAL.realWeeks = realWeeks; var weekSelectorHtml = createWeekSelectorHtml(weekOptions); $('#selectorContainer').append(weekSelectorHtml); var players = selectionCriteriaContainer.players; //We want the "all" player option to be the first one. var playerOptions = [{label: 'Everybody', value: 'all'}]; var realPlayers = []; for (var index = 0; index < players.length; index++){ var player = players[index]; var playerObject = {label: player, value: player}; playerOptions.push(playerObject); realPlayers.push(playerObject); } setOptionsInSelect('player', playerOptions); NFL_PICKS_GLOBAL.players = playerOptions; NFL_PICKS_GLOBAL.realPlayers = realPlayers; var playerSelectorHtml = createPlayerSelectorHtml(playerOptions); $('#selectorContainer').append(playerSelectorHtml); //Need to filter the teams so that we only show teams that had a game in a given year. //Probably just do a ui filter because we probably don't want to make a trip to the server // var teams = selectionCriteriaContainer.teams; //Sort the teams in alphabetical order to make sure we show them in a consistent order. teams.sort(function (teamA, teamB){ if (teamA.abbreviation < teamB.abbreviation){ return -1; } else if (teamA.abbreviation > teamB.abbreviation){ return 1; } return 0; }); //We also want the "all" option to be first. var teamOptions = [{label: 'All', value: 'all'}]; for (var index = 0; index < teams.length; index++){ var team = teams[index]; teamOptions.push({label: team.abbreviation, value: team.abbreviation}); } var teamSelectorHtml = createTeamSelectorHtml(teamOptions); $('#selectorContainer').append(teamSelectorHtml); NFL_PICKS_GLOBAL.teams = teamOptions; var statNameOptions = [{label: 'Champions', value: 'champions'}, {label: 'Championship Standings', value: 'championshipStandings'}, {label: 'Season Standings', value: 'seasonStandings'}, {label: 'Week Standings', value: 'weekStandings'}, {label: 'Weeks Won Standings', value: 'weeksWonStandings'}, {label: 'Weeks Won By Week', value: 'weeksWonByWeek'}, {label: 'Week Records By Player', value: 'weekRecordsByPlayer'}, {label: 'Pick Accuracy', value: 'pickAccuracy'}, {label: 'Pick Splits', value: 'pickSplits'}, {label: 'Week Comparison', value: 'weekComparison'}, {label: 'Season Progression', value: 'seasonProgression'}]; var statNameSelectorHtml = createStatNameSelectorHtml(statNameOptions); $('#selectorContainer').append(statNameSelectorHtml); NFL_PICKS_GLOBAL.statNames = statNameOptions; //The current year and week come from the server. NFL_PICKS_GLOBAL.currentYear = selectionCriteriaContainer.currentYear; NFL_PICKS_GLOBAL.currentWeekKey = selectionCriteriaContainer.currentWeekKey; //Initially, we want to see the standings for the current year for everybody, so set those //as the initial types. NFL_PICKS_GLOBAL.initialType = 'standings'; NFL_PICKS_GLOBAL.initialYear = NFL_PICKS_GLOBAL.currentYear + ''; NFL_PICKS_GLOBAL.initialWeek = 'all'; NFL_PICKS_GLOBAL.initialPlayer = 'all'; NFL_PICKS_GLOBAL.initialTeam = 'all'; NFL_PICKS_GLOBAL.initialStatName = 'champions'; initializeView(); }) .fail(function() { }) .always(function() { }); } /** * * This function will cause the view to "navigate forward". We can only do that if * we've gone back. So, this function will check the stack that holds the "forward parameters", * pop the top of it off (if there's something in it), and then cause the view to have those * parameters. * * Before navigating, it will take the current parameters and put them on the previous stack * so they can go back if they hit "back". * * @returns */ function navigateForward(){ //Steps to do: // 1. If there aren't any forward parameters, there's no way to go forward. // 2. The current parameters should go on the previous stack. // 3. Get the forward parameters off the forward stack. // 4. Set them as the selections. // 5. Update the view and make sure it doesn't push any parameters on any // stack // 6. Flip the switch back so any other navigation will push parameters // on the previous stack. if (NFL_PICKS_GLOBAL.navigationForwardStack.length == 0){ return; } var currentParameters = getSelectedParameters(); NFL_PICKS_GLOBAL.navigationBackwardStack.push(currentParameters); var parameters = NFL_PICKS_GLOBAL.navigationForwardStack.pop(); setSelectionsFromParameters(parameters); //Before updating the view, flip the switch that the updateView function uses to //decide whether to push the parameters for the current view on the stack or not. //Since we're navigating forward, we take care of that in this function instead. //A little bootleg, so it probably means I designed it wrong... NFL_PICKS_GLOBAL.pushPreviousParameters = false; updateView(); NFL_PICKS_GLOBAL.pushPreviousParameters = true; } /** * * This function will cause the view to show the previous view. It's the same thing * as going backward except will pull from the navigate backward stack. The previous parameters * for the view are stored on a stack, so to go backward, we just have to pop those parameters * off, set them as the selections, and the update the view. * * It'll also take the current parameters (before going backward) and push them on the forward stack * so navigating forward, after going backward, brings them back to where they were. * * @returns */ function navigateBackward(){ //Steps to do: // 1. If there isn't anything to backward to, there's nothing to do. // 2. The current parameters should go on the forward stack since they're // what we want to show if people navigate forward // 3. The parameters we want to use come off the backward stack. // 4. Flip the switch that says to not push any parameters on in the view function. // 5. Update based on the parameters we got. // 6. Flip the switch back so that any other navigation causes the parameters // to go on the previous stack. if (NFL_PICKS_GLOBAL.navigationBackwardStack.length == 0){ return; } var currentParameters = getSelectedParameters(); NFL_PICKS_GLOBAL.navigationForwardStack.push(currentParameters); var parameters = NFL_PICKS_GLOBAL.navigationBackwardStack.pop(); //stuff is updated here... setSelectionsFromParameters(parameters); //Just like when navigating forward, we don't want the updateView function to fiddle //with the navigation stacks since we're doing it here. After the view has been updated, though, //flip the switch back so that any other navigation cause the updateView function save the //current view before changing. NFL_PICKS_GLOBAL.pushPreviousParameters = false; updateView(); NFL_PICKS_GLOBAL.pushPreviousParameters = true; } /** * * This function will make it so we only show the forward and backward * links if they can actually navigate forward and backward. It just checks * the length of the stacks and uses that to decide whether to show * or hide each link. * * @returns */ function updateNavigationLinksVisibility(){ //Steps to do: // 1. If the stack doesn't have anything in it, we shouldn't show // the link. // 2. Otherwise, we should. if (NFL_PICKS_GLOBAL.navigationForwardStack.length == 0){ $('#navigationFowardContainer').hide(); } else { $('#navigationFowardContainer').show(); } if (NFL_PICKS_GLOBAL.navigationBackwardStack.length == 0){ $('#navigationBackwardContainer').hide(); } else { $('#navigationBackwardContainer').show(); } } /** * * The "main" function for the UI. Makes it so we show what they picked on the screen. * It bases its decision on the "type" variable and then just calls the right function * based on what that is. * * If the NFL_PICKS_GLOBAL.pushPreviousParameters switch is flipped, it'll also update * the navigation stacks. That switch is there so that: * * 1. When they do any non-forward or backward navigation action, we update the stacks. * 2. When they push forward or backward, we can handle the stacks other places. * * @returns */ function updateView(){ //Steps to do: // 1. Before doing anything, if the switch is flipped, we should save the parameters // from the last navigation on the backward stack so they can go backward to what // we're currently on, if they want. // 2. Get the type of view they want. // 3. Update the selector view based on the type. // 4. Decide which function to call based on that. // 5. After the view is updated, keep the current selected parameters around so we can push // them on the "back" stack the next time they make a change. // 6. Make sure we're showing the right "navigation" links. //If there are previous parameters, and we should push them, then push them on the backward //navigation stack so they can go back to that view with the back button. //If we shouldn't push them, that means the caller is handling the stack stuff themselves. //And, if we should push them, that means they did some "action" that takes them on a //different "branch", so we should clear out the forward stack since they can't go //forward anymore. if (NFL_PICKS_GLOBAL.previousParameters != null && NFL_PICKS_GLOBAL.pushPreviousParameters){ NFL_PICKS_GLOBAL.navigationBackwardStack.push(NFL_PICKS_GLOBAL.previousParameters); NFL_PICKS_GLOBAL.navigationForwardStack = []; } var type = getSelectedType(); //Update the selectors that get shown. We want to show different things depending //on the type. updateSelectors(type); //And update the options for the criteria in each selector. updateAvailableCriteriaOptions(); if ('picks' == type){ updatePicks(); } else if ('standings' == type) { updateStandings(); } else if ('stats' == type){ updateStats(); } //At this point, the selected parameters are the current parameters. We want to //keep them around in case we need to push them on the stack the next time through. NFL_PICKS_GLOBAL.previousParameters = getSelectedParameters(); updateTypeLink(); updatePlayersLink(); updateYearsLink(); updateWeeksLink(); updateTeamsLink(); updateStatNameLink(); //And we need to make sure we're showing the right "forward" and "back" links. updateNavigationLinksVisibility(); } /** * * This function will update the available options for the criteria based on what's selected. * It's here mainly for the situation where you select an option in a "selector" and that option * should cause options in other selectors to be either shown or hidden. * * I made it for the situation where somebody picks a year and we should only show the teams * that actually existed that year. Like, if somebody picks "2020" as the year, we shouldn't * show "OAK", but we should show "LV". * * ... And now it's here to handle the change in week for the 2021 season where a 17th game was added. * * It will farm the work out to other functions that handle the specific scenarios for each * kind of "selector". * * @returns */ function updateAvailableCriteriaOptions(){ updateAvailableTeamOptions(); updateAvailableWeekOptions(); //updateAvailableWeekOptions................. // //main_updateAvailableTeamOptions } /** * * This function will update the available teams that can be selected. It will just go through * and check whether each team was "active" during the selected years. If they were, then it'll * show them and if they weren't, it'll hide them. * * @returns */ function updateAvailableTeamOptions(){ //Steps to do: // 1. Get the year values as integers. // 2. Go through every team and get when it started and ended. // 3. If the year it started is after any of the selected years and it doesn't have an // end or its end is before one of the selected years, that means it played games during // the selected years so it should be shown. // 4. Otherwise, it didn't and so it should be hidden. var currentSelectedYearValues = getYearValuesForSelectedYears(); var integerYearValues = getValuesAsIntegers(currentSelectedYearValues); var teamsToShow = []; var teamsToHide = []; //All the teams are stored in the global variable. Just have to go through them. var teams = NFL_PICKS_GLOBAL.data.teams; for (var index = 0; index < teams.length; index++){ var team = teams[index]; //Flipping this switch off and I'll flip it on if the team's start and end years show //it played games in the selected years. var showTeam = false; //Make sure to turn their years into numbers. var teamStartYearInteger = parseInt(team.startYear); var teamEndYearInteger = -1; if (isDefined(team.endYear)){ teamEndYearInteger = parseInt(team.endYear); } //Go through each selected year. for (var yearIndex = 0; yearIndex < integerYearValues.length; yearIndex++){ var currentYearValue = integerYearValues[yearIndex]; //If the team started before the current year and either is still active (end year = -1) or was active after the //current year, that means it played games in the selected year, so it should be shown. if (teamStartYearInteger <= currentYearValue && (teamEndYearInteger == -1 || teamEndYearInteger >= currentYearValue)){ showTeam = true; } } //Just put it in the list based on whether it should be shown or not. if (showTeam){ teamsToShow.push(team.abbreviation); } else { teamsToHide.push(team.abbreviation); } } //Show the teams that should be shown in the selector dropdown. showTeamItems(teamsToShow); //Hide the teams that should be hidden in the selector. hideTeamItems(teamsToHide); //And, we have to go through and unselect the ones we should hide in case they //were selected. If we just hide them and they're still selected, they'll still //show up on the ui, just not in the selection dropdown. for (var index = 0; index < teamsToHide.length; index++){ var teamToHide = teamsToHide[index]; unselectTeamFull(teamToHide); } } //updateSelectors function getAvailableWeeksForYears(yearValues){ var integerYearValues = getValuesAsIntegers(currentSelectedYearValues); var availableWeeksBefore2021 = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', 'wildcard', 'divisional', 'conference_championship', 'superbowl']; var availableWeeksAfter2021 = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', 'wildcard', 'divisional', 'conference_championship', 'superbowl']; for (var index = 0; index < integerYearValues.length; index++){ var integerYearValue = integerYearValues[index]; if (integerYearValue >= 2021){ return availableWeeksAfter2021; } } return availableWeeksBefore2021; } function updateAvailableWeekOptions(){ var currentSelectedYearValues = getYearValuesForSelectedYears(); var weeksToShow = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', 'wildcard', 'divisional', 'conference_championship', 'superbowl']; var weeksToHide = ['18']; for (var index = 0; index < currentSelectedYearValues.length; index++){ var yearValue = currentSelectedYearValues[index]; if (yearValue >= 2021){ weeksToShow = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', 'wildcard', 'divisional', 'conference_championship', 'superbowl']; weeksToHide = []; } } showWeekItems(weeksToShow); hideWeekItems(weeksToHide); //And, we have to go through and unselect the ones we should hide in case they //were selected. If we just hide them and they're still selected, they'll still //show up on the ui, just not in the selection dropdown. for (var index = 0; index < weeksToHide.length; index++){ var weekToHide = weeksToHide[index]; unselectWeekFull(weekToHide); } } /** * * This function will update the selectors for the given type. It just calls * the specific type's update function. * * It will also update the multi-selects so that the selected values are updated * if they're selecting multiple "items" (multiple players, weeks, or years). * * @param type * @returns */ function updateSelectors(type){ //Steps to do: // 1. Call the function based on the type. // 2. Update the multi selects. if ('picks' == type){ updatePicksSelectors(type); } else if ('standings' == type){ updateStandingsSelectors(type); } else if ('stats' == type){ updateStatsSelectors(type); } } /** * * Updates the selectors so that they're good to go for when the type is picks. * * Shows: * year, player, team, week * Hides: * stat name * * Only shows or hides something if the given type isn't the previous selected type. * * @param type * @returns */ function updatePicksSelectors(type){ //Steps to do: // 1. If the previous type is the same as the given one, we don't need // to do anything to the selectors. // 2. Show and hide what we need to. // 3. Store the type we were given for next time. var previousSelectedType = getPreviousType(); if (previousSelectedType == type){ return; } showPlayersLink(); showWeeksLink(); showYearsLink(); showTeamsLink(); hideStatNameLink(); setPreviousType(type); } /** * * Updates the selectors so that they're right for browsing the "standings". * * Shows: * player, year, week, team * Hides: * stat name * * Only shows or hides something if the given type isn't the previous selected type. * * @param type * @returns */ function updateStandingsSelectors(type){ //Steps to do: // 1. If the previous type is the same as the given one, we don't need // to do anything to the selectors. // 2. Show and hide what we need to. // 3. Store the type we were given for next time. var previousSelectedType = getPreviousType(); if (previousSelectedType == type){ return; } showPlayersLink(); showWeeksLink(); showYearsLink(); showTeamsLink(); hideStatNameLink(); setPreviousType(type); } /** * * Updates the selectors so that they're good to go for browsing the * "stats" * * Shows: * stat name, others depending on the stat name * Hides: * depends on the stat name * * Stat name: * champions * shows: Nothing * hides: player, year, week, team * championship standings * shows: Nothing * hides: player, year, week, team * week standings * shows: player, year, week * hides: team * weeks won standings * shows: year * hides: player, team, week * weeks won by week * shows: year, week * hides: team * week records by player * shows: year, week, player * hides: team * pick accuracy * shows: year, player, team * hides: week * pick splits: * shows: year, week, team * hides: player * * @param type * @returns */ function updateStatsSelectors(type){ //Steps to do: // 1. We always want to show the stat name container. // 2. Get the name of the stat we want to show. // 3. Show and hide what we need to based on the kind of stat we want to show. // 4. Store the type we were given for next time. showStatNameLink(); var statName = getSelectedStatName(); if ('champions' == statName){ showPlayersLink(); showYearsLink(); hideWeeksLink(); hideTeamsLink(); } else if ('championshipStandings' == statName){ showPlayersLink(); showYearsLink(); hideWeeksLink(); hideTeamsLink(); } else if ('seasonStandings' == statName){ showPlayersLink(); showYearsLink(); showWeeksLink(); hideTeamsLink(); } else if ('weekStandings' == statName){ showPlayersLink(); showYearsLink(); showWeeksLink(); hideTeamsLink(); } else if ('weeksWonStandings' == statName){ showPlayersLink(); showYearsLink(); showWeeksLink(); hideTeamsLink(); } else if ('weeksWonByWeek' == statName){ showPlayersLink(); showYearsLink(); showWeeksLink(); hideTeamsLink(); } else if ('weekRecordsByPlayer' == statName){ showPlayersLink(); showYearsLink(); showWeeksLink(); hideTeamsLink(); } else if ('pickAccuracy' == statName){ showPlayersLink(); showYearsLink(); showWeeksLink(); showTeamsLink(); } else if ('pickSplits' == statName){ showPlayersLink(); showYearsLink(); showWeeksLink(); showTeamsLink(); } else if ('weekComparison' == statName){ showPlayersLink(); showYearsLink(); showWeeksLink(); hideTeamsLink(); } else if ('seasonProgression' == statName){ showPlayersLink(); showYearsLink(); showWeeksLink(); hideTeamsLink(); } setPreviousType(type); } /** * * Gets the selected value for the type. * * @returns */ function getSelectedType(){ return $('input[name=type]:checked').val(); } /** * * Sets the selected value for the type to the given type. Only does it * if the type select input has the given type as an option. * * @param type * @returns */ function setSelectedType(type){ $('input[name=type]').val([type]); NFL_PICKS_GLOBAL.selections.type = type; } /** * * Gets the previous type that was selected. This is so we can decide * whether to update stuff or not when the type changes. * * @returns */ function getPreviousType(){ return NFL_PICKS_GLOBAL.previousType; } /** * * Sets the previous type in the NFL_PICKS_GLOBAL variable. This is so we can decide * whether to update stuff or not when the type changes. * * @param newPreviousType * @returns */ function setPreviousType(newPreviousType){ NFL_PICKS_GLOBAL.previousType = newPreviousType; } /** * * This function will set the given players as being selected in the NFL_PICKS_GLOBAL * variable (NFL_PICKS_GLOBAL.selections.players) and it'll call the "selectPlayer" * function in the selectors file for each player so they get "selected" on the UI too. * * It expects the given players variable to either be... * 1. An array of player names. * 2. A comma separated string of player names. * 3. A single player name. * * It will put the actual player objects into the NFL_PICKS_GLOBAL variable for * each player name that's given. * * @param players * @returns */ function setSelectedPlayers(players){ //Steps to do: // 1. Check whether the players variable is an array. // 2. If it is, just keep it. // 3. Otherwise, it's a string so check to see if it has multiple values. // 4. If it does, then turn it into an array. // 5. Otherwise, just put it in there as a single value. // 6. Go through each player in the array, get the actual object for the player name // and put it in the global variable. And, "select" them in the ui. var playerValuesArray = []; var isArray = Array.isArray(players); if (isArray){ playerValuesArray = players; } else { var hasMultipleValues = doesValueHaveMultipleValues(players); if (hasMultipleValues){ playerValuesArray = delimitedValueToArray(players); } else { playerValuesArray.push(players); } } var playersArray = []; for (var index = 0; index < playerValuesArray.length; index++){ var value = playerValuesArray[index]; selectPlayer(value); var player = getPlayer(value); playersArray.push(player); } NFL_PICKS_GLOBAL.selections.players = playersArray; } /** * * This function will set the given years as being selected in the UI and in the * NFL_PICKS_GLOBAL variable (NFL_PICKS_GLOBAL.selections.years). * * It expects the given years variable to either be... * 1. An array of year values. * 2. A comma separated string of year values. * 3. A single year value. * * It will put the actual year objects into the NFL_PICKS_GLOBAL variable for * each year value that's given. * * @param years * @returns */ function setSelectedYears(years){ //Steps to do: // 1. Check whether the years variable is an array. // 2. If it is, just keep it. // 3. Otherwise, it's a string so check to see if it has multiple values. // 4. If it does, then turn it into an array. // 5. Otherwise, just put it in there as a single value. // 6. Go through each year in the array, get the actual object for the year // and put it in the global variable. And, "select" it in the ui. var yearValuesArray = []; var isArray = Array.isArray(years); if (isArray){ yearValuesArray = years; } else { var hasMultipleValues = doesValueHaveMultipleValues(years); if (hasMultipleValues){ yearValuesArray = delimitedValueToArray(years); } else { yearValuesArray.push(years); } } var yearsArray = []; for (var index = 0; index < yearValuesArray.length; index++){ var value = yearValuesArray[index]; selectYear(value); var year = getYear(value); yearsArray.push(year); } NFL_PICKS_GLOBAL.selections.years = yearsArray; } /** * * This function will set the given weeks as being selected in the UI and in the * NFL_PICKS_GLOBAL variable (NFL_PICKS_GLOBAL.selections.weeks). * * It expects the given weeks variable to either be... * 1. An array of week numbers. * 2. A comma separated string of week numbers. * 3. A single week number. * * It will put the actual week objects into the NFL_PICKS_GLOBAL variable for * each week number that's given. * * @param weeks * @returns */ function setSelectedWeeks(weeks){ //Steps to do: // 1. Check whether the weeks variable is an array. // 2. If it is, just keep it. // 3. Otherwise, it's a string so check to see if it has multiple values. // 4. If it does, then turn it into an array. // 5. Otherwise, just put it in there as a single value. // 6. Go through each week in the array, get the actual object for the week // and put it in the global variable. And, "select" it in the ui. var weekValuesArray = []; var isArray = Array.isArray(weeks); if (isArray){ weekValuesArray = weeks; } else { var hasMultipleValues = doesValueHaveMultipleValues(weeks); if (hasMultipleValues){ weekValuesArray = delimitedValueToArray(weeks); } else { weekValuesArray.push(weeks); } } var weeksArray = []; for (var index = 0; index < weekValuesArray.length; index++){ var value = weekValuesArray[index]; selectWeek(value); var week = getWeek(value); weeksArray.push(week); } //THIS was the key ... update the current week selections... geez this is too complicated setCurrentWeekSelections(weekValuesArray); NFL_PICKS_GLOBAL.selections.weeks = weeksArray; } /** * * This function will set the given teams as being selected in the UI and in the * NFL_PICKS_GLOBAL variable (NFL_PICKS_GLOBAL.selections.teams). * * It expects the given teams variable to either be... * 1. An array of team abbreviations. * 2. A comma separated string of team abbreviations. * 3. A single team abbreviation. * * It will put the actual team objects into the NFL_PICKS_GLOBAL variable for * each team abbreviation that's given. * * @param teams * @returns */ function setSelectedTeams(teams){ //Steps to do: // 1. Check whether the teams variable is an array. // 2. If it is, just keep it. // 3. Otherwise, it's a string so check to see if it has multiple values. // 4. If it does, then turn it into an array. // 5. Otherwise, just put it in there as a single value. // 6. Go through each team in the array, get the actual object for the team // and put it in the global variable. And, "select" it in the ui. var teamValuesArray = []; var isArray = Array.isArray(teams); if (isArray){ teamValuesArray = teams; } else { var hasMultipleValues = doesValueHaveMultipleValues(teams); if (hasMultipleValues){ teamValuesArray = delimitedValueToArray(teams); } else { teamValuesArray.push(teams); } } var teamsArray = []; for (var index = 0; index < teamValuesArray.length; index++){ var value = teamValuesArray[index]; selectTeam(value); var team = getTeam(value); teamsArray.push(team); } //THIS was the key ... update the current team selections... geez this is too complicated setCurrentTeamSelections(teamValuesArray); NFL_PICKS_GLOBAL.selections.teams = teamsArray; } /** * * Gets the selected stat name. * * @returns */ function getSelectedStatName(){ return $('input[name=statName]:checked').val(); } /** * * Sets the selected stat name if it's one of the options * on the stat name input. * * @param statName * @returns */ function setSelectedStatName(statName){ $('input[name=statName]').val([statName]); NFL_PICKS_GLOBAL.selections.statName = statName; } /** * * This function will set the given html as the content we show. It'll clear out what's * in there now. * * @param contentHtml * @returns */ function setContent(contentHtml){ $('#contentContainer').empty(); $('#contentContainer').append(contentHtml); } /** * * This function will go get the standings from the server and show them on the UI. * * What standings it gets depends on the player, year, and week that are selected. * * @returns */ function updateStandings(){ //Steps to do: // 1. Get the parameters to send (player, year, and week). // 2. Send them to the server. // 3. Update the UI with the results. var playerValuesForRequest = getPlayerValuesForRequest(); var yearValuesForRequest = getYearValuesForRequest(); var weekValuesForRequest = getWeekValuesForRequest(); var teamValuesForRequest = getTeamValuesForRequest(); setContent('<div style="text-align: center;">Loading...</div>'); $.ajax({url: 'nflpicks?target=standings&player=' + playerValuesForRequest + '&year=' + yearValuesForRequest + '&week=' + weekValuesForRequest + '&team=' + teamValuesForRequest, contentType: 'application/json; charset=UTF-8'} ) .done(function(data) { var standingsContainer = $.parseJSON(data); //We want to show the records that came back, but we're going to have to sort them //to make sure they're in the order we want. var records = standingsContainer.records; //We want the record with the most wins coming first. If they have the same number //of wins, we want the one with fewer losses coming first. //And if they're tied, we want them ordered by name. records.sort(function (record1, record2){ if (record1.wins > record2.wins){ return -1; } else if (record1.wins < record2.wins){ return 1; } else { if (record1.losses < record2.losses){ return -1; } else if (record1.losses > record2.losses){ return 1; } } if (record1.player.name < record2.player.name){ return -1; } else if (record1.player.name > record2.player.name){ return 1; } return 0; }); //Now that we have them sorted, we can create the html for the standings. var standingsHtml = createStandingsHtml(standingsContainer.records); //And set it as the content. setContent(standingsHtml); }) .fail(function() { setContent('<div style="text-align: center;">Error</div>'); }) .always(function() { }); } /** * * This function will update the picks grid with the current selectors they ... picked. * It'll get the parameters, go to the server to get the picks, and then update the UI * with the grid. * * @returns */ function updatePicks(){ //Steps to do: // 1. Get the parameters they picked. // 2. Default the year and week to the current year and week if we should. // 3. Go to the server and get the picks. // 4. Update the UI with the picks grid. var selectedYearValues = getSelectedYearValues(); var selectedWeekValues = getSelectedWeekValues(); //We need to make sure we only use "all" for the year if they explicitly set it. // //That should only happen if: // 1. It's "all" in the url. // 2. Or, they have seen the picks and have set it to "all" themselves. // //I'm doing it like this because using "all" for the year might bring back a lot //of picks, so we should only do it if that's what they want to do. var parameters = getUrlParameters(); var hasYearInUrl = false; if (isDefined(parameters) && isDefined(parameters.year)){ hasYearInUrl = true; } //We want to default it to the current year if: // // 1. It's "all" // 2. We haven't shown the picks before // 3. The "all" isn't from the url. // //In that situation, they didn't "explicitly" set it to "all", so we want to show //only picks for the current year to start off with. if (selectedYearValues.includes('all') && !NFL_PICKS_GLOBAL.havePicksBeenShown && !hasYearInUrl){ var currentYear = NFL_PICKS_GLOBAL.currentYear + ''; setSelectedYears(currentYear); updateYearsLink(); } //Do the same thing with the week. We only want to show picks for all the weeks if //they went out of their way to say that's what they wanted to do. var hasWeekInUrl = false; if (isDefined(parameters) && isDefined(parameters.week)){ hasWeekInUrl = true; } //If it's "all" and the picks haven't been shown and the "all" didn't come from the url, //it's their first time seeing the picks, so we should show the ones for the current week. if (selectedWeekValues.includes('all') && !NFL_PICKS_GLOBAL.havePicksBeenShown && !hasWeekInUrl){ var currentWeek = NFL_PICKS_GLOBAL.currentWeekKey + ''; setSelectedWeeks(currentWeek); updateWeeksLink(); } //At this point, we're going to show them the picks, so we should flip that switch. NFL_PICKS_GLOBAL.havePicksBeenShown = true; var playerValuesForRequest = getPlayerValuesForRequest(); var yearValuesForRequest = getYearValuesForRequest(); var weekValuesForRequest = getWeekValuesForRequest(); var teamValuesForRequest = getTeamValuesForRequest(); setContent('<div style="text-align: center;">Loading...</div>'); //Go to the server and get the grid. $.ajax({url: 'nflpicks?target=compactPicksGrid&player=' + playerValuesForRequest + '&year=' + yearValuesForRequest + '&week=' + weekValuesForRequest + '&team=' + teamValuesForRequest, contentType: 'application/json; charset=UTF-8'} ) .done(function(data) { //Update the UI with what the server sent back. var picksGrid = $.parseJSON(data); var picksGridHtml = createPicksGridHtml(picksGrid); setContent(picksGridHtml); }) .fail(function() { setContent('<div style="text-align: center;">Error</div>'); }) .always(function() { }); } /** * * This function will get the stats from the server and update them on the ui. The stat that * it shows depends on the statName they picked. * * @returns */ function updateStats(){ //Steps to do: // 1. Get the selected parameters. // 2. Make sure they're ok based on the stat name. // 3. Go to the server and get the stats. // 4. Update the UI with what came back. var statName = getSelectedStatName(); var selectedPlayerValues = getPlayerValuesForRequest(); var selectedYearValues = getYearValuesForRequest(); var selectedWeekValues = getWeekValuesForRequest(); var selectedTeamValues = getTeamValuesForRequest(); //If the stat name is the "pick splits", we want to do the same thing we do with the picks grid. //Only show "all" for the year or the week if they actually set it to "all". //If it's the first time we're showing the pick splits, we only want to show all of them if that //was in the url. if (statName == 'pickSplits'){ //Since we're showing how players are split up, we want to show all players. var selectedYearValues = getSelectedYearValues(); var selectedWeekValues = getSelectedWeekValues(); var urlParameters = getUrlParameters(); //Same deal as with the picks grid... var hasYearInUrl = false; if (isDefined(urlParameters) && isDefined(urlParameters.year)){ hasYearInUrl = true; } //If the year is "all", we haven't shown the picks, and "all" didn't come from the url, then we //want the year we show the pick splits for to be the current year. if (selectedYearValues.includes('all') && !NFL_PICKS_GLOBAL.havePickSplitsBeenShown && !hasYearInUrl){ var currentYear = NFL_PICKS_GLOBAL.currentYear + ''; setSelectedYears(currentYear); updateYearsLink(); } //Same deal as with the year and with the picks grid... var hasWeekInUrl = false; if (isDefined(urlParameters) && isDefined(urlParameters.week)){ hasWeekInUrl = true; } //If the week is "all", we haven't shown the picks, and "all" didn't come from the url, then we //want the week we show the pick splits for to be the current week. if (selectedWeekValues.includes('all') && !NFL_PICKS_GLOBAL.havePickSplitsBeenShown && !hasWeekInUrl){ var currentWeek = NFL_PICKS_GLOBAL.currentWeekKey + ''; setSelectedWeeks(currentWeek); updateWeeksLink(); } //And, since we're here, that means we've shown the pick splits to the user, so the next time, we won't //do the funny business with the week and year. NFL_PICKS_GLOBAL.havePickSplitsBeenShown = true; } var playerValuesForRequest = getPlayerValuesForRequest(); var yearValuesForRequest = getYearValuesForRequest(); var weekValuesForRequest = getWeekValuesForRequest(); var teamValuesForRequest = getTeamValuesForRequest(); setContent('<div style="text-align: center;">Loading...</div>'); //Send the request to the server. $.ajax({url: 'nflpicks?target=stats&statName=' + statName + '&player=' + playerValuesForRequest + '&year=' + yearValuesForRequest + '&week=' + weekValuesForRequest + '&team=' + teamValuesForRequest, contentType: 'application/json; charset=UTF-8'} ) .done(function(data) { var statsHtml = ''; //Make the html for the kind of stat they wanted to see. if ('champions' == statName){ var championships = $.parseJSON(data); statsHtml = createChampionsHtml(championships); } else if ('championshipStandings' == statName){ var championships = $.parseJSON(data); statsHtml = createChampionshipStandingsHtml(championships); } else if ('seasonStandings' == statName){ var seasonRecords = $.parseJSON(data); statsHtml = createSeasonStandingsHtml(seasonRecords); } else if ('weeksWonStandings' == statName){ var weekRecords = $.parseJSON(data); //We want to sort the records before we show them so we can show the rank. sortWeekRecords(weekRecords); statsHtml = createWeeksWonHtml(weekRecords); } else if ('weeksWonByWeek' == statName){ var weeksWonByWeek = $.parseJSON(data); statsHtml = createWeeksWonByWeek(weeksWonByWeek); } else if ('weekRecordsByPlayer' == statName){ var weekRecords = $.parseJSON(data); //Like with the other records, we want to sort them before we show them. sortWeekRecordsBySeasonWeekAndRecord(weekRecords); statsHtml = createWeekRecordsByPlayerHtml(weekRecords); } else if ('weekStandings' == statName){ var playerWeekRecords = $.parseJSON(data); statsHtml = createWeekStandingsHtml(playerWeekRecords); } else if ('pickAccuracy' == statName){ var start = Date.now(); var pickAccuracySummaries = $.parseJSON(data); var jsonElapsed = Date.now() - start; var htmlStart = Date.now(); statsHtml = createPickAccuracySummariesHtml(pickAccuracySummaries); var htmlElapsed = Date.now() - htmlStart; } else if ('pickSplits' == statName){ var pickSplits = $.parseJSON(data); statsHtml = createPickSplitsGridHtml(pickSplits); } else if ('weekComparison' == statName){ var weekRecords = $.parseJSON(data); //Like with the other records, we want to sort them before we show them. sortWeekRecordsBySeasonWeekAndRecord(weekRecords); statsHtml = createWeekComparisonHtml(weekRecords); } else if ('seasonProgression' == statName){ var weekRecords = $.parseJSON(data); //Like with the other records, we want to sort them before we show them. sortWeekRecordsBySeasonWeekAndRecord(weekRecords); statsHtml = createSeasonProgressionHtml(weekRecords); } setContent(statsHtml); }) .fail(function() { setContent('<div style="text-align: center;">Error</div>'); }) .always(function() { }); } /** * * A "convenience" function that says whether any record in the given * array has any ties. * * @param records * @returns */ function hasTies(records){ //Steps to do: // 1. Go through all the records and return true if one has a tie. if (!isDefined(records)){ return false; } for (var index = 0; index < records.length; index++){ var record = records[index]; if (record.ties > 0){ return true; } } return false; } /** * * This function will compare the given records and return -1 if the first record * has more wins than the second, 1 if it has more, and 0 if it's the same. * * If the records have the same number of wins, then it bases the comparison on the * losses. If record1 has the same wins but fewer losses, it should go first, so it * returns -1. * * It'll return 0 if they have the exact same number of wins and losses. * * We do this in a few different places, so I decided to make a function. * * @param record1 * @param record2 * @returns */ function recordWinComparisonFunction(record1, record2){ //Steps to do: // 1. Compare based on the wins first. // 2. If they're the same, compare on the losses. //More wins should go first. if (record1.wins > record2.wins){ return -1; } //Fewer wins should go last. else if (record1.wins < record2.wins){ return 1; } else { //With the same number of wins, fewer losses should go first. if (record1.losses < record2.losses){ return -1; } //And more losses should go second. else if (record1.losses > record2.losses){ return 1; } } //Same wins and losses = same record. return 0; } /** * * When somebody clicks the "body" of the page, we want it to hide everything, so * that's what this function will do. It just goes through and calls the function * that hides the selectors. It also resets them too. * * @returns */ function onClickBody(){ hideTypeSelector(); resetAndHidePlayerSelections(); resetAndHideYearSelections(); resetAndHideWeekSelections(); hideStatNameSelector(); } /** * * A convenience function for hiding all the selector containers. Not much * to it. * * @returns */ function hideSelectorContainers(){ hideTypeSelector(); hidePlayerSelector(); hideYearSelector(); hideWeekSelector(); hideStatNameSelector(); hideTeamSelector(); } /** * * This function switches the element with the given id from visibile to * hidden or back (with the jquery "hide" and "show" functions). * * It decides whether something is visible by using the ":visible" property * in jquery. If it's visible, it hides it. Otherwise, it shows it. * * @param id * @returns */ function toggleVisibilty(id){ //Steps to do: // 1. Get whether the element is visible. // 2. Hide it if it is and show it if it's not. var isElementVisible = isVisible(id); if (isVisible){ $('#' + id).hide(); } else { $('#' + id).show(); } } /** * * A really dumb function for checking whether an element with the given * id is visible or not. Just calls jquery to do the work. * * @param id * @returns */ function isVisible(id){ var isElementVisible = $('#' + id).is(':visible'); return isElementVisible; } /** * * This function will toggle the visibility the weeks for the given week records * at the given index. If they're shown, it'll hide them. If they're hidden, * it'll show them. It's specific to the "weeks won" stat thing for now. * * @param index * @returns */ function toggleShowWeeks(index){ //Steps to do: // 1. Get whether the week records are shown now. // 2. If they are, then hide them and change the link text. // 3. Otherwise, show them and change the link text. var isVisible = $('#week-records-' + index).is(':visible'); if (isVisible){ $('#week-records-' + index).hide(); $('#show-weeks-link-' + index).text('show weeks'); } else { $('#week-records-' + index).show(); $('#show-weeks-link-' + index).text('hide weeks'); } } /** * * This function will get the number rank of the given object in the given list. * It will use the given comparison function to compare the object with other objects * in the given list to decide where it fits, and it'll use the given "sameObjectFunction" * to make sure an object doesn't "tie with itself". * * I made it because I wanted to do it in a few places (the original standings, weeks won standings, * and a few other places). * * The given list <i>doesn't</i> need to be sorted in order for it to find the object's * rank. * * It'll return an object that's like: {rank: 12, tie: true}, so people can get the * numeric rank and whether it ties any other object in the list. * * Doing it this way, you'll have to call it for every object in the list ... This function * is O(n), so that makes ranking every object in a list O(n^2). That kind of sucks, * but it should be ok because we shouldn't be sorting hundreds or thousands of objects. * I felt like it was ok to give up some speed to have it so each of the "standings" * functions not have to duplicate the ranking code. * * @param object * @param list * @param comparisonFunction * @param sameObjectFunction * @returns */ function rank(object, list, comparisonFunction, sameObjectFunction){ //Steps to do: // 1. Create the initial "rank" for the object and assume it has the highest rank. // 2. Go through each object in the list and run the comparison object on it. // 3. If it returns a positive number, that means the object is after the current // one we're comparing it to, so we need to up the rank. // 4. If it says they're the same, and the object hasn't already tied another object, // then use the "sameObjectFunction" to see whether they're the exact same object or not. // 5. If they aren't, then it's a real tie. If they aren't, then it's not. var objectRank = {rank: 1, tie: false}; var numberOfRecordsBetter = 0; var tie = false; for (var index = 0; index < list.length; index++){ var currentObject = list[index]; var comparisonResult = comparisonFunction(object, currentObject); if (comparisonResult > 0){ objectRank.rank++; } else if (comparisonResult == 0){ if (objectRank.tie == false){ var isSameObject = sameObjectFunction(object, currentObject); if (!isSameObject){ objectRank.tie = true; } } } } return objectRank; } /** * * A convenience function that'll sort the given weekRecords array * by each weekRecord's length. A "weekRecord" will have a list * of records for each week inside it. This will sort it so that * the one with the most weeks comes first. * * This is for when we're ranking how many weeks a person has won and * we want the person who's won the most weeks (has the most records) * first. * * @param weekRecords * @returns */ function sortWeekRecords(weekRecords){ //Steps to do: // 1. Just run the sorting function on the records we were given. weekRecords.sort(function (weekRecord1, weekRecord2){ if (weekRecord1.weekRecords.length > weekRecord2.weekRecords.length){ return -1; } else if (weekRecord1.weekRecords.length < weekRecord2.weekRecords.length){ return 1; } //Sort it alphabetically by name if they have the same record. if (weekRecord1.player.name < weekRecord2.player.name){ return -1; } else if (weekRecord1.player.name > weekRecord2.player.name){ return 1; } return 0; }); } /** * * This function will sort the given week records by season and week * so that the "oldest" records appear first. It's here for when we're showing * how many weeks a person one and we want to show the weeks in chronological * order. This function will make sure they're in chronological order. * * @param weekRecords * @returns */ function sortWeekRecordsBySeasonAndWeek(weekRecords){ //Steps to do: // 1. Just run the sorting function on the array // we were given. weekRecords.sort(function (weekRecord1, weekRecord2){ var year1 = parseInt(weekRecord1.season.year); var year2 = parseInt(weekRecord2.season.year); //If the year from one is before the other, we want the earlier one first. if (year1 < year2){ return -1; } //And later one second. else if (year1 > year2){ return 1; } else { //Otherwise, compare on the weeks. var week1 = weekRecord1.week.weekSequenceNumber; var week2 = weekRecord2.week.weekSequenceNumber; //With the earlier week first. if (week1 < week2){ return -1; } else if (week1 > week2){ return 1; } } return 0; }); } /** * * This function will sort the given array of "week records" so that it * goes in ascending order by the week's year and week (so it's in increasing * order by season and by week within each season). * * @param weekRecords * @returns */ function sortWeekRecordsBySeasonWeekAndRecord(weekRecords){ //Steps to do: // 1. Just run the sorting function on the array // we were given. weekRecords.sort(function (weekRecord1, weekRecord2){ var year1 = parseInt(weekRecord1.season.year); var year2 = parseInt(weekRecord2.season.year); //If the year from one is before the other, we want the earlier one first. if (year1 < year2){ return -1; } //And later one second. else if (year1 > year2){ return 1; } //If it's the same year... else { //Compare on the weeks. var week1 = weekRecord1.week.weekSequenceNumber; var week2 = weekRecord2.week.weekSequenceNumber; //With the earlier week first. if (week1 < week2){ return -1; } else if (week1 > week2){ return 1; } //same week, so sort by the record. else { if (weekRecord1.record.wins > weekRecord2.record.wins){ return -1; } else if (weekRecord1.record.wins < weekRecord2.record.wins){ return 1; } else { if (weekRecord1.record.losses < weekRecord2.record.losses){ return -1; } else if (weekRecord1.record.losses > weekRecord2.record.losses){ return 1; } //Same year, week, wins, and losses, sort by the name else { if (weekRecord1.player.name < weekRecord2.player.name){ return -1; } else if (weekRecord1.player.name > weekRecord2.player.name){ return 1; } } } } } return 0; }); } /** * * This function will say whether a "specific" year was selected * (basically if the year isn't "all" or one of the special ones). * * This should go in the selectors javascript file i think. * * @returns */ function isSpecificYearSelected(){ var selectedYears = getSelectedYears(); if (selectedYears.length > 1){ return false; } var selectedYear = selectedYears[0].value; if ('all' == selectedYear || 'jurassic-period' == selectedYear || 'first-year' == selectedYear || 'modern-era' == selectedYear){ return false; } return true; } /** * * This function will say whether a "specific" team was selected * (basically if the team isn't "all"). * * @returns */ function isSpecificTeamSelected(){ var selectedTeams = getSelectedTeams(); if (selectedTeams.length > 1){ return false; } var selectedTeam = selectedTeams[0].value; if ('all' == selectedTeam){ return false; } return true; } /** * * A convenience function for checking whether a single week is selected or not. * * It'll return false if: * 1. There are no selected weeks. * 2. There's more than one selected week. * 3. There's one selected week, but it's the regular season, playoffs, or all. * * If all of those 3 things are false, it'll return true because that means there's a single * week selected and it's not one of the ones that represents multiple weeks. * * @returns */ function isASingleWeekSelected(){ var selectedWeeks = getSelectedWeekValues(); if (isEmpty(selectedWeeks)){ return false; } if (selectedWeeks.length > 1){ return false; } var selectedWeek = selectedWeeks[0]; if ('all' == selectedWeek || 'regular_season' == selectedWeek || 'playoffs' == selectedWeek){ return false; } return true; } /** * * This function will say whether a "specific" week was selected. * If the week is all, "regular-season", or "playoffs", then it takes * that to mean a specific one isn't and a "range" is instead. * * @returns */ function isSpecificWeekSelected(){ var selectedWeeks = getSelectedWeeks(); if (isEmpty(selectedWeeks)){ return false; } var selectedWeek = selectedWeeks[0].value; if ('all' == selectedWeek || 'regular_season' == selectedWeek || 'playoffs' == selectedWeek){ return false; } return true; } /** * * A convenience function for checking whether a single player is selected or not. * It'll return false if the current selected player is "all" or if it has multiple * values. Otherwise, it'll return true. * * @returns */ function isASinglePlayerSelected(){ var selectedPlayer = getSelectedPlayer(); if ('all' == selectedPlayer || doesValueHaveMultipleValues(selectedPlayer)){ return false; } return true; } /** * * This function will say whether a specific player is selected. If the * current selected player is "all", it'll say there isn't. Otherwise, it'll * say there is. * * @returns */ function isSpecificPlayerSelected(){ var selectedPlayers = getSelectedPlayers(); if (selectedPlayers.length > 1){ return false; } var selectedPlayer = selectedPlayers[0].value; if ('all' == selectedPlayer){ return false; } return true; } /** * * This function will get the winning percentage. Here because we almost always want * it formatted the same way, so I figured it was better to do it in a function. * * @param wins * @param losses * @returns */ function getWinningPercentage(wins, losses){ //Steps to do: // 1. Get the actual percentage. // 2. Make it 3 decimal places if it's a real number and blank if it's not. var percentage = wins / (wins + losses); var percentageString = ''; if (!isNaN(percentage)){ percentageString = percentage.toPrecision(3); } return percentageString; } /** * * A convenience function for sorting players by their name. Here in case * we do it in multiple places. * * @param players * @returns */ function sortPlayersByName(players){ //Steps to do: // 1. Just compare each player by its name. players.sort(function (player1, player2){ if (player1.name < player2.name){ return -1; } else if (player1.name > player2.name){ return 1; } return 0; }); } /** * * Here for when we're sorting something alphabetically and we don't * care what kind of string it is. * * @param values * @returns */ function sortAlphabetically(values){ values.sort(function (value1, value2){ if (value1 < value2){ return -1; } else if (value1 > value2){ return 1; } return 0; }); } /** * * Here so we can make sure the pick accuracies are in the right order (with the most * accurate team coming first). * * @param pickAccuracySummaries * @returns */ function sortPickAccuracySummariesByTimesRight(pickAccuracySummaries){ //Steps to do: // 1. Just sort them by how many times the person was right picking a team. pickAccuracySummaries.sort(function (pickAccuracySummaryA, pickAccuracySummaryB){ //More times right = front of the list. if (pickAccuracySummaryA.timesRight > pickAccuracySummaryB.timesRight){ return -1; } //Fewer times right = back of the list. else if (pickAccuracySummaryA.timesRight < pickAccuracySummaryB.timesRight){ return 1; } //If they have the same times right, sort on times wrong. if (pickAccuracySummaryA.timesWrong < pickAccuracySummaryB.timesWrong){ return -1; } //Fewer times right = back of the list. else if (pickAccuracySummaryA.timesWrong > pickAccuracySummaryB.timesWrong){ return 1; } //If they have the same times right and wrong, sort by player name. if (pickAccuracySummaryA.player.name < pickAccuracySummaryB.player.name){ return -1; } else if (pickAccuracySummaryA.player.name > pickAccuracySummaryB.player.name){ return 1; } //If they have the same player name, sort by team abbreviation. if (pickAccuracySummaryA.team.abbreviation < pickAccuracySummaryB.team.abbreviation){ return -1; } else if (pickAccuracySummaryA.team.abbreviation > pickAccuracySummaryB.team.abbreviation){ return 1; } return 0; }); } /** * * Shows or hides the details for pick accuracy. If it's currently shown, it'll hide * it and if it's currently hidden, it'll show it. * * @param index * @returns */ function toggleShowPickAccuracyDetails(index){ //Steps to do: // 1. Get whether the container at the index is shown. // 2. Hide it if it is, show it if it's not. var isVisible = $('#pick-accuracy-details-' + index).is(':visible'); if (isVisible){ $('#pick-accuracy-details-' + index).hide(); $('#pick-accuracy-details-link-' + index).text('Details'); } else { $('#pick-accuracy-details-' + index).show(); $('#pick-accuracy-details-link-' + index).text('Hide'); } } /** * * This function will create a link that'll take them to the picks for the given * year, week, team, and player (all optional) and show the given text. Here because * we wanted to do this in a few places, so I figured it was best to do it as a function. * * @param linkText * @param year * @param week * @param team * @param player * @returns */ function createPicksLink(linkText, year, week, team, player){ //Steps to do: // 1. Just make a link that'll call the javascript function // that actually updates the view. // 2. All the arguments are optional, so only add them in if // they're given. var picksLink = '<a href="javascript:" onClick="showPickView('; if (isDefined(year)){ var yearValue = year; if (Array.isArray(year)){ yearValue = arrayToDelimitedValue(year, ','); } picksLink = picksLink + '\'' + yearValue + '\', '; } else { picksLink = picksLink + 'null, '; } if (isDefined(week)){ var weekValue = week; if (Array.isArray(week)){ weekValue = arrayToDelimitedValue(week, ','); } picksLink = picksLink + '\'' + weekValue + '\', '; } else { picksLink = picksLink + 'null, '; } if (isDefined(team)){ var teamValue = team; if (Array.isArray(team)){ teamValue = arrayToDelimitedValue(team, ','); } picksLink = picksLink + '\'' + teamValue + '\', '; } else { picksLink = picksLink + 'null, '; } if (isDefined(player)){ var playerValue = player; if (Array.isArray(player)){ playerValue = arrayToDelimitedValue(player, ','); } picksLink = picksLink + '\'' + playerValue + '\''; } else { picksLink = picksLink + 'null'; } picksLink = picksLink + ');">' + linkText + '</a>'; return picksLink; } /** * * This function will show the picks grid for the given year, week, team, and player. * All the arguments are optional. It will just set each one as the selected * year, week, team, and player (if it's given) and then cause the picks to be shown. * * It'll flip the global "havePicksBeenShown" switch to true so that the view shows * all the picks for the given parameters and doesn't try to overrule it and only show * a week's worth of picks. * * @param year * @param week * @param team * @param player * @returns */ function showPickView(year, week, team, player){ //Steps to do: // 1. If we're coming from this function, then we don't want // the updatePicks function saying "no, you can't see all the picks", // so we need to flip the switch that disables that feature. // 2. Set all the parameters that were given. // 3. Call the function that'll show them on the screen. //If this switch is true, we'll show the picks for the parameters no matter //whether it's a week's worth or not. If it's not, it'll show only a week's //worth as a way to prevent accidentally showing all the picks (which takes a while to do). NFL_PICKS_GLOBAL.havePicksBeenShown = true; setSelectedType('picks'); if (isDefined(year)){ setSelectedYears(year); } if (isDefined(week)){ setSelectedWeeks(week); } if (isDefined(player)){ setSelectedPlayers(player); } if (isDefined(team)){ selectSingleTeamFull(team); } updateView(); } /** * * This function will shorten the given label so it's easier * to show on phones and stuff with small widths. Up yours, twitter * and bootstrap. * * @param label * @returns */ function shortenWeekLabel(label){ if ('Playoffs - Wild Card' == label){ return 'Wild card'; } else if ('Playoffs - Divisional' == label){ return 'Divisional'; } else if ('Playoffs - Conference Championship' == label || 'Conference Championship' == label){ return 'Conf champ'; } else if ('Playoffs - Super Bowl' == label){ return 'Super bowl'; } return label; } /** * * This function will check whether the given value has multiple values * in it or not. Basically, it'll return true if the given value is defined * and it has a comma in it. It assumes the given value is a string and multiple * values are separated by commas in that string. * * @param value * @returns */ function doesValueHaveMultipleValues(value){ if (isDefined(value) && value.indexOf(',') != -1){ return true; } return false; } function showYearContainer(){ $('#yearContainer').show(); } function hideYearContainer(){ $('#yearContainer').hide(); } function showPlayerContainer(){ $('#playerContainer').show(); } function hidePlayerContainer(){ $('#playerContainer').hide(); } function showWeekContainer(){ $('#weekContainer').show(); } function hideWeekContainer(){ $('#weekContainer').hide(); } function showTeamContainer(){ $('#teamContainer').show(); } function hideTeamContainer(){ $('#teamContainer').hide(); } function showStatNameContainer(){ $('#statNameContainer').show(); } function hideStatNameContainer(){ $('#statNameContainer').hide(); }
unlicense
tdeeb/PaperMarioBattleSystem
PaperMarioBattleSystem/PaperMarioBattleSystem/Classes/Collectibles/Badges/TimingTutorBadge.cs
1310
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using PaperMarioBattleSystem.Extensions; namespace PaperMarioBattleSystem { /// <summary> /// The Timing Tutor Badge - teaches the timing of Stylish Moves by showing a "!" above the character's head when they should press A. /// </summary> public sealed class TimingTutorBadge : Badge { public TimingTutorBadge() { Name = "Timing Tutor"; Description = "Learn the timing for Stylish commands."; BPCost = 1; PriceValue = 120; BadgeType = BadgeGlobals.BadgeTypes.TimingTutor; AffectedType = BadgeGlobals.AffectedTypes.Both; } protected override void OnEquip() { //Flag that this BattleEntity should have Stylish Move timings shown EntityEquipped.AddIntAdditionalProperty(Enumerations.AdditionalProperty.ShowStylishTimings, 1); } protected override void OnUnequip() { //Remove the flag that Stylish Move timings should be shown EntityEquipped.SubtractIntAdditionalProperty(Enumerations.AdditionalProperty.ShowStylishTimings, 1); } } }
unlicense
bitmovin/bitcodin-ruby
test/jobs/bitcodin_api_create_test.rb
9797
require 'test/unit' require 'bitcodin' require 'json' require 'coveralls' Coveralls.wear! module Bitcodin class BitcodinApiCreateTest < Test::Unit::TestCase def setup # read access information (e.g. api key, etc.) from file file = File.read('test/resources/settings.json') data = JSON.parse(file) @apiKey = data['apikey'] # create job config manifestTypes = [] manifestTypes.push(ManifestType::MPEG_DASH_MPD) manifestTypes.push(ManifestType::HLS_M3U8) @job = Job.new(20541, 7353, manifestTypes) end def test_createJob # create new bitcodinAPI instance bitcodinAPI = BitcodinAPI.new(@apiKey) # parse response to get job ID response = bitcodinAPI.createJob(@job) responseData = JSON.parse(response) @jobId = responseData['jobId'] # check response code assert_equal(response.code, ResponseCodes::POST) end def teardown end end class BitcodinApiCreateWidevineDrmTest < Test::Unit::TestCase def setup # read access information (e.g. api key, etc.) from file file = File.read('test/resources/settings.json') data = JSON.parse(file) @apiKey = data['apikey'] @drmConfig = WidevineDrmConfiguration.new('widevine_test', '1ae8ccd0e7985cc0b6203a55855a1034afc252980e970ca90e5202689f947ab9', 'd58ce954203b7c9a9a9d467f59839249', 'http://license.uat.widevine.com/cenc/getcontentkey', '746573745f69645f4639465043304e4f', 'mpeg_cenc') # create job config manifestTypes = [] manifestTypes.push(ManifestType::MPEG_DASH_MPD) manifestTypes.push(ManifestType::HLS_M3U8) @job = Job.new(20541, 7353, manifestTypes, 'standard', @drmConfig.values) end def test_createJob # create new bitcodinAPI instance bitcodinAPI = BitcodinAPI.new(@apiKey) # parse response to get job ID response = bitcodinAPI.createJob(@job) responseData = JSON.parse(response) @jobId = responseData['jobId'] # check response code assert_equal(response.code, ResponseCodes::POST) end def teardown end end class BitcodinApiCreatePlayreadyDrmTest < Test::Unit::TestCase def setup # read access information (e.g. api key, etc.) from file file = File.read('test/resources/settings.json') data = JSON.parse(file) @apiKey = data['apikey'] @drmConfig = PlayreadyDrmConfiguration.new('XVBovsmzhP9gRIZxWfFta3VVRPzVEWmJsazEJ46I', 'http://playready.directtaps.net/pr/svc/rightsmanager.asmx', 'mpeg_cenc', '746573745f69645f4639465043304e4f') # create job config manifestTypes = [] manifestTypes.push(ManifestType::MPEG_DASH_MPD) manifestTypes.push(ManifestType::HLS_M3U8) @job = Job.new(20541, 7353, manifestTypes, 'standard', @drmConfig.values) end def test_createJob # create new bitcodinAPI instance bitcodinAPI = BitcodinAPI.new(@apiKey) # parse response to get job ID response = bitcodinAPI.createJob(@job) responseData = JSON.parse(response) @jobId = responseData['jobId'] # check response code assert_equal(response.code, ResponseCodes::POST) end def teardown end end class BitcodinApiCreateWidevinePlayreadyCombinedDrmTest < Test::Unit::TestCase def setup # read access information (e.g. api key, etc.) from file file = File.read('test/resources/settings.json') data = JSON.parse(file) @apiKey = data['apikey'] @drmConfig = WidevinePlayreadyCombinedDrmConfiguration.new('eb676abbcb345e96bbcf616630f1a3da', '100b6c20940f779a4589152b57d2dacb', 'http://playready.directtaps.net/pr/svc/rightsmanager.asmx?PlayRight=1&ContentKey=EAtsIJQPd5pFiRUrV9Layw==', 'mpeg_cenc', 'CAESEOtnarvLNF6Wu89hZjDxo9oaDXdpZGV2aW5lX3Rlc3QiEGZrajNsamFTZGZhbGtyM2oqAkhEMgA=') # create job config manifestTypes = [] manifestTypes.push(ManifestType::MPEG_DASH_MPD) manifestTypes.push(ManifestType::HLS_M3U8) @job = Job.new(20541, 7353, manifestTypes, 'standard', @drmConfig.values) end def test_createJob # create new bitcodinAPI instance bitcodinAPI = BitcodinAPI.new(@apiKey) # parse response to get job ID response = bitcodinAPI.createJob(@job) responseData = JSON.parse(response) @jobId = responseData['jobId'] # check response code assert_equal(response.code, ResponseCodes::POST) end def teardown end end class BitcodinApiCreateHlsEncryptionTest < Test::Unit::TestCase def setup # read access information (e.g. api key, etc.) from file file = File.read('test/resources/settings.json') data = JSON.parse(file) @apiKey = data['apikey'] @hlsEncryption = HLSEncryptionConfiguration.new('SAMPLE-AES', 'cab5b529ae28d5cc5e3e7bc3fd4a544d', '08eecef4b026deec395234d94218273d') # create job config manifestTypes = [] manifestTypes.push(ManifestType::MPEG_DASH_MPD) manifestTypes.push(ManifestType::HLS_M3U8) @job = Job.new(20541, 7353, manifestTypes, 'standard', nil, @hlsEncryption.values) end def test_createJob # create new bitcodinAPI instance bitcodinAPI = BitcodinAPI.new(@apiKey) # parse response to get job ID response = bitcodinAPI.createJob(@job) responseData = JSON.parse(response) @jobId = responseData['jobId'] # check response code assert_equal(response.code, ResponseCodes::POST) end def teardown end end class BitcodinApiCreateMultipleAudioStreamsTest < Test::Unit::TestCase def setup # read access information (e.g. api key, etc.) from file file = File.read('test/resources/settings.json') data = JSON.parse(file) @apiKey = data['apikey'] bitcodinAPI = BitcodinAPI.new(@apiKey) # create encoding profile videoStreamConfig1 = VideoStreamConfig.new(0, 1024000, Profile::MAIN, Preset::PREMIUM, 480, 204) videoStreamConfigs = [videoStreamConfig1] audioStreamConfig1 = AudioStreamConfig.new(0, 256000) audioStreamConfig2 = AudioStreamConfig.new(1, 256000) audioStreamConfigs = [audioStreamConfig1, audioStreamConfig2] encodingProfile = EncodingProfile.new('testProfileRuby', videoStreamConfigs, audioStreamConfigs) # parse response to get encoding profile ID response = bitcodinAPI.createEncodingProfile(encodingProfile) responseData = JSON.parse(response) encodingProfileId = responseData['encodingProfileId'] bitcodinAPI = BitcodinAPI.new(@apiKey) # create input httpConfig = HTTPInputConfig.new('http://bitbucketireland.s3.amazonaws.com/Sintel-two-audio-streams-short.mkv') # parse response to get input ID response = bitcodinAPI.createInput(httpConfig) responseData = JSON.parse(response) inputId = responseData['inputId'] # create job config manifestTypes = [] manifestTypes.push(ManifestType::MPEG_DASH_MPD) manifestTypes.push(ManifestType::HLS_M3U8) # create audio metadata audioMetaDataConfiguration0 = AudioMetaDataConfiguration.new(0, 'de', 'Just Sound') audioMetaDataConfiguration1 = AudioMetaDataConfiguration.new(1, 'en', 'Sound and Voice') @job = Job.new(inputId, encodingProfileId, manifestTypes, 'standard', nil, nil, [audioMetaDataConfiguration0, audioMetaDataConfiguration1]) end def test_createJob bitcodinAPI = BitcodinAPI.new(@apiKey) # parse response to get job ID response = bitcodinAPI.createJob(@job) responseData = JSON.parse(response) @jobId = responseData['jobId'] # check response code assert_equal(response.code, ResponseCodes::POST) end def teardown end end class BitcodinApiCreateLocationJobTest < Test::Unit::TestCase def setup file = File.read('test/resources/settings.json') data = JSON.parse(file) @apiKey = data['apikey'] bitcodinAPI = BitcodinAPI.new(@apiKey) # create encoding profile videoStreamConfig1 = VideoStreamConfig.new(0, 1024000, Profile::MAIN, Preset::PREMIUM, 480, 204) videoStreamConfigs = [videoStreamConfig1] audioStreamConfig1 = AudioStreamConfig.new(0, 256000) audioStreamConfigs = [audioStreamConfig1] encodingProfile = EncodingProfile.new('testProfileRuby', videoStreamConfigs, audioStreamConfigs) # parse response to get encoding profile ID response = bitcodinAPI.createEncodingProfile(encodingProfile) responseData = JSON.parse(response) encodingProfileId = responseData['encodingProfileId'] bitcodinAPI = BitcodinAPI.new(@apiKey) # create input httpConfig = HTTPInputConfig.new('http://bitbucketireland.s3.amazonaws.com/Sintel-two-audio-streams-short.mkv') # parse response to get input ID response = bitcodinAPI.createInput(httpConfig) responseData = JSON.parse(response) inputId = responseData['inputId'] # create job config manifestTypes = [] manifestTypes.push(ManifestType::MPEG_DASH_MPD) manifestTypes.push(ManifestType::HLS_M3U8) @job = Job.new(inputId, encodingProfileId, manifestTypes, 'standard', nil, nil, nil, Location::DEFAULT) end def test_createJob bitcodinAPI = BitcodinAPI.new(@apiKey) # parse response to get job ID response = bitcodinAPI.createJob(@job) responseData = JSON.parse(response) @jobId = responseData['jobId'] # check response code assert_equal(response.code, ResponseCodes::POST) end def teardown end end end
unlicense
ripper234/v1.ripper234.com
p/2-physics-riddles/feed/index.html
3241
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel> <title>Comments on: 2 physics riddles</title> <atom:link href="http://v1.ripper234.com/p/2-physics-riddles/feed/" rel="self" type="application/rss+xml" /> <link>http://v1.ripper234.com/p/2-physics-riddles/</link> <description>Stuff Ron Gross Finds Interesting</description> <lastBuildDate>Sun, 02 Aug 2015 11:03:35 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=4.5.3</generator> <item> <title>By: ripper234</title> <link>http://v1.ripper234.com/p/2-physics-riddles/comment-page-1/#comment-1502</link> <dc:creator><![CDATA[ripper234]]></dc:creator> <pubDate>Fri, 10 Jul 2009 06:08:56 +0000</pubDate> <guid isPermaLink="false">http://v1.ripper234.com/?p=1090#comment-1502</guid> <description><![CDATA[I&#039;d use &lt;a href=&quot;http://en.wikipedia.org/wiki/Occam%27s_razor&quot; rel=&quot;nofollow&quot;&gt;Occam&#039;s Razor&lt;/a&gt; to choose between the two explanations. Sure, it won&#039;t work on all people equally - some would argue witchcraft is a simpler explanation, or &quot;God move the pendulum in order to fool you&quot;. You can&#039;t forcibly convince people that don&#039;t want to be convinced.]]></description> <content:encoded><![CDATA[<p>I&#8217;d use <a href="http://en.wikipedia.org/wiki/Occam%27s_razor" rel="nofollow">Occam&#8217;s Razor</a> to choose between the two explanations. Sure, it won&#8217;t work on all people equally &#8211; some would argue witchcraft is a simpler explanation, or &#8220;God move the pendulum in order to fool you&#8221;.</p> <p>You can&#8217;t forcibly convince people that don&#8217;t want to be convinced.</p> ]]></content:encoded> </item> <item> <title>By: Ofer Egozi</title> <link>http://v1.ripper234.com/p/2-physics-riddles/comment-page-1/#comment-1501</link> <dc:creator><![CDATA[Ofer Egozi]]></dc:creator> <pubDate>Thu, 09 Jul 2009 18:45:43 +0000</pubDate> <guid isPermaLink="false">http://v1.ripper234.com/?p=1090#comment-1501</guid> <description><![CDATA[Yes, this is fun. I&#039;m looking forward to the day my kids are old enough to come up with their own genius ideas. Problem with many of answers in the links is that they take some other axioms for granted. It really depends who you&#039;re trying to convince. A Foucault pendulum, for example, can easily be explained with a bunch of witchcraft and ghosts stories, rather than earth rotation...]]></description> <content:encoded><![CDATA[<p>Yes, this is fun. I&#8217;m looking forward to the day my kids are old enough to come up with their own genius ideas.<br /> Problem with many of answers in the links is that they take some other axioms for granted. It really depends who you&#8217;re trying to convince. A Foucault pendulum, for example, can easily be explained with a bunch of witchcraft and ghosts stories, rather than earth rotation&#8230;</p> ]]></content:encoded> </item> </channel> </rss>
unlicense
mscam/django-automotive
automotive/south_migrations/0001_initial.py
2513
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Brand' db.create_table(u'automotive_brand', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=64)), ('slug', self.gf('autoslug.fields.AutoSlugField')(unique_with=(), max_length=50, populate_from='name')), )) db.send_create_signal(u'automotive', ['Brand']) # Adding model 'Model' db.create_table(u'automotive_model', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('brand', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['automotive.Brand'])), ('name', self.gf('django.db.models.fields.CharField')(max_length=64)), ('full_name', self.gf('django.db.models.fields.CharField')(max_length=256, blank=True)), ('year', self.gf('django.db.models.fields.PositiveSmallIntegerField')(null=True, blank=True)), )) db.send_create_signal(u'automotive', ['Model']) def backwards(self, orm): # Deleting model 'Brand' db.delete_table(u'automotive_brand') # Deleting model 'Model' db.delete_table(u'automotive_model') models = { u'automotive.brand': { 'Meta': {'object_name': 'Brand'}, u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}), 'slug': ('autoslug.fields.AutoSlugField', [], {'unique_with': '()', 'max_length': '50', 'populate_from': "'name'"}) }, u'automotive.model': { 'Meta': {'object_name': 'Model'}, 'brand': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['automotive.Brand']"}), 'full_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}), 'year': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}) } } complete_apps = ['automotive']
unlicense
djmattyg007/MattyG.Http
src/Response.php
3333
<?php namespace MattyG\Http; class Response { /** * @var int */ protected $responseCode; /** * @var array */ protected $headers; /** * @var array */ protected $rawHeaders; /** * @var bool */ protected $headersSent; /** * @var string */ protected $body; public function __construct() { $this->responseCode = 200; $this->headers = array(); $this->rawHeaders = array(); $this->headersSent = false; $this->body = ""; } /** * @param int $code * @return Response */ public function setResponseCode($code) { $this->responseCode = $code; return $this; } /** * @return int */ public function getResponseCode() { return $this->responseCode; } /** * @return void */ public function sendResponseCode() { http_response_code($this->responseCode); } /** * @param array $rawHeaders * @return Response */ public function setRawHeaders(array $rawHeaders = array()) { $this->rawHeaders = $rawHeaders; return $this; } /** * @param string $rawHeader * @return Response */ public function addRawHeader($rawHeader) { $this->rawHeaders[] = $rawHeader; return $this; } /** * @return array */ public function getRawHeaders() { return $this->rawHeaders; } /** * @param array $headers * @return Response */ public function setHeaders(array $headers = array()) { $this->headers = $headers; return $this; } /** * @param string $header * @param string $value * @return Response */ public function addHeader($header, $value) { $this->headers[] = $header; return $this; } /** * @return array */ public function getHeaders() { return $this->headers; } /** * @param string $header * @return Response|bool */ public function unsetHeader($header) { if (isset($this->headers[$header])) { unset($this->headers[$header]); return $this; } else { return false; } } /** * @return void */ public function sendHeaders() { if ($this->headersSent === true) { return; } foreach ($this->rawHeaders as $rawHeader) { header($rawHeader); } foreach ($this->headers as $header => $value) { header($header . ": " . $value); } $this->headersSent = true; } /** * @param string $body * @return Response */ public function setBody($body) { $this->body = $body; return $this; } /** * @return string */ public function getBody() { return $this->body; } /** * @return void */ public function sendBody() { $body = $this->getBody(); echo $body; } /** * @return void */ public function sendResponse() { $this->sendHeaders(); $this->sendResponseCode(); $this->sendBody(); } }
unlicense
ninetwentyfour/Homkora
app/webroot/js/jqplot/examples/bezierCurve.html
4243
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="../src/jquery.jqplot.css" /> <link rel="stylesheet" type="text/css" href="examples.css" /> <!--[if IE]><script language="javascript" type="text/javascript" src="../src/excanvas.js"></script><![endif]--> <!-- BEGIN: load jquery --> <script language="javascript" type="text/javascript" src="../src/jquery-1.4.4.min.js"></script> <!-- END: load jquery --> <!-- BEGIN: load jqplot --> <script language="javascript" type="text/javascript" src="../src/jquery.jqplot.js"></script> <script language="javascript" type="text/javascript" src="../src/plugins/jqplot.bezierCurveRenderer.js"></script> <script language="javascript" type="text/javascript" src="../src/plugins/jqplot.dateAxisRenderer.js"></script> <style type="text/css"> p { margin-top:30px;} </style> <script type="text/javascript" language="javascript"> $(document).ready(function(){ $.jqplot.config.enablePlugins = true; var line1 = [[0, 1], [2, 2, 4, .5, 6, 0]]; var line2 = [[0, 5], [2, 6, 5, 1, 6, .5]]; var line3 = [[0, 6], [3, 9, 4, 8, 6, 3]]; var line4 = [[0, 7], [2, 9, 4, 8, 6, 6]]; var line5 = [[0, 8], [3, 9, 4, 8, 6, 8]]; plot1 = $.jqplot("chart1", [line1,line2, line3, line4, line5], { seriesDefaults: {renderer:$.jqplot.BezierCurveRenderer}, legend:{show:true} }); var s1 = [[0, 1], [2, 2], [4, .5], [6, 0]]; var s2 = [[0, 5], [2, 6], [5, 1], [6, .5]]; var s3 = [[0, 6], [3, 9], [4, 8], [6, 3]]; var s4 = [[0, 7], [2, 9], [4, 8], [6, 6]]; var s5 = [[0, 8], [3, 9], [4, 8], [6, 8]]; plot2 = $.jqplot("chart2", [s1,s2, s3, s4, s5], { seriesDefaults: {renderer:$.jqplot.BezierCurveRenderer}, legend:{show:true} }); var s1 = [['01/01/2010', 1], ['02/01/2010', 2], ['03/01/2010', .5], ['04/01/2010', 0]]; var s2 = [['01/01/2010', 5], ['02/01/2010', 6], ['03/01/2010', 1], ['04/01/2010', .5]]; var s3 = [['01/01/2010', 6], ['02/01/2010', 9], ['03/01/2010', 8], ['04/01/2010', 3]]; var s4 = [['01/01/2010', 7], ['02/01/2010', 9], ['03/01/2010', 8], ['04/01/2010', 6]]; var s5 = [['01/01/2010', 8], ['02/01/2010', 9], ['03/01/2010', 8], ['04/01/2010', 8]]; plot3 = $.jqplot("chart3", [s1,s2, s3, s4, s5], { seriesDefaults: {renderer:$.jqplot.BezierCurveRenderer}, axes:{xaxis:{renderer:$.jqplot.DateAxisRenderer, numberTicks:4}}, legend:{show:true} }); }); </script> </head> <body> <?php include "nav.inc"; ?> <p>The Bezier curve renderer can distinguish between two different input data formats. This first example has the data passed in as 2 data points, the second one defining the Bezier curve to the end point. With this format, non-default axes renderers will require specifying the minimum and maximum on the axes.</p> <pre> [[xstart, ystart], [cp1x, cp1y, cp2x, cp2y, xend, yend]]; </pre> <div id="chart1" class='plot' style="margin-top:20px; margin-left:20px; width:400px; height:300px;"></div> <p>This second example has the data broken out into 4 points, which will be assembled to define the Bezier Curve. With this format, any axes renderer can be used without explicitly specifying the minimum and maximum.</p> <pre> [[xstart, ystart], [cp1x, cp1y], [cp2x, cp2y], [xend, yend]]; </pre> <div id="chart2" class='plot' style="margin-top:20px; margin-left:20px; width:400px; height:300px;"></div> <p> Here is an example using a date axis renderer with Bezier curves. The data looks like:</p> <pre> [['01/01/2010', 6], ['02/01/2010', 9], ['03/01/2010', 8], ['04/01/2010', 3]] </pre> <div id="chart3" class='plot' style="margin-top:20px; margin-left:20px; width:400px; height:300px;"></div> <p>Note that jqPlot converts the datetime strings into timestamps internally, so further explicit modification of the x value (date value) of series data points will have to be with integer time stamp data. So, you would do something like:</p> <pre> plot3.series[2].data [[1262322000000, 6], [1265000400000, 9], [1267419600000, 8], [1270094400000, 3]] plot3.series[2].data[1][0] = 1265900400000 plot3.drawSeries(2) </pre> </body> </html>
unlicense
Hemofektik/Druckwelle
3rdparty/GDAL/include/cpl_http.h
4144
/****************************************************************************** * $Id: cpl_http.h 32171 2015-12-13 20:39:43Z goatbar $ * * Project: Common Portability Library * Purpose: Function wrapper for libcurl HTTP access. * Author: Frank Warmerdam, [email protected] * ****************************************************************************** * Copyright (c) 2006, Frank Warmerdam * Copyright (c) 2009, Even Rouault <even dot rouault at mines-paris dot org> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. ****************************************************************************/ #ifndef CPL_HTTP_H_INCLUDED #define CPL_HTTP_H_INCLUDED #include "cpl_conv.h" #include "cpl_string.h" #include "cpl_vsi.h" /** * \file cpl_http.h * * Interface for downloading HTTP, FTP documents */ CPL_C_START /*! Describe a part of a multipart message */ typedef struct { /*! NULL terminated array of headers */ char **papszHeaders; /*! Buffer with data of the part */ GByte *pabyData; /*! Buffer length */ int nDataLen; } CPLMimePart; /*! Describe the result of a CPLHTTPFetch() call */ typedef struct { /*! cURL error code : 0=success, non-zero if request failed */ int nStatus; /*! Content-Type of the response */ char *pszContentType; /*! Error message from curl, or NULL */ char *pszErrBuf; /*! Length of the pabyData buffer */ int nDataLen; int nDataAlloc; /*! Buffer with downloaded data */ GByte *pabyData; /*! Headers returned */ char **papszHeaders; /*! Number of parts in a multipart message */ int nMimePartCount; /*! Array of parts (resolved by CPLHTTPParseMultipartMime()) */ CPLMimePart *pasMimePart; } CPLHTTPResult; int CPL_DLL CPLHTTPEnabled( void ); CPLHTTPResult CPL_DLL *CPLHTTPFetch( const char *pszURL, char **papszOptions); void CPL_DLL CPLHTTPCleanup( void ); void CPL_DLL CPLHTTPDestroyResult( CPLHTTPResult *psResult ); int CPL_DLL CPLHTTPParseMultipartMime( CPLHTTPResult *psResult ); /* -------------------------------------------------------------------- */ /* The following is related to OAuth2 authorization around */ /* google services like fusion tables, and potentially others */ /* in the future. Code in cpl_google_oauth2.cpp. */ /* */ /* These services are built on CPL HTTP services. */ /* -------------------------------------------------------------------- */ char CPL_DLL *GOA2GetAuthorizationURL( const char *pszScope ); char CPL_DLL *GOA2GetRefreshToken( const char *pszAuthToken, const char *pszScope ); char CPL_DLL *GOA2GetAccessToken( const char *pszRefreshToken, const char *pszScope ); CPL_C_END #endif /* ndef CPL_HTTP_H_INCLUDED */
unlicense
drenzul/lockeythings
public_html/helperclasses/database.php
1755
<?php //Database.php //require_once('config.php'); //Might add config file to pull this in from later class Database { protected static $connection; private function dbConnect() { $databaseName = 'lockeythings'; $serverName = 'localhost'; $databaseUser = 'lockey'; $databasePassword = 'bobisyouruncle'; $databasePort = '3306'; // Not actual details! Placeholders! Leave my DB alone! :) self::$connection = mysqli_connect ($serverName, $databaseUser, $databasePassword, 'lockeythings'); // mysqli_set_charset('utf-8',self::$connection); if (self::$connection) { if (!mysqli_select_db (self::$connection, $databaseName)) { echo("DB Not Found"); throw new Exception('DB Not found'); } } else { echo("No DB connection"); throw new Exception('No DB Connection'); } return self::$connection; } public function query($query) { // Connect to the database $connection = $this -> dbConnect(); // Query the database $result = mysqli_query($connection, $query); return $result; } public function select($query) { $rows = array(); $result = $this -> query($query); if($result === false) { return false; } while ($row = $result -> fetch_assoc()) { $rows[] = $row; } // echo("should have worked"); return $rows; } } ?>
unlicense
cragwen/hello-world
log/2018/181001.md
22
# 181001 see grandpa.
unlicense
haraldh/mkrescue-uefi
README.md
1477
# mkrescue-uefi Creates a custom BOOTX64.EFI from a linux kernel, initrd and kernel cmdline Lately Kay Sievers and David Herrmann created a UEFI loader stub, which starts a linux kernel with an initrd and a kernel command line, which are COFF sections of the executable. This enables us to create single UEFI executable with a standard distribution kernel, a custom initrd and our own kernel command line attached. Of course booting a linux kernel directly from the UEFI has been possible before with the kernel EFI stub. But to add an initrd and kernel command line, this had to be specified at kernel compile time. To demonstrate this feature and have a useful product, I created a shell script, which creates a “rescue” image on Fedora with the rescue kernel and rescue initrd. The kernel command line “rd.auto” instructs dracut to assemble all devices, while waiting 20 seconds for device appearance “rd.retry=20″ and drop to a final shell because “root=/dev/failme” is specified (which does not exist of course). Now in this shell you can fsck your devices, mount them and repair your system. To run the script, you have to install gummiboot >= 46 and binutils. ``` # yum install gummiboot binutils ``` Run the script: ``` # bash mkrescue-uefi.sh BOOTX64.EFI ``` Copy BOOTX64.EFI to e.g. a USB stick to EFI/BOOT/BOOTX64.EFI in the FAT boot partition and point your BIOS to boot from the USB stick. Voilà! A rescue USB stick with just one file! :-)
unlicense
pakogn/offline-laravel-docs
api/4.2/Illuminate/Routing/Matching/ValidatorInterface.html
3382
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="robots" content="index, follow, all" /> <title>Illuminate\Routing\Matching\ValidatorInterface | Laravel API</title> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css"> </head> <body id="class"> <div class="header"> <ul> <li><a href="../../../classes.html">Classes</a></li> <li><a href="../../../namespaces.html">Namespaces</a></li> <li><a href="../../../interfaces.html">Interfaces</a></li> <li><a href="../../../traits.html">Traits</a></li> <li><a href="../../../doc-index.html">Index</a></li> </ul> <div id="title">Laravel API</div> <div class="type">Interface</div> <h1><a href="../../../Illuminate/Routing/Matching.html">Illuminate\Routing\Matching</a>\ValidatorInterface</h1> </div> <div class="content"> <p> interface <strong>ValidatorInterface</strong></p> <h2>Methods</h2> <table> <tr> <td class="type"> bool </td> <td class="last"> <a href="#method_matches">matches</a>(<a href="../../../Illuminate/Routing/Route.html"><abbr title="Illuminate\Routing\Route">Route</abbr></a> $route, <a href="../../../Illuminate/Http/Request.html"><abbr title="Illuminate\Http\Request">Request</abbr></a> $request) <p>Validate a given rule against a route and request.</p> </td> <td></td> </tr> </table> <h2>Details</h2> <h3 id="method_matches"> <div class="location">at line 15</div> <code> bool <strong>matches</strong>(<a href="../../../Illuminate/Routing/Route.html"><abbr title="Illuminate\Routing\Route">Route</abbr></a> $route, <a href="../../../Illuminate/Http/Request.html"><abbr title="Illuminate\Http\Request">Request</abbr></a> $request)</code> </h3> <div class="details"> <p>Validate a given rule against a route and request.</p> <p> </p> <div class="tags"> <h4>Parameters</h4> <table> <tr> <td><a href="../../../Illuminate/Routing/Route.html"><abbr title="Illuminate\Routing\Route">Route</abbr></a></td> <td>$route</td> <td> </td> </tr> <tr> <td><a href="../../../Illuminate/Http/Request.html"><abbr title="Illuminate\Http\Request">Request</abbr></a></td> <td>$request</td> <td> </td> </tr> </table> <h4>Return Value</h4> <table> <tr> <td>bool</td> <td> </td> </tr> </table> </div> </div> </div> <div id="footer"> Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>. </div> </body> </html>
unlicense
dvelle/The-hustle-game-on-facebook-c.2010
hustle/hustle/test/estate.php
2104
<?php function getAssets($statName,$userID) { include 'connect.php'; $conn = mysql_connect($dbhost,$dbuser,$dbpass) or die ('Error connecting to mysql:'); mysql_select_db($dbname); createIfNotExists($statName,$userID); $query = sprintf("SELECT value FROM h_user_assets WHERE assets_id = (SELECT id FROM h_assets WHERE name = '%s' OR short_name = '%s') AND user_id = '%s'", mysql_real_escape_string($statName), mysql_real_escape_string($statName), mysql_real_escape_string($userID)); $result = mysql_query($query); list($value) = mysql_fetch_row($result); return $value; } function setAssets($statName,$userID,$quantity) { include 'connect.php'; $conn = mysql_connect($dbhost,$dbuser,$dbpass) or die ('Error connecting to mysql'); mysql_select_db($dbname); createIfNotExists($statName,$userID); $query = sprintf("UPDATE h_user_assets SET quantity = '%s' WHERE assets_id = (SELECT id FROM h_assets WHERE name = '%s' OR short_name = '%s') AND user_id = '%s'", mysql_real_escape_string($quantity), mysql_real_escape_string($statName), mysql_real_escape_string($statName), mysql_real_escape_string($userID)); $result = mysql_query($query); } function createIfNotExists($statName,$userID) { include 'connect.php'; $conn = mysql_connect($dbhost,$dbuser,$dbpass) or die ('Error connecting to mysql:'); mysql_select_db($dbname); $query = sprintf("SELECT count(quantity) FROM h_user_assets WHERE stat_id = (SELECT id FROM h_assets WHERE name = '%s' OR short_name = '%s') AND user_id = '%s'", mysql_real_escape_string($statName), mysql_real_escape_string($statName), mysql_real_escape_string($userID)); $result = mysql_query($query); list($count) = mysql_fetch_row($result); if($count == 0) { // the stat doesn't exist; insert it into the database $query = sprintf("INSERT INTO h_user_stats(assets_id,user_id,quantity) VALUES ((SELECT id FROM h_assets WHERE name = '%s' OR short_name = '%s'),'%s','%s')", mysql_real_escape_string($statName), mysql_real_escape_string($statName), mysql_real_escape_string($userID), '0'); mysql_query($query); } } ?>
unlicense
suemcnab/react-youtube-pxn-open
src/components/video_detail.js
891
import React from 'react'; import Moment from 'moment'; import { Embed, Grid } from 'semantic-ui-react'; const VideoDetail = ({video}) => { if (!video){ return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; const pubTime = Moment(video.snippet.publishedAt).format('DD-MM-YYYY, h:mm:ss a') return ( <Grid.Row stretched> <Grid.Column > <Embed active autoplay={false} brandedUI={false} id={videoId} placeholder='http://semantic-ui.com/images/image-16by9.png' src={url} source='youtube'/> <div className="details"> <h5 className="meta-big-title">{video.snippet.title}</h5> <div className="meta-description">{video.snippet.description}</div> <div className="meta-time">Published: {pubTime}</div> </div> </Grid.Column> </Grid.Row> ); }; export default VideoDetail;
unlicense
dagostinelli/python-package-boilerplate
packagename/somemodule.py
382
class MyClass: '''This is the docstring for this class''' def __init__(self): # setup per-instance variables self.x = 1 self.y = 2 self.z = 3 class MySecondClass: '''This is the docstring for this second class''' def __init__(self): # setup per-instance variables self.p = 1 self.d = 2 self.q = 3
unlicense
DragonMinded/libdragon
include/ay8910.h
5367
#ifndef __LIBDRAGON_AY8910_H #define __LIBDRAGON_AY8910_H #include <stdbool.h> #include <stdint.h> #ifdef __cplusplus extern "C" { #endif /** @brief Decimation factor for AY8910. * * AY8910 is usually clocked at a very high frequency (>100K), and thus it * requires downsampling to be played back. This emulator offers a very basic * downsampling filter via decimation (taking average of Nth consecutive samples) * that is usually a good compromise between quality and speed, for realtime * playback. It will not sound as good as a real downsampling filter though. * * It is suggested to configure this number to the smallest value that brings * the AY8910 output frequency within the playback sample rate. */ #define AY8910_DECIMATE 3 /** @brief Generate stereo output. * * If 1, AY8910 will generate a stereo output with fixed pans for * each of the three internal channels, similar to what Arkos Tracker 2 does * in stereo mode. */ #define AY8910_OUTPUT_STEREO 1 /** @brief Define the global attenuation applied to volumes (range 0.0 - 1.0). * * The AY8910 often clips so it's important to lower a bit the volume to avoid * sound artifacts. */ #define AY8910_VOLUME_ATTENUATE 0.8 /** @brief Generate silence as 0. * * Normally, AY8910 generates output samples in which the silence is * represented by -32768 (minimum volume). This is a little inconvenient * if the caller wants to skip generation when the AY8910 is muted for * performance reasons, because audio mixers normally assume that muted * channels are made by samples with value 0, otherwise disabling the * AY8910 would affect the volume of all other channels. * * By setting this macro to 1, the dynamic range will be halved in the range * 0-32767, so the silence will be as expected, but the audio will * be somehow "duller". */ #define AY8910_CENTER_SILENCE 1 /** @brief A AY-3-8910 channel */ typedef struct { uint16_t tone_period; ///< Period (in ticks) of the current tone uint8_t tone_vol; ///< Volume of the tone (0x10 -> use envelope) uint8_t tone_en; ///< Enable flag of the tone (0 is enabled) uint8_t noise_en; ///< Enable flag of the noise for this channel (0 is enabled) uint16_t count; ///< Current tick count for the period uint8_t out; ///< Current output value for this channel } AYChannel; /** @brief Envelope of AY-3-8910 */ typedef struct { uint16_t period; ///< Period (in ticks) of the envelope uint8_t shape; ///< Shape of the envelope (jigsaw, etc.) uint8_t attack; ///< 0x0 if in attack, 0xF if in the release uint8_t alternate; ///< True if attack and release alternate (jigsaw) uint8_t hold; ///< True if the envelope holds after attack uint16_t count; ///< Current tick count for the period int16_t step; ///< Current step of the envelope uint8_t vol; ///< Current output volume uint8_t holding; ///< True if the envelope is currently holding } AYEnvelope; /** @brief Noise of AY-3-8910 */ typedef struct { uint8_t period; ///< Period (in ticks) of the noise uint8_t count; ///< Current tick count for the period uint32_t out; ///< Current output value } AYNoise; /** * @brief A AY-3-8910 emulator * * AY-3-8910 is a 4-bit PSG, popular in the 80s, that was used in many * game consoles and PCs. It features 3 channels producing square waveforms * at programmable periods and volumes, plus a noise generator that can be * activated on each channel, and a volume envelope. * * This emulator has been heavily optimized to be able to perform fast enough * on the N64 hardware to be used as background music. Specifically, it is * used by #ym64player_t to play back YM modules. */ typedef struct { uint8_t (*PortRead)(int idx); ///< Callback for I/O port reads void (*PortWrite)(int idx, uint8_t val); ///< Callback for I/O port writes uint8_t addr; ///< Current value on the address line uint8_t regs[16]; ///< State of the internal registers AYChannel ch[3]; ///< Configuration and state of the channels AYNoise ns; ///< Configuration and state of the noise AYEnvelope env; ///< Configuration and state of the envelope } AY8910; /** @brief Reset the AY8910 emulator. */ void ay8910_reset(AY8910 *ay); /** @brief Configure the I/O port callbacks. */ void ay8910_set_ports(AY8910 *ay, uint8_t (*PortRead)(int), void (*PortWrite)(int, uint8_t)); /** @brief Write to the AY8910 address line. */ void ay8910_write_addr(AY8910 *ay, uint8_t addr); /** @brief Write to the AY8910 data line. */ void ay8910_write_data(AY8910 *ay, uint8_t val); /** @brief Read from the AY8910 data line. */ uint8_t ay8910_read_data(AY8910 *ay); /** @brief Return true if ay8910 is currently muted (all channels disabled) */ bool ay8910_is_mute(AY8910 *ay); /** @brief Generate audio for the specified number of samples. * * "nsamples" is the number of samples after decimation (so the exact number of * samples written in the output buffer). */ int ay8910_gen(AY8910 *ay, int16_t *out, int nsamples); #ifdef __cplusplus } #endif #endif
unlicense
Kakrain/taller_rvagl
HeadTrackingFinal/HeadTrackingFinal/include/camerarev15.h
833
//======================================================================================================----- //== NaturalPoint 2012 //======================================================================================================----- #ifndef __CAMERALIBRARY__CAMERAREV15_H__ #define __CAMERALIBRARY__CAMERAREV15_H__ //== INCLUDES ===========================================================================================---- #include "camerarev12.h" #include "camerarevisions.h" //== GLOBAL DEFINITIONS AND SETTINGS ====================================================================---- class cInputBase; namespace CameraLibrary { class CameraRev15 : public CameraRev12 { public: CameraRev15(); ~CameraRev15(); int HardwareFrameRate() { return 120; } }; } #endif
unlicense
gbtimmon/ase16GBT
code/4/ga/magoff2.py
8088
#%matplotlib inline # All the imports from __future__ import print_function, division from math import * import random import sys import matplotlib.pyplot as plt # TODO 1: Enter your unity ID here __author__ = "magoff2" class O: """ Basic Class which - Helps dynamic updates - Pretty Prints """ def __init__(self, **kwargs): self.has().update(**kwargs) def has(self): return self.__dict__ def update(self, **kwargs): self.has().update(kwargs) return self def __repr__(self): show = [':%s %s' % (k, self.has()[k]) for k in sorted(self.has().keys()) if k[0] is not "_"] txt = ' '.join(show) if len(txt) > 60: show = map(lambda x: '\t' + x + '\n', show) return '{' + ' '.join(show) + '}' print("Unity ID: ", __author__) #################################################################### #SECTION 2 #################################################################### # Few Utility functions def say(*lst): """ Print whithout going to new line """ print(*lst, end="") sys.stdout.flush() def random_value(low, high, decimals=2): """ Generate a random number between low and high. decimals incidicate number of decimal places """ return round(random.uniform(low, high),decimals) def gt(a, b): return a > b def lt(a, b): return a < b def shuffle(lst): """ Shuffle a list """ random.shuffle(lst) return lst class Decision(O): """ Class indicating Decision of a problem """ def __init__(self, name, low, high): """ @param name: Name of the decision @param low: minimum value @param high: maximum value """ O.__init__(self, name=name, low=low, high=high) class Objective(O): """ Class indicating Objective of a problem """ def __init__(self, name, do_minimize=True): """ @param name: Name of the objective @param do_minimize: Flag indicating if objective has to be minimized or maximized """ O.__init__(self, name=name, do_minimize=do_minimize) class Point(O): """ Represents a member of the population """ def __init__(self, decisions): O.__init__(self) self.decisions = decisions self.objectives = None def __hash__(self): return hash(tuple(self.decisions)) def __eq__(self, other): return self.decisions == other.decisions def clone(self): new = Point(self.decisions) new.objectives = self.objectives return new class Problem(O): """ Class representing the cone problem. """ def __init__(self): O.__init__(self) # TODO 2: Code up decisions and objectives below for the problem # using the auxilary classes provided above. self.decisions = [Decision('r', 0, 10), Decision('h', 0, 20)] self.objectives = [Objective('S'), Objective('T')] @staticmethod def evaluate(point): [r, h] = point.decisions l = (r**2 + h**2)**0.5 S = pi * r * l T = S + pi * r**2 point.objectives = [S, T] # TODO 3: Evaluate the objectives S and T for the point. return point.objectives @staticmethod def is_valid(point): [r, h] = point.decisions # TODO 4: Check if the point has valid decisions V = pi / 3 * (r**2) * h return V > 200 def generate_one(self): # TODO 5: Generate a valid instance of Point. while(True): point = Point([random_value(d.low, d.high) for d in self.decisions]) if Problem.is_valid(point): return point cone = Problem() point = cone.generate_one() cone.evaluate(point) print (point) def populate(problem, size): population = [] # TODO 6: Create a list of points of length 'size' for _ in xrange(size): population.append(problem.generate_one()) return population #or #return(problem.generate_one() for _ in xrange(size) pop = populate(cone,5) print(pop) def crossover(mom, dad): # TODO 7: Create a new point which contains decisions from # the first half of mom and second half of dad n = len(mom.decisions) return Point(mom.decisions[:n//2] + dad.decisions[n//2:]) mom = cone.generate_one() dad = cone.generate_one() print(mom) print(dad) print(crossover(mom,dad)) print(crossover(pop[0],pop[1])) def mutate(problem, point, mutation_rate=0.01): # TODO 8: Iterate through all the decisions in the point # and if the probability is less than mutation rate # change the decision(randomly set it between its max and min). for i, d in enumerate(problem.decisions): if(random.random() < mutation_rate) : point.decisions[i] = random_value(d.low, d.high) return point def bdom(problem, one, two): """ Return if one dominates two """ objs_one = problem.evaluate(one) objs_two = problem.evaluate(two) if(one == two): return False; dominates = False # TODO 9: Return True/False based on the definition # of bdom above. first = True second = False for i,_ in enumerate(problem.objectives): if ((first is True) & gt(one.objectives[i], two.objectives[i])): first = False elif (not second & (one.objectives[i] is not two.objectives[i])): second = True dominates = first & second return dominates print(bdom(cone,pop[0],pop[1])) def fitness(problem, population, point): dominates = 0 # TODO 10: Evaluate fitness of a point. # For this workshop define fitness of a point # as the number of points dominated by it. # For example point dominates 5 members of population, # then fitness of point is 5. for another in population: if bdom(problem, point, another): dominates += 1 return dominates ''' should be 1 because it will run across the same point.''' print(fitness(cone, pop, pop[0])) print('HELLO WORLD\n') def elitism(problem, population, retain_size): # TODO 11: Sort the population with respect to the fitness # of the points and return the top 'retain_size' points of the population fit_pop = [fitness(cone,population,pop) for pop in population] population = [pop for _,pop in sorted(zip(fit_pop,population), reverse = True)] return population[:retain_size] print(elitism(cone, pop, 3)) def ga(pop_size=100, gens=250): problem = Problem() population = populate(problem, pop_size) [problem.evaluate(point) for point in population] initial_population = [point.clone() for point in population] gen = 0 while gen < gens: say(".") children = [] for _ in range(pop_size): mom = random.choice(population) dad = random.choice(population) while (mom == dad): dad = random.choice(population) child = mutate(problem, crossover(mom, dad)) if problem.is_valid(child) and child not in population + children: children.append(child) population += children population = elitism(problem, population, pop_size) gen += 1 print("") return initial_population, population def plot_pareto(initial, final): initial_objs = [point.objectives for point in initial] final_objs = [point.objectives for point in final] initial_x = [i[0] for i in initial_objs] initial_y = [i[1] for i in initial_objs] final_x = [i[0] for i in final_objs] final_y = [i[1] for i in final_objs] plt.scatter(initial_x, initial_y, color='b', marker='+', label='initial') plt.scatter(final_x, final_y, color='r', marker='o', label='final') plt.title("Scatter Plot between initial and final population of GA") plt.ylabel("Total Surface Area(T)") plt.xlabel("Curved Surface Area(S)") plt.legend(loc=9, bbox_to_anchor=(0.5, -0.175), ncol=2) plt.show() initial, final = ga() plot_pareto(initial, final)
unlicense
gregington/BigCrystalTWI
src/BigCrystalTWI.h
2149
#ifndef BigCrystalTWI_h #define BigCrystalTWI_h #include "BigFont.h" #include <LiquidTWI.h> class BigCrystalTWI : public LiquidTWI { public: /* Creates BigCrystalTWI instance for a display on the specified i2c address. * Parameters * i2cAddr: the i2c address of the display */ BigCrystalTWI(uint8_t i2cAddr); /* Returns the width in columns of the specified character. * If the character cannot be printed big, then zero is returned. * Parameters: * c: the character whose width is required * Returns: * the width of the character, including the empty spacer column, * or zero if the character cannot be displayed. */ uint8_t widthBig(char c); /* Writes the specified character to the coordinate specified on the display. * Parameters: * c: the character to display * col: the column on the display where the left edge of the character starts * row: the row on the display where the top of the character starts * Returns: * the width of the character displayed, including the empty spacer column, * or zero if the character cannot be displayed. */ uint8_t writeBig(char c, uint8_t col, uint8_t row); /* Writes the specified string from left to right, starting at the specified * display coordinate. No bounds checks are made to ensure that the string * will fit on the display. On a four line or greater display, characters will * not wrap onto lower display rows. * Parameters: * str: the String to display * col: the column on the display where the left edge of the first character * starts * row: the row on the display where the top edge of characters start * Returns: * the total width of all printed characters, including all empty spacer columns */ uint8_t printBig(char *str, uint8_t col, uint8_t row); private: uint8_t getWidthFromTableCode(uint8_t tableCode); const uint8_t* getTable(uint8_t tableCode); void getTableCodeAndIndex(char c, uint8_t &tableCode, uint8_t &index); void clearColumn(uint8_t row, uint8_t col); char toUpperCase(char c); bool supported(char c); }; #endif
unlicense
aadithpm/code-a-day
py/Sum Of Positive.py
316
""" You get an array of numbers, return the sum of all of the positives ones. Example [1,-4,7,12] => 1 + 7 + 12 = 20 Note: array may be empty, in this case return 0. """ def positive_sum(arr): # Your code here sum = 0 for number in arr: if number > 0: sum += number return sum
unlicense
wyf2learn/leetcode
problems/algorithms/200.number-of-islands.js
1394
/** * [★★★★]200. Number of Islands * finish: 2016-12-06 * https://leetcode.com/problems/number-of-islands/ */ /** * @param {character[][]} grid * @return {number} */ var numIslands = function (grid) { var count = 0, i, j; for (i = 0; i < grid.length; i++) { for (j = 0; j < grid[i].length; j++) { if (grid[i][j] == 1) { count += 1; grid[i] = modify(grid[i], j, 2); visitAround(grid, i, j); } else { grid[i] = modify(grid[i], j, 2); } } } return count; }; function modify(str, index, val) { var arr = str.split(''); arr[index] = val; return arr.join(''); } function visitAround(grid, i, j) { // top, right, down, left visit(grid, i - 1, j); visit(grid, i, j + 1); visit(grid, i + 1, j); visit(grid, i, j - 1); } function visit(grid, row, col) { if (typeof grid[row] !== 'undefined' && typeof grid[row][col] !== 'undefined') { if (grid[row][col] == 1) { grid[row] = modify(grid[row], col, 2); visitAround(grid, row, col); } else { grid[row] = modify(grid[row], col, 2); } } } write('algorithms: 200. Number of Islands', 'title'); write(numIslands(["10101", "11010", "10101", "01010"])); write(numIslands(["11110", "11010", "11000", "00000"]));
unlicense
codeApeFromChina/resource
frame_packages/java_libs/hibernate-distribution-3.6.10.Final/documentation/javadocs/org/hibernate/hql/ast/class-use/ErrorCounter.html
6000
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_07) on Wed Feb 08 19:32:58 CST 2012 --> <TITLE> Uses of Class org.hibernate.hql.ast.ErrorCounter (Hibernate JavaDocs) </TITLE> <META NAME="date" CONTENT="2012-02-08"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.hibernate.hql.ast.ErrorCounter (Hibernate JavaDocs)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/hibernate/hql/ast/ErrorCounter.html" title="class in org.hibernate.hql.ast"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/hibernate/hql/ast//class-useErrorCounter.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="ErrorCounter.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <CENTER> <H2> <B>Uses of Class<br>org.hibernate.hql.ast.ErrorCounter</B></H2> </CENTER> No usage of org.hibernate.hql.ast.ErrorCounter <P> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/hibernate/hql/ast/ErrorCounter.html" title="class in org.hibernate.hql.ast"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/hibernate/hql/ast//class-useErrorCounter.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="ErrorCounter.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright &copy; 2001-2010 <a href="http://redhat.com">Red Hat, Inc.</a> All Rights Reserved. </BODY> </HTML>
unlicense
PolyakovSergey95/OOP
Polyakov_17/prakt_1/Exam.cs
867
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Exam: IDateAndCopy { public String Name { get; set; } public int Mark { get; set; } public DateTime Date { get; set; } public Exam(String N, int M, DateTime D) { Name = N; Mark = M; Date = D; } public Exam() { Name = ""; Mark = 0; Date = new DateTime(1990,1,1); } public override string ToString() { return Name + " " + Mark.ToString() + " " + Date.ToShortDateString(); } public virtual object DeepCopy() { Exam e = new Exam(Name, Mark, Date); return (object)e; } } }
unlicense