text stringlengths 4 6.14k |
|---|
////////////////////////////////////////////////////////////////////////////////
/// RsFlash.h
#pragma once
#include "BaResource.h"
#include "MtVector2.h"
#include "RsColour.h"
// Class Declaration
class RsFlash : public BaResource
{
DECLARE_RESOURCETYPE( BaRT_Flash );
public:
virtual void Reset() = 0;
virtua... |
/* Copyright (c) 2012 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(S) DI... |
/*
* Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "A... |
/*
MIT License
Copyright (c) 2016 Josh Walters (josh@joshwalters.com)
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, mo... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "UISearchBarDelegate-Protocol.h"
@protocol SUSearchBarDelegate <UISearchBarDelegate>
@optional
- (void)searchBarWillRemoveFromSuperview:(id)arg1;
@end
|
// This file was generated based on 'C:\ProgramData\Uno\Packages\Android\0.13.2\Android\android\graphics\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#ifndef __APP_ANDROID_ANDROID_GRAPHICS_PAINT_D_L_R_STYLE_H__
#define __APP_ANDROID_ANDROID_GRAPHICS_PAINT_D_L_R_STYLE_H__
#include <app/And... |
//
// SSTTableViewUpdater.h
// TableMadness
//
// Created by Brennan Stehling on 5/4/14.
// Copyright (c) 2014 SmallSharpTools LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol TableViewDataRow;
@protocol SSTTableViewUpdaterDelegate;
@interface SSTTableViewUpdater : NSObject
@property (w... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
@class BKSApplicationProcessInfo;
@interface BKSWorkspaceApplicationInfo : NSObject
{
BKSApplicationProcessInfo *_info;
_Bool _recordingAudio;
... |
#ifndef _OSCILLATOR_H_
#define _OSCILLATOR_H_
#include "Timer.h"
class Oscillator {
public:
Oscillator(float initialValue, float moveAmount, float minValue, float maxValue, bool oscil, float seconds);
void update();
float getValue() const;
void setValue(float val);
private:
float value, amount;
float min, max;
... |
/*
* Copyright (C) 2010 Google Inc. 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 condit... |
#include "test.h"
void test_0_lt_1(void)
{
myvm_stack_push(&vm, 0);
myvm_stack_push(&vm, 1);
myvm_lt(&vm);
CU_ASSERT_EQUAL(vm.sb[vm.sp], 1);
}
TEST_SUITE("myvm_lt",
(NULL == CU_add_test(pSuite, "0 lower than 1", test_0_lt_1))
) |
/****************************************************************************
Author/Copyright: Jochen Willneff
Address: Institute of Geodesy and Photogrammetry
ETH - Hoenggerberg
CH - 8093 Zurich
Creation Date: end of 97
Description: different drawing fun... |
/* specfunc/gsl_sf_laguerre.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (a... |
#include <stdio.h>
#include <stdlib.h>
#include "graph.h"
long int get_min_dist_node(long int *Q, unsigned long int *dist, unsigned sz)
{ /* We're actually looking for the index of the node in Q */
long int p = -1, i = 0;
unsigned long int g = (unsigned long int) -1l;
while (i < sz) {
if (dist[i] < g && Q[i] >= ... |
//
// BufferScanner.h
// test
//
// Created by Andrew Carter on 7/26/13.
// Copyright (c) 2013 PinchStudios. All rights reserved.
//
#ifndef test_BufferScanner_h
#define test_BufferScanner_h
typedef struct {
char delimiter; // char that seperates the string. ',' in "one,two,three"
char *buffer; // string to sca... |
/*
# # # ### ### # # # ### #### # #### ###
# # # # # # # # # # # # # # # # # # #
#### # # # # # # # # # # # # # ### # ### # #
# # ##### ### # # # # # ##### ### # # ... |
// Copyright 2011-2014 UFNA, LLC. All Rights Reserved.
#pragma once
#include "SeaCraftDamageType.generated.h"
/**
* DamageType class that specifies classes of weapons (icon, stats group, etc.)
*/
UCLASS(const, Blueprintable, BlueprintType)
class USeaCraftDamageType : public UDamageType
{
GENERATED_UCLASS_BODY()
... |
//
// FlyingLoginVC.h
// FlyingEnglish
//
// Created by vincent sung on 12/10/15.
// Copyright © 2015 BirdEngish. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "FlyingAnimatedImagesView.h"
@interface FlyingLoginVC : UIViewController<FlyingAnimatedImagesViewDelegate>
- (void)login:(NSString *)userName p... |
/**
* @file task_timer.h
* @brief 任务定时器
* @author chxuan, 787280310@qq.com
* @version 1.0.0
* @date 2017-11-05
*/
#pragma once
#include <vector>
#include <thread>
#include <memory>
#include <atomic>
#include <functional>
#include <boost/timer.hpp>
#include <boost/asio.hpp>
template<typename Duration = boost::po... |
#include <stdio.h>
#include <mpi.h>
/* This function synchronizes process i with process j
* in such a way that this function returns on process j
* only after it has been called on process i.
*
* No additional semantic guarantees are provided.
*
* The process ranks are with respect to the input communication. *... |
/*******************************************************************************
**NOTE** This code was generated by a tool and will occasionally be
overwritten. We welcome comments and issues regarding this code; they will be
addressed in the generation tool. If you wish to submit pull requests, please
do so for th... |
/*
* Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
* The President and Fellows of Harvard College.
*
* 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 ... |
//
// HZBaseViewController.h
// HZURLJumpManager
//
// Created by History on 14-8-10.
// Copyright (c) 2014年 History. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HZBaseViewController : UIViewController
@property (nonatomic, strong) NSDictionary *moduleObject;
@end
|
//
// syscall.c
// BakingPi
//
// Created by Jeremy Pereira on 06/12/2012.
// Copyright (c) 2012 Jeremy Pereira. All rights reserved.
//
#include "syscall.h"
#include "thread.h"
#include "console.h"
/*
* System call dispatch table entry. If the size of it is a power of 2, it
* will be faster than otherwise.... |
//
// StatusItemView.h
// Frenzy
//
// Created by John Winter on 8/06/10.
// Copyright 2010 Aptonic Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "NSPasteboard+iTunes.h"
@class DragHandler;
@interface StatusItemView : NSView <NSMenuDelegate> {
NSImage *statusImage;
NSStatusItem *statusItem;... |
//
// Configuration.h
// MangoNetwork
//
// Created by apple on 14-8-26.
// Copyright (c) 2014年 戴维营教育. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSString * const kGetTodayCommend;
extern NSString * const kGetTVLive;
extern NSString * const kRefreshData;
extern NSString * const kGetTodayCo... |
//
// ViewController.h
// ATKitDemo
//
// Created by Aesir Titan on 2016-09-12.
// Copyright © 2016 Titan Studio. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
#ifndef _MODULE_RENDER_3D_H_
#define _MODULE_RENDER_3D_H_
#include "Module.h"
#include "Globals.h"
#include "Light.h"
#include "MathGeoLib/MathGeoLib.h"
#include "imgui/IGizmo.h"
#define MAX_LIGHTS 8
#define SCENE_BORDER_X 15
#define SCENE_BORDER_Y 30
class DockContext;
class ComponentCamera;
enum GUIZMO_STATE
{
G... |
//
// NSArray+TP.h
// TestPod
//
// Created by 邓乐 on 2017/8/9.
// Copyright © 2017年 Wanda. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSArray (TP)
- (NSString*)toJsonString;
@end
|
//Copyright 2017 Carl Bycraft
//
//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, distribut... |
//
// GPMusicCell.h
// LinLinMusic
//
// Created by mac on 15-1-27.
// Copyright (c) 2015年 gpr. All rights reserved.
//
#import <UIKit/UIKit.h>
@class GPLRCViewItem;
@interface GPMusicCell : UITableViewCell
@property (nonatomic,strong) GPLRCViewItem *lrcItem;
/** 用来控制当前行歌词播放的进度 */
@property (nonatomic,assign) C... |
#pragma once
#include "../../../ComponentModel/UpdateableComponent.h"
#include "../../Data/AI/AINode.h"
#include "../../Data/AI/BehaviorTreeEvaluator.h"
#include "../../Data/AI/BehaviorTreeValidator.h"
class AITreeExecutorBehavior : public UpdateableComponent
{
public:
AITreeExecutorBehavior(
AINode * tree... |
#import <Foundation/NSException.h>
#import <Foundation/NSString.h>
static inline void _KGInvalidAbstractInvocation(SEL selector,id object,const char *file,int line) {
[NSException raise:NSInvalidArgumentException
format:@"-%s only defined for abstract class. Define -[%@ %s] in %s:%d!",
sel_getName (sele... |
//
// Created by Nuno Levezinho on 07/02/2018.
//
#ifndef AVALONENGINE_SUBJECT_H
#define AVALONENGINE_SUBJECT_H
#include <map>
#include <vector>
#include <functional>
#include "../Locator.h"
namespace av
{
template <typename Event>
class Subject
{
public:
Subject() = default;
templa... |
//
// UIViewController+AppCore.h
// DVAppCore
//
// Created by Denis Vashkovski on 12/02/16.
// Copyright © 2016 Denis Vashkovski. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIViewController(AppCore)
+ (UIViewController *)ac_findBestViewController:(UIViewController *)vc;
+ (UIViewController *)ac_c... |
#ifndef __UITILELAYOUT_H__
#define __UITILELAYOUT_H__
#pragma once
namespace DuiLib
{
class UILIB_API CTileLayoutUI : public CContainerUI
{
public:
CTileLayoutUI();
LPCTSTR GetClass() const;
LPVOID GetInterface(LPCTSTR pstrName);
void SetPos(RECT rc, bool bNeedInvalidate = true);
int ... |
/*
* Exercise 3-1:
* Write a version of binary search with only one test inside the loop.
* Measure the difference in run-time between this and the K&R version.
*/
#include <stdio.h>
#include <time.h>
#define MAX_ELEMENT 20000
/*
* K & R version:
* binsearch: find x in sorted v
*/
int binsearch(i... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/*
* Created by Phil Nash on 1/2/2013.
* Copyright 2013 Two Blue Cubes Ltd. All rights reserved.
*
* 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)
*/
#ifndef TWOBLUECUBES_CATCH_MESSAGE_H_INCLUDED
#define TWO... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Engine.h"
#include "OnlineSubsystemDriftModule.h"
#include "OnlineSubsystemModule.h"
#include "OnlineSubsystem.h"
#include "ModuleManager.h"
#define INVALID_INDEX -1
/** URL Prefix when using Drift socket connection */
#define NULL_... |
#pragma once
#include "Person.h"
#include <vector>
#include "Cini/CiniAPI.h"
using namespace std;
class Search;
class Storage{
public:
static vector<Person> FindFromtxt(const Search& search);
static void ChangePersonToSearch(Person& person);
static void Refresh();
static bool IsEducationPass(const stri... |
#ifndef __LEVEL_SCENE_FACTORY_H__
#define __LEVEL_SCENE_FACTORY_H__
#include <string>
#include "cocos2d.h"
#include "SceneFactory.h"
#include "LevelSceneConfig.h"
#include "..\Entity\RainDrop.h"
USING_NS_CC;
class LevelSceneFactory: public SceneFactory {
public:
LevelScene* createScene(LevelScene *scene, SCENE_... |
//
// Y2WMessagesDelegate.h
// API
//
// Created by QS on 16/3/30.
// Copyright © 2016年 yun2win. All rights reserved.
//
#import <Foundation/Foundation.h>
@class Y2WMessages,Y2WBaseMessage,Y2WMessagesPage;
@protocol Y2WMessagesDelegate <NSObject>
@optional
/**
* 同步完成
*
* @param messages 消息管理对象
* @param er... |
/*
Clio MUD2 Client.
Copyright (c) 2003 Ian Peattie.
All rights reserved.
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,... |
#pragma once
#include "Neat\Exception.h"
namespace Neat::Win
{
class StructuredException : public ExceptionWithCode
{
typedef ExceptionWithCode Base;
public:
StructuredException(
uint32_t errorCode,
size_t address,
bool continuable);
~StructuredException();
const char* GetErrorMessage() const ove... |
#ifndef MAINMENU_H_INCLUDED
#define MAINMENU_H_INCLUDED
#include "stdafx.h"
#include <list>
class MainMenu {
public:
enum MenuResult { NOTHING, EXIT, PLAY };
class MenuItem {
public:
sf::Rect<int> rect;
MenuResult action;
};
MenuResult show(sf::RenderWindow& windo... |
//
// ViewController.h
// UIView+Rounded
//
// Created by Quentin Hayot on 05/05/2015.
// Copyright (c) 2015 example. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@property (strong, nonatomic) IBOutlet UIView *testView;
- (IBAction)resizeButtonPressed:(id)sender;
... |
#include <stdio.h>
const int SIZE = 5;
int main() {
int v1[SIZE] = {3, 5, 7, 11, 17};
int v2[SIZE] = {4, 6, 8, 9, 15};
int v3[SIZE*2];
int i1 = 0, i2 = 0;
int i;
for (i=0; i<SIZE*2; i++) {
if (v1[i1] < v2[i2]) {
v3[i] = v1[i1];
i1++;
}
else {
... |
#include <Python.h>
static PyObject *method_fputs(PyObject *self, PyObject *args) {
char *str, *filename = NULL;
if (!PyArg_ParseTuple(args, "ss", &str, &filename)) {
return NULL;
}
FILE *fp = fopen(filename, "w");
int btyes_copied = fputs(str, fp);
fclose(fp);
return PyLong_From... |
/**
* @file sensor_ir.h
* @brief Driver for Sharp-IR sensor.
* @author Chris MacEwan
* @date Jul 31, 2014
*
* @detail Handles the interface between the code and the Sharp-IR sensor.
*/
#ifndef SENSOR_IR_H_
#define SENSOR_IR_H_
#include <Arduino.h>
#define BUFFER_SIZE 32
class SharpIR
{
publi... |
#ifdef HAVE_CONFIG_H
#include "../../ext_config.h"
#endif
#include <php.h>
#include "../../php_ext.h"
#include "../../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
#include "kernel/math.h"
#include "kernel/operators.h"
#include "... |
//
// AppDelegate.h
// TBannerViewDemo
//
// Copyright (c) 2015 Tulakshana. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: afb43b76aec85442c7267aba0b45bfd00d5c8cf1 */
ZEND_BEGIN_ARG_INFO_EX(arginfo_memprof_enabled, 0, 0, 0)
ZEND_END_ARG_INFO()
#define arginfo_memprof_enabled_flags arginfo_memprof_enabled
#define arginfo_memprof_enable arginfo_memprof_enabled
#d... |
//
// RVTransformViewController.h
// RXVerifyExample
//
// Created by Rush.D.Xzj on 15/12/11.
// Copyright © 2015年 Rush.D.Xzj. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface RVTransformViewController : UIViewController
@end
|
#ifndef testhof_h
#define testhof_h
#include <QtTest/QtTest>
class TestHof: public QObject {
Q_OBJECT
private slots:
void testPrint();
void testChurchLogic();
void testChurchNumerals();
void testChurchComparison();
void testChurchPairsAndLists();
void testRandom();
void testY();
vo... |
#include <assert.h>
#include <stdio.h>
#include "utils.h"
#include "sprite.h"
#include "animation.h"
#include "sprite_sheet.h"
#include "ev_box2d.h"
#include "application.h"
#include "vector2.h"
void ev_sprite_set_quad(ev_sprite *sprite, float w, float h, float left, float top, float right, float bottom)
{
ev_sfr... |
#ifndef _simpleAudioBuffer_h_
#define _simpleAudioBuffer_h_
#include "medialib/audioBuffer.h"
#include <vector>
#include <memory>
namespace medialib
{
struct medialib_EXPORT SimpleAudioBuffer
{
SimpleAudioBuffer();
SimpleAudioBuffer(AudioFormat format, unsigned int channels, unsigned int samples, unsigned in... |
#if defined(__clang__) && !defined(__OBJC_RUNTIME_INTERNAL__)
#pragma clang system_header
#endif
#include "objc-visibility.h"
#ifndef __LIBOBJC_ENCODING_H_INCLUDED__
#define __LIBOBJC_ENCODING_H_INCLUDED__
#ifdef __cplusplus
extern "C" {
#endif
OBJC_PUBLIC
const char *objc_skip_type_qualifiers (const char *type);
O... |
#pragma once
#include <cstdint>
#define VEHICLE_EQUIPMENT_TYPE_ENGINE 0x00
#define VEHICLE_EQUIPMENT_TYPE_WEAPON 0x01
#define VEHICLE_EQUIPMENT_TYPE_GENERAL 0x02
#define VEHICLE_EQUIPMENT_TYPE_EMPTY 0x04
#define VEHICLE_EQUIPMENT_USABLE_GROUND 0x00
#define VEHICLE_EQUIPMENT_USABLE_AIR 0x01
#define VEHICLE_EQUIPMENT_U... |
//
// SSAppDelegate.h
// SSPhotoBrowser
//
// Created by Shwet Solanki on 08/02/2015.
// Copyright (c) 2015 Shwet Solanki. All rights reserved.
//
@import UIKit;
@interface SSAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
#include <stdio.h>
#include <stdlib.h>
void sortiraj(int niz[], int vel)
{
int i, j, k, brojac1 = 0, brojac2 = 0;
for (i = 0; i < vel; i++)
{
if (niz[i] % 2 == 0)
brojac1++;
else if (niz[i] % 2 == 1)
brojac2++;
}
int niz1[10], niz2[10];
j = 0, k = 0;
f... |
//
// JFAppDelegate.h
// JFMapViewExample
//
// Created by ZS(JF) on 13/08/2013.
// Copyright (c) 2015 ZS (JF). All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JFAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/*
* File: NewFilePage_1.h
* Module: NewFile
* Author: James Kuczynski
* Email: jkuczyns@cs.uml.edu
* File Description:
*
* Created on May 15, 2015, 9:24 AM
*/
#ifndef NEW_FILE_PAGE_1_H
#define NEW_FILE_PAGE_1_H
#include <QWidget>
#include <QString>
#include <QLabel>
#include <QStringList>
#include <QStrin... |
//---------------------------------------------------------------------------//
/* Keep these headers */
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <tice.h>
/* Standard headers - it's recommended to leave them included */
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#i... |
/********************************************************************
* (C) Copyright 2013 by Autodesk, Inc. All Rights Reserved. By using
* this code, you are agreeing to the terms and conditions of the
* License Agreement included in the documentation for this code.
* AUTODESK MAKES NO WARRANTIES, EXP... |
/*******************************************************************************
System Tasks File
File Name:
system_tasks.c
Summary:
This file contains source code necessary to maintain system's polled state
machines.
Description:
This file contains source code necessary to maintai... |
#ifndef GUIUTIL_H
#define GUIUTIL_H
#include <QString>
#include <QObject>
#include <QMessageBox>
QT_BEGIN_NAMESPACE
class QFont;
class QLineEdit;
class QWidget;
class QDateTime;
class QUrl;
class QAbstractItemView;
QT_END_NAMESPACE
class SendCoinsRecipient;
/** Utility functions used by the medicoin-qt UI.
*/
names... |
//
// MoreNameCell.h
// AmosTrustContact
//
// Created by Amos Wu on 15/9/26.
// Copyright © 2015年 Amos Wu. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "JVFloatLabeledTextField.h"
@interface MoreNameCell : UITableViewCell
@property (weak, nonatomic) IBOutlet JVFloatLabeledTextField *middleNameTextFie... |
#ifndef UTORRENTCONFPANEL_H
#define UTORRENTCONFPANEL_H
#include "abstractconfpanel.h"
namespace Ui {
class uTorrentConfPanel;
}
class IRecordsAccessor;
class uTorrentConfPanel : public AbstractConfPanel
{
Q_OBJECT
public:
explicit uTorrentConfPanel(QWidget *parent = 0);
~uTorrentConfPanel();
virt... |
//
// TAMovieListItemActionObject.h
// MovieViewer
//
// Created by Alex Rudyak on 7/24/15.
// Copyright (c) 2015 *instinctools. All rights reserved.
//
#import "RLMObject.h"
#import "TAListItemObject.h"
#import <Realm/RLMArray.h>
typedef NS_ENUM(NSInteger, TAListAction) {
TAListActionRemove,
TAListAction... |
#import <libxml/globals.h>
#import <BMCommons/BMXPathQuery.h>
NS_ASSUME_NONNULL_BEGIN
@interface BMXPathQuery()
@property (nonatomic, assign) xmlDocPtr doc;
- (id)initWithDoc:(xmlDocPtr)theDoc freeWhenDone:(BOOL)freeWhenDone NS_DESIGNATED_INITIALIZER;
@end
NS_ASSUME_NONNULL_END
|
#ifndef FILEMAP_H
#define FILEMAP_H
#include <QLabel>
#include <QList>
#include <QObject>
#include "Annotations.h"
class MapView: public QLabel
{
Q_OBJECT
public:
explicit MapView(QWidget* parent = 0);
virtual ~MapView();
void setAnnotations(QSharedPointer<Annotations> annotations);
signals:
v... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
#include "test.h"
#include "rbtree.h"
static void verify_root(rbtree_node_t* root) {
EXPECT(BLACK, root->color);
}
static void verify_leaf(void) {
EXPECT(BLACK, rbtree_nil->color);
}
static void verify_kids(rbtree_node_t* root) {
if (root == rbtree_nil)
return;
verify_kids(root->left);
verify_kids(root... |
#pragma once
#include "forms/control.h"
#include "forms/forms_enums.h"
#include "library/sp.h"
namespace OpenApoc
{
class Image;
class Sample;
class ScrollBar : public Control
{
private:
bool capture;
float grippersize;
float segmentsize;
sp<Image> gripperbutton;
sp<Sample> buttonerror;
int Value;
Orienta... |
//
// NSDateFormatter+SecureMappingKit.h
// SecureMappingKit
//
// Created by Jerome Morissard on 5/8/14.
// Copyright (c) 2014 Jerome Morissard. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDateFormatter (SecureMappingKit)
+ (void)setForcedTimeZone:(NSTimeZone *)forcedTimeZone;
+ (NSTi... |
//Generated by the Argon Build System
/*
Bullet Continuous Collision Detection and Physics Library, http://bulletphysics.org
Copyright (C) 2006, 2009 Sony Computer Entertainment Inc.
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damage... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
#import "NSCoding.h"
@class CMessageWrap, NSMutableDictionary, NSString;
@interface OpenInfo : NSObject <NSCoding>
{
unsigned int m_uiLocalID;
NSStri... |
//
// BCSendPhotoViewController.h
// Bathchat
//
// Created by Derek Schultz on 4/1/14.
// Copyright (c) 2014 Bathchat LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <FacebookSDK/FacebookSDK.h>
#import <Parse/Parse.h>
@interface BCSendPhotoViewController : FBFriendPickerViewController
@property (no... |
// Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#pragma once
#include "../Core/Types.h"
#include <memory>
#include <string>
namespace Assets
{
class IAssetSet
{
public:
... |
/*
Author: Karthik Hebbar M N
Website FissionSpark.weebly.com
Engine Whirl engine
NOTE:This code is still a prototype */
#include<windowsx.h>
#include<Windows.h>
#include<vector>
#include<list>
#include<iostream>
using namespace std;
#define CHECK_WND = 0
#define CHECK_BORDER = 1
#pragma region Docking System... |
7800 // init: The initial user-level program
7801
7802 #include "types.h"
7803 #include "stat.h"
7804 #include "user.h"
7805 #include "fcntl.h"
7806
7807 char *argv[] = { "sh", 0 };
7808
7809 int
7810 main(void)
7811 {
7812 int pid, wpid;
7813
7814 if(open("console", O_RDWR) < 0){
7815 mknod("console", 1, 1... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memcpy_16.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.label.xml
Template File: sources-sink-16.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate us... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import <IDEKit/IDERunSheetSubphaseModel.h>
@interface IDERunSheetPrimarySubphaseModel : IDERunSheetSubphaseModel
{
}
+ (id)keyPathsForValuesAffectingNavigableItem_name;
- (BOOL)n... |
/** ---------------------------------------------------------------------------
* -*- c++ -*-
* @file: active.h
*
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
* MIT License, see LICENSE file for more details.
* ----------------------------------------------------------------------------
*/
#p... |
//
// MPCellNode.h
// MPHome
//
// Created by oasis on 12/10/14.
// Copyright (c) 2014 watchpup. All rights reserved.
//
#import "ASCellNode.h"
#import "Artwork.h"
@interface MPCellNode : ASCellNode
- (instancetype)initWithArtwork: (Artwork *)artwork;
- (void)buildCellWithArtwork:(Artwork *)artwork;
@end
|
//
// QCARViewController.h
// QCAR+CALayer+UIWebView
//
// Created by Mec0825 on 14-11-10.
// Copyright (c) 2014年 HiScene. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum {
ON_NORMAL,
ON_CREATE,
ON_RENDERING,
ON_DESTROY
} QCARCALayerState;
@interface QCARViewController : UIViewContro... |
/****************************************************************************
Luka Penger 2013
MDIO
LPC17xx
****************************************************************************/
#ifndef __MDIO_H
#define __MDIO_H
#include <LPC17xx.H>
#define MDIO_GPIO_PIN 9
#define MDC_GPIO_PIN 8
#defin... |
#include <ruby.h>
#include "atomic_reference.h"
#include "atomic_boolean.h"
#include "atomic_fixnum.h"
// module and class definitions
static VALUE rb_mConcurrent;
static VALUE rb_cAtomic;
static VALUE rb_cAtomicBoolean;
static VALUE rb_cAtomicFixnum;
// Init_extension
void Init_extension() {
// define modules ... |
#ifndef VERSIONED_STREAM_H
#define VERSIONED_STREAM_H
#include "fdstream.h"
struct VersionedFDWriteStream: FDWriteStream {
VersionedFDWriteStream(int fd): FDWriteStream(fd), protocol_version(0) {}
int protocol_version;
};
struct VersionedFDReadStream: FDReadStream {
VersionedFDReadStream(int fd): FDReadStream(fd)... |
//
// BoardCollectionViewCell.h
// Concentration
//
// Created by dieSonne on 2015/12/27.
// Copyright © 2015年 masato_arai. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BoardCollectionViewCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@end
|
//
// UIImage+Category.h
// NavyUIKit
//
// Created by Jelly on 6/22/15.
// Copyright (c) 2015 Steven.Lin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (Category)
+ (UIImage*) imageWithColor:(UIColor*)color;
+ (UIImage*) grayscaleImage:(UIImage*)image;
- (UIImage*) imageRotatedByDegrees:(CG... |
/***********************************************************************************************************/
/*Node.h
/*Created: 2012
/***********************************************************************************************************/
#ifndef NODE_H
#define NODE_H
/*!
Node in a binary tree.
*/... |
/*
* $Header$
* $Name$
*
* A cross-platform way of providing access to gsl_ieee_env_setup
* from Fortran on any system MITgcm runs on currently.
*/
#ifdef USE_GSL_IEEE
#include <gsl/gsl_math.h>
#include <gsl/gsl_ieee_utils.h>
void fgsl_ieee_env_setup ()
{
gsl_ieee_env_setup ();
}
void fgsl_ieee_env_setup_ ... |
//
// BXPrinterObjects.h
// Demo
//
// Created by Beomjin Kim on 11. 3. 15..
// Copyright 2011 BIXOLON. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface BXPrinter: NSObject
{
}
@property (retain) NSString *name;
@property (retain) NSString *address;
@property (retain) NSString *modelStr... |
//
// DNYLocationManager.h
// Donny
//
// Created by Alex Belliotti on 8/24/14.
// Copyright (c) 2014 CrowdCompass. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <CoreBluetooth/CoreBluetooth.h>
@protocol DNYBeaconDelegate;
@interface DNYLocationManager :... |
//
// HMYFilesView.h
// Harmony
//
// Created by Harshad Dange on 07/12/2013.
// Copyright (c) 2013 Laughing Buddha Software. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HMYFilesView : UIView
- (UITableView *)filesTableView;
- (UISearchBar *)searchBar;
@end
|
//
// MarshmallowTests.h
// MarshmallowTests
//
// Created by Fabio Pelosin on 05/04/13.
// Copyright (c) 2013 Fabio Angelog Pelosin. MIT License.
//
#import <SenTestingKit/SenTestingKit.h>
@interface MarshmallowTests : SenTestCase
@end
|
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... |
//
// UIViewController+BaseClass.h
// YUKit<https://github.com/c6357/YUKit>
//
// Created by BruceYu on 15/3/18.
// Copyright (c) 2015年 BruceYu. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UIViewController+Storyboard.h"
@interface UIViewController (BaseClass)
- (UIViewController *)lastPresentedViewC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.