repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
ablevm/libable | node.h | typedef struct {
atomic_bool sl;
pthread_mutex_t m;
pthread_cond_t v;
able_edge_t *w;
} able_node_t;
int
able_node_init(able_node_t *node);
int
able_node_wait(able_node_t *node, able_edge_t *edge, const struct timespec *time);
int
able_node_post(able_node_t *node, able_edge_t *edge);
|
bestColor/DRTools | Example/DRTools/LFProgressHUD.h | //
// LFProgressHUD.h
// NoticeSheet
//
// Created by libx on 2019/7/26.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LFProgressHUD : NSObject
/// 显示悦淘指示器
+ (void)showYTAlert;
/// 显示文字指示器 (背景可触摸)
+ (void)showAlert:(NSString *)title;
/// 显... |
bestColor/DRTools | Example/DRTools/LFUserDefaults.h | //
// LFUserDefaults.h
// NoticeSheet
//
// Created by libx on 2019/7/26.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LFUserDefaults : NSObject
/// 获取句柄
+ (NSUserDefaults *)standardUserDefaults;
/// 增加缓存到NSUserDefaults
+ (void)setObject:(... |
bestColor/DRTools | Example/DRTools/LFResultCode.h | <reponame>bestColor/DRTools
//
// LFResultCode.h
// NoticeSheet
//
// Created by libx on 2019/7/29.
// Copyright © 2019 LF. All rights reserved.
//
#ifndef LFResultCode_h
#define LFResultCode_h
typedef NS_ENUM(NSInteger, LFResultCode) {
LFResultCodeFailed = -1,
LFResultCodeSuccess = 1,
LFResultCodeSu... |
bestColor/DRTools | Example/Pods/Target Support Files/DRTools/DRTools-umbrella.h | <reponame>bestColor/DRTools
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "DRToolsHeader.h"
#import "LFAlertController.h"
#import "LFAudioTool.h"
#import "LFFileMa... |
bestColor/DRTools | Example/DRTools/LFKeyChain.h | //
// LFKeyChain.h
// NoticeSheet
//
// Created by libx on 2019/5/13.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LFKeyChain : NSObject
/// 获取永久缓存UUID
+ (id)getUUID;
@end
NS_ASSUME_NONNULL_END
|
bestColor/DRTools | Example/DRTools/LFFileManager.h | //
// LFFileManager.h
// NoticeSheet
//
// Created by libx on 2019/7/26.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LFFileManager : NSObject
/// 获取文件句柄
+ (NSFileManager *)fileManager;
/// 创建文件夹
+ (NSString *)createDirectoryAtPath:(NSStri... |
bestColor/DRTools | Example/Pods/Target Support Files/YIIFMDB/YIIFMDB-umbrella.h | <filename>Example/Pods/Target Support Files/YIIFMDB/YIIFMDB-umbrella.h
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "YIIFMDB.h"
#import "YIIParameters.h"
FOUNDAT... |
bestColor/DRTools | Example/DRTools/DRAppDelegate.h | <reponame>bestColor/DRTools
//
// DRAppDelegate.h
// DRTools
//
// Created by <EMAIL> on 03/05/2020.
// Copyright (c) 2020 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface DRAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
bestColor/DRTools | Example/DRTools/LFFMDBManager.h | //
// LFFMDBManager.h
// NoticeSheet
//
// Created by libx on 2019/7/26.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <YIIFMDB/YIIFMDB.h>
NS_ASSUME_NONNULL_BEGIN
@interface LFFMDBManager : NSObject
/// 单例 - 自动创建数据库
+ (id)sharedManager;
/// 创建表(根据模型)
- (BOOL)createTa... |
bestColor/DRTools | Example/DRTools/LFReadBundleTools.h | //
// LFReadBundleTools.h
// NoticeSheet
//
// Created by libx on 2019/8/19.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LFReadBundleTools : NSObject
/**
获取自定义的plist的配置
@param plistPath 文件名字
@param cls_name 类的字符串
@return 返回组装好的Class... |
bestColor/DRTools | Example/DRTools/LFAlertController.h | //
// LFAlertController.h
// NoticeSheet
//
// Created by libx on 2019/7/26.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "LFResultCode.h"
NS_ASSUME_NONNULL_BEGIN
@interface LFAlertController : NSObject
/**
显示 UIAlertController (不带输入框,可以自定义多个菜单)
@note LFResultCod... |
bestColor/DRTools | Example/DRTools/LFPermissionManager.h | //
// LFPermissionManager.h
// NoticeSheet
//
// Created by libx on 2019/8/2.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
/*
Privacy - Camera Usage Description App需要你的权限,才可以访问相机
Privacy - Photo Library Additions Usage Description Ap... |
bestColor/DRTools | Example/Pods/YIIFMDB/YIIFMDB/YIIFMDB/YIIFMDB.h | <reponame>bestColor/DRTools
//
// YIIFMDB.h
// FMDataBaseManager
//
// Created by 刘冲 on 2018/10/22.
// Copyright © 2018年 lc. All rights reserved.
//
// Github: https://github.com/liuchongfaye/YIIFMDB
#import <Foundation/Foundation.h>
#import "YIIParameters.h"
@class FMDatabase;
// 数据库支持的类型(如果不满足条件以下条件,那么在后续会增加)... |
bestColor/DRTools | Example/DRTools/LFAudioTool.h | //
// LFAudioTool.h
// JGTown
//
// Created by libx on 2019/6/20.
// Copyright © 2019 JG. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>
typedef NS_ENUM(NSUInteger, LFAlertSoundType) {
LFAlertSoundTypeMute = 1, // 静音
LFAlertSoundTypeRingtone, ... |
bestColor/DRTools | Example/DRTools/LFImagePickerController.h | <filename>Example/DRTools/LFImagePickerController.h<gh_stars>0
//
// LFImagePickerController.h
// NoticeSheet
//
// Created by libx on 2019/8/20.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, ImagePickerResultCode) {
ImagePickerResultCodeSuccesse... |
bestColor/DRTools | Example/DRTools/LFMessageDistributionCenter.h | //
// LFMessageDistributionCenter.h
// NoticeSheet
//
// Created by libx on 2019/8/20.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
/** 需要添加新的消息类型的话,在这里添加枚举 */
typedef NS_ENUM(NSUInteger, MessageDistributionType) {
MessageDistributionTypeLoginSuccessed = 1,
MessageDist... |
bestColor/DRTools | Example/DRTools/DRViewController.h | <gh_stars>0
//
// DRViewController.h
// DRTools
//
// Created by <EMAIL> on 03/05/2020.
// Copyright (c) 2020 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface DRViewController : UIViewController
@end
|
bestColor/DRTools | Example/Pods/YIIFMDB/YIIFMDB/YIIFMDB/YIIParameters.h | <filename>Example/Pods/YIIFMDB/YIIFMDB/YIIFMDB/YIIParameters.h<gh_stars>10-100
//
// YIIParameters.h
// FMDataBaseManager
//
// Created by 刘冲 on 2018/10/22.
// Copyright © 2018年 lc. All rights reserved.
//
// Github: https://github.com/liuchongfaye/YIIFMDB
#import <Foundation/Foundation.h>
// 参数相关的关系
typedef NS... |
bestColor/DRTools | Example/DRTools/LFRSAEncryptor.h | //
// LFRSAEncryptor.h
// NoticeSheet
//
// Created by libx on 2019/7/26.
// Copyright © 2019 LF. All rights reserved.
//
/* publick_key.der 和 private_key_p12 生成命令行
1、生成公钥私钥。
1)打开终端,在终端中cd到你想保存公钥私钥的文件夹
2)生成模长为1024bit的私钥文件private_key.pem
openssl genrsa -out private_key.pem 1024
3)生成证书请求文件rsaCertReq.... |
bestColor/DRTools | Example/DRTools/DRToolsHeader.h | //
// DRToolsHeader.h
// DRTools
//
// Created by 李风 on 2020/3/5.
// Copyright © 2020 <EMAIL>. All rights reserved.
//
#ifndef DRToolsHeader_h
#define DRToolsHeader_h
#import "LFResultCode.h"
#import "LFAlertController.h"
#import "LFAudioTool.h"
#import "LFFileManager.h"
#import "LFFMDBManager.h"
#import "LFImag... |
bestColor/DRTools | Example/DRTools/LFTimeManager.h | //
// LFTimeManager.h
// NoticeSheet
//
// Created by libx on 2019/7/26.
// Copyright © 2019 LF. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LFTimeManager : NSObject
/**
获取微信格式的时间字符串
@param timeInterval 时间,秒(double类型)
@return 时间字符串(固定格... |
tattn/SwiftyToast | SwiftyToast-iOS/SwiftyToast-iOS.h | //
// SwiftyToast-iOS.h
// SwiftyToast-iOS
//
// Created by <NAME> on 2016/06/05.
//
//
#import <UIKit/UIKit.h>
//! Project version number for SwiftyToast-iOS.
FOUNDATION_EXPORT double SwiftyToast_iOSVersionNumber;
//! Project version string for SwiftyToast-iOS.
FOUNDATION_EXPORT const unsigned char SwiftyToast_i... |
saxbophone/gchq-2015-christmas-challenge | crack.h | #include <stdbool.h>
#include <stdint.h>
// a key is an array specifying a consecutive number of black squares in a row/col
typedef struct {
uint8_t items[9];
} key;
// a set is an array representing a row/col unpacked into 25 items for ease of use
typedef struct {
uint8_t items[25];
} set;
// TODO: Convert... |
saxbophone/gchq-2015-christmas-challenge | times.c | <filename>times.c
#include <stdlib.h>
#include "crack.h"
int main(int argc, char const *argv[]) {
// roughly time how long it takes to find all the valid patterns for a row
key_set r = {
.k = { 1, 7, 3, 1, 1, 2, 0, 0, 0 },
.s = { 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, ... |
saxbophone/gchq-2015-christmas-challenge | count.c | <reponame>saxbophone/gchq-2015-christmas-challenge<filename>count.c
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "crack.h"
#include "puzzle.inc"
int main(int argc, char const *argv[]) {
// show the number of possible combinations for each row and column of a grid
... |
saxbophone/gchq-2015-christmas-challenge | crack.c | <gh_stars>0
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include "crack.h"
uint8_t count_non_zero(uint8_t array[], uint8_t len) {
// count the number of non-zero elements in an array and return it
uint8_t count = 0;
for(uint8_t i = 0; i < len; i++) {
if(array[i... |
saxbophone/gchq-2015-christmas-challenge | grid_combos.c | <reponame>saxbophone/gchq-2015-christmas-challenge
#include <stdio.h>
#include "crack.h"
#include "puzzle.inc"
int main(int argc, char const *argv[]) {
// this tests the function find_valid_combos()
// this function is not tested in the test suite as it takes quite a long
// time to run (roughly 7 minut... |
saxbophone/gchq-2015-christmas-challenge | tests.c | <filename>tests.c<gh_stars>0
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "crack.h"
bool test_set_valid() {
key tk = { { 1, 7, 3, 1, 1, 2, 0, 0, 0 } };
set ts = { { 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0 } };
bool should_be_tr... |
wzv5/VolumeLock | VolumeLock/ComHelper.h | #pragma once
#include <string>
#include <stdexcept>
#include <windows.h>
template <typename T = IUnknown>
class UnknownImp : public T
{
public:
virtual ~UnknownImp() {};
virtual ULONG STDMETHODCALLTYPE AddRef()
{
return InterlockedIncrement(&_cRef);
}
virtual ULONG STDMETHODCALLTYPE Rel... |
wzv5/VolumeLock | VolumeLock/CoreAudioAPI.h | #pragma once
#include <string>
#include <memory>
#include <functional>
#include <filesystem>
#include <set>
#include <mutex>
#include <vector>
#include <map>
#include <optional>
#include <Windows.h>
#include <atlbase.h>
#include <mmdeviceapi.h>
#include <AudioSessionTypes.h>
#include <audiopolicy.h>
#include "ComHe... |
wzv5/VolumeLock | VolumeLock/Log.h | <reponame>wzv5/VolumeLock<gh_stars>1-10
#pragma once
#include <iostream>
#include <string>
#include <chrono>
#include <ctime>
#include <iomanip>
inline void PrintTime()
{
auto now = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
tm t;
localtime_s(&t, &now);
std::cout << std::... |
tkay94/Taiga | test_benches/verilator/AXI_DDR_simulation/axi_ddr_sim.h | /*
* Copyright © 2019 <NAME>,<NAME> <NAME>
*
* 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 ag... |
tkay94/Taiga | test_benches/verilator/TaigaTracer.h | /*
* Copyright © 2019 <NAME>, <NAME>
*
* 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 t... |
NeoChow/swift | include/swift/Syntax/ExprSyntax.h | <filename>include/swift/Syntax/ExprSyntax.h
//===--- ExprSyntax.h - Swift Expression Syntax Interface -------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Lib... |
NeoChow/swift | include/swift/Syntax/DeclSyntax.h | <gh_stars>100-1000
//===--- DeclSyntax.h - Declaration Syntax Interface ------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See ... |
NeoChow/swift | include/swift/Migrator/FixitApplyDiagnosticConsumer.h | <filename>include/swift/Migrator/FixitApplyDiagnosticConsumer.h
//===--- FixitApplyDiagnosticConsumer.h -------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v... |
NeoChow/swift | include/swift/AST/IfConfigClause.h | //===--- IfConfigClause.h ---------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
NeoChow/swift | stdlib/public/SwiftShims/NSIndexSetShims.h | //===--- NSIndexSetShims.h - Foundation declarations for IndexSet overlay -===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
NeoChow/swift | stdlib/public/SwiftShims/KeyPath.h | //===--- KeyPath.h - ABI constants for key path objects ----------*- C++ *-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
NeoChow/swift | include/swift/Syntax/TypeSyntax.h | //===--- TypeSyntax.h - Swift Type Syntax Interface -------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
NeoChow/swift | lib/IRGen/IRGenFunction.h | <reponame>NeoChow/swift
//===--- IRGenFunction.h - IR Generation for Swift Functions ----*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
//... |
NeoChow/swift | test/ClangImporter/Inputs/custom-modules/SwiftName.h | #define SWIFT_NAME(X) __attribute__((swift_name(#X)))
#define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum __attribute__((enum_extensibility(open))) _name : _type
void drawString(const char *, int x, int y) SWIFT_NAME(drawString(_:x:y:));
enum SWIFT_NAME(ColorKind) ColorType {
CT_red,
CT_green,
CT_b... |
NeoChow/swift | test/APINotes/Inputs/custom-frameworks/APINotesFrameworkTest.framework/Headers/Classes.h | <reponame>NeoChow/swift<gh_stars>0
#ifdef __OBJC__
#pragma clang assume_nonnull begin
@interface NewlyGenericSub<Element> : Base
+ (Element)defaultElement;
@end
@interface RenamedGeneric<Element: Base *> : Base
@end
#pragma clang assume_nonnull end
#endif // __OBJC__
|
NeoChow/swift | include/swift/SIL/SILOpenedArchetypesTracker.h | //===--- SILOpenedArchetypesTracker.h - Track opened archetypes -*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
NeoChow/swift | include/swift/Syntax/GenericSyntax.h | <filename>include/swift/Syntax/GenericSyntax.h<gh_stars>100-1000
//===--- GenericSyntax.h - Swift Generic Syntax Interface -------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License ... |
NeoChow/swift | include/swift/Migrator/EditorAdapter.h | //===--- EditorAdapter.h ----------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
NeoChow/swift | include/swift/Syntax/SyntaxCollectionData.h | <reponame>NeoChow/swift<filename>include/swift/Syntax/SyntaxCollectionData.h<gh_stars>100-1000
//===--- SyntaxCollectionData.h ---------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// ... |
NeoChow/swift | include/swift/Syntax/SyntaxFactory.h | <gh_stars>100-1000
//===--- SyntaxFactory.h - Swift Syntax Builder Interface -------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See ... |
NeoChow/swift | test/ClangImporter/Inputs/enum-objc.h | <gh_stars>100-1000
@import Foundation;
#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) __attribute__((enum_extensibility(open))) SWIFT_ENUM_EXTRA _name : _type
t... |
NeoChow/swift | include/swift/Sema/Semantics.h | <gh_stars>100-1000
//===--- Semantics.h - Swift Container for Semantic Info --------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See ... |
NeoChow/swift | include/swift/SIL/SILVTableVisitor.h | <reponame>NeoChow/swift
//===--- SILVTableVisitor.h - Class vtable visitor --------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
//... |
NeoChow/swift | include/swift/Syntax/UnknownSyntax.h | <reponame>NeoChow/swift
//===--- UnknownSyntax.h - Swift Unknown Syntax Interface -------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
//... |
NeoChow/swift | test/APINotes/Inputs/custom-frameworks/APINotesFrameworkTest.framework/Headers/Types.h | #pragma clang assume_nonnull begin
struct __attribute__((swift_name("VeryImportantCStruct"))) SomeCStruct {
int field;
};
typedef int __attribute__((swift_name("VeryImportantCAlias"))) SomeCAlias;
#pragma clang assume_nonnull end
|
NeoChow/swift | test/Migrator/mock-sdk/Bar.framework/Headers/Bar.h | int barFunc1(int a);
int redeclaredInMultipleModulesFunc1(int a);
int barGlobalFunc(int a);
int barGlobalVariable = 1;
int barGlobalVariableOldEnumElement = 1;
int barGlobalFuncOldName(int a);
@interface BarForwardDeclaredClass
- (id)initWithOldLabel0:(int)frame;
- (void) barInstanceFunc0;
- (void) barInstanceFun... |
NeoChow/swift | include/swift/Syntax/Rewriter.h | //===--- Rewriter.h - Swift Syntax Rewriter Interface -----------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
NeoChow/swift | stdlib/public/SwiftShims/CFCharacterSetShims.h | //===--- CFCharacterSetShims.h - Declarations for CF hashing functions ----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
NeoChow/swift | test/APINotes/Inputs/custom-frameworks/APINotesFrameworkTest.framework/Headers/Protocols.h | <reponame>NeoChow/swift
#ifdef __OBJC__
#pragma clang assume_nonnull begin
@class ForwardClass; // used by API notes
@protocol ProtoWithVersionedUnavailableMember
- (nullable id)requirement;
@end
#pragma clang assume_nonnull end
#endif // __OBJC__
|
NeoChow/swift | include/swift/Basic/ExternalUnion.h | <gh_stars>100-1000
//===- ExternalUnion.h - A union with an external discriminator -*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See ... |
umm-csci-3412-fall-2021/lab-3-c-programming-and-arrays-thomas-josh | array_merge/array_merge.c | #include "array_merge.h"
#include "../mergesort/mergesort.c"
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
/*Sees if a number is already in the array*/
int inArray(int* array, int number, int size){
int result = 0;
for(int i = 0; i < size; i++){
if(array[i] == number){
... |
JarvisXing/play-tetris | TetrisWindow.h | #ifndef TETRIS_WINDOW_H
#define TETRIS_WINDOW_H
#include "Box.h"
#include "Block.h"
#include "PlayGround.h"
#include <opencv2/opencv.hpp>
#include <string>
using namespace cv;
class Box;
class Block;
class PlayGround;
class TetrisWindow
{
private:
String m_iWindowName;
//TODO: add a mat as static background,after blo... |
JarvisXing/play-tetris | TypeName.h | #ifndef TYPE_NAME_H
#define TYPE_NAME_H
#include <string>
#include <iostream>
using namespace std;
enum TypeField
{
IN_NONE = 0,
IN_WINDOW,
IN_BLOCK,
IN_PLAYGROUND,
};
enum TypeName
{
I_BLOCK = 0,
T_BLOCK,
L_BLOCK,
J_BLOCK,
S_BLOCK,
Z_BLOCK,
O_BLOCK,
};
enum TypeDir
{
D0 = 0,
D1,
D2,
D3,
};
enum TypeMove... |
JarvisXing/play-tetris | Score.h | <gh_stars>0
#ifndef SCORE_H
#define SCORE_H
#include"TypeColor.h"
#include<string>
#include<opencv2/opencv.hpp>
putText(backGroundImage,
"Game Over!",
Point(50, 200),
1, 3, Scalar(0, 0, 255), 2, 8, false);
imshow(windowname, backGroundImage);
#endif // !SCORE_H
|
JarvisXing/play-tetris | box.h | #ifndef BOX_H
#define BOX_H
#include "BaseEntity.h"
#include "TetrisWindow.h"
#include "Block.h"
#include "PlayGround.h"
#include "TypeName.h"
#include<opencv2/opencv.hpp>
using namespace cv;
class TetrisWindow;
class Block;
class PlayGround;
class Box:public BaseEntity
{
private:
TetrisWindow * m_iWindow;
Block* m_... |
JarvisXing/play-tetris | TypeColor.h | <gh_stars>0
#ifndef TYPE_COLOR_H
#define TYPE_COLOR_H
#include<opencv2/opencv.hpp>
using namespace cv;
//color sequence of opencv is BGR
enum TypeColor
{
RED = 0,
GREEN,
BLUE,
BLACK,
WHITE,
GREY,
};
inline Scalar SetColor(TypeColor pColorName)
{
switch (pColorName)
{
case RED:
return Scalar(0, 0,255);
brea... |
MrPepperoni/Reaping2-1 | tools/texcombiner/tex_combiner.h | <gh_stars>1-10
#ifndef INCLUDED_TEXCOMBINER_TEX_COMBINER_H
#define INCLUDED_TEXCOMBINER_TEX_COMBINER_H
class TexCombiner
{
static const uint16_t mPadding;
struct PhaseDesc
{
std::string action;
uint32_t phase;
uint32_t total;
PhaseDesc( std::string const& a, uint32_t p, uint... |
MrPepperoni/Reaping2-1 | src/core/scene.h | #ifndef INCLUDED_CORE_SCENE_H
#define INCLUDED_CORE_SCENE_H
#include "platform/factory.h"
#include "platform/singleton.h"
#include "core/i_renderable_component.h"
#include "core/actor.h"
#include "collision_class.h"
#include "program_state.h"
#include <vector>
#include <memory>
#include "map_start_event.h"
class Acto... |
MrPepperoni/Reaping2-1 | src/render/particle_system.h | <gh_stars>1-10
#ifndef INCLUDED_ENGINE_PARTICLE_SYSTEM_H
#define INCLUDED_ENGINE_PARTICLE_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
namespace render {
class ParticleSystem : public engine::System
{
public:
DEFINE_SYSTEM_BASE( ParticleSystem )
ParticleSystem();
protected:
virtual void In... |
MrPepperoni/Reaping2-1 | src/core/listen_child_death_component.h | <filename>src/core/listen_child_death_component.h
#ifndef INCLUDED_CORE_LISTEN_CHILD_DEATH_COMPONENT_H
#define INCLUDED_CORE_LISTEN_CHILD_DEATH_COMPONENT_H
#include "i_listen_child_death_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class ListenChildDeathComponent : public IListenChildDe... |
MrPepperoni/Reaping2-1 | src/core/pointer_target_controller_component.h | <filename>src/core/pointer_target_controller_component.h
#ifndef INCLUDED_CORE_POINTER_TARGET_CONTROLLER_COMPONENT_H
#define INCLUDED_CORE_POINTER_TARGET_CONTROLLER_COMPONENT_H
#include "controller_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class PointerTargetControllerComponent : pub... |
MrPepperoni/Reaping2-1 | src/engine/explode_on_hit_system.h | <gh_stars>1-10
#ifndef INCLUDED_ENGINE_EXPLODE_ON_HIT_SYSTEM_H
#define INCLUDED_ENGINE_EXPLODE_ON_HIT_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
namespace engine {
class ExplodeOnHitSystem : public System
{
public:
DEFINE_SYSTEM_BASE( ExplodeOnHitSystem )
ExplodeOnHitSystem();
protected:
... |
MrPepperoni/Reaping2-1 | src/engine/soldier_properties_ready_event.h | #ifndef INCLUDED_ENGINE_SOLDIER_PROPERTIES_READY_EVENT_H
#define INCLUDED_ENGINE_SOLDIER_PROPERTIES_READY_EVENT_H
#include "platform/event.h"
namespace engine {
struct SoldierPropertiesReadyEvent : public platform::Event
{
SoldierPropertiesReadyEvent() {}
};
} // namespace engine
#endif//INCLUDED_ENGINE_SOLDIE... |
MrPepperoni/Reaping2-1 | src/core/cloak_component.h | <reponame>MrPepperoni/Reaping2-1<gh_stars>1-10
#ifndef INCLUDED_CORE_CLOAK_COMPONENT_H
#define INCLUDED_CORE_CLOAK_COMPONENT_H
#include "i_cloak_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class CloakComponent : public ICloakComponent
{
public:
CloakComponent();
virtual void Se... |
MrPepperoni/Reaping2-1 | src/core/kill_score_on_death_component.h | <filename>src/core/kill_score_on_death_component.h
#ifndef INCLUDED_CORE_KILL_SCORE_ON_DEATH_COMPONENT_H
#define INCLUDED_CORE_KILL_SCORE_ON_DEATH_COMPONENT_H
#include "i_kill_score_on_death_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class KillScoreOnDeathComponent : public IKillScore... |
MrPepperoni/Reaping2-1 | src/core/map/room_cell_editor_system.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_MAP_ROOM_CELL_EDITOR_SYSTEM_H
#define INCLUDED_MAP_ROOM_CELL_EDITOR_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "editor_mode_changed_event.h"
#include "editor_back_event.h"
#include "level_generator/room_desc.h"
#include "input/mouse.h"
#includ... |
MrPepperoni/Reaping2-1 | src/render/action_renderer_loader.h | #ifndef INCLUDED_RENDER_ACTION_RENDERER_LOADER_H
#define INCLUDED_RENDER_ACTION_RENDERER_LOADER_H
#include "core/property_loader.h"
namespace render {
class ActionRenderer;
}
namespace render {
template<typename ACTION_RENDERER>
class ActionRendererLoader : public PropertyLoader<ACTION_RENDERER, render::ActionRen... |
MrPepperoni/Reaping2-1 | src/core/map/property_editor_system.h | #ifndef INCLUDED_MAP_PROPERTY_EDITOR_SYSTEM_H
#define INCLUDED_MAP_PROPERTY_EDITOR_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "editor_mode_changed_event.h"
#include "editor_back_event.h"
namespace map {
class PropertyEditorSystem : public engine::System
{
public:
DEFINE_SYSTEM_BASE(Prop... |
MrPepperoni/Reaping2-1 | src/core/map/soldier_auto_revive_map_element_system.h | #ifndef INCLUDED_MAP_SOLDIER_AUTO_REVIVE_MAP_ELEMENT_SYSTEM_H
#define INCLUDED_MAP_SOLDIER_AUTO_REVIVE_MAP_ELEMENT_SYSTEM_H
#include "core/map/map_element_system.h"
namespace map {
class SoldierAutoReviveMapElementSystem : public MapElementSystem
{
public:
DEFINE_SYSTEM_BASE( SoldierAutoReviveMapElementSystem )
... |
MrPepperoni/Reaping2-1 | src/core/map/matrix_grid.h | #ifndef INCLUDED_CORE_MAP_MATRIX_GRID_H
#define INCLUDED_CORE_MAP_MATRIX_GRID_H
#include "i_grid.h"
#include "core/scene.h"
#include "../border_type.h"
namespace map {
class MatrixGrid: public IGrid
{
protected:
glm::vec2 GetPositionOnMatrix( glm::vec2 position );
public:
MatrixGrid( int32_t Id );
virtua... |
MrPepperoni/Reaping2-1 | src/engine/drop_on_death_system.h | <reponame>MrPepperoni/Reaping2-1<filename>src/engine/drop_on_death_system.h<gh_stars>1-10
#ifndef INCLUDED_ENGINE_DROP_ON_DEATH_SYSTEM_H
#define INCLUDED_ENGINE_DROP_ON_DEATH_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "core/actor_factory.h"
namespace engine {
class DropOnDeathSystem : publi... |
MrPepperoni/Reaping2-1 | src/core/i_kill_score_on_death_component.h | <filename>src/core/i_kill_score_on_death_component.h
#ifndef INCLUDED_CORE_I_KILL_SCORE_ON_DEATH_COMPONENT_H
#define INCLUDED_CORE_I_KILL_SCORE_ON_DEATH_COMPONENT_H
#include "component.h"
#include "platform/export.h"
class IKillScoreOnDeathComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( IKillScoreOn... |
MrPepperoni/Reaping2-1 | src/core/rotate_component.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_ROTATE_COMPONENT_H
#define INCLUDED_CORE_ROTATE_COMPONENT_H
#include "i_rotate_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class RotateComponent : public IRotateComponent
{
public:
RotateComponent();
virtual void SetSpeed(d... |
MrPepperoni/Reaping2-1 | src/ui/ui_model.h | #pragma once
#ifndef INCLUDED_UI_MODEL_H
#define INCLUDED_UI_MODEL_H
#include "platform/model_value.h"
#include <boost/ptr_container/ptr_vector.hpp>
#include "platform/singleton.h"
namespace ui {
class UiModel : public platform::Singleton<UiModel>, public platform::ModelValue
{
friend class platform::Singleton<U... |
MrPepperoni/Reaping2-1 | src/platform/cache.h | <reponame>MrPepperoni/Reaping2-1<gh_stars>1-10
#ifndef INCLUDED_PLATFORM_CACHE_H
#define INCLUDED_PLATFORM_CACHE_H
#include "auto_id.h"
#include "log.h"
#include <boost/shared_ptr.hpp>
#include <boost/unordered_map.hpp>
#include "rstdint.h"
#include <boost/filesystem/path.hpp>
namespace platform {
template<typename... |
MrPepperoni/Reaping2-1 | src/core/map/level_generator/i_room.h | #ifndef INCLUDED_MAP_I_ROOM_H
#define INCLUDED_MAP_I_ROOM_H
#include "platform/i_platform.h"
#include "room_desc.h"
#include "../../scene.h"
#include "../map_element_factory.h"
#include "../map_element.h"
#include "../soldier_spawn_point_map_element.h"
#include "../map_system.h"
#include "i_property.h"
namespace map ... |
MrPepperoni/Reaping2-1 | src/core/i_border_component.h | <reponame>MrPepperoni/Reaping2-1<gh_stars>1-10
#ifndef INCLUDED_CORE_I_BORDER_COMPONENT_H
#define INCLUDED_CORE_I_BORDER_COMPONENT_H
#include "component.h"
#include "border_type.h"
#include <vector>
#include "platform/export.h"
class IBorderComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( IBorderComp... |
MrPepperoni/Reaping2-1 | src/core/static_actor_component.h | <filename>src/core/static_actor_component.h
#ifndef INCLUDED_CORE_STATIC_ACTOR_COMPONENT_H
#define INCLUDED_CORE_STATIC_ACTOR_COMPONENT_H
#include "i_static_actor_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class StaticActorComponent : public IStaticActorComponent
{
public:
StaticA... |
MrPepperoni/Reaping2-1 | src/render/damage_particles.h | #ifndef INCLUDED_RENDER_DAMAGE_DECALS_H
#define INCLUDED_RENDER_DAMAGE_DECALS_H
#include "platform/i_platform.h"
#include "core/damage_taken_event.h"
#include "decal_engine.h"
class DamageDecals : public Singleton<DamageDecals>
{
DecalEngine& mDecalEngine;
DamageDecals();
void Load();
friend class Sin... |
MrPepperoni/Reaping2-1 | src/render/leg_move_recognizer.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_RENDER_LEG_MOVE_RECOGNIZER_H
#define INCLUDED_RENDER_LEG_MOVE_RECOGNIZER_H
#include "platform/i_platform.h"
#include "render/recognizer.h"
namespace render {
class LegMoveRecognizer: public Recognizer
{
public:
LegMoveRecognizer( int32_t Id );
virtual bool Reco... |
MrPepperoni/Reaping2-1 | src/core/guard_controller_component.h | #ifndef INCLUDED_CORE_GUARD_CONTROLLER_COMPONENT_H
#define INCLUDED_CORE_GUARD_CONTROLLER_COMPONENT_H
#include "controller_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class GuardControllerComponent : public ControllerComponent
{
public:
enum Direction
{
Left = 0,
... |
MrPepperoni/Reaping2-1 | src/core/activity_grid.h | <gh_stars>1-10
#ifndef INCLUDED_CORE_ACTIVITY_GRID_H
#define INCLUDED_CORE_ACTIVITY_GRID_H
#include "grid_template.h"
#include "activity_traits.h"
typedef GridTemplate<core::ActivityTraits> ActivityGrid;
#endif // INCLUDED_CORE_ACTIVITY_GRID_H
|
MrPepperoni/Reaping2-1 | src/core/i_emitter_component.h | <reponame>MrPepperoni/Reaping2-1<gh_stars>1-10
#ifndef INCLUDED_CORE_I_EMITTER_COMPONENT_H
#define INCLUDED_CORE_I_EMITTER_COMPONENT_H
#include "component.h"
#include "platform/export.h"
class IEmitterComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( IEmitterComponent )
virtual std::vector<int32_t... |
MrPepperoni/Reaping2-1 | src/platform/register.h | <filename>src/platform/register.h
#ifndef INCLUDED_PLATFORM_REGISTER_H
#define INCLUDED_PLATFORM_REGISTER_H
#include <memory>
namespace platform {
namespace reg_detail {
class RegistryImpl;
}
class Registration
{
friend class reg_detail::RegistryImpl;
reg_detail::RegistryImpl* mRegister;
void* mData;
... |
MrPepperoni/Reaping2-1 | src/core/i_audible_component.h | <gh_stars>1-10
#ifndef INCLUDED_CORE_I_AUDIBLE_COMPONENT_H
#define INCLUDED_CORE_I_AUDIBLE_COMPONENT_H
#include "component.h"
#include "platform/export.h"
struct AudibleEffectDesc
{
static const int32_t TTL_Infinity;
int32_t UID;
int32_t Id;
int32_t TTL;
bool AutoLoopUntilDeath;
AudibleEffectD... |
MrPepperoni/Reaping2-1 | src/core/fade_out_component.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_FADE_OUT_COMPONENT_H
#define INCLUDED_CORE_FADE_OUT_COMPONENT_H
#include "core/i_fade_out_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class FadeOutComponent : public IFadeOutComponent
{
public:
virtual void Update( double Secon... |
MrPepperoni/Reaping2-1 | src/core/i_rotate_component.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_I_ROTATE_COMPONENT_H
#define INCLUDED_CORE_I_ROTATE_COMPONENT_H
#include "component.h"
class IRotateComponent : public Component
{
public:
DEFINE_COMPONENT_BASE(IRotateComponent)
virtual void SetSpeed(double speed)=0;
virtual double GetSpeed... |
MrPepperoni/Reaping2-1 | src/audio/vorbis_file.h | #ifndef INCLUDED_AUDIO_VORBIS_FILE_H
#define INCLUDED_AUDIO_VORBIS_FILE_H
#include "i_audio.h"
class VorbisFileCache;
class VorbisFile
{
friend class VorbisFileCache;
enum Status
{
St_None,
St_Loading,
St_Closed,
};
OggVorbis_File mVorbisFile;
vorbis_info mInfo;
Au... |
MrPepperoni/Reaping2-1 | src/core/map/spawn_soldiers_map_element_system.h | <filename>src/core/map/spawn_soldiers_map_element_system.h
#ifndef INCLUDED_MAP_SPAWN_SOLDIERS_MAP_ELEMENT_SYSTEM_H
#define INCLUDED_MAP_SPAWN_SOLDIERS_MAP_ELEMENT_SYSTEM_H
#include "core/map/map_element_system.h"
namespace map {
class SpawnSoldiersMapElementSystem : public MapElementSystem
{
public:
DEFINE_SYST... |
MrPepperoni/Reaping2-1 | src/render/camera.h | #ifndef INCLUDED_RENDER_CAMERA_H
#define INCLUDED_RENDER_CAMERA_H
#include "platform/i_platform.h"
#include "projection.h"
class Camera
{
protected:
glm::mat4 mView;
glm::mat4 mInverseView;
glm::vec2 mCenter;
Projection const& mProjection;
void UpdateMatrices();
public:
Camera( Projection const... |
MrPepperoni/Reaping2-1 | src/network/team_switch_request_message.h | <filename>src/network/team_switch_request_message.h
#ifndef INCLUDED_NETWORK_TEAM_SWITCH_REQUEST_H
#define INCLUDED_NETWORK_TEAM_SWITCH_REQUEST_H
#include "network/message.h"
#include "network/message_handler_sub_system.h"
#include "network/message_sender_system.h"
#include "network/team_switch_request_event.h"
#inclu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.