code
stringlengths 3
10M
| language
stringclasses 31
values |
|---|---|
struct S1 // overall alignment: max(1, 1) = 1
{
byte[5] bytes;
struct // overall alignment: max(1, 1) = 1
{
byte byte1;
align(1) int int1;
}
}
static assert(S1.int1.offsetof == 6);
static assert(S1.alignof == 1);
static assert(S1.sizeof == 10);
class C2 // overall alignment: max(vtbl.alignof, monitor.alignof, 1, 2)
{
byte[5] bytes;
struct // overall alignment: max(1, 2) = 2
{
byte byte1;
align(2) int int1;
}
}
enum payloadOffset = C2.bytes.offsetof;
static assert(C2.int1.offsetof == payloadOffset + 8);
static assert(C2.alignof == size_t.sizeof);
static assert(__traits(classInstanceSize, C2) == payloadOffset + 12);
|
D
|
/Users/taharahiroki/Documents/GitHub/Enigma_Bitcoin_proto/bip32_proto/target/debug/deps/unicode_xid-b4ac5b8e132ceaf0.rmeta: /Users/taharahiroki/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.0/src/lib.rs /Users/taharahiroki/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.0/src/tables.rs
/Users/taharahiroki/Documents/GitHub/Enigma_Bitcoin_proto/bip32_proto/target/debug/deps/libunicode_xid-b4ac5b8e132ceaf0.rlib: /Users/taharahiroki/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.0/src/lib.rs /Users/taharahiroki/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.0/src/tables.rs
/Users/taharahiroki/Documents/GitHub/Enigma_Bitcoin_proto/bip32_proto/target/debug/deps/unicode_xid-b4ac5b8e132ceaf0.d: /Users/taharahiroki/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.0/src/lib.rs /Users/taharahiroki/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.0/src/tables.rs
/Users/taharahiroki/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.0/src/lib.rs:
/Users/taharahiroki/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.0/src/tables.rs:
|
D
|
/*
* Copyright 2019 Google LLC
* Copyright 2022 Coverify Systems Technology
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//-----------------------------------------------------------------------------
// Processor feature configuration
//-----------------------------------------------------------------------------
// XLEN
module riscv.gen.target.rv32i.riscv_core_setting;
import riscv.gen.riscv_instr_pkg: satp_mode_t, privileged_mode_t,
riscv_instr_name_t, mtvec_mode_t, interrupt_cause_t,
exception_cause_t, riscv_instr_group_t, privileged_reg_t;
import esdl: ubvec, flog2;
enum int XLEN = 32;
// Enum for SATP mode, set to BARE if address translation is not supported
enum satp_mode_t SATP_MODE = satp_mode_t.BARE;
// Supported Privileged mode
privileged_mode_t[] supported_privileged_mode = [privileged_mode_t.MACHINE_MODE];
// Unsupported instructions
riscv_instr_name_t[] unsupported_instr = [];
// ISA supported by the processor
riscv_instr_group_t[] supported_isa = [riscv_instr_group_t.RV32I];
// Interrupt mode support
mtvec_mode_t[] supported_interrupt_mode = [mtvec_mode_t.DIRECT, mtvec_mode_t.VECTORED];
// The number of interrupt vectors to be generated, only used if VECTORED interrupt mode is
// supported
int max_interrupt_vector_num = 16;
// Physical memory protection support
enum bool support_pmp = false;
// Debug mode support
enum bool support_debug_mode = false;
// Support delegate trap to user mode
enum bool support_umode_trap = false;
// Support sfence.vma instruction
enum bool support_sfence = false;
// Support unaligned load/store
enum bool support_unaligned_load_store = true;
// GPR setting
enum int NUM_FLOAT_GPR = 32;
enum int NUM_GPR = 32;
enum int NUM_VEC_GPR = 32;
// ----------------------------------------------------------------------------
// Vector extension configuration
// ----------------------------------------------------------------------------
// Enum for vector extension
enum int VECTOR_EXTENSION_ENABLE = 0;
enum int VLEN = 512;
// Maximum size of a single vector element
enum int ELEN = 32;
// Minimum size of a sub-element, which must be at most 8-bits.
enum int SELEN = 8;
// Maximum size of a single vector element (encoded in vsew format)
enum int VELEN = flog2(ELEN) - 3;
// Maxium LMUL supported by the core
enum int MAX_LMUL = 8;
// ----------------------------------------------------------------------------
// Multi-harts configuration
// ----------------------------------------------------------------------------
// Number of harts
enum int NUM_HARTS = 1;
// ----------------------------------------------------------------------------
// Previleged CSR implementation
// ----------------------------------------------------------------------------
// Implemented previlieged CSR list
enum privileged_reg_t[] implemented_csr = [
// Machine mode mode CSR
privileged_reg_t.MVENDORID, // Vendor ID
privileged_reg_t.MARCHID, // Architecture ID
privileged_reg_t.MIMPID, // Implementation ID
privileged_reg_t.MHARTID, // Hardware thread ID
privileged_reg_t.MSTATUS, // Machine status
privileged_reg_t.MISA, // ISA and extensions
privileged_reg_t.MIE, // Machine interrupt-enable register
privileged_reg_t.MTVEC, // Machine trap-handler base address
privileged_reg_t.MCOUNTEREN, // Machine counter enable
privileged_reg_t.MSCRATCH, // Scratch register for machine trap handlers
privileged_reg_t.MEPC, // Machine exception program counter
privileged_reg_t.MCAUSE, // Machine trap cause
privileged_reg_t.MTVAL, // Machine bad address or instruction
privileged_reg_t.MIP // Machine interrupt pending
];
// Implementation-specific custom CSRs
ubvec!12[] custom_csr= [];
// ----------------------------------------------------------------------------
// Supported interrupt/exception setting, used for functional coverage
// ----------------------------------------------------------------------------
enum interrupt_cause_t[] implemented_interrupt = [ interrupt_cause_t.M_SOFTWARE_INTR,
interrupt_cause_t.M_TIMER_INTR,
interrupt_cause_t.M_EXTERNAL_INTR
];
enum exception_cause_t[] implemented_exception = [
exception_cause_t.INSTRUCTION_ACCESS_FAULT,
exception_cause_t.ILLEGAL_INSTRUCTION,
exception_cause_t.BREAKPOINT,
exception_cause_t.LOAD_ADDRESS_MISALIGNED,
exception_cause_t.LOAD_ACCESS_FAULT,
exception_cause_t.ECALL_MMODE
];
|
D
|
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/SHA1.swift.o : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/SHA1.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/Base64.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketOpcode.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketFrame.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketUpgrader.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketFrameDecoder.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketFrameEncoder.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketProtocolErrorHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketErrorCodes.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/SHA1~partial.swiftmodule : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/SHA1.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/Base64.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketOpcode.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketFrame.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketUpgrader.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketFrameDecoder.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketFrameEncoder.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketProtocolErrorHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketErrorCodes.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/SHA1~partial.swiftdoc : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/SHA1.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/Base64.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketOpcode.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketFrame.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketUpgrader.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketFrameDecoder.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketFrameEncoder.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketProtocolErrorHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIOWebSocket/WebSocketErrorCodes.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
|
D
|
module ivy.lexer.consts;
static immutable mixedBlockBegin = "{*";
static immutable mixedBlockEnd = "*}";
static immutable commentBlockBegin = "{#";
static immutable commentBlockEnd = "#}";
static immutable dataBlockBegin = `{"`;
static immutable dataBlockEnd = `"}`;
static immutable exprBlockBegin = `{{`;
static immutable exprBlockEnd = `}}`;
static immutable codeBlockBegin = `{=`;
static immutable codeListBegin = `{%`;
enum LexemeType {
Unknown = 0,
Add,
Assign,
Colon,
Comma,
Div,
Dot,
Equal,
GT,
GTEqual,
LBrace,
LBracket,
LParen,
LT,
LTEqual,
DoubleMod,
Mod,
Mul,
NotEqual,
Pipe,
Pow,
RBrace,
RBracket,
RParen,
Semicolon,
Sub,
Tilde,
Integer,
Float,
String,
Name,
ExprBlockBegin,
ExprBlockEnd,
CodeBlockBegin,
CodeListBegin,
MixedBlockBegin,
MixedBlockEnd,
Comment,
Data,
DataBlock,
Invalid,
EndOfFile,
CoreTypesEnd,
ExtensionTypesStart = 100,
CodeBlockEnd = LexemeType.RBrace,
CodeListEnd = LexemeType.RBrace
}
enum LexemeFlag: uint
{
None = 0,
Literal = 1 << 0,
Dynamic = 1 << 1,
Operator = 1 << 2,
Paren = 1 << 3,
Left = 1 << 4,
Right = 1 << 5,
Arithmetic = 1 << 6,
Compare = 1 << 7,
Separator = 1 << 8
}
enum ContextState
{
CodeContext,
MixedContext
}
|
D
|
import dli;
import std.string;
void main()
{
writeln("Welcome to the dli demo.");
string username;
while(!request("What is your name? ", &username, (string s){return !s.empty;}))
writeln("Sorry, but I need your name to proceed");
writeln("It's a pleasure, " ~ username ~ ".");
auto mainMenu = createIndexMenu();
mainMenu.welcomeMsg = "Welcome to the demo menu. Please, choose an option below:";
mainMenu.onExit = {writeln("We hope you enjoyed the demo!");};
mainMenu.addItem(
new MenuItem(
"Write \"Hello world!\"",
{writeln("Hello world!");}
)
);
mainMenu.addItem(
new MenuItem(
"Change item printing style to something fancy",
{mainMenu.itemPrintFormat = "[%item_key%] => %item_text%";}
)
);
mainMenu.addItem(
new MenuItem(
"Change item printing style to something simple",
{mainMenu.itemPrintFormat = "%item_key% - %item_text%";}
)
);
auto uselessItem = new MenuItem("I do nothing", {});
mainMenu.addItem(uselessItem);
mainMenu.addItem(
new MenuItem(
"Toggle useless item",
{uselessItem.enabled = !uselessItem.enabled;}
)
);
// Show user input features
{
auto nestedMenu = createIndexMenu();
nestedMenu.welcomeMsg = "Have a look at input support:";
nestedMenu.addItem(
new MenuItem(
"Request a number",
{
float myFloat;
while(!request("Please, input an number: ", &myFloat))
writeln("That is not a valid number.");
writeln(format("Thanks for your number %s.", myFloat));
}
)
);
nestedMenu.addItem(
new MenuItem(
"Request an even integer",
{
int myEvenInt;
while(!request("Please, input an even integer: ", &myEvenInt,
(int myInt){return myInt % 2 == 0;}))
writeln("That is not an even integer.");
writeln(format("Thanks for the even integer %s", myEvenInt));
}
)
);
nestedMenu.addItem(
new MenuItem(
"Request a character",
{
dchar myChar;
while(!request("Please, input a character: ", &myChar))
writeln("That is not a character. Just press a key and then ENTER, please.");
writeln(format("Thanks for your character %s.", myChar));
}
)
);
nestedMenu.exitMenuItemDisplayString = "Exit this nested menu";
mainMenu.addItem(
new NestedMenuMenuItem(nestedMenu, "Open input demo nested menu")
);
}
bool topLevelExitEnabled = true;
mainMenu.addItem(
new MenuItem(
"Enable/disable the item to exit this menu",
{
topLevelExitEnabled = !topLevelExitEnabled;
mainMenu.exitMenuItemEnabled = topLevelExitEnabled;
writeln(topLevelExitEnabled ?
"Exit menu item enabled. But you really don't have to leave!" :
"Exit menu item disabled. Now you belong here forever! >:D"
);
}
)
);
mainMenu.run();
}
|
D
|
module org.restlet.ext.gson;
public import org.restlet.ext.gson.GsonConverter;
public import org.restlet.ext.gson.GsonRepresentation;
|
D
|
/*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module glib.gqueue;
import glib.gtypes;
import glib.glist;
struct GQueue
{
GList *head;
GList *tail;
guint length;
}
// #define G_QUEUE_INIT { NULL, NULL, 0 }
extern (C) {
GQueue* g_queue_new ();
void g_queue_free (GQueue *queue);
void g_queue_free_full (GQueue *queue,
GDestroyNotify free_func);
void g_queue_init (GQueue *queue);
void g_queue_clear (GQueue *queue);
gboolean g_queue_is_empty (GQueue *queue);
guint g_queue_get_length (GQueue *queue);
void g_queue_reverse (GQueue *queue);
GQueue * g_queue_copy (GQueue *queue);
void g_queue_foreach (GQueue *queue,
GFunc func,
gpointer user_data);
GList * g_queue_find (GQueue *queue,
gconstpointer data);
GList * g_queue_find_custom (GQueue *queue,
gconstpointer data,
GCompareFunc func);
void g_queue_sort (GQueue *queue,
GCompareDataFunc compare_func,
gpointer user_data);
void g_queue_push_head (GQueue *queue,
gpointer data);
void g_queue_push_tail (GQueue *queue,
gpointer data);
void g_queue_push_nth (GQueue *queue,
gpointer data,
gint n);
gpointer g_queue_pop_head (GQueue *queue);
gpointer g_queue_pop_tail (GQueue *queue);
gpointer g_queue_pop_nth (GQueue *queue,
guint n);
gpointer g_queue_peek_head (GQueue *queue);
gpointer g_queue_peek_tail (GQueue *queue);
gpointer g_queue_peek_nth (GQueue *queue,
guint n);
gint g_queue_index (GQueue *queue,
gconstpointer data);
gboolean g_queue_remove (GQueue *queue,
gconstpointer data);
guint g_queue_remove_all (GQueue *queue,
gconstpointer data);
void g_queue_insert_before (GQueue *queue,
GList *sibling,
gpointer data);
void g_queue_insert_after (GQueue *queue,
GList *sibling,
gpointer data);
void g_queue_insert_sorted (GQueue *queue,
gpointer data,
GCompareDataFunc func,
gpointer user_data);
void g_queue_push_head_link (GQueue *queue,
GList *link_);
void g_queue_push_tail_link (GQueue *queue,
GList *link_);
void g_queue_push_nth_link (GQueue *queue,
gint n,
GList *link_);
GList* g_queue_pop_head_link (GQueue *queue);
GList* g_queue_pop_tail_link (GQueue *queue);
GList* g_queue_pop_nth_link (GQueue *queue,
guint n);
GList* g_queue_peek_head_link (GQueue *queue);
GList* g_queue_peek_tail_link (GQueue *queue);
GList* g_queue_peek_nth_link (GQueue *queue,
guint n);
gint g_queue_link_index (GQueue *queue,
GList *link_);
void g_queue_unlink (GQueue *queue,
GList *link_);
void g_queue_delete_link (GQueue *queue,
GList *link_);
}
|
D
|
module t.hashid;
import std.stdio, std.exception;
unittest {
string bs10 = "0123456789";
string bs16 = "0123456789abcdef";
string bs62 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
assert(encode(7,bs10) == "7");
assert(encode(7,bs16) == "7");
assert(encode(12, bs16) == "c");
assert(encode(255, bs16) == "ff");
assert(encode(1234, bs16) == "4d2");
}
string encode(uint input, string alps)
{
string hash = "";
uint l = cast(uint) alps.length;
do {
hash = alps[input % l] ~ hash;
input = input/l ;
} while(input);
return hash;
}
unittest {
}
string FYshuffle(string alps, string salt)
in {
assert(alps.length < 128);
}
body {
uint j,v,p;
char tmp, charCode;
char[] wkstr = alps.dup;
ulong i = cast(uint) alps.length-1;
for(; i>0; i--, p++) {
v %= salt.length;
p += charCode = salt[v];
j = (charCode+v+p)%i;
tmp = wkstr[j];
wkstr = wkstr[0..j] ~ wkstr[i] ~ wkstr[j+1..$];
wkstr = wkstr[0..i] ~ tmp ~ wkstr[i+1..$];
}
return assumeUnique(wkstr);
}
struct Hashids
{
static string ALPHABET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
static int minAlphabetLength = 16;
private:
string salt;
uint minHashLength;
string alphabet;
this(string salt, uint minHashLength, string alphabet)
{
enforce(alphabet.length > minAlphabetLength, "error: alphabet must contain at least 16 unique characters");
salt = salt;
minHashLength = minHashLength;
alphabet = alphabet;
}
this(string salt)
{
this(salt, 0, Hashids.ALPHABET);
}
}
|
D
|
module dinu;
public import
core.thread,
core.sys.posix.sys.stat,
std.conv,
std.uni,
std.regex,
std.process,
std.parallelism,
std.string,
std.array,
std.algorithm,
std.stdio,
std.file,
std.path,
std.stream,
std.math,
std.datetime,
x11.X,
x11.Xlib,
x11.Xutil,
x11.extensions.Xrender,
x11.extensions.Xinerama,
x11.keysymdef,
ws.x.desktop,
ws.context,
ws.math.vector,
ws.bindings.xft,
dinu.main,
dinu.window,
dinu.mainWindow,
dinu.draw,
dinu.filter,
dinu.cli,
dinu.animation,
dinu.resultWindow,
dinu.misc,
dinu.commandBuilder,
dinu.command.command,
dinu.command.desktop,
dinu.command.dir,
dinu.command.exec,
dinu.command.file,
dinu.command.history,
dinu.command.output,
dinu.command.special,
dinu.command.talkProcess,
dinu.command.bashCompletion,
dinu.loader.choiceLoader,
dinu.loader.executables,
dinu.loader.files,
dinu.loader.output,
dinu.loader.talkProcess;
|
D
|
ipaddress=192.168.69.3
netmask=255.255.255.0
|
D
|
/**
* Contains the implementation for object monitors.
*
* Copyright: Copyright Digital Mars 2000 - 2015.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Walter Bright, Sean Kelly, Martin Nowak
*/
module rt.monitor_;
import core.atomic, core.stdc.stdlib, core.stdc.string;
// NOTE: The dtor callback feature is only supported for monitors that are not
// supplied by the user. The assumption is that any object with a user-
// supplied monitor may have special storage or lifetime requirements and
// that as a result, storing references to local objects within Monitor
// may not be safe or desirable. Thus, devt is only valid if impl is
// null.
extern (C) void _d_setSameMutex(shared Object ownee, shared Object owner) nothrow
in
{
assert(ownee.__monitor is null);
}
do
{
auto m = ensureMonitor(cast(Object) owner);
auto i = m.impl;
if (i is null)
{
atomicOp!("+=")(m.refs, cast(size_t) 1);
ownee.__monitor = owner.__monitor;
return;
}
// If m.impl is set (ie. if this is a user-created monitor), assume
// the monitor is garbage collected and simply copy the reference.
ownee.__monitor = owner.__monitor;
}
extern (C) void _d_monitordelete(Object h, bool det)
{
auto m = getMonitor(h);
if (m is null)
return;
if (m.impl)
{
// let the GC collect the monitor
setMonitor(h, null);
}
else if (!atomicOp!("-=")(m.refs, cast(size_t) 1))
{
// refcount == 0 means unshared => no synchronization required
disposeEvent(cast(Monitor*) m, h);
deleteMonitor(cast(Monitor*) m);
setMonitor(h, null);
}
}
// does not call dispose events, for internal use only
extern (C) void _d_monitordelete_nogc(Object h) @nogc
{
auto m = getMonitor(h);
if (m is null)
return;
if (m.impl)
{
// let the GC collect the monitor
setMonitor(h, null);
}
else if (!atomicOp!("-=")(m.refs, cast(size_t) 1))
{
// refcount == 0 means unshared => no synchronization required
deleteMonitor(cast(Monitor*) m);
setMonitor(h, null);
}
}
extern (C) void _d_monitorenter(Object h)
in
{
assert(h !is null, "Synchronized object must not be null.");
}
do
{
auto m = cast(Monitor*) ensureMonitor(h);
auto i = m.impl;
if (i is null)
lockMutex(&m.mtx);
else
i.lock();
}
extern (C) void _d_monitorexit(Object h)
{
auto m = cast(Monitor*) getMonitor(h);
auto i = m.impl;
if (i is null)
unlockMutex(&m.mtx);
else
i.unlock();
}
extern (C) void rt_attachDisposeEvent(Object h, DEvent e)
{
synchronized (h)
{
auto m = cast(Monitor*) getMonitor(h);
assert(m.impl is null);
foreach (ref v; m.devt)
{
if (v is null || v == e)
{
v = e;
return;
}
}
auto len = m.devt.length + 4; // grow by 4 elements
auto pos = m.devt.length; // insert position
auto p = realloc(m.devt.ptr, DEvent.sizeof * len);
import core.exception : onOutOfMemoryError;
if (!p)
onOutOfMemoryError();
m.devt = (cast(DEvent*) p)[0 .. len];
m.devt[pos + 1 .. len] = null;
m.devt[pos] = e;
}
}
extern (C) void rt_detachDisposeEvent(Object h, DEvent e)
{
synchronized (h)
{
auto m = cast(Monitor*) getMonitor(h);
assert(m.impl is null);
foreach (p, v; m.devt)
{
if (v == e)
{
memmove(&m.devt[p], &m.devt[p + 1], (m.devt.length - p - 1) * DEvent.sizeof);
m.devt[$ - 1] = null;
return;
}
}
}
}
nothrow:
extern (C) void _d_monitor_staticctor()
{
version (Posix)
{
pthread_mutexattr_init(&gattr);
pthread_mutexattr_settype(&gattr, PTHREAD_MUTEX_RECURSIVE);
}
initMutex(&gmtx);
}
extern (C) void _d_monitor_staticdtor()
{
destroyMutex(&gmtx);
version (Posix)
pthread_mutexattr_destroy(&gattr);
}
package:
// This is what the monitor reference in Object points to
alias IMonitor = Object.Monitor;
alias DEvent = void delegate(Object);
version (Windows)
{
version (CRuntime_DigitalMars)
{
pragma(lib, "snn.lib");
}
import core.sys.windows.winbase /+: CRITICAL_SECTION, DeleteCriticalSection,
EnterCriticalSection, InitializeCriticalSection, LeaveCriticalSection+/;
alias Mutex = CRITICAL_SECTION;
alias initMutex = InitializeCriticalSection;
alias destroyMutex = DeleteCriticalSection;
alias lockMutex = EnterCriticalSection;
alias unlockMutex = LeaveCriticalSection;
}
else version (Posix)
{
import core.sys.posix.pthread;
@nogc:
alias Mutex = pthread_mutex_t;
__gshared pthread_mutexattr_t gattr;
void initMutex(pthread_mutex_t* mtx)
{
pthread_mutex_init(mtx, &gattr) && assert(0);
}
void destroyMutex(pthread_mutex_t* mtx)
{
pthread_mutex_destroy(mtx) && assert(0);
}
void lockMutex(pthread_mutex_t* mtx)
{
pthread_mutex_lock(mtx) && assert(0);
}
void unlockMutex(pthread_mutex_t* mtx)
{
pthread_mutex_unlock(mtx) && assert(0);
}
}
else version (WebAssembly) {
struct Mutex {}
@nogc:
void initMutex(Mutex* mtx)
{
}
void destroyMutex(Mutex* mtx)
{
}
void lockMutex(Mutex* mtx)
{
}
void unlockMutex(Mutex* mtx)
{
}
}
else
{
static assert(0, "Unsupported platform");
}
struct Monitor
{
IMonitor impl; // for user-level monitors
DEvent[] devt; // for internal monitors
size_t refs; // reference count
Mutex mtx;
}
private:
@property ref shared(Monitor*) monitor(Object h) pure nothrow @nogc
{
return *cast(shared Monitor**)&h.__monitor;
}
private shared(Monitor)* getMonitor(Object h) pure @nogc
{
return atomicLoad!(MemoryOrder.acq)(h.monitor);
}
void setMonitor(Object h, shared(Monitor)* m) pure @nogc
{
atomicStore!(MemoryOrder.rel)(h.monitor, m);
}
__gshared Mutex gmtx;
shared(Monitor)* ensureMonitor(Object h)
{
if (auto m = getMonitor(h))
return m;
auto m = cast(Monitor*) calloc(Monitor.sizeof, 1);
assert(m);
initMutex(&m.mtx);
bool success;
lockMutex(&gmtx);
if (getMonitor(h) is null)
{
m.refs = 1;
setMonitor(h, cast(shared) m);
success = true;
}
unlockMutex(&gmtx);
if (success)
{
// Set the finalize bit so that the monitor gets collected (Bugzilla 14573)
import core.memory : GC;
if (!(typeid(h).m_flags & TypeInfo_Class.ClassFlags.hasDtor))
GC.setAttr(cast(void*) h, GC.BlkAttr.FINALIZE);
return cast(shared(Monitor)*) m;
}
else // another thread succeeded instead
{
deleteMonitor(m);
return getMonitor(h);
}
}
void deleteMonitor(Monitor* m) @nogc
{
destroyMutex(&m.mtx);
free(m);
}
void disposeEvent(Monitor* m, Object h)
{
foreach (v; m.devt)
{
if (v)
v(h);
}
if (m.devt.ptr)
free(m.devt.ptr);
}
// Bugzilla 14573
unittest
{
import core.memory : GC;
auto obj = new Object;
assert(!(GC.getAttr(cast(void*) obj) & GC.BlkAttr.FINALIZE));
ensureMonitor(obj);
assert(getMonitor(obj) !is null);
assert(GC.getAttr(cast(void*) obj) & GC.BlkAttr.FINALIZE);
}
|
D
|
/*****************************************************************************
*
* Higgs JavaScript Virtual Machine
*
* This file is part of the Higgs project. The project is distributed at:
* https://github.com/maximecb/Higgs
*
* Copyright (c) 2012-2013, Maxime Chevalier-Boisvert. All rights reserved.
*
* This software is licensed under the following license (Modified BSD
* License):
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*****************************************************************************/
module jit.x86;
import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.stdint;
import std.bitmanip;
import std.algorithm;
import jit.codeblock;
// Number of x86 registers
const NUM_REGS = 16;
/**
Representation of an x86 register
*/
struct X86Reg
{
alias uint8_t Type;
enum : Type
{
GP,
FP,
XMM,
IP
}
/// Register type
uint8_t type;
/// Register index number
uint8_t regNo;
/// Size in bits
uint16_t size;
this(Type type, size_t regNo, size_t size)
{
assert (
regNo < NUM_REGS,
"invalid register number"
);
assert (
size <= 256,
"invalid register size"
);
this.type = type;
this.regNo = cast(uint8_t)regNo;
this.size = cast(uint16_t)size;
}
/**
Get a register with the same type and register number
but a potentially different size
*/
X86Reg reg(size_t numBits = 0) const
{
if (numBits is 0 || numBits is this.size)
return this;
return X86Reg(this.type, this.regNo, numBits);
}
/**
Get an operand object for a register of the requested size
*/
X86Opnd opnd(size_t numBits = 0) const
{
return X86Opnd(reg(numBits));
}
/**
Produce a string representation of the register
*/
string toString() const
{
switch (type)
{
case GP:
if (regNo < 8)
{
auto rs = "";
final switch (regNo)
{
case 0: rs = "a"; break;
case 1: rs = "c"; break;
case 2: rs = "d"; break;
case 3: rs = "b"; break;
case 4: rs = "sp"; break;
case 5: rs = "bp"; break;
case 6: rs = "si"; break;
case 7: rs = "di"; break;
}
final switch (size)
{
case 8 : return rs ~ "l";
case 16: return (rs.length == 1)? (rs ~ "x"):rs;
case 32: return (rs.length == 1)? ("e" ~ rs ~ "x"):("e" ~ rs);
case 64: return (rs.length == 1)? ("r" ~ rs ~ "x"):("r" ~ rs);
}
}
else
{
final switch (size)
{
case 8 : return "r" ~ to!string(regNo) ~ "l";
case 16: return "r" ~ to!string(regNo) ~ "w";
case 32: return "r" ~ to!string(regNo) ~ "d";
case 64: return "r" ~ to!string(regNo);
}
}
assert (false);
case XMM:
return "xmm" ~ to!string(regNo);
case FP:
return "st" ~ to!string(regNo);
case IP:
return "rip";
default:
assert (false);
}
}
/**
Comparison operator
*/
bool opEquals(immutable X86Reg that) const
{
return (
this.type == that.type &&
this.regNo == that.regNo &&
this.size == that.size
);
}
/**
Test if the REX prefix is needed to encode this operand
*/
bool rexNeeded() const
{
return (
regNo > 7 ||
(size == 8 && regNo >= 4 && regNo <= 7)
);
}
}
// Auto-generate named register constants
string genRegCsts()
{
auto decls = appender!string();
void genCst(ubyte type, string typeStr, ubyte regNo, ubyte numBits)
{
auto regName = (new X86Reg(type, regNo, numBits)).toString();
auto upName = regName.toUpper();
decls.put(
"immutable X86Reg " ~ upName ~ " = X86Reg(" ~ typeStr ~ ", " ~
to!string(regNo) ~ ", " ~ to!string(numBits) ~ ");\n"
);
}
for (ubyte regNo = 0; regNo < NUM_REGS; ++regNo)
{
genCst(X86Reg.GP, "X86Reg.GP", regNo, 8);
genCst(X86Reg.GP, "X86Reg.GP", regNo, 16);
genCst(X86Reg.GP, "X86Reg.GP", regNo, 32);
genCst(X86Reg.GP, "X86Reg.GP", regNo, 64);
genCst(X86Reg.XMM, "X86Reg.XMM", regNo, 128);
}
// Instruction pointer (RIP)
genCst(X86Reg.IP, "X86Reg.IP", 5, 64);
// Floating-point registers (x87)
genCst(X86Reg.FP, "X86Reg.FP", 0, 80);
return decls.data;
}
mixin(genRegCsts());
unittest
{
X86Reg r = EAX;
assert (r == EAX && EAX == EAX && EAX != EBX);
}
/**
Immediate operand value (constant)
*/
struct X86Imm
{
union
{
// Signed immediate value
int64_t imm;
// Unsigned immediate value
uint64_t unsgImm;
}
/**
Create an immediate operand
*/
this(int64_t imm)
{
this.imm = imm;
}
/**
Create a pointer constant
*/
this(void* ptr)
{
this.unsgImm = cast(uint64_t)ptr;
}
string toString() const
{
return to!string(this.imm);
}
/**
Compute the immediate value size
*/
size_t immSize() const
{
// Compute the smallest size this immediate fits in
if (imm >= int8_t.min && imm <= int8_t.max)
return 8;
if (imm >= int16_t.min && imm <= int16_t.max)
return 16;
if (imm >= int32_t.min && imm <= int32_t.max)
return 32;
return 64;
}
/**
Immediate value size if treated as unsigned
*/
size_t unsgSize() const
{
if (unsgImm <= uint8_t.max)
return 8;
else if (unsgImm <= uint16_t.max)
return 16;
else if (unsgImm <= uint32_t.max)
return 32;
return 64;
}
}
/**
Memory location operand
Note: we assume that the base and index are both 64-bit registers
and that the memory operand always has a base register.
*/
struct X86Mem
{
// Bit field for compact encoding
mixin(bitfields!(
/// Memory location size
uint, "size" , 10,
/// Base register number
uint, "baseRegNo", 4,
/// Index register number
uint, "idxRegNo" , 4,
/// SIB scale exponent value (power of two)
uint, "scaleExp" , 2,
/// Has index register flag
bool, "hasIdx" , 1,
/// IP-relative addressing flag
bool, "isIPRel" , 1,
/// Padding bits
uint, "", 10
));
/// Constant displacement from the base, not scaled
int32_t disp;
this(
size_t size,
X86Reg base,
int64_t disp = 0,
size_t scale = 0,
X86Reg index = RAX,
)
{
assert (
base.size is 64 &&
index.size is 64,
"base and index must be 64-bit registers"
);
assert (
disp >= int32_t.min && disp <= int32_t.max,
"disp value out of bounds"
);
this.size = cast(uint8_t)size;
this.baseRegNo = base.regNo;
this.disp = cast(int32_t)disp;
this.idxRegNo = index.regNo;
this.hasIdx = scale !is 0;
this.isIPRel = base.type is X86Reg.IP;
switch (scale)
{
case 0: break;
case 1: this.scaleExp = 0; break;
case 2: this.scaleExp = 1; break;
case 4: this.scaleExp = 2; break;
case 8: this.scaleExp = 3; break;
default: assert (false);
}
}
string toString() const
{
return toString(this.disp/*, null*/);
}
string toString(int32_t disp/*, const Label label*/) const
{
auto str = "";
/*
assert (
!(label && this.base != RIP),
"label provided when base is not RIP"
);
*/
switch (this.size)
{
case 8: str ~= "byte"; break;
case 16: str ~= "word"; break;
case 32: str ~= "dword"; break;
case 64: str ~= "qword"; break;
case 128: str ~= "oword"; break;
default:
assert (false, "unknown operand size");
}
if (str != "")
str ~= " ";
str ~= X86Reg(isIPRel? X86Reg.IP:X86Reg.GP, this.baseRegNo, 64).toString();
/*
if (label)
{
if (str != "")
str ~= " ";
str ~= label.name;
}
*/
if (disp)
{
if (str != "")
{
if (disp < 0)
str ~= " - " ~ to!string(-disp);
else
str ~= " + " ~ to!string(disp);
}
else
{
str ~= disp;
}
}
if (this.hasIdx)
{
if (str != "")
str ~= " + ";
if (this.scaleExp !is 0)
str ~= to!string(1 << this.scaleExp) ~ " * ";
str ~= X86Reg(X86Reg.GP, this.idxRegNo, 64).toString();
}
return '[' ~ str ~ ']';
}
/**
Test if the REX prefix is needed to encode this operand
*/
bool rexNeeded() const
{
return (baseRegNo > 7) || (hasIdx && idxRegNo > 7);
}
/**
Test if an SIB byte is needed to encode this operand
*/
bool sibNeeded() const
{
return (
this.hasIdx ||
this.baseRegNo == ESP.regNo ||
this.baseRegNo == RSP.regNo ||
this.baseRegNo == R12.regNo
);
}
/**
Compute the size of the displacement field needed
*/
size_t dispSize() const
{
// If using RIP as the base, use disp32
if (isIPRel)
return 32;
// Compute the required displacement size
if (disp != 0)
{
if (disp >= int8_t.min && disp <= int8_t.max)
return 8;
if (disp >= int32_t.min && disp <= int32_t.max)
return 32;
assert (false, "displacement does not fit in 32 bits: " ~ to!string(disp));
}
// If EBP or RBP or R13 is used as the base, displacement must be encoded
if (baseRegNo == EBP.regNo || baseRegNo == RBP.regNo || baseRegNo == R13.regNo)
return 8;
return 0;
}
}
/**
IP-relative memory location
*/
// TODO: reimplement without inheritance, when needed
// just store an X86Mem inside
// or modify X86Mem to support IP-relative mode
/*
class X86IPRel : X86Mem
{
/// Label to use as a reference
Label label;
/// Additional displacement relative to the label
int32_t labelDisp;
this(
size_t size,
Label label,
int32_t disp = 0,
X86Reg index = null,
size_t scale = 1
)
{
super(size, RIP, disp, index, scale);
this.label = label;
this.labelDisp = disp;
}
override string toString() const
{
return super.toString(this.labelDisp, this.label);
}
}
*/
/**
Polymorphic X86 operand wrapper
*/
struct X86Opnd
{
union
{
X86Reg reg;
X86Imm imm;
X86Mem mem;
}
enum Kind : uint8_t
{
NONE,
REG,
IMM,
MEM,
IPREL
}
Kind kind;
static immutable X86Opnd NONE = X86Opnd(Kind.NONE);
this(Kind k) { assert (k is Kind.NONE); kind = k; }
this(X86Reg r) { reg = r; kind = Kind.REG; }
this(X86Imm i) { imm = i; kind = Kind.IMM; }
this(X86Mem m) { mem = m; kind = Kind.MEM; }
/// Memory operand constructor
this(
size_t size,
X86Reg base,
int64_t disp = 0,
size_t scale = 0,
X86Reg index = RAX,
)
{
this(X86Mem(size, base, disp, scale, index));
}
/// Immediate constructor
this(int64_t i) { imm = X86Imm(i); kind = Kind.IMM; }
string toString() const
{
switch (kind)
{
case Kind.REG: return reg.toString();
case Kind.IMM: return imm.toString();
case Kind.MEM: return mem.toString();
default:
assert (false);
}
}
bool isNone() const { return kind is Kind.NONE; }
bool isReg() const { return kind is Kind.REG; }
bool isImm() const { return kind is Kind.IMM; }
bool isMem() const { return kind is Kind.MEM; }
bool isXMM() const { return kind is Kind.REG && reg.type is X86Reg.XMM; }
bool isGPR() const { return kind is Kind.REG && reg.type is X86Reg.GP; }
bool isGPR32() const { return isGPR && reg.size is 32; }
bool isGPR64() const { return isGPR && reg.size is 64; }
bool isMem32() const { return isMem && mem.size is 32; }
bool isMem64() const { return isMem && mem.size is 64; }
bool rexNeeded()
{
return (kind is Kind.REG && reg.rexNeeded) || (kind is Kind.MEM && mem.rexNeeded);
}
bool sibNeeded()
{
return (kind is Kind.MEM && mem.sibNeeded);
}
}
/**
Write the REX byte
*/
void writeREX(
CodeBlock cb,
bool wFlag,
uint8_t regNo,
uint8_t idxRegNo = 0,
uint8_t rmRegNo = 0
)
{
// 0 1 0 0 w r x b
// w - 64-bit operand size flag
// r - MODRM.reg extension
// x - SIB.index extension
// b - MODRM.rm or SIB.base extension
auto w = wFlag? 1:0;
auto r = (regNo & 8)? 1:0;
auto x = (idxRegNo & 8)? 1:0;
auto b = (rmRegNo & 8)? 1:0;
// Encode and write the REX byte
auto rexByte = 0x40 + (w << 3) + (r << 2) + (x << 1) + (b);
cb.writeByte(cast(byte)rexByte);
}
/**
Write an opcode byte with an embedded register operand
*/
void writeOpcode(CodeBlock cb, ubyte opcode, X86Reg rOpnd)
{
// Write the reg field into the opcode byte
uint8_t opByte = opcode | (rOpnd.regNo & 7);
cb.writeByte(opByte);
}
/**
Encode a single operand RM instruction
*/
void writeRMInstr(
char rmOpnd,
ubyte opExt,
opcode...)
(CodeBlock cb, bool szPref, bool rexW, X86Opnd opnd0, X86Opnd opnd1)
{
static assert (opcode.length > 0 && opcode.length <= 3);
// Flag to indicate the REX prefix is needed
bool rexNeeded = rexW || opnd0.rexNeeded || opnd1.rexNeeded;
// Flag to indicate SIB byte is needed
bool sibNeeded = opnd0.sibNeeded || opnd1.sibNeeded;
// r and r/m operands
X86Reg* rOpnd = null;
X86Mem* rmOpndM = null;
X86Reg* rmOpndR = null;
switch (opnd0.kind)
{
case X86Opnd.Kind.REG:
if (rmOpnd is 'l')
rmOpndR = &opnd0.reg;
else
rOpnd = &opnd0.reg;
break;
case X86Opnd.Kind.MEM:
if (rmOpnd is 'l')
rmOpndM = &opnd0.mem;
else
assert (false);
break;
default:
assert (false);
}
switch (opnd1.kind)
{
case X86Opnd.Kind.REG:
if (rmOpnd is 'r')
rmOpndR = &opnd1.reg;
else
rOpnd = &opnd1.reg;
break;
case X86Opnd.Kind.MEM:
if (rmOpnd is 'r')
rmOpndM = &opnd1.mem;
else
assert (false, "mem opnd but right-opnd is not r/m");
break;
case X86Opnd.Kind.NONE:
break;
default:
assert (false, "invalid second operand: " ~ opnd1.toString());
}
// Add the operand-size prefix, if needed
if (szPref == true)
cb.writeByte(0x66);
/*
// Write the prefix bytes to the code block
codeBlock.writeBytes(enc.prefix);
*/
// Add the REX prefix, if needed
if (rexNeeded)
{
// 0 1 0 0 w r x b
// w - 64-bit operand size flag
// r - MODRM.reg extension
// x - SIB.index extension
// b - MODRM.rm or SIB.base extension
uint w = rexW? 1:0;
uint r;
if (rOpnd)
r = (rOpnd.regNo & 8)? 1:0;
else
r = 0;
uint x;
if (sibNeeded && rmOpndM.hasIdx)
x = (rmOpndM.idxRegNo & 8)? 1:0;
else
x = 0;
uint b;
if (rmOpndR)
b = (rmOpndR.regNo & 8)? 1:0;
else if (rmOpndM)
b = (rmOpndM.baseRegNo & 8)? 1:0;
else
b = 0;
// Encode and write the REX byte
auto rexByte = 0x40 + (w << 3) + (r << 2) + (x << 1) + (b);
cb.writeByte(cast(byte)rexByte);
}
// Write the opcode bytes to the code block
cb.writeBytes(opcode);
// MODRM.mod (2 bits)
// MODRM.reg (3 bits)
// MODRM.rm (3 bits)
assert (
!(opExt != 0xFF && rOpnd),
"opcode extension and register operand present"
);
// Encode the mod field
int mod;
if (rmOpndR)
{
mod = 3;
}
else
{
if (rmOpndM.dispSize == 0 || rmOpndM.isIPRel)
mod = 0;
else if (rmOpndM.dispSize == 8)
mod = 1;
else if (rmOpndM.dispSize == 32)
mod = 2;
}
// Encode the reg field
int reg;
if (opExt != 0xFF)
reg = opExt;
else if (rOpnd)
reg = rOpnd.regNo & 7;
else
reg = 0;
// Encode the rm field
int rm;
if (rmOpndR)
{
rm = rmOpndR.regNo & 7;
}
else
{
if (sibNeeded)
rm = 4;
else
rm = rmOpndM.baseRegNo & 7;
}
// Encode and write the ModR/M byte
auto rmByte = (mod << 6) + (reg << 3) + (rm);
cb.writeByte(cast(ubyte)rmByte);
//writefln("rmByte: %s", rmByte);
// Add the SIB byte, if needed
if (sibNeeded)
{
// SIB.scale (2 bits)
// SIB.index (3 bits)
// SIB.base (3 bits)
assert (
rmOpndM !is null,
"expected r/m opnd to be mem loc"
);
// Encode the scale value
int scale = rmOpndM.scaleExp;
// Encode the index value
int index;
if (rmOpndM.hasIdx is false)
index = 4;
else
index = rmOpndM.idxRegNo & 7;
// Encode the base register
auto base = rmOpndM.baseRegNo & 7;
// Encode and write the SIB byte
auto sibByte = (scale << 6) + (index << 3) + (base);
cb.writeByte(cast(uint8_t)sibByte);
}
// Add the displacement size
if (rmOpndM && rmOpndM.dispSize != 0)
cb.writeInt(rmOpndM.disp, rmOpndM.dispSize);
}
/**
Encode an add-like RM instruction with multiple possible encodings
*/
void writeRMMulti(
string mnem,
ubyte opMemReg8,
ubyte opMemRegPref,
ubyte opRegMem8,
ubyte opRegMemPref,
ubyte opMemImm8,
ubyte opMemImmSml,
ubyte opMemImmLrg,
ubyte opExtImm
)
(CodeBlock cb, X86Opnd opnd0, X86Opnd opnd1)
{
// Write a disassembly string
if (!opnd1.isNone)
cb.writeASM(mnem, opnd0, opnd1);
else
cb.writeASM(mnem, opnd0);
// Check the size of opnd0
size_t opndSize;
if (opnd0.isReg)
opndSize = opnd0.reg.size;
else if (opnd0.isMem)
opndSize = opnd0.mem.size;
else
assert (false, "invalid first operand for " ~ mnem ~ ": " ~ opnd0.toString());
// Check the size of opnd1
if (opnd1.isReg)
assert (opnd1.reg.size is opndSize, "operand size mismatch");
else if (opnd1.isMem)
assert (opnd1.mem.size is opndSize, "operand size mismatch for " ~ mnem);
else if (opnd1.isImm)
assert (opnd1.imm.immSize <= opndSize, "immediate too large for dst");
assert (opndSize is 8 || opndSize is 16 || opndSize is 32 || opndSize is 64);
auto szPref = opndSize is 16;
auto rexW = opndSize is 64;
// R/M + Reg
if ((opnd0.isMem && opnd1.isReg) ||
(opnd0.isReg && opnd1.isReg))
{
if (opndSize is 8)
cb.writeRMInstr!('l', 0xFF, opMemReg8)(false, false, opnd0, opnd1);
else
cb.writeRMInstr!('l', 0xFF, opMemRegPref)(szPref, rexW, opnd0, opnd1);
}
// Reg + R/M
else if (opnd0.isReg && opnd1.isMem)
{
if (opndSize is 8)
cb.writeRMInstr!('r', 0xFF, opRegMem8)(false, false, opnd0, opnd1);
else
cb.writeRMInstr!('r', 0xFF, opRegMemPref)(szPref, rexW, opnd0, opnd1);
}
// R/M + Imm
else if (opnd1.isImm)
{
auto imm = opnd1.imm;
// 8-bit immediate
if (imm.immSize <= 8)
{
if (opndSize is 8)
cb.writeRMInstr!('l', opExtImm, opMemImm8)(false, false, opnd0, X86Opnd.NONE);
else
cb.writeRMInstr!('l', opExtImm, opMemImmSml)(szPref, rexW, opnd0, X86Opnd.NONE);
cb.writeInt(imm.imm, 8);
}
// 32-bit immediate
else if (imm.immSize <= 32)
{
assert (imm.immSize <= opndSize, "immediate too large for dst");
cb.writeRMInstr!('l', opExtImm, opMemImmLrg)(szPref, rexW, opnd0, X86Opnd.NONE);
cb.writeInt(imm.imm, min(opndSize, 32));
}
// Immediate too large
else
{
assert (false, "immediate value too large");
}
}
// Invalid operands
else
{
assert (
false,
"invalid operand combination for " ~ mnem ~ ":\n" ~
opnd0.toString() ~ "\n" ~
opnd1.toString()
);
}
}
/**
Encode an XMM instruction on 64-bit XMM/M operands
*/
void writeXMM64(
wstring mnem,
ubyte prefix,
ubyte opRegMem0,
ubyte opRegMem1
)
(CodeBlock cb, X86Opnd opnd0, X86Opnd opnd1)
{
// Write a disassembly string
cb.writeASM(mnem, opnd0, opnd1);
assert (
opnd0.isXMM,
"invalid first operand"
);
assert (
opnd1.isXMM || (opnd1.isMem && opnd1.mem.size is 64),
"invalid second operand"
);
static if (prefix != 0xFF)
cb.writeByte(prefix);
cb.writeRMInstr!('r', 0xFF, opRegMem0, opRegMem1)(false, false, opnd0, opnd1);
}
/**
Encode a mul-like single-operand RM instruction
*/
void writeRMUnary(
wstring mnem,
ubyte opMemReg8,
ubyte opMemRegPref,
ubyte opExt
)
(CodeBlock cb, X86Opnd opnd)
{
// Write a disassembly string
cb.writeASM(mnem, opnd);
// Check the size of opnd0
size_t opndSize;
if (opnd.isReg)
opndSize = opnd.reg.size;
else if (opnd.isMem)
opndSize = opnd.mem.size;
else
assert (false, "invalid first operand");
assert (opndSize is 8 || opndSize is 16 || opndSize is 32 || opndSize is 64);
auto szPref = opndSize is 16;
auto rexW = opndSize is 64;
if (opndSize is 8)
cb.writeRMInstr!('l', opExt, opMemReg8)(false, false, opnd, X86Opnd.NONE);
else
cb.writeRMInstr!('l', opExt, opMemRegPref)(szPref, rexW, opnd, X86Opnd.NONE);
}
/// add - Integer addition
alias writeRMMulti!(
"add",
0x00, // opMemReg8
0x01, // opMemRegPref
0x02, // opRegMem8
0x03, // opRegMemPref
0x80, // opMemImm8
0x83, // opMemImmSml
0x81, // opMemImmLrg
0x00 // opExtImm
) add;
/// add - Add with register and immediate operand
void add(CodeBlock as, X86Reg dst, int64_t imm)
{
assert (imm >= int32_t.min && imm <= int32_t.max);
// TODO: optimize encoding
return add(as, X86Opnd(dst), X86Opnd(imm));
}
/// addsd - Add scalar double
alias writeXMM64!(
"addsd",
0xF2, // prefix
0x0F, // opRegMem0
0x58 // opRegMem1
) addsd;
/// and - Bitwise AND
alias writeRMMulti!(
"and",
0x20, // opMemReg8
0x21, // opMemRegPref
0x22, // opRegMem8
0x23, // opRegMemPref
0x80, // opMemImm8
0x83, // opMemImmSml
0x81, // opMemImmLrg
0x04 // opExtImm
) and;
// TODO: relative call encoding
// For this, we will need a patchable 32-bit offset
//Enc(opnds=['rel32'], opcode=[0xE8]),
//void call(Assembler as, BlockVersion???);
/// call - Call to label with 32-bit offset
void call(CodeBlock cb, Label label)
{
cb.writeASM("call", label);
// Write the opcode
cb.writeByte(0xE8);
// Add a reference to the label
cb.addLabelRef(label);
// Relative 32-bit offset to be patched
cb.writeInt(0, 32);
}
/// call - Indirect call with an R/M operand
void call(CodeBlock cb, X86Opnd opnd)
{
cb.writeASM("call", opnd);
cb.writeRMInstr!('l', 2, 0xFF)(false, false, opnd, X86Opnd.NONE);
}
/// call - Indirect call with a register operand
void call(CodeBlock cb, X86Reg reg)
{
cb.writeASM("call", reg);
cb.writeRMInstr!('l', 2, 0xFF)(false, false, X86Opnd(reg), X86Opnd.NONE);
}
/**
Encode a conditional move instruction
*/
void writeCmov(
wstring mnem,
ubyte opcode1)
(CodeBlock cb, X86Reg dst, X86Opnd src)
{
cb.writeASM(mnem, dst, src);
assert (src.isReg || src.isMem);
auto szPref = dst.size is 16;
auto rexW = dst.size is 64;
cb.writeRMInstr!('r', 0xFF, 0x0F, opcode1)(szPref, rexW, X86Opnd(dst), src);
}
/// cmovcc - Conditional move
alias writeCmov!("cmova" , 0x47) cmova;
alias writeCmov!("cmovae" , 0x43) cmovae;
alias writeCmov!("cmovb" , 0x42) cmovb;
alias writeCmov!("cmovbe" , 0x46) cmovbe;
alias writeCmov!("cmovc" , 0x42) cmovc;
alias writeCmov!("cmove" , 0x44) cmove;
alias writeCmov!("cmovg" , 0x4F) cmovg;
alias writeCmov!("cmovge" , 0x4D) cmovge;
alias writeCmov!("cmovl" , 0x4C) cmovl;
alias writeCmov!("cmovle" , 0x4E) cmovle;
alias writeCmov!("cmovna" , 0x46) cmovna;
alias writeCmov!("cmovnae", 0x42) cmovnae;
alias writeCmov!("cmovnb" , 0x43) cmovnb;
alias writeCmov!("cmovnbe", 0x47) cmovnbe;
alias writeCmov!("cmovnc" , 0x43) cmovnc;
alias writeCmov!("cmovne" , 0x45) cmovne;
alias writeCmov!("cmovng" , 0x4E) cmovnge;
alias writeCmov!("cmovnge", 0x4C) cmovnge;
alias writeCmov!("cmovnl" , 0x4D) cmovnl;
alias writeCmov!("cmovnle", 0x4F) cmovnle;
alias writeCmov!("cmovno" , 0x41) cmovno;
alias writeCmov!("cmovnp" , 0x4B) cmovnp;
alias writeCmov!("cmovns" , 0x49) cmovns;
alias writeCmov!("cmovnz" , 0x45) cmovnz;
alias writeCmov!("cmovno" , 0x40) cmovo;
alias writeCmov!("cmovp" , 0x4A) cmovp;
alias writeCmov!("cmovpe" , 0x4A) cmovpe;
alias writeCmov!("cmovpo" , 0x4B) cmovpo;
alias writeCmov!("cmovs" , 0x48) cmovs;
alias writeCmov!("cmovz" , 0x44) cmovz;
/// cmp - Compare and set flags
alias writeRMMulti!(
"cmp",
0x38, // opMemReg8
0x39, // opMemRegPref
0x3A, // opRegMem8
0x3B, // opRegMemPref
0x80, // opMemImm8
0x83, // opMemImmSml
0x81, // opMemImmLrg
0x07 // opExtImm
) cmp;
/// cdq - Convert doubleword to quadword
void cdq(CodeBlock cb)
{
cb.writeASM("cdq");
cb.writeBytes(0x99);
}
/// cqo - Convert quadword to octaword
void cqo(CodeBlock cb)
{
cb.writeASM("cqo");
cb.writeBytes(0x48, 0x99);
}
//// cvtsd2si - Convert scalar double to integer with rounding
void cvtsd2si(CodeBlock cb, X86Opnd dst, X86Opnd src)
{
cb.writeASM("cvtsd2si", dst, src);
assert (dst.isGPR);
assert (dst.reg.size is 32 || dst.reg.size is 64);
assert (src.isXMM || src.isMem64);
auto rexW = dst.reg.size is 64;
cb.writeByte(0xF2);
cb.writeRMInstr!('r', 0xFF, 0x0F, 0x2D)(false, rexW, dst, src);
}
//// cvtsi2sd - Convert integer to scalar double
void cvtsi2sd(CodeBlock cb, X86Opnd dst, X86Opnd src)
{
cb.writeASM("cvtsi2sd", dst, src);
assert (dst.isXMM);
size_t opndSize;
if (src.isReg)
opndSize = src.reg.size;
else if (src.isMem)
opndSize = src.mem.size;
else
assert (false);
assert (opndSize is 32 || opndSize is 64);
auto rexW = opndSize is 64;
cb.writeByte(0xF2);
cb.writeRMInstr!('r', 0xFF, 0x0F, 0x2A)(false, rexW, dst, src);
}
//// cvttsd2si - Convert scalar double to integer with truncation
void cvttsd2si(CodeBlock cb, X86Opnd dst, X86Opnd src)
{
cb.writeASM("cvttsd2si", dst, src);
assert (dst.isGPR);
assert (dst.reg.size is 32 || dst.reg.size is 64);
assert (src.isXMM || src.isMem64);
auto rexW = dst.reg.size is 64;
cb.writeByte(0xF2);
cb.writeRMInstr!('r', 0xFF, 0x0F, 0x2C)(false, rexW, dst, src);
}
// dec - Decrement integer by 1
alias writeRMUnary!(
"dec",
0xFE, // opMemReg8
0xFF, // opMemRegPref
0x01 // opExt
) dec;
// div - Unsigned integer division
alias writeRMUnary!(
"div",
0xF6, // opMemReg8
0xF7, // opMemRegPref
0x06 // opExt
) div;
/// divsd - Divide scalar double
alias writeXMM64!(
"divsd",
0xF2, // prefix
0x0F, // opRegMem0
0x5E // opRegMem1
) divsd;
// idiv - Signed integer division
alias writeRMUnary!(
"idiv",
0xF6, // opMemReg8
0xF7, // opMemRegPref
0x07 // opExt
) idiv;
/// imul - Signed integer multiplication with two operands
void imul(CodeBlock cb, X86Opnd opnd0, X86Opnd opnd1)
{
cb.writeASM("imul", opnd0, opnd1);
assert (opnd0.isReg, "invalid first operand");
auto opndSize = opnd0.reg.size;
// Check the size of opnd1
if (opnd1.isReg)
assert (opnd1.reg.size is opndSize, "operand size mismatch");
else if (opnd1.isMem)
assert (opnd1.mem.size is opndSize, "operand size mismatch");
assert (opndSize is 16 || opndSize is 32 || opndSize is 64);
auto szPref = opndSize is 16;
auto rexW = opndSize is 64;
cb.writeRMInstr!('r', 0xFF, 0x0F, 0xAF)(szPref, rexW, opnd0, opnd1);
}
/// imul - Signed integer multiplication with three operands (one immediate)
void imul(CodeBlock cb, X86Opnd opnd0, X86Opnd opnd1, X86Opnd opnd2)
{
cb.writeASM("imul", opnd0, opnd1, opnd2);
assert (opnd0.isReg, "invalid first operand");
auto opndSize = opnd0.reg.size;
// Check the size of opnd1
if (opnd1.isReg)
assert (opnd1.reg.size is opndSize, "operand size mismatch");
else if (opnd1.isMem)
assert (opnd1.mem.size is opndSize, "operand size mismatch");
assert (opndSize is 16 || opndSize is 32 || opndSize is 64);
auto szPref = opndSize is 16;
auto rexW = opndSize is 64;
assert (opnd2.isImm, "invalid third operand");
auto imm = opnd2.imm;
// 8-bit immediate
if (imm.immSize <= 8)
{
cb.writeRMInstr!('r', 0xFF, 0x6B)(szPref, rexW, opnd0, opnd1);
cb.writeInt(imm.imm, 8);
}
// 32-bit immediate
else if (imm.immSize <= 32)
{
assert (imm.immSize <= opndSize, "immediate too large for dst");
cb.writeRMInstr!('r', 0xFF, 0x69)(szPref, rexW, opnd0, opnd1);
cb.writeInt(imm.imm, min(opndSize, 32));
}
// Immediate too large
else
{
assert (false, "immediate value too large");
}
}
// inc - Increment integer by 1
alias writeRMUnary!(
"inc",
0xFE, // opMemReg8
0xFF, // opMemRegPref
0x00 // opExt
) inc;
/**
Encode a relative jump to a label (direct or conditional)
Note: this always encodes a 32-bit offset
*/
void writeJcc(string mnem, opcode...)(CodeBlock cb, Label label)
{
cb.writeASM(mnem, label);
// Write the opcode
cb.writeBytes(opcode);
// Add a reference to the label
cb.addLabelRef(label);
// Relative 32-bit offset to be patched
cb.writeInt(0, 32);
}
/// jcc - Conditional relative jump to a label
alias writeJcc!("ja" , 0x0F, 0x87) ja;
alias writeJcc!("jae", 0x0F, 0x83) jae;
alias writeJcc!("jb" , 0x0F, 0x82) jb;
alias writeJcc!("jbe", 0x0F, 0x86) jbe;
alias writeJcc!("jc" , 0x0F, 0x82) jc;
alias writeJcc!("je" , 0x0F, 0x84) je;
alias writeJcc!("jg" , 0x0F, 0x8F) jg;
alias writeJcc!("jge", 0x0F, 0x8D) jge;
alias writeJcc!("jl" , 0x0F, 0x8C) jl;
alias writeJcc!("jle", 0x0F, 0x8E) jle;
alias writeJcc!("jna" , 0x0F, 0x86) jna;
alias writeJcc!("jnae", 0x0F, 0x82) jnae;
alias writeJcc!("jnb" , 0x0F, 0x83) jnb;
alias writeJcc!("jnbe", 0x0F, 0x87) jnbe;
alias writeJcc!("jnc" , 0x0F, 0x83) jnc;
alias writeJcc!("jne" , 0x0F, 0x85) jne;
alias writeJcc!("jng" , 0x0F, 0x8E) jng;
alias writeJcc!("jnge", 0x0F, 0x8C) jnge;
alias writeJcc!("jnl" , 0x0F, 0x8D) jnl;
alias writeJcc!("jnle", 0x0F, 0x8F) jnle;
alias writeJcc!("jno", 0x0F, 0x81) jno;
alias writeJcc!("jnp", 0x0F, 0x8b) jnp;
alias writeJcc!("jns", 0x0F, 0x89) jns;
alias writeJcc!("jnz", 0x0F, 0x85) jnz;
alias writeJcc!("jo" , 0x0F, 0x80) jo;
alias writeJcc!("jp" , 0x0F, 0x8A) jp;
alias writeJcc!("jpe", 0x0F, 0x8A) jpe;
alias writeJcc!("jpo", 0x0F, 0x8B) jpo;
alias writeJcc!("js" , 0x0F, 0x88) js;
alias writeJcc!("jz" , 0x0F, 0x84) jz;
/// Opcode for direct jump with relative 8-bit offset
const ubyte JMP_REL8_OPCODE = 0xEB;
/// Opcode for direct jump with relative 32-bit offset
const ubyte JMP_REL32_OPCODE = 0xE9;
/// Opcode for jump on equal with relative 32-bit offset
const ubyte[] JE_REL32_OPCODE = [0x0F, 0x84];
/// jmp - Direct relative jump to label
alias writeJcc!("jmp", JMP_REL32_OPCODE) jmp;
/// jmp - Indirect jump near to an R/M operand
void jmp(CodeBlock cb, X86Opnd opnd)
{
cb.writeASM("jmp", opnd);
cb.writeRMInstr!('l', 4, 0xFF)(false, false, opnd, X86Opnd.NONE);
}
/// jmp - Jump with relative 8-bit offset
void jmp8(CodeBlock cb, int8_t offset)
{
cb.writeASM("jmp", ((offset > 0)? "+":"-") ~ to!string(offset));
cb.writeByte(JMP_REL8_OPCODE);
cb.writeByte(offset);
}
/// jmp - Jump with relative 32-bit offset
void jmp32(CodeBlock cb, int32_t offset)
{
cb.writeASM("jmp", ((offset > 0)? "+":"-") ~ to!string(offset));
cb.writeByte(JMP_REL32_OPCODE);
cb.writeInt(offset, 32);
}
/// lea - Load Effective Address
void lea(CodeBlock cb, X86Reg dst, X86Mem src)
{
cb.writeASM("lea", dst, src);
assert (dst.size is 64);
cb.writeRMInstr!('r', 0xFF, 0x8D)(false, true, X86Opnd(dst), X86Opnd(src));
}
/// mov - Data move operation
void mov(CodeBlock cb, X86Opnd dst, X86Opnd src)
{
// R/M + Imm
if (src.isImm)
{
cb.writeASM("mov", dst, src);
auto imm = src.imm;
// R + Imm
if (dst.isReg)
{
auto reg = dst.reg;
auto dstSize = reg.size;
assert (
imm.immSize <= dstSize || imm.unsgSize <= dstSize,
format("immediate too large for dst reg: %s = %s", imm, dst)
);
if (dstSize is 16)
cb.writeByte(0x66);
if (reg.rexNeeded || dstSize is 64)
cb.writeREX(dstSize is 64, 0, 0, reg.regNo);
cb.writeOpcode((dstSize is 8)? 0xB0:0xB8, reg);
cb.writeInt(imm.imm, dstSize);
}
// M + Imm
else if (dst.isMem)
{
auto dstSize = dst.mem.size;
assert (imm.immSize <= dstSize);
if (dstSize is 8)
cb.writeRMInstr!('l', 0xFF, 0xC6)(false, false, dst, X86Opnd.NONE);
else
cb.writeRMInstr!('l', 0, 0xC7)(dstSize is 16, dstSize is 64, dst, X86Opnd.NONE);
cb.writeInt(imm.imm, min(dstSize, 32));
}
else
{
assert (false);
}
}
else
{
writeRMMulti!(
"mov",
0x88, // opMemReg8
0x89, // opMemRegPref
0x8A, // opRegMem8
0x8B, // opRegMemPref
0xC6, // opMemImm8
0xFF, // opMemImmSml (not available)
0xFF, // opMemImmLrg
0xFF // opExtImm
)(cb, dst, src);
}
}
/// mov - Move an immediate into a register
void mov(CodeBlock cb, X86Reg reg, X86Imm imm)
{
// TODO: more optimized code for this case
cb.mov(X86Opnd(reg), X86Opnd(imm));
}
/// mov - Move an immediate into a register
void mov(CodeBlock cb, X86Reg reg, int64_t imm)
{
// TODO: more optimized code for this case
cb.mov(X86Opnd(reg), X86Opnd(imm));
}
/// mov - Register to register move
void mov(CodeBlock cb, X86Reg dst, X86Reg src)
{
// TODO: more optimized code for this case
cb.mov(X86Opnd(dst), X86Opnd(src));
}
/// movq - Move quadword
void movq(CodeBlock cb, X86Opnd dst, X86Opnd src)
{
cb.writeASM("movq", dst, src);
if (dst.isXMM)
{
assert (src.isGPR64 || src.isMem64);
cb.writeByte(0x66);
cb.writeRMInstr!('r', 0xFF, 0x0F, 0x6E)(false, true, dst, src);
}
else if (dst.isGPR64 || dst.isMem64)
{
assert (src.isXMM, "src should be XMM");
cb.writeByte(0x66);
cb.writeRMInstr!('l', 0xFF, 0x0F, 0x7E)(false, true, dst, src);
}
else
{
assert (false, "invalid dst operand");
}
}
/// movsd - Move scalar double to/from XMM
void movsd(CodeBlock cb, X86Opnd dst, X86Opnd src)
{
cb.writeASM("movsd", dst, src);
if (dst.isXMM)
{
assert (src.isXMM || src.isMem64);
cb.writeByte(0xF2);
cb.writeRMInstr!('r', 0xFF, 0x0F, 0x10)(false, false, dst, src);
}
else if (dst.isMem64)
{
assert (src.isXMM);
cb.writeByte(0xF2);
cb.writeRMInstr!('l', 0xFF, 0x0F, 0x11)(false, false, dst, src);
}
else
{
assert (false, "invalid dst operand");
}
}
/// movsx - Move with sign extension
void movsx(CodeBlock cb, X86Opnd dst, X86Opnd src)
{
cb.writeASM("movsx", dst, src);
size_t dstSize;
if (dst.isReg)
dstSize = dst.reg.size;
else
assert (false);
size_t srcSize;
if (src.isReg)
srcSize = src.reg.size;
else if (src.isMem)
srcSize = src.mem.size;
else
assert (false);
assert (srcSize < dstSize);
if (srcSize is 8)
{
cb.writeRMInstr!('r', 0xFF, 0x0F, 0xBE)(dstSize is 16, dstSize is 64, dst, src);
}
else if (srcSize is 16)
{
cb.writeRMInstr!('r', 0xFF, 0x0F, 0xBF)(dstSize is 16, dstSize is 64, dst, src);
}
else if (srcSize is 32)
{
cb.writeRMInstr!('r', 0xFF, 0x063)(false, true, dst, src);
}
else
{
assert (false);
}
}
/// movzx - Move with zero extension (unsigned)
void movzx(CodeBlock cb, X86Opnd dst, X86Opnd src)
{
cb.writeASM("movzx", dst, src);
size_t dstSize;
if (dst.isReg)
dstSize = dst.reg.size;
else
assert (false, "movzx dst must be a register");
size_t srcSize;
if (src.isReg)
srcSize = src.reg.size;
else if (src.isMem)
srcSize = src.mem.size;
else
assert (false);
assert (
srcSize < dstSize,
"movzx: srcSize >= dstSize"
);
if (srcSize is 8)
{
cb.writeRMInstr!('r', 0xFF, 0x0F, 0xB6)(dstSize is 16, dstSize is 64, dst, src);
}
else if (srcSize is 16)
{
cb.writeRMInstr!('r', 0xFF, 0x0F, 0xB7)(dstSize is 16, dstSize is 64, dst, src);
}
else
{
assert (false, "invalid src operand size for movxz");
}
}
// mul - Unsigned integer multiply
alias writeRMUnary!(
"mul",
0xF6, // opMemReg8
0xF7, // opMemRegPref
0x04 // opExt
) mul;
// mulsd - Multiply scalar double
alias writeXMM64!(
"mulsd",
0xF2, // prefix
0x0F, // opRegMem0
0x59 // opRegMem1
) mulsd;
// neg - Integer negation (multiplication by -1)
alias writeRMUnary!(
"neg",
0xF6, // opMemReg8
0xF7, // opMemRegPref
0x03 // opExt
) neg;
/// nop - Noop, one or multiple bytes long
void nop(CodeBlock cb, size_t length = 1)
{
switch (length)
{
case 0:
break;
case 1:
cb.writeASM("nop1");
cb.writeByte(0x90);
break;
case 2:
cb.writeASM("nop2");
cb.writeBytes(0x66,0x90);
break;
case 3:
cb.writeASM("nop3");
cb.writeBytes(0x0F,0x1F,0x00);
break;
case 4:
cb.writeASM("nop4");
cb.writeBytes(0x0F,0x1F,0x40,0x00);
break;
case 5:
cb.writeASM("nop5");
cb.writeBytes(0x0F,0x1F,0x44,0x00,0x00);
break;
case 6:
cb.writeASM("nop6");
cb.writeBytes(0x66,0x0F,0x1F,0x44,0x00,0x00);
break;
case 7:
cb.writeASM("nop7");
cb.writeBytes(0x0F,0x1F,0x80,0x00,0x00,0x00,0x00);
break;
case 8:
cb.writeASM("nop8");
cb.writeBytes(0x0F,0x1F,0x84,0x00,0x00,0x00,0x00,0x00);
break;
case 9:
cb.writeASM("nop9");
cb.writeBytes(0x66,0x0F,0x1F,0x84,0x00,0x00,0x00,0x00,0x00);
break;
default:
size_t written = 0;
while (written + 9 <= length)
{
cb.nop(9);
written += 9;
}
cb.nop(length - written);
break;
}
}
// not - Bitwise NOT
alias writeRMUnary!(
"not",
0xF6, // opMemReg8
0xF7, // opMemRegPref
0x02 // opExt
) not;
/// or - Bitwise OR
alias writeRMMulti!(
"or",
0x08, // opMemReg8
0x09, // opMemRegPref
0x0A, // opRegMem8
0x0B, // opRegMemPref
0x80, // opMemImm8
0x83, // opMemImmSml
0x81, // opMemImmLrg
0x01 // opExtImm
) or;
/// push - Push a register on the stack
void push(CodeBlock cb, immutable X86Reg reg)
{
assert (reg.size is 64, "can only push 64-bit registers");
cb.writeASM("push", reg);
if (reg.rexNeeded)
cb.writeREX(false, 0, 0, reg.regNo);
cb.writeOpcode(0x50, reg);
}
/// pushfq - Push the flags register (64-bit)
void pushfq(CodeBlock cb)
{
cb.writeASM("pushfq");
cb.writeByte(0x9C);
}
/// pop - Pop a register off the stack
void pop(CodeBlock cb, immutable X86Reg reg)
{
assert (reg.size is 64);
cb.writeASM("pop", reg);
if (reg.rexNeeded)
cb.writeREX(false, 0, 0, reg.regNo);
cb.writeOpcode(0x58, reg);
}
/// popfq - Pop the flags register (64-bit)
void popfq(CodeBlock cb)
{
cb.writeASM("popfq");
// REX.W + 0x9D
cb.writeBytes(0x48, 0x9D);
}
// pxor - Logical Exclusive OR of XMM registers
alias writeXMM64!(
"pxor",
0x66, // prefix
0x0F, // opRegMem0
0xEF // opRegMem1
) pxor;
/// ret - Return from call, popping only the return address
void ret(CodeBlock cb)
{
cb.writeASM("ret");
cb.writeByte(0xC3);
}
/**
Encode a single-operand shift instruction
*/
void writeShift(
wstring mnem,
ubyte opMemOnePref,
ubyte opMemClPref,
ubyte opMemImmPref,
ubyte opExt
)
(CodeBlock cb, X86Opnd opnd0, X86Opnd opnd1)
{
// Write a disassembly string
cb.writeASM(mnem, opnd0, opnd1);
// Check the size of opnd0
size_t opndSize;
if (opnd0.isReg)
opndSize = opnd0.reg.size;
else if (opnd0.isMem)
opndSize = opnd0.mem.size;
else
assert (false, "shift: invalid first operand: " ~ opnd0.toString);
assert (opndSize is 16 || opndSize is 32 || opndSize is 64);
auto szPref = opndSize is 16;
auto rexW = opndSize is 64;
if (opnd1.isImm)
{
if (opnd1.imm.imm == 1)
{
cb.writeRMInstr!('l', opExt, opMemOnePref)(szPref, rexW, opnd0, X86Opnd.NONE);
}
else
{
assert (opnd1.imm.immSize <= 8);
cb.writeRMInstr!('l', opExt, opMemImmPref)(szPref, rexW, opnd0, X86Opnd.NONE);
cb.writeByte(cast(ubyte)opnd1.imm.imm);
}
}
else if (opnd1.isReg && opnd1.reg == CL)
{
cb.writeRMInstr!('l', opExt, opMemClPref)(szPref, rexW, opnd0, X86Opnd.NONE);
}
else
{
assert (false);
}
}
/// sal - Shift arithmetic left
alias writeShift!(
"sal",
0xD1, // opMemOnePref,
0xD3, // opMemClPref,
0xC1, // opMemImmPref,
0x04
) sal;
/// shl - Shift logical left
alias writeShift!(
"shl",
0xD1, // opMemOnePref,
0xD3, // opMemClPref,
0xC1, // opMemImmPref,
0x04
) shl;
/// sar - Shift arithmetic right (signed)
alias writeShift!(
"sar",
0xD1, // opMemOnePref,
0xD3, // opMemClPref,
0xC1, // opMemImmPref,
0x07
) sar;
/// shr - Shift logical right (unsigned)
alias writeShift!(
"shr",
0xD1, // opMemOnePref,
0xD3, // opMemClPref,
0xC1, // opMemImmPref,
0x05
) shr;
// sqrtsd - Square root of scalar double (SSE2)
alias writeXMM64!(
"sqrtsd",
0xF2, // prefix
0x0F, // opRegMem0
0x51 // opRegMem1
) sqrtsd;
/// sub - Integer subtraction
alias writeRMMulti!(
"sub",
0x28, // opMemReg8
0x29, // opMemRegPref
0x2A, // opRegMem8
0x2B, // opRegMemPref
0x80, // opMemImm8
0x83, // opMemImmSml
0x81, // opMemImmLrg
0x05 // opExtImm
) sub;
/// sub - Subtract with register and immediate operand
void sub(CodeBlock as, X86Reg dst, int64_t imm)
{
assert (imm >= int32_t.min && imm <= int32_t.max);
// TODO: optimize encoding
return sub(as, X86Opnd(dst), X86Opnd(imm));
}
// subsd - Subtract scalar double
alias writeXMM64!(
"subsd",
0xF2, // prefix
0x0F, // opRegMem0
0x5C // opRegMem1
) subsd;
// ucomisd - Unordered compare scalar double
alias writeXMM64!(
"ucomisd",
0x66, // prefix
0x0F, // opRegMem0
0x2E // opRegMem1
) ucomisd;
/// xor - Exclusive bitwise OR
alias writeRMMulti!(
"xor",
0x30, // opMemReg8
0x31, // opMemRegPref
0x32, // opRegMem8
0x33, // opRegMemPref
0x80, // opMemImm8
0x83, // opMemImmSml
0x81, // opMemImmLrg
0x06 // opExtImm
) xor;
// xorps - Exclusive bitwise OR for single-precision floats
alias writeXMM64!(
"xorps",
0xFF, // prefix
0x0F, // opRegMem0
0x57 // opRegMem1
) xorps;
|
D
|
/Users/noahaus/GithubRepos/sliding-window-scripts/tjd/target/debug/deps/cfg_if-4c840386b43c02da.rmeta: /Users/noahaus/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs
/Users/noahaus/GithubRepos/sliding-window-scripts/tjd/target/debug/deps/libcfg_if-4c840386b43c02da.rlib: /Users/noahaus/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs
/Users/noahaus/GithubRepos/sliding-window-scripts/tjd/target/debug/deps/cfg_if-4c840386b43c02da.d: /Users/noahaus/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs
/Users/noahaus/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs:
|
D
|
/* target.d -- Target interface for the D front end.
* Copyright (C) 2018 Free Software Foundation, Inc.
*
* GCC 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, or (at your option)
* any later version.
*
* GCC 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 GCC; see the file COPYING3. If not see
* <http://www.gnu.org/licenses/>.
*/
module dmd.target;
import dmd.argtypes;
import dmd.dclass;
import dmd.dmodule;
import dmd.dsymbol;
import dmd.expression;
import dmd.globals;
import dmd.mtype;
import dmd.tokens : TOK;
import dmd.root.ctfloat;
import dmd.root.outbuffer;
/**
* Describes a back-end target. At present it is incomplete, but in the future
* it should grow to contain most or all target machine and target O/S specific
* information.
*
* In many cases, calls to sizeof() can't be used directly for getting data type
* sizes since cross compiling is supported and would end up using the host
* sizes rather than the target sizes.
*/
struct Target
{
extern (C++) __gshared
{
// D ABI
uint ptrsize; /// size of a pointer in bytes
uint realsize; /// size a real consumes in memory
uint realpad; /// padding added to the CPU real size to bring it up to realsize
uint realalignsize; /// alignment for reals
uint classinfosize; /// size of `ClassInfo`
ulong maxStaticDataSize; /// maximum size of static data
// C ABI
uint c_longsize; /// size of a C `long` or `unsigned long` type
uint c_long_doublesize; /// size of a C `long double`
// C++ ABI
bool reverseCppOverloads; /// set if overloaded functions are grouped and in reverse order (such as in dmc and cl)
bool cppExceptions; /// set if catching C++ exceptions is supported
char int64Mangle; /// mangling character for C++ int64_t
char uint64Mangle; /// mangling character for C++ uint64_t
bool twoDtorInVtable; /// target C++ ABI puts deleting and non-deleting destructor into vtable
}
/**
* Values representing all properties for floating point types
*/
extern (C++) struct FPTypeProperties(T)
{
static __gshared
{
real_t max; /// largest representable value that's not infinity
real_t min_normal; /// smallest representable normalized value that's not 0
real_t nan; /// NaN value
real_t snan; /// signalling NaN value
real_t infinity; /// infinity value
real_t epsilon; /// smallest increment to the value 1
d_int64 dig; /// number of decimal digits of precision
d_int64 mant_dig; /// number of bits in mantissa
d_int64 max_exp; /// maximum int value such that 2$(SUPERSCRIPT `max_exp-1`) is representable
d_int64 min_exp; /// minimum int value such that 2$(SUPERSCRIPT `min_exp-1`) is representable as a normalized value
d_int64 max_10_exp; /// maximum int value such that 10$(SUPERSCRIPT `max_10_exp` is representable)
d_int64 min_10_exp; /// minimum int value such that 10$(SUPERSCRIPT `min_10_exp`) is representable as a normalized value
}
}
///
alias FloatProperties = FPTypeProperties!float;
///
alias DoubleProperties = FPTypeProperties!double;
///
alias RealProperties = FPTypeProperties!real_t;
/**
* Initialize the Target
*/
extern (C++) static void _init();
/**
* Requested target memory alignment size of the given type.
* Params:
* type = type to inspect
* Returns:
* alignment in bytes
*/
extern (C++) static uint alignsize(Type type);
/**
* Requested target field alignment size of the given type.
* Params:
* type = type to inspect
* Returns:
* alignment in bytes
*/
extern (C++) static uint fieldalign(Type type);
/**
* Size of the target OS critical section.
* Returns:
* size in bytes
*/
extern (C++) static uint critsecsize();
/**
* Type for the `va_list` type for the target.
* NOTE: For Posix/x86_64 this returns the type which will really
* be used for passing an argument of type va_list.
* Returns:
* `Type` that represents `va_list`.
*/
extern (C++) static Type va_listType();
/**
* Checks whether the target supports a vector type.
* Params:
* sz = vector type size in bytes
* type = vector element type
* Returns:
* 0 vector type is supported,
* 1 vector type is not supported on the target at all
* 2 vector element type is not supported
* 3 vector size is not supported
*/
extern (C++) static int isVectorTypeSupported(int sz, Type type);
/**
* Checks whether the target supports the given operation for vectors.
* Params:
* type = target type of operation
* op = the unary or binary op being done on the `type`
* t2 = type of second operand if `op` is a binary operation
* Returns:
* true if the operation is supported or type is not a vector
*/
extern (C++) static bool isVectorOpSupported(Type type, TOK op, Type t2 = null);
/**
* Encode the given expression, which is assumed to be an rvalue literal
* as another type for use in CTFE.
* This corresponds roughly to the idiom `*cast(T*)&e`.
* Params:
* e = literal constant expression
* type = target type of the result
* Returns:
* resulting `Expression` re-evaluated as `type`
*/
extern (C++) static Expression paintAsType(Expression e, Type type);
/**
* Perform any post parsing analysis on the given module.
* Certain compiler backends (ie: GDC) have special placeholder
* modules whose source are empty, but code gets injected
* immediately after loading.
* Params:
* m = module to inspect
*/
extern (C++) static void loadModule(Module m);
/**
* Mangle the given symbol for C++ ABI.
* Params:
* s = declaration with C++ linkage
* Returns:
* string mangling of symbol
*/
extern (C++) static const(char)* toCppMangle(Dsymbol s);
/**
* Get RTTI mangling of the given class declaration for C++ ABI.
* Params:
* cd = class with C++ linkage
* Returns:
* string mangling of C++ typeinfo
*/
extern (C++) static const(char)* cppTypeInfoMangle(ClassDeclaration cd);
/**
* Gets vendor-specific type mangling for C++ ABI.
* Params:
* t = type to inspect
* Returns:
* string if type is mangled specially on target
* null if unhandled
*/
extern (C++) static const(char)* cppTypeMangle(Type t);
/**
* Get the type that will really be used for passing the given argument
* to an `extern(C++)` function.
* Params:
* p = parameter to be passed.
* Returns:
* `Type` to use for parameter `p`.
*/
extern (C++) static Type cppParameterType(Parameter p);
/**
* Default system linkage for the target.
* Returns:
* `LINK` to use for `extern(System)`
*/
extern (C++) static LINK systemLinkage();
/**
* Describes how an argument type is passed to a function on target.
* Params:
* t = type to break down
* Returns:
* tuple of types if type is passed in one or more registers
* empty tuple if type is always passed on the stack
*/
extern (C++) static TypeTuple toArgTypes(Type t)
{
return .toArgTypes(t);
}
/**
* Determine return style of function - whether in registers or
* through a hidden pointer to the caller's stack.
* Params:
* tf = function type to check
* needsThis = true if the function type is for a non-static member function
* Returns:
* true if return value from function is on the stack
*/
extern (C++) static bool isReturnOnStack(TypeFunction tf, bool needsThis);
/***
* Determine the size a value of type `t` will be when it
* is passed on the function parameter stack.
* Params:
* loc = location to use for error messages
* t = type of parameter
* Returns:
* size used on parameter stack
*/
extern (C++) static ulong parameterSize(const ref Loc loc, Type t);
}
|
D
|
/+
+ Copyright (c) Charles Petzold, 1998.
+ Ported to the D Programming Language by Andrej Mitrovic, 2011.
+/
module Typer;
import core.runtime;
import core.thread;
import std.algorithm : min, max;
import std.conv;
import std.math;
import std.range;
import std.string;
import std.stdio;
import std.utf;
auto toUTF16z(S)(S s)
{
return toUTFz!(const(wchar)*)(s);
}
pragma(lib, "gdi32.lib");
import core.sys.windows.windef;
import core.sys.windows.winuser;
import core.sys.windows.wingdi;
extern(Windows)
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
int result;
try
{
Runtime.initialize();
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow);
Runtime.terminate();
}
catch(Throwable o)
{
MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION);
result = 0;
}
return result;
}
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
string appName = "Typer";
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style = CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc = &WndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = cast(HBRUSH)GetStockObject(WHITE_BRUSH);
wndclass.lpszMenuName = NULL;
wndclass.lpszClassName = appName.toUTF16z;
if (!RegisterClass(&wndclass))
{
MessageBox(NULL, "This program requires Windows NT!", appName.toUTF16z, MB_ICONERROR);
return 0;
}
hwnd = CreateWindow(appName.toUTF16z, // window class name
"Typing Program", // window caption
WS_OVERLAPPEDWINDOW, // window style
CW_USEDEFAULT, // initial x position
CW_USEDEFAULT, // initial y position
CW_USEDEFAULT, // initial x size
CW_USEDEFAULT, // initial y size
NULL, // parent window handle
NULL, // window menu handle
hInstance, // program instance handle
NULL); // creation parameters
ShowWindow(hwnd, iCmdShow);
UpdateWindow(hwnd);
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
extern(Windows)
LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) nothrow
{
scope (failure) assert(0);
static DWORD dwCharSet = DEFAULT_CHARSET;
static int cxChar, cyChar, cxClient, cyClient, cxBuffer, cyBuffer, xCaret, yCaret;
static wchar[][] textBuffer;
HDC hdc;
int x;
PAINTSTRUCT ps;
TEXTMETRIC tm;
switch (message)
{
case WM_INPUTLANGCHANGE:
{
dwCharSet = wParam;
goto case WM_CREATE;
}
case WM_CREATE:
{
hdc = GetDC(hwnd);
scope(exit) ReleaseDC(hwnd, hdc);
SelectObject(hdc, CreateFont(0, 0, 0, 0, 0, 0, 0, 0, dwCharSet, 0, 0, 0, FIXED_PITCH, NULL));
scope(exit) DeleteObject(SelectObject(hdc, GetStockObject(SYSTEM_FONT)));
GetTextMetrics(hdc, &tm);
cxChar = tm.tmAveCharWidth;
cyChar = tm.tmHeight;
goto case WM_SIZE;
}
case WM_SIZE:
{
// obtain window size in pixels
if (message == WM_SIZE)
{
cxClient = LOWORD(lParam);
cyClient = HIWORD(lParam);
}
// calculate window size in characters
cxBuffer = max(1, cxClient / cxChar);
cyBuffer = max(1, cyClient / cyChar);
textBuffer = new wchar[][](cyBuffer, cxBuffer);
foreach (ref wchar[] line; textBuffer)
{
line[] = ' ';
}
// set caret to upper left corner
xCaret = 0;
yCaret = 0;
if (hwnd == GetFocus())
SetCaretPos(xCaret * cxChar, yCaret * cyChar);
InvalidateRect(hwnd, NULL, TRUE);
return 0;
}
case WM_SETFOCUS:
{
CreateCaret(hwnd, NULL, cxChar, cyChar);
SetCaretPos(xCaret * cxChar, yCaret * cyChar);
ShowCaret(hwnd);
return 0;
}
case WM_KILLFOCUS:
{
HideCaret(hwnd);
DestroyCaret();
return 0;
}
case WM_KEYDOWN:
{
switch (wParam)
{
case VK_HOME:
xCaret = 0;
break;
case VK_END:
xCaret = cxBuffer - 1;
break;
case VK_PRIOR:
yCaret = 0;
break;
case VK_NEXT:
yCaret = cyBuffer - 1;
break;
case VK_LEFT:
xCaret = max(xCaret - 1, 0);
break;
case VK_RIGHT:
xCaret = min(xCaret + 1, cxBuffer - 1);
break;
case VK_UP:
yCaret = max(yCaret - 1, 0);
break;
case VK_DOWN:
yCaret = min(yCaret + 1, cyBuffer - 1);
break;
case VK_DELETE:
{
textBuffer[yCaret] = textBuffer[yCaret][1..$] ~ ' ';
HideCaret(hwnd);
hdc = GetDC(hwnd);
scope(exit) ReleaseDC(hwnd, hdc);
SelectObject(hdc, CreateFont(0, 0, 0, 0, 0, 0, 0, 0, dwCharSet, 0, 0, 0, FIXED_PITCH, NULL));
scope(exit) DeleteObject(SelectObject(hdc, GetStockObject(SYSTEM_FONT)));
TextOut(hdc, xCaret * cxChar, yCaret * cyChar, &textBuffer[yCaret][xCaret], cxBuffer - xCaret);
ShowCaret(hwnd);
break;
}
default:
}
SetCaretPos(xCaret * cxChar, yCaret * cyChar);
return 0;
}
case WM_CHAR:
{
// lParam stores the repeat count of a character
foreach (i; 0 .. cast(int)LOWORD(lParam))
{
switch (wParam)
{
case '\b':
{
if (xCaret > 0)
{
xCaret--;
SendMessage(hwnd, WM_KEYDOWN, VK_DELETE, 1);
}
break;
}
case '\t':
{
do
{
SendMessage(hwnd, WM_CHAR, ' ', 1);
}
while (xCaret % 4 != 0);
break;
}
case '\n':
{
if (++yCaret == cyBuffer)
yCaret = 0;
break;
}
case '\r':
{
xCaret = 0;
if (++yCaret == cyBuffer)
yCaret = 0;
break;
}
case '\x1B': // escape
{
foreach (ref wchar[] line; textBuffer)
{
line[] = ' ';
}
xCaret = 0;
yCaret = 0;
InvalidateRect(hwnd, NULL, FALSE);
break;
}
default: // other chars
{
textBuffer[yCaret][xCaret] = cast(char)wParam;
HideCaret(hwnd);
hdc = GetDC(hwnd);
scope(exit) ReleaseDC(hwnd, hdc);
SelectObject(hdc, CreateFont(0, 0, 0, 0, 0, 0, 0, 0, dwCharSet, 0, 0, 0, FIXED_PITCH, NULL));
scope(exit) DeleteObject(SelectObject(hdc, GetStockObject(SYSTEM_FONT)));
TextOut(hdc, xCaret * cxChar, yCaret * cyChar,
&textBuffer[yCaret][xCaret], 1);
ShowCaret(hwnd);
if (++xCaret == cxBuffer)
{
xCaret = 0;
if (++yCaret == cyBuffer)
yCaret = 0;
}
break;
}
}
}
SetCaretPos(xCaret * cxChar, yCaret * cyChar);
return 0;
}
case WM_PAINT:
{
hdc = BeginPaint(hwnd, &ps);
scope(exit) EndPaint(hwnd, &ps);
SelectObject(hdc, CreateFont(0, 0, 0, 0, 0, 0, 0, 0, dwCharSet, 0, 0, 0, FIXED_PITCH, NULL));
scope(exit) DeleteObject(SelectObject(hdc, GetStockObject(SYSTEM_FONT)));
foreach (y; 0 .. cyBuffer)
{
TextOut(hdc, 0, y * cyChar, textBuffer[y].ptr, cxBuffer);
}
return 0;
}
case WM_DESTROY:
PostQuitMessage(0);
return 0;
default:
}
return DefWindowProc(hwnd, message, wParam, lParam);
}
|
D
|
# FIXED
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/source/F2837xD_PieCtrl.c
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_device.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/assert.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/_ti_config.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/linkage.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/stdarg.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/sys/_types.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/sys/cdefs.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/machine/_types.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/stdbool.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/stddef.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/stdint.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/_stdint40.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/sys/stdint.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/machine/_stdint.h
F2837xD_PieCtrl.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/sys/_stdint.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_adc.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_analogsubsys.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cla.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cmpss.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cputimer.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dac.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dcsm.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dma.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_ecap.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_emif.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_epwm.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_epwm_xbar.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_eqep.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_flash.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_gpio.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_i2c.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_input_xbar.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_ipc.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_mcbsp.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_memconfig.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_nmiintrupt.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_output_xbar.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_piectrl.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_pievect.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sci.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sdfm.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_spi.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sysctrl.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_upp.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_xbar.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_xint.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_can.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Examples.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_GlobalPrototypes.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_cputimervars.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Cla_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_EPwm_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Adc_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Emif_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Gpio_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_I2c_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Ipc_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Pie_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Dma_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_SysCtrl_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Upp_defines.h
F2837xD_PieCtrl.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_defaultisr.h
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/source/F2837xD_PieCtrl.c:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_device.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/assert.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/_ti_config.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/linkage.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/stdarg.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/sys/_types.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/sys/cdefs.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/machine/_types.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/stdbool.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/stddef.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/stdint.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/_stdint40.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/sys/stdint.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/machine/_stdint.h:
C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/sys/_stdint.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_adc.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_analogsubsys.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cla.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cmpss.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cputimer.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dac.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dcsm.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dma.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_ecap.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_emif.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_epwm.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_epwm_xbar.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_eqep.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_flash.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_gpio.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_i2c.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_input_xbar.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_ipc.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_mcbsp.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_memconfig.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_nmiintrupt.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_output_xbar.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_piectrl.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_pievect.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sci.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sdfm.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_spi.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sysctrl.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_upp.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_xbar.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_xint.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_can.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Examples.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_GlobalPrototypes.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_cputimervars.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Cla_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_EPwm_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Adc_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Emif_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Gpio_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_I2c_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Ipc_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Pie_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Dma_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_SysCtrl_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_Upp_defines.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/include/F2837xD_defaultisr.h:
|
D
|
//SKIE - NINDE SoA
CHAIN IF ~InParty("Ninde")
See("Ninde")
!StateCheck("Ninde",CD_STATE_NOTVALID)
!StateCheck("L#2SDSkie",CD_STATE_NOTVALID)
CombatCounter(0)
Global("L#2NindeSkie","GLOBAL",0)~ THEN l#2sdskB L#2NindeSkie01
@0 /* Don't get me wrong, but... isn't it a bit weird to work with dead things? And you do that kind of stuff, right? */
DO ~SetGlobal("L#2NindeSkie","GLOBAL",1)~
== BLK#NIND @1 /* Dressing oneself up like a Rashemi wailer and going keening through the streets of Calimport would be weird, blossom. Necromancy, on the other hand, is a well established art. */
== l#2sdskB @2 /* Art? Well, I hope you won't start making earrings and other stuff from bones and skulls. I once saw some a goblin wearing things like that and it did NOT look good. */
== BLK#NIND @3 /* Honeybunch, do I seem like the sort of girl who would step outside looking anything but pristine? If I had a taste for bone jewelry, you can be sure that it would be properly crafted. */
= @4 /* Hmm. If I had to hazard a guess, I'd say that bone would look much nicer on you, darling. You have the tone for it. */
== l#2sdskB @5 /* Wait, what? Oh, no no no. And if you ever want to buy me some present or something, please, don't buy me any jewlery. Wine would be more than enough. Really. */
EXIT
CHAIN IF ~InParty("L#2SDSkie")
See("L#2SDSkie")
!StateCheck("Ninde",CD_STATE_NOTVALID)
!StateCheck("L#2SDSkie",CD_STATE_NOTVALID)
CombatCounter(0)
Global("L#2NindeSkie2","GLOBAL",0)~ THEN BLK#NIND L#2NindeSkie02
@6 /* Hmm. So you must be Duke Entar's little girl--the one they say ran away with a particularly silvertongued ne'er-do-well. And now you're here loafing around with the rest of us. A pity, that. */
DO ~SetGlobal("L#2NindeSkie2","GLOBAL",1)~
== l#2sdskB @7 /* "Silvertongued ne'er-do-well"? Believe me, you're being WAY too nice calling him that. Anyway, I didn't know you had heard about me! What else are people saying about me? Maybe something about my amazing sense of fashion? */
== BLK#NIND @8 /* Darling, of *course* I heard about it. A story that scrumptious is on the tip of every tongue. As for what else people have been saying... well, there was a rumor that you were carrying the scoundrel's bastard child, though looking at you now, 'tis certainly hard to credit. */
== l#2sdskB @9 /* WHAT have they been saying?! Why... WHY would they say such a thing? Just... WHY? */
== BLK#NIND @10 /* People like to talk, buttercup. It hardly matters if the tales are true or not as long as they're sufficiently... stimulating. *smile* */
== l#2sdskB @11 /* But... they just should... "stimulate off", you know? There are better things to say or do. And I really don't want to hear such things about myself. */
== BLK#NIND @12 /* Sweet thing, even you must have realized by now that people tend not to talk about what we would like them to talk about. Sometimes the best thing we can do is turn their wicked tongues to our advantage. Really, I promise you, it's quite fun once you get the hang of it. */
EXIT
|
D
|
instance DIA_MARVIN_EXIT(C_Info)
{
npc = PC_DSG_MARVIN;
nr = 999;
condition = dia_marvin_exit_condition;
information = dia_marvin_exit_info;
permanent = TRUE;
description = Dialog_Ende;
};
func int dia_marvin_exit_condition()
{
return TRUE;
};
func void dia_marvin_exit_info()
{
B_TeachPlayerTalentTakeAnimalTrophy(self,other,TROPHY_CrawlerPlate);
AI_StopProcessInfos(self);
};
instance DIA_MARVIN_HELP(C_Info)
{
npc = PC_DSG_MARVIN;
nr = 100;
condition = dia_marvin_help_condition;
information = dia_marvin_help_info;
permanent = TRUE;
description = "Помощь";
};
func int dia_marvin_help_condition()
{
return TRUE;
};
func void dia_marvin_help_info()
{
Info_ClearChoices(dia_marvin_help);
Info_AddChoice(dia_marvin_help,"Закончить помогать.",dia_marvin_help_end);
Info_AddChoice(dia_marvin_help,"Стать наемником",dia_marvin_help_end);
Info_AddChoice(dia_marvin_help,b_Ds_buildString_TeachPayment_Attr(other,"",ATR_DEXTERITY,5,-1),dia_marvin_help_end);
Info_AddChoice(dia_marvin_help,b_Ds_buildString_TeachPayment_Talent(other,"",NPC_TALENT_ALCHEMY,POTION_Perm_STR,-1),dia_marvin_help_end);
};
func void dia_marvin_help_end()
{
AI_StopProcessInfos(self);
};
/* TESTING B_DS_WldSpawnItems
instance DIA_MARVIN_Mushroom01(C_Info)
{
npc = PC_DSG_MARVIN;
nr = 100;
condition = dia_marvin_Mushroom01_condition;
information = dia_marvin_Mushroom01_info;
permanent = TRUE;
description = "Вырастить темные грибы";
};
func int dia_marvin_Mushroom01_condition()
{
return TRUE;
};
func void dia_marvin_Mushroom01_info()
{
B_DS_WldSpawnItems(ItPl_Mushroom_01, "MUSHROOM01", 1, 25, 8);
};
instance DIA_MARVIN_Mushroom01_All(C_Info)
{
npc = PC_DSG_MARVIN;
nr = 100;
condition = dia_marvin_Mushroom01_All_condition;
information = dia_marvin_Mushroom01_All_info;
permanent = TRUE;
description = "Вырастить все темные грибы";
};
func int dia_marvin_Mushroom01_All_condition()
{
return TRUE;
};
func void dia_marvin_Mushroom01_All_info()
{
B_DS_WldSpawnItems(ItPl_Mushroom_01, "MUSHROOM01", 1, 25, 25);
};
//*/
|
D
|
/atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/obj/x86_64-slc6-gcc49-opt/JetSubStructureMomentTools/obj/DipolarityTool.o /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/obj/x86_64-slc6-gcc49-opt/JetSubStructureMomentTools/obj/DipolarityTool.d : /cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisBase/2.5.0/JetSubStructureMomentTools/Root/DipolarityTool.cxx /cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisBase/2.5.0/JetSubStructureMomentTools/JetSubStructureMomentTools/DipolarityTool.h /cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisBase/2.5.0/JetSubStructureMomentTools/JetSubStructureMomentTools/JetSubStructureMomentToolsBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODCaloEvent/CaloCluster.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODCaloEvent/versions/CaloCluster_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBase/IParticle.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TLorentzVector.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMath.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Rtypes.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/RtypesCore.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/RConfig.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/RVersion.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/DllImport.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Rtypeinfo.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/snprintf.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/strlcpy.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TGenericClassInfo.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TSchemaHelper.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMathBase.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TError.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TVector3.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TVector2.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TObject.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TStorage.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TVersionCheck.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Riosfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TBuffer.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMatrix.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMatrixF.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMatrixT.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMatrixTBase.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TNamed.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TString.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/RStringView.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/RConfigure.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/RWrap_libcpp_string_view.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/libcpp_string_view.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMatrixFBasefwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMatrixDBasefwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TVectorFfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TVectorDfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMatrixTUtils.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMatrixFfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMatrixFUtils.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TMatrixFUtilsfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TRotation.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/AuxElement.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/IAuxElement.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/IConstAuxStore.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/AuxTypes.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/CxxUtils/unordered_set.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/CxxUtils/hashtable.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/remove_const.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/config.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/config/user.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/config/select_compiler_config.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/config/compiler/gcc.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/config/select_stdlib_config.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/config/stdlib/libstdcpp3.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/config/select_platform_config.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/config/platform/linux.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/config/posix_features.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/config/suffix.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/detail/workaround.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/IAuxStore.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/DataLink.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/DataLinkBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/tools/selection_ns.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/RVersion.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/RootMetaSelection.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/DataLink.icc /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TError.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccessInterfaces/TVirtualEvent.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccessInterfaces/TVirtualEvent.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccessInterfaces/TActiveEvent.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/AuxTypeRegistry.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/IAuxTypeVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/IAuxTypeVectorFactory.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/AuxTypeVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/IAuxSetOption.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/AuxDataTraits.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/PackedContainer.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/PackedParameters.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/AuxDataOption.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/AuxDataOption.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/PackedParameters.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/CxxUtils/override.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/PackedContainer.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/AuxTypeVector.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/AuxTypeVectorFactory.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/AuxTypeVectorFactory.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/threading.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/threading.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/AuxTypeRegistry.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/AuxVectorData.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/likely.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/assume.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/AuxVectorData.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/exceptions.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/AuxElement.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBase/ObjectType.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/CaloGeoHelpers/CaloSampling.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/CaloGeoHelpers/CaloSampling.def /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODCaloEvent/CaloClusterBadChannelData.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODCaloEvent/versions/CaloClusterBadChannelData_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODCore/CLASS_DEF.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODCore/ClassID_traits.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/Jet.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/versions/Jet_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/ElementLink.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/ElementLinkBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/tools/TypeTools.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/ElementLink.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBase/IParticleContainer.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/DataVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/OwnershipPolicy.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/IndexTrackingPolicy.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/AuxVectorBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/ATHCONTAINERS_ASSERT.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/AuxStore_traits.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/AuxVectorBase.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/DVLNoBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/DVLInfo.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/ClassID.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/DVLInfo.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/DVLCast.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/DVLIterator.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/ElementProxy.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/ElementProxy.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator/iterator_adaptor.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/static_assert.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/detail/iterator.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator/iterator_categories.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator/detail/config_def.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/eval_if.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/if.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/value_wknd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/static_cast.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/workaround.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/integral.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/msvc.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/eti.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/na_spec.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/lambda_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/void_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/adl_barrier.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/adl.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/intel.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/gcc.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/na.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/bool.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/bool_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/integral_c_tag.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/static_constant.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/na_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/ctps.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/lambda.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/ttp.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/int.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/int_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/nttp_decl.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/nttp.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/integral_wrapper.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/cat.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/config/config.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/lambda_arity_param.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/template_arity_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/arity.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/dtp.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessor/params.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/preprocessor.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/comma_if.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/punctuation/comma_if.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/control/if.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/control/iif.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/logical/bool.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/facilities/empty.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/punctuation/comma.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/repeat.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/repetition/repeat.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/debug/error.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/detail/auto_rec.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/tuple/eat.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/inc.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/arithmetic/inc.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessor/enum.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/limits/arity.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/logical/and.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/logical/bitand.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/identity.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/facilities/identity.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/empty.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/arithmetic/add.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/arithmetic/dec.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/control/while.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/list/fold_left.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/list/detail/fold_left.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/control/expr_iif.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/list/adt.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/detail/is_binary.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/detail/check.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/logical/compl.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/list/fold_right.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/list/detail/fold_right.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/list/reverse.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/control/detail/while.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/tuple/elem.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/facilities/expand.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/facilities/overload.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/variadic/size.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/tuple/rem.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/tuple/detail/is_single_return.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/variadic/elem.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/arithmetic/sub.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/overload_resolution.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/lambda_support.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/identity.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/placeholders.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/arg.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/arg_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/na_assert.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/assert.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/not.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/nested_type_wknd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/yes_no.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/arrays.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/gpu.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/pp_counter.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/arity_spec.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/arg_typedef.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/use_preprocessed.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/include_preprocessed.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/compiler.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/stringize.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_convertible.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/intrinsics.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/detail/config.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/version.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/integral_constant.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/detail/yes_no_type.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_array.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_arithmetic.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_integral.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_floating_point.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_void.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_abstract.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/add_lvalue_reference.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/add_reference.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/add_rvalue_reference.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_reference.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_lvalue_reference.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_rvalue_reference.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_function.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/detail/is_function_ptr_helper.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/declval.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator/detail/config_undef.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator/iterator_facade.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator/interoperable.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/or.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/or.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator/iterator_traits.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator/detail/facade_iterator_category.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/and.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/and.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_same.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_const.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/detail/indirect_traits.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_pointer.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_class.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_volatile.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_member_function_pointer.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/remove_cv.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_member_pointer.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/remove_reference.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/remove_pointer.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator/detail/enable_if.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/utility/addressof.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/core/addressof.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/add_const.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/add_pointer.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_pod.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_scalar.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/is_enum.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/always.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessor/default_params.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/apply.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/apply_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/apply_wrap.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/has_apply.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/has_xxx.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/type_wrapper.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/has_xxx.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/msvc_typename.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/array/elem.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/array/data.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/array/size.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/repetition/enum_params.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/repetition/enum_trailing_params.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/has_apply.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/msvc_never_true.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/lambda.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/bind.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/bind_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/bind.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/next.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/next_prior.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/common_name_wknd.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/protect.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/full_lambda.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/quote.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/void.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/has_type.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/config/bcc.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/template_arity.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/DVL_iter_swap.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/DVL_algorithms.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/DVL_algorithms.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/IsMostDerivedFlag.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/ClassName.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/ClassName.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/error.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/DataVector.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/tools/CompareAndPrint.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBTagging/BTaggingContainer.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBTagging/BTagging.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBTagging/versions/BTagging_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBTagging/BTaggingEnums.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/TrackParticleContainer.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/TrackParticle.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/versions/TrackParticle_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/TrackingPrimitives.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/EventPrimitives/EventPrimitives.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/Core /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/DisableStupidWarnings.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/Macros.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/MKL_support.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/Constants.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/ForwardDeclarations.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/Meta.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/StaticAssert.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/XprHelper.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/Memory.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/NumTraits.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/MathFunctions.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/GenericPacketMath.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/arch/SSE/PacketMath.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/arch/SSE/MathFunctions.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/arch/SSE/Complex.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/arch/Default/Settings.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Functors.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/DenseCoeffsBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/DenseBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/../plugins/BlockMethods.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/MatrixBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/../plugins/CommonCwiseUnaryOps.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/../plugins/CommonCwiseBinaryOps.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/../plugins/MatrixCwiseUnaryOps.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/../plugins/MatrixCwiseBinaryOps.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/EventPrimitives/AmgMatrixPlugin.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/EigenBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Assign.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/BlasUtil.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/DenseStorage.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/NestByValue.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/ForceAlignedAccess.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/ReturnByValue.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/NoAlias.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/PlainObjectBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Matrix.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/EventPrimitives/SymmetricMatrixHelpers.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Array.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/CwiseBinaryOp.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/CwiseUnaryOp.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/CwiseNullaryOp.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/CwiseUnaryView.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/SelfCwiseBinaryOp.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Dot.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/StableNorm.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/MapBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Stride.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Map.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Block.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/VectorBlock.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Ref.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Transpose.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/DiagonalMatrix.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Diagonal.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/DiagonalProduct.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/PermutationMatrix.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Transpositions.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Redux.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Visitor.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Fuzzy.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/IO.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Swap.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/CommaInitializer.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Flagged.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/ProductBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/GeneralProduct.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/TriangularMatrix.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/SelfAdjointView.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/GeneralBlockPanelKernel.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/Parallelizer.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/CoeffBasedProduct.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/GeneralMatrixVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/GeneralMatrixMatrix.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/SolveTriangular.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/SelfadjointMatrixVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/SelfadjointMatrixMatrix.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/SelfadjointProduct.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/SelfadjointRank2Update.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/TriangularMatrixVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/TriangularMatrixMatrix.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/TriangularSolverMatrix.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/products/TriangularSolverVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/BandMatrix.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/CoreIterators.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/BooleanRedux.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Select.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/VectorwiseOp.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Random.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Replicate.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/Reverse.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/ArrayBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/../plugins/ArrayCwiseUnaryOps.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/../plugins/ArrayCwiseBinaryOps.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/ArrayWrapper.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/GlobalFunctions.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Core/util/ReenableStupidWarnings.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/Dense /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/Core /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/LU /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/misc/Solve.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/misc/Kernel.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/misc/Image.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/LU/FullPivLU.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/LU/PartialPivLU.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/LU/Determinant.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/LU/Inverse.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/LU/arch/Inverse_SSE.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/Cholesky /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Cholesky/LLT.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Cholesky/LDLT.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/QR /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/Jacobi /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Jacobi/Jacobi.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/Householder /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Householder/Householder.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Householder/HouseholderSequence.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Householder/BlockHouseholder.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/QR/HouseholderQR.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/QR/FullPivHouseholderQR.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/QR/ColPivHouseholderQR.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/SVD /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/SVD/JacobiSVD.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/SVD/UpperBidiagonalization.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/Geometry /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/OrthoMethods.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/EulerAngles.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/Homogeneous.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/RotationBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/Rotation2D.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/Quaternion.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/AngleAxis.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/Transform.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/EventPrimitives/AmgTransformPlugin.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/Translation.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/Scaling.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/Hyperplane.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/ParametrizedLine.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/AlignedBox.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/Umeyama.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Geometry/arch/Geometry_SSE.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/Eigenvalues /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/Tridiagonalization.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/RealSchur.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/./HessenbergDecomposition.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/EigenSolver.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/./RealSchur.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/./Tridiagonalization.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/HessenbergDecomposition.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/ComplexSchur.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/ComplexEigenSolver.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/./ComplexSchur.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/RealQZ.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/./RealQZ.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/VertexContainerFwd.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/VertexFwd.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/versions/TrackParticleContainer_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/versions/TrackParticle_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/TrackParticleContainerFwd.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/TrackParticleFwd.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/VertexContainer.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/Vertex.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/versions/Vertex_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/GeoPrimitives/GeoPrimitives.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/Eigen/Geometry /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/NeutralParticleContainer.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/NeutralParticle.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/versions/NeutralParticle_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/versions/NeutralParticleContainer_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/versions/NeutralParticle_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/NeutralParticleContainerFwd.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/NeutralParticleFwd.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBase/ObjectType.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODCore/BaseInfo.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODTracking/versions/VertexContainer_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBTagging/BTagVertexContainer.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBTagging/BTagVertex.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBTagging/versions/BTagVertex_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBTagging/versions/BTagVertexContainer_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODBTagging/versions/BTaggingContainer_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/JetConstituentVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/JetTypes.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/Vector4D.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/Vector4Dfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/PxPyPzE4D.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/eta.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/etaMax.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/GenVector_exception.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/PtEtaPhiE4D.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/Math.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/PxPyPzM4D.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/PtEtaPhiM4D.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/LorentzVector.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/DisplacementVector3D.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/Cartesian3D.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/Polar3Dfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/PositionVector3Dfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/GenVectorIO.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/BitReproducible.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Math/GenVector/CoordinateSystemTags.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/JetAttributes.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/JetContainerInfo.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/versions/Jet_v1.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/versions/JetAccessorMap_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/ElementLinkVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/ElementLinkVectorBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthLinks/ElementLinkVector.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/JetAccessors.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/JetContainer.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODJet/versions/JetContainer_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/JetRec/JetModifierBase.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/AsgTool.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/AsgToolsConf.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/IAsgTool.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/AsgToolMacros.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/StatusCode.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/Check.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/MsgStreamMacros.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/MsgLevel.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/AsgMessaging.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/MsgStream.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/SgTEvent.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/SgTEvent.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/TEvent.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/Rtypes.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODEventFormat/EventFormat.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODEventFormat/versions/EventFormat_v1.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODEventFormat/EventFormatElement.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainersInterfaces/IAuxStoreHolder.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/tools/TReturnCode.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/TEvent.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/TStore.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/ConstDataVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/ConstDataVector.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/iterator/transform_iterator.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/type_traits/function_traits.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/utility/result_of.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/iteration/iterate.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/slot/slot.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/slot/detail/def.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/repetition/enum_binary_params.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/repetition/enum_shifted_params.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/facilities/intercept.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/utility/declval.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/utility/enable_if.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/core/enable_if.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/iteration/detail/iter/forward1.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/slot/detail/shared.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/boost/utility/detail/result_of_iterate.hpp /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/TStore.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AthContainers/normalizedTypeinfoName.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/tools/TDestructorRegistry.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/tools/TDestructorRegistry.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/tools/TDestructor.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/tools/TDestructor.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/tools/TCDVHolderT.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/tools/THolder.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/xAODRootAccess/tools/TCDVHolderT.icc /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TClass.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TDictionary.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/ESTLType.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TObjArray.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TSeqCollection.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TCollection.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TIterator.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/TObjString.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.16-x86_64-slc6-gcc49-opt/include/ThreadLocalStorage.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/AsgTool.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/PropertyMgr.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/Property.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/PropertyMgr.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/TProperty.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/ToolHandle.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/ToolHandle.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/ToolStore.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/ToolHandleArray.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/ToolHandleArray.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/TProperty.icc /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/SetProperty.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/JetInterface/ISingleJetModifier.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/JetInterface/IJetModifier.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/JetInterface/IJetPseudojetRetriever.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/JetSubStructureUtils/Dipolarity.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/JetSubStructureUtils/SubstructureCalculator.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/PseudoJet.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/internal/numconsts.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/internal/base.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/internal/IsBase.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/SharedPtr.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/Error.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/config.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/config_auto.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/PseudoJetStructureBase.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/FunctionOfPseudoJet.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/Selector.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/RangeDefinition.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/fastjet/LimitedWarning.hh /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/JetEDM/JetConstituentFiller.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/JetEDM/PseudoJetVector.h /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/include/AsgTools/CLASS_DEF.h
|
D
|
import std.stdio;
import std.datetime;
import std.complex;
import std.typecons;
import std.conv;
import std.algorithm;
import std.array;
import std.parallelism;
import imageformats.png;
auto flat_map(alias f, T)(T t) {
return map!f(t).joiner();
}
ubyte to_ubyte(float f) {
return to!ubyte(min(max(0, f * 255), 255));
}
struct Color {
ubyte r, g, b;
}
ubyte[] image_to_bytes(Color[] image) {
return cast(ubyte[]) image;
}
void main() {
StopWatch sw;
sw.start();
int w = 2^^11;
int h = 2^^11;
Color[] image = new Color[](w*h);
auto d = 0.1/2048;
auto y0 = 0.1/16+0.1/64;
auto y1 = y0 + d;
auto x0 = -0.8+0.045+0.1/32+0.1/64+0.1/512;
auto x1 = x0 + d;
int max_iter = 2^^12;
foreach (i, ref pixel; parallel(image, w*h/4)) {
auto y = i / w;
auto x = i % w;
auto iter = iters(complex(x0+(x1-x0)*x/w, y0+(y1-y0)*y/h), max_iter);
if (iter >= max_iter) continue;
auto c = to!double(iter) / max_iter;
image[i] = Color(
to_ubyte(3*c-2),
to_ubyte(3*c-1),
to_ubyte(3*c));
}
writeln(sw.peek().msecs);
write_png("out2.png", w, h, image.image_to_bytes());
writeln(sw.peek().msecs);
}
auto iters(Complex!double c, int max_iter) {
auto z = c;
foreach (iter; 0 .. max_iter/1) {
z = z*z + c;
if (z.sqAbs > 4) return iter*1;
}
return max_iter;
};
|
D
|
// Vicfred
// https://atcoder.jp/contests/abc163/tasks/abc163_d
// math
import std.stdio;
long ways(long k, long n) {
long minima = k*(k-1)/2;
long maxima = minima + k*(n-k+1);
return maxima - minima + 1;
}
void main() {
long n, k;
readf("%s %s\n", &n, &k);
long mod = 10^^9+7;
long answer = 0;
for(long i = k; i <= n+1; i++)
answer = (answer+ways(i, n))%mod;
answer %= mod;
answer.writeln;
}
|
D
|
/home/drees/sc101/sc101/target/release/deps/libthiserror_impl-d2cd3ab613916ed6.so: /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/lib.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/ast.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/attr.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/expand.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/fmt.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/prop.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/valid.rs
/home/drees/sc101/sc101/target/release/deps/thiserror_impl-d2cd3ab613916ed6.d: /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/lib.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/ast.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/attr.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/expand.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/fmt.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/prop.rs /home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/valid.rs
/home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/lib.rs:
/home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/ast.rs:
/home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/attr.rs:
/home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/expand.rs:
/home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/fmt.rs:
/home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/prop.rs:
/home/drees/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.26/src/valid.rs:
|
D
|
/Users/amori/projects/world-game/target/rls/debug/deps/unreachable-a3b76aa262bc45d9.rmeta: /Users/amori/.cargo/registry/src/github.com-1ecc6299db9ec823/unreachable-0.1.1/src/lib.rs
/Users/amori/projects/world-game/target/rls/debug/deps/unreachable-a3b76aa262bc45d9.d: /Users/amori/.cargo/registry/src/github.com-1ecc6299db9ec823/unreachable-0.1.1/src/lib.rs
/Users/amori/.cargo/registry/src/github.com-1ecc6299db9ec823/unreachable-0.1.1/src/lib.rs:
|
D
|
// This source code is in the public domain.
// Custom Content area Dialog
import std.stdio;
import std.typecons;
import std.conv;
import gtk.MainWindow;
import gtk.Window;
import gtk.Main;
import gtk.Box;
import gtk.Button;
import gtk.Dialog;
import gtk.c.types;
import gtk.Widget;
import gtk.Box;
import gtk.Grid;
import gtk.Label;
import gtk.Entry;
void main(string[] args)
{
TestRigWindow testRigWindow;
Main.init(args);
testRigWindow = new TestRigWindow();
Main.run();
} // main()
class TestRigWindow : MainWindow
{
string title = "Custom Content Area";
AppBox appBox;
this()
{
super(title);
addOnDestroy(&quitApp);
appBox = new AppBox(this);
add(appBox);
showAll();
} // this() CONSTRUCTOR
void quitApp(Widget widget)
{
writeln("Bye.");
Main.quit();
} // quitApp()
} // class TestRigWindow
class AppBox : Box
{
DialogButton dialogButton;
this(Window parentWindow)
{
super(Orientation.VERTICAL, 10);
dialogButton = new DialogButton(parentWindow);
packStart(dialogButton, false, false, 0);
} // this()
} // class AppBox
class DialogButton : Button
{
private:
string labelText = "Open a Dialog";
NewImageDialog newImageDialog;
Window _parentWindow;
public:
this(Window parentWindow)
{
super(labelText);
addOnClicked(&doSomething);
_parentWindow = parentWindow;
} // this()
void doSomething(Button b)
{
newImageDialog = new NewImageDialog(_parentWindow);
} // doSomething()
} // class: DialogButton
class NewImageDialog : Dialog
{
private:
GtkDialogFlags flags = GtkDialogFlags.MODAL;
MessageType messageType = MessageType.INFO;
string[] buttonLabels = ["OK", "Save Preset", "Cancel"];
int responseID;
ResponseType[] responseTypes = [ResponseType.OK, ResponseType.ACCEPT, ResponseType.CANCEL];
string messageText = "";
string titleText = "New image...";
Window _parentWindow;
Box contentArea; // grabbed from the Dialog
AreaContent areaContent; // this is filled with stuff and passed to contentArea;
public:
this(Window parentWindow)
{
_parentWindow = parentWindow;
super(titleText, _parentWindow, flags, buttonLabels, responseTypes);
farmOutContent();
addOnResponse(&doSomething);
run();
destroy();
} // this()
void farmOutContent()
{
// FARM it out to AreaContent class
contentArea = getContentArea();
areaContent = new AreaContent(contentArea);
} // farmOutContent()
void doSomething(int response, Dialog d)
{
switch(response)
{
case ResponseType.OK:
writeln("Creating new image file with these specs:");
foreach(item; areaContent.getNewImageDataGrid.getData())
{
writeln("data item: ", item);
}
/*
writeln("filename: ", areaContent.getNewImageDataGrid.getData()[0]);
writeln("width: ", areaContent.getNewImageDataGrid.getData()[1]);
writeln("height: ", areaContent.getNewImageDataGrid.getData()[2]);
writeln("resolution: ", areaContent.getNewImageDataGrid.getData()[3]);
*/
break;
case ResponseType.ACCEPT:
writeln("Bringing up a second dialog to save presets using...");
foreach(item; areaContent.getNewImageDataGrid.getData())
{
writeln("data item: ", item);
}
break;
case ResponseType.CANCEL:
writeln("Cancelled.");
break;
default:
writeln("Dialog closed.");
break;
}
} // doSomething()
} // class NewImageDialog
class AreaContent
{
private:
Box _contentArea;
NewImageDataGrid _newImageDataGrid;
public:
this(Box contentArea)
{
_contentArea = contentArea;
_newImageDataGrid = new NewImageDataGrid();
_contentArea.add(_newImageDataGrid);
_contentArea.showAll();
} // this()
NewImageDataGrid getNewImageDataGrid()
{
return(_newImageDataGrid);
} // getNewImageDataGrid()
} // class AreaContent
class NewImageDataGrid : Grid
{
private:
int _borderWidth = 10; // keeps the widgets from crowding each other in the grid
PadLabel filenameLabel;
string filenameLabelText = "Filename:";
PadEntry filenameEntry;
string filenamePlaceholderText = "Untitled";
PadLabel widthLabel;
string widthLabelText = "Width:";
PadEntry widthEntry;
string widthPlaceholderText = "1920";
PadLabel widthUnitsLabel;
string widthUnitsLabelText = "pixels";
PadLabel heightLabel;
string heightLabelText = "Height:";
PadEntry heightEntry;
string heightPlaceholderText = "1080";
PadLabel heightUnitsLabel;
string heightUnitsLabelText = "pixels";
PadLabel resolutionLabel;
string resolutionLabelText = "Resolution:";
PadEntry resolutionEntry;
string resolutionPlaceholderText = "300";
PadLabel resolutionUnitsLabel;
string resolutionUnitsLabelText = "pixels/inch";
// store the user-supplied data so it can be retrieved later
string _filename;
int _width, _height, _resolution;
public:
this()
{
super();
setBorderWidth(_borderWidth); // keeps the grid separated from the window edges
// row 0
filenameLabel = new PadLabel(BoxJustify.RIGHT, filenameLabelText);
attach(filenameLabel, 0, 0, 1, 1);
filenameEntry = new PadEntry(BoxJustify.LEFT, filenamePlaceholderText);
filenameEntry.setWidthInCharacters(30);
attach(filenameEntry, 1, 0, 2, 1);
// row 1
widthLabel = new PadLabel(BoxJustify.RIGHT, widthLabelText);
attach(widthLabel, 0, 1, 1, 1);
widthEntry = new PadEntry(BoxJustify.LEFT, widthPlaceholderText);
attach(widthEntry, 1, 1, 1, 1);
widthUnitsLabel = new PadLabel(BoxJustify.LEFT, widthUnitsLabelText);
attach(widthUnitsLabel, 2, 1, 1, 1);
// row 2
heightLabel = new PadLabel(BoxJustify.RIGHT, heightLabelText);
attach(heightLabel, 0, 2, 1, 1);
heightEntry = new PadEntry(BoxJustify.LEFT, heightPlaceholderText);
attach(heightEntry, 1, 2, 1, 1);
heightUnitsLabel = new PadLabel(BoxJustify.LEFT, heightUnitsLabelText);
attach(heightUnitsLabel, 2, 2, 1, 1);
// row 3
resolutionLabel = new PadLabel(BoxJustify.RIGHT, resolutionLabelText);
attach(resolutionLabel, 0, 3, 1, 1);
resolutionEntry = new PadEntry(BoxJustify.LEFT, resolutionPlaceholderText);
attach(resolutionEntry, 1, 3, 1, 1);
resolutionUnitsLabel = new PadLabel(BoxJustify.LEFT, resolutionUnitsLabelText);
attach(resolutionUnitsLabel, 2, 3, 1, 1);
setMarginBottom(7);
} // this()
Tuple!(string, int, int, int) getData()
{
_filename = filenameEntry.getText();
_width = to!int(widthEntry.getText());
_height = to!int(heightEntry.getText());
_resolution = to!int(resolutionEntry.getText());
// build an associative array of user-supplied data
return(tuple(_filename, _width, _height, _resolution));
} // getData()
} // class NewImageDataGrid
class PadLabel : HPadBox
{
Label label;
this(BoxJustify pJustify, string text = null)
{
label = new Label(text);
super(label, pJustify);
} // this()
} // class PadLabel
class PadEntry : HPadBox
{
Entry _entry;
string _placeholderText;
this(BoxJustify pJustify, string placeholderText = null)
{
if(placeholderText !is null)
{
_placeholderText = placeholderText;
}
else
{
_placeholderText = "";
}
_entry = new Entry(_placeholderText);
super(_entry, pJustify);
} // this()
void setVisibility(bool state)
{
_entry.setVisibility(state);
} // setVisibility()
void setWidthInCharacters(int width)
{
_entry.setWidthChars(width);
} // setWidthInCharacters()
string getText()
{
return(_entry.getText());
}
} // class PadLabel
class HPadBox : Box
{
private:
Widget _widget;
int globalPadding = 0;
int padding = 0;
bool fill = false;
bool expand = false;
int _borderWidth = 5;
BoxJustify _pJustify;
public:
this(Widget widget, BoxJustify pJustify)
{
_widget = widget;
_pJustify = pJustify;
super(Orientation.HORIZONTAL, globalPadding);
if(_pJustify == BoxJustify.LEFT)
{
packStart(_widget, expand, fill, padding);
}
else if(_pJustify == BoxJustify.RIGHT)
{
packEnd(_widget, expand, fill, padding);
}
else
{
add(_widget);
}
setBorderWidth(_borderWidth);
} // this()
} // class HPadBox
enum BoxJustify
{
LEFT = 0,
RIGHT = 1,
CENTER = 2,
} // BoxJustify
|
D
|
module test;
import std.algorithm;
import std.array;
import std.conv;
import std.range;
import std.stdio;
import std.typecons;
import pegged.grammar;
import pegged.examples.dgrammar;
enum input = //JSONGrammar;
`
TEST:
A <- 'a'
B <- A?
C <- [0-9]+
D <- C B*
`;
void main()
{
auto c = checkGrammar(input, ReduceFurther.Yes);
writeln(c);
foreach(k,v;c)
if (v != Diagnostic.NoRisk) writeln(k,":",v);
}
|
D
|
// Copyright 2019, University of Freiburg.
// Chair of Algorithms and Data Structures.
// Markus Näther <naetherm@informatik.uni-freiburg.de>
module dgenerator.nlp.nlp;
import std.container: Array;
import std.stdio;
import std.conv;
import std.file: readText, FileException;
import std.json;
import std.path;
import std.string;
import std.algorithm: canFind;
/**
* @class
* Dictionary
*
* @brief
* Very basic dictionary that can represent any list of types.
*/
class Dictionary {
this(string sDataDir, string sLangCode, int nColumnOfInterest, char cDelimiter) {
this.msDataDir = sDataDir;
this.msLangCode = sLangCode;
this.mcDelimiter = cDelimiter;
this.mnColumnOfInterest = nColumnOfInterest;
// Read all important information
this.readIn();
}
private void readIn() {
string[] readData = readText(buildPath(this.msDataDir, format("%s.bin", this.msLangCode))).split("\n");
foreach(line; readData) {
this.msData ~= to!dstring(line.split(this.mcDelimiter)[this.mnColumnOfInterest]);
}
}
/**
* @brief
* Determines and returns whether a given word @p sWord is within this dictionary.
*
* @return
* True if the given word can be found within this dictionary, false otherwise.
*/
public bool contains(dstring sWord) {
return this.msData.canFind(sWord);
}
private dstring[] msData;
private string msDataDir;
private string msLangCode;
private char mcDelimiter;
private int mnColumnOfInterest;
}
/**
* @enum
* Verbtenses
*
* @brief
*/
enum VerbTenses {
Infinitive = 0,
FirstSingularPresent,
SecondSingularPresent,
ThirdSingularPresent,
PresentPlural,
PresentParticiple,
FirstSingularPast,
SecondSingularPast,
ThirdSingularPast,
PastPlural,
Past,
PastParticiple
}
/**
* @class
* VerbTable
*
* @brief
*/
class VerbTable {
/**
* @brief
* Default constructor.
*/
this(string sDataDir, string sLangCode) {
this.msDataDir = sDataDir;
this.msLangCode = sLangCode;
// Read in the verb forms
this.readIn();
}
/**
* @brief
* Basic check whether the given word @p sWord is a verb.
*
* @return
* True if the given word is a known verb, false otherwise.
*/
public bool isVerb(dstring sWord) {
return ((sWord in this.mlstVerbLemmas) !is null);
}
/**
* @brief
* Returns the infinitive form of a verb, if it's known.
*
* @return
* The infinitive form of a verb.
*/
public dstring getInfinitive(dstring sWord) {
if (sWord in this.mlstVerbLemmas) {
return this.mlstVerbLemmas[sWord];
}
return "";
}
/**
* @brief
* This method will conjugate a given verb @p sWord to the verb tense @p cTense. One can further
* define whether the negated form should be returned, if there is any negated form available.
* If now negation is available an empty string will be returned.
*
* @return
* The conjugated form of the word @p sWord.
*/
public dstring conjugate(dstring sWord, VerbTenses cTense, bool bNegate=false) {
// First get the infinitive form
auto infForm = this.getInfinitive(sWord);
int nElementIdx = to!int(cTense);
int nFinalIdx = nElementIdx;
// The negated forms are appended at the end!
if (bNegate) {
nFinalIdx += to!int(VerbTenses.max);
}
if (this.mlstVerbTenses[infForm][nFinalIdx] != "") {
return this.mlstVerbTenses[infForm][nFinalIdx];
} else {
return this.mlstVerbTenses[infForm][nElementIdx];
}
}
public VerbTenses verbTense(dstring sWord) {
// First get the "lemma"
auto lemma = this.mlstVerbLemmas[sWord];
for(size_t i = 0; i < VerbTenses.max; ++i) {
if (this.mlstVerbTenses[lemma][i] == sWord) {
return to!VerbTenses(i);
}
}
return VerbTenses.Infinitive;
}
public dstring verbPresent(dstring sWord, VerbTenses cTense, bool bNegate=false) {
auto sPresent = this.conjugate(sWord, cTense, bNegate);
if (sPresent != "") {
return sPresent;
}
return this.conjugate(sWord, VerbTenses.Infinitive, bNegate);
}
public dstring verbPast(dstring sWord, VerbTenses cTense, bool bNegate=false) {
auto sPast = this.conjugate(sWord, cTense, bNegate);
if (sPast != "") {
return sPast;
}
return this.conjugate(sWord, VerbTenses.Past, bNegate);
}
public dstring verbPresentParticiple(dstring sWord) {
return this.conjugate(sWord, VerbTenses.PresentParticiple);
}
public dstring getRandomTense(dstring sVerb) {
auto currentTense = this.verbTense(sVerb);
VerbTenses cTense = VerbTenses.Infinitive;
return this.mlstVerbTenses[this.mlstVerbLemmas[sVerb]][to!int(cTense)];
}
/**
* @brief
* Reads the verb list and builds the conjugation and lemma table for all found verbs.
*/
private void readIn() {
///
/// The structure of each line of the file is:
///
///
string[] verbs = readText(buildPath(to!string(this.msDataDir), format("%s.bin", this.msLangCode))).split("\n");
// Now loop through all verbs (obviously not all verbs but the most ~10,000 common verbs)
foreach(line; verbs) {
string[] conjugations = line.split(',');
auto baseForm = to!dstring(conjugations[0]);
// Add verb to mlstVerbTenses
this.mlstVerbTenses[baseForm] = to!(dstring[])(conjugations);
// Create lemmas entries
foreach(lemma; conjugations) {
this.mlstVerbLemmas[to!dstring(lemma)] = baseForm;
}
}
}
/**
* The data directory of the files.
*/
private string msDataDir;
/**
* The language code of the language code to use.
*/
private string msLangCode;
/**
* List of verb tenses
*/
private dstring[][dstring] mlstVerbTenses;
/**
* List of verb lemmas
*/
private dstring[dstring] mlstVerbLemmas;
}
|
D
|
module app.controller.api.IndexController;
import hunt.logging.ConsoleLogger;
import hunt.framework;
import app.model.Greeting;
import std.datetime;
class IndexController : Controller {
mixin MakeController;
@Action string index() {
return "API index.";
}
@Action string test() {
// https://api.example.com/test/
warning("index.test url: ", url("index.test", null, request().routeGroup()));
warning("index.test url: ", url("index.test", null, "api"));
trace("index.test url: ", url("api:index.test", null, "admin"));
warning("index.test url: ", url("api:index.test"));
return "API test.";
}
@Action string secret() {
return "It's a secret page in admin.";
}
@Action Greeting showObject() {
Greeting g = new Greeting();
g.content = "Wellcome Hunt!";
g.creationTime = Clock.currTime;
g.currentTime = Clock.currStdTime;
return g;
}
}
|
D
|
/*
* Copyright (c) 2004-2009 Derelict Developers
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the names 'Derelict', 'DerelictGL', nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
module derelict.opengl.extension.nv.fog_distance;
private
{
import derelict.opengl.gltypes;
import derelict.opengl.gl;
import derelict.util.wrapper;
}
private bool enabled = false;
struct NVFogDistance
{
static bool load(char[] extString)
{
if(extString.findStr("GL_NV_fog_distance") == -1)
return false;
enabled = true;
return true;
}
static bool isEnabled()
{
return enabled;
}
}
version(DerelictGL_NoExtensionLoaders)
{
}
else
{
static this()
{
DerelictGL.registerExtensionLoader(&NVFogDistance.load);
}
}
enum : GLenum
{
GL_FOG_DISTANCE_MODE_NV = 0x855A,
GL_EYE_RADIAL_NV = 0x855B,
GL_EYE_PLANE_ABSOLUTE_NV = 0x855C,
}
|
D
|
// Written in the D programming language.
/**
* This module implements a
* $(LINK2 http://erdani.org/publications/cuj-04-2002.html,discriminated union)
* type (a.k.a.
* $(LINK2 http://en.wikipedia.org/wiki/Tagged_union,tagged union),
* $(LINK2 http://en.wikipedia.org/wiki/Algebraic_data_type,algebraic type)).
* Such types are useful
* for type-uniform binary interfaces, interfacing with scripting
* languages, and comfortable exploratory programming.
*
* Macros:
* WIKI = Phobos/StdVariant
*
* Synopsis:
*
* ----
* Variant a; // Must assign before use, otherwise exception ensues
* // Initialize with an integer; make the type int
* Variant b = 42;
* assert(b.type == typeid(int));
* // Peek at the value
* assert(b.peek!(int) !is null && *b.peek!(int) == 42);
* // Automatically convert per language rules
* auto x = b.get!(real);
* // Assign any other type, including other variants
* a = b;
* a = 3.14;
* assert(a.type == typeid(double));
* // Implicit conversions work just as with built-in types
* assert(a > b);
* // Check for convertibility
* assert(!a.convertsTo!(int)); // double not convertible to int
* // Strings and all other arrays are supported
* a = "now I'm a string";
* assert(a == "now I'm a string");
* a = new int[42]; // can also assign arrays
* assert(a.length == 42);
* a[5] = 7;
* assert(a[5] == 7);
* // Can also assign class values
* class Foo {}
* auto foo = new Foo;
* a = foo;
* assert(*a.peek!(Foo) == foo); // and full type information is preserved
* ----
*
* Credits:
*
* Reviewed by Brad Roberts. Daniel Keep provided a detailed code
* review prompting the following improvements: (1) better support for
* arrays; (2) support for associative arrays; (3) friendlier behavior
* towards the garbage collector.
*
* Copyright: Copyright Andrei Alexandrescu 2007 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: $(WEB erdani.org, Andrei Alexandrescu)
* Source: $(PHOBOSSRC std/_variant.d)
*/
/* Copyright Andrei Alexandrescu 2007 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module std.variant;
import std.traits, std.c.string, std.typetuple, std.conv, std.exception;
// version(unittest)
// {
import std.exception, std.stdio;
//}
@trusted:
private template maxSize(T...)
{
static if (T.length == 1)
{
enum size_t maxSize = T[0].sizeof;
}
else
{
enum size_t maxSize = T[0].sizeof >= maxSize!(T[1 .. $])
? T[0].sizeof : maxSize!(T[1 .. $]);
}
}
struct This;
template AssociativeArray(T)
{
enum bool valid = false;
alias void Key;
alias void Value;
}
template AssociativeArray(T : V[K], K, V)
{
enum bool valid = true;
alias K Key;
alias V Value;
}
template This2Variant(V, T...)
{
static if (T.length == 0) alias TypeTuple!() This2Variant;
else static if (is(AssociativeArray!(T[0]).Key == This))
{
static if (is(AssociativeArray!(T[0]).Value == This))
alias TypeTuple!(V[V],
This2Variant!(V, T[1 .. $])) This2Variant;
else
alias TypeTuple!(AssociativeArray!(T[0]).Value[V],
This2Variant!(V, T[1 .. $])) This2Variant;
}
else static if (is(AssociativeArray!(T[0]).Value == This))
alias TypeTuple!(V[AssociativeArray!(T[0]).Key],
This2Variant!(V, T[1 .. $])) This2Variant;
else static if (is(T[0] == This[]))
alias TypeTuple!(V[], This2Variant!(V, T[1 .. $])) This2Variant;
else static if (is(T[0] == This*))
alias TypeTuple!(V*, This2Variant!(V, T[1 .. $])) This2Variant;
else
alias TypeTuple!(T[0], This2Variant!(V, T[1 .. $])) This2Variant;
}
/**
* $(D_PARAM VariantN) is a back-end type seldom used directly by user
* code. Two commonly-used types using $(D_PARAM VariantN) as
* back-end are:
*
* $(OL $(LI $(B Algebraic): A closed discriminated union with a
* limited type universe (e.g., $(D_PARAM Algebraic!(int, double,
* string)) only accepts these three types and rejects anything
* else).) $(LI $(B Variant): An open discriminated union allowing an
* unbounded set of types. The restriction is that the size of the
* stored type cannot be larger than the largest built-in type. This
* means that $(D_PARAM Variant) can accommodate all primitive types
* and all user-defined types except for large $(D_PARAM struct)s.) )
*
* Both $(D_PARAM Algebraic) and $(D_PARAM Variant) share $(D_PARAM
* VariantN)'s interface. (See their respective documentations below.)
*
* $(D_PARAM VariantN) is a discriminated union type parameterized
* with the largest size of the types stored ($(D_PARAM maxDataSize))
* and with the list of allowed types ($(D_PARAM AllowedTypes)). If
* the list is empty, then any type up of size up to $(D_PARAM
* maxDataSize) (rounded up for alignment) can be stored in a
* $(D_PARAM VariantN) object.
*
*/
struct VariantN(size_t maxDataSize, AllowedTypesX...)
{
alias This2Variant!(VariantN, AllowedTypesX) AllowedTypes;
private:
// Compute the largest practical size from maxDataSize
struct SizeChecker
{
int function() fptr;
ubyte[maxDataSize] data;
}
enum size = SizeChecker.sizeof - (int function()).sizeof;
static assert(size >= (void*).sizeof);
/** Tells whether a type $(D_PARAM T) is statically allowed for
* storage inside a $(D_PARAM VariantN) object by looking
* $(D_PARAM T) up in $(D_PARAM AllowedTypes). If $(D_PARAM
* AllowedTypes) is empty, all types of size up to $(D_PARAM
* maxSize) are allowed.
*/
public template allowed(T)
{
enum bool allowed
= is(T == VariantN)
||
//T.sizeof <= size &&
(AllowedTypes.length == 0 || staticIndexOf!(T, AllowedTypes) >= 0);
}
// Each internal operation is encoded with an identifier. See
// the "handler" function below.
enum OpID { getTypeInfo, get, compare, testConversion, toString,
index, indexAssign, catAssign, copyOut, length,
apply }
// state
sizediff_t function(OpID selector, ubyte[size]* store, void* data) fptr
= &handler!(void);
union
{
ubyte[size] store;
// conservatively mark the region as pointers
static if (size >= (void*).sizeof)
void* p[size / (void*).sizeof];
}
// internals
// Handler for an uninitialized value
static sizediff_t handler(A : void)(OpID selector, ubyte[size]*, void* parm)
{
switch (selector)
{
case OpID.getTypeInfo:
*cast(TypeInfo *) parm = typeid(A);
break;
case OpID.copyOut:
auto target = cast(VariantN *) parm;
target.fptr = &handler!(A);
// no need to copy the data (it's garbage)
break;
case OpID.compare:
auto rhs = cast(VariantN *) parm;
return rhs.peek!(A)
? 0 // all uninitialized are equal
: int.min; // uninitialized variant is not comparable otherwise
case OpID.toString:
string * target = cast(string*) parm;
*target = "<Uninitialized VariantN>";
break;
case OpID.get:
case OpID.testConversion:
case OpID.index:
case OpID.indexAssign:
case OpID.catAssign:
case OpID.length:
throw new VariantException(
"Attempt to use an uninitialized VariantN");
default: assert(false, "Invalid OpID");
}
return 0;
}
// Handler for all of a type's operations
static sizediff_t handler(A)(OpID selector, ubyte[size]* pStore, void* parm)
{
static A* getPtr(void* untyped)
{
if (untyped)
{
static if (A.sizeof <= size)
return cast(A*) untyped;
else
return *cast(A**) untyped;
}
return null;
}
auto zis = getPtr(pStore);
// Input: TypeInfo object
// Output: target points to a copy of *me, if me was not null
// Returns: true iff the A can be converted to the type represented
// by the incoming TypeInfo
static bool tryPutting(A* src, TypeInfo targetType, void* target)
{
alias TypeTuple!(A, ImplicitConversionTargets!A) AllTypes;
foreach (T ; AllTypes)
{
if (targetType != typeid(T) &&
targetType != typeid(const(T)))
{
static if (isImplicitlyConvertible!(T, immutable(T)))
{
if (targetType != typeid(immutable(T)))
{
continue;
}
}
else
{
continue;
}
}
// found!!!
static if (is(typeof(*cast(T*) target = *src)))
{
auto zat = cast(T*) target;
if (src)
{
assert(target, "target must be non-null");
*zat = *src;
}
}
else
{
// type is not assignable
if (src) assert(false, A.stringof);
}
return true;
}
return false;
}
switch (selector)
{
case OpID.getTypeInfo:
*cast(TypeInfo *) parm = typeid(A);
break;
case OpID.copyOut:
auto target = cast(VariantN *) parm;
assert(target);
tryPutting(zis, typeid(A), cast(void*) getPtr(&target.store))
|| assert(false);
target.fptr = &handler!(A);
break;
case OpID.get:
return !tryPutting(zis, *cast(TypeInfo*) parm, parm);
case OpID.testConversion:
return !tryPutting(null, *cast(TypeInfo*) parm, null);
case OpID.compare:
auto rhsP = cast(VariantN *) parm;
auto rhsType = rhsP.type;
// Are we the same?
if (rhsType == typeid(A))
{
// cool! Same type!
auto rhsPA = getPtr(&rhsP.store);
static if (is(typeof(A.init == A.init)))
{
if (*rhsPA == *zis)
{
return 0;
}
static if (is(typeof(A.init < A.init)))
{
return *zis < *rhsPA ? -1 : 1;
}
}
else
{
// type doesn't support ordering comparisons
return int.min;
}
} else if (rhsType == typeid(void))
{
// No support for ordering comparisons with
// uninitialized vars
return int.min;
}
VariantN temp;
// Do I convert to rhs?
if (tryPutting(zis, rhsType, &temp.store))
{
// cool, I do; temp's store contains my data in rhs's type!
// also fix up its fptr
temp.fptr = rhsP.fptr;
// now lhsWithRhsType is a full-blown VariantN of rhs's type
return temp.opCmp(*rhsP);
}
// Does rhs convert to zis?
*cast(TypeInfo*) &temp.store = typeid(A);
if (rhsP.fptr(OpID.get, &rhsP.store, &temp.store) == 0)
{
// cool! Now temp has rhs in my type!
auto rhsPA = getPtr(&temp.store);
static if (is(typeof(A.init == A.init)))
{
if (*rhsPA == *zis)
{
return 0;
}
static if (is(typeof(A.init < A.init)))
{
return *zis < *rhsPA ? -1 : 1;
}
}
else
{
// type doesn't support ordering comparisons
return int.min;
}
}
return int.min; // dunno
case OpID.toString:
auto target = cast(string*) parm;
static if (is(typeof(to!(string)(*zis))))
{
*target = to!(string)(*zis);
break;
}
// TODO: The following test evaluates to true for shared objects.
// Use __traits for now until this is sorted out.
// else static if (is(typeof((*zis).toString)))
else static if (__traits(compiles, {(*zis).toString();}))
{
*target = (*zis).toString();
break;
}
else
{
throw new VariantException(typeid(A), typeid(string));
}
case OpID.index:
// Added allowed!(...) prompted by a bug report by Chris
// Nicholson-Sauls.
static if (isStaticArray!(A) && allowed!(typeof(A.init)))
{
enforce(0, "Not implemented");
}
static if (isDynamicArray!(A) && allowed!(typeof(A.init[0])))
{
// array type; input and output are the same VariantN
auto result = cast(VariantN*) parm;
size_t index = result.convertsTo!(int)
? result.get!(int) : result.get!(size_t);
*result = (*zis)[index];
break;
}
else static if (isAssociativeArray!(A)
&& allowed!(typeof(A.init.values[0])))
{
auto result = cast(VariantN*) parm;
*result = (*zis)[result.get!(typeof(A.keys[0]))];
break;
}
else
{
throw new VariantException(typeid(A), typeid(void[]));
}
case OpID.indexAssign:
static if (isArray!(A) && is(typeof((*zis)[0] = (*zis)[0])))
{
// array type; result comes first, index comes second
auto args = cast(VariantN*) parm;
size_t index = args[1].convertsTo!(int)
? args[1].get!(int) : args[1].get!(size_t);
(*zis)[index] = args[0].get!(typeof((*zis)[0]));
break;
}
else static if (isAssociativeArray!(A))
{
auto args = cast(VariantN*) parm;
(*zis)[args[1].get!(typeof(A.keys[0]))]
= args[0].get!(typeof(A.values[0]));
break;
}
else
{
throw new VariantException(typeid(A), typeid(void[]));
}
case OpID.catAssign:
static if (is(typeof((*zis)[0])) && is(typeof((*zis) ~= *zis)))
{
// array type; parm is the element to append
auto arg = cast(VariantN*) parm;
alias typeof((*zis)[0]) E;
if (arg[0].convertsTo!(E))
{
// append one element to the array
(*zis) ~= [ arg[0].get!(E) ];
}
else
{
// append a whole array to the array
(*zis) ~= arg[0].get!(A);
}
break;
}
else
{
throw new VariantException(typeid(A), typeid(void[]));
}
case OpID.length:
static if (is(typeof(zis.length)))
{
return zis.length;
}
else
{
throw new VariantException(typeid(A), typeid(void[]));
}
case OpID.apply:
assert(0);
default: assert(false);
}
return 0;
}
public:
/** Constructs a $(D_PARAM VariantN) value given an argument of a
* generic type. Statically rejects disallowed types.
*/
this(T)(T value)
{
static assert(allowed!(T), "Cannot store a " ~ T.stringof
~ " in a " ~ VariantN.stringof);
opAssign(value);
}
/** Assigns a $(D_PARAM VariantN) from a generic
* argument. Statically rejects disallowed types. */
VariantN opAssign(T)(T rhs)
{
//writeln(typeid(rhs));
static assert(allowed!(T), "Cannot store a " ~ T.stringof
~ " in a " ~ VariantN.stringof ~ ". Valid types are "
~ AllowedTypes.stringof);
static if (is(T : VariantN))
{
rhs.fptr(OpID.copyOut, &rhs.store, &this);
}
else static if (is(T : const(VariantN)))
{
static assert(false,
"Assigning Variant objects from const Variant"
" objects is currently not supported.");
}
else
{
static if (T.sizeof <= size)
{
// If T is a class we're only copying the reference, so it
// should be safe to cast away shared so the memcpy will work.
//
// TODO: If a shared class has an atomic reference then using
// an atomic load may be more correct. Just make sure
// to use the fastest approach for the load op.
static if (is(T == class) && is(T == shared))
memcpy(&store, cast(const(void*)) &rhs, rhs.sizeof);
else
memcpy(&store, &rhs, rhs.sizeof);
}
else
{
static if (__traits(compiles, {new T(rhs);}))
{
auto p = new T(rhs);
}
else
{
auto p = new T;
*p = rhs;
}
memcpy(&store, &p, p.sizeof);
}
fptr = &handler!(T);
}
return this;
}
/** Returns true if and only if the $(D_PARAM VariantN) object
* holds a valid value (has been initialized with, or assigned
* from, a valid value).
* Example:
* ----
* Variant a;
* assert(!a.hasValue);
* Variant b;
* a = b;
* assert(!a.hasValue); // still no value
* a = 5;
* assert(a.hasValue);
* ----
*/
@property bool hasValue() const pure nothrow
{
// @@@BUG@@@ in compiler, the cast shouldn't be needed
return cast(typeof(&handler!(void))) fptr != &handler!(void);
}
/**
* If the $(D_PARAM VariantN) object holds a value of the
* $(I exact) type $(D_PARAM T), returns a pointer to that
* value. Otherwise, returns $(D_PARAM null). In cases
* where $(D_PARAM T) is statically disallowed, $(D_PARAM
* peek) will not compile.
*
* Example:
* ----
* Variant a = 5;
* auto b = a.peek!(int);
* assert(b !is null);
* *b = 6;
* assert(a == 6);
* ----
*/
@property T * peek(T)()
{
static if (!is(T == void))
static assert(allowed!(T), "Cannot store a " ~ T.stringof
~ " in a " ~ VariantN.stringof);
return type == typeid(T) ? cast(T*) &store : null;
}
/**
* Returns the $(D_PARAM typeid) of the currently held value.
*/
@property TypeInfo type() const
{
TypeInfo result;
fptr(OpID.getTypeInfo, null, &result);
return result;
}
/**
* Returns $(D_PARAM true) if and only if the $(D_PARAM VariantN)
* object holds an object implicitly convertible to type $(D_PARAM
* U). Implicit convertibility is defined as per
* $(LINK2 std_traits.html#ImplicitConversionTargets,ImplicitConversionTargets).
*/
@property bool convertsTo(T)() const
{
TypeInfo info = typeid(T);
return fptr(OpID.testConversion, null, &info) == 0;
}
// private T[] testing123(T)(T*);
// /**
// * A workaround for the fact that functions cannot return
// * statically-sized arrays by value. Essentially $(D_PARAM
// * DecayStaticToDynamicArray!(T[N])) is an alias for $(D_PARAM
// * T[]) and $(D_PARAM DecayStaticToDynamicArray!(T)) is an alias
// * for $(D_PARAM T).
// */
// template DecayStaticToDynamicArray(T)
// {
// static if (isStaticArray!(T))
// {
// alias typeof(testing123(&T[0])) DecayStaticToDynamicArray;
// }
// else
// {
// alias T DecayStaticToDynamicArray;
// }
// }
// static assert(is(DecayStaticToDynamicArray!(immutable(char)[21]) ==
// immutable(char)[]),
// DecayStaticToDynamicArray!(immutable(char)[21]).stringof);
/**
* Returns the value stored in the $(D_PARAM VariantN) object,
* implicitly converted to the requested type $(D_PARAM T), in
* fact $(D_PARAM DecayStaticToDynamicArray!(T)). If an implicit
* conversion is not possible, throws a $(D_PARAM
* VariantException).
*/
@property T get(T)() if (!is(T == const))
{
union Buf
{
TypeInfo info;
T result;
}
auto p = *cast(T**) &store;
Buf buf = { typeid(T) };
if (fptr(OpID.get, &store, &buf))
{
throw new VariantException(type, typeid(T));
}
return buf.result;
}
@property T get(T)() const if (is(T == const))
{
union Buf
{
TypeInfo info;
Unqual!T result;
}
auto p = *cast(T**) &store;
Buf buf = { typeid(T) };
if (fptr(OpID.get, cast(ubyte[size]*) &store, &buf))
{
throw new VariantException(type, typeid(T));
}
return buf.result;
}
/**
* Returns the value stored in the $(D_PARAM VariantN) object,
* explicitly converted (coerced) to the requested type $(D_PARAM
* T). If $(D_PARAM T) is a string type, the value is formatted as
* a string. If the $(D_PARAM VariantN) object is a string, a
* parse of the string to type $(D_PARAM T) is attempted. If a
* conversion is not possible, throws a $(D_PARAM
* VariantException).
*/
@property T coerce(T)()
{
static if (isNumeric!(T))
{
if (convertsTo!real())
{
// maybe optimize this fella; handle ints separately
return to!T(get!real);
}
else if (convertsTo!(const(char)[]))
{
return to!T(get!(const(char)[]));
}
// I'm not sure why this doesn't convert to const(char),
// but apparently it doesn't (probably a deeper bug).
//
// Until that is fixed, this quick addition keeps a common
// function working. "10".coerce!int ought to work.
else if (convertsTo!(immutable(char)[]))
{
return to!T(get!(immutable(char)[]));
}
else
{
enforce(false, text("Type ", type(), " does not convert to ",
typeid(T)));
assert(0);
}
}
else static if (is(T : Object))
{
return to!(T)(get!(Object));
}
else static if (isSomeString!(T))
{
return to!(T)(toString());
}
else
{
// Fix for bug 1649
static assert(false, "unsupported type for coercion");
}
}
// testing the string coerce
unittest
{
Variant a = "10";
assert(a.coerce!int == 10);
}
/**
* Formats the stored value as a string.
*/
string toString()
{
string result;
fptr(OpID.toString, &store, &result) == 0 || assert(false);
return result;
}
/**
* Comparison for equality used by the "==" and "!=" operators.
*/
// returns 1 if the two are equal
bool opEquals(T)(T rhs)
{
static if (is(T == VariantN))
alias rhs temp;
else
auto temp = VariantN(rhs);
return fptr(OpID.compare, &store, &temp) == 0;
}
/**
* Ordering comparison used by the "<", "<=", ">", and ">="
* operators. In case comparison is not sensible between the held
* value and $(D_PARAM rhs), an exception is thrown.
*/
int opCmp(T)(T rhs)
{
static if (is(T == VariantN))
alias rhs temp;
else
auto temp = VariantN(rhs);
auto result = fptr(OpID.compare, &store, &temp);
if (result == sizediff_t.min)
{
throw new VariantException(type, temp.type);
}
assert(result >= -1 && result <= 1); // Should be true for opCmp.
return cast(int) result;
}
/**
* Computes the hash of the held value.
*/
size_t toHash()
{
return type.getHash(&store);
}
private VariantN opArithmetic(T, string op)(T other)
{
VariantN result;
static if (is(T == VariantN))
{
if (convertsTo!(uint) && other.convertsTo!(uint))
result = mixin("get!(uint) " ~ op ~ " other.get!(uint)");
else if (convertsTo!(int) && other.convertsTo!(int))
result = mixin("get!(int) " ~ op ~ " other.get!(int)");
else if (convertsTo!(ulong) && other.convertsTo!(ulong))
result = mixin("get!(ulong) " ~ op ~ " other.get!(ulong)");
else if (convertsTo!(long) && other.convertsTo!(long))
result = mixin("get!(long) " ~ op ~ " other.get!(long)");
else if (convertsTo!(double) && other.convertsTo!(double))
result = mixin("get!(double) " ~ op ~ " other.get!(double)");
else
result = mixin("get!(real) " ~ op ~ " other.get!(real)");
}
else
{
if (is(typeof(T.max) : uint) && T.min == 0 && convertsTo!(uint))
result = mixin("get!(uint) " ~ op ~ " other");
else if (is(typeof(T.max) : int) && T.min < 0 && convertsTo!(int))
result = mixin("get!(int) " ~ op ~ " other");
else if (is(typeof(T.max) : ulong) && T.min == 0
&& convertsTo!(ulong))
result = mixin("get!(ulong) " ~ op ~ " other");
else if (is(typeof(T.max) : long) && T.min < 0 && convertsTo!(long))
result = mixin("get!(long) " ~ op ~ " other");
else if (is(T : double) && convertsTo!(double))
result = mixin("get!(double) " ~ op ~ " other");
else
result = mixin("get!(real) " ~ op ~ " other");
}
return result;
}
private VariantN opLogic(T, string op)(T other)
{
VariantN result;
static if (is(T == VariantN))
{
if (convertsTo!(uint) && other.convertsTo!(uint))
result = mixin("get!(uint) " ~ op ~ " other.get!(uint)");
else if (convertsTo!(int) && other.convertsTo!(int))
result = mixin("get!(int) " ~ op ~ " other.get!(int)");
else if (convertsTo!(ulong) && other.convertsTo!(ulong))
result = mixin("get!(ulong) " ~ op ~ " other.get!(ulong)");
else
result = mixin("get!(long) " ~ op ~ " other.get!(long)");
}
else
{
if (is(typeof(T.max) : uint) && T.min == 0 && convertsTo!(uint))
result = mixin("get!(uint) " ~ op ~ " other");
else if (is(typeof(T.max) : int) && T.min < 0 && convertsTo!(int))
result = mixin("get!(int) " ~ op ~ " other");
else if (is(typeof(T.max) : ulong) && T.min == 0
&& convertsTo!(ulong))
result = mixin("get!(ulong) " ~ op ~ " other");
else
result = mixin("get!(long) " ~ op ~ " other");
}
return result;
}
/**
* Arithmetic between $(D_PARAM VariantN) objects and numeric
* values. All arithmetic operations return a $(D_PARAM VariantN)
* object typed depending on the types of both values
* involved. The conversion rules mimic D's built-in rules for
* arithmetic conversions.
*/
// Adapted from http://www.prowiki.org/wiki4d/wiki.cgi?DanielKeep/Variant
// arithmetic
VariantN opAdd(T)(T rhs) { return opArithmetic!(T, "+")(rhs); }
///ditto
VariantN opSub(T)(T rhs) { return opArithmetic!(T, "-")(rhs); }
// Commenteed all _r versions for now because of ambiguities
// arising when two Variants are used
/////ditto
// VariantN opSub_r(T)(T lhs)
// {
// return VariantN(lhs).opArithmetic!(VariantN, "-")(this);
// }
///ditto
VariantN opMul(T)(T rhs) { return opArithmetic!(T, "*")(rhs); }
///ditto
VariantN opDiv(T)(T rhs) { return opArithmetic!(T, "/")(rhs); }
// ///ditto
// VariantN opDiv_r(T)(T lhs)
// {
// return VariantN(lhs).opArithmetic!(VariantN, "/")(this);
// }
///ditto
VariantN opMod(T)(T rhs) { return opArithmetic!(T, "%")(rhs); }
// ///ditto
// VariantN opMod_r(T)(T lhs)
// {
// return VariantN(lhs).opArithmetic!(VariantN, "%")(this);
// }
///ditto
VariantN opAnd(T)(T rhs) { return opLogic!(T, "&")(rhs); }
///ditto
VariantN opOr(T)(T rhs) { return opLogic!(T, "|")(rhs); }
///ditto
VariantN opXor(T)(T rhs) { return opLogic!(T, "^")(rhs); }
///ditto
VariantN opShl(T)(T rhs) { return opLogic!(T, "<<")(rhs); }
// ///ditto
// VariantN opShl_r(T)(T lhs)
// {
// return VariantN(lhs).opLogic!(VariantN, "<<")(this);
// }
///ditto
VariantN opShr(T)(T rhs) { return opLogic!(T, ">>")(rhs); }
// ///ditto
// VariantN opShr_r(T)(T lhs)
// {
// return VariantN(lhs).opLogic!(VariantN, ">>")(this);
// }
///ditto
VariantN opUShr(T)(T rhs) { return opLogic!(T, ">>>")(rhs); }
// ///ditto
// VariantN opUShr_r(T)(T lhs)
// {
// return VariantN(lhs).opLogic!(VariantN, ">>>")(this);
// }
///ditto
VariantN opCat(T)(T rhs)
{
auto temp = this;
temp ~= rhs;
return temp;
}
// ///ditto
// VariantN opCat_r(T)(T rhs)
// {
// VariantN temp = rhs;
// temp ~= this;
// return temp;
// }
///ditto
VariantN opAddAssign(T)(T rhs) { return this = this + rhs; }
///ditto
VariantN opSubAssign(T)(T rhs) { return this = this - rhs; }
///ditto
VariantN opMulAssign(T)(T rhs) { return this = this * rhs; }
///ditto
VariantN opDivAssign(T)(T rhs) { return this = this / rhs; }
///ditto
VariantN opModAssign(T)(T rhs) { return this = this % rhs; }
///ditto
VariantN opAndAssign(T)(T rhs) { return this = this & rhs; }
///ditto
VariantN opOrAssign(T)(T rhs) { return this = this | rhs; }
///ditto
VariantN opXorAssign(T)(T rhs) { return this = this ^ rhs; }
///ditto
VariantN opShlAssign(T)(T rhs) { return this = this << rhs; }
///ditto
VariantN opShrAssign(T)(T rhs) { return this = this >> rhs; }
///ditto
VariantN opUShrAssign(T)(T rhs) { return this = this >>> rhs; }
///ditto
VariantN opCatAssign(T)(T rhs)
{
auto toAppend = VariantN(rhs);
fptr(OpID.catAssign, &store, &toAppend) == 0 || assert(false);
return this;
}
/**
* Array and associative array operations. If a $(D_PARAM
* VariantN) contains an (associative) array, it can be indexed
* into. Otherwise, an exception is thrown.
*
* Example:
* ----
* auto a = Variant(new int[10]);
* a[5] = 42;
* assert(a[5] == 42);
* int[int] hash = [ 42:24 ];
* a = hash;
* assert(a[42] == 24);
* ----
*
* Caveat:
*
* Due to limitations in current language, read-modify-write
* operations $(D_PARAM op=) will not work properly:
*
* ----
* Variant a = new int[10];
* a[5] = 42;
* a[5] += 8;
* assert(a[5] == 50); // fails, a[5] is still 42
* ----
*/
VariantN opIndex(K)(K i)
{
auto result = VariantN(i);
fptr(OpID.index, &store, &result) == 0 || assert(false);
return result;
}
unittest
{
int[int] hash = [ 42:24 ];
Variant v = hash;
assert(v[42] == 24);
v[42] = 5;
assert(v[42] == 5);
}
/// ditto
VariantN opIndexAssign(T, N)(T value, N i)
{
VariantN[2] args = [ VariantN(value), VariantN(i) ];
fptr(OpID.indexAssign, &store, &args) == 0 || assert(false);
return args[0];
}
/** If the $(D_PARAM VariantN) contains an (associative) array,
* returns the length of that array. Otherwise, throws an
* exception.
*/
@property size_t length()
{
return cast(size_t) fptr(OpID.length, &store, null);
}
/**
If the $(D VariantN) contains an array, applies $(D dg) to each
element of the array in turn. Otherwise, throws an exception.
*/
int opApply(Delegate)(scope Delegate dg) if (is(Delegate == delegate))
{
alias ParameterTypeTuple!(Delegate)[0] A;
if (type() == typeid(A[]))
{
auto arr = get!(A[]);
foreach (ref e; arr)
{
if (dg(e)) return 1;
}
}
else static if (is(A == VariantN))
{
foreach (i; 0 .. length)
{
// @@@TODO@@@: find a better way to not confuse
// clients who think they change values stored in the
// Variant when in fact they are only changing tmp.
auto tmp = this[i];
debug scope(exit) assert(tmp == this[i]);
if (dg(tmp)) return 1;
}
}
else
{
enforce(false, text("Variant type ", type(),
" not iterable with values of type ",
A.stringof));
}
return 0;
}
}
//Issue# 8195
unittest
{
struct S
{
int a;
long b;
string c;
real d;
bool e;
}
static assert(S.sizeof >= Variant.sizeof);
alias TypeTuple!(string, int, S) Types;
alias VariantN!(maxSize!Types, Types) MyVariant;
auto v = MyVariant(S.init);
assert(v == S.init);
}
/**
* Algebraic data type restricted to a closed set of possible
* types. It's an alias for a $(D_PARAM VariantN) with an
* appropriately-constructed maximum size. $(D_PARAM Algebraic) is
* useful when it is desirable to restrict what a discriminated type
* could hold to the end of defining simpler and more efficient
* manipulation.
*
* Future additions to $(D_PARAM Algebraic) will allow compile-time
* checking that all possible types are handled by user code,
* eliminating a large class of errors.
*
* Bugs:
*
* Currently, $(D_PARAM Algebraic) does not allow recursive data
* types. They will be allowed in a future iteration of the
* implementation.
*
* Example:
* ----
* auto v = Algebraic!(int, double, string)(5);
* assert(v.peek!(int));
* v = 3.14;
* assert(v.peek!(double));
* // auto x = v.peek!(long); // won't compile, type long not allowed
* // v = '1'; // won't compile, type char not allowed
* ----
*/
template Algebraic(T...)
{
alias VariantN!(maxSize!(T), T) Algebraic;
}
/**
$(D_PARAM Variant) is an alias for $(D_PARAM VariantN) instantiated
with the largest of $(D_PARAM creal), $(D_PARAM char[]), and $(D_PARAM
void delegate()). This ensures that $(D_PARAM Variant) is large enough
to hold all of D's predefined types, including all numeric types,
pointers, delegates, and class references. You may want to use
$(D_PARAM VariantN) directly with a different maximum size either for
storing larger types, or for saving memory.
*/
alias VariantN!(maxSize!(creal, char[], void delegate())) Variant;
/**
* Returns an array of variants constructed from $(D_PARAM args).
* Example:
* ----
* auto a = variantArray(1, 3.14, "Hi!");
* assert(a[1] == 3.14);
* auto b = Variant(a); // variant array as variant
* assert(b[1] == 3.14);
* ----
*
* Code that needs functionality similar to the $(D_PARAM boxArray)
* function in the $(D_PARAM std.boxer) module can achieve it like this:
*
* ----
* // old
* Box[] fun(...)
* {
* ...
* return boxArray(_arguments, _argptr);
* }
* // new
* Variant[] fun(T...)(T args)
* {
* ...
* return variantArray(args);
* }
* ----
*
* This is by design. During construction the $(D_PARAM Variant) needs
* static type information about the type being held, so as to store a
* pointer to function for fast retrieval.
*/
Variant[] variantArray(T...)(T args)
{
Variant[] result;
foreach (arg; args)
{
result ~= Variant(arg);
}
return result;
}
/**
* Thrown in three cases:
*
* $(OL $(LI An uninitialized Variant is used in any way except
* assignment and $(D_PARAM hasValue);) $(LI A $(D_PARAM get) or
* $(D_PARAM coerce) is attempted with an incompatible target type;)
* $(LI A comparison between $(D_PARAM Variant) objects of
* incompatible types is attempted.))
*
*/
// @@@ BUG IN COMPILER. THE 'STATIC' BELOW SHOULD NOT COMPILE
static class VariantException : Exception
{
/// The source type in the conversion or comparison
TypeInfo source;
/// The target type in the conversion or comparison
TypeInfo target;
this(string s)
{
super(s);
}
this(TypeInfo source, TypeInfo target)
{
super("Variant: attempting to use incompatible types "
~ source.toString()
~ " and " ~ target.toString());
this.source = source;
this.target = target;
}
}
unittest
{
alias This2Variant!(char, int, This[int]) W1;
alias TypeTuple!(int, char[int]) W2;
static assert(is(W1 == W2));
alias Algebraic!(void, string) var_t;
var_t foo = "quux";
}
unittest
{
// @@@BUG@@@
// alias Algebraic!(real, This[], This[int], This[This]) A;
// A v1, v2, v3;
// v2 = 5.0L;
// v3 = 42.0L;
// //v1 = [ v2 ][];
// auto v = v1.peek!(A[]);
// //writeln(v[0]);
// v1 = [ 9 : v3 ];
// //writeln(v1);
// v1 = [ v3 : v3 ];
// //writeln(v1);
}
unittest
{
// try it with an oddly small size
VariantN!(1) test;
assert(test.size > 1);
// variantArray tests
auto heterogeneous = variantArray(1, 4.5, "hi");
assert(heterogeneous.length == 3);
auto variantArrayAsVariant = Variant(heterogeneous);
assert(variantArrayAsVariant[0] == 1);
assert(variantArrayAsVariant.length == 3);
// array tests
auto arr = Variant([1.2].dup);
auto e = arr[0];
assert(e == 1.2);
arr[0] = 2.0;
assert(arr[0] == 2);
arr ~= 4.5;
assert(arr[1] == 4.5);
// general tests
Variant a;
auto b = Variant(5);
assert(!b.peek!(real) && b.peek!(int));
// assign
a = *b.peek!(int);
// comparison
assert(a == b, a.type.toString() ~ " " ~ b.type.toString());
auto c = Variant("this is a string");
assert(a != c);
// comparison via implicit conversions
a = 42; b = 42.0; assert(a == b);
// try failing conversions
bool failed = false;
try
{
auto d = c.get!(int);
}
catch (Exception e)
{
//writeln(stderr, e.toString);
failed = true;
}
assert(failed); // :o)
// toString tests
a = Variant(42); assert(a.toString() == "42");
a = Variant(42.22); assert(a.toString() == "42.22");
// coerce tests
a = Variant(42.22); assert(a.coerce!(int) == 42);
a = cast(short) 5; assert(a.coerce!(double) == 5);
// Object tests
class B1 {}
class B2 : B1 {}
a = new B2;
assert(a.coerce!(B1) !is null);
a = new B1;
// BUG: I can't get the following line to pass:
// assert(collectException(a.coerce!(B2) is null));
a = cast(Object) new B2; // lose static type info; should still work
assert(a.coerce!(B2) !is null);
// struct Big { int a[45]; }
// a = Big.init;
// hash
assert(a.toHash() != 0);
}
// tests adapted from
// http://www.dsource.org/projects/tango/browser/trunk/tango/core/Variant.d?rev=2601
unittest
{
Variant v;
assert(!v.hasValue);
v = 42;
assert( v.peek!(int) );
assert( v.convertsTo!(long) );
assert( v.get!(int) == 42 );
assert( v.get!(long) == 42L );
assert( v.get!(ulong) == 42uL );
// should be string... @@@BUG IN COMPILER
v = "Hello, World!"c;
assert( v.peek!(string) );
assert( v.get!(string) == "Hello, World!" );
assert(!is(char[] : wchar[]));
assert( !v.convertsTo!(wchar[]) );
assert( v.get!(string) == "Hello, World!" );
// Literal arrays are dynamically-typed
v = cast(int[5]) [1,2,3,4,5];
assert( v.peek!(int[5]) );
assert( v.get!(int[5]) == [1,2,3,4,5] );
{
// @@@BUG@@@: array literals should have type T[], not T[5] (I guess)
// v = [1,2,3,4,5];
// assert( v.peek!(int[]) );
// assert( v.get!(int[]) == [1,2,3,4,5] );
}
v = 3.1413;
assert( v.peek!(double) );
assert( v.convertsTo!(real) );
//@@@ BUG IN COMPILER: DOUBLE SHOULD NOT IMPLICITLY CONVERT TO FLOAT
assert( !v.convertsTo!(float) );
assert( *v.peek!(double) == 3.1413 );
auto u = Variant(v);
assert( u.peek!(double) );
assert( *u.peek!(double) == 3.1413 );
// operators
v = 38;
assert( v + 4 == 42 );
assert( 4 + v == 42 );
assert( v - 4 == 34 );
assert( Variant(4) - v == -34 );
assert( v * 2 == 76 );
assert( 2 * v == 76 );
assert( v / 2 == 19 );
assert( Variant(2) / v == 0 );
assert( v % 2 == 0 );
assert( Variant(2) % v == 2 );
assert( (v & 6) == 6 );
assert( (6 & v) == 6 );
assert( (v | 9) == 47 );
assert( (9 | v) == 47 );
assert( (v ^ 5) == 35 );
assert( (5 ^ v) == 35 );
assert( v << 1 == 76 );
assert( Variant(1) << Variant(2) == 4 );
assert( v >> 1 == 19 );
assert( Variant(4) >> Variant(2) == 1 );
assert( Variant("abc") ~ "def" == "abcdef" );
assert( Variant("abc") ~ Variant("def") == "abcdef" );
v = 38;
v += 4;
assert( v == 42 );
v = 38; v -= 4; assert( v == 34 );
v = 38; v *= 2; assert( v == 76 );
v = 38; v /= 2; assert( v == 19 );
v = 38; v %= 2; assert( v == 0 );
v = 38; v &= 6; assert( v == 6 );
v = 38; v |= 9; assert( v == 47 );
v = 38; v ^= 5; assert( v == 35 );
v = 38; v <<= 1; assert( v == 76 );
v = 38; v >>= 1; assert( v == 19 );
v = 38; v += 1; assert( v < 40 );
v = "abc";
v ~= "def";
assert( v == "abcdef", *v.peek!(char[]) );
assert( Variant(0) < Variant(42) );
assert( Variant(42) > Variant(0) );
assert( Variant(42) > Variant(0.1) );
assert( Variant(42.1) > Variant(1) );
assert( Variant(21) == Variant(21) );
assert( Variant(0) != Variant(42) );
assert( Variant("bar") == Variant("bar") );
assert( Variant("foo") != Variant("bar") );
{
auto v1 = Variant(42);
auto v2 = Variant("foo");
auto v3 = Variant(1+2.0i);
int[Variant] hash;
hash[v1] = 0;
hash[v2] = 1;
hash[v3] = 2;
assert( hash[v1] == 0 );
assert( hash[v2] == 1 );
assert( hash[v3] == 2 );
}
/+
// @@@BUG@@@
// dmd: mtype.c:3886: StructDeclaration* TypeAArray::getImpl(): Assertion `impl' failed.
{
int[char[]] hash;
hash["a"] = 1;
hash["b"] = 2;
hash["c"] = 3;
Variant vhash = hash;
assert( vhash.get!(int[char[]])["a"] == 1 );
assert( vhash.get!(int[char[]])["b"] == 2 );
assert( vhash.get!(int[char[]])["c"] == 3 );
}
+/
}
unittest
{
// bug 1558
Variant va=1;
Variant vb=-2;
assert((va+vb).get!(int) == -1);
assert((va-vb).get!(int) == 3);
}
unittest
{
Variant a;
a=5;
Variant b;
b=a;
Variant[] c;
c = variantArray(1, 2, 3.0, "hello", 4);
assert(c[3] == "hello");
}
unittest
{
Variant v = 5;
assert (!__traits(compiles, v.coerce!(bool delegate())));
}
unittest
{
struct Huge {
real a, b, c, d, e, f, g;
}
Huge huge;
huge.e = 42;
Variant v;
v = huge; // Compile time error.
assert(v.get!(Huge).e == 42);
}
unittest
{
const x = Variant(42);
auto y1 = x.get!(const int)();
// @@@BUG@@@
//auto y2 = x.get!(immutable int)();
}
// test iteration
unittest
{
auto v = Variant([ 1, 2, 3, 4 ][]);
auto j = 0;
foreach (int i; v)
{
assert(i == ++j);
}
assert(j == 4);
}
// test convertibility
unittest
{
auto v = Variant("abc".dup);
assert(v.convertsTo!(char[]));
}
// http://d.puremagic.com/issues/show_bug.cgi?id=5424
unittest
{
interface A {
void func1();
}
static class AC: A {
void func1() {
}
}
A a = new AC();
a.func1();
Variant b = Variant(a);
}
unittest
{
// bug 7070
Variant v;
v = null;
}
/**
* Applies a delegate or function to the given Algebraic depending on the held type,
* ensuring that all types are handled by the visiting functions.
*
* The delegate or function having the currently held value as parameter is called
* with $(D_PARM variant)'s current value. Visiting handlers are passed
* in the template parameter list.
* It is statically ensured that all types of
* $(D_PARAM variant) are handled accross all handlers.
* $(D_PARAM visit) allows delegates and static functions to be passed
* as parameters.
*
* If a function without parameters is specified, this function is called
* when variant doesn't hold a value. Exactly one parameter-less function
* is allowed.
*
* Duplicate overloads matching the same type in one of the visitors are disallowed.
*
* Example:
* -----------------------
* Algebraic!(int, string) variant;
*
* variant = 10;
* assert(variant.visit!((string s) => cast(int)s.length,
* (int i) => i)()
* == 10);
* variant = "string";
* assert(variant.visit!((int i) => return i,
* (string s) => cast(int)s.length)()
* == 6);
*
* // Error function usage
* Algebraic!(int, string) emptyVar;
* assert(variant.visit!((string s) => cast(int)s.length,
* (int i) => i,
* () => -1)()
* == -1);
* ----------------------
* Returns: The return type of visit is deduced from the visiting functions and must be
* the same accross all overloads.
* Throws: If no parameter-less, error function is specified:
* $(D_PARAM VariantException) if $(D_PARAM variant) doesn't hold a value.
*/
template visit(Handler ...)
if (Handler.length > 0)
{
auto visit(VariantType)(VariantType variant)
if (isAlgebraic!VariantType)
{
return visitImpl!(true, VariantType, Handler)(variant);
}
}
unittest
{
Algebraic!(size_t, string) variant;
// not all handled check
static assert(!__traits(compiles, variant.visit!((size_t i){ })() ));
variant = cast(size_t)10;
auto which = 0;
variant.visit!( (string s) => which = 1,
(size_t i) => which = 0
)();
// integer overload was called
assert(which == 0);
// mustn't compile as generic Variant not supported
Variant v;
static assert(!__traits(compiles, v.visit!((string s) => which = 1,
(size_t i) => which = 0
)()
));
static size_t func(string s) {
return s.length;
}
variant = "test";
assert( 4 == variant.visit!(func,
(size_t i) => i
)());
Algebraic!(int, float, string) variant2 = 5.0f;
// Shouldn' t compile as float not handled by visitor.
static assert(!__traits(compiles, variant2.visit!(
(int) {},
(string) {})()));
Algebraic!(size_t, string, float) variant3;
variant3 = 10.0f;
auto floatVisited = false;
assert(variant3.visit!(
(float f) { floatVisited = true; return cast(size_t)f; },
func,
(size_t i) { return i; }
)() == 10);
assert(floatVisited == true);
Algebraic!(float, string) variant4;
assert(variant4.visit!(func, (float f) => cast(size_t)f, () => size_t.max)() == size_t.max);
// double error func check
static assert(!__traits(compiles,
visit!(() => size_t.max, func, (float f) => cast(size_t)f, () => size_t.max)(variant4))
);
}
/**
* Behaves as $(D_PARAM visit) but doesn't enforce that all types are handled
* by the visiting functions.
*
* If a parameter-less function is specified it is called when
* either $(D_PARAM variant) doesn't hold a value or holds a type
* which isn't handled by the visiting functions.
*
* Example:
* -----------------------
* Algebraic!(int, string) variant;
*
* variant = 10;
* auto which = -1;
* variant.tryVisit!((int i) { which = 0; })();
* assert(which = 0);
*
* // Error function usage
* variant = "test";
* variant.tryVisit!((int i) { which = 0; },
* () { which = -100; })();
* assert(which == -100);
* ----------------------
*
* Returns: The return type of tryVisit is deduced from the visiting functions and must be
* the same accross all overloads.
* Throws: If no parameter-less, error function is specified: $(D_PARAM VariantException) if
* $(D_PARAM variant) doesn't hold a value or
* if $(D_PARAM variant) holds a value which isn't handled by the visiting
* functions.
*/
template tryVisit(Handler ...)
if (Handler.length > 0)
{
auto tryVisit(VariantType)(VariantType variant)
if (isAlgebraic!VariantType)
{
return visitImpl!(false, VariantType, Handler)(variant);
}
}
unittest
{
Algebraic!(int, string) variant;
variant = 10;
auto which = -1;
variant.tryVisit!((int i){ which = 0; })();
assert(which == 0);
variant = "test";
assertThrown!VariantException(variant.tryVisit!((int i) { which = 0; })());
void errorfunc()
{
which = -1;
}
variant.tryVisit!((int i) { which = 0; }, errorfunc)();
assert(which == -1);
}
private template isAlgebraic(Type)
{
static if (is(Type _ == VariantN!T, T...))
enum isAlgebraic = T.length >= 2; // T[0] == maxDataSize, T[1..$] == AllowedTypesX
else
enum isAlgebraic = false;
}
unittest
{
static assert(!isAlgebraic!(Variant));
static assert( isAlgebraic!(Algebraic!(string)));
static assert( isAlgebraic!(Algebraic!(int, int[])));
}
private auto visitImpl(bool Strict, VariantType, Handler...)(VariantType variant)
if (isAlgebraic!VariantType && Handler.length > 0)
{
alias VariantType.AllowedTypes AllowedTypes;
/**
* Returns: Struct where $(D_PARAM indices) is an array which
* contains at the n-th position the index in Handler which takes the
* n-th type of AllowedTypes. If an Handler doesn't match an
* AllowedType, -1 is set. If a function in the delegates doesn't
* have parameters, the field $(D_PARAM exceptionFuncIdx) is set;
* otherwise it's -1.
*/
auto visitGetOverloadMap()
{
struct Result {
int[AllowedTypes.length] indices;
int exceptionFuncIdx = -1;
}
Result result;
foreach(tidx, T; AllowedTypes)
{
bool added = false;
foreach(dgidx, dg; Handler)
{
// Handle normal function objects
static if (isSomeFunction!dg)
{
alias ParameterTypeTuple!dg Params;
static if (Params.length == 0)
{
// Just check exception functions in the first
// inner iteration (over delegates)
if (tidx > 0)
continue;
else
{
if (result.exceptionFuncIdx != -1)
assert(false, "duplicate parameter-less (error-)function specified");
result.exceptionFuncIdx = dgidx;
}
}
else if (is(Unqual!(Params[0]) == T))
{
if (added)
assert(false, "duplicate overload specified for type '" ~ T.stringof ~ "'");
added = true;
result.indices[tidx] = dgidx;
}
}
// Handle composite visitors with opCall overloads
else
{
static assert(false, dg.stringof ~ " is not a function or delegate");
}
}
if (!added)
result.indices[tidx] = -1;
}
return result;
}
enum HandlerOverloadMap = visitGetOverloadMap();
if (!variant.hasValue())
{
// Call the exception function. The HandlerOverloadMap
// will have its exceptionFuncIdx field set to value != -1 if an
// exception function has been specified; otherwise we just through an exception.
static if (HandlerOverloadMap.exceptionFuncIdx != -1)
return Handler[ HandlerOverloadMap.exceptionFuncIdx ]();
else
throw new VariantException("variant must hold a value before being visited.");
}
foreach(idx, T; AllowedTypes)
{
if (T* ptr = variant.peek!T())
{
enum dgIdx = HandlerOverloadMap.indices[idx];
static if (dgIdx == -1)
{
static if (Strict)
static assert(false, "overload for type '" ~ T.stringof ~ "' hasn't been specified");
else
{
static if (HandlerOverloadMap.exceptionFuncIdx != -1)
return Handler[ HandlerOverloadMap.exceptionFuncIdx ]();
else
throw new VariantException("variant holds value of type '" ~ T.stringof ~ "' but no visitor has been provided");
}
}
else
{
return Handler[ dgIdx ](*ptr);
}
}
}
assert(false);
}
|
D
|
// What dumb
// ng.learn 26 Feb 2011
import std.stdio, std.conv;
enum E { x, y = 10, z = 2, THE_END }
void main()
{
foreach (e; E.min .. E.max ) { // more for unreset members
writeln( e );
}
}
|
D
|
/Users/konstafer/ITMO-FILES/Course\ 3/Interfaces/MusicPlayer/DerivedData/Build/Intermediates/MusicPlayer.build/Debug-iphonesimulator/MusicPlayer.build/Objects-normal/x86_64/ViewController.o : /Users/konstafer/ITMO-FILES/Course\ 3/Interfaces/MusicPlayer/MusicPlayer/AppDelegate.swift /Users/konstafer/ITMO-FILES/Course\ 3/Interfaces/MusicPlayer/MusicPlayer/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/konstafer/ITMO-FILES/Course\ 3/Interfaces/MusicPlayer/DerivedData/Build/Intermediates/MusicPlayer.build/Debug-iphonesimulator/MusicPlayer.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Users/konstafer/ITMO-FILES/Course\ 3/Interfaces/MusicPlayer/MusicPlayer/AppDelegate.swift /Users/konstafer/ITMO-FILES/Course\ 3/Interfaces/MusicPlayer/MusicPlayer/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/konstafer/ITMO-FILES/Course\ 3/Interfaces/MusicPlayer/DerivedData/Build/Intermediates/MusicPlayer.build/Debug-iphonesimulator/MusicPlayer.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Users/konstafer/ITMO-FILES/Course\ 3/Interfaces/MusicPlayer/MusicPlayer/AppDelegate.swift /Users/konstafer/ITMO-FILES/Course\ 3/Interfaces/MusicPlayer/MusicPlayer/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
/Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/RetryStrategy.o : /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/String+MD5.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/Deprecated.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/Source.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/Resource.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Image.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/GIFAnimatedImage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/Storage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/DiskStorage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/MemoryStorage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/ImageCache.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/AuthenticationChallengeResponsable.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Runtime.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Delegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/SessionDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDownloaderDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/CallbackQueue.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageProgressive.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageDrawing.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/SessionDataTask.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageTransition.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherOptionsInfo.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDownloader.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/ImageDataProvider.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/AVAssetImageDataProvider.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Placeholder.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherManager.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImagePrefetcher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/WKInterfaceImage+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/UIButton+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/NSButton+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/NSTextAttachment+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/ImageView+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageModifier.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RequestModifier.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RedirectHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Filter.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/CacheSerializer.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/FormatIndicatedCacheSerializer.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherError.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDataProcessor.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageProcessor.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Views/Indicator.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/SizeExtensions.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/ExtensionHelpers.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageFormat.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Result.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Views/AnimatedImageView.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Box.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RetryStrategy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreMIDI.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreMedia.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/simd.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/AVFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreAudio.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/Task/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Kingfisher.h /Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/RetryStrategy~partial.swiftmodule : /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/String+MD5.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/Deprecated.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/Source.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/Resource.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Image.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/GIFAnimatedImage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/Storage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/DiskStorage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/MemoryStorage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/ImageCache.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/AuthenticationChallengeResponsable.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Runtime.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Delegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/SessionDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDownloaderDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/CallbackQueue.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageProgressive.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageDrawing.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/SessionDataTask.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageTransition.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherOptionsInfo.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDownloader.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/ImageDataProvider.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/AVAssetImageDataProvider.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Placeholder.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherManager.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImagePrefetcher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/WKInterfaceImage+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/UIButton+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/NSButton+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/NSTextAttachment+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/ImageView+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageModifier.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RequestModifier.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RedirectHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Filter.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/CacheSerializer.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/FormatIndicatedCacheSerializer.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherError.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDataProcessor.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageProcessor.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Views/Indicator.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/SizeExtensions.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/ExtensionHelpers.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageFormat.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Result.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Views/AnimatedImageView.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Box.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RetryStrategy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreMIDI.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreMedia.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/simd.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/AVFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreAudio.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/Task/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Kingfisher.h /Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/RetryStrategy~partial.swiftdoc : /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/String+MD5.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/Deprecated.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/Source.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/Resource.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Image.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/GIFAnimatedImage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/Storage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/DiskStorage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/MemoryStorage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/ImageCache.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/AuthenticationChallengeResponsable.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Runtime.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Delegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/SessionDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDownloaderDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/CallbackQueue.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageProgressive.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageDrawing.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/SessionDataTask.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageTransition.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherOptionsInfo.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDownloader.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/ImageDataProvider.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/AVAssetImageDataProvider.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Placeholder.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherManager.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImagePrefetcher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/WKInterfaceImage+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/UIButton+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/NSButton+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/NSTextAttachment+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/ImageView+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageModifier.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RequestModifier.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RedirectHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Filter.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/CacheSerializer.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/FormatIndicatedCacheSerializer.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherError.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDataProcessor.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageProcessor.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Views/Indicator.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/SizeExtensions.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/ExtensionHelpers.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageFormat.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Result.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Views/AnimatedImageView.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Box.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RetryStrategy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreMIDI.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreMedia.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/simd.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/AVFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreAudio.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/Task/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Kingfisher.h /Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/RetryStrategy~partial.swiftsourceinfo : /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/String+MD5.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/Deprecated.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/Source.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/Resource.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Image.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/GIFAnimatedImage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/Storage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/DiskStorage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/MemoryStorage.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/ImageCache.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/AuthenticationChallengeResponsable.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Runtime.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Delegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/SessionDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDownloaderDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/CallbackQueue.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageProgressive.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageDrawing.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/SessionDataTask.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageTransition.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherOptionsInfo.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDownloader.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/ImageDataProvider.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/ImageSource/AVAssetImageDataProvider.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Placeholder.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherManager.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImagePrefetcher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/WKInterfaceImage+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/UIButton+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/NSButton+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/NSTextAttachment+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Extensions/ImageView+Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/Kingfisher.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageModifier.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RequestModifier.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RedirectHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/Filter.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/CacheSerializer.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Cache/FormatIndicatedCacheSerializer.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/KingfisherError.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/ImageDataProcessor.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageProcessor.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Views/Indicator.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/SizeExtensions.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/ExtensionHelpers.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Image/ImageFormat.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Result.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Views/AnimatedImageView.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/Box.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Networking/RetryStrategy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreMIDI.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreMedia.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/simd.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/AVFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreAudio.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/Task/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Kingfisher.h /Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
/*
* Copyright (c) 2017-2019 sel-project
*
* 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.
*
*/
/**
* Copyright: Copyright (c) 2017-2019 sel-project
* License: MIT
* Authors: Kripth
* Source: $(HTTP github.com/sel-project/selery/source/selery/hub/handler.d, selery/hub/handler.d)
*/
module selery.hub.handler;
import std.json : JSONValue;
import std.socket : SocketException;
import std.string : toLower, indexOf, strip, split, join;
import sel.format : Format;
import sel.server.bedrock : BedrockServerImpl;
import sel.server.java : JavaServerImpl;
import sel.server.query : Query;
import sel.server.util : ServerInfo, GenericServer;
import selery.about;
import selery.config : Config;
import selery.hub.hncom : HncomHandler, LiteNode;
import selery.hub.server : HubServer;
import selery.lang : Translation;
import selery.util.thread : SafeThread;
/**
* Main handler with the purpose of starting children handlers,
* store constant informations and reload them when needed.
*/
class Handler {
private shared HubServer server;
private shared JSONValue additionalJson;
private shared string socialJson; // already encoded
public shared this(shared HubServer server, shared ServerInfo info, shared Query _query) {
this.server = server;
this.regenerateSocialJson();
bool delegate(string ip) acceptIp; //TODO must be implemented by sel-server
immutable forcedIp = server.config.hub.serverIp.toLower;
if(forcedIp.length) {
acceptIp = (string ip){ return ip.toLower == forcedIp; };
} else {
acceptIp = (string ip){ return true; };
}
// start handlers
void startGenericServer(shared GenericServer gs, string name, const(Config.Hub.Address)[] addresses) {
foreach(address ; addresses) {
try {
gs.start(address.ip, address.port, _query);
debug server.logger.log(Translation("handler.listening", [Format.green ~ name ~ Format.reset, address.toString()]));
} catch(SocketException e) {
server.logger.logError(Translation("handler.error.bind", [name, address.toString(), (e.msg.indexOf(":")!=-1 ? e.msg.split(":")[$-1].strip : e.msg)]));
} catch(Throwable t) {
server.logger.logError(Translation("handler.error.address", [name, address.toString()]));
}
}
}
with(server.config.hub) {
if(!server.lite) {
auto s = new shared HncomHandler(server, &this.additionalJson);
s.start(acceptedNodes, hncomPort);
} else {
new SafeThread(server.config.lang, { new shared LiteNode(server, &this.additionalJson); }).start();
}
if(bedrock) {
auto s = new shared BedrockServerImpl!supportedBedrockProtocols(info, server);
startGenericServer(s, "bedrock", bedrock.addresses);
}
if(java) {
auto s = new shared JavaServerImpl!supportedJavaProtocols(info, server);
startGenericServer(s, "java", java.addresses);
}
}
}
/**
* Regenerates the social json adding a string field
* for each social field that is not empty in the settings.
*/
private shared void regenerateSocialJson() {
const config = this.server.config;
this.socialJson = config.hub.social.toString();
JSONValue[string] additional;
additional["social"] = config.hub.social;
additional["minecraft"] = ["edu": config.hub.edu];
additional["software"] = ["name": Software.name, "version": Software.displayVersion];
this.additionalJson = cast(shared)JSONValue(additional);
}
/**
* Closes the handlers and frees the resources.
*/
public shared void shutdown() {
//TODO gracefully shutdown every thread
}
}
deprecated("Server is never reloaded") interface Reloadable {
public shared void reload();
}
|
D
|
module d.semantic.aliasthis;
import d.semantic.semantic;
import d.ir.expression;
import d.ir.symbol;
import d.ir.type;
import d.context;
import d.exception;
import d.location;
struct AliasThisResolver(alias handler) {
private SemanticPass pass;
alias pass this;
alias Ret = typeof(handler(Symbol.init));
this(SemanticPass pass) {
this.pass = pass;
}
Ret[] resolve(Expression e) {
auto t = peelAlias(e.type).type;
if (auto st = cast(StructType) t) {
return resolve(e, st);
} else if (auto ct = cast(ClassType) t) {
return resolve(e, ct);
}
return [];
}
Ret[] resolve(Expression e, StructType t) in {
assert(t is peelAlias(e.type).type);
} body {
return resolve(e, t.dstruct.dscope.aliasThis);
}
Ret[] resolve(Expression e, ClassType t) in {
assert(t is peelAlias(e.type).type);
} body {
return resolve(e, t.dclass.dscope.aliasThis);
}
Ret[] resolve(Expression e, Name[] aliases) {
auto oldBuildErrorNode = pass.buildErrorNode;
scope(exit) pass.buildErrorNode = oldBuildErrorNode;
pass.buildErrorNode = true;
Ret[] results;
foreach(n; aliases) {
// XXX: this will swallow error silently.
// There must be a better way.
try {
import d.semantic.identifier;
results ~= SymbolResolver!handler(pass).resolveInExpression(e.location, e, n);
} catch(CompileException e) {
continue;
}
}
return results;
}
}
|
D
|
/Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/Build/Intermediates.noindex/Alamofire.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/AlamofireExtended.o : /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/MultipartFormData.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/MultipartUpload.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AlamofireExtended.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Protected.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/HTTPMethod.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Combine.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/OperationQueue+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/StringEncoding+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Result+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLRequest+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Response.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/SessionDelegate.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ParameterEncoding.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Session.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Validation.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ServerTrustEvaluation.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ResponseSerialization.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RequestTaskMap.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLEncodedFormEncoder.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ParameterEncoder.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/NetworkReachabilityManager.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/CachedResponseHandler.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RedirectHandler.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AFError.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/EventMonitor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AuthenticationInterceptor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RequestInterceptor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Notifications.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/HTTPHeaders.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Request.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/Build/Intermediates.noindex/Alamofire.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/AlamofireExtended~partial.swiftmodule : /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/MultipartFormData.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/MultipartUpload.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AlamofireExtended.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Protected.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/HTTPMethod.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Combine.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/OperationQueue+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/StringEncoding+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Result+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLRequest+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Response.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/SessionDelegate.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ParameterEncoding.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Session.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Validation.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ServerTrustEvaluation.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ResponseSerialization.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RequestTaskMap.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLEncodedFormEncoder.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ParameterEncoder.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/NetworkReachabilityManager.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/CachedResponseHandler.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RedirectHandler.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AFError.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/EventMonitor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AuthenticationInterceptor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RequestInterceptor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Notifications.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/HTTPHeaders.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Request.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/Build/Intermediates.noindex/Alamofire.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/AlamofireExtended~partial.swiftdoc : /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/MultipartFormData.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/MultipartUpload.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AlamofireExtended.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Protected.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/HTTPMethod.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Combine.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/OperationQueue+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/StringEncoding+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Result+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLRequest+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Response.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/SessionDelegate.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ParameterEncoding.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Session.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Validation.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ServerTrustEvaluation.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ResponseSerialization.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RequestTaskMap.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLEncodedFormEncoder.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ParameterEncoder.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/NetworkReachabilityManager.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/CachedResponseHandler.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RedirectHandler.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AFError.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/EventMonitor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AuthenticationInterceptor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RequestInterceptor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Notifications.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/HTTPHeaders.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Request.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/Build/Intermediates.noindex/Alamofire.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/AlamofireExtended~partial.swiftsourceinfo : /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/MultipartFormData.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/MultipartUpload.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AlamofireExtended.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Protected.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/HTTPMethod.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Combine.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/OperationQueue+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/StringEncoding+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Result+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLRequest+Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Alamofire.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Response.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/SessionDelegate.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ParameterEncoding.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Session.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Validation.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ServerTrustEvaluation.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ResponseSerialization.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RequestTaskMap.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/URLEncodedFormEncoder.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/ParameterEncoder.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/NetworkReachabilityManager.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/CachedResponseHandler.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RedirectHandler.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AFError.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/EventMonitor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/AuthenticationInterceptor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RequestInterceptor.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Notifications.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/HTTPHeaders.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/Request.swift /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/checkouts/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.stdio, std.bitmanip;
immutable int MAX = 120;
alias Tuple!(int, "a", int, "b", int, "c", int, "d") Match;
int N;
Match[] M;
int[][][] B;
bool[] used;
int[][] adj;
bool[][] P;
bool dfs(int x) {
used[x] = true;
auto m = M[x];
if (m.a == m.c) {
if (!P[m.a][m.b]) {
P[m.a][m.b] = true;
bool ret = true;
foreach (y; adj[x]) {
if (used[y]) continue;
if (!dfs(y)) {
ret = false;
break;
}
}
if (ret) return true;
P[m.a][m.b] = false;
}
if (!P[m.a][m.d]) {
P[m.a][m.d] = true;
bool ret = true;
foreach (y; adj[x]) {
if (used[y]) continue;
if (!dfs(y)) {
ret = false;
break;
}
}
if (ret) return true;
P[m.a][m.d] = false;
}
}
else {
if (!P[m.a][m.b]) {
P[m.a][m.b] = true;
bool ret = true;
foreach (y; adj[x]) {
if (used[y]) continue;
if (!dfs(y)) {
ret = false;
break;
}
}
if (ret) return true;
P[m.a][m.b] = false;
}
if (!P[m.c][m.b]) {
P[m.c][m.b] = true;
bool ret = true;
foreach (y; adj[x]) {
if (used[y]) continue;
if (!dfs(y)) {
ret = false;
break;
}
}
if (ret) return true;
P[m.c][m.b] = false;
}
}
used[x] = false;
return false;
}
void main() {
N = readln.chomp.to!int;
M = new Match[](N);
B = new int[][][](MAX, MAX);
foreach (i; 0..N) {
auto s = readln.split.map!(to!int).array;
M[i] = Match(s[0], s[1], s[2], s[3]);
if (s[0] == s[2]) {
B[s[0]][s[1]] ~= i;
B[s[0]][s[3]] ~= i;
} else {
B[s[0]][s[1]] ~= i;
B[s[2]][s[1]] ~= i;
}
}
adj = new int[][](N);
foreach (i; 0..MAX) {
foreach (j; 0..MAX) {
auto x = B[i][j].length;
foreach (a; B[i][j]) {
foreach (b; B[i][j]) {
if (a != b) {
adj[a] ~= b;
}
}
}
}
}
used = new bool[](N);
foreach (i; 0..N) {
if (used[i]) continue;
P = new bool[][](MAX, MAX);
if (!dfs(i)) {
writeln("NO");
return;
}
}
writeln("YES");
}
|
D
|
module dlangide.ui.dsourceedit;
import dlangui.core.logger;
import dlangui.core.signals;
import dlangui.graphics.drawbuf;
import dlangui.widgets.editors;
import dlangui.widgets.srcedit;
import dlangui.widgets.menu;
import dlangui.widgets.popup;
import dlangui.widgets.controls;
import dlangui.widgets.scroll;
import dlangui.dml.dmlhighlight;
import ddc.lexer.textsource;
import ddc.lexer.exceptions;
import ddc.lexer.tokenizer;
import dlangide.workspace.workspace;
import dlangide.workspace.project;
import dlangide.ui.commands;
import dlangide.ui.settings;
import dlangide.tools.d.dsyntax;
import dlangide.tools.editorTool;
import ddebug.common.debugger;
import std.algorithm;
import std.utf : toUTF32;
interface BreakpointListChangeListener {
void onBreakpointListChanged(ProjectSourceFile sourceFile, Breakpoint[] breakpoints);
}
interface BookmarkListChangeListener {
void onBookmarkListChanged(ProjectSourceFile sourceFile, EditorBookmark[] bookmarks);
}
/// DIDE source file editor
class DSourceEdit : SourceEdit, EditableContentMarksChangeListener {
this(string ID) {
super(ID);
static if (BACKEND_GUI) {
styleId = null;
backgroundColor = style.customColor("edit_background");
}
onThemeChanged();
//setTokenHightlightColor(TokenCategory.Identifier, 0x206000); // no colors
MenuItem editPopupItem = new MenuItem(null);
editPopupItem.add(ACTION_EDIT_COPY, ACTION_EDIT_PASTE, ACTION_EDIT_CUT, ACTION_EDIT_UNDO,
ACTION_EDIT_REDO, ACTION_EDIT_INDENT, ACTION_EDIT_UNINDENT, ACTION_EDIT_TOGGLE_LINE_COMMENT,
ACTION_GET_COMPLETIONS, ACTION_GO_TO_DEFINITION, ACTION_DEBUG_TOGGLE_BREAKPOINT);
popupMenu = editPopupItem;
showIcons = true;
//showFolding = true;
showWhiteSpaceMarks = true;
showTabPositionMarks = true;
content.marksChanged = this;
}
this() {
this("SRCEDIT");
}
~this() {
if (_editorTool) {
destroy(_editorTool);
_editorTool = null;
}
}
Signal!BreakpointListChangeListener breakpointListChanged;
Signal!BookmarkListChangeListener bookmarkListChanged;
/// handle theme change: e.g. reload some themed resources
override void onThemeChanged() {
static if (BACKEND_GUI) backgroundColor = style.customColor("edit_background");
setTokenHightlightColor(TokenCategory.Comment, style.customColor("syntax_highlight_comment")); // green
setTokenHightlightColor(TokenCategory.Keyword, style.customColor("syntax_highlight_keyword")); // blue
setTokenHightlightColor(TokenCategory.Integer, style.customColor("syntax_highlight_integer", 0x000000));
setTokenHightlightColor(TokenCategory.Float, style.customColor("syntax_highlight_float", 0x000000));
setTokenHightlightColor(TokenCategory.String, style.customColor("syntax_highlight_string")); // brown
setTokenHightlightColor(TokenCategory.Identifier, style.customColor("syntax_highlight_ident"));
setTokenHightlightColor(TokenCategory.Character, style.customColor("syntax_highlight_character")); // brown
setTokenHightlightColor(TokenCategory.Error, style.customColor("syntax_highlight_error")); // red
setTokenHightlightColor(TokenCategory.Comment_Documentation, style.customColor("syntax_highlight_comment_documentation"));
super.onThemeChanged();
}
protected IDESettings _settings;
@property DSourceEdit settings(IDESettings s) {
_settings = s;
return this;
}
@property IDESettings settings() {
return _settings;
}
void applySettings() {
if (!_settings)
return;
tabSize = _settings.tabSize;
useSpacesForTabs = _settings.useSpacesForTabs;
smartIndents = _settings.smartIndents;
smartIndentsAfterPaste = _settings.smartIndentsAfterPaste;
showWhiteSpaceMarks = _settings.showWhiteSpaceMarks;
showTabPositionMarks = _settings.showTabPositionMarks;
string face = _settings.editorFontFace;
if (face == "Default")
face = null;
else if (face)
face ~= ",";
face ~= DEFAULT_SOURCE_EDIT_FONT_FACES;
fontFace = face;
}
protected EditorTool _editorTool;
@property EditorTool editorTool() { return _editorTool; }
@property EditorTool editorTool(EditorTool tool) {
if (_editorTool && _editorTool !is tool) {
destroy(_editorTool);
_editorTool = null;
}
return _editorTool = tool;
};
protected ProjectSourceFile _projectSourceFile;
@property ProjectSourceFile projectSourceFile() { return _projectSourceFile; }
/// load by filename
override bool load(string fn) {
_projectSourceFile = null;
bool res = super.load(fn);
setSyntaxSupport();
return res;
}
@property bool isDSourceFile() {
return filename.endsWith(".d") || filename.endsWith(".dd") || filename.endsWith(".dd") ||
filename.endsWith(".di") || filename.endsWith(".dh") || filename.endsWith(".ddoc");
}
@property bool isJsonFile() {
return filename.endsWith(".json") || filename.endsWith(".JSON");
}
@property bool isDMLFile() {
return filename.endsWith(".dml") || filename.endsWith(".DML");
}
@property bool isXMLFile() {
return filename.endsWith(".xml") || filename.endsWith(".XML");
}
override protected MenuItem getLeftPaneIconsPopupMenu(int line) {
MenuItem menu = super.getLeftPaneIconsPopupMenu(line);
if (isDSourceFile) {
Action action = ACTION_DEBUG_TOGGLE_BREAKPOINT.clone();
action.longParam = line;
action.objectParam = this;
menu.add(action);
action = ACTION_DEBUG_ENABLE_BREAKPOINT.clone();
action.longParam = line;
action.objectParam = this;
menu.add(action);
action = ACTION_DEBUG_DISABLE_BREAKPOINT.clone();
action.longParam = line;
action.objectParam = this;
menu.add(action);
}
return menu;
}
uint _executionLineHighlightColor = BACKEND_GUI ? 0x808080FF : 0x000080;
int _executionLine = -1;
@property int executionLine() { return _executionLine; }
@property void executionLine(int line) {
if (line == _executionLine)
return;
_executionLine = line;
if (_executionLine >= 0) {
setCaretPos(_executionLine, 0, true);
}
invalidate();
}
/// override to custom highlight of line background
override protected void drawLineBackground(DrawBuf buf, int lineIndex, Rect lineRect, Rect visibleRect) {
if (lineIndex == _executionLine) {
buf.fillRect(visibleRect, _executionLineHighlightColor);
}
super.drawLineBackground(buf, lineIndex, lineRect, visibleRect);
}
void setSyntaxSupport() {
if (isDSourceFile) {
content.syntaxSupport = new SimpleDSyntaxSupport(filename);
} else if (isJsonFile) {
content.syntaxSupport = new DMLSyntaxSupport(filename);
} else if (isDMLFile) {
content.syntaxSupport = new DMLSyntaxSupport(filename);
} else {
content.syntaxSupport = null;
}
}
/// returns project import paths - if file from project is opened in current editor
string[] importPaths() {
if (_projectSourceFile)
return _projectSourceFile.project.importPaths;
return null;
}
/// load by project item
bool load(ProjectSourceFile f) {
if (!load(f.filename)) {
_projectSourceFile = null;
return false;
}
_projectSourceFile = f;
setSyntaxSupport();
return true;
}
/// save to the same file
bool save() {
return _content.save();
}
void insertCompletion(dstring completionText) {
TextRange range;
TextPosition p = caretPos;
range.start = range.end = p;
dstring lineText = content.line(p.line);
dchar prevChar = p.pos > 0 ? lineText[p.pos - 1] : 0;
dchar nextChar = p.pos < lineText.length ? lineText[p.pos] : 0;
if (isIdentMiddleChar(prevChar)) {
while(range.start.pos > 0 && isIdentMiddleChar(lineText[range.start.pos - 1]))
range.start.pos--;
if (isIdentMiddleChar(nextChar)) {
while(range.end.pos < lineText.length && isIdentMiddleChar(lineText[range.end.pos]))
range.end.pos++;
}
}
EditOperation edit = new EditOperation(EditAction.Replace, range, completionText);
_content.performOperation(edit, this);
setFocus();
}
/// override to handle specific actions
override bool handleAction(const Action a) {
import ddc.lexer.tokenizer;
if (a) {
switch (a.id) {
case IDEActions.FileSave:
save();
return true;
case IDEActions.InsertCompletion:
insertCompletion(a.label);
return true;
case IDEActions.DebugToggleBreakpoint:
case IDEActions.DebugEnableBreakpoint:
case IDEActions.DebugDisableBreakpoint:
handleBreakpointAction(a);
return true;
case EditorActions.ToggleBookmark:
super.handleAction(a);
notifyBookmarkListChanged();
return true;
default:
break;
}
}
return super.handleAction(a);
}
/// Handle Ctrl + Left mouse click on text
override protected void onControlClick() {
window.dispatchAction(ACTION_GO_TO_DEFINITION);
}
/// left button click on icons panel: toggle breakpoint
override protected bool handleLeftPaneIconsMouseClick(MouseEvent event, Rect rc, int line) {
if (event.button == MouseButton.Left) {
LineIcon icon = content.lineIcons.findByLineAndType(line, LineIconType.breakpoint);
if (icon)
removeBreakpoint(line, icon);
else
addBreakpoint(line);
return true;
}
return super.handleLeftPaneIconsMouseClick(event, rc, line);
}
protected void addBreakpoint(int line) {
import std.path;
Breakpoint bp = new Breakpoint();
bp.file = baseName(filename);
bp.line = line + 1;
bp.fullFilePath = filename;
if (projectSourceFile) {
bp.projectName = toUTF8(projectSourceFile.project.name);
bp.projectFilePath = projectSourceFile.project.absoluteToRelativePath(filename);
}
LineIcon icon = new LineIcon(LineIconType.breakpoint, line, bp);
content.lineIcons.add(icon);
notifyBreakpointListChanged();
}
protected void removeBreakpoint(int line, LineIcon icon) {
content.lineIcons.remove(icon);
notifyBreakpointListChanged();
}
void setBreakpointList(Breakpoint[] breakpoints) {
// remove all existing breakpoints
content.lineIcons.removeByType(LineIconType.breakpoint);
// add new breakpoints
foreach(bp; breakpoints) {
LineIcon icon = new LineIcon(LineIconType.breakpoint, bp.line - 1, bp);
content.lineIcons.add(icon);
}
}
Breakpoint[] getBreakpointList() {
LineIcon[] icons = content.lineIcons.findByType(LineIconType.breakpoint);
Breakpoint[] breakpoints;
foreach(icon; icons) {
Breakpoint bp = cast(Breakpoint)icon.objectParam;
if (bp)
breakpoints ~= bp;
}
return breakpoints;
}
void setBookmarkList(EditorBookmark[] bookmarks) {
// remove all existing breakpoints
content.lineIcons.removeByType(LineIconType.bookmark);
// add new breakpoints
foreach(bp; bookmarks) {
LineIcon icon = new LineIcon(LineIconType.bookmark, bp.line - 1);
content.lineIcons.add(icon);
}
}
EditorBookmark[] getBookmarkList() {
import std.path;
LineIcon[] icons = content.lineIcons.findByType(LineIconType.bookmark);
EditorBookmark[] bookmarks;
if (projectSourceFile) {
foreach(icon; icons) {
EditorBookmark bp = new EditorBookmark();
bp.line = icon.line + 1;
bp.file = baseName(filename);
bp.projectName = projectSourceFile.project.name8;
bp.fullFilePath = filename;
bp.projectFilePath = projectSourceFile.project.absoluteToRelativePath(filename);
bookmarks ~= bp;
}
}
return bookmarks;
}
protected void onMarksChange(EditableContent content, LineIcon[] movedMarks, LineIcon[] removedMarks) {
bool changed = false;
bool bookmarkChanged = false;
foreach(moved; movedMarks) {
if (moved.type == LineIconType.breakpoint) {
Breakpoint bp = cast(Breakpoint)moved.objectParam;
if (bp) {
// update Breakpoint line
bp.line = moved.line + 1;
changed = true;
}
} else if (moved.type == LineIconType.bookmark) {
EditorBookmark bp = cast(EditorBookmark)moved.objectParam;
if (bp) {
// update Breakpoint line
bp.line = moved.line + 1;
bookmarkChanged = true;
}
}
}
foreach(removed; removedMarks) {
if (removed.type == LineIconType.breakpoint) {
Breakpoint bp = cast(Breakpoint)removed.objectParam;
if (bp) {
changed = true;
}
} else if (removed.type == LineIconType.bookmark) {
EditorBookmark bp = cast(EditorBookmark)removed.objectParam;
if (bp) {
bookmarkChanged = true;
}
}
}
if (changed)
notifyBreakpointListChanged();
if (bookmarkChanged)
notifyBookmarkListChanged();
}
protected void notifyBreakpointListChanged() {
if (projectSourceFile) {
if (breakpointListChanged.assigned)
breakpointListChanged(projectSourceFile, getBreakpointList());
}
}
protected void notifyBookmarkListChanged() {
if (projectSourceFile) {
if (bookmarkListChanged.assigned)
bookmarkListChanged(projectSourceFile, getBookmarkList());
}
}
protected void handleBreakpointAction(const Action a) {
int line = a.longParam >= 0 ? cast(int)a.longParam : caretPos.line;
LineIcon icon = content.lineIcons.findByLineAndType(line, LineIconType.breakpoint);
switch(a.id) {
case IDEActions.DebugToggleBreakpoint:
if (icon)
removeBreakpoint(line, icon);
else
addBreakpoint(line);
break;
case IDEActions.DebugEnableBreakpoint:
break;
case IDEActions.DebugDisableBreakpoint:
break;
default:
break;
}
}
/// override to handle specific actions state (e.g. change enabled state for supported actions)
override bool handleActionStateRequest(const Action a) {
switch (a.id) {
case IDEActions.GoToDefinition:
case IDEActions.GetCompletionSuggestions:
case IDEActions.GetDocComments:
case IDEActions.GetParenCompletion:
case IDEActions.DebugToggleBreakpoint:
case IDEActions.DebugEnableBreakpoint:
case IDEActions.DebugDisableBreakpoint:
if (isDSourceFile)
a.state = ACTION_STATE_ENABLED;
else
a.state = ACTION_STATE_DISABLE;
return true;
default:
return super.handleActionStateRequest(a);
}
}
/// override to handle mouse hover timeout in text
override protected void onHoverTimeout(Point pt, TextPosition pos) {
// override to do something useful on hover timeout
Log.d("onHoverTimeout ", pos);
if (!isDSourceFile)
return;
editorTool.getDocComments(this, pos, delegate(string[]results) {
showDocCommentsPopup(results, pt);
});
}
PopupWidget _docsPopup;
void showDocCommentsPopup(string[] comments, Point pt = Point(-1, -1)) {
if (comments.length == 0)
return;
if (pt.x < 0 || pt.y < 0) {
pt = textPosToClient(_caretPos).topLeft;
pt.x += left + _leftPaneWidth;
pt.y += top;
}
dchar[] text;
int lineCount = 0;
foreach(s; comments) {
int lineStart = 0;
for (int i = 0; i <= s.length; i++) {
if (i == s.length || (i < s.length - 1 && s[i] == '\\' && s[i + 1] == 'n')) {
if (i > lineStart) {
if (text.length)
text ~= "\n"d;
text ~= toUTF32(s[lineStart .. i]);
lineCount++;
}
if (i < s.length)
i++;
lineStart = i + 1;
}
}
}
if (lineCount > _numVisibleLines / 4)
lineCount = _numVisibleLines / 4;
if (lineCount < 1)
lineCount = 1;
// TODO
EditBox widget = new EditBox("docComments");
widget.readOnly = true;
//TextWidget widget = new TextWidget("docComments");
//widget.maxLines = lineCount * 2;
//widget.text = "Test popup"d; //text.dup;
widget.text = text.dup;
//widget.layoutHeight = lineCount * widget.fontSize;
widget.minHeight = (lineCount + 1) * widget.fontSize;
widget.maxWidth = width * 3 / 4;
widget.minWidth = width / 8;
// widget.layoutWidth = width / 3;
widget.styleId = "POPUP_MENU";
widget.hscrollbarMode = ScrollBarMode.Auto;
widget.vscrollbarMode = ScrollBarMode.Auto;
uint pos = PopupAlign.Above;
if (pt.y < top + height / 4)
pos = PopupAlign.Below;
if (_docsPopup) {
_docsPopup.close();
_docsPopup = null;
}
_docsPopup = window.showPopup(widget, this, PopupAlign.Point | pos, pt.x, pt.y);
//popup.setFocus();
_docsPopup.popupClosed = delegate(PopupWidget source) {
Log.d("Closed Docs popup");
_docsPopup = null;
//setFocus();
};
_docsPopup.flags = PopupFlags.CloseOnClickOutside | PopupFlags.CloseOnMouseMoveOutside;
invalidate();
window.update();
}
protected CompletionPopupMenu _completionPopupMenu;
protected PopupWidget _completionPopup;
dstring identPrefixUnderCursor() {
dstring line = _content[_caretPos.line];
if (_caretPos.pos > line.length)
return null;
int end = _caretPos.pos;
int start = end;
while (start >= 0) {
dchar prevChar = start > 0 ? line[start - 1] : 0;
if (!isIdentChar(prevChar))
break;
start--;
}
if (start >= end)
return null;
return line[start .. end].dup;
}
void closeCompletionPopup(CompletionPopupMenu completion) {
if (!_completionPopup || _completionPopupMenu !is completion)
return;
_completionPopup.close();
_completionPopup = null;
_completionPopupMenu = null;
}
void showCompletionPopup(dstring[] suggestions, string[] icons) {
if(suggestions.length == 0) {
setFocus();
return;
}
if (suggestions.length == 1) {
insertCompletion(suggestions[0]);
return;
}
dstring prefix = identPrefixUnderCursor();
_completionPopupMenu = new CompletionPopupMenu(this, suggestions, icons, prefix);
int yOffset = font.height;
_completionPopup = window.showPopup(_completionPopupMenu, this, PopupAlign.Point | PopupAlign.Right,
textPosToClient(_caretPos).left + left + _leftPaneWidth,
textPosToClient(_caretPos).top + top + margins.top + yOffset);
_completionPopup.setFocus();
_completionPopup.popupClosed = delegate(PopupWidget source) {
setFocus();
_completionPopup = null;
};
_completionPopup.flags = PopupFlags.CloseOnClickOutside;
Log.d("Showing popup at ", textPosToClient(_caretPos).left, " ", textPosToClient(_caretPos).top);
window.update();
}
protected ulong _completionTimerId;
protected enum COMPLETION_TIMER_MS = 700;
protected void startCompletionTimer() {
if (_completionTimerId) {
cancelTimer(_completionTimerId);
}
_completionTimerId = setTimer(COMPLETION_TIMER_MS);
}
protected void cancelCompletionTimer() {
if (_completionTimerId) {
cancelTimer(_completionTimerId);
_completionTimerId = 0;
}
}
/// handle timer; return true to repeat timer event after next interval, false cancel timer
override bool onTimer(ulong id) {
if (id == _completionTimerId) {
_completionTimerId = 0;
if (!_completionPopup)
window.dispatchAction(ACTION_GET_COMPLETIONS, this);
}
return super.onTimer(id);
}
/// override to handle focus changes
override protected void handleFocusChange(bool focused, bool receivedFocusFromKeyboard = false) {
if (!focused)
cancelCompletionTimer();
super.handleFocusChange(focused, receivedFocusFromKeyboard);
}
protected uint _lastKeyDownCode;
protected uint _periodKeyCode;
/// handle keys: support autocompletion after . press with delay
override bool onKeyEvent(KeyEvent event) {
if (event.action == KeyAction.KeyDown)
_lastKeyDownCode = event.keyCode;
if (event.action == KeyAction.Text && event.noModifiers && event.text==".") {
_periodKeyCode = _lastKeyDownCode;
startCompletionTimer();
} else {
if (event.action == KeyAction.KeyUp && (event.text == "." || event.keyCode == KeyCode.KEY_PERIOD || event.keyCode == _periodKeyCode)) {
// keep completion timer
} else {
// cancel completion timer
cancelCompletionTimer();
}
}
return super.onKeyEvent(event);
}
}
/// returns true if character is valid ident character
bool isIdentChar(dchar ch) {
return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') || ch == '_';
}
/// returns true if all characters are valid ident chars
bool isIdentText(dstring s) {
foreach(ch; s)
if (!isIdentChar(ch))
return false;
return true;
}
class CompletionPopupMenu : PopupMenu {
protected dstring _initialPrefix;
protected dstring _prefix;
protected dstring[] _suggestions;
protected string[] _icons;
protected MenuItem _items;
protected DSourceEdit _editor;
this(DSourceEdit editor, dstring[] suggestions, string[] icons, dstring initialPrefix) {
_initialPrefix = initialPrefix;
_prefix = initialPrefix.dup;
_editor = editor;
_suggestions = suggestions;
_icons = icons;
_items = updateItems();
super(_items);
menuItemAction = _editor;
maxHeight(400);
selectItem(0);
}
MenuItem updateItems() {
MenuItem res = new MenuItem();
foreach(int i, dstring suggestion ; _suggestions) {
if (_prefix.length && !suggestion.startsWith(_prefix))
continue;
string iconId;
if (i < _icons.length)
iconId = _icons[i];
auto action = new Action(IDEActions.InsertCompletion, suggestion);
action.iconId = iconId;
res.add(action);
}
res.updateActionState(_editor);
return res;
}
/// handle keys
override bool onKeyEvent(KeyEvent event) {
if (event.action == KeyAction.Text) {
_prefix ~= event.text;
MenuItem newItems = updateItems();
if (newItems.subitemCount == 0) {
// no matches anymore
_editor.onKeyEvent(event);
_editor.closeCompletionPopup(this);
return true;
} else {
_editor.onKeyEvent(event);
menuItems = newItems;
selectItem(0);
return true;
}
} else if (event.action == KeyAction.KeyDown && event.keyCode == KeyCode.BACK && event.noModifiers) {
if (_prefix.length > _initialPrefix.length) {
_prefix.length = _prefix.length - 1;
MenuItem newItems = updateItems();
_editor.onKeyEvent(event);
menuItems = newItems;
selectItem(0);
} else {
_editor.onKeyEvent(event);
_editor.closeCompletionPopup(this);
}
return true;
} else if (event.action == KeyAction.KeyDown && event.keyCode == KeyCode.RETURN) {
} else if (event.action == KeyAction.KeyDown && event.keyCode == KeyCode.SPACE) {
}
return super.onKeyEvent(event);
}
}
|
D
|
instance NOV_1308_NOVIZE(NPC_DEFAULT)
{
name[0] = NAME_NOVIZE;
npctype = NPCTYPE_AMBIENT;
guild = GIL_NOV;
level = 9;
voice = 14;
id = 1308;
flags = NPC_FLAG_IMMORTAL;
attribute[ATR_STRENGTH] = 15;
attribute[ATR_DEXTERITY] = 15;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 148;
attribute[ATR_HITPOINTS] = 148;
Mdl_SetVisual(self,"HUMANS.MDS");
Mdl_ApplyOverlayMds(self,"Humans_Mage.mds");
Mdl_SetVisualBody(self,"hum_body_Naked0",1,1,"Hum_Head_Bald",34,3,nov_armor_m);
b_scale(self);
Mdl_SetModelFatness(self,0);
fight_tactic = FAI_HUMAN_COWARD;
EquipItem(self,itmw_1h_axe_old_01);
CreateInvItems(self,itmijoint_1,20);
CreateInvItems(self,itminugget,50);
daily_routine = rtn_start_1308;
};
func void rtn_start_1308()
{
ta_herbalchemy(7,5,0,5,"PSI_HERB_PLACE_3");
ta_sleep(0,5,7,5,"PSI_6_HUT_IN_BED1");
};
func void rtn_ch5_1308()
{
ta_stay(8,0,16,0,"NC_TAVERN_ROOM07");
ta_smalltalk(16,0,17,0,"NC_TAVERN_SIDE02");
ta_standaround(17,0,23,0,"NC_TAVERN_ROOM07");
ta_sitaround(23,0,8,0,"NC_TAVERN_SIT");
};
instance DIA_1308_NOVIZE_EXIT(C_INFO)
{
npc = nov_1308_novize;
nr = 999;
condition = dia_1308_novize_exit_condition;
information = dia_1308_novize_exit_info;
permanent = 1;
description = DIALOG_ENDE;
};
func int dia_1308_novize_exit_condition()
{
return 1;
};
func void dia_1308_novize_exit_info()
{
AI_StopProcessInfos(self);
};
instance DIA_1308_NOVIZE_HI(C_INFO)
{
npc = nov_1308_novize;
nr = 1;
condition = dia_1308_novize_hi_condition;
information = dia_1308_novize_hi_info;
permanent = 0;
important = 1;
};
func int dia_1308_novize_hi_condition()
{
if(KAPITEL > 2 && BAALISIDRO_DEALERJOB != LOG_SUCCESS)
{
return 1;
};
};
func void dia_1308_novize_hi_info()
{
AI_Output(self,other,"DIA_Baal1308_01"); //Приветствую тебя, незнакомец! Я продаю косяки из свежайшего болотника, прямиком из Болотного лагеря! Обращайся ко мне, договоримся...
if(BAALISIDRO_JOINTS_STARTED == TRUE && !Npc_KnowsInfo(hero,dia_baalisidro_revenge) && !Npc_KnowsInfo(hero,dia_baalisidro_hello_ch5))
{
AI_Output(other,self,"DIA_Baal1308_02"); //Где я могу найти...
AI_Output(self,other,"DIA_Baal1308_03"); //...Идола Исидро? Теперь я вместо него. Он поддался искушению мирской жизни вдали от своих братьев и больше не мог выполнять свои обязанности.
AI_Output(self,other,"DIA_Baal1308_04"); //Гуру решили вернуть его к более простой работе.
};
Log_CreateTopic(GE_TRADERNC,LOG_NOTE);
b_logentry(GE_TRADERNC,"В баре на озере появился послушник из Болотного лагеря. Он продает косяки из болотника.");
};
instance DIA_1308_NOVIZE_TRADE(C_INFO)
{
npc = nov_1308_novize;
nr = 800;
condition = dia_1308_novize_trade_condition;
information = dia_1308_novize_trade_info;
permanent = 1;
description = "Покажи, что ты там продаешь.";
trade = 1;
};
func int dia_1308_novize_trade_condition()
{
if(KAPITEL > 2 && Npc_KnowsInfo(hero,dia_1308_novize_hi))
{
return 1;
};
};
func void dia_1308_novize_trade_info()
{
AI_Output(other,self,"DIA_BaalIsidro_TRADE_15_00"); //Покажи, что ты там продаешь.
};
instance DIA_1308_NOVIZE_PRECH2(C_INFO)
{
npc = nov_1308_novize;
nr = 2;
condition = dia_1308_novize_prech2_condition;
information = dia_1308_novize_prech2_info;
permanent = 1;
description = "Как дела?";
};
func int dia_1308_novize_prech2_condition()
{
if(KAPITEL < 2 || BAALISIDRO_DEALERJOB == LOG_SUCCESS)
{
return 1;
};
};
func void dia_1308_novize_prech2_info()
{
AI_Output(other,self,"DIA_Gravo_Hallo_15_00"); //Как дела?
AI_Output(self,other,"DIA_BaalParvez_Sleeper_10_01"); //Спящий говорит с нами во снах и видениях.
AI_Output(self,other,"DIA_BaalParvez_PSIMagic_10_02"); //Только Гуру посвящены в таинство магии Спящего.
};
|
D
|
module ui.parse.css.font_family;
|
D
|
/*
* Hunt - A redis client library for D programming language.
*
* Copyright (C) 2018-2019 HuntLabs
*
* Website: https://www.huntlabs.net/
*
* Licensed under the Apache-2.0 License.
*
*/
module hunt.redis.commands.BinaryRedisCommands;
import hunt.redis.BinaryRedisPubSub;
import hunt.redis.BitOP;
import hunt.redis.GeoCoordinate;
import hunt.redis.GeoRadiusResponse;
import hunt.redis.GeoUnit;
import hunt.redis.ListPosition;
import hunt.redis.params.GeoRadiusParam;
import hunt.redis.params.SetParams;
import hunt.redis.params.ZAddParams;
import hunt.redis.params.ZIncrByParams;
import hunt.redis.Protocol;
import hunt.redis.RedisPubSub;
import hunt.redis.ScanParams;
import hunt.redis.ScanResult;
import hunt.redis.SortingParams;
import hunt.redis.StreamEntry;
import hunt.redis.StreamEntryID;
import hunt.redis.Tuple;
import hunt.redis.ZParams;
import hunt.collection.Collection;
import hunt.collection.List;
import hunt.collection.Map;
import hunt.collection.Set;
import hunt.Double;
import hunt.Long;
/**
* Common interface for sharded and non-sharded BinaryRedis
*/
interface BinaryRedisCommands {
string set(const(ubyte)[] key, const(ubyte)[] value);
string set(const(ubyte)[] key, const(ubyte)[] value, SetParams params);
const(ubyte)[] get(const(ubyte)[] key);
bool exists(const(ubyte)[] key);
Long persist(const(ubyte)[] key);
string type(const(ubyte)[] key);
const(ubyte)[] dump(const(ubyte)[] key);
string restore(const(ubyte)[] key, int ttl, const(ubyte)[] serializedValue);
string restoreReplace(const(ubyte)[] key, int ttl, const(ubyte)[] serializedValue);
Long expire(const(ubyte)[] key, int seconds);
Long pexpire(const(ubyte)[] key, long milliseconds);
Long expireAt(const(ubyte)[] key, long unixTime);
Long pexpireAt(const(ubyte)[] key, long millisecondsTimestamp);
Long ttl(const(ubyte)[] key);
Long pttl(const(ubyte)[] key);
Long touch(const(ubyte)[] key);
bool setbit(const(ubyte)[] key, long offset, bool value);
bool setbit(const(ubyte)[] key, long offset, const(ubyte)[] value);
bool getbit(const(ubyte)[] key, long offset);
Long setrange(const(ubyte)[] key, long offset, const(ubyte)[] value);
const(ubyte)[] getrange(const(ubyte)[] key, long startOffset, long endOffset);
const(ubyte)[] getSet(const(ubyte)[] key, const(ubyte)[] value);
Long setnx(const(ubyte)[] key, const(ubyte)[] value);
string setex(const(ubyte)[] key, int seconds, const(ubyte)[] value);
string psetex(const(ubyte)[] key, long milliseconds, const(ubyte)[] value);
Long decrBy(const(ubyte)[] key, long decrement);
Long decr(const(ubyte)[] key);
Long incrBy(const(ubyte)[] key, long increment);
Double incrByFloat(const(ubyte)[] key, double increment);
// long incr(const(ubyte)[] key);
// long append(const(ubyte)[] key, const(ubyte)[] value);
// const(ubyte)[] substr(const(ubyte)[] key, int start, int end);
// long hset(const(ubyte)[] key, const(ubyte)[] field, const(ubyte)[] value);
// long hset(const(ubyte)[] key, Map!(const(ubyte)[], const(ubyte)[]) hash);
// const(ubyte)[] hget(const(ubyte)[] key, const(ubyte)[] field);
// long hsetnx(const(ubyte)[] key, const(ubyte)[] field, const(ubyte)[] value);
// string hmset(const(ubyte)[] key, Map!(const(ubyte)[], const(ubyte)[]) hash);
// List!(const(ubyte)[]) hmget(const(ubyte)[] key, const(ubyte)[][] fields...);
// long hincrBy(const(ubyte)[] key, const(ubyte)[] field, long value);
// Double hincrByFloat(const(ubyte)[] key, const(ubyte)[] field, double value);
// bool hexists(const(ubyte)[] key, const(ubyte)[] field);
// long hdel(const(ubyte)[] key, const(ubyte)[][] field...);
// long hlen(const(ubyte)[] key);
// Set!(const(ubyte)[]) hkeys(const(ubyte)[] key);
// Collection!(const(ubyte)[]) hvals(const(ubyte)[] key);
// Map!(const(ubyte)[], const(ubyte)[]) hgetAll(const(ubyte)[] key);
// long rpush(const(ubyte)[] key, const(ubyte)[][] args...);
// long lpush(const(ubyte)[] key, const(ubyte)[][] args...);
// long llen(const(ubyte)[] key);
// List!(const(ubyte)[]) lrange(const(ubyte)[] key, long start, long stop);
// string ltrim(const(ubyte)[] key, long start, long stop);
// const(ubyte)[] lindex(const(ubyte)[] key, long index);
// string lset(const(ubyte)[] key, long index, const(ubyte)[] value);
// long lrem(const(ubyte)[] key, long count, const(ubyte)[] value);
// const(ubyte)[] lpop(const(ubyte)[] key);
// const(ubyte)[] rpop(const(ubyte)[] key);
// long sadd(const(ubyte)[] key, const(ubyte)[][] member...);
// Set!(const(ubyte)[]) smembers(const(ubyte)[] key);
// long srem(const(ubyte)[] key, const(ubyte)[][] member...);
// const(ubyte)[] spop(const(ubyte)[] key);
// Set!(const(ubyte)[]) spop(const(ubyte)[] key, long count);
// long scard(const(ubyte)[] key);
// bool sismember(const(ubyte)[] key, const(ubyte)[] member);
// const(ubyte)[] srandmember(const(ubyte)[] key);
// List!(const(ubyte)[]) srandmember(const(ubyte)[] key, int count);
Long strlen(const(ubyte)[] key);
// long zadd(const(ubyte)[] key, double score, const(ubyte)[] member);
// long zadd(const(ubyte)[] key, double score, const(ubyte)[] member, ZAddParams params);
// long zadd(const(ubyte)[] key, Map!(const(ubyte)[], double) scoreMembers);
// long zadd(const(ubyte)[] key, Map!(const(ubyte)[], double) scoreMembers, ZAddParams params);
// Set!(const(ubyte)[]) zrange(const(ubyte)[] key, long start, long stop);
// long zrem(const(ubyte)[] key, const(ubyte)[][] members...);
// Double zincrby(const(ubyte)[] key, double increment, const(ubyte)[] member);
// Double zincrby(const(ubyte)[] key, double increment, const(ubyte)[] member, ZIncrByParams params);
// long zrank(const(ubyte)[] key, const(ubyte)[] member);
// long zrevrank(const(ubyte)[] key, const(ubyte)[] member);
// Set!(const(ubyte)[]) zrevrange(const(ubyte)[] key, long start, long stop);
// Set!(Tuple) zrangeWithScores(const(ubyte)[] key, long start, long stop);
// Set!(Tuple) zrevrangeWithScores(const(ubyte)[] key, long start, long stop);
// long zcard(const(ubyte)[] key);
// Double zscore(const(ubyte)[] key, const(ubyte)[] member);
// List!(const(ubyte)[]) sort(const(ubyte)[] key);
// List!(const(ubyte)[]) sort(const(ubyte)[] key, SortingParams sortingParameters);
// long zcount(const(ubyte)[] key, double min, double max);
// long zcount(const(ubyte)[] key, const(ubyte)[] min, const(ubyte)[] max);
// Set!(const(ubyte)[]) zrangeByScore(const(ubyte)[] key, double min, double max);
// Set!(const(ubyte)[]) zrangeByScore(const(ubyte)[] key, const(ubyte)[] min, const(ubyte)[] max);
// Set!(const(ubyte)[]) zrevrangeByScore(const(ubyte)[] key, double max, double min);
// Set!(const(ubyte)[]) zrangeByScore(const(ubyte)[] key, double min, double max, int offset, int count);
// Set!(const(ubyte)[]) zrevrangeByScore(const(ubyte)[] key, const(ubyte)[] max, const(ubyte)[] min);
// Set!(const(ubyte)[]) zrangeByScore(const(ubyte)[] key, const(ubyte)[] min, const(ubyte)[] max, int offset, int count);
// Set!(const(ubyte)[]) zrevrangeByScore(const(ubyte)[] key, double max, double min, int offset, int count);
// Set!(Tuple) zrangeByScoreWithScores(const(ubyte)[] key, double min, double max);
// Set!(Tuple) zrevrangeByScoreWithScores(const(ubyte)[] key, double max, double min);
// Set!(Tuple) zrangeByScoreWithScores(const(ubyte)[] key, double min, double max, int offset, int count);
// Set!(const(ubyte)[]) zrevrangeByScore(const(ubyte)[] key, const(ubyte)[] max, const(ubyte)[] min, int offset, int count);
// Set!(Tuple) zrangeByScoreWithScores(const(ubyte)[] key, const(ubyte)[] min, const(ubyte)[] max);
// Set!(Tuple) zrevrangeByScoreWithScores(const(ubyte)[] key, const(ubyte)[] max, const(ubyte)[] min);
// Set!(Tuple) zrangeByScoreWithScores(const(ubyte)[] key, const(ubyte)[] min, const(ubyte)[] max, int offset, int count);
// Set!(Tuple) zrevrangeByScoreWithScores(const(ubyte)[] key, double max, double min, int offset, int count);
// Set!(Tuple) zrevrangeByScoreWithScores(const(ubyte)[] key, const(ubyte)[] max, const(ubyte)[] min, int offset, int count);
// long zremrangeByRank(const(ubyte)[] key, long start, long stop);
// long zremrangeByScore(const(ubyte)[] key, double min, double max);
// long zremrangeByScore(const(ubyte)[] key, const(ubyte)[] min, const(ubyte)[] max);
// long zlexcount(const(ubyte)[] key, const(ubyte)[] min, const(ubyte)[] max);
// Set!(const(ubyte)[]) zrangeByLex(const(ubyte)[] key, const(ubyte)[] min, const(ubyte)[] max);
// Set!(const(ubyte)[]) zrangeByLex(const(ubyte)[] key, const(ubyte)[] min, const(ubyte)[] max, int offset,
// int count);
// Set!(const(ubyte)[]) zrevrangeByLex(const(ubyte)[] key, const(ubyte)[] max, const(ubyte)[] min);
// Set!(const(ubyte)[]) zrevrangeByLex(const(ubyte)[] key, const(ubyte)[] max, const(ubyte)[] min, int offset,
// int count);
// long zremrangeByLex(const(ubyte)[] key, const(ubyte)[] min, const(ubyte)[] max);
// long linsert(const(ubyte)[] key, ListPosition where, const(ubyte)[] pivot, const(ubyte)[] value);
// long lpushx(const(ubyte)[] key, const(ubyte)[][] arg...);
// long rpushx(const(ubyte)[] key, const(ubyte)[][] arg...);
Long del(const(ubyte)[] key);
Long unlink(const(ubyte)[] key);
const(ubyte)[] echo(const(ubyte)[] arg);
Long move(const(ubyte)[] key, int dbIndex);
Long bitcount(const(ubyte)[] key);
Long bitcount(const(ubyte)[] key, long start, long end);
Long pfadd(const(ubyte)[] key, const(ubyte)[][] elements...);
Long pfcount(const(ubyte)[] key);
// // Geo Commands
// long geoadd(const(ubyte)[] key, double longitude, double latitude, const(ubyte)[] member);
// long geoadd(const(ubyte)[] key, Map!(const(ubyte)[], GeoCoordinate) memberCoordinateMap);
// Double geodist(const(ubyte)[] key, const(ubyte)[] member1, const(ubyte)[] member2);
// Double geodist(const(ubyte)[] key, const(ubyte)[] member1, const(ubyte)[] member2, GeoUnit unit);
// List!(const(ubyte)[]) geohash(const(ubyte)[] key, const(ubyte)[][] members...);
// List!(GeoCoordinate) geopos(const(ubyte)[] key, const(ubyte)[][] members...);
// List!(GeoRadiusResponse) georadius(const(ubyte)[] key, double longitude, double latitude, double radius,
// GeoUnit unit);
// List!(GeoRadiusResponse) georadiusReadonly(const(ubyte)[] key, double longitude, double latitude, double radius,
// GeoUnit unit);
// List!(GeoRadiusResponse) georadius(const(ubyte)[] key, double longitude, double latitude, double radius,
// GeoUnit unit, GeoRadiusParam param);
// List!(GeoRadiusResponse) georadiusReadonly(const(ubyte)[] key, double longitude, double latitude, double radius,
// GeoUnit unit, GeoRadiusParam param);
// List!(GeoRadiusResponse) georadiusByMember(const(ubyte)[] key, const(ubyte)[] member, double radius, GeoUnit unit);
// List!(GeoRadiusResponse) georadiusByMemberReadonly(const(ubyte)[] key, const(ubyte)[] member, double radius, GeoUnit unit);
// List!(GeoRadiusResponse) georadiusByMember(const(ubyte)[] key, const(ubyte)[] member, double radius, GeoUnit unit,
// GeoRadiusParam param);
// List!(GeoRadiusResponse) georadiusByMemberReadonly(const(ubyte)[] key, const(ubyte)[] member, double radius, GeoUnit unit,
// GeoRadiusParam param);
// ScanResult!(MapEntry!(const(ubyte)[], const(ubyte)[])) hscan(const(ubyte)[] key, const(ubyte)[] cursor);
// ScanResult!(MapEntry!(const(ubyte)[], const(ubyte)[])) hscan(const(ubyte)[] key, const(ubyte)[] cursor, ScanParams params);
// ScanResult!(const(ubyte)[]) sscan(const(ubyte)[] key, const(ubyte)[] cursor);
// ScanResult!(const(ubyte)[]) sscan(const(ubyte)[] key, const(ubyte)[] cursor, ScanParams params);
// ScanResult!(Tuple) zscan(const(ubyte)[] key, const(ubyte)[] cursor);
// ScanResult!(Tuple) zscan(const(ubyte)[] key, const(ubyte)[] cursor, ScanParams params);
// /**
// * Executes BITFIELD Redis command
// * @param key
// * @param arguments
// * @return
// */
// List!(long) bitfield(const(ubyte)[] key, const(ubyte)[][] arguments...);
// /**
// * Used for HSTRLEN Redis command
// * @param key
// * @param field
// * @return lenth of the value for key
// */
// long hstrlen(const(ubyte)[] key, const(ubyte)[] field);
// const(ubyte)[] xadd(const(ubyte)[] key, const(ubyte)[] id, Map!(const(ubyte)[], const(ubyte)[]) hash, long maxLen, bool approximateLength);
// long xlen(const(ubyte)[] key);
// List!(const(ubyte)[]) xrange(const(ubyte)[] key, const(ubyte)[] start, const(ubyte)[] end, long count);
// List!(const(ubyte)[]) xrevrange(const(ubyte)[] key, const(ubyte)[] end, const(ubyte)[] start, int count);
// long xack(const(ubyte)[] key, const(ubyte)[] group, const(ubyte)[][] ids...);
// string xgroupCreate(const(ubyte)[] key, const(ubyte)[] consumer, const(ubyte)[] id, bool makeStream);
// string xgroupSetID(const(ubyte)[] key, const(ubyte)[] consumer, const(ubyte)[] id);
// long xgroupDestroy(const(ubyte)[] key, const(ubyte)[] consumer);
// string xgroupDelConsumer(const(ubyte)[] key, const(ubyte)[] consumer, const(ubyte)[] consumerName);
// long xdel(const(ubyte)[] key, const(ubyte)[][] ids...);
// long xtrim(const(ubyte)[] key, long maxLen, bool approximateLength);
// List!(const(ubyte)[]) xpending(const(ubyte)[] key, const(ubyte)[] groupname, const(ubyte)[] start, const(ubyte)[] end, int count, const(ubyte)[] consumername);
// List!(const(ubyte)[]) xclaim(const(ubyte)[] key, const(ubyte)[] groupname, const(ubyte)[] consumername, long minIdleTime, long newIdleTime, int retries, bool force, const(ubyte)[][] ids);
// Object sendCommand(ProtocolCommand cmd, const(ubyte)[][] args...);
}
|
D
|
/Users/admin/Documents/anandhan/anand_projects/poc/rust-lang/projects/guessing_game/rls/debug/deps/hello_cargo-b776b287873ab085.rmeta: src/main.rs
/Users/admin/Documents/anandhan/anand_projects/poc/rust-lang/projects/guessing_game/rls/debug/deps/hello_cargo-b776b287873ab085.d: src/main.rs
src/main.rs:
|
D
|
instance Mod_7510_OUT_Raeuber_REL (Npc_Default)
{
// ------ NSC ------
name = "Räuber";
guild = GIL_OUT;
id = 7510;
voice = 0;
flags = 0;
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 4);
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_STRONG;
// ------ Equippte Waffen ------
EquipItem (self, ItMw_1H_quantarie_Schwert_01);
// ------ Inventory ------
B_CreateAmbientInv (self);
// ------ visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_Lefty, BodyTex_N, ITAR_bdt_m_01);
Mdl_SetModelFatness (self,0);
Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds");
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------
B_SetFightSkills (self, 30);
// ------ TA anmelden ------
daily_routine = Rtn_Start_7510;
};
FUNC VOID Rtn_Start_7510()
{
TA_Smalltalk (06,05,20,15,"REL_SURFACE_043");
TA_Sit_Campfire (20,15,06,05,"REL_SURFACE_124");
};
|
D
|
/*
TEST_OUTPUT:
---
U1 = int
U2 = int
V1 = long, K1 = string
V2 = long, K2 = string
TL1 = (int, string)
TL2 = (int, string)
U3 = int
U4 = int
V3 = long, K3 = string
V4 = long, K4 = string
TL3 = (int, string)
TL4 = (int, string)
---
*/
static if (is(int* == U1*, U1)) { pragma(msg, "U1 = ", U1); }
static if (is(int* : U2*, U2)) { pragma(msg, "U2 = ", U2); }
static assert(is(int* == U*, U));
static assert(is(int* : U*, U));
alias AA = long[string];
static if (is(AA == V1[K1], V1, K1)) { pragma(msg, "V1 = ", V1, ", K1 = ", K1); }
static if (is(AA : V2[K2], V2, K2)) { pragma(msg, "V2 = ", V2, ", K2 = ", K2); }
static assert(is(AA == V[K], V, K));
static assert(is(AA : V[K], V, K));
class B(TL...) {}
class C(TL...) : B!TL {}
alias X = C!(int, string);
static if (is(X == C!TL1, TL1...)) { pragma(msg, "TL1 = ", TL1); }
static if (is(X : B!TL2, TL2...)) { pragma(msg, "TL2 = ", TL2); }
static assert(is(X == C!TL, TL...));
static assert(is(X : B!TL, TL...));
void test8959()
{
static if (is(int* == U3*, U3)) { pragma(msg, "U3 = ", U3); }
static if (is(int* : U4*, U4)) { pragma(msg, "U4 = ", U4); }
static assert(is(int* == U*, U));
static assert(is(int* : U*, U));
static if (is(AA == V3[K3], V3, K3)) { pragma(msg, "V3 = ", V3, ", K3 = ", K3); }
static if (is(AA : V4[K4], V4, K4)) { pragma(msg, "V4 = ", V4, ", K4 = ", K4); }
static assert(is(AA == V[K], V, K));
static assert(is(AA : V[K], V, K));
static if (is(X == C!TL3, TL3...)) { pragma(msg, "TL3 = ", TL3); }
static if (is(X : B!TL4, TL4...)) { pragma(msg, "TL4 = ", TL4); }
static assert(is(X == C!TL, TL...));
static assert(is(X : B!TL, TL...));
}
|
D
|
/home/ono/study/rust_tests/guessing_game/target/debug/deps/guessing_game-7b7fa074f1abad57: src/main.rs
/home/ono/study/rust_tests/guessing_game/target/debug/deps/guessing_game-7b7fa074f1abad57.d: src/main.rs
src/main.rs:
|
D
|
/**
* Interface to the C linked list type.
*
* List is a complete package of functions to deal with singly linked
* lists of pointers or integers.
* Features:
* 1. Uses mem package.
* 2. Has loop-back tests.
* 3. Each item in the list can have multiple predecessors, enabling
* different lists to 'share' a common tail.
*
* Copyright: Copyright (C) 1986-1990 by Northwest Software
* Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/backend/dlist.d, backend/dlist.d)
*/
module dmd.backend.dlist;
import core.stdc.stdarg;
import core.stdc.stdio;
import core.stdc.stdlib;
import core.stdc.string;
extern (C++):
nothrow:
@safe:
@nogc
{
/* **************** TYPEDEFS AND DEFINES ****************** */
struct LIST
{
/* Do not access items in this struct directly, use the */
/* functions designed for that purpose. */
LIST* next; /* next element in list */
int count; /* when 0, element may be deleted */
union
{ void* ptr; /* data pointer */
int data;
}
}
alias list_t = LIST*; /* pointer to a list entry */
/* FPNULL is a null function pointer designed to be an argument to
* list_free().
*/
alias list_free_fp = void function(void*) @nogc nothrow;
enum FPNULL = cast(list_free_fp)null;
/* **************** PUBLIC VARIABLES ********************* */
__gshared
{
int list_inited; // != 0 if list package is initialized
list_t list_freelist;
int nlist;
}
/* **************** PUBLIC FUNCTIONS ********************* */
/********************************
* Create link to existing list, that is, share the list with
* somebody else.
*
* Returns:
* pointer to that list entry.
*/
list_t list_link(list_t list)
{
if (list)
++list.count;
return list;
}
/********************************
* Returns:
* pointer to next entry in list.
*/
list_t list_next(list_t list) { return list.next; }
/********************************
* Returns:
* ptr from list entry.
*/
@trusted
inout(void)* list_ptr(inout list_t list) { return list.ptr; }
/********************************
* Returns:
* integer item from list entry.
*/
int list_data(list_t list) { return list.data; }
/********************************
* Append integer item to list.
*/
void list_appenddata(list_t* plist, int d)
{
list_append(plist, null).data = d;
}
/********************************
* Prepend integer item to list.
*/
void list_prependdata(list_t *plist,int d)
{
list_prepend(plist, null).data = d;
}
/**********************
* Initialize list package.
* Output:
* list_inited = 1
*/
@trusted
void list_init()
{
if (list_inited == 0)
{
nlist = 0;
list_inited++;
}
}
/*******************
* Terminate list package.
* Output:
* list_inited = 0
*/
@trusted
void list_term()
{
if (list_inited)
{
debug printf("Max # of lists = %d\n",nlist);
while (list_freelist)
{
list_t list = list_next(list_freelist);
list_delete(list_freelist);
list_freelist = list;
nlist--;
}
debug if (nlist)
printf("nlist = %d\n",nlist);
assert(nlist == 0);
list_inited = 0;
}
}
@trusted
list_t list_alloc()
{
list_t list;
if (list_freelist)
{
list = list_freelist;
list_freelist = list_next(list);
//mem_setnewfileline(list,file,line);
}
else
{
nlist++;
list = list_new();
}
return list;
}
list_t list_alloc(const(char)* file, int line)
{
return list_alloc();
}
@trusted
list_t list_new() { return cast(list_t)malloc(LIST.sizeof); }
@trusted
void list_delete(list_t list) { free(list); }
/********************
* Free list.
* Params:
* plist = Pointer to list to free
* freeptr = Pointer to freeing function for the data pointer
* (use FPNULL if none)
* Output:
* *plist is null
*/
@trusted
void list_free(list_t* plist, list_free_fp freeptr)
{
list_t list = *plist;
*plist = null; // block any circular reference bugs
while (list && --list.count == 0)
{
list_t listnext = list_next(list);
if (freeptr)
(*freeptr)(list_ptr(list));
debug memset(list, 0, (*list).sizeof);
list.next = list_freelist;
list_freelist = list;
list = listnext;
}
}
void list_free(list_t *l)
{
list_free(l, FPNULL);
}
/***************************
* Remove ptr from the list pointed to by *plist.
* Output:
* *plist is updated to be the start of the new list
* Returns:
* null if *plist is null
* otherwise ptr
*/
@trusted
void* list_subtract(list_t* plist, void* ptr)
{
list_t list;
while ((list = *plist) != null)
{
if (list_ptr(list) == ptr)
{
if (--list.count == 0)
{
*plist = list_next(list);
list.next = list_freelist;
list_freelist = list;
}
return ptr;
}
else
plist = &list.next;
}
return null; // it wasn't in the list
}
/***************************
* Remove first element in list pointed to by *plist.
* Returns:
* First element, null if *plist is null
*/
void* list_pop(list_t* plist)
{
return list_subtract(plist, list_ptr(*plist));
}
/*************************
* Append ptr to *plist.
* Returns:
* pointer to list item created.
* null if out of memory
*/
@trusted
list_t list_append(list_t* plist, void* ptr)
{
while (*plist)
plist = &(*plist).next; // find end of list
list_t list = list_alloc();
if (list)
{
*plist = list;
list.next = null;
list.ptr = ptr;
list.count = 1;
}
return list;
}
list_t list_append_debug(list_t* plist, void* ptr, const(char)* file, int line)
{
return list_append(plist, ptr);
}
/*************************
* Prepend ptr to *plist.
* Returns:
* pointer to list item created (which is also the start of the list).
* null if out of memory
*/
@trusted
list_t list_prepend(list_t *plist, void *ptr)
{
list_t list = list_alloc();
if (list)
{
list.next = *plist;
list.ptr = ptr;
list.count = 1;
*plist = list;
}
return list;
}
/*************************
* Count up and return number of items in list.
* Returns:
* # of entries in list
*/
int list_nitems(list_t list)
{
int n = 0;
foreach (l; ListRange(list))
{
++n;
}
return n;
}
/*************************
* Returns:
* nth list entry in list.
*/
list_t list_nth(list_t list, int n)
{
for (int i = 0; i < n; i++)
{
assert(list);
list = list_next(list);
}
return list;
}
/***********************
* Returns:
* last list entry in list.
*/
list_t list_last(list_t list)
{
if (list)
while (list_next(list))
list = list_next(list);
return list;
}
/********************************
* Returns:
* pointer to previous item in list.
*/
list_t list_prev(list_t start, list_t list)
{
if (start)
{
if (start == list)
start = null;
else
while (list_next(start) != list)
{
start = list_next(start);
assert(start);
}
}
return start;
}
/***********************
* Copy a list and return it.
*/
@trusted
list_t list_copy(list_t list)
{
list_t c = null;
for (; list; list = list_next(list))
list_append(&c,list_ptr(list));
return c;
}
/************************
* Compare two lists.
* Returns:
* If they have the same ptrs, return 1 else 0.
*/
int list_equal(list_t list1, list_t list2)
{
while (list1 && list2)
{
if (list_ptr(list1) != list_ptr(list2))
break;
list1 = list_next(list1);
list2 = list_next(list2);
}
return list1 == list2;
}
/************************
* Compare two lists using the comparison function fp.
* The comparison function is the same as used for qsort().
* Returns:
* If they compare equal, return 0 else value returned by fp.
*/
@trusted
int list_cmp(list_t list1, list_t list2, int function(void*, void*) @nogc nothrow fp)
{
int result = 0;
while (1)
{
if (!list1)
{ if (list2)
result = -1; /* list1 < list2 */
break;
}
if (!list2)
{ result = 1; /* list1 > list2 */
break;
}
result = (*fp)(list_ptr(list1),list_ptr(list2));
if (result)
break;
list1 = list_next(list1);
list2 = list_next(list2);
}
return result;
}
/*************************
* Search for ptr in list.
* Returns:
* If found, return list entry that it is, else null.
*/
@trusted
list_t list_inlist(list_t list, void* ptr)
{
foreach (l; ListRange(list))
if (l.ptr == ptr)
return l;
return null;
}
/*************************
* Concatenate two lists (l2 appended to l1).
* Output:
* *pl1 updated to be start of concatenated list.
* Returns:
* *pl1
*/
list_t list_cat(list_t *pl1, list_t l2)
{
list_t *pl;
for (pl = pl1; *pl; pl = &(*pl).next)
{ }
*pl = l2;
return *pl1;
}
/***************************************
* Apply a function fp to each member of a list.
*/
@trusted
void list_apply(list_t* plist, void function(void*) @nogc nothrow fp)
{
if (fp)
foreach (l; ListRange(*plist))
{
(*fp)(list_ptr(l));
}
}
/********************************************
* Reverse a list in place.
*/
list_t list_reverse(list_t l)
{
list_t r = null;
while (l)
{
list_t ln = list_next(l);
l.next = r;
r = l;
l = ln;
}
return r;
}
/**********************************************
* Copy list of pointers into an array of pointers.
*/
@trusted
void list_copyinto(list_t l, void *pa)
{
void **ppa = cast(void **)pa;
for (; l; l = l.next)
{
*ppa = l.ptr;
++ppa;
}
}
/**********************************************
* Insert item into list at nth position.
*/
@trusted
list_t list_insert(list_t *pl,void *ptr,int n)
{
list_t list;
while (n)
{
pl = &(*pl).next;
n--;
}
list = list_alloc();
if (list)
{
list.next = *pl;
*pl = list;
list.ptr = ptr;
list.count = 1;
}
return list;
}
/********************************
* Range for Lists.
*/
struct ListRange
{
pure nothrow @nogc @safe:
this(list_t li)
{
this.li = li;
}
list_t front() return { return li; }
void popFront() { li = li.next; }
bool empty() const { return !li; }
private:
list_t li;
}
}
/* The following function should be nothrow @nogc, too, but on
* some platforms core.stdc.stdarg is not fully nothrow @nogc.
*/
/*************************
* Build a list out of the null-terminated argument list.
* Returns:
* generated list
*/
@trusted
list_t list_build(void *p,...)
{
va_list ap;
list_t alist = null;
list_t *pe = &alist;
for (va_start(ap,p); p; p = va_arg!(void*)(ap))
{
list_t list = list_alloc();
if (list)
{
list.next = null;
list.ptr = p;
list.count = 1;
*pe = list;
pe = &list.next;
}
}
va_end(ap);
return alist;
}
|
D
|
# FIXED
CortexM.obj: C:/Users/abhil/Documents/tirslk_maze_1_00_01/tirslk_maze_1_00_00/inc/CortexM.c
CortexM.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/stdint.h
CortexM.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/_stdint40.h
CortexM.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/stdint.h
CortexM.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/cdefs.h
CortexM.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/_types.h
CortexM.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/machine/_types.h
CortexM.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/machine/_stdint.h
CortexM.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/_stdint.h
C:/Users/abhil/Documents/tirslk_maze_1_00_01/tirslk_maze_1_00_00/inc/CortexM.c:
C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/stdint.h:
C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/_stdint40.h:
C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/stdint.h:
C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/cdefs.h:
C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/_types.h:
C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/machine/_types.h:
C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/machine/_stdint.h:
C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/_stdint.h:
|
D
|
module comet.results_io;
import std.format;
import std.stdio;
import std.range: isForwardRange;
import std.algorithm: splitter, filter, count;
import std.conv: to;
import std.traits: isInstanceOf;
import comet.sma: result, Result, hasContainer, isResult;
import comet.typedefs: Cost, segmentsLength;
private string RESULTS_HEADER_FORMAT = "%12s%12s%12s\n";
private string RESULT_WRITE_FORMAT = "%12d%12d%12.8f\n";
/**
Prints the results to the given output in the given order.
*/
public void printResults( Range )( File output, Range results ) if( isForwardRange!Range ) {
output.writef( RESULTS_HEADER_FORMAT, "start", "length", "cost" );
foreach( result; results ) {
output.printResult( result );
}
}
private void printResult( R )( File output, R result ) if( isInstanceOf!( Result, R ) ) {
output.writef( RESULT_WRITE_FORMAT, result.start, result.length, result.cost );
}
public auto resultsReader( File input ) {
return ResultsReader( input );
}
struct ResultsReader {
private:
typeof( File.byLine() ) _lines;
this( File input ) {
_lines = input.byLine;
assert( !_lines.empty, "no results in empty file " ~ input.name );
//Get rid of the header.
//TODO: it is dangerous to leave that in the constructor.
_lines.popFront();
}
this( this ) {}
public:
auto front() {
auto words = _lines.front.splitter( ' ' ).filter!( a => a.length > 0 );
//TODO: this will often fail if the encoding is not unicode.
assert( 3 == count( words ), "Unable to parse results from " ~ _lines.front ~ "\nwords count : " ~ count(words).to!string ~ "\nwords: " ~ words.to!string );
size_t start = words.front.to!size_t;
words.popFront();
size_t length = words.front.to!size_t;
words.popFront();
Cost cost = words.front.to!Cost;
return result( start, segmentsLength( length ), cost );
}
void popFront() { _lines.popFront(); }
bool empty() { return _lines.empty; }
}
private string VERBOSE_RESULTS_HEADER_FORMAT = "%12s%12s%12s%12s\n";
private string VERBOSE_RESULT_WRITE_FORMAT = "%12d%12d%12d ";
private string ROOTS_FORMAT = "%s %f %d ";
/**
Prints verbose results. Verbose results are similar to standard results apart from the fact that they also
list information for every position analyzed that lead to a given result.
*/
public void printVerboseResults(Range)(File output, Range results) if(isForwardRange!Range)
{
output.writef( VERBOSE_RESULTS_HEADER_FORMAT, "start", "length", "relPos", "roots" );
foreach(result; results)
{
output.printVerboseResult(result);
}
}
private void printVerboseResult(R)(File output, R result) if(isResult!R && hasContainer!R)
{
int pos = 0;
foreach(root; result.perPosition())
{
output.writef(VERBOSE_RESULT_WRITE_FORMAT, result.start, result.length, pos);
foreach(state; root[])
{
output.writef(ROOTS_FORMAT, state.state, state.cost, state.count);
}
output.writeln();
++pos;
}
}
|
D
|
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
auto N = readln.chomp.to!int;
foreach (_; 0..N) {
auto wh = readln.split.to!(long[]);
writeln(gcd(wh[0], wh[1]));
}
}
|
D
|
module godot.light;
import std.meta : AliasSeq, staticIndexOf;
import std.traits : Unqual;
import godot.d.meta;
import godot.core;
import godot.c;
import godot.d.bind;
import godot.object;
import godot.visualinstance;
@GodotBaseClass struct Light
{
static immutable string _GODOT_internal_name = "Light";
public:
union { godot_object _godot_object; VisualInstance base; }
alias base this;
alias BaseClasses = AliasSeq!(typeof(base), typeof(base).BaseClasses);
bool opEquals(in Light other) const { return _godot_object.ptr is other._godot_object.ptr; }
Light opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
mixin baseCasts;
static Light _new()
{
static godot_class_constructor constructor;
if(constructor is null) constructor = godot_get_class_constructor("Light");
if(constructor is null) return typeof(this).init;
return cast(Light)(constructor());
}
enum Param : int
{
PARAM_SPOT_ANGLE = 4,
PARAM_SHADOW_MAX_DISTANCE = 7,
PARAM_ENERGY = 0,
PARAM_CONTACT_SHADOW_SIZE = 6,
PARAM_ATTENUATION = 3,
PARAM_SHADOW_SPLIT_1_OFFSET = 8,
PARAM_SHADOW_SPLIT_2_OFFSET = 9,
PARAM_SHADOW_NORMAL_BIAS = 11,
PARAM_SHADOW_BIAS = 12,
PARAM_RANGE = 2,
PARAM_SHADOW_SPLIT_3_OFFSET = 10,
PARAM_SPECULAR = 1,
PARAM_SPOT_ATTENUATION = 5,
PARAM_MAX = 14,
}
enum int PARAM_SPOT_ANGLE = 4;
enum int PARAM_SHADOW_MAX_DISTANCE = 7;
enum int PARAM_ENERGY = 0;
enum int PARAM_CONTACT_SHADOW_SIZE = 6;
enum int PARAM_ATTENUATION = 3;
enum int PARAM_SHADOW_SPLIT_1_OFFSET = 8;
enum int PARAM_SHADOW_SPLIT_2_OFFSET = 9;
enum int PARAM_SHADOW_NORMAL_BIAS = 11;
enum int PARAM_SHADOW_BIAS = 12;
enum int PARAM_RANGE = 2;
enum int PARAM_SHADOW_SPLIT_3_OFFSET = 10;
enum int PARAM_SPECULAR = 1;
enum int PARAM_SPOT_ATTENUATION = 5;
enum int PARAM_MAX = 14;
package(godot) static GodotMethod!(void, bool) _GODOT_set_editor_only;
package(godot) alias _GODOT_methodBindInfo(string name : "set_editor_only") = _GODOT_set_editor_only;
void set_editor_only(in bool editor_only)
{
_GODOT_set_editor_only.bind("Light", "set_editor_only");
ptrcall!(void)(_GODOT_set_editor_only, _godot_object, editor_only);
}
package(godot) static GodotMethod!(bool) _GODOT_is_editor_only;
package(godot) alias _GODOT_methodBindInfo(string name : "is_editor_only") = _GODOT_is_editor_only;
bool is_editor_only() const
{
_GODOT_is_editor_only.bind("Light", "is_editor_only");
return ptrcall!(bool)(_GODOT_is_editor_only, _godot_object);
}
package(godot) static GodotMethod!(void, int, float) _GODOT_set_param;
package(godot) alias _GODOT_methodBindInfo(string name : "set_param") = _GODOT_set_param;
void set_param(in int param, in float value)
{
_GODOT_set_param.bind("Light", "set_param");
ptrcall!(void)(_GODOT_set_param, _godot_object, param, value);
}
package(godot) static GodotMethod!(float, int) _GODOT_get_param;
package(godot) alias _GODOT_methodBindInfo(string name : "get_param") = _GODOT_get_param;
float get_param(in int param) const
{
_GODOT_get_param.bind("Light", "get_param");
return ptrcall!(float)(_GODOT_get_param, _godot_object, param);
}
package(godot) static GodotMethod!(void, bool) _GODOT_set_shadow;
package(godot) alias _GODOT_methodBindInfo(string name : "set_shadow") = _GODOT_set_shadow;
void set_shadow(in bool enabled)
{
_GODOT_set_shadow.bind("Light", "set_shadow");
ptrcall!(void)(_GODOT_set_shadow, _godot_object, enabled);
}
package(godot) static GodotMethod!(bool) _GODOT_has_shadow;
package(godot) alias _GODOT_methodBindInfo(string name : "has_shadow") = _GODOT_has_shadow;
bool has_shadow() const
{
_GODOT_has_shadow.bind("Light", "has_shadow");
return ptrcall!(bool)(_GODOT_has_shadow, _godot_object);
}
package(godot) static GodotMethod!(void, bool) _GODOT_set_negative;
package(godot) alias _GODOT_methodBindInfo(string name : "set_negative") = _GODOT_set_negative;
void set_negative(in bool enabled)
{
_GODOT_set_negative.bind("Light", "set_negative");
ptrcall!(void)(_GODOT_set_negative, _godot_object, enabled);
}
package(godot) static GodotMethod!(bool) _GODOT_is_negative;
package(godot) alias _GODOT_methodBindInfo(string name : "is_negative") = _GODOT_is_negative;
bool is_negative() const
{
_GODOT_is_negative.bind("Light", "is_negative");
return ptrcall!(bool)(_GODOT_is_negative, _godot_object);
}
package(godot) static GodotMethod!(void, int) _GODOT_set_cull_mask;
package(godot) alias _GODOT_methodBindInfo(string name : "set_cull_mask") = _GODOT_set_cull_mask;
void set_cull_mask(in int cull_mask)
{
_GODOT_set_cull_mask.bind("Light", "set_cull_mask");
ptrcall!(void)(_GODOT_set_cull_mask, _godot_object, cull_mask);
}
package(godot) static GodotMethod!(int) _GODOT_get_cull_mask;
package(godot) alias _GODOT_methodBindInfo(string name : "get_cull_mask") = _GODOT_get_cull_mask;
int get_cull_mask() const
{
_GODOT_get_cull_mask.bind("Light", "get_cull_mask");
return ptrcall!(int)(_GODOT_get_cull_mask, _godot_object);
}
package(godot) static GodotMethod!(void, Color) _GODOT_set_color;
package(godot) alias _GODOT_methodBindInfo(string name : "set_color") = _GODOT_set_color;
void set_color(in Color color)
{
_GODOT_set_color.bind("Light", "set_color");
ptrcall!(void)(_GODOT_set_color, _godot_object, color);
}
package(godot) static GodotMethod!(Color) _GODOT_get_color;
package(godot) alias _GODOT_methodBindInfo(string name : "get_color") = _GODOT_get_color;
Color get_color() const
{
_GODOT_get_color.bind("Light", "get_color");
return ptrcall!(Color)(_GODOT_get_color, _godot_object);
}
package(godot) static GodotMethod!(void, bool) _GODOT_set_shadow_reverse_cull_face;
package(godot) alias _GODOT_methodBindInfo(string name : "set_shadow_reverse_cull_face") = _GODOT_set_shadow_reverse_cull_face;
void set_shadow_reverse_cull_face(in bool enable)
{
_GODOT_set_shadow_reverse_cull_face.bind("Light", "set_shadow_reverse_cull_face");
ptrcall!(void)(_GODOT_set_shadow_reverse_cull_face, _godot_object, enable);
}
package(godot) static GodotMethod!(bool) _GODOT_get_shadow_reverse_cull_face;
package(godot) alias _GODOT_methodBindInfo(string name : "get_shadow_reverse_cull_face") = _GODOT_get_shadow_reverse_cull_face;
bool get_shadow_reverse_cull_face() const
{
_GODOT_get_shadow_reverse_cull_face.bind("Light", "get_shadow_reverse_cull_face");
return ptrcall!(bool)(_GODOT_get_shadow_reverse_cull_face, _godot_object);
}
package(godot) static GodotMethod!(void, Color) _GODOT_set_shadow_color;
package(godot) alias _GODOT_methodBindInfo(string name : "set_shadow_color") = _GODOT_set_shadow_color;
void set_shadow_color(in Color shadow_color)
{
_GODOT_set_shadow_color.bind("Light", "set_shadow_color");
ptrcall!(void)(_GODOT_set_shadow_color, _godot_object, shadow_color);
}
package(godot) static GodotMethod!(Color) _GODOT_get_shadow_color;
package(godot) alias _GODOT_methodBindInfo(string name : "get_shadow_color") = _GODOT_get_shadow_color;
Color get_shadow_color() const
{
_GODOT_get_shadow_color.bind("Light", "get_shadow_color");
return ptrcall!(Color)(_GODOT_get_shadow_color, _godot_object);
}
}
|
D
|
module vertexarray;
import derelict.opengl3.gl3;
import shader;
import vector;
class VertexArray(DataType = vec3){
private GLuint vbo;
private GLuint bufferType = GL_ARRAY_BUFFER;
private GLuint memoryMode = GL_STATIC_DRAW;
private uint _length = 0;
this(GLuint _bufferType = GL_ARRAY_BUFFER, GLuint _memMode = GL_STATIC_DRAW){
glGenBuffers(1, &vbo);
bufferType = _bufferType;
memoryMode = _memMode;
}
~this(){
glDeleteBuffers(1, &vbo);
}
void Bind(){
glBindBuffer(bufferType, vbo);
}
void Bind(Attribute attr){
Bind();
static if(is(DataType : vec!D, uint D)){
glVertexAttribPointer(attr.loc, D /*DataType.dimensions*/, GL_FLOAT, GL_FALSE, 0, null);
}else static if(is(DataType == float)){
glVertexAttribPointer(attr.loc, 1, GL_FLOAT, GL_FALSE, 0, null);
}else static if(is(DataType == double)){
glVertexAttribPointer(attr.loc, 1, GL_DOUBLE, GL_FALSE, 0, null);
}else static if(is(DataType == int)){
glVertexAttribPointer(attr.loc, 1, GL_INT, GL_FALSE, 0, null);
}else static if(is(DataType == short)){
glVertexAttribPointer(attr.loc, 1, GL_SHORT, GL_FALSE, 0, null);
}else static if(is(DataType == byte)){
glVertexAttribPointer(attr.loc, 1, GL_BYTE, GL_FALSE, 0, null);
}else static if(is(DataType == uint)){
glVertexAttribPointer(attr.loc, 1, GL_UNSIGNED_INT, GL_FALSE, 0, null);
}else static if(is(DataType == ushort)){
glVertexAttribPointer(attr.loc, 1, GL_UNSIGNED_SHORT, GL_FALSE, 0, null);
}else static if(is(DataType == ubyte)){
glVertexAttribPointer(attr.loc, 1, GL_UNSIGNED_BYTE, GL_FALSE, 0, null);
}else{
static assert(false, "Type " ~ DataType.stringof ~ " not implemented");
}
}
void Unbind(){
glBindBuffer(bufferType, 0);
}
void Load(DataType[] data){
Bind();
glBufferData(bufferType, DataType.sizeof * data.length, data.ptr, memoryMode);
_length = cast(uint) data.length;
Unbind();
}
uint length(){
return _length;
}
}
|
D
|
module android.java.java.io.NotActiveException;
public import android.java.java.io.NotActiveException_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!NotActiveException;
import import4 = android.java.java.lang.Class;
import import3 = android.java.java.lang.StackTraceElement;
import import0 = android.java.java.lang.JavaThrowable;
|
D
|
/*
Copyright (c) 2015, Dennis Meuwissen
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License does not apply to code and information found in the ./info directory.
*/
module util.binaryfile;
import std.stdio;
import std.string;
import std.bitmanip;
import std.file;
public final class BinaryFile {
private string _name;
private ubyte[] _data;
private uint _offset;
this(const string fileName) {
_name = fileName;
_data = cast(ubyte[])read(fileName);
}
public void seek(const uint offset) {
_offset = offset;
}
public void skip(const uint bytes) {
_offset += bytes;
}
public string readNullString(const uint length) {
ubyte[] buffer = _data[_offset.._offset + length];
_offset += length;
int nullIndex = length;
for (int index = 0; index < length; index++) {
if (buffer[index] == 0) {
nullIndex = index;
break;
}
}
return cast(string)buffer[0..nullIndex];
}
public string readString(const uint length) {
ubyte[] buffer = _data[_offset.._offset + length];
_offset += length;
return cast(string)buffer[0..length];
}
public ubyte[] readBytes(const uint amount) {
ubyte[] buffer = _data[_offset.._offset + amount];
_offset += amount;
return buffer;
}
public ubyte readUByte() {
ubyte[1] buffer = _data[_offset];
_offset += 1;
return buffer[0];
}
public ushort readUShort() {
ubyte[2] buffer = _data[_offset.._offset + 2];
_offset += 2;
return littleEndianToNative!ushort(buffer[0..2]);
}
public uint readUInt() {
ubyte[4] buffer = _data[_offset.._offset + 4];
_offset += 4;
return littleEndianToNative!uint(buffer[0..4]);
}
public byte readByte() {
byte[1] buffer = _data[_offset];
_offset += 1;
return buffer[0];
}
public short readShort() {
ubyte[2] buffer = _data[_offset.._offset + 2];
_offset += 2;
return littleEndianToNative!short(buffer[0..2]);
}
public int readInt() {
ubyte[4] buffer = _data[_offset.._offset + 4];
_offset += 4;
return littleEndianToNative!int(buffer[0..4]);
}
public void close() {
_data.length = 0;
_offset = 0;
}
@property public bool eof() {
return (_offset >= _data.length);
}
@property public uint offset() {
return _offset;
}
@property public uint size() {
return _data.length;
}
@property public string name() {
return _name;
}
}
|
D
|
module net.pms.external.FinalizeTranscoderArgsListener;
import net.pms.dlna.DLNAMediaInfo;
import net.pms.dlna.DLNAResource;
import net.pms.encoders.Player;
import net.pms.io.OutputParams;
import java.util.List;
/**
* Classes implementing this interface and packaged as pms plugins will have the
* possibility to modify transcoding arguments when a resource is being
* transcoded
*/
public interface FinalizeTranscoderArgsListener : ExternalListener {
/**
* Called before the transcoding of a resource starts to determine the list
* of commands to be used
*
* @param player
* the player being used
* @param filename
* the name of the file being transcoded
* @param dlna
* the DLNAResource being transcoded
* @param media
* the DLNAMediaInfo for the file being transcoded
* @param params
* the used OutputParams
* @param cmdList
* the list of commands
* @return the exhaustive list of all commands. It will replace the ones
* received as cmdList
*/
public List/*<String>*/ finalizeTranscoderArgs(Player player, String filename,
DLNAResource dlna, DLNAMediaInfo media, OutputParams params,
List/*<String>*/ cmdList);
}
|
D
|
/Users/vishesh/Downloads/SkipQueue/build/SkipQueue.build/Debug-iphonesimulator/SkipQueue.build/Objects-normal/x86_64/register.o : /Users/vishesh/Downloads/SkipQueue/SkipQueue/OTPVC.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/locationVC.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/mallsVC.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/ViewController.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/customCellMalls.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/AppDelegate.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/register.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/DatabaseManager.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/vishesh/Downloads/SkipQueue/build/SkipQueue.build/Debug-iphonesimulator/SkipQueue.build/Objects-normal/x86_64/register~partial.swiftmodule : /Users/vishesh/Downloads/SkipQueue/SkipQueue/OTPVC.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/locationVC.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/mallsVC.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/ViewController.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/customCellMalls.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/AppDelegate.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/register.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/DatabaseManager.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/vishesh/Downloads/SkipQueue/build/SkipQueue.build/Debug-iphonesimulator/SkipQueue.build/Objects-normal/x86_64/register~partial.swiftdoc : /Users/vishesh/Downloads/SkipQueue/SkipQueue/OTPVC.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/locationVC.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/mallsVC.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/ViewController.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/customCellMalls.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/AppDelegate.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/register.swift /Users/vishesh/Downloads/SkipQueue/SkipQueue/DatabaseManager.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
|
D
|
/**
* The atomic module provides basic support for lock-free
* concurrent programming.
*
* Copyright: Copyright Sean Kelly 2005 - 2010.
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Authors: Sean Kelly, Alex Rønne Petersen
* Source: $(DRUNTIMESRC core/_atomic.d)
*/
/* Copyright Sean Kelly 2005 - 2010.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module core.atomic;
version( D_InlineAsm_X86 )
{
version = AsmX86;
version = AsmX86_32;
enum has64BitCAS = true;
}
else version( D_InlineAsm_X86_64 )
{
version = AsmX86;
version = AsmX86_64;
enum has64BitCAS = true;
}
else
{
enum has64BitCAS = false;
}
private
{
template HeadUnshared(T)
{
static if( is( T U : shared(U*) ) )
alias shared(U)* HeadUnshared;
else
alias T HeadUnshared;
}
}
version( AsmX86 )
{
// NOTE: Strictly speaking, the x86 supports atomic operations on
// unaligned values. However, this is far slower than the
// common case, so such behavior should be prohibited.
private bool atomicValueIsProperlyAligned(T)( size_t addr ) pure nothrow
{
return addr % T.sizeof == 0;
}
}
version( CoreDdoc )
{
/**
* Performs the binary operation 'op' on val using 'mod' as the modifier.
*
* Params:
* val = The target variable.
* mod = The modifier to apply.
*
* Returns:
* The result of the operation.
*/
HeadUnshared!(T) atomicOp(string op, T, V1)( ref shared T val, V1 mod ) nothrow
if( __traits( compiles, mixin( "val" ~ op ~ "mod" ) ) )
{
return HeadUnshared!(T).init;
}
/**
* Stores 'writeThis' to the memory referenced by 'here' if the value
* referenced by 'here' is equal to 'ifThis'. This operation is both
* lock-free and atomic.
*
* Params:
* here = The address of the destination variable.
* writeThis = The value to store.
* ifThis = The comparison value.
*
* Returns:
* true if the store occurred, false if not.
*/
bool cas(T,V1,V2)( shared(T)* here, const V1 ifThis, const V2 writeThis ) nothrow
if( !is(T == class) && !is(T U : U*) && __traits( compiles, { *here = writeThis; } ) );
/// Ditto
bool cas(T,V1,V2)( shared(T)* here, const shared(V1) ifThis, shared(V2) writeThis ) nothrow
if( is(T == class) && __traits( compiles, { *here = writeThis; } ) );
/// Ditto
bool cas(T,V1,V2)( shared(T)* here, const shared(V1)* ifThis, shared(V2)* writeThis ) nothrow
if( is(T U : U*) && __traits( compiles, { *here = writeThis; } ) );
/**
* Loads 'val' from memory and returns it. The memory barrier specified
* by 'ms' is applied to the operation, which is fully sequenced by
* default.
*
* Params:
* val = The target variable.
*
* Returns:
* The value of 'val'.
*/
HeadUnshared!(T) atomicLoad(MemoryOrder ms = MemoryOrder.seq,T)( ref const shared T val ) nothrow
{
return HeadUnshared!(T).init;
}
/**
* Writes 'newval' into 'val'. The memory barrier specified by 'ms' is
* applied to the operation, which is fully sequenced by default.
*
* Params:
* val = The target variable.
* newval = The value to store.
*/
void atomicStore(MemoryOrder ms = MemoryOrder.seq,T,V1)( ref shared T val, V1 newval ) nothrow
if( __traits( compiles, { val = newval; } ) )
{
}
/**
* Specifies the memory ordering semantics of an atomic operation.
*/
enum MemoryOrder
{
raw, /// Not sequenced.
acq, /// Hoist-load + hoist-store barrier.
rel, /// Sink-load + sink-store barrier.
seq, /// Fully sequenced (acquire + release).
}
deprecated("Please use MemoryOrder instead.")
alias MemoryOrder msync;
/**
* Inserts a full load/store memory fence (on platforms that need it). This ensures
* that all loads and stores before a call to this function are executed before any
* loads and stores after the call.
*/
void atomicFence() nothrow;
}
else version( AsmX86_32 )
{
HeadUnshared!(T) atomicOp(string op, T, V1)( ref shared T val, V1 mod ) nothrow
if( __traits( compiles, mixin( "val" ~ op ~ "mod" ) ) )
in
{
// NOTE: 32 bit x86 systems support 8 byte CAS, which only requires
// 4 byte alignment, so use size_t as the align type here.
static if( T.sizeof > size_t.sizeof )
assert( atomicValueIsProperlyAligned!(size_t)( cast(size_t) &val ) );
else
assert( atomicValueIsProperlyAligned!(T)( cast(size_t) &val ) );
}
body
{
// binary operators
//
// + - * / % ^^ &
// | ^ << >> >>> ~ in
// == != < <= > >=
static if( op == "+" || op == "-" || op == "*" || op == "/" ||
op == "%" || op == "^^" || op == "&" || op == "|" ||
op == "^" || op == "<<" || op == ">>" || op == ">>>" ||
op == "~" || // skip "in"
op == "==" || op == "!=" || op == "<" || op == "<=" ||
op == ">" || op == ">=" )
{
HeadUnshared!(T) get = atomicLoad!(MemoryOrder.raw)( val );
mixin( "return get " ~ op ~ " mod;" );
}
else
// assignment operators
//
// += -= *= /= %= ^^= &=
// |= ^= <<= >>= >>>= ~=
static if( op == "+=" || op == "-=" || op == "*=" || op == "/=" ||
op == "%=" || op == "^^=" || op == "&=" || op == "|=" ||
op == "^=" || op == "<<=" || op == ">>=" || op == ">>>=" ) // skip "~="
{
HeadUnshared!(T) get, set;
do
{
get = set = atomicLoad!(MemoryOrder.raw)( val );
mixin( "set " ~ op ~ " mod;" );
} while( !cas( &val, get, set ) );
return set;
}
else
{
static assert( false, "Operation not supported." );
}
}
bool cas(T,V1,V2)( shared(T)* here, const V1 ifThis, const V2 writeThis ) nothrow
if( !is(T == class) && !is(T U : U*) && __traits( compiles, { *here = writeThis; } ) )
{
return casImpl(here, ifThis, writeThis);
}
bool cas(T,V1,V2)( shared(T)* here, const shared(V1) ifThis, shared(V2) writeThis ) nothrow
if( is(T == class) && __traits( compiles, { *here = writeThis; } ) )
{
return casImpl(here, ifThis, writeThis);
}
bool cas(T,V1,V2)( shared(T)* here, const shared(V1)* ifThis, shared(V2)* writeThis ) nothrow
if( is(T U : U*) && __traits( compiles, { *here = writeThis; } ) )
{
return casImpl(here, ifThis, writeThis);
}
private bool casImpl(T,V1,V2)( shared(T)* here, V1 ifThis, V2 writeThis ) nothrow
in
{
// NOTE: 32 bit x86 systems support 8 byte CAS, which only requires
// 4 byte alignment, so use size_t as the align type here.
static if( T.sizeof > size_t.sizeof )
assert( atomicValueIsProperlyAligned!(size_t)( cast(size_t) here ) );
else
assert( atomicValueIsProperlyAligned!(T)( cast(size_t) here ) );
}
body
{
static if( T.sizeof == byte.sizeof )
{
//////////////////////////////////////////////////////////////////
// 1 Byte CAS
//////////////////////////////////////////////////////////////////
asm
{
mov DL, writeThis;
mov AL, ifThis;
mov ECX, here;
lock; // lock always needed to make this op atomic
cmpxchg [ECX], DL;
setz AL;
}
}
else static if( T.sizeof == short.sizeof )
{
//////////////////////////////////////////////////////////////////
// 2 Byte CAS
//////////////////////////////////////////////////////////////////
asm
{
mov DX, writeThis;
mov AX, ifThis;
mov ECX, here;
lock; // lock always needed to make this op atomic
cmpxchg [ECX], DX;
setz AL;
}
}
else static if( T.sizeof == int.sizeof )
{
//////////////////////////////////////////////////////////////////
// 4 Byte CAS
//////////////////////////////////////////////////////////////////
asm
{
mov EDX, writeThis;
mov EAX, ifThis;
mov ECX, here;
lock; // lock always needed to make this op atomic
cmpxchg [ECX], EDX;
setz AL;
}
}
else static if( T.sizeof == long.sizeof && has64BitCAS )
{
//////////////////////////////////////////////////////////////////
// 8 Byte CAS on a 32-Bit Processor
//////////////////////////////////////////////////////////////////
asm
{
push EDI;
push EBX;
lea EDI, writeThis;
mov EBX, [EDI];
mov ECX, 4[EDI];
lea EDI, ifThis;
mov EAX, [EDI];
mov EDX, 4[EDI];
mov EDI, here;
lock; // lock always needed to make this op atomic
cmpxchg8b [EDI];
setz AL;
pop EBX;
pop EDI;
}
}
else
{
static assert( false, "Invalid template type specified." );
}
}
enum MemoryOrder
{
raw,
acq,
rel,
seq,
}
deprecated("Please use MemoryOrder instead.")
alias MemoryOrder msync;
private
{
template isHoistOp(MemoryOrder ms)
{
enum bool isHoistOp = ms == MemoryOrder.acq ||
ms == MemoryOrder.seq;
}
template isSinkOp(MemoryOrder ms)
{
enum bool isSinkOp = ms == MemoryOrder.rel ||
ms == MemoryOrder.seq;
}
// NOTE: While x86 loads have acquire semantics for stores, it appears
// that independent loads may be reordered by some processors
// (notably the AMD64). This implies that the hoist-load barrier
// op requires an ordering instruction, which also extends this
// requirement to acquire ops (though hoist-store should not need
// one if support is added for this later). However, since no
// modern architectures will reorder dependent loads to occur
// before the load they depend on (except the Alpha), raw loads
// are actually a possible means of ordering specific sequences
// of loads in some instances.
//
// For reference, the old behavior (acquire semantics for loads)
// required a memory barrier if: ms == MemoryOrder.seq || isSinkOp!(ms)
template needsLoadBarrier( MemoryOrder ms )
{
enum bool needsLoadBarrier = ms != MemoryOrder.raw;
}
// NOTE: x86 stores implicitly have release semantics so a memory
// barrier is only necessary on acquires.
template needsStoreBarrier( MemoryOrder ms )
{
enum bool needsStoreBarrier = ms == MemoryOrder.seq ||
isHoistOp!(ms);
}
}
HeadUnshared!(T) atomicLoad(MemoryOrder ms = MemoryOrder.seq, T)( ref const shared T val ) nothrow
if(!__traits(isFloating, T))
{
static if (!__traits(isPOD, T))
{
static assert( false, "argument to atomicLoad() must be POD" );
}
else static if( T.sizeof == byte.sizeof )
{
//////////////////////////////////////////////////////////////////
// 1 Byte Load
//////////////////////////////////////////////////////////////////
static if( needsLoadBarrier!(ms) )
{
asm
{
mov DL, 0;
mov AL, 0;
mov ECX, val;
lock; // lock always needed to make this op atomic
cmpxchg [ECX], DL;
}
}
else
{
asm
{
mov EAX, val;
mov AL, [EAX];
}
}
}
else static if( T.sizeof == short.sizeof )
{
//////////////////////////////////////////////////////////////////
// 2 Byte Load
//////////////////////////////////////////////////////////////////
static if( needsLoadBarrier!(ms) )
{
asm
{
mov DX, 0;
mov AX, 0;
mov ECX, val;
lock; // lock always needed to make this op atomic
cmpxchg [ECX], DX;
}
}
else
{
asm
{
mov EAX, val;
mov AX, [EAX];
}
}
}
else static if( T.sizeof == int.sizeof )
{
//////////////////////////////////////////////////////////////////
// 4 Byte Load
//////////////////////////////////////////////////////////////////
static if( needsLoadBarrier!(ms) )
{
asm
{
mov EDX, 0;
mov EAX, 0;
mov ECX, val;
lock; // lock always needed to make this op atomic
cmpxchg [ECX], EDX;
}
}
else
{
asm
{
mov EAX, val;
mov EAX, [EAX];
}
}
}
else static if( T.sizeof == long.sizeof && has64BitCAS )
{
//////////////////////////////////////////////////////////////////
// 8 Byte Load on a 32-Bit Processor
//////////////////////////////////////////////////////////////////
asm
{
push EDI;
push EBX;
mov EBX, 0;
mov ECX, 0;
mov EAX, 0;
mov EDX, 0;
mov EDI, val;
lock; // lock always needed to make this op atomic
cmpxchg8b [EDI];
pop EBX;
pop EDI;
}
}
else
{
static assert( false, "Invalid template type specified." );
}
}
void atomicStore(MemoryOrder ms = MemoryOrder.seq, T, V1)( ref shared T val, V1 newval ) nothrow
if( __traits( compiles, { val = newval; } ) )
{
static if( T.sizeof == byte.sizeof )
{
//////////////////////////////////////////////////////////////////
// 1 Byte Store
//////////////////////////////////////////////////////////////////
static if( needsStoreBarrier!(ms) )
{
asm
{
mov EAX, val;
mov DL, newval;
lock;
xchg [EAX], DL;
}
}
else
{
asm
{
mov EAX, val;
mov DL, newval;
mov [EAX], DL;
}
}
}
else static if( T.sizeof == short.sizeof )
{
//////////////////////////////////////////////////////////////////
// 2 Byte Store
//////////////////////////////////////////////////////////////////
static if( needsStoreBarrier!(ms) )
{
asm
{
mov EAX, val;
mov DX, newval;
lock;
xchg [EAX], DX;
}
}
else
{
asm
{
mov EAX, val;
mov DX, newval;
mov [EAX], DX;
}
}
}
else static if( T.sizeof == int.sizeof )
{
//////////////////////////////////////////////////////////////////
// 4 Byte Store
//////////////////////////////////////////////////////////////////
static if( needsStoreBarrier!(ms) )
{
asm
{
mov EAX, val;
mov EDX, newval;
lock;
xchg [EAX], EDX;
}
}
else
{
asm
{
mov EAX, val;
mov EDX, newval;
mov [EAX], EDX;
}
}
}
else static if( T.sizeof == long.sizeof && has64BitCAS )
{
//////////////////////////////////////////////////////////////////
// 8 Byte Store on a 32-Bit Processor
//////////////////////////////////////////////////////////////////
asm
{
push EDI;
push EBX;
lea EDI, newval;
mov EBX, [EDI];
mov ECX, 4[EDI];
mov EDI, val;
mov EAX, [EDI];
mov EDX, 4[EDI];
L1: lock; // lock always needed to make this op atomic
cmpxchg8b [EDI];
jne L1;
pop EBX;
pop EDI;
}
}
else
{
static assert( false, "Invalid template type specified." );
}
}
void atomicFence() nothrow
{
import core.cpuid;
asm
{
naked;
call sse2;
test AL, AL;
jne Lcpuid;
// Fast path: We have SSE2, so just use mfence.
mfence;
jmp Lend;
Lcpuid:
// Slow path: We use cpuid to serialize. This is
// significantly slower than mfence, but is the
// only serialization facility we have available
// on older non-SSE2 chips.
push EBX;
mov EAX, 0;
cpuid;
pop EBX;
Lend:
ret;
}
}
}
else version( AsmX86_64 )
{
HeadUnshared!(T) atomicOp(string op, T, V1)( ref shared T val, V1 mod ) nothrow
if( __traits( compiles, mixin( "val" ~ op ~ "mod" ) ) )
in
{
// NOTE: 32 bit x86 systems support 8 byte CAS, which only requires
// 4 byte alignment, so use size_t as the align type here.
static if( T.sizeof > size_t.sizeof )
assert( atomicValueIsProperlyAligned!(size_t)( cast(size_t) &val ) );
else
assert( atomicValueIsProperlyAligned!(T)( cast(size_t) &val ) );
}
body
{
// binary operators
//
// + - * / % ^^ &
// | ^ << >> >>> ~ in
// == != < <= > >=
static if( op == "+" || op == "-" || op == "*" || op == "/" ||
op == "%" || op == "^^" || op == "&" || op == "|" ||
op == "^" || op == "<<" || op == ">>" || op == ">>>" ||
op == "~" || // skip "in"
op == "==" || op == "!=" || op == "<" || op == "<=" ||
op == ">" || op == ">=" )
{
HeadUnshared!(T) get = atomicLoad!(MemoryOrder.raw)( val );
mixin( "return get " ~ op ~ " mod;" );
}
else
// assignment operators
//
// += -= *= /= %= ^^= &=
// |= ^= <<= >>= >>>= ~=
static if( op == "+=" || op == "-=" || op == "*=" || op == "/=" ||
op == "%=" || op == "^^=" || op == "&=" || op == "|=" ||
op == "^=" || op == "<<=" || op == ">>=" || op == ">>>=" ) // skip "~="
{
HeadUnshared!(T) get, set;
do
{
get = set = atomicLoad!(MemoryOrder.raw)( val );
mixin( "set " ~ op ~ " mod;" );
} while( !cas( &val, get, set ) );
return set;
}
else
{
static assert( false, "Operation not supported." );
}
}
bool cas(T,V1,V2)( shared(T)* here, const V1 ifThis, const V2 writeThis ) nothrow
if( !is(T == class) && !is(T U : U*) && __traits( compiles, { *here = writeThis; } ) )
{
return casImpl(here, ifThis, writeThis);
}
bool cas(T,V1,V2)( shared(T)* here, const shared(V1) ifThis, shared(V2) writeThis ) nothrow
if( is(T == class) && __traits( compiles, { *here = writeThis; } ) )
{
return casImpl(here, ifThis, writeThis);
}
bool cas(T,V1,V2)( shared(T)* here, const shared(V1)* ifThis, shared(V2)* writeThis ) nothrow
if( is(T U : U*) && __traits( compiles, { *here = writeThis; } ) )
{
return casImpl(here, ifThis, writeThis);
}
private bool casImpl(T,V1,V2)( shared(T)* here, V1 ifThis, V2 writeThis ) nothrow
in
{
// NOTE: 32 bit x86 systems support 8 byte CAS, which only requires
// 4 byte alignment, so use size_t as the align type here.
static if( T.sizeof > size_t.sizeof )
assert( atomicValueIsProperlyAligned!(size_t)( cast(size_t) here ) );
else
assert( atomicValueIsProperlyAligned!(T)( cast(size_t) here ) );
}
body
{
static if( T.sizeof == byte.sizeof )
{
//////////////////////////////////////////////////////////////////
// 1 Byte CAS
//////////////////////////////////////////////////////////////////
asm
{
mov DL, writeThis;
mov AL, ifThis;
mov RCX, here;
lock; // lock always needed to make this op atomic
cmpxchg [RCX], DL;
setz AL;
}
}
else static if( T.sizeof == short.sizeof )
{
//////////////////////////////////////////////////////////////////
// 2 Byte CAS
//////////////////////////////////////////////////////////////////
asm
{
mov DX, writeThis;
mov AX, ifThis;
mov RCX, here;
lock; // lock always needed to make this op atomic
cmpxchg [RCX], DX;
setz AL;
}
}
else static if( T.sizeof == int.sizeof )
{
//////////////////////////////////////////////////////////////////
// 4 Byte CAS
//////////////////////////////////////////////////////////////////
asm
{
mov EDX, writeThis;
mov EAX, ifThis;
mov RCX, here;
lock; // lock always needed to make this op atomic
cmpxchg [RCX], EDX;
setz AL;
}
}
else static if( T.sizeof == long.sizeof )
{
//////////////////////////////////////////////////////////////////
// 8 Byte CAS on a 64-Bit Processor
//////////////////////////////////////////////////////////////////
asm
{
mov RDX, writeThis;
mov RAX, ifThis;
mov RCX, here;
lock; // lock always needed to make this op atomic
cmpxchg [RCX], RDX;
setz AL;
}
}
else
{
static assert( false, "Invalid template type specified." );
}
}
enum MemoryOrder
{
raw,
acq,
rel,
seq,
}
deprecated("Please use MemoryOrder instead.")
alias MemoryOrder msync;
private
{
template isHoistOp(MemoryOrder ms)
{
enum bool isHoistOp = ms == MemoryOrder.acq ||
ms == MemoryOrder.seq;
}
template isSinkOp(MemoryOrder ms)
{
enum bool isSinkOp = ms == MemoryOrder.rel ||
ms == MemoryOrder.seq;
}
// NOTE: While x86 loads have acquire semantics for stores, it appears
// that independent loads may be reordered by some processors
// (notably the AMD64). This implies that the hoist-load barrier
// op requires an ordering instruction, which also extends this
// requirement to acquire ops (though hoist-store should not need
// one if support is added for this later). However, since no
// modern architectures will reorder dependent loads to occur
// before the load they depend on (except the Alpha), raw loads
// are actually a possible means of ordering specific sequences
// of loads in some instances.
//
// For reference, the old behavior (acquire semantics for loads)
// required a memory barrier if: ms == MemoryOrder.seq || isSinkOp!(ms)
template needsLoadBarrier( MemoryOrder ms )
{
enum bool needsLoadBarrier = ms != MemoryOrder.raw;
}
// NOTE: x86 stores implicitly have release semantics so a memory
// barrier is only necessary on acquires.
template needsStoreBarrier( MemoryOrder ms )
{
enum bool needsStoreBarrier = ms == MemoryOrder.seq ||
isHoistOp!(ms);
}
}
HeadUnshared!(T) atomicLoad(MemoryOrder ms = MemoryOrder.seq, T)( ref const shared T val ) nothrow
if(!__traits(isFloating, T)) {
static if( T.sizeof == byte.sizeof )
{
//////////////////////////////////////////////////////////////////
// 1 Byte Load
//////////////////////////////////////////////////////////////////
static if( needsLoadBarrier!(ms) )
{
asm
{
mov DL, 0;
mov AL, 0;
mov RCX, val;
lock; // lock always needed to make this op atomic
cmpxchg [RCX], DL;
}
}
else
{
asm
{
mov RAX, val;
mov AL, [RAX];
}
}
}
else static if( T.sizeof == short.sizeof )
{
//////////////////////////////////////////////////////////////////
// 2 Byte Load
//////////////////////////////////////////////////////////////////
static if( needsLoadBarrier!(ms) )
{
asm
{
mov DX, 0;
mov AX, 0;
mov RCX, val;
lock; // lock always needed to make this op atomic
cmpxchg [RCX], DX;
}
}
else
{
asm
{
mov RAX, val;
mov AX, [RAX];
}
}
}
else static if( T.sizeof == int.sizeof )
{
//////////////////////////////////////////////////////////////////
// 4 Byte Load
//////////////////////////////////////////////////////////////////
static if( needsLoadBarrier!(ms) )
{
asm
{
mov EDX, 0;
mov EAX, 0;
mov RCX, val;
lock; // lock always needed to make this op atomic
cmpxchg [RCX], EDX;
}
}
else
{
asm
{
mov RAX, val;
mov EAX, [RAX];
}
}
}
else static if( T.sizeof == long.sizeof )
{
//////////////////////////////////////////////////////////////////
// 8 Byte Load
//////////////////////////////////////////////////////////////////
static if( needsLoadBarrier!(ms) )
{
asm
{
mov RDX, 0;
mov RAX, 0;
mov RCX, val;
lock; // lock always needed to make this op atomic
cmpxchg [RCX], RDX;
}
}
else
{
asm
{
mov RAX, val;
mov RAX, [RAX];
}
}
}
else
{
static assert( false, "Invalid template type specified." );
}
}
void atomicStore(MemoryOrder ms = MemoryOrder.seq, T, V1)( ref shared T val, V1 newval ) nothrow
if( __traits( compiles, { val = newval; } ) )
{
static if( T.sizeof == byte.sizeof )
{
//////////////////////////////////////////////////////////////////
// 1 Byte Store
//////////////////////////////////////////////////////////////////
static if( needsStoreBarrier!(ms) )
{
asm
{
mov RAX, val;
mov DL, newval;
lock;
xchg [RAX], DL;
}
}
else
{
asm
{
mov RAX, val;
mov DL, newval;
mov [RAX], DL;
}
}
}
else static if( T.sizeof == short.sizeof )
{
//////////////////////////////////////////////////////////////////
// 2 Byte Store
//////////////////////////////////////////////////////////////////
static if( needsStoreBarrier!(ms) )
{
asm
{
mov RAX, val;
mov DX, newval;
lock;
xchg [RAX], DX;
}
}
else
{
asm
{
mov RAX, val;
mov DX, newval;
mov [RAX], DX;
}
}
}
else static if( T.sizeof == int.sizeof )
{
//////////////////////////////////////////////////////////////////
// 4 Byte Store
//////////////////////////////////////////////////////////////////
static if( needsStoreBarrier!(ms) )
{
asm
{
mov RAX, val;
mov EDX, newval;
lock;
xchg [RAX], EDX;
}
}
else
{
asm
{
mov RAX, val;
mov EDX, newval;
mov [RAX], EDX;
}
}
}
else static if( T.sizeof == long.sizeof && has64BitCAS )
{
//////////////////////////////////////////////////////////////////
// 8 Byte Store on a 64-Bit Processor
//////////////////////////////////////////////////////////////////
static if( needsStoreBarrier!(ms) )
{
asm
{
mov RAX, val;
mov RDX, newval;
lock;
xchg [RAX], RDX;
}
}
else
{
asm
{
mov RAX, val;
mov RDX, newval;
mov [RAX], RDX;
}
}
}
else
{
static assert( false, "Invalid template type specified." );
}
}
void atomicFence() nothrow
{
// SSE2 is always present in 64-bit x86 chips.
asm
{
naked;
mfence;
ret;
}
}
}
// This is an ABI adapter that works on all architectures. It type puns
// floats and doubles to ints and longs, atomically loads them, then puns
// them back. This is necessary so that they get returned in floating
// point instead of integer registers.
HeadUnshared!(T) atomicLoad(MemoryOrder ms = MemoryOrder.seq, T)( ref const shared T val ) nothrow
if(__traits(isFloating, T))
{
static if(T.sizeof == int.sizeof)
{
static assert(is(T : float));
auto ptr = cast(const shared int*) &val;
auto asInt = atomicLoad!(ms)(*ptr);
return *(cast(typeof(return)*) &asInt);
}
else static if(T.sizeof == long.sizeof)
{
static assert(is(T : double));
auto ptr = cast(const shared long*) &val;
auto asLong = atomicLoad!(ms)(*ptr);
return *(cast(typeof(return)*) &asLong);
}
else
{
static assert(0, "Cannot atomically load 80-bit reals.");
}
}
////////////////////////////////////////////////////////////////////////////////
// Unit Tests
////////////////////////////////////////////////////////////////////////////////
version( unittest )
{
void testCAS(T)( T val ) pure nothrow
in
{
assert(val !is T.init);
}
body
{
T base;
shared(T) atom;
assert( base !is val, T.stringof );
assert( atom is base, T.stringof );
assert( cas( &atom, base, val ), T.stringof );
assert( atom is val, T.stringof );
assert( !cas( &atom, base, base ), T.stringof );
assert( atom is val, T.stringof );
}
void testLoadStore(MemoryOrder ms = MemoryOrder.seq, T)( T val = T.init + 1 ) pure nothrow
{
T base = cast(T) 0;
shared(T) atom = cast(T) 0;
assert( base !is val );
assert( atom is base );
atomicStore!(ms)( atom, val );
base = atomicLoad!(ms)( atom );
assert( base is val, T.stringof );
assert( atom is val );
}
void testType(T)( T val = T.init + 1 ) pure nothrow
{
testCAS!(T)( val );
testLoadStore!(MemoryOrder.seq, T)( val );
testLoadStore!(MemoryOrder.raw, T)( val );
}
//@@@BUG@@@ http://d.puremagic.com/issues/show_bug.cgi?id=8081
/+pure nothrow+/ unittest
{
testType!(bool)();
testType!(byte)();
testType!(ubyte)();
testType!(short)();
testType!(ushort)();
testType!(int)();
testType!(uint)();
testType!(shared int*)();
static class Klass {}
testCAS!(shared Klass)( new shared(Klass) );
testType!(float)(1.0f);
testType!(double)(1.0);
static if( has64BitCAS )
{
testType!(long)();
testType!(ulong)();
}
shared(size_t) i;
atomicOp!"+="( i, cast(size_t) 1 );
assert( i == 1 );
atomicOp!"-="( i, cast(size_t) 1 );
assert( i == 0 );
shared float f = 0;
atomicOp!"+="( f, 1 );
assert( f == 1 );
shared double d = 0;
atomicOp!"+="( d, 1 );
assert( d == 1 );
}
//@@@BUG@@@ http://d.puremagic.com/issues/show_bug.cgi?id=8081
/+pure nothrow+/ unittest
{
static struct S { int val; }
auto s = shared(S)(1);
shared(S*) ptr;
// head unshared
shared(S)* ifThis = null;
shared(S)* writeThis = &s;
assert(ptr is null);
assert(cas(&ptr, ifThis, writeThis));
assert(ptr is writeThis);
// head shared
shared(S*) ifThis2 = writeThis;
shared(S*) writeThis2 = null;
assert(cas(&ptr, ifThis2, writeThis2));
assert(ptr is null);
// head unshared target doesn't want atomic CAS
shared(S)* ptr2;
static assert(!__traits(compiles, cas(&ptr2, ifThis, writeThis)));
static assert(!__traits(compiles, cas(&ptr2, ifThis2, writeThis2)));
}
unittest
{
import core.thread;
// Use heap memory to ensure an optimizing
// compiler doesn't put things in registers.
uint* x = new uint();
bool* f = new bool();
uint* r = new uint();
auto thr = new Thread(()
{
while (!*f)
{
}
atomicFence();
*r = *x;
});
thr.start();
*x = 42;
atomicFence();
*f = true;
atomicFence();
thr.join();
assert(*r == 42);
}
}
|
D
|
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module dwtx.jface.text.source.AnnotationModel;
import dwtx.jface.text.source.ISharedTextColors; // packageimport
import dwtx.jface.text.source.ILineRange; // packageimport
import dwtx.jface.text.source.IAnnotationPresentation; // packageimport
import dwtx.jface.text.source.IVerticalRulerInfoExtension; // packageimport
import dwtx.jface.text.source.ICharacterPairMatcher; // packageimport
import dwtx.jface.text.source.TextInvocationContext; // packageimport
import dwtx.jface.text.source.LineChangeHover; // packageimport
import dwtx.jface.text.source.IChangeRulerColumn; // packageimport
import dwtx.jface.text.source.IAnnotationMap; // packageimport
import dwtx.jface.text.source.IAnnotationModelListenerExtension; // packageimport
import dwtx.jface.text.source.ISourceViewerExtension2; // packageimport
import dwtx.jface.text.source.IAnnotationHover; // packageimport
import dwtx.jface.text.source.ContentAssistantFacade; // packageimport
import dwtx.jface.text.source.IAnnotationAccess; // packageimport
import dwtx.jface.text.source.IVerticalRulerExtension; // packageimport
import dwtx.jface.text.source.IVerticalRulerColumn; // packageimport
import dwtx.jface.text.source.LineNumberRulerColumn; // packageimport
import dwtx.jface.text.source.MatchingCharacterPainter; // packageimport
import dwtx.jface.text.source.IAnnotationModelExtension; // packageimport
import dwtx.jface.text.source.ILineDifferExtension; // packageimport
import dwtx.jface.text.source.DefaultCharacterPairMatcher; // packageimport
import dwtx.jface.text.source.LineNumberChangeRulerColumn; // packageimport
import dwtx.jface.text.source.IAnnotationAccessExtension; // packageimport
import dwtx.jface.text.source.ISourceViewer; // packageimport
import dwtx.jface.text.source.ILineDifferExtension2; // packageimport
import dwtx.jface.text.source.IAnnotationModelListener; // packageimport
import dwtx.jface.text.source.IVerticalRuler; // packageimport
import dwtx.jface.text.source.DefaultAnnotationHover; // packageimport
import dwtx.jface.text.source.SourceViewer; // packageimport
import dwtx.jface.text.source.SourceViewerConfiguration; // packageimport
import dwtx.jface.text.source.AnnotationBarHoverManager; // packageimport
import dwtx.jface.text.source.CompositeRuler; // packageimport
import dwtx.jface.text.source.ImageUtilities; // packageimport
import dwtx.jface.text.source.VisualAnnotationModel; // packageimport
import dwtx.jface.text.source.IAnnotationModel; // packageimport
import dwtx.jface.text.source.ISourceViewerExtension3; // packageimport
import dwtx.jface.text.source.ILineDiffInfo; // packageimport
import dwtx.jface.text.source.VerticalRulerEvent; // packageimport
import dwtx.jface.text.source.ChangeRulerColumn; // packageimport
import dwtx.jface.text.source.ILineDiffer; // packageimport
import dwtx.jface.text.source.AnnotationModelEvent; // packageimport
import dwtx.jface.text.source.AnnotationColumn; // packageimport
import dwtx.jface.text.source.AnnotationRulerColumn; // packageimport
import dwtx.jface.text.source.IAnnotationHoverExtension; // packageimport
import dwtx.jface.text.source.AbstractRulerColumn; // packageimport
import dwtx.jface.text.source.ISourceViewerExtension; // packageimport
import dwtx.jface.text.source.AnnotationMap; // packageimport
import dwtx.jface.text.source.IVerticalRulerInfo; // packageimport
import dwtx.jface.text.source.IAnnotationModelExtension2; // packageimport
import dwtx.jface.text.source.LineRange; // packageimport
import dwtx.jface.text.source.IAnnotationAccessExtension2; // packageimport
import dwtx.jface.text.source.VerticalRuler; // packageimport
import dwtx.jface.text.source.JFaceTextMessages; // packageimport
import dwtx.jface.text.source.IOverviewRuler; // packageimport
import dwtx.jface.text.source.Annotation; // packageimport
import dwtx.jface.text.source.IVerticalRulerListener; // packageimport
import dwtx.jface.text.source.ISourceViewerExtension4; // packageimport
import dwtx.jface.text.source.AnnotationPainter; // packageimport
import dwtx.jface.text.source.IAnnotationHoverExtension2; // packageimport
import dwtx.jface.text.source.OverviewRuler; // packageimport
import dwtx.jface.text.source.OverviewRulerHoverManager; // packageimport
import dwt.dwthelper.utils;
import dwtx.dwtxhelper.Collection;
import tango.core.Exception;
import dwtx.dwtxhelper.JThread;
import dwtx.core.runtime.Assert;
import dwtx.jface.text.AbstractDocument;
import dwtx.jface.text.BadLocationException;
import dwtx.jface.text.BadPositionCategoryException;
import dwtx.jface.text.DocumentEvent;
import dwtx.jface.text.IDocument;
import dwtx.jface.text.IDocumentListener;
import dwtx.jface.text.ISynchronizable;
import dwtx.jface.text.Position;
/**
* Standard implementation of {@link IAnnotationModel} and its extension
* interfaces. This class can directly be used by clients. Subclasses may adapt
* this annotation model to other existing annotation mechanisms. This class
* also implements {@link dwtx.jface.text.ISynchronizable}. All
* modifications of the model's internal annotation map are synchronized using
* the model's lock object.
*/
public class AnnotationModel : IAnnotationModel, IAnnotationModelExtension, IAnnotationModelExtension2, ISynchronizable {
/**
* Iterator that returns the annotations for a given region.
*
* @since 3.4
* @see AnnotationModel.RegionIterator#RegionIterator(Iterator, IAnnotationModel, int, int, bool, bool)
*/
private static final class RegionIterator : Iterator {
private const Iterator fParentIterator;
private const bool fCanEndAfter;
private const bool fCanStartBefore;
private const IAnnotationModel fModel;
private Object fNext;
private Position fRegion;
/**
* Iterator that returns all annotations from the parent iterator which
* have a position in the given model inside the given region.
* <p>
* See {@link IAnnotationModelExtension2} for a definition of inside.
* </p>
*
* @param parentIterator iterator containing all annotations
* @param model the model to use to retrieve positions from for each
* annotation
* @param offset start position of the region
* @param length length of the region
* @param canStartBefore include annotations starting before region
* @param canEndAfter include annotations ending after region
* @see IAnnotationModelExtension2
*/
public this(Iterator parentIterator, IAnnotationModel model, int offset, int length, bool canStartBefore, bool canEndAfter) {
fParentIterator= parentIterator;
fModel= model;
fRegion= new Position(offset, length);
fCanEndAfter= canEndAfter;
fCanStartBefore= canStartBefore;
fNext= findNext();
}
/*
* @see java.util.Iterator#hasNext()
*/
public bool hasNext() {
return fNext !is null;
}
/*
* @see java.util.Iterator#next()
*/
public Object next() {
if (!hasNext())
throw new NoSuchElementException(null);
Object result= fNext;
fNext= findNext();
return result;
}
/*
* @see java.util.Iterator#remove()
*/
public void remove() {
throw new UnsupportedOperationException();
}
private Object findNext() {
while (fParentIterator.hasNext()) {
Annotation next= cast(Annotation) fParentIterator.next();
Position position= fModel.getPosition(next);
if (position !is null) {
int offset= position.getOffset();
if (isWithinRegion(offset, position.getLength()))
return next;
}
}
return null;
}
private bool isWithinRegion(int start, int length) {
if (fCanStartBefore && fCanEndAfter)
return fRegion.overlapsWith(start, length);
else if (fCanStartBefore)
return fRegion.includes(start + length - 1);
else if (fCanEndAfter)
return fRegion.includes(start);
else
return fRegion.includes(start) && fRegion.includes(start + length - 1);
}
}
/**
* An iterator iteration over a Positions and mapping positions to
* annotations using a provided map if the provided map contains the element.
*
* @since 3.4
*/
private static final class AnnotationsInterator : Iterator {
private Object fNext;
private const Position[] fPositions;
private int fIndex;
private const Map fMap;
/**
* @param positions positions to iterate over
* @param map a map to map positions to annotations
*/
public this(Position[] positions, Map map) {
fPositions= positions;
fIndex= 0;
fMap= map;
fNext= findNext();
}
/* (non-Javadoc)
* @see java.util.Iterator#hasNext()
*/
public bool hasNext() {
return fNext !is null;
}
/* (non-Javadoc)
* @see java.util.Iterator#next()
*/
public Object next() {
Object result= fNext;
fNext= findNext();
return result;
}
/* (non-Javadoc)
* @see java.util.Iterator#remove()
*/
public void remove() {
throw new UnsupportedOperationException();
}
private Object findNext() {
while (fIndex < fPositions.length) {
Position position= fPositions[fIndex];
fIndex++;
if (fMap.containsKey(position))
return fMap.get(position);
}
return null;
}
}
/**
* A single iterator builds its behavior based on a sequence of iterators.
*
* @since 3.1
*/
private static class MetaIterator : Iterator {
/** The iterator over a list of iterators. */
private Iterator fSuperIterator;
/** The current iterator. */
private Iterator fCurrent;
/** The current element. */
private Object fCurrentElement;
public this(Iterator iterator) {
fSuperIterator= iterator;
fCurrent= cast(Iterator) fSuperIterator.next(); // there is at least one.
}
public void remove() {
throw new UnsupportedOperationException();
}
public bool hasNext() {
if (fCurrentElement !is null)
return true;
if (fCurrent.hasNext()) {
fCurrentElement= fCurrent.next();
return true;
} else if (fSuperIterator.hasNext()) {
fCurrent= cast(Iterator) fSuperIterator.next();
return hasNext();
} else
return false;
}
public Object next() {
if (!hasNext())
throw new NoSuchElementException(null);
Object element= fCurrentElement;
fCurrentElement= null;
return element;
}
}
/**
* Internal annotation model listener for forwarding annotation model changes from the attached models to the
* registered listeners of the outer most annotation model.
*
* @since 3.0
*/
private class InternalModelListener : IAnnotationModelListener, IAnnotationModelListenerExtension {
/*
* @see dwtx.jface.text.source.IAnnotationModelListener#modelChanged(dwtx.jface.text.source.IAnnotationModel)
*/
public void modelChanged(IAnnotationModel model) {
this.outer.fireModelChanged(new AnnotationModelEvent(model, true));
}
/*
* @see dwtx.jface.text.source.IAnnotationModelListenerExtension#modelChanged(dwtx.jface.text.source.AnnotationModelEvent)
*/
public void modelChanged(AnnotationModelEvent event) {
this.outer.fireModelChanged(event);
}
}
/**
* The list of managed annotations
* @deprecated since 3.0 use <code>getAnnotationMap</code> instead
*/
protected Map fAnnotations;
/**
* The map which maps {@link Position} to {@link Annotation}.
* @since 3.4
**/
private IdentityHashMap fPositions;
/** The list of annotation model listeners */
protected ArrayList fAnnotationModelListeners;
/** The document connected with this model */
protected IDocument fDocument;
/** The number of open connections to the same document */
private int fOpenConnections= 0;
/** The document listener for tracking whether document positions might have been changed. */
private IDocumentListener fDocumentListener;
/** The flag indicating whether the document positions might have been changed. */
private bool fDocumentChanged= true;
/**
* The model's attachment.
* @since 3.0
*/
private Map fAttachments;
/**
* The annotation model listener on attached sub-models.
* @since 3.0
*/
private IAnnotationModelListener fModelListener;
/**
* The current annotation model event.
* @since 3.0
*/
private AnnotationModelEvent fModelEvent;
/**
* The modification stamp.
* @since 3.0
*/
private Object fModificationStamp;
/**
* Creates a new annotation model. The annotation is empty, i.e. does not
* manage any annotations and is not connected to any document.
*/
public this() {
fAttachments= new HashMap();
fModelListener= new InternalModelListener();
fModificationStamp= new Object();
fAnnotations= new AnnotationMap(10);
fPositions= new IdentityHashMap(10);
fAnnotationModelListeners= new ArrayList(2);
fDocumentListener= new class() IDocumentListener {
public void documentAboutToBeChanged(DocumentEvent event) {
}
public void documentChanged(DocumentEvent event) {
fDocumentChanged= true;
}
};
}
/**
* Returns the annotation map internally used by this annotation model.
*
* @return the annotation map internally used by this annotation model
* @since 3.0
*/
protected IAnnotationMap getAnnotationMap() {
return cast(IAnnotationMap) fAnnotations;
}
/*
* @see dwtx.jface.text.ISynchronizable#getLockObject()
* @since 3.0
*/
public Object getLockObject() {
return getAnnotationMap().getLockObject();
}
/*
* @see dwtx.jface.text.ISynchronizable#setLockObject(java.lang.Object)
* @since 3.0
*/
public void setLockObject(Object lockObject) {
getAnnotationMap().setLockObject(lockObject);
}
/**
* Returns the current annotation model event. This is the event that will be sent out
* when calling <code>fireModelChanged</code>.
*
* @return the current annotation model event
* @since 3.0
*/
protected final AnnotationModelEvent getAnnotationModelEvent() {
synchronized (getLockObject()) {
if (fModelEvent is null) {
fModelEvent= createAnnotationModelEvent();
fModelEvent.markWorldChange(false);
fModificationStamp= fModelEvent;
}
return fModelEvent;
}
}
/*
* @see dwtx.jface.text.source.IAnnotationModel#addAnnotation(dwtx.jface.text.source.Annotation, dwtx.jface.text.Position)
*/
public void addAnnotation(Annotation annotation, Position position) {
try {
addAnnotation(annotation, position, true);
} catch (BadLocationException e) {
// ignore invalid position
}
}
/*
* @see dwtx.jface.text.source.IAnnotationModelExtension#replaceAnnotations(dwtx.jface.text.source.Annotation[], java.util.Map)
* @since 3.0
*/
public void replaceAnnotations(Annotation[] annotationsToRemove, Map annotationsToAdd) {
try {
replaceAnnotations(annotationsToRemove, annotationsToAdd, true);
} catch (BadLocationException x) {
}
}
/**
* Replaces the given annotations in this model and if advised fires a
* model change event.
*
* @param annotationsToRemove the annotations to be removed
* @param annotationsToAdd the annotations to be added
* @param fireModelChanged <code>true</code> if a model change event
* should be fired, <code>false</code> otherwise
* @throws BadLocationException in case an annotation should be added at an
* invalid position
* @since 3.0
*/
protected void replaceAnnotations(Annotation[] annotationsToRemove, Map annotationsToAdd, bool fireModelChanged_) {
if (annotationsToRemove !is null) {
for (int i= 0, length= annotationsToRemove.length; i < length; i++)
removeAnnotation(annotationsToRemove[i], false);
}
if (annotationsToAdd !is null) {
Iterator iter= annotationsToAdd.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry mapEntry= cast(Map.Entry) iter.next();
Annotation annotation= cast(Annotation) mapEntry.getKey();
Position position= cast(Position) mapEntry.getValue();
addAnnotation(annotation, position, false);
}
}
if (fireModelChanged_)
fireModelChanged();
}
/**
* Adds the given annotation to this model. Associates the
* annotation with the given position. If requested, all annotation
* model listeners are informed about this model change. If the annotation
* is already managed by this model nothing happens.
*
* @param annotation the annotation to add
* @param position the associate position
* @param fireModelChanged indicates whether to notify all model listeners
* @throws BadLocationException if the position is not a valid document position
*/
protected void addAnnotation(Annotation annotation, Position position, bool fireModelChanged_) {
if (!fAnnotations.containsKey(annotation)) {
addPosition(fDocument, position);
fAnnotations.put(annotation, position);
fPositions.put(position, annotation);
synchronized (getLockObject()) {
getAnnotationModelEvent().annotationAdded(annotation);
}
if (fireModelChanged_)
fireModelChanged();
}
}
/*
* @see dwtx.jface.text.source.IAnnotationModel#addAnnotationModelListener(dwtx.jface.text.source.IAnnotationModelListener)
*/
public void addAnnotationModelListener(IAnnotationModelListener listener) {
if (!fAnnotationModelListeners.contains(cast(Object)listener)) {
fAnnotationModelListeners.add(cast(Object)listener);
if ( cast(IAnnotationModelListenerExtension)listener ) {
IAnnotationModelListenerExtension extension= cast(IAnnotationModelListenerExtension) listener;
AnnotationModelEvent event= createAnnotationModelEvent();
event.markSealed();
extension.modelChanged(event);
} else
listener.modelChanged(this);
}
}
/**
* Adds the given position to the default position category of the
* given document.
*
* @param document the document to which to add the position
* @param position the position to add
* @throws BadLocationException if the position is not a valid document position
*/
protected void addPosition(IDocument document, Position position) {
if (document !is null)
document.addPosition(position);
}
/**
* Removes the given position from the default position category of the
* given document.
*
* @param document the document to which to add the position
* @param position the position to add
*
* @since 3.0
*/
protected void removePosition(IDocument document, Position position) {
if (document !is null)
document.removePosition(position);
}
/*
* @see dwtx.jface.text.source.IAnnotationModel#connect(dwtx.jface.text.IDocument)
*/
public void connect(IDocument document) {
Assert.isTrue(fDocument is null || fDocument is document);
if (fDocument is null) {
fDocument= document;
Iterator e= getAnnotationMap().valuesIterator();
while (e.hasNext())
try {
addPosition(fDocument, cast(Position) e.next());
} catch (BadLocationException x) {
// ignore invalid position
}
}
++ fOpenConnections;
if (fOpenConnections is 1) {
fDocument.addDocumentListener(fDocumentListener);
connected();
}
for (Iterator it= fAttachments.keySet().iterator(); it.hasNext();) {
IAnnotationModel model= cast(IAnnotationModel) fAttachments.get(it.next());
model.connect(document);
}
}
/**
* Hook method. Is called as soon as this model becomes connected to a document.
* Subclasses may re-implement.
*/
protected void connected() {
}
/**
* Hook method. Is called as soon as this model becomes disconnected from its document.
* Subclasses may re-implement.
*/
protected void disconnected() {
}
/*
* @see dwtx.jface.text.source.IAnnotationModel#disconnect(dwtx.jface.text.IDocument)
*/
public void disconnect(IDocument document) {
Assert.isTrue(fDocument is document);
for (Iterator it= fAttachments.keySet().iterator(); it.hasNext();) {
IAnnotationModel model= cast(IAnnotationModel) fAttachments.get(it.next());
model.disconnect(document);
}
-- fOpenConnections;
if (fOpenConnections is 0) {
disconnected();
fDocument.removeDocumentListener(fDocumentListener);
if (fDocument !is null) {
Iterator e= getAnnotationMap().valuesIterator();
while (e.hasNext()) {
Position p= cast(Position) e.next();
removePosition(fDocument, p);
}
fDocument= null;
}
}
}
/**
* Informs all annotation model listeners that this model has been changed.
*/
protected void fireModelChanged() {
AnnotationModelEvent modelEvent= null;
synchronized(getLockObject()) {
if (fModelEvent !is null) {
modelEvent= fModelEvent;
fModelEvent= null;
}
}
if (modelEvent !is null)
fireModelChanged(modelEvent);
}
/**
* Creates and returns a new annotation model event. Subclasses may override.
*
* @return a new and empty annotation model event
* @since 3.0
*/
protected AnnotationModelEvent createAnnotationModelEvent() {
return new AnnotationModelEvent(this);
}
/**
* Informs all annotation model listeners that this model has been changed
* as described in the annotation model event. The event is sent out
* to all listeners implementing <code>IAnnotationModelListenerExtension</code>.
* All other listeners are notified by just calling <code>modelChanged(IAnnotationModel)</code>.
*
* @param event the event to be sent out to the listeners
* @since 2.0
*/
protected void fireModelChanged(AnnotationModelEvent event) {
event.markSealed();
if (event.isEmpty())
return;
ArrayList v= new ArrayList(fAnnotationModelListeners);
Iterator e= v.iterator();
while (e.hasNext()) {
IAnnotationModelListener l= cast(IAnnotationModelListener) e.next();
if ( cast(IAnnotationModelListenerExtension)l )
(cast(IAnnotationModelListenerExtension) l).modelChanged(event);
else if (l !is null)
l.modelChanged(this);
}
}
/**
* Removes the given annotations from this model. If requested all
* annotation model listeners will be informed about this change.
* <code>modelInitiated</code> indicates whether the deletion has
* been initiated by this model or by one of its clients.
*
* @param annotations the annotations to be removed
* @param fireModelChanged indicates whether to notify all model listeners
* @param modelInitiated indicates whether this changes has been initiated by this model
*/
protected void removeAnnotations(List annotations, bool fireModelChanged_, bool modelInitiated) {
if (annotations.size() > 0) {
Iterator e= annotations.iterator();
while (e.hasNext())
removeAnnotation(cast(Annotation) e.next(), false);
if (fireModelChanged_)
fireModelChanged();
}
}
/**
* Removes all annotations from the model whose associated positions have been
* deleted. If requested inform all model listeners about the change.
*
* @param fireModelChanged indicates whether to notify all model listeners
*/
protected void cleanup(bool fireModelChanged_) {
cleanup(fireModelChanged_, true);
}
/**
* Removes all annotations from the model whose associated positions have been
* deleted. If requested inform all model listeners about the change. If requested
* a new thread is created for the notification of the model listeners.
*
* @param fireModelChanged indicates whether to notify all model listeners
* @param forkNotification <code>true</code> iff notification should be done in a new thread
* @since 3.0
*/
private void cleanup(bool fireModelChanged_, bool forkNotification) {
if (fDocumentChanged) {
fDocumentChanged= false;
ArrayList deleted= new ArrayList();
Iterator e= getAnnotationMap().keySetIterator();
while (e.hasNext()) {
Annotation a= cast(Annotation) e.next();
Position p= cast(Position) fAnnotations.get(a);
if (p is null || p.isDeleted())
deleted.add(a);
}
if (fireModelChanged_ && forkNotification) {
removeAnnotations(deleted, false, false);
synchronized (getLockObject()) {
if (fModelEvent !is null)
(new JThread ( &fireModelChanged )).start();
}
} else
removeAnnotations(deleted, fireModelChanged_, false);
}
}
/*
* @see dwtx.jface.text.source.IAnnotationModel#getAnnotationIterator()
*/
public Iterator getAnnotationIterator() {
return getAnnotationIterator(true, true);
}
/**
* {@inheritDoc}
*
* @since 3.4
*/
public Iterator getAnnotationIterator(int offset, int length, bool canStartBefore, bool canEndAfter) {
Iterator regionIterator= getRegionAnnotationIterator(offset, length, canStartBefore, canEndAfter);
if (fAttachments.isEmpty())
return regionIterator;
List iterators= new ArrayList(fAttachments.size() + 1);
iterators.add(cast(Object)regionIterator);
Iterator it= fAttachments.keySet().iterator();
while (it.hasNext()) {
IAnnotationModel attachment= cast(IAnnotationModel) fAttachments.get(it.next());
if ( cast(IAnnotationModelExtension2)attachment )
iterators.add(cast(Object)(cast(IAnnotationModelExtension2) attachment).getAnnotationIterator(offset, length, canStartBefore, canEndAfter));
else
iterators.add(new RegionIterator(attachment.getAnnotationIterator(), attachment, offset, length, canStartBefore, canEndAfter));
}
return new MetaIterator(iterators.iterator());
}
/**
* Returns an iterator as specified in {@link IAnnotationModelExtension2#getAnnotationIterator(int, int, bool, bool)}
*
* @param offset region start
* @param length region length
* @param canStartBefore position can start before region
* @param canEndAfter position can end after region
* @return an iterator to iterate over annotations in region
* @see IAnnotationModelExtension2#getAnnotationIterator(int, int, bool, bool)
* @since 3.4
*/
private Iterator getRegionAnnotationIterator(int offset, int length, bool canStartBefore, bool canEndAfter) {
if (!( cast(AbstractDocument)fDocument ))
return new RegionIterator(getAnnotationIterator(true), this, offset, length, canStartBefore, canEndAfter);
AbstractDocument document= cast(AbstractDocument) fDocument;
cleanup(true);
try {
Position[] positions= document.getPositions(IDocument.DEFAULT_CATEGORY, offset, length, canStartBefore, canEndAfter);
return new AnnotationsInterator(positions, fPositions);
} catch (BadPositionCategoryException e) {
//can not happen
Assert.isTrue(false);
return null;
}
}
/**
* Returns all annotations managed by this model. <code>cleanup</code>
* indicates whether all annotations whose associated positions are
* deleted should previously be removed from the model. <code>recurse</code> indicates
* whether annotations of attached sub-models should also be returned.
*
* @param cleanup indicates whether annotations with deleted associated positions are removed
* @param recurse whether to return annotations managed by sub-models.
* @return all annotations managed by this model
* @since 3.0
*/
private Iterator getAnnotationIterator(bool cleanup, bool recurse) {
Iterator iter= getAnnotationIterator(cleanup);
if (!recurse || fAttachments.isEmpty())
return iter;
List iterators= new ArrayList(fAttachments.size() + 1);
iterators.add(cast(Object)iter);
Iterator it= fAttachments.keySet().iterator();
while (it.hasNext())
iterators.add(cast(Object)(cast(IAnnotationModel) fAttachments.get(it.next())).getAnnotationIterator());
return new MetaIterator(iterators.iterator());
}
/**
* Returns all annotations managed by this model. <code>cleanup</code>
* indicates whether all annotations whose associated positions are
* deleted should previously be removed from the model.
*
* @param cleanup indicates whether annotations with deleted associated positions are removed
* @return all annotations managed by this model
*/
protected Iterator getAnnotationIterator(bool cleanup_) {
if (cleanup_)
cleanup(true);
return getAnnotationMap().keySetIterator();
}
/*
* @see dwtx.jface.text.source.IAnnotationModel#getPosition(dwtx.jface.text.source.Annotation)
*/
public Position getPosition(Annotation annotation) {
Position position= cast(Position) fAnnotations.get(annotation);
if (position !is null)
return position;
Iterator it= fAttachments.values().iterator();
while (position is null && it.hasNext())
position= (cast(IAnnotationModel) it.next()).getPosition(annotation);
return position;
}
/*
* @see dwtx.jface.text.source.IAnnotationModelExtension#removeAllAnnotations()
* @since 3.0
*/
public void removeAllAnnotations() {
removeAllAnnotations(true);
}
/**
* Removes all annotations from the annotation model. If requested
* inform all model change listeners about this change.
*
* @param fireModelChanged indicates whether to notify all model listeners
*/
protected void removeAllAnnotations(bool fireModelChanged_) {
if (fDocument !is null) {
Iterator e= getAnnotationMap().keySetIterator();
while (e.hasNext()) {
Annotation a= cast(Annotation) e.next();
Position p= cast(Position) fAnnotations.get(a);
removePosition(fDocument, p);
// p.delete_();
synchronized (getLockObject()) {
getAnnotationModelEvent().annotationRemoved(a, p);
}
}
}
fAnnotations.clear();
fPositions.clear();
if (fireModelChanged_)
fireModelChanged();
}
/*
* @see dwtx.jface.text.source.IAnnotationModel#removeAnnotation(dwtx.jface.text.source.Annotation)
*/
public void removeAnnotation(Annotation annotation) {
removeAnnotation(annotation, true);
}
/**
* Removes the given annotation from the annotation model.
* If requested inform all model change listeners about this change.
*
* @param annotation the annotation to be removed
* @param fireModelChanged indicates whether to notify all model listeners
*/
protected void removeAnnotation(Annotation annotation, bool fireModelChanged_) {
if (fAnnotations.containsKey(annotation)) {
Position p= null;
p= cast(Position) fAnnotations.get(annotation);
if (fDocument !is null) {
removePosition(fDocument, p);
// p.delete_();
}
fAnnotations.remove(annotation);
fPositions.remove(p);
synchronized (getLockObject()) {
getAnnotationModelEvent().annotationRemoved(annotation, p);
}
if (fireModelChanged_)
fireModelChanged();
}
}
/*
* @see dwtx.jface.text.source.IAnnotationModelExtension#modifyAnnotationPosition(dwtx.jface.text.source.Annotation, dwtx.jface.text.Position)
* @since 3.0
*/
public void modifyAnnotationPosition(Annotation annotation, Position position) {
modifyAnnotationPosition(annotation, position, true);
}
/**
* Modifies the associated position of the given annotation to the given
* position. If the annotation is not yet managed by this annotation model,
* the annotation is added. When the position is <code>null</code>, the
* annotation is removed from the model.
* <p>
* If requested, all annotation model change listeners will be informed
* about the change.
*
* @param annotation the annotation whose associated position should be
* modified
* @param position the position to whose values the associated position
* should be changed
* @param fireModelChanged indicates whether to notify all model listeners
* @since 3.0
*/
protected void modifyAnnotationPosition(Annotation annotation, Position position, bool fireModelChanged_) {
if (position is null) {
removeAnnotation(annotation, fireModelChanged_);
} else {
Position p= cast(Position) fAnnotations.get(annotation);
if (p !is null) {
if (position.getOffset() !is p.getOffset() || position.getLength() !is p.getLength()) {
fDocument.removePosition(p);
p.setOffset(position.getOffset());
p.setLength(position.getLength());
try {
fDocument.addPosition(p);
} catch (BadLocationException e) {
// ignore invalid position
}
}
synchronized (getLockObject()) {
getAnnotationModelEvent().annotationChanged(annotation);
}
if (fireModelChanged_)
fireModelChanged();
} else {
try {
addAnnotation(annotation, position, fireModelChanged_);
} catch (BadLocationException x) {
// ignore invalid position
}
}
}
}
/**
* Modifies the given annotation if the annotation is managed by this
* annotation model.
* <p>
* If requested, all annotation model change listeners will be informed
* about the change.
*
* @param annotation the annotation to be modified
* @param fireModelChanged indicates whether to notify all model listeners
* @since 3.0
*/
protected void modifyAnnotation(Annotation annotation, bool fireModelChanged_) {
if (fAnnotations.containsKey(annotation)) {
synchronized (getLockObject()) {
getAnnotationModelEvent().annotationChanged(annotation);
}
if (fireModelChanged_)
fireModelChanged();
}
}
/*
* @see IAnnotationModel#removeAnnotationModelListener(IAnnotationModelListener)
*/
public void removeAnnotationModelListener(IAnnotationModelListener listener) {
fAnnotationModelListeners.remove(cast(Object)listener);
}
/*
* @see dwtx.jface.text.source.IAnnotationModelExtension#attach(java.lang.Object, java.lang.Object)
* @since 3.0
*/
public void addAnnotationModel(Object key, IAnnotationModel attachment) {
Assert.isNotNull(cast(Object)attachment);
if (!fAttachments.containsValue(cast(Object)attachment)) {
fAttachments.put(key, cast(Object)attachment);
for (int i= 0; i < fOpenConnections; i++)
attachment.connect(fDocument);
attachment.addAnnotationModelListener(fModelListener);
}
}
/*
* @see dwtx.jface.text.source.IAnnotationModelExtension#get(java.lang.Object)
* @since 3.0
*/
public IAnnotationModel getAnnotationModel(Object key) {
return cast(IAnnotationModel) fAttachments.get(key);
}
/*
* @see dwtx.jface.text.source.IAnnotationModelExtension#detach(java.lang.Object)
* @since 3.0
*/
public IAnnotationModel removeAnnotationModel(Object key) {
IAnnotationModel ret= cast(IAnnotationModel) fAttachments.remove(key);
if (ret !is null) {
for (int i= 0; i < fOpenConnections; i++)
ret.disconnect(fDocument);
ret.removeAnnotationModelListener(fModelListener);
}
return ret;
}
/*
* @see dwtx.jface.text.source.IAnnotationModelExtension#getModificationStamp()
* @since 3.0
*/
public Object getModificationStamp() {
return fModificationStamp;
}
}
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/diag6707.d(17): Error: mutable method `diag6707.Foo.value` is not callable using a `const` object
fail_compilation/diag6707.d(17): Consider adding `const` or `inout` to diag6707.Foo.value
---
*/
module diag6707;
struct Foo
{
@property bool value() { return true; }
void test() const
{
auto x = value;
}
}
|
D
|
lspos (4) --- find position in linked string 03/23/80
_C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n
character function lspos (ptr, pos)
pointer ptr
integer pos
Library: vlslb
_F_u_n_c_t_i_o_n
'Ptr' is updated to point to the string starting at position
'pos'. 'Ptr' will not be updated past the EOS. The value
returned by the function is the character in position 'pos'.
_I_m_p_l_e_m_e_n_t_a_t_i_o_n
The string is traversed until 'pos' - 1 characters have been
skipped. The new pointer is then returned in 'ptr' and as
the function value.
_A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d
ptr
_B_u_g_s
Locally supported.
lspos (4) - 1 - lspos (4)
|
D
|
/+
+ Copyright (c) Charles Petzold, 1998.
+ Ported to the D Programming Language by Andrej Mitrovic, 2011.
+/
module SysMets1;
import core.runtime;
import std.algorithm : max, min;
import std.string;
import std.conv;
import std.utf : count, toUTFz, toUTF16z;
pragma(lib, "gdi32.lib");
import core.sys.windows.windef;
import core.sys.windows.winuser;
import core.sys.windows.wingdi;
struct SysMetrics
{
int index;
string label;
string desc;
}
enum sysMetrics =
[
SysMetrics(SM_CXSCREEN, "SM_CXSCREEN", "Screen width in pixels"),
SysMetrics(SM_CYSCREEN, "SM_CYSCREEN", "Screen height in pixels"),
SysMetrics(SM_CXVSCROLL, "SM_CXVSCROLL", "Vertical scroll width"),
SysMetrics(SM_CYHSCROLL, "SM_CYHSCROLL", "Horizontal scroll height"),
SysMetrics(SM_CYCAPTION, "SM_CYCAPTION", "Caption bar height"),
SysMetrics(SM_CXBORDER, "SM_CXBORDER", "Window border width"),
SysMetrics(SM_CYBORDER, "SM_CYBORDER", "Window border height"),
SysMetrics(SM_CXFIXEDFRAME, "SM_CXFIXEDFRAME", "Dialog window frame width"),
SysMetrics(SM_CYFIXEDFRAME, "SM_CYFIXEDFRAME", "Dialog window frame height"),
SysMetrics(SM_CYVTHUMB, "SM_CYVTHUMB", "Vertical scroll thumb height"),
SysMetrics(SM_CXHTHUMB, "SM_CXHTHUMB", "Horizontal scroll thumb width"),
SysMetrics(SM_CXICON, "SM_CXICON", "Icon width"),
SysMetrics(SM_CYICON, "SM_CYICON", "Icon height"),
SysMetrics(SM_CXCURSOR, "SM_CXCURSOR", "Cursor width"),
SysMetrics(SM_CYCURSOR, "SM_CYCURSOR", "Cursor height"),
SysMetrics(SM_CYMENU, "SM_CYMENU", "Menu bar height"),
SysMetrics(SM_CXFULLSCREEN, "SM_CXFULLSCREEN", "Full screen client area width"),
SysMetrics(SM_CYFULLSCREEN, "SM_CYFULLSCREEN", "Full screen client area height"),
SysMetrics(SM_CYKANJIWINDOW, "SM_CYKANJIWINDOW", "Kanji window height"),
SysMetrics(SM_MOUSEPRESENT, "SM_MOUSEPRESENT", "Mouse present flag"),
SysMetrics(SM_CYVSCROLL, "SM_CYVSCROLL", "Vertical scroll arrow height"),
SysMetrics(SM_CXHSCROLL, "SM_CXHSCROLL", "Horizontal scroll arrow width"),
SysMetrics(SM_DEBUG, "SM_DEBUG", "Debug version flag"),
SysMetrics(SM_SWAPBUTTON, "SM_SWAPBUTTON", "Mouse buttons swapped flag"),
SysMetrics(SM_CXMIN, "SM_CXMIN", "Minimum window width"),
SysMetrics(SM_CYMIN, "SM_CYMIN", "Minimum window height"),
SysMetrics(SM_CXSIZE, "SM_CXSIZE", "Min/Max/Close button width"),
SysMetrics(SM_CYSIZE, "SM_CYSIZE", "Min/Max/Close button height"),
SysMetrics(SM_CXSIZEFRAME, "SM_CXSIZEFRAME", "Window sizing frame width"),
SysMetrics(SM_CYSIZEFRAME, "SM_CYSIZEFRAME", "Window sizing frame height"),
SysMetrics(SM_CXMINTRACK, "SM_CXMINTRACK", "Minimum window tracking width"),
SysMetrics(SM_CYMINTRACK, "SM_CYMINTRACK", "Minimum window tracking height"),
SysMetrics(SM_CXDOUBLECLK, "SM_CXDOUBLECLK", "Double click x tolerance"),
SysMetrics(SM_CYDOUBLECLK, "SM_CYDOUBLECLK", "Double click y tolerance"),
SysMetrics(SM_CXICONSPACING, "SM_CXICONSPACING", "Horizontal icon spacing"),
SysMetrics(SM_CYICONSPACING, "SM_CYICONSPACING", "Vertical icon spacing"),
SysMetrics(SM_MENUDROPALIGNMENT, "SM_MENUDROPALIGNMENT", "Left or right menu drop"),
SysMetrics(SM_PENWINDOWS, "SM_PENWINDOWS", "Pen extensions installed"),
SysMetrics(SM_DBCSENABLED, "SM_DBCSENABLED", "Double-Byte Char Set enabled"),
SysMetrics(SM_CMOUSEBUTTONS, "SM_CMOUSEBUTTONS", "Number of mouse buttons"),
SysMetrics(SM_SECURE, "SM_SECURE", "Security present flag"),
SysMetrics(SM_CXEDGE, "SM_CXEDGE", "3-D border width"),
SysMetrics(SM_CYEDGE, "SM_CYEDGE", "3-D border height"),
SysMetrics(SM_CXMINSPACING, "SM_CXMINSPACING", "Minimized window spacing width"),
SysMetrics(SM_CYMINSPACING, "SM_CYMINSPACING", "Minimized window spacing height"),
SysMetrics(SM_CXSMICON, "SM_CXSMICON", "Small icon width"),
SysMetrics(SM_CYSMICON, "SM_CYSMICON", "Small icon height"),
SysMetrics(SM_CYSMCAPTION, "SM_CYSMCAPTION", "Small caption height"),
SysMetrics(SM_CXSMSIZE, "SM_CXSMSIZE", "Small caption button width"),
SysMetrics(SM_CYSMSIZE, "SM_CYSMSIZE", "Small caption button height"),
SysMetrics(SM_CXMENUSIZE, "SM_CXMENUSIZE", "Menu bar button width"),
SysMetrics(SM_CYMENUSIZE, "SM_CYMENUSIZE", "Menu bar button height"),
SysMetrics(SM_ARRANGE, "SM_ARRANGE", "How minimized windows arranged"),
SysMetrics(SM_CXMINIMIZED, "SM_CXMINIMIZED", "Minimized window width"),
SysMetrics(SM_CYMINIMIZED, "SM_CYMINIMIZED", "Minimized window height"),
SysMetrics(SM_CXMAXTRACK, "SM_CXMAXTRACK", "Maximum draggable width"),
SysMetrics(SM_CYMAXTRACK, "SM_CYMAXTRACK", "Maximum draggable height"),
SysMetrics(SM_CXMAXIMIZED, "SM_CXMAXIMIZED", "Width of maximized window"),
SysMetrics(SM_CYMAXIMIZED, "SM_CYMAXIMIZED", "Height of maximized window"),
SysMetrics(SM_NETWORK, "SM_NETWORK", "Network present flag"),
SysMetrics(SM_CLEANBOOT, "SM_CLEANBOOT", "How system was booted"),
SysMetrics(SM_CXDRAG, "SM_CXDRAG", "Avoid drag x tolerance"),
SysMetrics(SM_CYDRAG, "SM_CYDRAG", "Avoid drag y tolerance"),
SysMetrics(SM_SHOWSOUNDS, "SM_SHOWSOUNDS", "Present sounds visually"),
SysMetrics(SM_CXMENUCHECK, "SM_CXMENUCHECK", "Menu check-mark width"),
SysMetrics(SM_CYMENUCHECK, "SM_CYMENUCHECK", "Menu check-mark hight"),
SysMetrics(SM_SLOWMACHINE, "SM_SLOWMACHINE", "Slow processor flag"),
SysMetrics(SM_MIDEASTENABLED, "SM_MIDEASTENABLED", "Hebrew and Arabic enabled flag"),
SysMetrics(SM_MOUSEWHEELPRESENT, "SM_MOUSEWHEELPRESENT", "Mouse wheel present flag"),
SysMetrics(SM_XVIRTUALSCREEN, "SM_XVIRTUALSCREEN", "Virtual screen x origin"),
SysMetrics(SM_YVIRTUALSCREEN, "SM_YVIRTUALSCREEN", "Virtual screen y origin"),
SysMetrics(SM_CXVIRTUALSCREEN, "SM_CXVIRTUALSCREEN", "Virtual screen width"),
SysMetrics(SM_CYVIRTUALSCREEN, "SM_CYVIRTUALSCREEN", "Virtual screen height"),
SysMetrics(SM_CMONITORS, "SM_CMONITORS", "Number of monitors"),
SysMetrics(SM_SAMEDISPLAYFORMAT, "SM_SAMEDISPLAYFORMAT", "Same color format flag")
];
extern (Windows)
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
int result;
try
{
Runtime.initialize();
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow);
Runtime.terminate();
}
catch (Throwable o)
{
MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION);
result = 0;
}
return result;
}
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
string appName = "SysMets1";
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style = CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc = &WndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = cast(HBRUSH) GetStockObject(WHITE_BRUSH);
wndclass.lpszMenuName = NULL;
wndclass.lpszClassName = appName.toUTF16z;
if(!RegisterClass(&wndclass))
{
MessageBox(NULL, "This program requires Windows NT!", appName.toUTF16z, MB_ICONERROR);
return 0;
}
hwnd = CreateWindow(appName.toUTF16z, // window class name
"Get System Metrics No. 1", // window caption
WS_OVERLAPPEDWINDOW, // window style
CW_USEDEFAULT, // initial x position
CW_USEDEFAULT, // initial y position
CW_USEDEFAULT, // initial x size
CW_USEDEFAULT, // initial y size
NULL, // parent window handle
NULL, // window menu handle
hInstance, // program instance handle
NULL); // creation parameters
ShowWindow(hwnd, iCmdShow);
UpdateWindow(hwnd);
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return cast(int)msg.wParam;
}
extern(Windows)
LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) nothrow
{
scope (failure) assert(0);
HDC hdc;
PAINTSTRUCT ps;
RECT rect;
TEXTMETRIC tm;
static int cxChar, cxCaps, cyChar;
static int cxClient, cyClient;
static int iVScrollPos;
switch (message)
{
case WM_CREATE:
{
hdc = GetDC(hwnd);
scope(exit) ReleaseDC(hwnd, hdc);
GetTextMetrics(hdc, &tm); // Dimensions of the system font don't change
// during a Windows session
cxChar = tm.tmAveCharWidth;
cxCaps = (tm.tmPitchAndFamily & 1 ? 3 : 2) * cxChar / 2;
cyChar = tm.tmHeight + tm.tmExternalLeading;
return 0;
}
case WM_PAINT:
{
hdc = BeginPaint(hwnd, &ps);
scope(exit) EndPaint(hwnd, &ps);
int y;
foreach (index, metric; sysMetrics)
{
y = cast(int)(cyChar * (index - cast(int)iVScrollPos));
TextOut(hdc, 0, y, metric.label.toUTF16z, cast(int)metric.label.count);
TextOut(hdc, 22 * cxCaps, y, metric.desc.toUTF16z, cast(int)metric.desc.count);
string value = to!string(GetSystemMetrics(metric.index));
// right-align
SetTextAlign(hdc, TA_RIGHT | TA_TOP);
TextOut(hdc, 22 * cxCaps + 40 * cxChar, y, value.toUTF16z, cast(int)value.count);
// restore alignment
SetTextAlign(hdc, TA_LEFT | TA_TOP);
}
return 0;
}
case WM_DESTROY:
PostQuitMessage(0);
return 0;
default:
}
return DefWindowProc(hwnd, message, wParam, lParam);
}
|
D
|
module imports.test63a;
private import test63;
struct s {
char[SIZE] a;
}
|
D
|
module ui.event.keycodes.glfw;
version( GLFW ):
import bindbc.glfw;
import bindbc.glfw.types;
//import std.string : startsWith;
//import std.format : format;
/*
static
foreach ( m; __traits( allMembers, bindbc.glfw.types ) )
{
static
if ( m.startsWith( "GLFW_KEY_" ) )
{
//pragma( msg, m );
mixin( format!"public import bindbc.glfw.types : %s;"( m ) );
}
}
*/
|
D
|
// curses test 1
import curse = deimos.ncurses.curses;
import cpanel = deimos.ncurses.panel;
import cform = deimos.ncurses.form;
import cmenu = deimos.ncurses.menu;
import std.stdio;
import std.string;
debug = characters;
void test1()
{
//WINDOW* stdscr = initscr();
// curse.initscr();
// scope(exit) curse.endwin();
// scope(failure) curse.endwin();
curse.WINDOW* mwin = curse.newwin(5, 40, 4, 4); scope(exit) curse.delwin(mwin);
curse.wborder(mwin, 0,0,0,0, 0,0,0,0);
curse.mvwprintw(curse.stdscr, 0, 0, toStringz("Hello World!"));
curse.mvwprintw(mwin, 1, 1, toStringz("Hello World!"));
// curse.addch(ACS_DIAMOND);
curse.refresh();
curse.wrefresh(mwin);
curse.getch();
return;
debug(chardebug)
{
writefln("%s is %#x", curse.ACS_ULCORNER.stringof, curse.ACS_ULCORNER);
writefln("%s is %#x %s", "0x25A0", 0x25A0, '\u25a0');
writefln("%s is %#x %s", "0x25A0", 0x25A0, '\u25a0');
}
}
void test2()
{
curse.noecho();
curse.clear();
int sizex = curse.getmaxx(curse.stdscr) - 2;
int sizey = curse.getmaxy(curse.stdscr) - 2;
curse.WINDOW* mwin = curse.newwin(sizey , sizex / 2, 1,1); scope(exit) curse.delwin(mwin);
curse.wborder(mwin, 0,0,0,0,0,0,0,0);
cpanel.PANEL* mpanel = cpanel.new_panel(mwin); scope(exit) cpanel.del_panel(mpanel);
cpanel.show_panel(mpanel);
cpanel.update_panels();
curse.refresh();
curse.wrefresh(mwin);
curse.getch();
curse.doupdate();
cpanel.move_panel(mpanel, 10, 10);
//cpanel.show_panel(mpanel);
cpanel.update_panels();
curse.doupdate();
curse.getch();
return;
}
void test3()
{
curse.clear();
int sizex = curse.getmaxx(curse.stdscr) - 2;
int sizey = curse.getmaxy(curse.stdscr) - 2;
curse.WINDOW* win1 = curse.newwin(sizey, sizex/2, 1,1); scope(exit) curse.delwin(win1);
curse.WINDOW* win2 = curse.newwin(sizey, sizex/2, 1, sizex/2); scope(exit) curse.delwin(win1);
curse.box(win1, 0,0);
curse.box(win2, 0,0);
curse.refresh();
curse.wrefresh(win1);
curse.wrefresh(win2);
curse.getch();
curse.getch();
}
void test4()
{
curse.clear();
curse.start_color();
curse.cbreak();
curse.noecho();
int sizex = curse.getmaxx(curse.stdscr) - 2;
int sizey = curse.getmaxy(curse.stdscr) - 2;
curse.init_pair(1, curse.COLOR_WHITE, curse.COLOR_BLUE);
curse.init_pair(2, curse.COLOR_WHITE, curse.COLOR_RED);
curse.mvwprintw(curse.stdscr, 0, sizex/2 - 4, "form test");
curse.WINDOW* topwin = curse.newwin(1,sizex - 2, 0, 0); scope(exit) curse.delwin(topwin);
curse.mvwprintw(topwin, 0, 10, "FORM TEST");
curse.WINDOW* win1 = curse.newwin(sizey, sizex/2, 2, 1); scope(exit) curse.delwin(win1);
curse.WINDOW* win2 = curse.newwin(sizey, sizex/2, 2, sizex/2); scope(exit) curse.delwin(win2);
cform.FIELD* namefield = cform.new_field(1, 15, 7, 7, 0, 0); scope(exit) cform.free_field(namefield);
cform.FIELD* agefield = cform.new_field(1, 3, 8, 8, 0, 0); scope(exit) cform.free_field(agefield);
// cform.set_field_fore(namefield, curse.COLOR_PAIR(1));
cform.set_field_back(namefield, curse.COLOR_PAIR(2));
cform.FIELD** fields = cast(cform.FIELD**) [agefield, namefield];
cform.FORM* nameage = cform.new_form(fields);
cform.post_form(nameage); scope(exit) cform.unpost_form(nameage);
cform.set_field_buffer(namefield, 0, "helloworld");
// curse.attron(curse.COLOR_PAIR(2));
curse.box(win1, 0,0);
curse.box(win2, 0,0);
// curse.attroff(curse.COLOR_PAIR(2));
cform.set_field_buffer(namefield, 0, "helloworld");
curse.refresh();
curse.wrefresh(win1);
curse.wrefresh(win2);
curse.wrefresh(topwin);
// cform.set_field_buffer(namefield, 0, "helloworld");
int c;
while((c = curse.getch()) != 'q')
{
if(c == 'a') {
cform.set_field_buffer(namefield, 0, "helloworld");
curse.refresh();
}
}
curse.getch();
// curse.getch();
}
void main()
{
curse.initscr();
// test1();
// test2();
// test3();
test4();
scope(exit) curse.endwin();
scope(failure) curse.endwin();
curse.endwin();
}
|
D
|
Implementations of Algorithms, Data Structures, and Games in Java.
|
D
|
module tools.list;
import tools.base, tools.each, tools.compat;
class ListBoundsException : Exception { this() { super("List bounds exceeded!"); } }
private const quietly = true;
struct List(T) {
struct Entry {
T value;
Entry* next, prev;
static Entry *opCall(T value, Entry *next, Entry *prev) {
auto res = new Entry;
res.value = value; res.next = next; res.prev = prev;
return res;
}
}
struct ListIterator {
Entry* entry;
List* parent;
bool negative; // parked in negative space
T value() { return entry.value; }
Entry* prev() {
if (entry) return entry.prev;
else if (!negative) return parent.last;
else throw new Exception("No predecessor for -1");
}
Entry* next() {
if (entry) return entry.next;
else if (!negative) return parent.first;
else throw new Exception("No successor for $");
}
void back(bool quietly = false) {
if (!entry) {
if (negative) {
if (!quietly) throw new Exception("Cannot go back further than -1! ");
} else entry = parent.last;
} else {
entry = entry.prev;
negative = true;
}
}
void forward(bool quietly = false) {
if (!entry) {
if (!negative) {
if (!quietly) throw new Exception("Cannot go back further than -1! ");
} else entry = parent.first;
} else {
entry = entry.next;
negative = false;
}
}
void insert_after(T t) {
if (!entry) {
if (!negative) throw new Exception("Cannot insert after after the end! "); // Not a typo!
parent.prepend(t);
} else if (entry is parent.last) {
parent.append(t);
} else {
entry.next = Entry(t, entry.next, entry);
entry.next.next.prev = entry.next; // Ha-ha!
}
}
void insert_before(T t) {
if (!entry) {
if (negative) throw new Exception("Cannot insert before before the start! "); // Not a typo either!
parent.append(t);
} else if (entry is parent.first) {
parent.prepend(t);
} else {
entry.prev = Entry(t, entry, entry.prev);
entry.prev.prev.next = entry.prev; // Hee-hee!
}
}
T remove(bool quietly = false) {
if (!entry) {
if (!quietly) throw new Exception("Cannot erase from outside proper iteration space: nothing there! ");
return Init!(T);
}
if (entry is parent.first) { parent.first = entry.next; parent.first.prev = null; }
else entry.prev.next = entry.next;
if (entry is parent.last) { parent.last = entry.prev; parent.last.next = null; }
else entry.next.prev = entry.prev;
return entry.value;
}
}
string toString() {
string res;
foreach (entry; *this) {
if (res.length) res ~= " -> ";
res ~= Format("[", entry, "]");
}
return res;
}
Entry* first, last;
T top() in { assert(last); } body { return last.value; }
T bottom() in { assert(first); } body { return first.value; }
void append(T v) {
last = Entry(v, null, last);
if (!first) first = last;
if (last.prev) last.prev.next = last;
}
alias append opCatAssign;
void prepend(T v) {
first = Entry(v, first, null);
if (!last) last=first;
if (first.next) first.next.prev = first;
}
ListIterator lookup(size_t pos) in { assert(first && last); } body {
auto cur = first;
while (pos--) {
if (cur is last) throw new ListBoundsException;
cur = cur.next;
}
return ListIterator(cur, this);
}
T opIndex(size_t pos) { return lookup(pos).entry.value; }
size_t length() {
auto cur = first;
if (!cur) return 0;
size_t l = 1;
while (cur !is last) { cur = cur.next; ++l; }
return l;
}
private {
void _each(void delegate(size_t, ref T, proc) dg) {
auto cur = first;
if (!cur) return;
bool brk;
size_t count=0;
while (true) {
dg(count, cur.value, { brk = true; });
++count;
if (brk || cur is last) break;
cur = cur.next;
}
}
void _each_reverse(void delegate(size_t, ref T, proc) dg) {
auto cur = last;
if (!cur) return;
bool brk;
size_t count = length();
while (true) {
--count;
dg(count, cur.value, { brk = true; });
if (brk || cur is first) break;
cur = cur.prev;
}
}
}
mixin Each!("_each", "_each_reverse", size_t, T);
T remove(size_t which) { return lookup(which).remove; }
}
struct UnrolledList(T) {
alias List!(T[]).ListIterator LI;
List!(T[]) chunks;
string toString() { return "UnrolledList "~chunks.toString(); }
size_t length() {
size_t res;
foreach (chunk; chunks) res += chunk.length;
return res;
}
Stuple!(LI, int) lookup(int i) {
auto res = stuple(cast(LI) chunks.lookup(0), i);
foreach (chunk; chunks) {
if (chunk.length <= res._1) {
res._0.forward();
res._1 -= chunk.length;
} else {
return res;
}
}
if (!res._1) return res; // One past the end is still fine.
throw new Exception(Format("Cannot lookup ", i, " in unrolled list: length ", length, "!"));
}
LI presplit(int where, bool omit /* omit the index from the result*/) {
auto id = lookup(where);
auto iter = id._0, subidx = id._1;
if (!iter.entry) {
assert (!subidx);
logln("presplit at ", where, ", ", omit, ": no value");
return iter; // nothing to change.
}
auto
prevchunk = iter.value[0 .. subidx],
nextchunk = iter.value[subidx+omit .. $];
if (prevchunk.length)
iter.insert_before(prevchunk);
if (nextchunk.length)
iter.insert_after(nextchunk);
return iter;
}
void insert(T t, int where) {
auto iter = presplit(where, false);
T[] foo; foo ~= t;
iter.entry.value = foo;
}
Stuple!(LI, LI) split(int where) {
auto li = presplit(where, false), pre = li, post = li;
pre.back(quietly); post.forward(quietly);
li.remove(quietly);
return stuple(pre, post);
}
Stuple!(LI, LI) split_range(int from, int to) {
return stuple(split(from)._0, split(to)._1);
}
UnrolledList opSlice(int from, int to) {
auto l1 = lookup(from), l2 = lookup(to);
if (l1._0.entry is l2._0.entry) {
UnrolledList res;
res ~= l1._0.value[l1._1 .. l2._1];
return res;
}
auto
partial1 = l1._0.entry?l1._0.value[l1._1 .. $]:null,
partial2 = l2._0.entry?l2._0.value[0 .. l2._1]:null;
UnrolledList res;
if (partial1.length) res ~= partial1;
while (true) {
l1._0.forward;
if (!l1._0.entry || l1._0.entry is l2._0.entry) break;
res ~= l1._0.value;
}
if (partial2.length) res ~= partial2;
return res;
}
UnrolledList opSlice() { return opSlice(0, length); }
T[] flatten() {
auto res = new T[length];
int i;
foreach (chunk; chunks) {
res[i .. i + chunk.length] = chunk;
i += chunk.length;
}
return res;
}
UnrolledList dup() {
UnrolledList res;
res.append(flatten);
return res;
}
int opApply(int delegate(ref int i, ref T t) dg) {
int i;
foreach (chunk; chunks) {
foreach (elem; chunk) {
if (auto res = dg(i, elem)) return res;
i++;
}
}
return 0;
}
int opApply(int delegate(ref T t) dg) {
foreach (chunk; chunks) {
foreach (elem; chunk) {
if (auto res = dg(elem)) return res;
}
}
return 0;
}
void remove(int where) { presplit(where, true).remove; }
T opIndex(int where) { with (lookup(where)) return _0.value[_1]; }
T opIndexAssign(T t, int where) { with (lookup(where)) return _0.value[_1] = t; }
void append(T t) { T[] foo; foo ~= t; chunks.append(foo); }
void append(T[] ta) { chunks.append(ta); }
alias append opCatAssign;
void prepend(T t) { T[] foo; foo ~= t; chunks.prepend(foo); }
void prepend(T[] ta) { chunks.prepend(ta); }
}
|
D
|
module testxxx8;
import core.vararg;
extern(C)
{
int atoi(const char*);
int printf(const char*, ...);
size_t strlen(const char*);
version(Windows)
{
int _snprintf(char*, size_t, const char*, ...);
alias _snprintf snprintf;
}
else
int snprintf(char*, size_t, const char*, ...);
}
/***********************************/
struct Foo1
{
static int x = 3;
int y = 4;
}
void test1()
{
Foo1 f;
assert(Foo1.x == 3);
assert(f.x == 3);
assert(f.y == 4);
}
/***********************************/
class Foo2
{
static int x = 5;
int y = 6;
}
void test2()
{
Foo2 f = new Foo2();
assert(Foo2.x == 5);
assert(f.x == 5);
assert(f.y == 6);
}
/***********************************/
struct Foo3
{
static int bar() { return 3; }
int y = 4;
}
void test3()
{
Foo3 f;
assert(Foo3.bar() == 3);
assert(f.bar() == 3);
}
/***********************************/
class Foo4
{
static int bar() { return 3; }
int y = 4;
}
void test4()
{
Foo4 f = new Foo4();
assert(Foo4.bar() == 3);
assert(f.bar() == 3);
}
/***********************************/
struct Foo5
{
int bar() { return y + 3; }
int y = 4;
}
void test5()
{
Foo5 f;
assert(f.bar() == 7);
}
/***********************************/
class Foo6
{
int bar() { return y + 3; }
final int abc() { return y + 8; }
int y = 4;
}
class FooX6 : Foo6
{
override int bar() { return y + 5; }
}
void test6()
{
Foo6 f = new FooX6();
assert(f.bar() == 9);
assert(f.abc() == 12);
}
/***********************************/
void bar7(char[3] cad)
{
assert(cad.length == 3);
printf("cad[0] = %d\n", cad[0]);
assert(cad[0] == 0xFF);
assert(cad[1] == 1);
assert(cad[2] == 0xFF);
}
void test7()
{
char[3] foo;
foo[1] = 1;
bar7(foo);
}
/***********************************/
class gap8
{
this(char[3] cad)
{
assert(cad[0] == 0xFF);
assert(cad[1] == 1);
assert(cad[2] == 0xFF);
}
}
void test8()
{
char[3] foo;
gap8 g;
foo[1] = 1;
g = new gap8(foo);
}
/***********************************/
void test9()
{
ireal imag = 2.5i;
//printf ("test of imag*imag = %Lf\n",imag*imag);
real f = imag * imag;
assert(f == -6.25);
}
/***********************************/
void test10()
{
creal z = 1 + 2.5i;
real e = z.im;
printf ("e = %Lf\n", e);
assert(e == 2.5);
}
/***********************************/
class Foo11
{
public:
int a = 47;
protected:
int b;
private:
int c;
int bar()
{
return a + b + c;
}
}
class Bar11 : Foo11
{
int abc()
{
return a + b;
}
}
void test11()
{
Foo11 f = new Foo11();
int i = f.a;
assert(i == 47);
}
/***********************************/
class A12
{
protected void foo() { }
}
class B12: A12
{
override void foo() { super.foo(); }
}
void test12()
{
}
/***********************************/
alias void *HWND;
const HWND hWnd = cast(HWND)(null);
void test13()
{
}
/***********************************/
string bar14()
{
return "f";
}
char foo14()
{
return bar14()[0];
}
void test14()
{
char f = foo14();
assert(f == 'f');
}
/***********************************/
void test15()
{
char[30] a;
char[30] b;
assert(a !is b);
}
/***********************************/
void test16()
{
static int function() fp = &func16;
int i = fp();
assert(i == 648);
}
int func16()
{
return 648;
}
/***********************************/
string returnSameString(string inputstr)
{
return inputstr;
}
string passString()
{
return returnSameString("First string" ~ "Concatenated with second");
}
string butThisWorks()
{
string s = "Third string";
s = s ~ "Concatenated with fourth";
return returnSameString(s);
}
void test17()
{
string s;
s = passString();
printf("passString() = %.*s\n", s.length, s.ptr);
assert(s == "First stringConcatenated with second");
s = butThisWorks();
printf("butThisWorks() = %.*s\n", s.length, s.ptr);
assert(s == "Third stringConcatenated with fourth");
}
/***********************************/
void test18()
{
string[] str;
str.length = 2;
version (none)
{
str[1] = "cba";
str[0] = "zyx";
}
else
{
str[1] = (cast(string)"cba").idup;
str[0] = (cast(string)"zyx").idup;
}
// This sorts the strs
str.sort;
// This will crash the compiler
str[0] = str[0].dup.sort.idup;
// This will give sintax error
//str[0].sort();
printf("%.*s", str[0].length, str[0].ptr);
printf("%.*s", str[1].length, str[1].ptr);
printf("\n");
string s = str[0] ~ str[1];
assert(s == "abczyx");
}
/***********************************/
void test19()
{
string array = "foobar";
array = array.idup;
array = array.dup.sort.idup;
assert(array == "abfoor");
}
/***********************************/
class A20
{
private:
static int a;
public:
int foo(B20 j) { return j.b; }
}
class B20
{
private:
static int b;
public:
int bar(A20 j) { return j.a; }
}
void test20()
{
}
/***********************************/
alias int* IP;
void test21()
{
int i = 5;
IP ip = cast(IP) &i;
assert(*ip == 5);
}
/***********************************/
struct RECT
{
int left = 1;
int top = 2;
int right = 3;
int bottom = 4;
}
struct Rect
{
RECT theRect;
}
void Test(Rect pos)
{
//printf("left = %d\n", pos.theRect.left);
assert(pos.theRect.left == 1);
assert(pos.theRect.top == 2);
assert(pos.theRect.right == 3);
assert(pos.theRect.bottom == 4);
}
class Window
{
Rect position;
void createWindow()
{
Test(position);
}
}
void test22()
{
Window w = new Window();
w.createWindow();
}
/***********************************/
struct Size
{
int width;
int height;
}
Size computeSize()
{
Size foo;
foo.width = 12;
foo.height = 34;
printf("Inside: %d,%d\n",foo.width,foo.height);
return foo;
}
void test24()
{
Size bar;
bar = computeSize();
printf("Outside: %d,%d\n",bar.width,bar.height);
assert(bar.width == 12);
assert(bar.height == 34);
}
/***********************************/
void test25()
{ int i = 5;
while (i)
{
break;
}
}
/***********************************/
int test26()
in
{
}
out (result)
{
}
body
{ int i = 5;
while (i)
{
break;
}
return i;
}
/***********************************/
class A27
{
int a;
this()
{
a = 1;
}
}
class B27 : A27
{
}
class C27 : B27
{
this()
{
super();
}
this(int i)
{
}
}
void test27()
{
A27 a = new A27();
assert(a.a == 1);
B27 b = new B27();
assert(b.a == 1);
C27 c = new C27();
assert(c.a == 1);
C27 c2 = new C27(2);
assert(c2.a == 1);
}
/***********************************/
const char[1] sep = '/';
string testx28(string s, string t)
{
return cast(string)(s ~ sep ~ t);
}
void test28()
{
string r;
r = testx28("ab", "cd");
assert(r == "ab/cd");
}
/***********************************/
void test29()
{
}
/***********************************/
bool func30(int x, int y)
{
bool b;
b|=(x==y);
return b;
}
void test30()
{
bool b;
b = func30(1,1);
assert(b == true);
b = func30(1,2);
assert(b == false);
}
/***********************************/
int a31;
void test31()
{
testxxx8.a31 = 3;
assert(a31 == 3);
}
/***********************************/
void test32()
{
string[] foo;
int i;
foo = new string[45];
for (i = 0; i < 45; i++)
foo[i] = "hello";
for (i = 0; i < 45; i++)
assert(foo[i] == "hello");
}
/***********************************/
void test33()
{
string[] foo;
int i = 45;
foo = new string[i];
for (i = 0; i < 45; i++)
foo[i] = "hello";
for (i = 0; i < 45; i++)
assert(foo[i] == "hello");
}
/***********************************/
void test34()
{
int[3][4] a;
int[5][6] b = 16;
int i, j;
for (i = 0; i < 4; i++)
for (j = 0; j < 3; j++)
assert(a[i][j] == 0);
for (i = 0; i < 6; i++)
for (j = 0; j < 5; j++)
assert(b[i][j] == 16);
}
/***********************************/
void test35()
{
ifloat b = cast(ifloat)1i;
assert(b == 1.0i);
ifloat c = 2fi;
assert(c == 2.0i);
c = 0fi;
assert(c == 0i);
}
/***********************************/
string itoa(int i)
{
char[32] buffer;
snprintf(buffer.ptr, 32, "%d", i);
return buffer[0 .. strlen(buffer.ptr)].idup;
}
string testa36(int i, int j, string a, string b, string c)
{
string s = "string 0;" ~ itoa(i) ~
"string 1;" ~ itoa(j) ~
"string 2;" ~ itoa(i) ~
"string 3;";
// string s = a ~ b ~ c;
return s;
}
void test36()
{
string s = testa36(26, 47, "a", "b", "c");
printf("s = '%.*s'\n", s.length, s.ptr);
assert(s == "string 0;26string 1;47string 2;26string 3;");
}
/***********************************/
void test37()
{
string[ulong] x;
ulong v1 = 297321415603;
ulong v2 = 331681153971;
x[v1] = "aa";
printf( "%llx %llx\n", v1, v2 );
assert(!(v2 in x));
}
/***********************************/
void test38()
{
int n = atoi("1");
static char flags[8192 + 1];
long i, k;
int count = 0;
try
{
while (n--)
{
count = 0;
for (i = 2; i <= 8192; i++)
flags[cast(size_t)i] = 1;
for (i = 2; i <= 8192; i++)
{
if (flags[cast(size_t)i])
{
for (k = i+i; k <= 8192; k += i)
flags[cast(size_t)k] = 0;
count++;
}
}
}
printf("Count: %d\n", count);
assert(count == 1028);
}
catch
{
printf("Exception: %d\n", k);
assert(0);
}
}
/***********************************/
interface I39
{
}
class C39 : I39
{
int x = 432;
}
void test39()
{
C39 c = new C39;
printf("%p %d\n", c, c.x);
assert(c.x == 432);
printf("%p\n", cast(I39) c);
c = cast(C39) cast(I39) c;
printf("%p\n", c);
assert(c !is null);
}
/***********************************/
void test40()
{
Object x;
x = null;
x = 0 ? x : null;
x = 0 ? null : x;
}
/***********************************/
int foo42(const(char) *x, ...)
{
va_list ap;
va_start!(typeof(x))(ap, x);
printf("&x = %p, ap = %p\n", &x, ap);
int i;
i = va_arg!(typeof(i))(ap);
printf("i = %d\n", i);
long l;
l = va_arg!(typeof(l))(ap);
printf("l = %lld\n", l);
uint k;
k = va_arg!(typeof(k))(ap);
printf("k = %u\n", k);
va_end(ap);
return cast(int)(i + l + k);
}
void test42()
{
int j;
j = foo42("hello", 3, 23L, 4);
printf("j = %d\n", j);
assert(j == 30);
}
/***********************************/
void test43()
{
creal C,Cj;
real y1,x1;
C = x1 + y1*1i + Cj;
C = 1i*y1 + x1 + Cj;
C = Cj + 1i*y1 + x1;
C = y1*1i + Cj + x1;
C = 1i*y1 + Cj;
C = Cj + 1i*y1;
}
/***********************************/
int x44;
class A44 {
this() { printf("A44 ctor\n"); x44 += 1; }
~this() { printf("A44 dtor\n"); x44 += 0x100; }
}
class B44 : A44 { }
void foo44() { scope B44 b = new B44; }
void test44()
{
printf("foo44...\n");
foo44();
printf("...foo44\n");
assert(x44 == 0x101);
}
/***********************************/
/*
import std.stdarg;
import std.utf;
int unFormat( bool delegate( out dchar ) getc,
bool delegate( dchar ) ungetc,
TypeInfo[] arguments,
void* argptr )
{
size_t arg = 0;
dchar[] fmt;
if( arguments[arg] is typeid( string ) )
fmt = toUTF32( va_arg!(string)( argptr ) );
else if( arguments[arg] is typeid( wchar[] ) )
fmt = toUTF32( va_arg!(wchar[])( argptr ) );
else if( arguments[arg] is typeid( dchar[] ) )
fmt = va_arg!(dchar[])( argptr );
else
return 0;
}
*/
void test45()
{
}
/***********************************/
int sreadf( ... )
{
va_arg!(string)( _argptr );
return 0;
}
void test46()
{
printf( "hello world\n" );
}
/***********************************/
void test48()
{
try{
}finally{
debug(p48) { }
}
}
/***********************************/
void test49()
{
int k = 1;
if(k == 0)
debug{printf("test");}
}
/***********************************/
void test50()
{ int x;
if (x)
version (none)
foo;
}
/***********************************/
/+
void foo51(creal a)
{
writeln(a);
assert(a == -8i);
}
void test51()
{
cdouble a = (2-2i)*(2-2i);
// This fails
writeln(a);
assert(a == -8i);
// This works
writeln((2-2i)*(2-2i));
// This fails
foo51((2-2i)*(2-2i));
}
+/
void foo51(creal a)
{
assert(a == -8i);
}
void test51()
{
assert((2-2i)*(2-2i) == -8i);
cdouble a = (2-2i)*(2-2i);
assert(a == -8i);
foo51((2-2i)*(2-2i));
}
/***********************************/
// Bug 391
void test52()
{
char[] a;
a = "\u3026\u2021\u3061\n".dup;
assert(a =="\u3026\u2021\u3061\n");
assert(a.sort == "\n\u2021\u3026\u3061");
assert(a.reverse =="\u3061\u3026\u2021\n");
}
/***********************************/
int main()
{
test1();
test2();
test3();
test4();
test5();
test6();
test7();
test8();
test9();
test10();
test11();
test12();
test13();
test14();
test15();
test16();
test17();
test18();
test19();
test20();
test21();
test22();
test24();
test25();
test26();
test27();
test28();
test29();
test30();
test31();
test32();
test33();
test34();
test35();
test36();
test37();
test38();
test39();
test40();
test42();
test43();
test44();
test45();
test46();
test48();
test49();
test50();
test51();
test52();
printf("Success\n");
return 0;
}
|
D
|
module android.java.android.icu.util.LocaleData_MeasurementSystem;
public import android.java.android.icu.util.LocaleData_MeasurementSystem_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!LocaleData_MeasurementSystem;
import import0 = android.java.java.lang.Class;
|
D
|
module UnrealScript.UnrealEd.InterpTrackDirectorHelper;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.UnrealEd.InterpTrackHelper;
extern(C++) interface InterpTrackDirectorHelper : InterpTrackHelper
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class UnrealEd.InterpTrackDirectorHelper")); }
private static __gshared InterpTrackDirectorHelper mDefaultProperties;
@property final static InterpTrackDirectorHelper DefaultProperties() { mixin(MGDPC("InterpTrackDirectorHelper", "InterpTrackDirectorHelper UnrealEd.Default__InterpTrackDirectorHelper")); }
}
|
D
|
/*
Copyright: Marcelo S. N. Mancini (Hipreme|MrcSnm), 2018 - 2021
License: [https://creativecommons.org/licenses/by/4.0/|CC BY-4.0 License].
Authors: Marcelo S. N. Mancini
Copyright Marcelo S. N. Mancini 2018 - 2021.
Distributed under the CC BY-4.0 License.
(See accompanying file LICENSE.txt or copy at
https://creativecommons.org/licenses/by/4.0/
*/
module hip.bind.libinfos;
import core.stdc.string:strlen;
version(Have_bindbc_openal)
{
import bindbc.openal;
string get_audio_devices_list(const ALCchar *devices)
{
string ret;
const(char)* device = devices;
const(char)* next = devices + 1;
size_t len = 0;
ret~= "Devices list:\n";
ret~= "----------\n";
while (device && *device != '\0' && next && *next != '\0')
{
// ret~= device.fromStringz~"\n";
// len = strlen(device);
// device += (len + 1);
// next += (len + 2);
}
ret~= "----------\n";
return ret;
}
}
version(Android)
{
/** Current OpenSL ES Version*/
immutable SLESVersion = "1.0.1";
/**
* Is feature compatible with...
*/
struct SLESCompatibility
{
///Feature compatible with AudioPlayer
immutable bool AudioPlayer;
///Feature compatible with AudioRecorder
immutable bool AudioRecorder;
///Feature compatible with Engine
immutable bool Engine;
///Feature compatible with OutputMix
immutable bool OutputMix;
}
/**
* Documentation for permissions needed on android side when using SLES
*/
enum SLESAndroidRequiredPermissions
{
///When using any kind of output mix effect
MODIFY_AUDIO_SETTINGS = `<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>`,
///When messing with AudioRecorder
RECORD_AUDIO = `<uses-permission android:name="android.permission.RECORD_AUDIO"/>`
}
/**
* Immutable table on how is compatibility at Android, keeping that only as a reference.
*/
enum Android_NDK_Compatibility : SLESCompatibility
{
// Player Rec Engine Output
BassBoost = SLESCompatibility(true, false, false, true),
BufferQueue = SLESCompatibility(true, false, false, false),
BufferQueueDataLocator = SLESCompatibility(true, false, false, false), //Source
DynamicInterfaceManagement = SLESCompatibility(true, true, true, true),
EffectSend = SLESCompatibility(true, false, false, false),
Engine = SLESCompatibility(false, false, true, false),
EnvironmentalReverb = SLESCompatibility(false, false, false, true),
Equalize = SLESCompatibility(true, false, false, true),
IODeviceDataLocator = SLESCompatibility(false, true, false, false),
MetadataExtraction = SLESCompatibility(true, false, false, false),
MuteSolo = SLESCompatibility(true, false, false, false),
OObject = SLESCompatibility(true, true, true, true),
OutputMixLocator = SLESCompatibility(true, false, false, false), //Sink
Play = SLESCompatibility(true, false, false, false),
PlaybackRate = SLESCompatibility(true, false, false, false),
PrefetchStatus = SLESCompatibility(true, false, false, false),
PresetReverb = SLESCompatibility(false, false, false, true),
Record = SLESCompatibility(false, true, false, false),
Seek = SLESCompatibility(true, false, false, false),
URIDataLocator = SLESCompatibility(true, false, false, false), //Source
Virtualizer = SLESCompatibility(true, false, false, true),
Volume = SLESCompatibility(true, false, false, false)
// Player Rec Engine Output
}
}
|
D
|
/**
Contains a simple struct(DynamicType) that can store strings, integers, booleans and decimals only.
Authors:
Paul Crane
*/
module raijin.types.dynamic;
import std.conv : to;
import raijin.types.functions;
/**
A simple type that can store strings, integers, booleans and decimals only.
*/
struct DynamicType
{
enum Type { integer, string, decimal, boolean }
private Type type_;
private union
{
long integer_;
string str_;
double decimal_;
bool boolean_;
}
this(T)(T t)
{
this = t;
}
/// Assign a DynamicType to a long value.
DynamicType opAssign(long value)
{
type_ = Type.integer;
integer_ = value;
return this;
}
/// Assign a DynamicType to a double value.
DynamicType opAssign(double value)
{
type_ = Type.decimal;
decimal_ = value;
return this;
}
/// Assign a DynamicType to a string value.
DynamicType opAssign(string value)
{
type_ = Type.string;
str_ = value;
return this;
}
/// Assign a DynamicType to a boolean value.
DynamicType opAssign(bool value)
{
type_ = Type.boolean;
boolean_ = value;
return this;
}
DynamicType opAssign(DynamicType value)
{
type_ = value.type;
final switch(type_)
{
case Type.integer:
integer_ = value.integer;
break;
case Type.string:
str_ = value.str;
break;
case Type.decimal:
decimal_ = value.decimal;
break;
case Type.boolean:
boolean_ = value.boolean;
break;
}
return this;
}
/// Compare a DynamicType to a long value.
bool opEquals(long value) const
{
return(value == integer_);
}
/// Compare a DynamicType to a string value.
bool opEquals(string value) const
{
return(value == str_);
}
/// Compare a DynamicType to a boolean value.
bool opEquals(bool value) const
{
return(value == boolean_);
}
/// Compare a DynamicType to a double value.
bool opEquals(double value) const
{
import std.math : approxEqual;
return approxEqual(value, decimal_);
}
/// Compare a DynamicType to a DynamicType.
bool opEquals(DynamicType value) const
{
if(type_ == value.type)
{
final switch(value.type)
{
case Type.integer:
return (integer_ == value.integer);
case Type.string:
return (str_ == value.str);
case Type.decimal:
return (decimal_ == value.decimal);
case Type.boolean:
return (boolean_ == value.boolean);
}
}
return false;
}
long asInteger()
{
final switch(type_)
{
case Type.integer:
return integer_;
case Type.string:
return to!long(str_);
case Type.decimal:
return to!long(decimal_);
case Type.boolean:
return to!long(boolean_);
}
}
string asString()
{
final switch(type_)
{
case Type.string:
return str_;
case Type.integer:
return to!string(integer_);
case Type.decimal:
return to!string(decimal_);
case Type.boolean:
return to!string(boolean_);
}
}
bool asBoolean()
{
final switch(type_)
{
case Type.string:
return to!bool(str_);
case Type.integer:
return (integer_ < 1) ? false : true;
case Type.decimal:
return false; // Why would you convert a decimal?
case Type.boolean:
return boolean_;
}
}
double asDecimal()
{
final switch(type_)
{
case Type.integer:
return to!double(integer_);
case Type.string:
return to!double(str_);
case Type.decimal:
return decimal_;
case Type.boolean:
return to!double(boolean_); // FIXME
}
}
size_t toHash() const nothrow @trusted
{
final switch(type_)
{
case Type.integer:
return typeid(integer_).getHash(&integer_);
case Type.string:
return typeid(str_).getHash(&str_);
case Type.decimal:
return typeid(decimal_).getHash(&decimal_);
case Type.boolean:
return typeid(boolean_).getHash(&boolean_);
}
}
string toString()
{
return asString();
}
// Properties to access union values and type.
long integer() const @property
{
return integer_;
}
double decimal() const @property
{
return decimal_;
}
bool boolean() const @property
{
return boolean_;
}
string str() const @property
{
return str_;
}
Type type() const @property
{
return type_;
}
}
///
unittest
{
DynamicType compareInt = 666;
assert(compareInt == 666);
assert(compareInt.asString == "666");
assert(compareInt.asBoolean == true);
assert(compareInt.asDecimal == 666);
assert(compareInt.asInteger == 666);
DynamicType compareDec = 36.786;
assert(compareDec == 36.786);
assert(compareDec.asString == "36.786");
assert(compareDec.asInteger == 36);
assert(compareDec.asBoolean == false);
DynamicType compareBool = false;
assert(compareBool == false);
assert(compareBool.asInteger == 0);
assert(compareBool.asDecimal == 0.0);
DynamicType compareBool2 = true;
assert(compareBool2 == true);
DynamicType compareDynString1 = "Hello World";
DynamicType compareDynString2 = "Hello World";
assert(compareDynString1 == compareDynString2);
assert(compareDynString1.str == compareDynString2.str);
DynamicType intStr = "123";
assert(intStr.asInteger == 123);
DynamicType boolStr = "true";
assert(boolStr.asBoolean == true);
DynamicType compareDynBoolean1 = false;
DynamicType compareDynBoolean2 = false;
assert(compareDynBoolean1 == compareDynBoolean2);
assert(compareDynBoolean1.boolean == compareDynBoolean2.boolean);
DynamicType compareDynInteger1 = 333;
DynamicType compareDynInteger2 = 333;
assert(compareDynInteger1 == compareDynInteger2);
assert(compareDynInteger1.integer == compareDynInteger2.integer);
DynamicType compareDynDecimal1 = 45.89;
DynamicType compareDynDecimal2 = 45.89;
DynamicType compareDynDecimalString3 = "45.89";
assert(compareDynDecimal1 == compareDynDecimal2);
assert(compareDynDecimal1.decimal == compareDynDecimal2.decimal);
assert(!(compareDynDecimal2 == compareDynDecimalString3));
assert(compareDynDecimalString3.asDecimal == 45.89);
DynamicType assignToDynamicType1 = 15;
DynamicType assignToDynamicType2 = assignToDynamicType1;
assert(assignToDynamicType2 == 15);
// property tests
DynamicType propInteger = 732;
assert(propInteger.integer == 732);
DynamicType propStr = "732";
assert(propStr.str == "732");
DynamicType propDec = 7.32;
assert(propDec.decimal == 7.32);
DynamicType propBoolean = true;
assert(propBoolean.boolean == true);
string[DynamicType] hashInt;
hashInt[propInteger] = "an integer";
assert(hashInt[propInteger] == "an integer");
string[DynamicType] hashStr;
hashStr[propStr] = "an string";
assert(hashStr[propStr] == "an string");
string[DynamicType] hashDec;
hashDec[propDec] = "an decimal";
assert(hashDec[propDec] == "an decimal");
string[DynamicType] hashBoolean;
hashBoolean[propBoolean] = "an boolean";
assert(hashBoolean[propBoolean] == "an boolean");
}
/**
Converts a string to its appropriate type to be stored in a DynamicType.
Params:
value = The string to convert.
Returns:
The converted string as a DynamicType.
*/
DynamicType getDynamicTypeFromString(const string value)
{
DynamicType dynValue;
if(value.isInteger)
{
dynValue = to!long(value);
}
else if(value.isDecimal)
{
dynValue = to!double(value);
}
else if(isBoolean(value, AllowNumericBooleanValues.no))
{
dynValue = to!bool(value);
}
else
{
dynValue = to!string(value);
}
return dynValue;
}
///
unittest
{
const string strInt = "90210";
DynamicType dynInt = getDynamicTypeFromString(strInt);
assert(dynInt == 90210);
const string strDec = "90.210";
DynamicType dynDec = getDynamicTypeFromString(strDec);
assert(dynDec == 90.210);
const string strBool = "true";
DynamicType dynBool = getDynamicTypeFromString(strBool);
assert(dynBool == true);
const string str = "My zip code is 90210";
DynamicType dynStr = getDynamicTypeFromString(str);
assert(dynStr == str);
}
|
D
|
module Dgame.Graphics.Transform;
private {
debug import std.stdio;
import derelict.opengl3.gl;
import Dgame.Graphics.Transformable;
import Dgame.Window.Window;
import Dgame.Math.Rect;
}
/**
* An object for the transformation of e.g. TileMaps.
*
* Author: rschuett
*/
final class Transform : Transformable {
private:
ShortRect _view;
int[2] _winSize;
bool _viewActive = true;
public:
/**
* CTor
*/
this() {
this.updateWindowSize();
}
/**
* CTor
*/
this(ref const ShortRect view) {
this();
this._view = view;
}
/**
* CTor
*/
this(const ShortRect view) {
this(view);
}
/**
* Apply the viewport. The view is recalulcated by the given View Rectangle.
*/
void applyViewport() const {
const bool noView = !this._viewActive || this._view.isEmpty();
if (!noView) {
if (!glIsEnabled(GL_SCISSOR_TEST))
glEnable(GL_SCISSOR_TEST);
const int vx = this._view.x + cast(short)(super._position.x);
const int vy = this._view.y + this._view.height + cast(short)(super._position.y);
glScissor(vx, this._winSize[1] - vy, this._view.width, this._view.height);
}
}
/**
* Apply the translation.
*/
void applyTranslation() const {
super._applyTranslation();
}
/**
* Update should be called if the window is resized.
*/
void updateWindowSize() {
int[4] viewport;
glGetIntegerv(GL_VIEWPORT, &viewport[0]);
this._winSize[] = viewport[2 .. 4];
}
/**
* Activate/Deactivate the usage of the viewport.
*/
void activateView(bool vActive) {
this._viewActive = vActive;
}
/**
* Returns, if the viewport usage is activated or not.
*/
bool isViewActive() const pure nothrow {
return this._viewActive;
}
/**
* Fetch the viewport pointer so that it can modified outside.
*/
inout(ShortRect*) fetchView() inout {
return &this._view;
}
/**
* Set a new view.
*/
void setView(short x, short y, short w, short h) {
this._view.set(x, y, w, h);
}
/**
* Set a new view.
*/
void setView(ref const ShortRect view) {
this._view = view;
}
/**
* Rvalue version.
*/
void setView(const ShortRect view) {
this.setView(view);
}
/**
* Reset the viewport.
*/
void resetView() {
this._view.collapse();
}
/**
* Adjust the viewport.
* The position is shifted about <code>view.x * -1</code> and <code>view.y - 1</code>
* so that the left upper corner of the current view is in the left upper corner of the Window.
*/
void adjustView() {
super.setPosition(this._view.x * -1, this._view.y * -1);
}
}
|
D
|
/**
* Skadi.d Web Framework
*
* Authors: Faianca
* Copyright: Copyright (c) 2015 Faianca
* License: MIT License, see LICENSE
*/
module Application.PostBundle.Services.PostManager;
import Application.PostBundle.Services.MongoService;
import Application.PostBundle.Services.TestService;
import skadi.framework;
import std.stdio;
class PostManager
{
@Inject {
public MongoService mongoService;
public TestService testService;
}
Json getPost()
{
auto coll = this.mongoService.getClient().getCollection("test.nettuts");
return Json(coll.find!Json.array);
}
Json getPost(string name)
{
auto coll = this.mongoService.getClient().getCollection("test.nettuts");
auto result = coll.findOne(["first": name]);
return result.toJson();
}
}
|
D
|
// Copyright © 2011, Jakob Bornecrantz. All rights reserved.
// See copyright notice in src/charge/charge.d (GPLv2 only).
/**
* Source file for Material.
*/
module charge.gfx.material;
import std.regexp : RegExp;
import std.conv : toFloat, ConvError, ConvOverflowError;
import std.string : format;
import lib.xml.xml;
import charge.math.color;
import charge.sys.logger;
import charge.gfx.gl;
import charge.gfx.shader;
import charge.gfx.light;
import charge.gfx.texture;
import charge.gfx.renderqueue;
import charge.sys.resource : Pool, reference;
struct MaterialProperty
{
enum {
TEXTURE = 0,
COLOR3 = 3,
COLOR4 = 4,
OPTION = 5,
}
string name;
int type;
}
class Material
{
public:
Pool pool;
public:
this(Pool p)
{
this.pool = p;
}
abstract void breakApart();
final bool opIndexAssign(string tex, string name)
{
return setTexture(name, tex);
}
final bool opIndexAssign(Texture tex, string name)
{
return setTexture(name, tex);
}
final bool opIndexAssign(Color3f color, string name)
{
return setColor3f(name, color);
}
final bool opIndexAssign(Color4f color, string name)
{
return setColor4f(name, color);
}
final bool opIndexAssign(bool option, string name)
{
return setOption(name, option);
}
final bool setTexture(string name, string filename)
{
if (name is null)
return false;
Texture tex;
if (filename !is null)
tex = Texture(pool, filename);
auto ret = setTexture(name, tex);
reference(&tex, null);
return ret;
}
bool setTexture(string name, Texture tex)
{
return false;
}
bool setColor3f(string name, Color3f value)
{
return false;
}
bool setColor4f(string name, Color4f value)
{
return false;
}
bool setOption(string name, bool value)
{
return false;
}
bool getTexture(string name, out Texture tex)
{
return false;
}
bool getColor3f(string name, out Color3f value)
{
return false;
}
bool getColor4f(string name, out Color4f value)
{
return false;
}
bool getOption(string name, out bool value)
{
return false;
}
MaterialProperty[] getPropList()
{
return [];
}
}
class SimpleMaterial : Material
{
public:
Color4f color;
Texture tex; /**< Does not hold a reference */
Texture texSafe; /**< Will always be valid */
bool fake;
bool stipple;
bool skel; /**< This is here temporary */
public:
this(Pool p)
{
super(p);
this.color = Color4f.White;
texSafe = ColorTexture(pool, color);
assert(texSafe !is null);
}
~this()
{
assert(tex is null);
assert(texSafe is null);
}
void breakApart()
{
reference(&texSafe, null);
// Does not hold a reference
tex = null;
}
MaterialProperty[] getPropList()
{
static MaterialProperty[] list = [
{"tex", MaterialProperty.TEXTURE},
{"color", MaterialProperty.COLOR3},
{"fake", MaterialProperty.OPTION},
{"stipple", MaterialProperty.OPTION}
];
return list;
}
bool setTexture(string name, Texture texture)
{
if (name is null)
return false;
switch(name) {
case "tex":
// Tex does not hold a reference
tex = texture;
// Update the safe texture
reference(&texSafe, tex);
// Must always be safe to access, set to color
if (texSafe is null)
texSafe = ColorTexture(pool, color);
break;
default:
return false;
}
return true;
}
bool setColor3f(string name, Color3f color)
{
if (name is null)
return false;
switch(name) {
case "color":
this.color = Color4f(color);
// Update the color texture if set
setTexture("tex", tex);
break;
default:
return false;
}
return true;
}
bool setColor4f(string name, Color4f color)
{
if (name is null)
return false;
switch(name) {
case "color":
this.color = color;
this.color.a = 1.0f;
// Update the color texture if set
setTexture("tex", tex);
break;
default:
return false;
}
return true;
}
bool setOption(string name, bool option)
{
switch(name) {
case "fake":
fake = option;
break;
case "stipple":
stipple = option;
break;
default:
return false;
}
return true;
}
bool getTexture(string name, out Texture tex)
{
if (name is null)
return false;
switch(name) {
case "tex":
tex = tex;
break;
default:
return false;
}
return true;
}
bool getColor3f(string name, out Color3f color)
{
if (name is null)
return false;
switch(name) {
case "color":
color = Color3f(this.color.r, this.color.g, this.color.b);
break;
default:
return false;
}
return true;
}
bool getOption(string name, out bool option)
{
switch(name) {
case "fake":
option = this.fake;
break;
default:
return false;
}
return true;
}
}
class MaterialManager
{
private:
mixin Logging;
static RegExp value3;
static RegExp value4;
static Material defaultMaterial;
static this()
{
value3 = RegExp(`(\S+)\s+(\S+)\s+(\S+)`);
value4 = RegExp(`(\S+)\s+(\S+)\s+(\S+)\s+(\S+)`);
}
public:
static Material getDefault(Pool p)
{
return new SimpleMaterial(p);
}
static Material opCall(Pool p, string filename)
{
Element f;
try {
f = DomParser(filename);
} catch (XmlException xe) {
l.error(xe.msg);
return null;
}
auto m = new SimpleMaterial(p);
try {
process(m, Handle(f));
} catch (Exception e) {
l.error(e.msg);
}
l.info("Loaded material ", filename);
return m;
}
static void process(Material m, Handle f)
{
auto list = m.getPropList();
foreach(prop; list) {
auto e = f.first(prop.name).first().text;
if (e is null)
continue;
switch(prop.type) {
case MaterialProperty.TEXTURE:
string t = e.value;
m[prop.name] = t;
break;
case MaterialProperty.COLOR3:
Color3f c;
string t = e.value;
if (exColor3f(t, c))
m[prop.name] = c;
break;
case MaterialProperty.COLOR4:
Color4f c;
string t = e.value;
if (exColor4f(t, c))
m[prop.name] = c;
break;
case MaterialProperty.OPTION:
bool b;
string t = e.value;
if (exBool(t, b))
m[prop.name] = b;
break;
default:
break;
}
}
}
static bool exColor3f(string text, out Color3f r)
{
auto p = value3.exec(text);
if (p.length < 4)
return false;
try {
r.r = toFloat(p[1]);
r.g = toFloat(p[2]);
r.b = toFloat(p[3]);
} catch (ConvError ce) {
return false;
} catch (ConvOverflowError cof) {
return false;
}
return true;
}
static bool exColor4f(string text, out Color4f r)
{
auto p = value4.exec(text);
if (p.length < 5)
return false;
try {
r.r = toFloat(p[1]);
r.g = toFloat(p[2]);
r.b = toFloat(p[3]);
r.a = toFloat(p[4]);
} catch (ConvError ce) {
return false;
} catch (ConvOverflowError cof) {
return false;
}
return true;
}
static bool exBool(string text, out bool b)
{
if (text == "true") {
b = true;
} else if (text == "false") {
b = false;
} else {
return false;
}
return true;
}
}
|
D
|
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_0_banking-1834322583.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_0_banking-1834322583.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
/home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/obj/x86_64-slc6-gcc49-opt/CPAnalysisExamples/obj/CPAnalysisExamplesCINT.o /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/obj/x86_64-slc6-gcc49-opt/CPAnalysisExamples/obj/CPAnalysisExamplesCINT.d : /cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisBase/2.3.45/CPAnalysisExamples/Root/LinkDef.h /cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisBase/2.3.45/CPAnalysisExamples/CPAnalysisExamples/xExample.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/EventLoop/Algorithm.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/EventLoop/Global.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TNamed.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TObject.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/Rtypes.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RtypesCore.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RConfig.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RVersion.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/DllImport.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/Rtypeinfo.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/snprintf.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/strlcpy.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TGenericClassInfo.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TSchemaHelper.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TStorage.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TVersionCheck.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/Riosfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TBuffer.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TString.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TMathBase.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RStringView.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RConfigure.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/RWrap_libcpp_string_view.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/libcpp_string_view.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/EventLoop/StatusCode.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODRootAccess/Init.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODRootAccess/tools/TReturnCode.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODRootAccess/TEvent.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/Rtypes.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODEventFormat/EventFormat.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODEventFormat/versions/EventFormat_v1.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODEventFormat/EventFormatElement.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODCore/CLASS_DEF.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODCore/ClassID_traits.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/AthContainersInterfaces/IAuxStoreHolder.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODRootAccessInterfaces/TVirtualEvent.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODRootAccessInterfaces/TVirtualEvent.icc /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TError.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/xAODRootAccess/TEvent.icc /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/AthContainers/ClassName.h /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/AthContainers/ClassName.icc /home/shepj/xaod/ROOTAnalysisTutorial/RootCoreBin/include/AthContainers/tools/error.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TH1.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TAxis.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TAttAxis.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TArrayD.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TArray.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TAttLine.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TAttFill.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TAttMarker.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TArrayC.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TArrayS.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TArrayI.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TArrayF.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/Foption.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TVectorFfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TVectorDfwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TFitResultPtr.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TH2.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TMatrixFBasefwd.h /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.12-x86_64-slc6-gcc49-opt/include/TMatrixDBasefwd.h
|
D
|
module threading.selector;
import std.string : format;
/**
* Exception type made for selector handlers.
*/
class SelectorException : Throwable {
public:
/**
* Creates a new instance of SelectorException.
* Params:
* msg = The message of the exception.
*/
this(string msg) {
super(msg);
}
}
/**
* A 2-key value based selector collection.
*/
class Selector(TKey1,TKey2,TValue) {
private:
/**
* The key1-values.
*/
TValue[TKey1] m_values1;
/**
* The key2 values.
*/
TValue[TKey2] m_values2;
/**
* The key1-key2 keys.
*/
TKey1[TKey2] m_keys1;
/**
* The key2-key1 keys.
*/
TKey2[TKey1] m_keys2;
public:
/**
* Creates a new instance of Selector.
*/
this() { }
/**
* Adds a value to the collection.
* Params:
* key1 = The first key.
* key2 = The second key.
* value = The value.
*/
void add(TKey1 key1, TKey2 key2, TValue value) {
if (contains(key1) || contains(key2))
throw new SelectorException(format("%s and %s already exists in the collection.", key1, key2));
synchronized {
m_values1[key1] = value;
m_values2[key2] = value;
m_keys1[key2] = key1;
m_keys2[key1] = key2;
}
}
/**
* Removes a value from the collection.
* Params:
* key = The key.
*/
void remove(TKey1 key) {
if (!contains(key))
throw new SelectorException(format("%s does not exist in the collection.", key));
synchronized {
m_values1.remove(key);
auto key2 = m_keys2[key];
m_values2.remove(key2);
m_keys1.remove(key2);
m_keys2.remove(key);
}
}
/**
* Removes a value from the collection.
* Params:
* key = The key.
*/
void remove(TKey2 key) {
if (!contains(key))
throw new SelectorException(format("%s does not exist in the collection.", key));
synchronized {
m_values2.remove(key);
auto key1 = m_keys1[key];
m_values1.remove(key1);
m_keys2.remove(key1);
m_keys1.remove(key);
}
}
/**
* Checks whether a key exists within the collection.
* Returns: True if the collection contains the key.
* Params:
* key = The key.
*/
bool contains(TKey1 key) {
synchronized {
return (m_values1.get(key, null) !is null);
}
}
/**
* Checks whether a key exists within the collection.
* Returns: True if the collection contains the key.
* Params:
* key = The key.
*/
bool contains(TKey2 key) {
synchronized {
return (m_values2.get(key, null) !is null);
}
}
/**
* Gets a value from the collection.
* Params:
* key = The key.
* Returns: The value.
*/
TValue get(TKey1 key) {
if (!contains(key))
throw new SelectorException(format("%s does not exist in the collection.", key));
synchronized {
return m_values1[key];
}
}
/**
* Gets a value from the collection.
* Params:
* key = The key.
* Returns: The value.
*/
TValue get(TKey2 key) {
if (!contains(key))
throw new SelectorException(format("%s does not exist in the collection.", key));
synchronized {
return m_values2[key];
}
}
@property {
/**
* Gets the values of the collection.
*/
TValue[] values() { return m_values1.values; }
/**
* Gets the first key type of the collection.
*/
TKey1[] keys1() { return m_values1.keys; }
/**
* Gets the second key type of the collection.
*/
TKey2[] keys2() { return m_values2.keys; }
}
}
|
D
|
/******************************************************************************
Fake DLS node GetRange request implementation.
Copyright:
Copyright (c) 2016-2017 dunnhumby Germany GmbH. All rights reserved.
License:
Boost Software License Version 1.0. See LICENSE.txt for details.
*******************************************************************************/
module fakedls.neo.request.GetRange;
import ocean.core.Verify;
import dlsproto.node.neo.request.GetRange;
import dlsproto.node.neo.request.core.IRequestResources;
import swarm.neo.node.RequestOnConn;
import swarm.neo.request.Command;
import dlsproto.common.RequestCodes;
import ocean.text.convert.Integer;
import ocean.meta.types.Qualifiers;
import fakedls.neo.SharedResources;
/*******************************************************************************
Node implementation of the GetRangeProtocol_v2.
*******************************************************************************/
public class GetRangeImpl_v2: GetRangeProtocol_v2
{
import swarm.util.Hash;
import fakedls.Storage;
import core.stdc.time;
import ocean.text.Search;
import ocean.text.regex.PCRE;
import dlsproto.common.GetRange;
/// Request code / version. Required by ConnectionHandler.
static immutable Command command = Command(RequestCode.GetRange, 2);
/// Request name for stats tracking. Required by ConnectionHandler.
static immutable string name = "GetRange";
/// Flag indicating whether timing stats should be gathered for requests of
/// this type.
static immutable bool timing = false;
/// Flag indicating whether this request type is scheduled for removal. (If
/// true, clients will be warned.)
static immutable bool scheduled_for_removal = false;
/***************************************************************************
Array of remaining keys in AA to iterate
***************************************************************************/
private string[] remaining_keys;
/***************************************************************************
Key associated with the record values in this.values_for_key
***************************************************************************/
private string current_key;
/***************************************************************************
Array of values associated with the current key
***************************************************************************/
private string[] values_for_key;
/***************************************************************************
Lower boundary of the iterated range.
***************************************************************************/
time_t low;
/***************************************************************************
Higher boundary of the iterated range.
***************************************************************************/
time_t high;
/***************************************************************************
Channel being iterated in the current request.
***************************************************************************/
private Channel channel;
/***************************************************************************
Sub-string search instance.
***************************************************************************/
private SearchFruct match;
/***************************************************************************
Regex engine.
***************************************************************************/
private PCRE.CompiledRegex regex;
/***************************************************************************
Filtering mode.
***************************************************************************/
private Filter.FilterMode mode;
/***************************************************************************
Initialize the channel iterator
Params:
channel_name = name of channel to be prepared
Return:
`true` if it is possible to proceed with request
***************************************************************************/
override protected bool prepareChannel ( cstring channel_name )
{
this.channel = global_storage.get(channel_name);
if (this.channel !is null)
this.remaining_keys = this.channel.getKeys();
else
this.remaining_keys = null;
return true;
}
/***************************************************************************
Performs logic needed to start sending records in the given
range.
Params:
low = lower range boundary
high = higher range boundary
Returns:
`true` if the range preparation was sucessfull
***************************************************************************/
override protected bool prepareRange (time_t low, time_t high)
{
this.low = low;
this.high = high;
return this.low <= this.high;
}
/***************************************************************************
Allows request to process read filter string into more efficient form
and save it before starting actual record iteration.
Params:
mode = filter mode
filter = filter string
Returns:
true if preparing regex filter is successful, false otherwise
***************************************************************************/
override protected bool prepareFilter ( Filter.FilterMode mode,
cstring filter )
{
this.mode = mode;
switch ( mode )
{
case Filter.FilterMode.StringMatch:
this.match = search(filter);
break;
case Filter.FilterMode.PCRE:
case Filter.FilterMode.PCRECaseInsensitive:
try
{
auto case_sens = mode != Filter.FilterMode.PCRECaseInsensitive;
this.regex = (new PCRE).new CompiledRegex;
this.regex.compile(filter, case_sens);
}
catch ( Exception e )
{
return false;
}
break;
default:
assert(false);
}
return true;
}
/***************************************************************************
Iterates records for the protocol
Params:
key = output value for the next record's key
value = output value for the next record's value
wait_for_data = out parameter, will be set if the request should
suspend until more data has arrived (always false
for fakedls)
Returns:
`true` if there was data, `false` if request is complete
***************************************************************************/
override protected bool getNextRecord ( out time_t timestamp,
ref void[] value,
out bool wait_for_data)
{
while (true)
{
// Loop over values fetched for the current key
while (this.values_for_key.length)
{
if (!toInteger(this.current_key, timestamp, 16))
{
return false;
}
value = cast(void[])this.values_for_key[0];
this.values_for_key = this.values_for_key[1 .. $];
if (!rangeFilterPredicate(timestamp, value))
{
continue;
}
return true;
}
// Fetch values for the next key
if (!this.remaining_keys.length)
return false;
this.current_key = this.remaining_keys[0];
this.values_for_key = this.channel.get(this.current_key);
this.remaining_keys = this.remaining_keys[1 .. $];
}
}
/***************************************************************************
Predicate that filters records based on the range, and string or
regex matching.
Params:
key = record key to check
value = record value to check
Returns:
'true' if record matches (should not be filtered out)
***************************************************************************/
private bool rangeFilterPredicate ( time_t key, ref void[] value )
{
if (key < this.low || key > this.high)
{
return false;
}
with ( Filter.FilterMode ) switch ( this.mode )
{
case None:
return true;
case StringMatch:
return this.match.forward(cast(char[])value) < value.length;
case PCRE:
case PCRECaseInsensitive:
try
{
verify (this.regex !is null);
return this.regex.match(cast(char[])value);
}
catch ( Exception e )
{
return false;
}
assert(false);
default:
assert(false);
}
assert(false);
}
}
|
D
|
// Written in the D programming language.
/**
This module defines generic containers.
Construction:
To implement the different containers both struct and class based
approaches have been used. $(REF make, std,container,util) allows for
uniform construction with either approach.
---
import std.container;
// Construct a red-black tree and an array both containing the values 1, 2, 3.
// RedBlackTree should typically be allocated using `new`
RedBlackTree!int rbTree = new RedBlackTree!int(1, 2, 3);
// But `new` should not be used with Array
Array!int array = Array!int(1, 2, 3);
// `make` hides the differences
RedBlackTree!int rbTree2 = make!(RedBlackTree!int)(1, 2, 3);
Array!int array2 = make!(Array!int)(1, 2, 3);
---
Note that `make` can infer the element type from the given arguments.
---
import std.container;
auto rbTree = make!RedBlackTree(1, 2, 3); // RedBlackTree!int
auto array = make!Array("1", "2", "3"); // Array!string
---
Reference_semantics:
All containers have reference semantics, which means that after
assignment both variables refer to the same underlying data.
To make a copy of a container, use the `c._dup` container primitive.
---
import std.container, std.range;
Array!int originalArray = make!(Array!int)(1, 2, 3);
Array!int secondArray = originalArray;
assert(equal(originalArray[], secondArray[]));
// changing one instance changes the other one as well!
originalArray[0] = 12;
assert(secondArray[0] == 12);
// secondArray now refers to an independent copy of originalArray
secondArray = originalArray.dup;
secondArray[0] = 1;
// assert that originalArray has not been affected
assert(originalArray[0] == 12);
---
$(B Attention:) If the container is implemented as a class, using an
uninitialized instance can cause a null pointer dereference.
---
import std.container;
RedBlackTree!int rbTree;
rbTree.insert(5); // null pointer dereference
---
Using an uninitialized struct-based container will work, because the struct
intializes itself upon use; however, up to this point the container will not
have an identity and assignment does not create two references to the same
data.
---
import std.container;
// create an uninitialized array
Array!int array1;
// array2 does _not_ refer to array1
Array!int array2 = array1;
array2.insertBack(42);
// thus array1 will not be affected
assert(array1.empty);
// after initialization reference semantics work as expected
array1 = array2;
// now affects array2 as well
array1.removeBack();
assert(array2.empty);
---
It is therefore recommended to always construct containers using
$(REF make, std,container,util).
This is in fact necessary to put containers into another container.
For example, to construct an `Array` of ten empty `Array`s, use
the following that calls `make` ten times.
---
import std.container, std.range;
auto arrOfArrs = make!Array(generate!(() => make!(Array!int)).take(10));
---
Submodules:
This module consists of the following submodules:
$(UL
$(LI
The $(MREF std, container, array) module provides
an array type with deterministic control of memory, not reliant on
the GC unlike built-in arrays.
)
$(LI
The $(MREF std, container, binaryheap) module
provides a binary heap implementation that can be applied to any
user-provided random-access range.
)
$(LI
The $(MREF std, container, dlist) module provides
a doubly-linked list implementation.
)
$(LI
The $(MREF std, container, rbtree) module
implements red-black trees.
)
$(LI
The $(MREF std, container, slist) module
implements singly-linked lists.
)
$(LI
The $(MREF std, container, util) module contains
some generic tools commonly used by container implementations.
)
)
The_primary_range_of_a_container:
While some containers offer direct access to their elements e.g. via
`opIndex`, `c.front` or `c.back`, access
and modification of a container's contents is generally done through
its primary $(MREF_ALTTEXT range, std, range) type,
which is aliased as `C.Range`. For example, the primary range type of
`Array!int` is `Array!int.Range`.
If the documentation of a member function of a container takes
a parameter of type `Range`, then it refers to the primary range type of
this container. Oftentimes `Take!Range` will be used, in which case
the range refers to a span of the elements in the container. Arguments to
these parameters $(B must) be obtained from the same container instance
as the one being worked with. It is important to note that many generic range
algorithms return the same range type as their input range.
---
import std.algorithm.comparison : equal;
import std.algorithm.iteration : find;
import std.container;
import std.range : take;
auto array = make!Array(1, 2, 3);
// `find` returns an Array!int.Range advanced to the element "2"
array.linearRemove(array[].find(2));
assert(array[].equal([1]));
array = make!Array(1, 2, 3);
// the range given to `linearRemove` is a Take!(Array!int.Range)
// spanning just the element "2"
array.linearRemove(array[].find(2).take(1));
assert(array[].equal([1, 3]));
---
When any $(MREF_ALTTEXT range, std, range) can be passed as an argument to
a member function, the documention usually refers to the parameter's templated
type as `Stuff`.
---
import std.algorithm.comparison : equal;
import std.container;
import std.range : iota;
auto array = make!Array(1, 2);
// the range type returned by `iota` is completely unrelated to Array,
// which is fine for Array.insertBack:
array.insertBack(iota(3, 10));
assert(array[].equal([1, 2, 3, 4, 5, 6, 7, 8, 9]));
---
Container_primitives:
Containers do not form a class hierarchy, instead they implement a
common set of primitives (see table below). These primitives each guarantee
a specific worst case complexity and thus allow generic code to be written
independently of the container implementation.
For example the primitives `c.remove(r)` and `c.linearRemove(r)` both
remove the sequence of elements in range `r` from the container `c`.
The primitive `c.remove(r)` guarantees
$(BIGOH n$(SUBSCRIPT r) log n$(SUBSCRIPT c)) complexity in the worst case and
`c.linearRemove(r)` relaxes this guarantee to $(BIGOH n$(SUBSCRIPT c)).
Since a sequence of elements can be removed from a $(MREF_ALTTEXT doubly linked list,std,container,dlist)
in constant time, `DList` provides the primitive `c.remove(r)`
as well as `c.linearRemove(r)`. On the other hand
$(MREF_ALTTEXT Array, std,container, array) only offers `c.linearRemove(r)`.
The following table describes the common set of primitives that containers
implement. A container need not implement all primitives, but if a
primitive is implemented, it must support the syntax described in the $(B
syntax) column with the semantics described in the $(B description) column, and
it must not have a worst-case complexity worse than denoted in big-O notation in
the $(BIGOH ·) column. Below, `C` means a container type, `c` is
a value of container type, $(D n$(SUBSCRIPT x)) represents the effective length of
value `x`, which could be a single element (in which case $(D n$(SUBSCRIPT x)) is
`1`), a container, or a range.
$(BOOKTABLE Container primitives,
$(TR
$(TH Syntax)
$(TH $(BIGOH ·))
$(TH Description)
)
$(TR
$(TDNW `C(x)`)
$(TDNW $(D n$(SUBSCRIPT x)))
$(TD Creates a container of type `C` from either another container or a range.
The created container must not be a null reference even if x is empty.)
)
$(TR
$(TDNW `c.dup`)
$(TDNW $(D n$(SUBSCRIPT c)))
$(TD Returns a duplicate of the container.)
)
$(TR
$(TDNW $(D c ~ x))
$(TDNW $(D n$(SUBSCRIPT c) + n$(SUBSCRIPT x)))
$(TD Returns the concatenation of `c` and `r`. `x` may be a single
element or an input range.)
)
$(TR
$(TDNW $(D x ~ c))
$(TDNW $(D n$(SUBSCRIPT c) + n$(SUBSCRIPT x)))
$(TD Returns the concatenation of `x` and `c`. `x` may be a
single element or an input range type.)
)
$(LEADINGROWN 3, Iteration
)
$(TR
$(TD `c.Range`)
$(TD)
$(TD The primary range type associated with the container.)
)
$(TR
$(TD `c[]`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Returns a range
iterating over the entire container, in a container-defined order.)
)
$(TR
$(TDNW $(D c[a .. b]))
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Fetches a portion of the container from key `a` to key `b`.)
)
$(LEADINGROWN 3, Capacity
)
$(TR
$(TD `c.empty`)
$(TD `1`)
$(TD Returns `true` if the container has no elements, `false` otherwise.)
)
$(TR
$(TD `c.length`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Returns the number of elements in the container.)
)
$(TR
$(TDNW $(D c.length = n))
$(TDNW $(D n$(SUBSCRIPT c) + n))
$(TD Forces the number of elements in the container to `n`.
If the container ends up growing, the added elements are initialized
in a container-dependent manner (usually with `T.init`).)
)
$(TR
$(TD `c.capacity`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Returns the maximum number of elements that can be stored in the
container without triggering a reallocation.)
)
$(TR
$(TD `c.reserve(x)`)
$(TD $(D n$(SUBSCRIPT c)))
$(TD Forces `capacity` to at least `x` without reducing it.)
)
$(LEADINGROWN 3, Access
)
$(TR
$(TDNW `c.front`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Returns the first element of the container, in a container-defined order.)
)
$(TR
$(TDNW `c.moveFront`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Destructively reads and returns the first element of the
container. The slot is not removed from the container; it is left
initialized with `T.init`. This routine need not be defined if $(D
front) returns a `ref`.)
)
$(TR
$(TDNW $(D c.front = v))
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Assigns `v` to the first element of the container.)
)
$(TR
$(TDNW `c.back`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Returns the last element of the container, in a container-defined order.)
)
$(TR
$(TDNW `c.moveBack`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Destructively reads and returns the last element of the
container. The slot is not removed from the container; it is left
initialized with `T.init`. This routine need not be defined if $(D
front) returns a `ref`.)
)
$(TR
$(TDNW $(D c.back = v))
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Assigns `v` to the last element of the container.)
)
$(TR
$(TDNW `c[x]`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Provides indexed access into the container. The index type is
container-defined. A container may define several index types (and
consequently overloaded indexing).)
)
$(TR
$(TDNW `c.moveAt(x)`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Destructively reads and returns the value at position `x`. The slot
is not removed from the container; it is left initialized with $(D
T.init).)
)
$(TR
$(TDNW $(D c[x] = v))
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Sets element at specified index into the container.)
)
$(TR
$(TDNW $(D c[x] $(I op)= v))
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Performs read-modify-write operation at specified index into the
container.)
)
$(LEADINGROWN 3, Operations
)
$(TR
$(TDNW $(D e in c))
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Returns nonzero if e is found in `c`.)
)
$(TR
$(TDNW `c.lowerBound(v)`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Returns a range of all elements strictly less than `v`.)
)
$(TR
$(TDNW `c.upperBound(v)`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Returns a range of all elements strictly greater than `v`.)
)
$(TR
$(TDNW `c.equalRange(v)`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Returns a range of all elements in `c` that are equal to `v`.)
)
$(LEADINGROWN 3, Modifiers
)
$(TR
$(TDNW $(D c ~= x))
$(TDNW $(D n$(SUBSCRIPT c) + n$(SUBSCRIPT x)))
$(TD Appends `x` to `c`. `x` may be a single element or an input range type.)
)
$(TR
$(TDNW `c.clear()`)
$(TDNW $(D n$(SUBSCRIPT c)))
$(TD Removes all elements in `c`.)
)
$(TR
$(TDNW `c.insert(x)`)
$(TDNW $(D n$(SUBSCRIPT x) * log n$(SUBSCRIPT c)))
$(TD Inserts `x` in `c` at a position (or positions) chosen by `c`.)
)
$(TR
$(TDNW `c.stableInsert(x)`)
$(TDNW $(D n$(SUBSCRIPT x) * log n$(SUBSCRIPT c)))
$(TD Same as `c.insert(x)`, but is guaranteed to not invalidate any ranges.)
)
$(TR
$(TDNW `c.linearInsert(v)`)
$(TDNW $(D n$(SUBSCRIPT c)))
$(TD Same as `c.insert(v)` but relaxes complexity to linear.)
)
$(TR
$(TDNW `c.stableLinearInsert(v)`)
$(TDNW $(D n$(SUBSCRIPT c)))
$(TD Same as `c.stableInsert(v)` but relaxes complexity to linear.)
)
$(TR
$(TDNW `c.removeAny()`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Removes some element from `c` and returns it.)
)
$(TR
$(TDNW `c.stableRemoveAny()`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Same as `c.removeAny()`, but is guaranteed to not invalidate any
iterators.)
)
$(TR
$(TDNW `c.insertFront(v)`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Inserts `v` at the front of `c`.)
)
$(TR
$(TDNW `c.stableInsertFront(v)`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Same as `c.insertFront(v)`, but guarantees no ranges will be
invalidated.)
)
$(TR
$(TDNW `c.insertBack(v)`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Inserts `v` at the back of `c`.)
)
$(TR
$(TDNW `c.stableInsertBack(v)`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Same as `c.insertBack(v)`, but guarantees no ranges will be
invalidated.)
)
$(TR
$(TDNW `c.removeFront()`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Removes the element at the front of `c`.)
)
$(TR
$(TDNW `c.stableRemoveFront()`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Same as `c.removeFront()`, but guarantees no ranges will be
invalidated.)
)
$(TR
$(TDNW `c.removeBack()`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Removes the value at the back of `c`.)
)
$(TR
$(TDNW `c.stableRemoveBack()`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Same as `c.removeBack()`, but guarantees no ranges will be
invalidated.)
)
$(TR
$(TDNW `c.remove(r)`)
$(TDNW $(D n$(SUBSCRIPT r) * log n$(SUBSCRIPT c)))
$(TD Removes range `r` from `c`.)
)
$(TR
$(TDNW `c.stableRemove(r)`)
$(TDNW $(D n$(SUBSCRIPT r) * log n$(SUBSCRIPT c)))
$(TD Same as `c.remove(r)`, but guarantees iterators are not
invalidated.)
)
$(TR
$(TDNW `c.linearRemove(r)`)
$(TDNW $(D n$(SUBSCRIPT c)))
$(TD Removes range `r` from `c`.)
)
$(TR
$(TDNW `c.stableLinearRemove(r)`)
$(TDNW $(D n$(SUBSCRIPT c)))
$(TD Same as `c.linearRemove(r)`, but guarantees iterators are not
invalidated.)
)
$(TR
$(TDNW `c.removeKey(k)`)
$(TDNW $(D log n$(SUBSCRIPT c)))
$(TD Removes an element from `c` by using its key `k`.
The key's type is defined by the container.)
)
$(TR
$(TDNW ``)
$(TDNW ``)
$(TD )
)
)
Source: $(PHOBOSSRC std/container/package.d)
Copyright: Red-black tree code copyright (C) 2008- by Steven Schveighoffer. Other code
copyright 2010- Andrei Alexandrescu. All rights reserved by the respective holders.
License: Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at $(HTTP
boost.org/LICENSE_1_0.txt)).
Authors: Steven Schveighoffer, $(HTTP erdani.com, Andrei Alexandrescu)
*/
module std.container;
public import std.container.array;
public import std.container.binaryheap;
public import std.container.dlist;
public import std.container.rbtree;
public import std.container.slist;
import std.meta;
/* The following documentation and type `TotalContainer` are
intended for developers only.
`TotalContainer` is an unimplemented container that illustrates a
host of primitives that a container may define. It is to some extent
the bottom of the conceptual container hierarchy. A given container
most often will choose to only implement a subset of these primitives,
and define its own additional ones. Adhering to the standard primitive
names below allows generic code to work independently of containers.
Things to remember: any container must be a reference type, whether
implemented as a `class` or `struct`. No primitive below
requires the container to escape addresses of elements, which means
that compliant containers can be defined to use reference counting or
other deterministic memory management techniques.
A container may choose to define additional specific operations. The
only requirement is that those operations bear different names than
the ones below, lest user code gets confused.
Complexity of operations should be interpreted as "at least as good
as". If an operation is required to have $(BIGOH n) complexity, it
could have anything lower than that, e.g. $(BIGOH log(n)). Unless
specified otherwise, `n` inside a $(BIGOH) expression stands for
the number of elements in the container.
*/
struct TotalContainer(T)
{
/**
If the container has a notion of key-value mapping, `KeyType`
defines the type of the key of the container.
*/
alias KeyType = T;
/**
If the container has a notion of multikey-value mapping, $(D
KeyTypes[k]), where `k` is a zero-based unsigned number, defines
the type of the `k`th key of the container.
A container may define both `KeyType` and `KeyTypes`, e.g. in
the case it has the notion of primary/preferred key.
*/
alias KeyTypes = AliasSeq!T;
/**
If the container has a notion of key-value mapping, `ValueType`
defines the type of the value of the container. Typically, a map-style
container mapping values of type `K` to values of type `V`
defines `KeyType` to be `K` and `ValueType` to be `V`.
*/
alias ValueType = T;
/**
Defines the container's primary range, which embodies one of the
ranges defined in $(MREF std,range).
Generally a container may define several types of ranges.
*/
struct Range
{
/++
Range primitives.
+/
@property bool empty()
{
assert(0);
}
/// Ditto
@property ref T front() //ref return optional
{
assert(0);
}
/// Ditto
@property void front(T value) //Only when front does not return by ref
{
assert(0);
}
/// Ditto
T moveFront()
{
assert(0);
}
/// Ditto
void popFront()
{
assert(0);
}
/// Ditto
@property ref T back() //ref return optional
{
assert(0);
}
/// Ditto
@property void back(T value) //Only when front does not return by ref
{
assert(0);
}
/// Ditto
T moveBack()
{
assert(0);
}
/// Ditto
void popBack()
{
assert(0);
}
/// Ditto
T opIndex(size_t i) //ref return optional
{
assert(0);
}
/// Ditto
void opIndexAssign(size_t i, T value) //Only when front does not return by ref
{
assert(0);
}
/// Ditto
T opIndexUnary(string op)(size_t i) //Only when front does not return by ref
{
assert(0);
}
/// Ditto
void opIndexOpAssign(string op)(size_t i, T value) //Only when front does not return by ref
{
assert(0);
}
/// Ditto
T moveAt(size_t i)
{
assert(0);
}
/// Ditto
@property size_t length()
{
assert(0);
}
}
/**
Property returning `true` if and only if the container has no
elements.
Complexity: $(BIGOH 1)
*/
@property bool empty()
{
assert(0);
}
/**
Returns a duplicate of the container. The elements themselves are not
transitively duplicated.
Complexity: $(BIGOH n).
*/
@property TotalContainer dup()
{
assert(0);
}
/**
Returns the number of elements in the container.
Complexity: $(BIGOH log(n)).
*/
@property size_t length()
{
assert(0);
}
/**
Returns the maximum number of elements the container can store without
(a) allocating memory, (b) invalidating iterators upon insertion.
Complexity: $(BIGOH log(n)).
*/
@property size_t capacity()
{
assert(0);
}
/**
Ensures sufficient capacity to accommodate `n` elements.
Postcondition: $(D capacity >= n)
Complexity: $(BIGOH log(e - capacity)) if $(D e > capacity), otherwise
$(BIGOH 1).
*/
void reserve(size_t e)
{
assert(0);
}
/**
Returns a range that iterates over all elements of the container, in a
container-defined order. The container should choose the most
convenient and fast method of iteration for `opSlice()`.
Complexity: $(BIGOH log(n))
*/
Range opSlice()
{
assert(0);
}
/**
Returns a range that iterates the container between two
specified positions.
Complexity: $(BIGOH log(n))
*/
Range opSlice(size_t a, size_t b)
{
assert(0);
}
/**
Forward to `opSlice().front` and `opSlice().back`, respectively.
Complexity: $(BIGOH log(n))
*/
@property ref T front() //ref return optional
{
assert(0);
}
/// Ditto
@property void front(T value) //Only when front does not return by ref
{
assert(0);
}
/// Ditto
T moveFront()
{
assert(0);
}
/// Ditto
@property ref T back() //ref return optional
{
assert(0);
}
/// Ditto
@property void back(T value) //Only when front does not return by ref
{
assert(0);
}
/// Ditto
T moveBack()
{
assert(0);
}
/**
Indexing operators yield or modify the value at a specified index.
*/
ref T opIndex(KeyType) //ref return optional
{
assert(0);
}
/// ditto
void opIndexAssign(KeyType i, T value) //Only when front does not return by ref
{
assert(0);
}
/// ditto
T opIndexUnary(string op)(KeyType i) //Only when front does not return by ref
{
assert(0);
}
/// ditto
void opIndexOpAssign(string op)(KeyType i, T value) //Only when front does not return by ref
{
assert(0);
}
/// ditto
T moveAt(KeyType i)
{
assert(0);
}
/**
$(D k in container) returns true if the given key is in the container.
*/
bool opBinaryRight(string op)(KeyType k) if (op == "in")
{
assert(0);
}
/**
Returns a range of all elements containing `k` (could be empty or a
singleton range).
*/
Range equalRange(KeyType k)
{
assert(0);
}
/**
Returns a range of all elements with keys less than `k` (could be
empty or a singleton range). Only defined by containers that store
data sorted at all times.
*/
Range lowerBound(KeyType k)
{
assert(0);
}
/**
Returns a range of all elements with keys larger than `k` (could be
empty or a singleton range). Only defined by containers that store
data sorted at all times.
*/
Range upperBound(KeyType k)
{
assert(0);
}
/**
Returns a new container that's the concatenation of `this` and its
argument. `opBinaryRight` is only defined if `Stuff` does not
define `opBinary`.
Complexity: $(BIGOH n + m), where m is the number of elements in $(D
stuff)
*/
TotalContainer opBinary(string op)(Stuff rhs) if (op == "~")
{
assert(0);
}
/// ditto
TotalContainer opBinaryRight(string op)(Stuff lhs) if (op == "~")
{
assert(0);
}
/**
Forwards to $(D insertAfter(this[], stuff)).
*/
void opOpAssign(string op)(Stuff stuff) if (op == "~")
{
assert(0);
}
/**
Removes all contents from the container. The container decides how $(D
capacity) is affected.
Postcondition: `empty`
Complexity: $(BIGOH n)
*/
void clear()
{
assert(0);
}
/**
Sets the number of elements in the container to `newSize`. If $(D
newSize) is greater than `length`, the added elements are added to
unspecified positions in the container and initialized with $(D
.init).
Complexity: $(BIGOH abs(n - newLength))
Postcondition: $(D _length == newLength)
*/
@property void length(size_t newLength)
{
assert(0);
}
/**
Inserts `stuff` in an unspecified position in the
container. Implementations should choose whichever insertion means is
the most advantageous for the container, but document the exact
behavior. `stuff` can be a value convertible to the element type of
the container, or a range of values convertible to it.
The `stable` version guarantees that ranges iterating over the
container are never invalidated. Client code that counts on
non-invalidating insertion should use `stableInsert`. Such code would
not compile against containers that don't support it.
Returns: The number of elements added.
Complexity: $(BIGOH m * log(n)), where `m` is the number of
elements in `stuff`
*/
size_t insert(Stuff)(Stuff stuff)
{
assert(0);
}
///ditto
size_t stableInsert(Stuff)(Stuff stuff)
{
assert(0);
}
/**
Same as `insert(stuff)` and `stableInsert(stuff)` respectively,
but relax the complexity constraint to linear.
*/
size_t linearInsert(Stuff)(Stuff stuff)
{
assert(0);
}
///ditto
size_t stableLinearInsert(Stuff)(Stuff stuff)
{
assert(0);
}
/**
Picks one value in an unspecified position in the container, removes
it from the container, and returns it. Implementations should pick the
value that's the most advantageous for the container. The stable version
behaves the same, but guarantees that ranges iterating over the container
are never invalidated.
Precondition: `!empty`
Returns: The element removed.
Complexity: $(BIGOH log(n)).
*/
T removeAny()
{
assert(0);
}
/// ditto
T stableRemoveAny()
{
assert(0);
}
/**
Inserts `value` to the front or back of the container. `stuff`
can be a value convertible to the container's element type or a range
of values convertible to it. The stable version behaves the same, but
guarantees that ranges iterating over the container are never
invalidated.
Returns: The number of elements inserted
Complexity: $(BIGOH log(n)).
*/
size_t insertFront(Stuff)(Stuff stuff)
{
assert(0);
}
/// ditto
size_t stableInsertFront(Stuff)(Stuff stuff)
{
assert(0);
}
/// ditto
size_t insertBack(Stuff)(Stuff stuff)
{
assert(0);
}
/// ditto
size_t stableInsertBack(T value)
{
assert(0);
}
/**
Removes the value at the front or back of the container. The stable
version behaves the same, but guarantees that ranges iterating over
the container are never invalidated. The optional parameter $(D
howMany) instructs removal of that many elements. If $(D howMany > n),
all elements are removed and no exception is thrown.
Precondition: `!empty`
Complexity: $(BIGOH log(n)).
*/
void removeFront()
{
assert(0);
}
/// ditto
void stableRemoveFront()
{
assert(0);
}
/// ditto
void removeBack()
{
assert(0);
}
/// ditto
void stableRemoveBack()
{
assert(0);
}
/**
Removes `howMany` values at the front or back of the
container. Unlike the unparameterized versions above, these functions
do not throw if they could not remove `howMany` elements. Instead,
if $(D howMany > n), all elements are removed. The returned value is
the effective number of elements removed. The stable version behaves
the same, but guarantees that ranges iterating over the container are
never invalidated.
Returns: The number of elements removed
Complexity: $(BIGOH howMany * log(n)).
*/
size_t removeFront(size_t howMany)
{
assert(0);
}
/// ditto
size_t stableRemoveFront(size_t howMany)
{
assert(0);
}
/// ditto
size_t removeBack(size_t howMany)
{
assert(0);
}
/// ditto
size_t stableRemoveBack(size_t howMany)
{
assert(0);
}
/**
Removes all values corresponding to key `k`.
Complexity: $(BIGOH m * log(n)), where `m` is the number of
elements with the same key.
Returns: The number of elements removed.
*/
size_t removeKey(KeyType k)
{
assert(0);
}
/**
Inserts `stuff` before, after, or instead range `r`, which must
be a valid range previously extracted from this container. `stuff`
can be a value convertible to the container's element type or a range
of objects convertible to it. The stable version behaves the same, but
guarantees that ranges iterating over the container are never
invalidated.
Returns: The number of values inserted.
Complexity: $(BIGOH n + m), where `m` is the length of `stuff`
*/
size_t insertBefore(Stuff)(Range r, Stuff stuff)
{
assert(0);
}
/// ditto
size_t stableInsertBefore(Stuff)(Range r, Stuff stuff)
{
assert(0);
}
/// ditto
size_t insertAfter(Stuff)(Range r, Stuff stuff)
{
assert(0);
}
/// ditto
size_t stableInsertAfter(Stuff)(Range r, Stuff stuff)
{
assert(0);
}
/// ditto
size_t replace(Stuff)(Range r, Stuff stuff)
{
assert(0);
}
/// ditto
size_t stableReplace(Stuff)(Range r, Stuff stuff)
{
assert(0);
}
/**
Removes all elements belonging to `r`, which must be a range
obtained originally from this container. The stable version behaves the
same, but guarantees that ranges iterating over the container are
never invalidated.
Returns: A range spanning the remaining elements in the container that
initially were right after `r`.
Complexity: $(BIGOH m * log(n)), where `m` is the number of
elements in `r`
*/
Range remove(Range r)
{
assert(0);
}
/// ditto
Range stableRemove(Range r)
{
assert(0);
}
/**
Same as `remove` above, but has complexity relaxed to linear.
Returns: A range spanning the remaining elements in the container that
initially were right after `r`.
Complexity: $(BIGOH n)
*/
Range linearRemove(Range r)
{
assert(0);
}
/// ditto
Range stableLinearRemove(Range r)
{
assert(0);
}
}
@safe unittest
{
TotalContainer!int test;
}
|
D
|
module rml;
import std.stdio;
import std.uni;
import std.conv;
import std.path;
import std.file;
import token;
import bindmap;
import evalstack;
import strtool;
import nativelib.init;
import oplib.init;
void main(string[] args) {
BindMap libCtx = new BindMap();
initNative(libCtx);
initOp(libCtx);
BindMap userCtx = new BindMap();
userCtx.father = libCtx;
EvalStack evalStack = new EvalStack();
evalStack.libCtx = libCtx;
evalStack.mainCtx = userCtx;
if(args.length > 1){
string scriptPath = absolutePath(args[1], dirName(args[0]));
if(exists(scriptPath)){
try{
string scriptText = readText(scriptPath);
// writeln(scriptText);
evalStack.init();
Token answer = evalStack.eval(scriptText, userCtx);
if(answer && answer.type != TypeEnum.nil){
writeln("== ", answer.toStr(), "\n");
}else{
writeln("");
}
}catch(Exception e){
writeln("读取文件失败!");
}
}else{
writeln("系统找不到指定的文件!");
}
}
char[] inp;
while(true){
write(">> ");
char[] temp;
stdin.readln(temp);
inp ~= temp;
if(inp.length >= 2 && inp[inp.length-2] == '~'){
inp.length = inp.length - 2;
continue;
}
string inpStr = trim(toLower(text(inp)));
if(inpStr == ""){
continue;
}
evalStack.init();
Token answer = evalStack.eval(inpStr, userCtx);
if(answer && answer.type != TypeEnum.nil){
writeln("== ", answer.toStr(), "\n");
}else{
writeln("");
}
inp.length = 0;
}
}
|
D
|
func void B_AssignAmbientInfos(var C_Npc slf)
{
if(slf.guild == GIL_VLK)
{
if(slf.npcType == NPCTYPE_AMBIENT)
{
if(slf.voice == 1)
{
B_AssignAmbientInfos_VLK_1(slf);
};
if(slf.voice == 6)
{
B_AssignAmbientInfos_VLK_6(slf);
};
if(slf.voice == 8)
{
B_AssignAmbientInfos_VLK_8(slf);
};
if(slf.voice == 16)
{
B_AssignAmbientInfos_VLK_16(slf);
};
if(slf.voice == 17)
{
B_AssignAmbientInfos_VLK_17(slf);
};
};
};
if(slf.guild == GIL_MIL)
{
if(slf.npcType == NPCTYPE_AMBIENT)
{
if(slf.voice == 6)
{
B_AssignAmbientInfos_MIL_6(slf);
};
if(slf.voice == 7)
{
B_AssignAmbientInfos_MIL_7(slf);
};
};
if(slf.npcType == NPCTYPE_OCAMBIENT)
{
if(slf.voice == 1)
{
B_AssignAmbientInfos_OCVLK_1(slf);
};
if(slf.voice == 6)
{
B_AssignAmbientInfos_OCVLK_6(slf);
};
};
};
if(slf.guild == GIL_PAL)
{
if(slf.npcType == NPCTYPE_AMBIENT)
{
if(slf.voice == 4)
{
B_AssignAmbientInfos_PAL_4(slf);
};
if(slf.voice == 9)
{
B_AssignAmbientInfos_PAL_9(slf);
};
if(slf.voice == 12)
{
B_AssignAmbientInfos_PAL_12(slf);
};
};
if(slf.npcType == NPCTYPE_OCAMBIENT)
{
if(slf.voice == 4)
{
B_AssignAmbientInfos_OCPAL_4(slf);
};
if(slf.voice == 9)
{
B_AssignAmbientInfos_OCPAL_9(slf);
};
};
};
if(slf.guild == GIL_BAU)
{
if(slf.npcType == NPCTYPE_AMBIENT)
{
if(slf.voice == 1)
{
B_AssignAmbientInfos_BAU_1(slf);
};
if(slf.voice == 7)
{
B_AssignAmbientInfos_BAU_7(slf);
};
if(slf.voice == 13)
{
B_AssignAmbientInfos_BAU_13(slf);
};
if(slf.voice == 16)
{
B_AssignAmbientInfos_BAU_16(slf);
};
};
};
if(slf.guild == GIL_SLD)
{
if(slf.npcType == NPCTYPE_AMBIENT)
{
if(slf.voice == 6)
{
B_AssignAmbientInfos_SLD_6(slf);
};
if(slf.voice == 7)
{
B_AssignAmbientInfos_SLD_7(slf);
};
};
};
if(slf.guild == GIL_NOV)
{
if(slf.npcType == NPCTYPE_AMBIENT)
{
if(slf.voice == 3)
{
B_AssignAmbientInfos_NOV_3(slf);
};
if(slf.voice == 8)
{
B_AssignAmbientInfos_NOV_8(slf);
};
};
};
if(slf.guild == GIL_PIR)
{
if(slf.npcType == NPCTYPE_AMBIENT)
{
if(slf.voice == 6)
{
B_AssignAmbientInfos_Addon_PIR_6(slf);
};
if(slf.voice == 7)
{
B_AssignAmbientInfos_Addon_PIR_7(slf);
};
};
};
if(slf.guild == GIL_OUT)
{
if(slf.npcType == NPCTYPE_AMBIENT)
{
if(slf.voice == 1)
{
B_AssignAmbientInfos_OUT_1(slf);
};
if(slf.voice == 7)
{
B_AssignAmbientInfos_OUT_7(slf);
};
if(slf.voice == 13)
{
B_AssignAmbientInfos_OUT_13(slf);
};
};
if(slf.npcType == NPCTYPE_OCAMBIENT)
{
if(slf.voice == 4)
{
B_AssignAmbientInfos_OWPAL_4(slf);
};
};
};
if(slf.guild == GIL_STRF)
{
if((slf.npcType == NPCTYPE_AMBIENT) || (slf.npcType == NPCTYPE_OCAMBIENT))
{
if(slf.voice == 1)
{
B_AssignAmbientInfos_STRF_1(slf);
};
if(slf.voice == 13)
{
B_AssignAmbientInfos_STRF_13(slf);
};
};
if(slf.npcType == NPCTYPE_BL_AMBIENT)
{
B_AssignAmbientInfos_Addon_Sklaven_3(slf);
};
};
if(slf.guild == GIL_BDT)
{
if((slf.npcType == NPCTYPE_AMBIENT) || (slf.npcType == NPCTYPE_OCAMBIENT))
{
if(slf.voice == 1)
{
B_AssignAmbientInfos_BDT_1(slf);
};
if(slf.voice == 13)
{
B_AssignAmbientInfos_BDT_13(slf);
};
};
if(slf.npcType == NPCTYPE_BL_AMBIENT)
{
if(slf.voice == 1)
{
B_AssignAmbientInfos_Addon_BL_BDT_1(slf);
};
if(slf.voice == 13)
{
B_AssignAmbientInfos_Addon_BL_BDT_13(slf);
};
};
if(slf.npcType == NPCTYPE_TAL_AMBIENT)
{
if(slf.voice == 1)
{
B_AssignAmbientInfos_Addon_TAL_BDT_1(slf);
};
if(slf.voice == 13)
{
B_AssignAmbientInfos_Addon_TAL_BDT_13(slf);
};
};
};
if(slf.guild == GIL_DMT)
{
if((slf.npcType == NPCTYPE_AMBIENT) || (slf.npcType == NPCTYPE_OCAMBIENT))
{
if(slf.voice == 19)
{
B_AssignDementorTalk(slf);
};
};
};
};
|
D
|
//Org: http://stackoverflow.com/questions/10923246/c-xna-giant-memory-leak/10924720#10924720 by Andrew Russell Date: 7.6.2012
import std.stdio;
// 11 characters will fit -4294967296
char[11] numberBuffer;
void main() {
writeln(appendNumber("Number: ".dup, -1024));
}
/// <summary>Append an integer without generating any garbage.</summary>
char[] appendNumber(char[] sb, int number)
{
bool negative = (number < 0);
if(negative)
number = -number;
int i = numberBuffer.length;
do
{
numberBuffer[--i] = cast(char)('0' + (number % 10));
number /= 10;
} while(number > 0);
if(negative)
numberBuffer[--i] = '-';
return sb ~ numberBuffer;
}
|
D
|
/Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Console.build/Utilities/Exports.swift.o : /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ANSI.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Deprecated.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleStyle.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Choose.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorState.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Ask.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Ephemeral.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Confirm.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/LoadingBar.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ProgressBar.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityBar.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Clear.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/ConsoleClear.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleLogger.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Center.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleColor.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleError.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicator.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/Exports.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Wait.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleTextFragment.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Input.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Output.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Console.build/Exports~partial.swiftmodule : /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ANSI.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Deprecated.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleStyle.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Choose.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorState.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Ask.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Ephemeral.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Confirm.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/LoadingBar.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ProgressBar.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityBar.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Clear.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/ConsoleClear.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleLogger.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Center.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleColor.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleError.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicator.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/Exports.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Wait.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleTextFragment.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Input.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Output.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Console.build/Exports~partial.swiftdoc : /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ANSI.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Deprecated.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleStyle.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Choose.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorState.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Ask.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Ephemeral.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Confirm.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/LoadingBar.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ProgressBar.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityBar.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Clear.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/ConsoleClear.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleLogger.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Center.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleColor.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleError.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicator.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/Exports.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Wait.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleTextFragment.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Input.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Output.swift /Users/work/Projects/Hello/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
import std.stdio;
import std.string;
import std.file;
const string BASE_PATH = "data";
const string META_FILE_NAME = "meta.ckt";
const string SCHEMA_EXTENSION = "schema";
const string RECORD_EXTENSION = "record";
const string INDEX_EXTENSION = "index";
File load_file(string filename) {
_init();
string path = format("%s/%s", BASE_PATH, filename);
if (!exists(path)) {
std.file.write(path, "");
}
return File(path, "rb");
}
File create_file(string filename) {
_init();
string path = format("%s/%s", BASE_PATH, filename);
return File(path, "ab+");
}
int delete_file(string filename) {
_init();
try {
string path = format("%s/%s", BASE_PATH, filename);
remove(path);
} catch (FileException e) {
return -1;
}
return 0;
}
File _edit_file(string filename) {
_init();
string path = format("%s/%s", BASE_PATH, filename);
if (!exists(path)) {
std.file.write(path, "");
}
return File(path, "w+");
}
File append_file(string filename) {
_init();
string path = format("%s/%s", BASE_PATH, filename);
if (!exists(path)) {
std.file.write(path, "");
}
return File(path, "a+");
}
void _init() {
if (!exists(BASE_PATH)) {
mkdir(BASE_PATH);
}
}
|
D
|
/**
* CPU abstraction
*
* Copyright: 2008 The Neptune Project
*/
module util.arch.cpu;
import util.arch.apic;
import util.arch.gdt;
import util.arch.idt;
import util.arch.tss;
import util.arch.descriptor;
import util.arch.paging;
// Assume a 1000MHz CPU Bus for now
const uint CPU_BUS_SPEED = 1000000000;
template registerProperty(char[] name)
{
const char[] registerProperty = "public static size_t " ~ name ~ "() {
size_t value;
asm
{
\"mov %%" ~ name ~ ", %[value]\" : [value] \"=a\" value;
}
return value;
}
public static void " ~ name ~ "(size_t value) {
asm
{
\"mov %[value], %%" ~ name ~ "\" : : [value] \"a\" value;
}
}";
}
struct CPU
{
public static APIC* apic;
public static GDT gdt;
public static IDT idt;
public static TSS tss;
public static void halt()
{
asm{ "hlt"; }
}
public static ulong readMsr(uint msr)
{
uint hi;
uint lo;
asm
{
"rdmsr" : "=d" hi, "=a" lo : "c" msr;
}
ulong data = hi;
data = data<<32;
data |= lo;
return data;
}
public static void writeMsr(uint msr, ulong data)
{
uint hi = cast(uint)(data>>32);
uint lo = cast(uint)(data & 0xFFFFFFFF);
asm
{
"wrmsr" : : "d" hi, "a" lo, "c" msr;
}
}
public static void enableInterrupts()
{
asm{"sti";}
}
public static void disableInterrupts()
{
asm{"cli";}
}
public static void pagetable(PageTable* p)
{
cr3 = vtop(p);
}
public static PageTable* pagetable()
{
return cast(PageTable*)ptov(cr3);
}
version(x86_64)
{
mixin(registerProperty!("rsp"));
mixin(registerProperty!("rbp"));
mixin(registerProperty!("rax"));
mixin(registerProperty!("rbx"));
mixin(registerProperty!("rcx"));
mixin(registerProperty!("rdx"));
mixin(registerProperty!("rdi"));
mixin(registerProperty!("rsi"));
mixin(registerProperty!("r8"));
mixin(registerProperty!("r9"));
mixin(registerProperty!("r10"));
mixin(registerProperty!("r11"));
mixin(registerProperty!("r12"));
mixin(registerProperty!("r13"));
mixin(registerProperty!("r14"));
mixin(registerProperty!("r15"));
}
else version(i586)
{
public static void enablePAE()
{
cr4 = cr4 | 0x20;
}
public static void enableWP()
{
cr0 = cr0 | 0x10000;
}
public static void enableLongMode()
{
writeMsr(MSR_EFER, readMsr(MSR_EFER) | 0x100);
}
public static void enablePaging()
{
cr0 = cr0 | 0x80000000;
}
mixin(registerProperty!("esp"));
mixin(registerProperty!("ebp"));
mixin(registerProperty!("eax"));
mixin(registerProperty!("ebx"));
mixin(registerProperty!("ecx"));
mixin(registerProperty!("edx"));
mixin(registerProperty!("edi"));
mixin(registerProperty!("esi"));
}
mixin(registerProperty!("cr0"));
mixin(registerProperty!("cr1"));
mixin(registerProperty!("cr2"));
mixin(registerProperty!("cr3"));
mixin(registerProperty!("cr4"));
mixin(registerProperty!("ss"));
}
const uint MSR_TSC = 0x0010; // Time-Stamp Counter
const uint MSR_APIC_BASE = 0x001B; // Base address of the Local APIC
const uint MSR_MTRR_CAP = 0x00FE; // Memory typing cap
// TODO: add MTRR registers 0x0200 through 0x02FF
const uint MSR_SYSENTER_CS = 0x0174; // Sysenter code segment selector
const uint MSR_SYSENTER_ESP = 0x0175; // Sysenter stack pointer
const uint MSR_SYSENTER_EIP = 0x0176; // Sysenter instruction pointer
const uint MSR_MCG_CAP = 0x0179; // Machine check cap
const uint MSR_MCG_STATUS = 0x017A; // Machine check status
const uint MSR_MCG_CTL = 0x017B; // Machine check control
// Machine check control registers
const uint MSR_MC0_CTL = 0x0400;
const uint MSR_MC1_CTL = 0x0404;
const uint MSR_MC2_CTL = 0x0408;
const uint MSR_MC3_CTL = 0x040C;
const uint MSR_MC4_CTL = 0x0410;
const uint MSR_MC5_CTL = 0x0414;
// Machine check status registers
const uint MSR_MC0_STATUS = 0x0401;
const uint MSR_MC1_STATUS = 0x0405;
const uint MSR_MC2_STATUS = 0x0409;
const uint MSR_MC3_STATUS = 0x040D;
const uint MSR_MC4_STATUS = 0x0411;
const uint MSR_MC5_STATUS = 0x0415;
// Machine check address registers
const uint MSR_MC0_ADDR = 0x0402;
const uint MSR_MC1_ADDR = 0x0406;
const uint MSR_MC2_ADDR = 0x040A;
const uint MSR_MC3_ADDR = 0x040E;
const uint MSR_MC4_ADDR = 0x0412;
const uint MSR_MC5_ADDR = 0x0416;
// Machine check error information registers
const uint MSR_MC0_MISC = 0x0403;
const uint MSR_MC1_MISC = 0x0407;
const uint MSR_MC2_MISC = 0x040B;
const uint MSR_MC3_MISC = 0x040F;
const uint MSR_MC4_MISC = 0x0413;
const uint MSR_MC5_MISC = 0x0417;
// Software Debug registers
const uint MSR_DEBUG_CTL = 0x01D9;
const uint MSR_LAST_BRANCH_FROM_IP = 0x01DB;
const uint MSR_LAST_BRANCH_TO_IP = 0x01DC;
const uint MSR_LAST_EXCEPTION_FROM_IP = 0x01DD;
const uint MSR_LAST_EXCEPTION_TO_IP = 0x01DE;
// Extended features
const uint MSR_EFER = 0xC0000080;
// Syscall MSRs
const uint MSR_STAR = 0xC0000081; // Syscall legacy cs, ss, and stack register
const uint MSR_LSTAR = 0xC0000082; // Syscall long mode instruction pointer
const uint MSR_CSTAR = 0xC0000083; // Syscall legacy instruction pointer
const uint MSR_SF_MASK = 0xC0000084; // Syscall flags mask
|
D
|
/substrate-node-template/target/debug/build/rand_pcg-f01715b253ffb18b/build_script_build-f01715b253ffb18b: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_pcg-0.1.2/build.rs
/substrate-node-template/target/debug/build/rand_pcg-f01715b253ffb18b/build_script_build-f01715b253ffb18b.d: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_pcg-0.1.2/build.rs
/root/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_pcg-0.1.2/build.rs:
|
D
|
/**
Contains an implementation of stochastic gradient descent that relies on automatic differentiation
Authors: Henry Gouk
*/
module dopt.online.sgd;
import dopt.core;
import dopt.online;
/**
Creates a delegate that can be used to perform a step using the stochastic gradient descent update rule.
This function relies on automatic differentiation, so the objective (which must have a volume of 1) must be
differentiable w.r.t. all elements of wrt. The returned delegate performs minimisation.
Params:
objective = Operation representing the loss function to be minimised.
wrt = an array of Operations that we want the derivative of objective with respect to.
learningRate = the value used to scale the size of the gradient used in the update rule
momentumRate = scaling factor for the previous update
Returns:
A delegate that is used to actually perform the update steps. The optimised values are stored in the "default"
attributes of the elements of wrt.
*/
Updater sgd(Operation[] outputs, Operation[] wrt, Projection[Operation] projs,
Operation learningRate = float32([], [0.01f]), Operation momentumRate = float32([], [0.0f]))
{
import std.algorithm : map;
import std.array : array;
import std.range : zip;
auto objective = outputs[0];
auto grads = grad(objective, wrt);
auto momentum = grads
.map!(x => float32(x.shape))
.array();
auto newMomentum = zip(grads, momentum)
.map!(x => x[1] * momentumRate + learningRate * x[0])
.array();
auto newvals = zip(wrt, newMomentum)
.map!(x => x[0] - x[1])
.array();
//Apply projections
for(size_t i = 0; i < newvals.length; i++)
{
if(wrt[i] in projs)
{
newvals[i] = projs[wrt[i]](newvals[i]);
}
}
auto updatePlan = compile(outputs ~ newvals ~ newMomentum);
import std.range : chain;
auto newbufs = chain(wrt, momentum)
.map!(x => x.value)
.array();
newbufs = outputs.map!(x => Buffer(new ubyte[x.volume * x.elementType.sizeOf])).array() ~ newbufs;
Buffer[] update(Buffer[Operation] args)
{
updatePlan.execute(args, newbufs);
return newbufs[0 .. outputs.length];
}
return &update;
}
///
unittest
{
import std.random : uniform;
//Generate some points
auto xdata = new float[100];
auto ydata = new float[100];
foreach(i; 0 .. 100)
{
xdata[i] = uniform(-10.0f, 10.0f);
ydata[i] = 3.0f * xdata[i] + 2.0f;
}
//Create the model
auto x = float32([]);
auto m = float32([]);
auto c = float32([]);
auto yhat = m * x + c;
auto y = float32([]);
//Create an SGD updater
auto updater = sgd([(yhat - y) * (yhat - y)], [m, c], null, float32([], [0.001f]), float32([], [0.9f]));
//Iterate for a while
float loss;
for(size_t i = 0; i < 300; i++)
{
size_t j = i % 100;
loss = updater([
x: Buffer(xdata[j .. j + 1]),
y: Buffer(ydata[j .. j + 1])
])[0].as!float[0];
}
//Print the loss after 500 iterations. Let the user decide whether it's good enough to be considered a pass.
import std.stdio : writeln;
writeln(
"SGD loss: ", loss, " ",
"m=", m.value.as!float[0], ", ",
"c=", c.value.as!float[0], " ",
"(expected m=3, c=2)");
}
|
D
|
// Copyright Michael D. Parker 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module bindbc.freetype.bind.fttrigon;
import bindbc.freetype.bind.ftimage,
bindbc.freetype.bind.fttypes;
alias FT_Angle = FT_Fixed;
enum {
FT_ANGLE_PI = 180 << 16,
FT_ANGLE_2PI = FT_ANGLE_PI * 2,
FT_ANGLE_PI2 = FT_ANGLE_PI / 2,
FT_ANGLE_PI4 = FT_ANGLE_PI / 4
}
version(BindFT_Static) {
extern(C) @nogc nothrow {
FT_Fixed FT_Sin(FT_Angle);
FT_Fixed FT_Cos(FT_Angle);
FT_Fixed FT_Tan(FT_Angle);
FT_Angle FT_Atan2(FT_Fixed,FT_Fixed);
FT_Angle FT_Angle_Diff(FT_Angle,FT_Angle);
void FT_Vector_Unit(FT_Vector*,FT_Angle);
void FT_Vector_Rotate(FT_Vector*,FT_Angle);
FT_Fixed FT_Vector_Length(FT_Vector*);
void FT_Vector_Polarize(FT_Vector*,FT_Fixed*,FT_Angle*);
void FT_Vector_From_Polar(FT_Vector*,FT_Fixed,FT_Angle);
}
}
else {
extern(C) @nogc nothrow {
alias pFT_Sin = FT_Fixed function(FT_Angle);
alias pFT_Cos = FT_Fixed function(FT_Angle);
alias pFT_Tan = FT_Fixed function(FT_Angle);
alias pFT_Atan2 = FT_Angle function(FT_Fixed,FT_Fixed);
alias pFT_Angle_Diff = FT_Angle function(FT_Angle,FT_Angle);
alias pFT_Vector_Unit = void function(FT_Vector*,FT_Angle);
alias pFT_Vector_Rotate = void function(FT_Vector*,FT_Angle);
alias pFT_Vector_Length = FT_Fixed function(FT_Vector*);
alias pFT_Vector_Polarize = void function(FT_Vector*,FT_Fixed*,FT_Angle*);
alias pFT_Vector_From_Polar = void function(FT_Vector*,FT_Fixed,FT_Angle);
}
__gshared {
pFT_Sin FT_Sin;
pFT_Cos FT_Cos;
pFT_Tan FT_Tan;
pFT_Atan2 FT_Atan2;
pFT_Angle_Diff FT_Angle_Diff;
pFT_Vector_Unit FT_Vector_Unit;
pFT_Vector_Rotate FT_Vector_Rotate;
pFT_Vector_Length FT_Vector_Length;
pFT_Vector_Polarize FT_Vector_Polarize;
pFT_Vector_From_Polar FT_Vector_From_Polar;
}
}
|
D
|
// { dg-do compile }
module asm1;
void parse1()
{
asm
{
""h; // { dg-error "found 'h' when expecting ':'" }
}
}
void parse2()
{
asm
{
"" : : "g" (1 ? 2 : 3);
"" : : "g" (1 ? 2 : :) 3;
// { dg-error "expression expected, not ':'" "" { target *-*-* } .-1 }
// { dg-error "expected constant string constraint for operand" "" { target *-*-* } .-2 }
}
}
void parse3()
{
asm { "" [; }
// { dg-error "expression expected, not ';'" "" { target *-*-* } .-1 }
// { dg-error "found 'End of File' when expecting ','" "" { target *-*-* } .-2 }
// { dg-error "found 'End of File' when expecting ']'" "" { target *-*-* } .-3 }
// { dg-error "found 'End of File' when expecting ';'" "" { target *-*-* } .-4 }
}
void parse4()
{
int expr;
asm
{
"%name" : [name] string (expr); // { dg-error "expected constant string constraint for operand, not 'string'" }
}
}
void semantic1()
{
{
int one;
L1:
;
}
asm { "" : : : : L1, L2; }
// { dg-error "'goto' skips declaration of variable 'asm1.semantic1.one'" "" { target *-*-* } .-1 }
// { dg-error "'goto' skips declaration of variable 'asm1.semantic1.two'" "" { target *-*-* } .-2 }
{
int two;
L2:
;
}
}
void semantic2a(X...)(X expr)
{
alias X[0] var1;
asm { "%0" : "=m" (var1); } // { dg-error "double' is a 'double' definition and cannot be modified" }
}
void semantic2()
{
semantic2a(3.6); // { dg-error "template instance 'asm1.semantic2a!double' error instantiating" }
}
void semantic3()
{
asm
{
unknown; // { dg-error "undefined identifier 'unknown'" }
}
}
struct S4
{
template opDispatch(string Name, P...)
{
static void opDispatch(P) {}
}
}
void semantic4()
{
asm
{
"%0" : : "m" (S4.foo); // { dg-error "template instance 'opDispatch!\"foo\"' has no value" }
}
}
|
D
|
module juno.base.all;
public import juno.base.core,
juno.base.string,
juno.base.collections,
juno.base.text,
juno.base.math,
juno.base.environment,
juno.base.threading,
juno.base.time,
juno.base.events;
public import juno.locale.constants,
juno.locale.core,
juno.locale.time,
juno.locale.numeric,
juno.locale.convert;
public import juno.io.core,
juno.io.path,
juno.io.filesystem,
juno.io.zip;
|
D
|
/**
Pattern based URL router for HTTP request.
See `URLRouter` for more details.
Copyright: © 2012-2015 Sönke Ludwig
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module vibe.http.router;
public import vibe.http.server;
import vibe.core.log;
import std.functional;
/**
Routes HTTP requests based on the request method and URL.
Routes are matched using a special URL match string that supports two forms
of placeholders. See the sections below for more details.
Registered routes are matched according to the same sequence as initially
specified using `match`, `get`, `post` etc. Matching ends as soon as a route
handler writes a response using `res.writeBody()` or similar means. If no
route matches or if no route handler writes a response, the router will
simply not handle the request and the HTTP server will automatically
generate a 404 error.
Match_patterns:
Match patterns are character sequences that can optionally contain
placeholders or raw wildcards ("*"). Raw wild cards match any character
sequence, while placeholders match only sequences containing no slash
("/") characters.
Placeholders are started using a colon (":") and are directly followed
by their name. The first "/" character (or the end of the match string)
denotes the end of the placeholder name. The part of the string that
matches a placeholder will be stored in the `HTTPServerRequest.params`
map using the placeholder name as the key.
Match strings are subject to the following rules:
$(UL
$(LI A raw wildcard ("*") may only occur at the end of the match string)
$(LI At least one character must be placed between any two placeholders or wildcards)
$(LI The maximum allowed number of placeholders in a single match string is 64)
)
Match_String_Examples:
$(UL
$(LI `"/foo/bar"` matches only `"/foo/bar"` itself)
$(LI `"/foo/*"` matches `"/foo/"`, `"/foo/bar"`, `"/foo/bar/baz"` or _any other string beginning with `"/foo/"`)
$(LI `"/:x/"` matches `"/foo/"`, `"/bar/"` and similar strings (and stores `"foo"`/`"bar"` in `req.params["x"]`), but not `"/foo/bar/"`)
$(LI Matching partial path entries with wildcards is possible: `"/foo:x"` matches `"/foo"`, `"/foobar"`, but not `"/foo/bar"`)
$(LI Multiple placeholders and raw wildcards can be combined: `"/:x/:y/*"`)
)
*/
final class URLRouter : HTTPServerRequestHandler {
@safe:
private {
MatchTree!Route m_routes;
string m_prefix;
bool m_computeBasePath;
}
this(string prefix = null)
{
m_prefix = prefix;
}
/** Sets a common prefix for all registered routes.
All routes will implicitly have this prefix prepended before being
matched against incoming requests.
*/
@property string prefix() const { return m_prefix; }
/** Controls the computation of the "routerRootDir" parameter.
This parameter is available as `req.params["routerRootDir"]` and
contains the relative path to the base path of the router. The base
path is determined by the `prefix` property.
Note that this feature currently is requires dynamic memory allocations
and is opt-in for this reason.
*/
@property void enableRootDir(bool enable) { m_computeBasePath = enable; }
/// Returns a single route handle to conveniently register multiple methods.
URLRoute route(string path)
in { assert(path.length, "Cannot register null or empty path!"); }
do { return URLRoute(this, path); }
///
unittest {
void getFoo(scope HTTPServerRequest req, scope HTTPServerResponse res) { /* ... */ }
void postFoo(scope HTTPServerRequest req, scope HTTPServerResponse res) { /* ... */ }
void deleteFoo(scope HTTPServerRequest req, scope HTTPServerResponse res) { /* ... */ }
auto r = new URLRouter;
// using 'with' statement
with (r.route("/foo")) {
get(&getFoo);
post(&postFoo);
delete_(&deleteFoo);
}
// using method chaining
r.route("/foo")
.get(&getFoo)
.post(&postFoo)
.delete_(&deleteFoo);
// without using route()
r.get("/foo", &getFoo);
r.post("/foo", &postFoo);
r.delete_("/foo", &deleteFoo);
}
/// Adds a new route for requests matching the specified HTTP method and pattern.
URLRouter match(Handler)(HTTPMethod method, string path, Handler handler)
if (isValidHandler!Handler)
{
import std.algorithm;
assert(path.length, "Cannot register null or empty path!");
assert(count(path, ':') <= maxRouteParameters, "Too many route parameters");
logDebug("add route %s %s", method, path);
m_routes.addTerminal(path, Route(method, path, handlerDelegate(handler)));
return this;
}
/// ditto
URLRouter match(HTTPMethod method, string path, HTTPServerRequestDelegate handler)
{
return match!HTTPServerRequestDelegate(method, path, handler);
}
/// Adds a new route for GET requests matching the specified pattern.
URLRouter get(Handler)(string url_match, Handler handler) if (isValidHandler!Handler) { return match(HTTPMethod.GET, url_match, handler); }
/// ditto
URLRouter get(string url_match, HTTPServerRequestDelegate handler) { return match(HTTPMethod.GET, url_match, handler); }
/// Adds a new route for POST requests matching the specified pattern.
URLRouter post(Handler)(string url_match, Handler handler) if (isValidHandler!Handler) { return match(HTTPMethod.POST, url_match, handler); }
/// ditto
URLRouter post(string url_match, HTTPServerRequestDelegate handler) { return match(HTTPMethod.POST, url_match, handler); }
/// Adds a new route for PUT requests matching the specified pattern.
URLRouter put(Handler)(string url_match, Handler handler) if (isValidHandler!Handler) { return match(HTTPMethod.PUT, url_match, handler); }
/// ditto
URLRouter put(string url_match, HTTPServerRequestDelegate handler) { return match(HTTPMethod.PUT, url_match, handler); }
/// Adds a new route for DELETE requests matching the specified pattern.
URLRouter delete_(Handler)(string url_match, Handler handler) if (isValidHandler!Handler) { return match(HTTPMethod.DELETE, url_match, handler); }
/// ditto
URLRouter delete_(string url_match, HTTPServerRequestDelegate handler) { return match(HTTPMethod.DELETE, url_match, handler); }
/// Adds a new route for PATCH requests matching the specified pattern.
URLRouter patch(Handler)(string url_match, Handler handler) if (isValidHandler!Handler) { return match(HTTPMethod.PATCH, url_match, handler); }
/// ditto
URLRouter patch(string url_match, HTTPServerRequestDelegate handler) { return match(HTTPMethod.PATCH, url_match, handler); }
/// Adds a new route for requests matching the specified pattern, regardless of their HTTP verb.
URLRouter any(Handler)(string url_match, Handler handler)
{
import std.traits;
static HTTPMethod[] all_methods = [EnumMembers!HTTPMethod];
foreach(immutable method; all_methods)
match(method, url_match, handler);
return this;
}
/// ditto
URLRouter any(string url_match, HTTPServerRequestDelegate handler) { return any!HTTPServerRequestDelegate(url_match, handler); }
/** Rebuilds the internal matching structures to account for newly added routes.
This should be used after a lot of routes have been added to the router, to
force eager computation of the match structures. The alternative is to
let the router lazily compute the structures when the first request happens,
which can delay this request.
*/
void rebuild()
{
m_routes.rebuildGraph();
}
/// Handles a HTTP request by dispatching it to the registered route handlers.
void handleRequest(HTTPServerRequest req, HTTPServerResponse res)
{
auto method = req.method;
string calcBasePath()
@safe {
import vibe.core.path : InetPath, relativeToWeb;
auto p = InetPath(prefix.length ? prefix : "/");
p.endsWithSlash = true;
return p.relativeToWeb(InetPath(req.path)).toString();
}
auto path = req.path;
if (path.length < m_prefix.length || path[0 .. m_prefix.length] != m_prefix) return;
path = path[m_prefix.length .. $];
while (true) {
bool done = m_routes.match(path, (ridx, scope values) @safe {
auto r = () @trusted { return &m_routes.getTerminalData(ridx); } ();
if (r.method != method) return false;
logDebugV("route match: %s -> %s %s %s", req.path, r.method, r.pattern, values);
foreach (i, v; values) req.params[m_routes.getTerminalVarNames(ridx)[i]] = v;
if (m_computeBasePath) req.params["routerRootDir"] = calcBasePath();
r.cb(req, res);
return res.headerWritten;
});
if (done) return;
if (method == HTTPMethod.HEAD) method = HTTPMethod.GET;
else break;
}
logDebug("no route match: %s %s", req.method, req.requestURL);
}
/// Returns all registered routes as const AA
const(Route)[] getAllRoutes()
{
auto routes = new Route[m_routes.terminalCount];
foreach (i, ref r; routes)
r = m_routes.getTerminalData(i);
return routes;
}
template isValidHandler(Handler) {
@system {
alias USDel = void delegate(HTTPServerRequest, HTTPServerResponse) @system;
alias USFun = void function(HTTPServerRequest, HTTPServerResponse) @system;
alias USDelS = void delegate(scope HTTPServerRequest, scope HTTPServerResponse) @system;
alias USFunS = void function(scope HTTPServerRequest, scope HTTPServerResponse) @system;
}
static if (
is(Handler : HTTPServerRequestDelegate) ||
is(Handler : HTTPServerRequestFunction) ||
is(Handler : HTTPServerRequestHandler) ||
is(Handler : HTTPServerRequestDelegateS) ||
is(Handler : HTTPServerRequestFunctionS) ||
is(Handler : HTTPServerRequestHandlerS)
)
{
enum isValidHandler = true;
} else static if (
is(Handler : USDel) || is(Handler : USFun) ||
is(Handler : USDelS) || is(Handler : USFunS)
)
{
enum isValidHandler = true;
} else {
enum isValidHandler = false;
}
}
static void delegate(HTTPServerRequest, HTTPServerResponse) @safe handlerDelegate(Handler)(Handler handler)
{
import std.traits : isFunctionPointer;
static if (isFunctionPointer!Handler) return handlerDelegate(() @trusted { return toDelegate(handler); } ());
else static if (is(Handler == class) || is(Handler == interface)) return &handler.handleRequest;
else static if (__traits(compiles, () @safe { handler(HTTPServerRequest.init, HTTPServerResponse.init); } ())) return handler;
else return (req, res) @trusted { handler(req, res); };
}
unittest {
static assert(isValidHandler!HTTPServerRequestFunction);
static assert(isValidHandler!HTTPServerRequestDelegate);
static assert(isValidHandler!HTTPServerRequestHandler);
static assert(isValidHandler!HTTPServerRequestFunctionS);
static assert(isValidHandler!HTTPServerRequestDelegateS);
static assert(isValidHandler!HTTPServerRequestHandlerS);
static assert(isValidHandler!(void delegate(HTTPServerRequest req, HTTPServerResponse res) @system));
static assert(isValidHandler!(void function(HTTPServerRequest req, HTTPServerResponse res) @system));
static assert(isValidHandler!(void delegate(scope HTTPServerRequest req, scope HTTPServerResponse res) @system));
static assert(isValidHandler!(void function(scope HTTPServerRequest req, scope HTTPServerResponse res) @system));
static assert(!isValidHandler!(int delegate(HTTPServerRequest req, HTTPServerResponse res) @system));
static assert(!isValidHandler!(int delegate(HTTPServerRequest req, HTTPServerResponse res) @safe));
void test(H)(H h)
{
static assert(isValidHandler!H);
}
test((HTTPServerRequest req, HTTPServerResponse res) {});
}
}
///
@safe unittest {
import vibe.http.fileserver;
void addGroup(HTTPServerRequest req, HTTPServerResponse res)
{
// Route variables are accessible via the params map
logInfo("Getting group %s for user %s.", req.params["groupname"], req.params["username"]);
}
void deleteUser(HTTPServerRequest req, HTTPServerResponse res)
{
// ...
}
void auth(HTTPServerRequest req, HTTPServerResponse res)
{
// TODO: check req.session to see if a user is logged in and
// write an error page or throw an exception instead.
}
void setup()
{
auto router = new URLRouter;
// Matches all GET requests for /users/*/groups/* and places
// the place holders in req.params as 'username' and 'groupname'.
router.get("/users/:username/groups/:groupname", &addGroup);
// Matches all requests. This can be useful for authorization and
// similar tasks. The auth method will only write a response if the
// user is _not_ authorized. Otherwise, the router will fall through
// and continue with the following routes.
router.any("*", &auth);
// Matches a POST request
router.post("/users/:username/delete", &deleteUser);
// Matches all GET requests in /static/ such as /static/img.png or
// /static/styles/sty.css
router.get("/static/*", serveStaticFiles("public/"));
// Setup a HTTP server...
auto settings = new HTTPServerSettings;
// ...
// The router can be directly passed to the listenHTTP function as
// the main request handler.
listenHTTP(settings, router);
}
}
/** Using nested routers to map components to different sub paths. A component
could for example be an embedded blog engine.
*/
@safe unittest {
// some embedded component:
void showComponentHome(HTTPServerRequest req, HTTPServerResponse res)
{
// ...
}
void showComponentUser(HTTPServerRequest req, HTTPServerResponse res)
{
// ...
}
void registerComponent(URLRouter router)
{
router.get("/", &showComponentHome);
router.get("/users/:user", &showComponentUser);
}
// main application:
void showHome(HTTPServerRequest req, HTTPServerResponse res)
{
// ...
}
void setup()
{
auto c1router = new URLRouter("/component1");
registerComponent(c1router);
auto mainrouter = new URLRouter;
mainrouter.get("/", &showHome);
// forward all unprocessed requests to the component router
mainrouter.any("*", c1router);
// now the following routes will be matched:
// / -> showHome
// /component1/ -> showComponentHome
// /component1/users/:user -> showComponentUser
// Start the HTTP server
auto settings = new HTTPServerSettings;
// ...
listenHTTP(settings, mainrouter);
}
}
@safe unittest { // issue #1668
auto r = new URLRouter;
r.get("/", (req, res) {
if ("foo" in req.headers)
res.writeBody("bar");
});
r.get("/", (scope req, scope res) {
if ("foo" in req.headers)
res.writeBody("bar");
});
r.get("/", (req, res) {});
r.post("/", (req, res) {});
r.put("/", (req, res) {});
r.delete_("/", (req, res) {});
r.patch("/", (req, res) {});
r.any("/", (req, res) {});
}
@safe unittest { // issue #1866
auto r = new URLRouter;
r.match(HTTPMethod.HEAD, "/foo", (scope req, scope res) { res.writeVoidBody; });
r.match(HTTPMethod.HEAD, "/foo", (req, res) { res.writeVoidBody; });
r.match(HTTPMethod.HEAD, "/foo", (scope HTTPServerRequest req, scope HTTPServerResponse res) { res.writeVoidBody; });
r.match(HTTPMethod.HEAD, "/foo", (HTTPServerRequest req, HTTPServerResponse res) { res.writeVoidBody; });
auto r2 = new URLRouter;
r.match(HTTPMethod.HEAD, "/foo", r2);
}
@safe unittest {
import vibe.inet.url;
auto router = new URLRouter;
string result;
void a(HTTPServerRequest req, HTTPServerResponse) { result ~= "A"; }
void b(HTTPServerRequest req, HTTPServerResponse) { result ~= "B"; }
void c(HTTPServerRequest req, HTTPServerResponse) { assert(req.params["test"] == "x", "Wrong variable contents: "~req.params["test"]); result ~= "C"; }
void d(HTTPServerRequest req, HTTPServerResponse) { assert(req.params["test"] == "y", "Wrong variable contents: "~req.params["test"]); result ~= "D"; }
router.get("/test", &a);
router.post("/test", &b);
router.get("/a/:test", &c);
router.get("/a/:test/", &d);
auto res = createTestHTTPServerResponse();
router.handleRequest(createTestHTTPServerRequest(URL("http://localhost/")), res);
assert(result == "", "Matched for non-existent / path");
router.handleRequest(createTestHTTPServerRequest(URL("http://localhost/test")), res);
assert(result == "A", "Didn't match a simple GET request");
router.handleRequest(createTestHTTPServerRequest(URL("http://localhost/test"), HTTPMethod.POST), res);
assert(result == "AB", "Didn't match a simple POST request");
router.handleRequest(createTestHTTPServerRequest(URL("http://localhost/a/"), HTTPMethod.GET), res);
assert(result == "AB", "Matched empty variable. "~result);
router.handleRequest(createTestHTTPServerRequest(URL("http://localhost/a/x"), HTTPMethod.GET), res);
assert(result == "ABC", "Didn't match a trailing 1-character var.");
// currently fails due to Path not accepting "//"
//router.handleRequest(createTestHTTPServerRequest(URL("http://localhost/a//"), HTTPMethod.GET), res);
//assert(result == "ABC", "Matched empty string or slash as var. "~result);
router.handleRequest(createTestHTTPServerRequest(URL("http://localhost/a/y/"), HTTPMethod.GET), res);
assert(result == "ABCD", "Didn't match 1-character infix variable.");
}
@safe unittest {
import vibe.inet.url;
auto router = new URLRouter("/test");
string result;
void a(HTTPServerRequest req, HTTPServerResponse) { result ~= "A"; }
void b(HTTPServerRequest req, HTTPServerResponse) { result ~= "B"; }
router.get("/x", &a);
router.get("/y", &b);
auto res = createTestHTTPServerResponse();
router.handleRequest(createTestHTTPServerRequest(URL("http://localhost/test")), res);
assert(result == "");
router.handleRequest(createTestHTTPServerRequest(URL("http://localhost/test/x")), res);
assert(result == "A");
router.handleRequest(createTestHTTPServerRequest(URL("http://localhost/test/y")), res);
assert(result == "AB");
}
@safe unittest {
string ensureMatch(string pattern, string local_uri, string[string] expected_params = null)
{
import vibe.inet.url : URL;
string ret = local_uri ~ " did not match " ~ pattern;
auto r = new URLRouter;
r.get(pattern, (req, res) {
ret = null;
foreach (k, v; expected_params) {
if (k !in req.params) { ret = "Parameter "~k~" was not matched."; return; }
if (req.params[k] != v) { ret = "Parameter "~k~" is '"~req.params[k]~"' instead of '"~v~"'."; return; }
}
});
auto req = createTestHTTPServerRequest(URL("http://localhost"~local_uri));
auto res = createTestHTTPServerResponse();
r.handleRequest(req, res);
return ret;
}
assert(ensureMatch("/foo bar/", "/foo%20bar/") is null); // normalized pattern: "/foo%20bar/"
//assert(ensureMatch("/foo%20bar/", "/foo%20bar/") is null); // normalized pattern: "/foo%20bar/"
assert(ensureMatch("/foo/bar/", "/foo/bar/") is null); // normalized pattern: "/foo/bar/"
//assert(ensureMatch("/foo/bar/", "/foo%2fbar/") !is null);
//assert(ensureMatch("/foo%2fbar/", "/foo%2fbar/") is null); // normalized pattern: "/foo%2Fbar/"
//assert(ensureMatch("/foo%2Fbar/", "/foo%2fbar/") is null); // normalized pattern: "/foo%2Fbar/"
//assert(ensureMatch("/foo%2fbar/", "/foo%2Fbar/") is null);
//assert(ensureMatch("/foo%2fbar/", "/foo/bar/") !is null);
//assert(ensureMatch("/:foo/", "/foo%2Fbar/", ["foo": "foo/bar"]) is null);
assert(ensureMatch("/:foo/", "/foo/bar/") !is null);
}
unittest { // issue #2561
import vibe.http.server : createTestHTTPServerRequest, createTestHTTPServerResponse;
import vibe.inet.url : URL;
import vibe.stream.memory : createMemoryOutputStream;
Route[] routes = [
Route(HTTPMethod.PUT, "/public/devices/commandList"),
Route(HTTPMethod.PUT, "/public/devices/logicStateList"),
Route(HTTPMethod.OPTIONS, "/public/devices/commandList"),
Route(HTTPMethod.OPTIONS, "/public/devices/logicStateList"),
Route(HTTPMethod.PUT, "/public/mnemoschema"),
Route(HTTPMethod.PUT, "/public/static"),
Route(HTTPMethod.PUT, "/public/dynamic"),
Route(HTTPMethod.PUT, "/public/info"),
Route(HTTPMethod.PUT, "/public/info-network"),
Route(HTTPMethod.PUT, "/public/events"),
Route(HTTPMethod.PUT, "/public/eventList"),
Route(HTTPMethod.PUT, "/public/availBatteryModels"),
Route(HTTPMethod.OPTIONS, "/public/availBatteryModels"),
Route(HTTPMethod.OPTIONS, "/public/dynamic"),
Route(HTTPMethod.OPTIONS, "/public/eventList"),
Route(HTTPMethod.OPTIONS, "/public/events"),
Route(HTTPMethod.OPTIONS, "/public/info"),
Route(HTTPMethod.OPTIONS, "/public/info-network"),
Route(HTTPMethod.OPTIONS, "/public/mnemoschema"),
Route(HTTPMethod.OPTIONS, "/public/static"),
Route(HTTPMethod.PUT, "/settings/admin/getinfo"),
Route(HTTPMethod.PUT, "/settings/admin/setconf"),
Route(HTTPMethod.PUT, "/settings/admin/checksetaccess"),
Route(HTTPMethod.OPTIONS, "/settings/admin/checksetaccess"),
Route(HTTPMethod.OPTIONS, "/settings/admin/getinfo"),
Route(HTTPMethod.OPTIONS, "/settings/admin/setconf"),
];
auto router = new URLRouter;
foreach (r; routes)
router.match(r.method, r.pattern, (req, res) {
res.writeBody("OK");
});
{ // make sure unmatched routes are not handled by the router
auto req = createTestHTTPServerRequest(URL("http://localhost/foobar"), HTTPMethod.PUT);
auto res = createTestHTTPServerResponse();
router.handleRequest(req, res);
assert(!res.headerWritten);
}
// ensure all routes are matched
foreach (r; routes) {
auto url = URL("http://localhost"~r.pattern);
auto output = createMemoryOutputStream();
auto req = createTestHTTPServerRequest(url, r.method);
auto res = createTestHTTPServerResponse(output, null, TestHTTPResponseMode.bodyOnly);
router.handleRequest(req, res);
//assert(res.headerWritten);
assert(output.data == "OK");
}
}
/**
Convenience abstraction for a single `URLRouter` route.
See `URLRouter.route` for a usage example.
*/
struct URLRoute {
@safe:
URLRouter router;
string path;
ref URLRoute get(Handler)(Handler h) { router.get(path, h); return this; }
ref URLRoute post(Handler)(Handler h) { router.post(path, h); return this; }
ref URLRoute put(Handler)(Handler h) { router.put(path, h); return this; }
ref URLRoute delete_(Handler)(Handler h) { router.delete_(path, h); return this; }
ref URLRoute patch(Handler)(Handler h) { router.patch(path, h); return this; }
ref URLRoute any(Handler)(Handler h) { router.any(path, h); return this; }
ref URLRoute match(Handler)(HTTPMethod method, Handler h) { router.match(method, path, h); return this; }
}
private enum maxRouteParameters = 64;
private struct Route {
HTTPMethod method;
string pattern;
HTTPServerRequestDelegate cb;
}
private string skipPathNode(string str, ref size_t idx)
@safe {
size_t start = idx;
while( idx < str.length && str[idx] != '/' ) idx++;
return str[start .. idx];
}
private string skipPathNode(ref string str)
@safe {
size_t idx = 0;
auto ret = skipPathNode(str, idx);
str = str[idx .. $];
return ret;
}
private struct MatchTree(T) {
@safe:
import std.algorithm : countUntil;
import std.array : array;
private {
alias NodeIndex = uint;
alias TerminalTagIndex = uint;
alias TerminalIndex = ushort;
alias VarIndex = ushort;
struct Node {
TerminalTagIndex terminalsStart; // slice into m_terminalTags
TerminalTagIndex terminalsEnd;
NodeIndex[ubyte.max+1] edges = NodeIndex.max; // character -> index into m_nodes
}
struct TerminalTag {
TerminalIndex index; // index into m_terminals array
VarIndex var = VarIndex.max; // index into Terminal.varNames/varValues or VarIndex.max
}
struct Terminal {
string pattern;
T data;
string[] varNames;
VarIndex[NodeIndex] varMap;
}
Node[] m_nodes; // all nodes as a single array
TerminalTag[] m_terminalTags;
Terminal[] m_terminals;
enum TerminalChar = 0;
bool m_upToDate = false;
}
@property size_t terminalCount() const { return m_terminals.length; }
void addTerminal(string pattern, T data)
{
assert(m_terminals.length < TerminalIndex.max, "Attempt to register too many routes.");
m_terminals ~= Terminal(pattern, data, null, null);
m_upToDate = false;
}
bool match(string text, scope bool delegate(size_t terminal, scope string[] vars) @safe del)
{
// lazily update the match graph
if (!m_upToDate) rebuildGraph();
return doMatch(text, del);
}
const(string)[] getTerminalVarNames(size_t terminal) const { return m_terminals[terminal].varNames; }
ref inout(T) getTerminalData(size_t terminal) inout { return m_terminals[terminal].data; }
void print()
const {
import std.algorithm : map;
import std.array : join;
import std.conv : to;
import std.range : iota;
import std.string : format;
logInfo("Nodes:");
foreach (i, n; m_nodes) {
logInfo(" %s %s", i, m_terminalTags[n.terminalsStart .. n.terminalsEnd]
.map!(t => format("T%s%s", t.index, t.var != VarIndex.max ? "("~m_terminals[t.index].varNames[t.var]~")" : "")).join(" "));
//logInfo(" %s %s-%s", i, n.terminalsStart, n.terminalsEnd);
static string mapChar(ubyte ch) {
if (ch == TerminalChar) return "$";
if (ch >= '0' && ch <= '9') return to!string(cast(dchar)ch);
if (ch >= 'a' && ch <= 'z') return to!string(cast(dchar)ch);
if (ch >= 'A' && ch <= 'Z') return to!string(cast(dchar)ch);
if (ch == '/') return "/";
if (ch == '^') return "^";
return ch.to!string;
}
void printRange(uint node, ubyte from, ubyte to)
{
if (to - from <= 10) logInfo(" %s -> %s", iota(from, cast(uint)to+1).map!(ch => mapChar(cast(ubyte)ch)).join("|"), node);
else logInfo(" %s-%s -> %s", mapChar(from), mapChar(to), node);
}
auto last_to = NodeIndex.max;
ubyte last_ch = 0;
foreach (ch, e; n.edges)
if (e != last_to) {
if (last_to != NodeIndex.max)
printRange(last_to, last_ch, cast(ubyte)(ch-1));
last_ch = cast(ubyte)ch;
last_to = e;
}
if (last_to != NodeIndex.max)
printRange(last_to, last_ch, ubyte.max);
}
}
private bool doMatch(string text, scope bool delegate(size_t terminal, scope string[] vars) @safe del)
const {
string[maxRouteParameters] vars_buf;// = void;
import std.algorithm : canFind;
// first, determine the end node, if any
auto n = matchTerminals(text);
if (!n) return false;
// then, go through the terminals and match their variables
foreach (ref t; m_terminalTags[n.terminalsStart .. n.terminalsEnd]) {
auto term = &m_terminals[t.index];
auto vars = vars_buf[0 .. term.varNames.length];
matchVars(vars, term, text);
if (vars.canFind!(v => v.length == 0)) continue; // all variables must be non-empty to match
if (del(t.index, vars)) return true;
}
return false;
}
private inout(Node)* matchTerminals(string text)
inout {
if (!m_nodes.length) return null;
auto n = &m_nodes[0];
// follow the path through the match graph
foreach (i, char ch; text) {
auto nidx = n.edges[cast(size_t)ch];
if (nidx == NodeIndex.max) return null;
n = &m_nodes[nidx];
}
// finally, find a matching terminal node
auto nidx = n.edges[TerminalChar];
if (nidx == NodeIndex.max) return null;
n = &m_nodes[nidx];
return n;
}
private void matchVars(string[] dst, in Terminal* term, string text)
const {
NodeIndex nidx = 0;
VarIndex activevar = VarIndex.max;
size_t activevarstart;
dst[] = null;
// folow the path throgh the match graph
foreach (i, char ch; text) {
auto var = term.varMap.get(nidx, VarIndex.max);
// detect end of variable
if (var != activevar && activevar != VarIndex.max) {
dst[activevar] = text[activevarstart .. i-1];
activevar = VarIndex.max;
}
// detect beginning of variable
if (var != VarIndex.max && activevar == VarIndex.max) {
activevar = var;
activevarstart = i;
}
nidx = m_nodes[nidx].edges[cast(ubyte)ch];
assert(nidx != NodeIndex.max);
}
// terminate any active varible with the end of the input string or with the last character
auto var = term.varMap.get(nidx, VarIndex.max);
if (activevar != VarIndex.max) dst[activevar] = text[activevarstart .. (var == activevar ? $ : $-1)];
}
private void rebuildGraph()
@trusted {
import std.array : appender;
import std.conv : to;
if (m_upToDate) return;
m_upToDate = true;
m_nodes = null;
m_terminalTags = null;
if (!m_terminals.length) return;
MatchGraphBuilder builder;
foreach (i, ref t; m_terminals) {
t.varNames = builder.insert(t.pattern, i.to!TerminalIndex);
assert(t.varNames.length <= VarIndex.max, "Too many variables in route.");
}
//builder.print();
builder.disambiguate();
auto nodemap = new NodeIndex[builder.m_nodes.length];
nodemap[] = NodeIndex.max;
auto nodes = appender!(Node[]);
nodes.reserve(1024);
auto termtags = appender!(TerminalTag[]);
termtags.reserve(1024);
NodeIndex process(NodeIndex n)
{
import std.algorithm : canFind;
if (nodemap[n] != NodeIndex.max) return nodemap[n];
auto nmidx = cast(NodeIndex)nodes.data.length;
nodemap[n] = nmidx;
nodes.put(Node.init);
Node nn;
nn.terminalsStart = termtags.data.length.to!TerminalTagIndex;
foreach (t; builder.m_nodes[n].terminals) {
auto var = cast(VarIndex)t.var;
assert(!termtags.data[nn.terminalsStart .. $].canFind!(u => u.index == t.index && u.var == var));
termtags ~= TerminalTag(cast(TerminalIndex)t.index, var);
if (var != VarIndex.max)
m_terminals[t.index].varMap[nmidx] = var;
}
nn.terminalsEnd = termtags.data.length.to!TerminalTagIndex;
foreach (ch, targets; builder.m_nodes[n].edges)
foreach (to; builder.m_edgeEntries.getItems(targets))
nn.edges[ch] = process(to);
nodes.data[nmidx] = nn;
return nmidx;
}
assert(builder.m_edgeEntries.hasLength(builder.m_nodes[0].edges['^'], 1),
"Graph must be disambiguated before purging.");
process(builder.m_edgeEntries.getItems(builder.m_nodes[0].edges['^']).front);
m_nodes = nodes.data;
m_terminalTags = termtags.data;
logDebug("Match tree has %s (of %s in the builder) nodes, %s terminals", m_nodes.length, builder.m_nodes.length, m_terminals.length);
}
}
unittest {
import std.string : format;
MatchTree!int m;
void testMatch(string str, size_t[] terms, string[] vars)
{
size_t[] mterms;
string[] mvars;
m.match(str, (t, scope vals) {
mterms ~= t;
mvars ~= vals;
return false;
});
assert(mterms == terms, format("Mismatched terminals: %s (expected %s)", mterms, terms));
assert(mvars == vars, format("Mismatched variables; %s (expected %s)", mvars, vars));
}
m.addTerminal("a", 0);
m.addTerminal("b", 0);
m.addTerminal("ab", 0);
m.rebuildGraph();
assert(m.getTerminalVarNames(0) == []);
assert(m.getTerminalVarNames(1) == []);
assert(m.getTerminalVarNames(2) == []);
testMatch("a", [0], []);
testMatch("ab", [2], []);
testMatch("abc", [], []);
testMatch("b", [1], []);
m = MatchTree!int.init;
m.addTerminal("ab", 0);
m.addTerminal("a*", 0);
m.rebuildGraph();
assert(m.getTerminalVarNames(0) == []);
assert(m.getTerminalVarNames(1) == []);
testMatch("a", [1], []);
testMatch("ab", [0, 1], []);
testMatch("abc", [1], []);
m = MatchTree!int.init;
m.addTerminal("ab", 0);
m.addTerminal("a:var", 0);
m.rebuildGraph();
assert(m.getTerminalVarNames(0) == []);
assert(m.getTerminalVarNames(1) == ["var"], format("%s", m.getTerminalVarNames(1)));
testMatch("a", [], []); // vars may not be empty
testMatch("ab", [0, 1], ["b"]);
testMatch("abc", [1], ["bc"]);
m = MatchTree!int.init;
m.addTerminal(":var1/:var2", 0);
m.addTerminal("a/:var3", 0);
m.addTerminal(":var4/b", 0);
m.rebuildGraph();
assert(m.getTerminalVarNames(0) == ["var1", "var2"]);
assert(m.getTerminalVarNames(1) == ["var3"]);
assert(m.getTerminalVarNames(2) == ["var4"]);
testMatch("a", [], []);
testMatch("a/a", [0, 1], ["a", "a", "a"]);
testMatch("a/b", [0, 1, 2], ["a", "b", "b", "a"]);
testMatch("a/bc", [0, 1], ["a", "bc", "bc"]);
testMatch("ab/b", [0, 2], ["ab", "b", "ab"]);
testMatch("ab/bc", [0], ["ab", "bc"]);
m = MatchTree!int.init;
m.addTerminal(":var1/", 0);
m.rebuildGraph();
assert(m.getTerminalVarNames(0) == ["var1"]);
testMatch("ab/", [0], ["ab"]);
testMatch("ab", [], []);
testMatch("/ab", [], []);
testMatch("a/b", [], []);
testMatch("ab//", [], []);
}
private struct MatchGraphBuilder {
@safe:
import std.container.array : Array;
import std.array : array;
import std.algorithm : filter;
import std.string : format;
alias NodeIndex = uint;
alias TerminalIndex = ushort;
alias VarIndex = ushort;
alias NodeSet = LinkedSetBacking!NodeIndex.Handle;
private {
enum TerminalChar = 0;
struct TerminalTag {
TerminalIndex index;
VarIndex var = VarIndex.max;
}
struct Node {
Array!TerminalTag terminals;
NodeSet[ubyte.max+1] edges;
}
Array!Node m_nodes;
LinkedSetBacking!NodeIndex m_edgeEntries;
}
@disable this(this);
string[] insert(string pattern, TerminalIndex terminal)
{
import std.algorithm : canFind;
auto full_pattern = pattern;
string[] vars;
if (!m_nodes.length) addNode();
// create start node and connect to zero node
auto nidx = addNode();
addEdge(0, nidx, '^', terminal);
while (pattern.length) {
auto ch = pattern[0];
if (ch == '*') {
assert(pattern.length == 1, "Asterisk is only allowed at the end of a pattern: "~full_pattern);
pattern = null;
foreach (v; ubyte.min .. ubyte.max+1) {
if (v == TerminalChar) continue;
addEdge(nidx, nidx, cast(ubyte)v, terminal);
}
} else if (ch == ':') {
pattern = pattern[1 .. $];
auto name = skipPathNode(pattern);
assert(name.length > 0, "Missing placeholder name: "~full_pattern);
assert(!vars.canFind(name), "Duplicate placeholder name ':"~name~"': '"~full_pattern~"'");
auto varidx = cast(VarIndex)vars.length;
vars ~= name;
assert(!pattern.length || (pattern[0] != '*' && pattern[0] != ':'),
"Cannot have two placeholders directly follow each other.");
foreach (v; ubyte.min .. ubyte.max+1) {
if (v == TerminalChar || v == '/') continue;
addEdge(nidx, nidx, cast(ubyte)v, terminal, varidx);
}
} else {
nidx = addEdge(nidx, ch, terminal);
pattern = pattern[1 .. $];
}
}
addEdge(nidx, TerminalChar, terminal);
return vars;
}
void disambiguate()
@trusted {
import std.algorithm : map, sum;
import std.array : appender, join;
//logInfo("Disambiguate with %s initial nodes", m_nodes.length);
if (!m_nodes.length) return;
import vibe.utils.hashmap;
HashMap!(LinkedSetHash, NodeIndex) combined_nodes;
Array!bool visited;
visited.length = m_nodes.length * 2;
Stack!NodeIndex node_stack;
node_stack.reserve(m_nodes.length);
node_stack.push(0);
while (!node_stack.empty) {
auto n = node_stack.pop();
while (n >= visited.length) visited.length = visited.length * 2;
if (visited[n]) continue;
//logInfo("Disambiguate %s (stack=%s)", n, node_stack.fill);
visited[n] = true;
foreach (ch; ubyte.min .. ubyte.max+1) {
auto chnodes = m_nodes[n].edges[ch];
LinkedSetHash chhash = m_edgeEntries.getHash(chnodes);
// handle trivial cases
if (m_edgeEntries.hasMaxLength(chnodes, 1))
continue;
// generate combined state for ambiguous edges
if (auto pn = () @trusted { return chhash in combined_nodes; } ()) {
m_nodes[n].edges[ch] = m_edgeEntries.create(*pn);
assert(m_edgeEntries.hasLength(m_nodes[n].edges[ch], 1));
continue;
}
// for new combinations, create a new node
NodeIndex ncomb = addNode();
combined_nodes[chhash] = ncomb;
// write all edges
size_t idx = 0;
foreach (to_ch; ubyte.min .. ubyte.max+1) {
auto e = &m_nodes[ncomb].edges[to_ch];
foreach (chn; m_edgeEntries.getItems(chnodes))
m_edgeEntries.insert(e, m_edgeEntries.getItems(m_nodes[chn].edges[to_ch]));
}
// add terminal indices
foreach (chn; m_edgeEntries.getItems(chnodes))
foreach (t; m_nodes[chn].terminals)
addTerminal(ncomb, t.index, t.var);
foreach (i; 1 .. m_nodes[ncomb].terminals.length)
assert(m_nodes[ncomb].terminals[0] != m_nodes[ncomb].terminals[i]);
m_nodes[n].edges[ch] = m_edgeEntries.create(ncomb);
assert(m_edgeEntries.hasLength(m_nodes[n].edges[ch], 1));
}
// process nodes recursively
foreach (ch; ubyte.min .. ubyte.max+1) {
// should only have single out-edges now
assert(m_edgeEntries.hasMaxLength(m_nodes[n].edges[ch], 1));
foreach (e; m_edgeEntries.getItems(m_nodes[n].edges[ch]))
node_stack.push(e);
}
}
import std.algorithm.sorting : sort;
foreach (ref n; m_nodes)
n.terminals[].sort!((a, b) => a.index < b.index)();
debug logDebug("Disambiguate done: %s nodes, %s max stack size", m_nodes.length, node_stack.maxSize);
}
void print()
const @trusted {
import std.algorithm : map;
import std.array : join;
import std.conv : to;
import std.string : format;
logInfo("Nodes:");
size_t i = 0;
foreach (n; m_nodes) {
string mapChar(ubyte ch) {
if (ch == TerminalChar) return "$";
if (ch >= '0' && ch <= '9') return to!string(cast(dchar)ch);
if (ch >= 'a' && ch <= 'z') return to!string(cast(dchar)ch);
if (ch >= 'A' && ch <= 'Z') return to!string(cast(dchar)ch);
if (ch == '^') return "^";
if (ch == '/') return "/";
return format("$%s", ch);
}
logInfo(" %s: %s", i, n.terminals[].map!(t => t.var != VarIndex.max ? format("T%s(%s)", t.index, t.var) : format("T%s", t.index)).join(" "));
ubyte first_char;
LinkedSetHash list_hash;
NodeSet list;
void printEdges(ubyte last_char) {
if (!list.empty) {
string targets;
foreach (tn; m_edgeEntries.getItems(list))
targets ~= format(" %s", tn);
if (targets.length > 0)
logInfo(" [%s ... %s] -> %s", mapChar(first_char), mapChar(last_char), targets);
}
}
foreach (ch, tnodes; n.edges) {
auto h = m_edgeEntries.getHash(tnodes);
if (h != list_hash) {
printEdges(cast(ubyte)(ch-1));
list_hash = h;
list = tnodes;
first_char = cast(ubyte)ch;
}
}
printEdges(ubyte.max);
i++;
}
}
private void addEdge(NodeIndex from, NodeIndex to, ubyte ch, TerminalIndex terminal, VarIndex var = VarIndex.max)
@trusted {
m_edgeEntries.insert(&m_nodes[from].edges[ch], to);
addTerminal(to, terminal, var);
}
private NodeIndex addEdge(NodeIndex from, ubyte ch, TerminalIndex terminal, VarIndex var = VarIndex.max)
@trusted {
import std.algorithm : canFind;
import std.string : format;
if (!m_nodes[from].edges[ch].empty)
assert(false, format("%s is in %s", ch, m_nodes[from].edges[]));
auto nidx = addNode();
addEdge(from, nidx, ch, terminal, var);
return nidx;
}
private void addTerminal(NodeIndex node, TerminalIndex terminal, VarIndex var)
@trusted {
foreach (ref t; m_nodes[node].terminals) {
if (t.index == terminal) {
if (t.var != VarIndex.max && t.var != var)
assert(false, format("Ambiguous route var match!? %s vs %s", t.var, var));
t.var = var;
return;
}
}
m_nodes[node].terminals ~= TerminalTag(terminal, var);
}
private NodeIndex addNode()
@trusted {
assert(m_nodes.length <= 1_000_000_000, "More than 1B nodes in tree!?");
auto idx = cast(NodeIndex)m_nodes.length;
m_nodes ~= Node.init;
return idx;
}
}
/** Used to store and manipulate multiple linked lists within a single array
based storage.
*/
struct LinkedSetBacking(T) {
import std.container.array : Array;
import std.range : isInputRange;
static struct Handle {
uint index = uint.max;
@property bool empty() const { return index == uint.max; }
}
private {
static struct Entry {
uint next;
T value;
}
Array!Entry m_storage;
static struct Range {
private {
Array!Entry* backing;
uint index;
}
@property bool empty() const { return index == uint.max; }
@property ref const(T) front() const { return (*backing)[index].value; }
void popFront()
{
index = (*backing)[index].next;
}
}
}
@property Handle emptySet() { return Handle.init; }
Handle create(scope T[] items...)
{
Handle ret;
foreach (i; items)
ret.index = createNode(i, ret.index);
return ret;
}
void insert(Handle* h, T value)
{
/*foreach (c; getItems(*h))
if (value == c)
return;*/
h.index = createNode(value, h.index);
}
void insert(R)(Handle* h, R items)
if (isInputRange!R)
{
foreach (itm; items)
insert(h, itm);
}
LinkedSetHash getHash(Handle sh)
const {
import std.digest.md : md5Of;
// NOTE: the returned hash is order independent, to avoid bogus
// mismatches when comparing lists of different order
LinkedSetHash ret = cast(LinkedSetHash)md5Of([]);
while (sh != Handle.init) {
auto h = cast(LinkedSetHash)md5Of(cast(const(ubyte)[])(&m_storage[sh.index].value)[0 .. 1]);
foreach (i; 0 .. ret.length) ret[i] ^= h[i];
sh.index = m_storage[sh.index].next;
}
return ret;
}
auto getItems(Handle sh) { return Range(&m_storage, sh.index); }
auto getItems(Handle sh) const { return Range(&(cast()this).m_storage, sh.index); }
bool hasMaxLength(Handle sh, size_t l)
const {
uint idx = sh.index;
do {
if (idx == uint.max) return true;
idx = m_storage[idx].next;
} while (l-- > 0);
return false;
}
bool hasLength(Handle sh, size_t l)
const {
uint idx = sh.index;
while (l-- > 0) {
if (idx == uint.max) return false;
idx = m_storage[idx].next;
}
return idx == uint.max;
}
private uint createNode(ref T val, uint next)
{
auto id = cast(uint)m_storage.length;
m_storage ~= Entry(next, val);
return id;
}
}
unittest {
import std.algorithm.comparison : equal;
LinkedSetBacking!int b;
auto s = b.emptySet;
assert(s.empty);
assert(b.getItems(s).empty);
s = b.create(3, 5, 7);
assert(b.getItems(s).equal([7, 5, 3]));
assert(!b.hasLength(s, 2));
assert(b.hasLength(s, 3));
assert(!b.hasLength(s, 4));
assert(!b.hasMaxLength(s, 2));
assert(b.hasMaxLength(s, 3));
assert(b.hasMaxLength(s, 4));
auto h = b.getHash(s);
assert(h != b.getHash(b.emptySet));
s = b.create(5, 3, 7);
assert(b.getHash(s) == h);
assert(b.getItems(s).equal([7, 3, 5]));
b.insert(&s, 11);
assert(b.hasLength(s, 4));
assert(b.getHash(s) != h);
assert(b.getItems(s).equal([11, 7, 3, 5]));
}
alias LinkedSetHash = ulong[16/ulong.sizeof];
private struct Stack(E)
{
import std.range : isInputRange;
private {
E[] m_storage;
size_t m_fill;
debug size_t m_maxFill;
}
@property bool empty() const { return m_fill == 0; }
@property size_t fill() const { return m_fill; }
debug @property size_t maxSize() const { return m_maxFill; }
void reserve(size_t amt)
{
auto minsz = m_fill + amt;
if (m_storage.length < minsz) {
auto newlength = 64;
while (newlength < minsz) newlength *= 2;
m_storage.length = newlength;
}
}
void push(E el)
{
reserve(1);
m_storage[m_fill++] = el;
debug if (m_fill > m_maxFill) m_maxFill = m_fill;
}
void push(R)(R els)
if (isInputRange!R)
{
reserve(els.length);
foreach (el; els)
m_storage[m_fill++] = el;
debug if (m_fill > m_maxFill) m_maxFill = m_fill;
}
E pop()
{
assert(!empty, "Stack underflow.");
return m_storage[--m_fill];
}
}
|
D
|
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.build/Future+Void.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Async+NIO.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Variadic.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Void.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/FutureType.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Collection+Future.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+DoCatch.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Global.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Transform.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Flatten.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Map.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Worker.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/QueueHandler.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/AsyncError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Exports.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.build/Future+Void~partial.swiftmodule : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Async+NIO.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Variadic.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Void.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/FutureType.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Collection+Future.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+DoCatch.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Global.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Transform.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Flatten.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Map.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Worker.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/QueueHandler.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/AsyncError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Exports.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.build/Future+Void~partial.swiftdoc : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Async+NIO.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Variadic.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Void.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/FutureType.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Collection+Future.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+DoCatch.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Global.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Transform.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Flatten.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Future+Map.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Worker.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/QueueHandler.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/AsyncError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Async/Exports.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
|
D
|
#!/usr/bin/env rdmd -i -I..
import std.stdio;
import std.datetime.stopwatch;
import std.range;
import std.algorithm;
import std.conv;
import std.concurrency;
import kreikey.intmath;
import kreikey.digits;
import kreikey.util;
void main() {
StopWatch timer;
enum maxDigits = getMaxDigits();
auto sortedDigits = new Generator!(uint[])(sortedDigitsInit!uint(1, maxDigits));
writeln("digit fifth powers");
timer.start();
auto sums = sortedDigits
.dropOne
.map!(a => a, a => a.map!(a => a ^^ 5).sum())
.map!(a => a[0], a => a[1], a => a[1].toDigits.asort())
.filter!(a => a[0] == a[2])
.map!(a => a[1])
.array();
writefln("The numbers that can be written as the sum of fifth powers of their digits are:\n%(%s, %)", sums);
writefln("sum of these numbers is: %s", sums.sum());
timer.stop();
writeln("finished in ", timer.peek.total!"msecs"(), " milliseconds.");
}
ulong getMaxDigits() {
ulong sum = 0;
uint[] digits;
do {
sum = 0;
digits ~= 9;
sum = digits.map!(a => a ^^ 5).sum();
} while (digits.length <= sum.toDigits().length);
return digits.length - 1;
}
|
D
|
/Users/John/Desktop/Vain/build/Vain.build/Debug-iphonesimulator/Vain.build/Objects-normal/x86_64/ViewController.o : /Users/John/Desktop/Vain/Vain/ViewController.swift /Users/John/Desktop/Vain/Vain/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/John/Desktop/Vain/Carthage/Build/iOS/FacebookLogin.framework/Modules/FacebookLogin.swiftmodule/x86_64.swiftmodule /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFURL.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFMeasurementEvent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkTarget.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkResolving.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkNavigation.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLink.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFTask+Exceptions.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFTask.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFExecutor.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFCancellationToken.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/Bolts.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Modules/module.modulemap /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Modules/module.modulemap /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Modules/module.modulemap /Users/John/Desktop/Vain/Carthage/Build/iOS/FacebookCore.framework/Modules/FacebookCore.swiftmodule/x86_64.swiftmodule /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSendButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareMediaContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareDialogMode.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharingButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKMessageDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLikeControl.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLiking.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLikeObjectType.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLikeButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKGameRequestDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKGameRequestContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppInviteDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppInviteContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppGroupJoinDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppGroupAddDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareVideoContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareVideo.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharePhotoContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharePhoto.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphAction.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareConstants.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharingContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharing.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphValueContainer.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphObject.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareAPI.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKHashtag.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareKit.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Modules/module.modulemap
/Users/John/Desktop/Vain/build/Vain.build/Debug-iphonesimulator/Vain.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Users/John/Desktop/Vain/Vain/ViewController.swift /Users/John/Desktop/Vain/Vain/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/John/Desktop/Vain/Carthage/Build/iOS/FacebookLogin.framework/Modules/FacebookLogin.swiftmodule/x86_64.swiftmodule /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFURL.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFMeasurementEvent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkTarget.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkResolving.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkNavigation.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLink.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFTask+Exceptions.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFTask.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFExecutor.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFCancellationToken.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/Bolts.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Modules/module.modulemap /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Modules/module.modulemap /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Modules/module.modulemap /Users/John/Desktop/Vain/Carthage/Build/iOS/FacebookCore.framework/Modules/FacebookCore.swiftmodule/x86_64.swiftmodule /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSendButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareMediaContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareDialogMode.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharingButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKMessageDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLikeControl.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLiking.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLikeObjectType.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLikeButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKGameRequestDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKGameRequestContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppInviteDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppInviteContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppGroupJoinDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppGroupAddDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareVideoContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareVideo.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharePhotoContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharePhoto.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphAction.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareConstants.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharingContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharing.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphValueContainer.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphObject.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareAPI.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKHashtag.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareKit.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Modules/module.modulemap
/Users/John/Desktop/Vain/build/Vain.build/Debug-iphonesimulator/Vain.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Users/John/Desktop/Vain/Vain/ViewController.swift /Users/John/Desktop/Vain/Vain/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/John/Desktop/Vain/Carthage/Build/iOS/FacebookLogin.framework/Modules/FacebookLogin.swiftmodule/x86_64.swiftmodule /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFURL.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFMeasurementEvent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkTarget.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkResolving.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLinkNavigation.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFAppLink.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFTask+Exceptions.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFTask.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFExecutor.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/BFCancellationToken.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Headers/Bolts.h /Users/John/Desktop/Vain/Carthage/Build/iOS/Bolts.framework/Modules/module.modulemap /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKCoreKit.framework/Modules/module.modulemap /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKLoginKit.framework/Modules/module.modulemap /Users/John/Desktop/Vain/Carthage/Build/iOS/FacebookCore.framework/Modules/FacebookCore.swiftmodule/x86_64.swiftmodule /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSendButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareMediaContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareDialogMode.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharingButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKMessageDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLikeControl.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLiking.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLikeObjectType.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKLikeButton.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKGameRequestDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKGameRequestContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppInviteDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppInviteContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppGroupJoinDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKAppGroupAddDialog.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareVideoContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareVideo.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharePhotoContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharePhoto.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphAction.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareConstants.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharingContent.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKSharing.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphValueContainer.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphObject.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareAPI.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKHashtag.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Headers/FBSDKShareKit.h /Users/John/Desktop/Vain/Carthage/Build/iOS/FBSDKShareKit.framework/Modules/module.modulemap
|
D
|
const input = `3,8,1005,8,330,1106,0,11,0,0,0,104,1,104,0,3,8,102,-1,8,10,1001,10,1,10,4,10,108,0,8,10,4,10,1001,8,0,28,1,1103,17,10,1006,0,99,1006,0,91,1,102,7,10,3,8,1002,8,-1,10,101,1,10,10,4,10,108,1,8,10,4,10,1002,8,1,64,3,8,102,-1,8,10,1001,10,1,10,4,10,108,0,8,10,4,10,102,1,8,86,2,4,0,10,1006,0,62,2,1106,13,10,3,8,1002,8,-1,10,1001,10,1,10,4,10,1008,8,0,10,4,10,101,0,8,120,1,1109,1,10,1,105,5,10,3,8,102,-1,8,10,1001,10,1,10,4,10,108,1,8,10,4,10,1002,8,1,149,1,108,7,10,1006,0,40,1,6,0,10,2,8,9,10,3,8,102,-1,8,10,1001,10,1,10,4,10,1008,8,1,10,4,10,1002,8,1,187,1,1105,10,10,3,8,102,-1,8,10,1001,10,1,10,4,10,1008,8,1,10,4,10,1002,8,1,213,1006,0,65,1006,0,89,1,1003,14,10,3,8,102,-1,8,10,1001,10,1,10,4,10,108,0,8,10,4,10,102,1,8,244,2,1106,14,10,1006,0,13,3,8,102,-1,8,10,1001,10,1,10,4,10,108,0,8,10,4,10,1001,8,0,273,3,8,1002,8,-1,10,1001,10,1,10,4,10,108,1,8,10,4,10,1001,8,0,295,1,104,4,10,2,108,20,10,1006,0,94,1006,0,9,101,1,9,9,1007,9,998,10,1005,10,15,99,109,652,104,0,104,1,21102,937268450196,1,1,21102,1,347,0,1106,0,451,21101,387512636308,0,1,21102,358,1,0,1105,1,451,3,10,104,0,104,1,3,10,104,0,104,0,3,10,104,0,104,1,3,10,104,0,104,1,3,10,104,0,104,0,3,10,104,0,104,1,21101,0,97751428099,1,21102,1,405,0,1105,1,451,21102,1,179355806811,1,21101,416,0,0,1106,0,451,3,10,104,0,104,0,3,10,104,0,104,0,21102,1,868389643008,1,21102,439,1,0,1105,1,451,21102,1,709475853160,1,21102,450,1,0,1105,1,451,99,109,2,22102,1,-1,1,21101,0,40,2,21101,482,0,3,21102,1,472,0,1105,1,515,109,-2,2106,0,0,0,1,0,0,1,109,2,3,10,204,-1,1001,477,478,493,4,0,1001,477,1,477,108,4,477,10,1006,10,509,1101,0,0,477,109,-2,2105,1,0,0,109,4,2101,0,-1,514,1207,-3,0,10,1006,10,532,21101,0,0,-3,21202,-3,1,1,22101,0,-2,2,21101,1,0,3,21101,0,551,0,1105,1,556,109,-4,2106,0,0,109,5,1207,-3,1,10,1006,10,579,2207,-4,-2,10,1006,10,579,22102,1,-4,-4,1105,1,647,21201,-4,0,1,21201,-3,-1,2,21202,-2,2,3,21101,0,598,0,1106,0,556,22101,0,1,-4,21102,1,1,-1,2207,-4,-2,10,1006,10,617,21101,0,0,-1,22202,-2,-1,-2,2107,0,-3,10,1006,10,639,22102,1,-1,1,21102,1,639,0,105,1,514,21202,-2,-1,-2,22201,-4,-2,-4,109,-5,2105,1,0`;
import cpu;
import std.stdio;
import std.range;
import std.algorithm;
import std.array;
import std.conv;
struct Point{
int r, c;
}
enum Direction{ Up, Left, Down, Right};
Direction turnLeft(Direction d){
final switch(d){
case Direction.Up:
return Direction.Left;
case Direction.Left:
return Direction.Down;
case Direction.Down:
return Direction.Right;
case Direction.Right:
return Direction.Up;
}
}
Direction turnRight(Direction d){
final switch(d){
case Direction.Up:
return Direction.Right;
case Direction.Left:
return Direction.Up;
case Direction.Down:
return Direction.Left;
case Direction.Right:
return Direction.Down;
}
}
Point move(Point p, Direction d){
final switch(d){
case Direction.Up:
return Point(p.r -1, p.c);
case Direction.Left:
return Point(p.r, p.c -1);
case Direction.Down:
return Point(p.r + 1, p.c);
case Direction.Right:
return Point(p.r, p.c + 1);
}
}
void main(){
bool[Point] colors;
Point robotPosition;
colors[robotPosition] = true;
Direction dir = Direction.Up;
long[] insts = input.split(",").map!(to!long).array;
IOPort input, output;
auto cpu = CPU(insts, &input, &output);
while(true){
auto ret = cpu.run();
if(ret == CPU.RetCode.Halted){
break;
}
//move the robots
if(output.data.length == 2){
colors[robotPosition] = output.data[0] == 1;
dir = output.data[1] == 0 ? turnLeft(dir) : turnRight(dir);
robotPosition = move(robotPosition, dir);
output.popFront;
output.popFront;
}
if(robotPosition in colors){
input ~= colors[robotPosition] ? 1 : 0;
} else {
input ~= 0;
}
}
Point minp = robotPosition, maxp = robotPosition;
foreach(p; colors.byKey){
minp.r = min(p.r, minp.r);
minp.c = min(p.c, minp.c);
maxp.r = max(p.r, maxp.r);
maxp.c = max(p.c, maxp.c);
}
foreach(r; minp.r .. maxp.r +1){
foreach(c; minp.c .. maxp.c +1){
Point p = Point(r, c);
if(p in colors && colors[p]){
write('X');
} else {
write(' ');
}
}
writeln();
}
}
|
D
|
/Users/sijo/Desktop/test2/Build/Intermediates/ULCH.build/Debug-iphonesimulator/ULCH.build/Objects-normal/x86_64/ULSignUpViewController.o : /Users/sijo/Desktop/test2/ULCH/DashBoard/PresentedViewController.swift /Users/sijo/Desktop/test2/ULCH/CoreData/LocImageDetails+CoreDataClass.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULDashBoardTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/ViewController.swift /Users/sijo/Desktop/test2/ULCH/UserRegistration/ULSignUpViewController.swift /Users/sijo/Desktop/test2/ULCH/AppDelegate.swift /Users/sijo/Desktop/test2/ULCH/CountryView.swift /Users/sijo/Desktop/test2/ULCH/CoreData/SensorDetails+CoreDataProperties.swift /Users/sijo/Desktop/test2/ULCH/AlertDisplay/ULLoadingActivity.swift /Users/sijo/Desktop/test2/ULCH/UserRegistration/ULLoginViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULChangePasswordViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubSettingsTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorListTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/CoreData/HubDetails+CoreDataClass.swift /Users/sijo/Desktop/test2/ULCH/CoreData/LocImageDetails+CoreDataProperties.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULLocListTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULUrlManager.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubListViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULDashBoardViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULUserListTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULConstants.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorDetailsViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULProfileEditTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/CountryPicker.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/SideMenuTableView.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULErrorManager.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULUpdateMobilePhoneViewController.swift /Users/sijo/Desktop/test2/ULCH/AlertDisplay/ULAlertDisplay.swift /Users/sijo/Desktop/test2/ULCH/CoreData/CoreDataStack.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubTextfieldTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/CoreData/SensorDetails+CoreDataClass.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULUserListViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubCollectionViewCell.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULRequestManager.swift /Users/sijo/Desktop/test2/ULCH/ULHubSettingsViewController.swift /Users/sijo/Desktop/test2/ULCH/UserRegistration/ULOTPViewController.swift /Users/sijo/Desktop/test2/ULCH/API/ULCHManager.swift /Users/sijo/Desktop/test2/ULCH/CoreData/HubDetails+CoreDataProperties.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorDetailTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/ULCommon.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorListViewController.swift /Users/sijo/Desktop/test2/ULCH/ULForgotPasswordViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/sijo/Desktop/test2/ULCH-Bridging-Header.h /Users/sijo/Desktop/test2/ULCH/PhoneNumbers/NBPhoneNumberUtil.h /Users/sijo/Desktop/test2/Pods/Firebase/Core/Sources/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/sijo/Desktop/test2/ULCH/PhoneNumbers/NBPhoneNumberDefines.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFNetworking.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLRequestSerialization.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLResponseSerialization.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFSecurityPolicy.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFNetworkReachabilityManager.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLConnectionOperation.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFHTTPRequestOperation.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFHTTPRequestOperationManager.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLSessionManager.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFHTTPSessionManager.h /Users/sijo/Desktop/test2/ULCH/NetworkConnectivity/ULConnectivity.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/FirebaseInstanceID/Frameworks/frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/sijo/Desktop/test2/Pods/FirebaseInstanceID/Frameworks/frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/sijo/Desktop/test2/Pods/FirebaseInstanceID/Frameworks/frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Headers/FIRMessaging.h /Users/sijo/Desktop/test2/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Headers/FirebaseMessaging.h /Users/sijo/Desktop/test2/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/Firebase/Core/Sources/Firebase.h /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Modules/SideMenu.swiftmodule/x86_64.swiftmodule /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Headers/SideMenu-Swift.h /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Headers/SideMenu-umbrella.h /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Modules/module.modulemap
/Users/sijo/Desktop/test2/Build/Intermediates/ULCH.build/Debug-iphonesimulator/ULCH.build/Objects-normal/x86_64/ULSignUpViewController~partial.swiftmodule : /Users/sijo/Desktop/test2/ULCH/DashBoard/PresentedViewController.swift /Users/sijo/Desktop/test2/ULCH/CoreData/LocImageDetails+CoreDataClass.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULDashBoardTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/ViewController.swift /Users/sijo/Desktop/test2/ULCH/UserRegistration/ULSignUpViewController.swift /Users/sijo/Desktop/test2/ULCH/AppDelegate.swift /Users/sijo/Desktop/test2/ULCH/CountryView.swift /Users/sijo/Desktop/test2/ULCH/CoreData/SensorDetails+CoreDataProperties.swift /Users/sijo/Desktop/test2/ULCH/AlertDisplay/ULLoadingActivity.swift /Users/sijo/Desktop/test2/ULCH/UserRegistration/ULLoginViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULChangePasswordViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubSettingsTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorListTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/CoreData/HubDetails+CoreDataClass.swift /Users/sijo/Desktop/test2/ULCH/CoreData/LocImageDetails+CoreDataProperties.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULLocListTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULUrlManager.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubListViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULDashBoardViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULUserListTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULConstants.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorDetailsViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULProfileEditTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/CountryPicker.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/SideMenuTableView.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULErrorManager.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULUpdateMobilePhoneViewController.swift /Users/sijo/Desktop/test2/ULCH/AlertDisplay/ULAlertDisplay.swift /Users/sijo/Desktop/test2/ULCH/CoreData/CoreDataStack.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubTextfieldTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/CoreData/SensorDetails+CoreDataClass.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULUserListViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubCollectionViewCell.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULRequestManager.swift /Users/sijo/Desktop/test2/ULCH/ULHubSettingsViewController.swift /Users/sijo/Desktop/test2/ULCH/UserRegistration/ULOTPViewController.swift /Users/sijo/Desktop/test2/ULCH/API/ULCHManager.swift /Users/sijo/Desktop/test2/ULCH/CoreData/HubDetails+CoreDataProperties.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorDetailTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/ULCommon.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorListViewController.swift /Users/sijo/Desktop/test2/ULCH/ULForgotPasswordViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/sijo/Desktop/test2/ULCH-Bridging-Header.h /Users/sijo/Desktop/test2/ULCH/PhoneNumbers/NBPhoneNumberUtil.h /Users/sijo/Desktop/test2/Pods/Firebase/Core/Sources/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/sijo/Desktop/test2/ULCH/PhoneNumbers/NBPhoneNumberDefines.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFNetworking.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLRequestSerialization.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLResponseSerialization.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFSecurityPolicy.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFNetworkReachabilityManager.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLConnectionOperation.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFHTTPRequestOperation.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFHTTPRequestOperationManager.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLSessionManager.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFHTTPSessionManager.h /Users/sijo/Desktop/test2/ULCH/NetworkConnectivity/ULConnectivity.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/FirebaseInstanceID/Frameworks/frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/sijo/Desktop/test2/Pods/FirebaseInstanceID/Frameworks/frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/sijo/Desktop/test2/Pods/FirebaseInstanceID/Frameworks/frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Headers/FIRMessaging.h /Users/sijo/Desktop/test2/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Headers/FirebaseMessaging.h /Users/sijo/Desktop/test2/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/Firebase/Core/Sources/Firebase.h /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Modules/SideMenu.swiftmodule/x86_64.swiftmodule /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Headers/SideMenu-Swift.h /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Headers/SideMenu-umbrella.h /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Modules/module.modulemap
/Users/sijo/Desktop/test2/Build/Intermediates/ULCH.build/Debug-iphonesimulator/ULCH.build/Objects-normal/x86_64/ULSignUpViewController~partial.swiftdoc : /Users/sijo/Desktop/test2/ULCH/DashBoard/PresentedViewController.swift /Users/sijo/Desktop/test2/ULCH/CoreData/LocImageDetails+CoreDataClass.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULDashBoardTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/ViewController.swift /Users/sijo/Desktop/test2/ULCH/UserRegistration/ULSignUpViewController.swift /Users/sijo/Desktop/test2/ULCH/AppDelegate.swift /Users/sijo/Desktop/test2/ULCH/CountryView.swift /Users/sijo/Desktop/test2/ULCH/CoreData/SensorDetails+CoreDataProperties.swift /Users/sijo/Desktop/test2/ULCH/AlertDisplay/ULLoadingActivity.swift /Users/sijo/Desktop/test2/ULCH/UserRegistration/ULLoginViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULChangePasswordViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubSettingsTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorListTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/CoreData/HubDetails+CoreDataClass.swift /Users/sijo/Desktop/test2/ULCH/CoreData/LocImageDetails+CoreDataProperties.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULLocListTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULUrlManager.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubListViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULDashBoardViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULUserListTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULConstants.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorDetailsViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULProfileEditTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/CountryPicker.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/SideMenuTableView.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULErrorManager.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULUpdateMobilePhoneViewController.swift /Users/sijo/Desktop/test2/ULCH/AlertDisplay/ULAlertDisplay.swift /Users/sijo/Desktop/test2/ULCH/CoreData/CoreDataStack.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubTextfieldTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/CoreData/SensorDetails+CoreDataClass.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULUserListViewController.swift /Users/sijo/Desktop/test2/ULCH/DashBoard/ULHubCollectionViewCell.swift /Users/sijo/Desktop/test2/ULCH/Manager/ULRequestManager.swift /Users/sijo/Desktop/test2/ULCH/ULHubSettingsViewController.swift /Users/sijo/Desktop/test2/ULCH/UserRegistration/ULOTPViewController.swift /Users/sijo/Desktop/test2/ULCH/API/ULCHManager.swift /Users/sijo/Desktop/test2/ULCH/CoreData/HubDetails+CoreDataProperties.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorDetailTableViewCell.swift /Users/sijo/Desktop/test2/ULCH/ULCommon.swift /Users/sijo/Desktop/test2/ULCH/SensorDetails/ULSensorListViewController.swift /Users/sijo/Desktop/test2/ULCH/ULForgotPasswordViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/sijo/Desktop/test2/ULCH-Bridging-Header.h /Users/sijo/Desktop/test2/ULCH/PhoneNumbers/NBPhoneNumberUtil.h /Users/sijo/Desktop/test2/Pods/Firebase/Core/Sources/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/sijo/Desktop/test2/ULCH/PhoneNumbers/NBPhoneNumberDefines.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFNetworking.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLRequestSerialization.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLResponseSerialization.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFSecurityPolicy.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFNetworkReachabilityManager.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLConnectionOperation.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFHTTPRequestOperation.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFHTTPRequestOperationManager.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFURLSessionManager.h /Users/sijo/Desktop/test2/ULCH/Networks/AFNetworking/AFHTTPSessionManager.h /Users/sijo/Desktop/test2/ULCH/NetworkConnectivity/ULConnectivity.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/sijo/Desktop/test2/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/sijo/Desktop/test2/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/FirebaseInstanceID/Frameworks/frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/sijo/Desktop/test2/Pods/FirebaseInstanceID/Frameworks/frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/sijo/Desktop/test2/Pods/FirebaseInstanceID/Frameworks/frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Headers/FIRMessaging.h /Users/sijo/Desktop/test2/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Headers/FirebaseMessaging.h /Users/sijo/Desktop/test2/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Modules/module.modulemap /Users/sijo/Desktop/test2/Pods/Firebase/Core/Sources/Firebase.h /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Modules/SideMenu.swiftmodule/x86_64.swiftmodule /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Headers/SideMenu-Swift.h /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Headers/SideMenu-umbrella.h /Users/sijo/Desktop/test2/Build/Products/Debug-iphonesimulator/SideMenu/SideMenu.framework/Modules/module.modulemap
|
D
|
United States filmmaker whose works explore the richness of black culture in America (born in 1957)
United States striptease artist who became famous on Broadway in the 1930s (1914-1970)
United States actor who was an expert in kung fu and starred in martial arts films (1941-1973)
United States physicist (born in China) who collaborated with Yang Chen Ning in disproving the principle of conservation of parity (born in 1926)
leader of the American Revolution who proposed the resolution calling for independence of the American Colonies (1732-1794)
soldier of the American Revolution (1756-1818)
American general who led the Confederate Armies in the American Civil War (1807-1870)
the side of something that is sheltered from the wind
towards the side away from the wind
|
D
|
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Routing.build/ParametersContainer.swift.o : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/Branch.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/ParametersContainer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteBuilder+RouteCollection.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteBuilder+RouteGroup.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteBuilder.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteCollection.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteGroup+RouteBuilder.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteGroup.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/Router+Routes.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/Router.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/libc.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.swiftmodule
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Routing.build/ParametersContainer~partial.swiftmodule : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/Branch.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/ParametersContainer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteBuilder+RouteCollection.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteBuilder+RouteGroup.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteBuilder.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteCollection.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteGroup+RouteBuilder.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteGroup.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/Router+Routes.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/Router.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/libc.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.swiftmodule
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Routing.build/ParametersContainer~partial.swiftdoc : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/Branch.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/ParametersContainer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteBuilder+RouteCollection.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteBuilder+RouteGroup.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteBuilder.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteCollection.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteGroup+RouteBuilder.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/RouteGroup.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/Router+Routes.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Routing-1.0.2/Sources/Routing/Router.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/libc.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.swiftmodule
|
D
|
/* THIS FILE GENERATED BY bcd.gen */
module bcd.fltk.Fl_Overlay_Window;
public import bcd.bind;
public import bcd.fltk.Fl_Double_Window;
public import bcd.fltk.Fl_Window;
public import bcd.fltk.Fl_Group;
public import bcd.fltk.Fl_Widget;
public import bcd.fltk.Enumerations;
extern (C) void _BCD_delete_17Fl_Overlay_Window(void *);
extern (C) void _BCD__ZN17Fl_Overlay_Window4showEv(void *This);
extern (C) void _BCD__ZN17Fl_Overlay_Window5flushEv(void *This);
extern (C) void _BCD__ZN17Fl_Overlay_Window4hideEv(void *This);
extern (C) void _BCD__ZN17Fl_Overlay_Window6resizeEiiii(void *This, int, int, int, int);
extern (C) int _BCD__ZN17Fl_Overlay_Window14can_do_overlayEv(void *This);
extern (C) void _BCD__ZN17Fl_Overlay_Window14redraw_overlayEv(void *This);
extern (C) void _BCD__ZN17Fl_Overlay_Window4showEiPPc(void *This, int, char * *);
alias void function(Fl_Widget *, int) _BCD_func__14;
alias void function(Fl_Widget *) _BCD_func__16;
alias void function(Fl_Widget *, void *) _BCD_func__20;
class Fl_Overlay_Window : Fl_Double_Window {
this(ifloat ignore) {
super(ignore);
}
this(ifloat ignore, void *x) {
super(ignore);
__C_data = x;
__C_data_owned = false;
}
~this() {
if (__C_data && __C_data_owned) _BCD_delete_17Fl_Overlay_Window(__C_data);
__C_data = null;
}
void show() {
_BCD__ZN17Fl_Overlay_Window4showEv(__C_data);
}
void flush() {
_BCD__ZN17Fl_Overlay_Window5flushEv(__C_data);
}
void hide() {
_BCD__ZN17Fl_Overlay_Window4hideEv(__C_data);
}
void resize(int _0, int _1, int _2, int _3) {
_BCD__ZN17Fl_Overlay_Window6resizeEiiii(__C_data, _0, _1, _2, _3);
}
int can_do_overlay() {
return _BCD__ZN17Fl_Overlay_Window14can_do_overlayEv(__C_data);
}
void redraw_overlay() {
_BCD__ZN17Fl_Overlay_Window14redraw_overlayEv(__C_data);
}
void show(int a, char * * b) {
_BCD__ZN17Fl_Overlay_Window4showEiPPc(__C_data, a, b);
}
}
|
D
|
module dmocks.interval;
import dmocks.util;
import std.conv;
import std.exception;
package:
struct Interval
{
bool Valid()
{
return Min <= Max;
}
private int _min;
private int _max;
@property int Min()
{
return _min;
}
@property int Max()
{
return _max;
}
string toString() const
{
if (_min == _max)
return std.conv.to!string(_min);
return std.conv.to!string(_min) ~ ".." ~ std.conv.to!string(_max);
}
this(int min, int max)
{
this._min = min;
this._max = max;
enforceValid();
}
void enforceValid()
{
enforce!MocksSetupException(Valid, "Interval: invalid interval range: " ~ toString());
}
}
unittest
{
Interval t = Interval(1, 2);
assert(to!string(t) == "1..2");
}
unittest
{
Interval t = Interval(1, 1);
assert(to!string(t) == "1");
}
|
D
|
/Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Intermediates/FareDeal.build/Debug-iphonesimulator/FareDeal.build/Objects-normal/x86_64/ProfileModel.o : /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RestaurantDealsVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/StoreVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ProfileModel.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoriteVenue.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RestaurantDealDetaislVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoriteHeaderCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealDetailsVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoritesTVController.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ProfileVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterRestaurantVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ForgotPasswordUserVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterUserVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DataSaving.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FoodCategories.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/CardOverlayView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/GradientView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealsVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RestaurantDetailController.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ForgotPasswordVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/SignInVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/SavedDeal.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/VenueDeal.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/InitialScreenVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/APICalls.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoritesCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealsCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Deals.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Restaurant.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/BusinessDeal.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Venue.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterRestaurantVC2.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/HomeSwipeViewController.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/CustomActivityView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/BusinessHome.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/AuthenticationCalls.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/AppDelegate.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/CardContentView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/SignInUserVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealHeaderCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Constants.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Validation.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealCardCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterRestaurantVC3.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Reachability.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Swift.swiftmodule /Users/angelasmith/Desktop/Develop/FareDeal/FareDeal/FareDeal-Bridging-Header.h /Users/angelasmith/Desktop/Develop/FareDeal/FareDeal/TTTAttributedLabel.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreImage.swiftmodule /Users/angelasmith/Desktop/Develop/FareDeal/FareDeal/TTCounterLabel.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Modules/RealmSwift.swiftmodule/x86_64.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMRealm_Dynamic.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMRealmUtil.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMMigration_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMListBase.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMSchema.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMResults.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMRealm.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMConstants.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMProperty.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMPlatform.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMObjectSchema.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMObjectBase.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMObject.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMMigration.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMDefines.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMCollection.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMArray.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/Realm.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Headers/RealmSwift-Swift.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Headers/RealmSwift-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/SWActionSheet.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetStringPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetLocalePicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/DistancePickerView.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetDistancePicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetDatePicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPickerDelegate.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/AbstractActionSheetPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker-3.0-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/AssetsLibrary.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Modules/Koloda.swiftmodule/x86_64.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Headers/Koloda-Swift.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Headers/Koloda-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPLayerExtras.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPDecayAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPCustomAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPBasicAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimator.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPPropertyAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPSpringAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPDefines.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimationExtras.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPGeometry.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimationEvent.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimationTracer.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimatableProperty.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POP.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/pop-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/KeyboardManager.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIView+IQKeyboardToolbar.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQToolbar.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQTitleBarButtonItem.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQBarButtonItem.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQTextView.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQSegmentedNextPrevious.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardReturnKeyHandler.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManager.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManagerConstantsInternal.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIWindow+Hierarchy.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIViewController+Additions.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManagerConstants.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIView+Hierarchy.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUITextFieldView+Additions.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQNSArray+Sort.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManager-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Modules/module.modulemap
/Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Intermediates/FareDeal.build/Debug-iphonesimulator/FareDeal.build/Objects-normal/x86_64/ProfileModel~partial.swiftmodule : /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RestaurantDealsVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/StoreVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ProfileModel.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoriteVenue.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RestaurantDealDetaislVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoriteHeaderCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealDetailsVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoritesTVController.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ProfileVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterRestaurantVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ForgotPasswordUserVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterUserVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DataSaving.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FoodCategories.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/CardOverlayView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/GradientView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealsVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RestaurantDetailController.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ForgotPasswordVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/SignInVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/SavedDeal.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/VenueDeal.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/InitialScreenVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/APICalls.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoritesCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealsCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Deals.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Restaurant.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/BusinessDeal.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Venue.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterRestaurantVC2.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/HomeSwipeViewController.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/CustomActivityView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/BusinessHome.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/AuthenticationCalls.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/AppDelegate.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/CardContentView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/SignInUserVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealHeaderCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Constants.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Validation.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealCardCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterRestaurantVC3.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Reachability.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Swift.swiftmodule /Users/angelasmith/Desktop/Develop/FareDeal/FareDeal/FareDeal-Bridging-Header.h /Users/angelasmith/Desktop/Develop/FareDeal/FareDeal/TTTAttributedLabel.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreImage.swiftmodule /Users/angelasmith/Desktop/Develop/FareDeal/FareDeal/TTCounterLabel.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Modules/RealmSwift.swiftmodule/x86_64.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMRealm_Dynamic.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMRealmUtil.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMMigration_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMListBase.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMSchema.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMResults.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMRealm.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMConstants.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMProperty.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMPlatform.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMObjectSchema.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMObjectBase.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMObject.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMMigration.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMDefines.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMCollection.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMArray.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/Realm.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Headers/RealmSwift-Swift.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Headers/RealmSwift-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/SWActionSheet.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetStringPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetLocalePicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/DistancePickerView.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetDistancePicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetDatePicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPickerDelegate.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/AbstractActionSheetPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker-3.0-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/AssetsLibrary.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Modules/Koloda.swiftmodule/x86_64.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Headers/Koloda-Swift.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Headers/Koloda-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPLayerExtras.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPDecayAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPCustomAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPBasicAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimator.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPPropertyAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPSpringAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPDefines.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimationExtras.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPGeometry.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimationEvent.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimationTracer.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimatableProperty.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POP.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/pop-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/KeyboardManager.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIView+IQKeyboardToolbar.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQToolbar.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQTitleBarButtonItem.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQBarButtonItem.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQTextView.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQSegmentedNextPrevious.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardReturnKeyHandler.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManager.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManagerConstantsInternal.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIWindow+Hierarchy.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIViewController+Additions.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManagerConstants.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIView+Hierarchy.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUITextFieldView+Additions.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQNSArray+Sort.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManager-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Modules/module.modulemap
/Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Intermediates/FareDeal.build/Debug-iphonesimulator/FareDeal.build/Objects-normal/x86_64/ProfileModel~partial.swiftdoc : /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RestaurantDealsVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/StoreVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ProfileModel.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoriteVenue.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RestaurantDealDetaislVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoriteHeaderCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealDetailsVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoritesTVController.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ProfileVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterRestaurantVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ForgotPasswordUserVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterUserVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DataSaving.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FoodCategories.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/CardOverlayView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/GradientView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealsVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RestaurantDetailController.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/ForgotPasswordVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/SignInVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/SavedDeal.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/VenueDeal.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/InitialScreenVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/APICalls.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/FavoritesCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealsCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Deals.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Restaurant.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/BusinessDeal.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Venue.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterRestaurantVC2.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/HomeSwipeViewController.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/CustomActivityView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/BusinessHome.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/AuthenticationCalls.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/AppDelegate.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/CardContentView.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/SignInUserVC.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealHeaderCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Constants.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Validation.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/DealCardCell.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/RegisterRestaurantVC3.swift /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/FareDeal/Reachability.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Swift.swiftmodule /Users/angelasmith/Desktop/Develop/FareDeal/FareDeal/FareDeal-Bridging-Header.h /Users/angelasmith/Desktop/Develop/FareDeal/FareDeal/TTTAttributedLabel.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreImage.swiftmodule /Users/angelasmith/Desktop/Develop/FareDeal/FareDeal/TTCounterLabel.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Modules/RealmSwift.swiftmodule/x86_64.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMRealm_Dynamic.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMRealmUtil.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMMigration_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMListBase.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMSchema.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMResults.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMRealm.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMConstants.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMProperty.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMPlatform.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMObjectSchema.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMObjectBase.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMObject.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMMigration.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMDefines.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMCollection.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/RLMArray.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Headers/Realm.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Realm.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Headers/RealmSwift-Swift.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Headers/RealmSwift-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/SwiftyJSON.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/SWActionSheet.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetStringPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetLocalePicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/DistancePickerView.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetDistancePicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetDatePicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPickerDelegate.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/AbstractActionSheetPicker.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker-3.0-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/ActionSheetPicker_3_0.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/AssetsLibrary.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Modules/Koloda.swiftmodule/x86_64.swiftmodule /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Headers/Koloda-Swift.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Headers/Koloda-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/Koloda.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPLayerExtras.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPDecayAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPCustomAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPBasicAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimator.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPPropertyAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPSpringAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPDefines.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimationExtras.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPGeometry.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimationEvent.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimationTracer.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimation.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POPAnimatableProperty.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/POP.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Headers/pop-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/pop.framework/Modules/module.modulemap /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/KeyboardManager.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIView+IQKeyboardToolbar.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQToolbar.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQTitleBarButtonItem.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQBarButtonItem.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQTextView.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQSegmentedNextPrevious.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardReturnKeyHandler.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManager.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManagerConstantsInternal.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIWindow+Hierarchy.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIViewController+Additions.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManagerConstants.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUIView+Hierarchy.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQUITextFieldView+Additions.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQNSArray+Sort.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Headers/IQKeyboardManager-umbrella.h /Users/angelasmith/Desktop/SourceTree/Develop2/FareDeal/Build/Products/Debug-iphonesimulator/IQKeyboardManager.framework/Modules/module.modulemap
|
D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.