text stringlengths 4 6.14k |
|---|
/*
* Copyright (C) 2009, 2010 Nick Johnson <nickbjohnson4224 at gmail.com>
*
* 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 P... |
/*
* Copyright (c) 2014, Thorben Hasenpusch <t.hasenpusch@icloud.com>
*
* Permission to use, copy, modify, and/or 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 PROVI... |
#ifndef _SYS_UIO_H
#define _SYS_UIO_H
#include <sys/types.h>
#include <limits.h>
struct iovec
{
void* iov_base;
size_t iov_len;
};
#ifdef __cplusplus
extern "C" {
#endif
ssize_t readv(int fildes, const struct iovec *iov, int iovcnt);
ssize_t writev(int fildes, const struct iovec *iov, int iovcnt);
#ifdef __cpl... |
//
// ATERCLabel.h
// ATERichContent
//
// Created by David Martinez on 5/3/15.
// Copyright (c) 2015 Atenea. All rights reserved.
//
#import "ATERC.h"
@interface ATERCLabel : ATERC
@property (nonatomic, strong) NSString *mText;
@end
|
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2012-2015 The Deuscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef DEUSCOIN_UI_INTERFACE_H
#define DEUSCOIN_UI_INTERFACE_H
#include <stdint.h>
... |
#ifndef _CONSOLE_H
#define _CONSOLE_H
#include <motors.h>
#include <balance.h>
#include <position.h>
class Console {
public:
Console(Motors* motors, Balance* balance, Position* position, structPid* balancePid, structPid* positionPid);
void init();
void loop(unsigned long, double);
private:
Motors* motors;
Balance* b... |
//
// CeldaTableViewCell.h
// Lista
//
// Created by Bryan A Bolivar M on 5/9/15.
// Copyright (c) 2015 Bolivar. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CeldaTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *nombre;
@property (weak, nonatomic) IBOutlet UILabel *posic... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_TXDB_H
#define BITCOIN_TXDB_H
#include <coins.h>
#include <dbwra... |
//
// SSAppDelegate.h
// FlipFlobjc
//
// Created by Sam Stone on 07/03/2015.
// Copyright (c) 2015 Sam Stone. All rights reserved.
//
@import UIKit;
@interface SSAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/*
* Copyright 2017 Ian Johnson
*
* This is free software, distributed under the MIT license. A copy of the
* license can be found in the LICENSE file in the project root, or at
* https://opensource.org/licenses/MIT.
*/
/**
* @file
* The Chip-8 assembler.
*/
#ifndef CHIP8_ASSEMBLER_H
#define CHIP8_ASSEMBLER_H... |
#ifndef RTC_H__
#define RTC_H__
/** @defgroup rtc rtc
* @{
* Constants and functions for managing RTC driver
*/
#define RTC_ADDR_REG 0x70
#define RTC_DATA_REG 0x71
#define RTC_SECONDS 0x0
#define RTC_SECONDS_ALARM 0x1
#define RTC_MINUTES 0x2
#define RTC_MINUTES_ALARM 0x3
#define ... |
#include "shutdown_normal.h"
#include "unity.h"
#include "unity_fixture.h"
// TODO Finish up these tests!!!
TEST_GROUP(Shutdown_Normal_Test);
STATE state;
HEARTBEAT_DATA heartbeat_data;
TEST_SETUP(Shutdown_Normal_Test) {
state.heartbeat_data = &heartbeat_data;
}
TEST_TEAR_DOWN(Shutdown_Normal_Test) {
}
TEST(... |
#ifndef FONTXMLLOADER_H
#define FONTXMLLOADER_H
#include "nau/geometry/font.h"
using namespace nau::geometry;
namespace nau
{
namespace loader
{
class FontXMLLoader
{
public:
static void loadFont (Font *aFont, std::string &aFilename);
private:
FontXMLLoader(void) {};
~FontXM... |
#include <signal.h>
#include <ncurses.h>
volatile sig_atomic_t doresize;
void
resize(int sig)
{
doresize = 1;
(void)sig;
}
int
main(void)
{
int ch;
initscr();
raw();
// when a resize event happens, the terminal will send a signal that we can handle
signal(SIGWINCH, resize);
for (;;) {
ch = getch();
if ... |
#pragma once
/* ...And this is string processing in a pre-processor. Look away now. */
#define STR_UNREDIR(s) #s
#define STR_REDIR(s) STR_UNREDIR(s)
#define C_COMPILER_DEFINE_STRING(name, maj, min, lev) \
name " " STR_REDIR(maj) "." STR_REDIR(min) "." STR_REDIR(lev)
#undef C_SYSTEM_BITNESS
#define C_SYSTEM_BITNE... |
#ifndef __MINUTE_IOBUF_H__
#define __MINUTE_IOBUF_H__
/** \brief A simple input/output ring buffer.
The iobuf represents an i/o ring buffer, with absolute read and write offsets.
Both read and write increase, and only the access is wrapped, thus either may
well be larger than the size of the buffer, but they ma... |
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "../../src/QDynamicDataExchange.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private Q_SLOTS:
void onProtocolA... |
//
// AFHTTPClientEncodingType.h
// MTFoundation-OSX
//
// Created by Matias Piipari on 21/05/2015.
// Copyright (c) 2015 Mekentosj BV. All rights reserved.
//
#ifndef MTFoundation_OSX_AFHTTPClientEncodingType_h
#define MTFoundation_OSX_AFHTTPClientEncodingType_h
typedef NS_ENUM(NSInteger, AFHTTPClientParameterEn... |
/*
* Copyright (c) 2007 - 2021 Joseph Gaeddert
*
* 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, mer... |
#import <Foundation/Foundation.h>
#import "FIRDynamicLink.h"
NS_ASSUME_NONNULL_BEGIN
/**
* @file FIRDynamicLinks.h
* @abstract Firebase Dynamic Links
*/
/**
* @abstract The definition of the block used by |resolveShortLink:completion:|
*/
typedef void (^FIRDynamicLinkResolverHandler)(NSURL * _Nullable url, NSE... |
#include <stdio.h>
main ()
{
int num1, num2, num3;
char ch2;
num1 = 5;
num3 = 4;
printf("Please enter 1 number and 1 character: \n");
scanf("%d", &num2);
flushall();
scanf("%c", &ch2);
flushall();
printf("\nYou entered %d and %c\n", num2, ch2);
printf("The othe... |
#ifndef LOGGER_H_
# define LOGGER_H_
# include <syslog.h>
# include <stdarg.h>
# define MONIKOR_LOG_SEP ": "
# define MONIKOR_LOG_MIN_PRIO LOG_EMERG
# define MONIKOR_LOG_MAX_PRIO LOG_DEBUG
# define MONIKOR_LOG_DEFAULT -1
# define LOG_ERROR LOG_ERR
extern int monikor_log_level;
int monikor_logger_level(void);
void... |
/*
* Copyright 2003,2006,2009 Red Hat, Inc.
*
* 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, and the entire permission notice in i... |
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "adminlogindlg.h"
#include "qwertykb.h"
#include "postableview.h"
#include "posmaintablemodel.h"
#include "maintabledelegate.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit M... |
/*
* ofShape.h
* openFrameworks
*
* Created by theo on 28/10/2009.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#pragma once
#include "ofMain.h"
#define DRAW_WITH_MESHIES
#ifdef DRAW_WITH_MESHIES
/// hack until ofMesh is available
typedef struct _meshy { GLint mode; vector<ofPoint>vertice... |
#pragma once
namespace LiteCppDB_Tests
{
class ShrinkDatabaseTest
{
public:
};
} |
#pragma once
class CScene;
class CSceneMgr
{
private:
CSceneMgr();
virtual ~CSceneMgr();
public:
DECLARE_SINGLETON(CSceneMgr)
private:
CScene* m_pScene;
map<Scene_Tyep, CScene*> m_mapScene;
public:
Scene_Tyep m_eType;
public:
HRESULT AddScene(Scene_Tyep _eType, CScene* _pScene);
HRESULT ChangeScen... |
#ifndef _VALUE_H_
#define _VALUE_H_
#include "supoo.h"
typedef enum atom_type atom_type;
typedef struct value value;
enum atom_type
{
AT_INT,
AT_FLOAT,
AT_SYMBOL,
AT_STRING,
AT_LIST,
AT_FUNCPTR,
AT_BOOL,
AT_UNKNOWN
};
struct value
{
atom_type type;
int size;
union {
bool b;
int ... |
/*
* data.h
* pragma
*
* Created by Victor on 26/12/10.
* Copyright 2010 #Pragma Studios. All rights reserved.
*
*/
#include <pragma/types.h>
#include <vector>
namespace pragma
{
bool PropertyList_UnitTest();
class Value
{
public:
enum Type
{
eString = 0,
eFloat = 1,
};
Value () ... |
//
// MOBMail.h
// MOBUtils
//
// Created by Alex Ruperez on 10/09/14.
// Copyright (c) 2014 Mobusi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MessageUI/MFMailComposeViewController.h>
@class MOBMail;
@protocol MOBMailDelegate <NSObject>
@optional
- (void)mobMailDidSend:(MOBMail *)mail;... |
/*
** $Id: ldebug.h,v 2.14 2015/05/22 17:45:56 roberto Exp $
** Auxiliary functions from Debug Interface module
** See Copyright Notice in lua.h
*/
#ifndef ldebug_h
#define ldebug_h
#include "lstate.h"
#define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
#define getfuncline(f,pc) (((f)->lineinfo)... |
//
// SnapViewController.h
// DynamicsSample
//
// Created by Shingo Sato on 2013/08/03.
// Copyright (C) 2013 Yahoo Japan Corporation. All Rights Reserved.
//
// Copyrights licensed under the MIT License.
// See the accompanying LICENSE file for terms.
//
#import <UIKit/UIKit.h>
@interface SnapViewController :... |
// Copyright (C) 2002-2011 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_WRITE_FILE_H_INCLUDED__
#define __I_WRITE_FILE_H_INCLUDED__
#include "IReferenceCounted.h"
#include "path.h"
namespace irr
{
namespace ... |
#include <stdio.h>
#include <math.h>
int find_sum(int n){
int j = 2, sum = 0;
int root = sqrt(n);
while(j < root){
if(n % j == 0){
sum += j;
sum += n/j;
printf("%d * %d\n", j, n/j);
}
j ++;
}
if(n % root == 0){
sum += root;
}
sum ++;
return sum;
}
int main(){
int i, sum = 0, temp;
for(... |
\#include "${out_file}.hpp"
#if $macro_judgement
$macro_judgement
#end if
#for header in $headers
#set relative = os.path.relpath(header, $search_path)
#if not '..' in relative
\#include "${relative.replace(os.path.sep, '/')}"
#else
\#include "${os.path.basename(header)}"
#end if
#end for
\#include "scr... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_UNDO_H
#define BITCOIN_UNDO_H
#include <coins.h>
#include <compr... |
/*
* Copyright (c) 2016-2017 Bálint Kiss <balint.kiss.501@gmail.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 ... |
#ifndef IDS_H
#define IDS_H
enum RESOURCE_ID
{
BK_INTRO = 0,
BK_OPENOMF,
BK_MENU,
BK_END,
BK_END1,
BK_END2,
BK_CREDITS,
BK_MECHLAB,
BK_VS,
BK_MELEE,
BK_NEWSROOM,
BK_ARENA0,
BK_ARENA1,
BK_ARENA2,
BK_ARENA3,
BK_ARENA4,
BK_NORTHAM,
BK_KATUSHAI,
B... |
namespace computress {
enum e_stat {
Strength=91,
Dexterity,
Intellect,
Wisdom,
Constitution,
Comeliness,
Charisma };
void listen(int listencode);
}
|
#include "types.h"
#include "stat.h"
#include "user.h"
int
main(int argc, char **argv)
{
int k = test();
printf(1, "%d\n", k); // Should raise SIGSEGV
exit();
}
|
/*
* 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"
#import "NSCopying-Protocol.h"
@class AVAssetTrackGroupInternal, NSArray;
@interface AVAssetTrackGroup : NSObject <NSCopying>
{
AVAssetTrackGroupInter... |
/*
* Copyright 2016 Google Inc. All Rights Reserved.
* Author: gkalsi@google.com (Gurjant Kalsi)
*
* 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 with... |
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_GUI_COMBO_BOX_H_INCLUDED__
#define __I_GUI_COMBO_BOX_H_INCLUDED__
#include "IGUIElement.h"
namespace ue
{
namespace gui
{
... |
/*
* $Id: RtpsUdpTransport.h 6605 2014-11-19 19:33:47Z mitza $
*
*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/
#ifndef DCPS_RTPSUDPTRANSPORT_H
#define DCPS_RTPSUDPTRANSPORT_H
#include "Rtps_Udp_Export.h"
#include "RtpsUdpDataLink.h"
#include "RtpsUdpDataLink_rch.h"
#... |
//
// BBUFilesViewController.h
// SofaReview
//
// Created by Boris Bügling on 11.05.13.
// Copyright (c) 2013 Boris Bügling. All rights reserved.
//
#import <UIKit/UIKit.h>
@class BBUGitHubTreeOwner;
@interface BBUFilesViewController : UITableViewController
-(id)initWithTreeOwner:(BBUGitHubTreeOwner*)treeOwner... |
#pragma once
//include grids
#include "conformal.h"
#include "orthogonal.h"
#include "curvilinear.h"
#include "refined_conformal.h"
#include "refined_orthogonal.h"
#include "refined_curvilinear.h"
#ifdef MPI_VERSION
#include "mpi_conformal.h"
#include "mpi_orthogonal.h"
#include "mpi_curvilinear.h"
#endif
//include g... |
/*
Fontname: -UW-Ttyp0-Bold-R-Normal--15-140-75-75-C-80-ISO10646-1
Copyright: Copyright (C) 2012-2015 Uwe Waldmann
Glyphs: 95/3075
BBX Build Mode: 0
*/
const uint8_t u8g2_font_t0_15b_tr[1262] U8G2_FONT_SECTION("u8g2_font_t0_15b_tr") =
"_\0\3\3\4\4\3\5\5\10\17\0\375\12\375\13\377\1\243\3R\4\325 \5\0\34... |
// Copyright (c) 2016 Antony Arciuolo. See License.txt regarding use.
#pragma once
#include <system_error>
#include <cstdio>
extern "C" {
#ifdef _WIN32
#define WINERR_APICALL __stdcall
#else
#define WINERR_APICALL
#endif
void __declspec(dllimport) WINERR_APICALL OutputDebugStringA(const char*);
unsigned long __de... |
#pragma once
#include <vector>
#include <algorithm>
#include "EnergySim.h"
using namespace std;
#include "Eventtypes.h"
namespace EnergySim
{
class ENERGYSIM_DLL_PUBLIC ITable
{
public:
virtual string getValue(string column, int row)=0;
virtual bool exist(string column)=0;
virtual int rows()=0;... |
/*
* nv_param.h
*
* Created on: 2017. 8. 22.
* Author: hrjung
*/
#ifndef NV_PARAM_H
#define NV_PARAM_H
#include "stdint.h"
#ifdef UNIT_TEST_ENABLED
#define STATIC
#else
#define STATIC static
#endif
/*******************************************************************************
* CONSTANTS
*/
#ifdef ... |
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __C_META_TRIANGLE_SELECTOR_H_INCLUDED__
#define __C_META_TRIANGLE_SELECTOR_H_INCLUDED__
#include "IMetaTriangleSelector.h"
#include "irrArra... |
/*
* Copyright (c) 2018 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... |
/****************************************************************************
* Author: Jennifer Clark *
* File: listaxioms.c *
* Class: CS355 *
* Date ... |
/*++
Copyright (c) 2013 Microsoft Corporation
Module Name:
opt_solver.h
Abstract:
Wraps smt::kernel as a solver for optimization
Author:
Anh-Dung Phan (t-anphan) 2013-10-16
Notes:
Based directly on smt_solver.
--*/
#ifndef OPT_SOLVER_H_
#define OPT_SOLVER_H_
#include"inf_rational.h"
#includ... |
#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
FOUNDATION_EXPORT double Pods_JOURLRouter_ExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_JOURLRouter_Examp... |
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#pragma once
#include <vector>
#include <map>
#include <sstream>
#include <string>
#include "ifcpp/model/GlobalDefines.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingObject.h"
#include "IfcDerivedMeasureValue.h"
// ... |
/* standard library headers */
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
/* BG stack headers */
#include "bg_types.h"
#include "gatt_db.h"
#include "native_gecko.h"
#include "infrastructure.h"
/* plugin headers */
#include "connection.h"
/* Own header*/
#include "services/iaq.h"
bool iaqNotificati... |
/* Test "cl_pocl_content_size" PoCL extension
Copyright (C) 2021 Tampere University
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 t... |
//--------------------------------------------------------------------------------
// This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed
// under the MIT License, available in the root of this distribution and
// at the following URL:
//
// http://www.opensource.org/licenses/mit-license.ph... |
#include <stdio.h>
#include <math.h>
#include "iqa/iqa.h"
int main(void)
{
double q = 0.0;
for (; q <= 10; q += 0.5)
{
printf("q = %lf, qFT(q) = %lf\n", q, qFT(q));
}
return 0;
}
|
// This test is to see if an array of pointers can be passed to a function
// as a void*
// As of 3/20/2018, this reported an error
#include <sysio.h>
void func(void *array)
{
}
int main()
{
void *stuff[20];
void more_stuff[20];
func(stuff);
prints("Test passed\n");
func(more_stuff);
return... |
//
// Created by Zexiao Yu on 1/18/16.
// Copyright (c) 2016 Zexiao Yu. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, CALCalculatorDigit) {
CALCalculatorDigitUndefined,
CALCalculatorDigitZero,
CALCalculatorDigitOne,
CALCalculatorDigitTwo,
CALCalculatorDigitTh... |
#ifndef RUBY_RSZR
#define RUBY_RSZR
#include "rszr.h"
#include "image.h"
#include "errors.h"
VALUE mRszr = Qnil;
void Init_rszr()
{
mRszr = rb_define_module("Rszr");
Init_rszr_errors();
Init_rszr_image();
}
#endif
|
//
// yas_ui_mesh.h
//
#pragma once
#include <ui/yas_ui_color.h>
#include <ui/yas_ui_mesh_types.h>
#include <ui/yas_ui_metal_setup_types.h>
#include <ui/yas_ui_renderer_dependency.h>
namespace yas::ui {
struct mesh final : renderable_mesh {
[[nodiscard]] std::shared_ptr<mesh_vertex_data> const &vertex_data() co... |
#include "taichi/backends/metal/shaders/prolog.h"
#ifdef TI_INSIDE_METAL_CODEGEN
#ifndef TI_METAL_NESTED_INCLUDE
#define METAL_BEGIN_RUNTIME_STRUCTS_DEF \
constexpr auto kMetalRuntimeStructsSourceCode =
#define METAL_END_RUNTIME_STRUCTS_DEF ;
#else
#define METAL_BEGIN_RUNTIME_STRUCTS_DEF
#define METAL_END_RUNTIME_S... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Beardcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_COMPAT_H
#define BITCOIN_COMPAT_H
#if defined(HAVE_CONFIG_H)
#... |
#include <bls_vdp.h>
EXTERN_CONST(TEXT_TXT)
#define text EXTERN_DEF(const char *, TEXT_TXT)
EXTERN_CONST(TEXT_TXT_SIZE)
#define textsize EXTERN_DEF(u16, TEXT_TXT_SIZE)
EXTERN_CONST(PLANE_A)
#define vram_plane_a EXTERN_DEF(u16, PLANE_A)
EXTERN_CONST(PLANE_A_SIZE)
#define vram_plane_a_size EXTERN_DEF(u16, PLANE_A_SIZ... |
//
// FMDPreviewViewController.h
// Framed
//
// Created by 杨弘宇 on 2017/2/21.
// Copyright © 2017年 Cyandev. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface FMDPreviewViewController : NSViewController
@property (weak) IBOutlet NSImageView *imageView;
@end
|
#pragma once
#include <string>
#include "PlayerStrategy.h"
class EquiprobableStrategy : public PlayerStrategy
{
public:
double GetShowdownValue(State* statePtr) const override;
}; |
#pragma once
namespace KinectVision
{
// Constant buffer used to send MVP matrices to the vertex shader.
struct ModelViewProjectionConstantBuffer
{
DirectX::XMFLOAT4X4 model;
DirectX::XMFLOAT4X4 view;
DirectX::XMFLOAT4X4 projection;
DirectX::XMFLOAT4 vLightDir[2];... |
#include <stdlib.h>
#include "soundpipe.h"
int sp_progress_create(sp_progress **p)
{
*p = malloc(sizeof(sp_progress));
return SP_OK;
}
int sp_progress_destroy(sp_progress **p)
{
free(*p);
return SP_OK;
}
int sp_progress_init(sp_data *sp, sp_progress *p)
{
p->nbars = 40;
p->skip = 1000;
p-... |
// Copyright (c) 2018 Michael Heilmann
#include "Nucleus/Collections/ByteArray.h"
#include "Nucleus/FileSystem.h"
#include "Nucleus/Memory.h"
#include <string.h>
Nucleus_NoError() Nucleus_NonNull(2) static Nucleus_Status
callback
(
Nucleus_Collections_ByteArray *byteArray,
const char *byt... |
// Copyright (c) 2013 Craig Henderson
// Part of the Data Processing Library
// https://github.com/cdmh/dataproc
#include "mapped_csv.detail.h"
|
//Faça um programa que leia dois valores inteiros nas variáveis x e y e troque o
//conteúdo das variáveis.
#include<stdio.h>
void main(){
int x, y, aux;
printf("Informe o valor de X: ");
scanf("%d", &x);
printf("Informe o valor de Y: ");
scanf("%d", &y);
aux = y;
y = x;
x = aux;
printf("Valor do X: %d\n... |
//
// NRKLoginViewController.h
// iOSPlayground
//
// Created by noark on 7/29/15.
// Copyright © 2015 noark. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface NRKMVCLoginViewController : UIViewController
@end
|
/**
* ___
* | | |
* / \ | |
* |--o|===|-|
* |---| |n|
* / \ |o|
* | O | |d|
* | N |=|e|
* | S | | |
* |_______| |_|
* |@| |@| | |
* ___________|_|_
*
* AliyunONS - Node.js SDK for Aliyun ONS (based on RocketMQ)
*
* Copyright (c) 2017 XadillaX ... |
#pragma once
#include "BaseEngine.h"
class EngineOpenGLES : public BaseEngine
{
public:
~EngineOpenGLES()
{
exit();
}
// BaseEngine required
void setup() override;
void exit() override;
bool createDeviceObjects() override;
void invalidateDeviceObjects() override;
void... |
/*
* $Id: linkhash.c,v 1.4 2006/01/26 02:16:28 mclark Exp $
*
* Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
* Michael Clark <michael@metaparadigm.com>
* Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
*
* This library is free software; you can redistribute it and/or modify
* it under the terms ... |
#pragma once
#include "GameObject.h"
namespace lib
{
class Camera;
class CameraController
{
public:
CameraController();
~CameraController();
void PushCamera(Camera* pCamera);
void PopCamera();
Camera* GetCurrentCamera() { return m_cameraList.back(); }
pr... |
//
// LTLheadView.h
// 音乐播放器
//
// Created by LiTaiLiang on 16/8/1.
// Copyright © 2016年 LiTaiLiang. All rights reserved.
//
#import <UIKit/UIKit.h>
@class LTLCarouselView;
@protocol LTLCarouselViewDelegate <NSObject>
-(void)didLTLCarouselView:(LTLCarouselView *)CarouselView tag :(NSUInteger)tag;
@end
@interfac... |
#ifndef RPCCONSOLE_H
#define RPCCONSOLE_H
#include <QDialog>
#include <QCompleter>
namespace Ui {
class RPCConsole;
}
class ClientModel;
/** Local Bitcoin RPC console. */
class RPCConsole: public QDialog
{
Q_OBJECT
public:
explicit RPCConsole(QWidget *parent = 0);
~RPCConsole();
void setClientM... |
#pragma once
#include "Vector.h"
#include <vector>
namespace Namse
{
class Vector;
class Node
{
public:
Node(){}
virtual void MoveBy(Vector& vector);
virtual void MoveTo(Vector& vector);
//virtual void RotateBy(GLdouble _angleX, GLdouble _angleY, GLdouble _angleZ) {}
virtual void OnDraw(Vector& BasePos... |
#pragma once
#include <string>
#include <iozeug/iozeug_api.h>
namespace iozeug
{
// copied from glow::internal::FileReader
IOZEUG_API bool readFile(const std::string & filePath, std::string & content);
IOZEUG_API std::string readFile(const std::string & filePath);
} // namespace iozeug
|
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "WCVideoRender.h"
#import "WCVideoPreviewRenderExt.h"
@class AVCaptureVideoPreviewLayer, NSString, UIImageView, UIView;
@interface WCVideoPreviewRender : WCVideoRender <W... |
#ifndef igs_image_writers_h
#define igs_image_writers_h
#include <string>
#include "igs_image_irw.h"
#if defined USE_IRW_PLUGIN //---------
#include "igs_path_irw.h"
#endif //------------------------------------------
#ifndef IGS_IMAGE_WRITERS_EXPORT
# define IGS_IMAGE_WRITERS_EXPORT
#endif
/*
2010-2-6
class¤Î¥á¥ó... |
/**
* \file
*
* Copyright (c) 2013 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page 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 ... |
/**
* @file lv_img_cache.h
*
*/
#ifndef LV_IMG_CACHE_H
#define LV_IMG_CACHE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_img_decoder.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS... |
#pragma once
#include "ShaderManager.h"
#include "Utility.h"
#include "GXBase\include\GXBase.h"
#include <vector>
#include <map>
#include <string>
using namespace gxbase;
class ParticleEmitter : public glex
{
private:
struct Particle
{
Vector4f _postion, _orgPosition;
Vector4f _velocity, _orgVelocity; // Done as... |
//
// GameCardViewCell.h
// VivaRealChallenge
//
// Created by Roger Luan on 11/5/15.
// Copyright © 2015 Roger Oba. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GameCardViewCell : UICollectionViewCell
@property (strong, nonatomic) IBOutlet UIImageView *gamePosterImageView;
@property (strong, nonat... |
//
// GLStoreProductCommentCell.h
// Universialshare
//
// Created by 龚磊 on 2017/5/21.
// Copyright © 2017年 四川三君科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "GLMerchat_CommentModel.h"
@protocol GLMerchat_CommentCellDelegate <NSObject>
- (void)comment:(NSInteger)index;
@end
@interface GLMerc... |
#import <Foundation/Foundation.h>
typedef enum {
GEventType_CHECKPOINT,
GEventType_PAUSE,
GEventType_UNPAUSE,
GEventType_QUIT,
GEventType_LEVELEND,
GEventType_UIANIM_TICK,
GEventType_GAME_TICK,
GEventType_LOAD_LEVELEND_MENU,
GEventType_COLLECT_BONE,
GEventType_PLAYER_DIE,
GE... |
/*
* The MIT License
*
* Copyright 2020 The OpenNARS authors.
*
* 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,... |
//
// Cell.h
// RSSParser
//
// Created by Jakey on 14-7-22.
// Copyright (c) 2014年 Jakey. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface Cell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *newsDetail;
@property (weak, nonatomic) IBOutlet UILabel *newsTitle;
@property (weak, nonatomic... |
#ifndef _EASYEDITOR_SPR_PROP_COL_MONITOR_H_
#define _EASYEDITOR_SPR_PROP_COL_MONITOR_H_
#include "ColorMonitor.h"
#include "Sprite.h"
namespace ee
{
class SprPropColMonitor : public ColorMonitor
{
public:
enum ColType
{
CT_MUL = 0,
CT_ADD,
CT_RMAP,
CT_GMAP,
CT_BMAP,
};
public:
SprPropColMonitor(const ... |
//
// baseTableRequestModel+Cache.h
// Pods
//
// Created by yang on 16/6/3.
//
//
#import "baseTableRequestModel.h"
@interface baseTableRequestModel (Cache)
@end
|
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2009 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at ... |
//
// Created by madrus on 26.06.16.
//
#ifndef PSERVER_TASKFACTORY_H
#define PSERVER_TASKFACTORY_H
#include "AbstractTask.h"
#include <Poco/JSON/Object.h>
namespace TaskFactory {
AbstractTask::Ptr create(const Poco::JSON::Object::Ptr& config);
};
#endif //PSERVER_TASKFACTORY_H
|
//
// FuWen.h
// lol盒子
//
// Created by lanou3g on 15/11/17.
// Copyright © 2015年 lanou3g. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface FuWen : NSObject
@property(nonatomic,retain)NSString * Name;
@property(nonatomic,retain)NSString * Alias;
@property(nonatomic,retain)NSString * lev1;
@pro... |
/*! @file Render/Texture.h */
#ifndef RENDER_TEXTURE_H
#define RENDER_TEXTURE_H
#pragma once
#include <cstdint>
#include <string>
#include <vector>
#include <glm/glm.hpp>
#include "Util.h"
namespace Orbit
{
/*!
@brief Class abstracting texture loading and storing operations.
*/
class Texture final
{
public:
... |
int main(){
return 7 + 5;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.