text stringlengths 4 6.14k |
|---|
// Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: tensorflow_serving/apis/inference.proto
// Original file comments:
// This file contains messages for various machine learning inferences
// such as regression and classification.
//
// In many applications more than one... |
//
// LayoutTestLayer.h
// CALayer
//
// Created by pantosoft on 2018/1/24.
// Copyright © 2018年 jianghongbing. All rights reserved.
//
#import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h>
@interface LayoutTestLayer : CALayer
@end
|
/*
* cat/dynbuf.h -- A generic resizeable byte buffer;
*
* by Christopher Adam Telfer
*
* Copyright 2012, See accompanying license
*
*/
#ifndef __cat_buffer_h
#define __cat_buffer_h
#include <cat/cat.h>
#include <cat/mem.h>
struct dynbuf {
ulong size;
byte_t * data;
ulong off;
ulong len;
struct memmg... |
//
// NLDataModel+__InternalDataDefines.h
// NLDB
//
// Created by hejunqiu on 2017/4/3.
// Copyright © 2017年 CHE. All rights reserved.
//
#import "NLDataModel.h"
NS_ASSUME_NONNULL_BEGIN
@class NLDBHandler;
@interface NLDataModel (__InternalDataDefines)
@property (nonatomic, strong) NLDBHandler *databaseHanlde... |
#pragma once
namespace Geom
{
struct Rect
{
double l = 0.;
double t = 0.;
double w = 0.;
double h = 0.;
};
} // namespace Geom
|
#include "GlobalDef.h"
// Driver Includes
#include "Input.h"
#include "EEPROM.h"
#include "CAN.h"
#include "Led.h"
#include "Tach.h"
#include "Data.h"
#include "VSource.h"
#include "Relay.h"
// Utils Includes
#include "ModeSelection.h"
#include "Delay.h"
#include "ProgrammedModule.h"
#include "Periodi... |
#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <sys/time.h>
#include <math.h>
#define NODES_IN_LEVEL 20
#define NODES_PER_LEVEL_INIT 100
#define NODES_PER_LEVEL_STEP 100
#define SKIPLIST_DATA_FILE "data.dat"
#define SKIPLIST_NODES_FILE "nodes.node"
enum SkipListNodeType {
... |
//
// BXTextLanguage.h
// RegexForAccordance
//
// Created by Darin Franklin on 8/6/14.
// Copyright (c) 2014 Darin Franklin. All rights reserved.
//
#import <Foundation/Foundation.h>
#define ZWSP "\u200B" // ZERO-WIDTH SPACE
#define NBSP "\u00A0" // NO-BREAK SPACE
#define LRE "\u202A" // LEFT-TO-RIGHT EMBEDDING
... |
//
// libembryo
//
// Copyright Stanley Cen 2013
// Released under the MIT License
//
#ifndef libembryo_sigscan_h
#define libembryo_sigscan_h
#include <libembryo/signature.h>
#include <libembryo/module.h>
namespace embryo
{
class sigscan
{
public:
sigscan(signature sig, module &mod);
sigs... |
namespace liblogger
{
class LogFilterContains : public ILogFilter
{
public:
LogFilterContains(const std::string &str, bool matchcase = false);
~LogFilterContains();
virtual bool Filter(const LogType Type, const std::string &str);
private:
std::string m_match;
bool m_case;
};
};
|
//
// PDProtoFile.h
// proto-dump
//
// Copyright (c) 2013 Sean Patrick O'Brien. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PDProtoFile : NSObject
// The file's path.
@property(readonly) NSString *path;
// The file's source code.
@property(readonly) NSString *source;
@end
|
//
// KAAppDelegate.h
// KAChartViewMac
//
// Created by Kenneth Parker Ackerson on 1/12/14.
// Copyright (c) 2014 Kenneth Parker Ackerson. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "KAChartView.h"
@interface KAAppDelegate : NSObject <NSApplicationDelegate>
@property (assign) IBOutlet NSWindow *wind... |
#ifndef uFormatH
#define uFormatH
#include <vcl.h>
#include <list>
#include <set>
#include "uStack.h"
#include "uMark.h"
namespace SHEdit
{
class Buffer;
class Mark;
class IMark;
class Format;
//---------------------------------------------------------------------------
/*!
* FontStyle
* ---------
... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPProbeFilter.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This so... |
#ifndef DEFINES_H
#define DEFINES_H
/*
É preciso definir aqui a seguinte macro para escolher o tipo de compilação:
compativel com POSIX: #define _POSIX_C_VERSION 199309L (199309 e a primeira versao do posix que define o nanosleep)
C11 ou superior: #define _ISOC11_SOURCE 1
outro: nao definir nada
Quando... |
//
// ZZiOSVersion.h
// iOSVersionManager
//
// Created by liuweizhen on 2017/11/11.
// Copyright © 2017年 liuxing8807@126.com. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ZZiOSVersion : NSObject
/**
版本判断
使用方法:
if (ZZiOSVersion.versionAvailable(__IPHONE_7_0)) {
...
}
*/
+ (BOOL ... |
#pragma once
#include "Vec4.h"
typedef vec4 color;
namespace Color
{
// inline color RandColor( bool withAlpha = false ){ return color( random_f(),
// random_f(), random_f(), (withAlpha)? random_f() : 1.0f ); }
static color blend( color& c1, color& c2, float alpha )
{
return ( c1 * ( 1.0f - alpha ) + ( c... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <alloca.h>
int main(int argc, char **argv) {
size_t i=5000;
if(argc != 4) {
printf("call as: eatmem <stacksize(Kb)> <heapsize(Kb)> <period(sec)>\n");
exit(1);
}
int stacksize = atoi(argv[1]);
int heapsize = atoi(argv[2]);
int period = atoi(... |
/*
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 ... |
/*
* 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 "XPCClientDelegate-Protocol.h"
@class NSObject<OS_dispatch_queue>, XPCClient;
@interface WPZoneTracker : NSObject <XPCClientDelegate>
{
_Bool ... |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
FOUNDATION_EXPORT double Pods_Example1VersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_Example1VersionString[];
|
#ifndef ____COR_COCOS2DX_MRUBY_INTERFACE_SOURCES_COCOS_VALUE_H_
#define ____COR_COCOS2DX_MRUBY_INTERFACE_SOURCES_COCOS_VALUE_H_
#include "cor_type/sources/basic_types.h"
#include "cor_mruby_interface/sources/mruby_state.h"
#include "base/CCValue.h"
namespace cor
{
namespace cocos2dx_mruby_interface
{
... |
// Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#pragma once
#include "MedusaCorePreDeclares.h"
#include "Core/String/HeapString.h"
#include "Core/Siren/Siren.h"
MEDUSA_BEGIN;
class Version
{
public:
struct Sche... |
// Copyright (c) 2016 Intel Corporation. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
#ifndef _POINTING_INFO_H_
#define _POINTING_INFO_H_
#include <node.h>
#include <v8.h>
#include <string>
#include "gen/generator_helper.h"
#include "ge... |
//
// NSDictionary+OpenXmlString.h
// BRAXlsxReaderWriter
//
// Created by René BIGOT on 03/09/2014.
// Copyright (c) 2014 René Bigot. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDictionary (OpenXmlString)
- (NSString *)openXmlStringInNodeNamed:(NSString *)nodeName;
@end
|
//
// SHTableViewDelegate.h
//
#import <UIKit/UIKit.h>
/** Your subclass will implement these functions to add custom content to your cells and setup the table view as necessary **/
@protocol SHTableDelegate <NSObject>
@optional
- (void)customInitForTableView:(UITableView *)tableView;
- (void)configureCell:(id)cell... |
#ifdef __IAR_SYSTEMS_ICC__
#pragma pack(1)
#endif
|
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "WebviewJSEventHandlerBase.h"
@interface WebviewJSEventHandler_stopPullDownRefresh : WebviewJSEventHandlerBase
{
}
- (void)handleJSEvent:(id)arg1 HandlerFacade:(id)arg2 Ex... |
#pragma once
#ifndef _SIMENGINETIMER_
#define _SIMENGINETIMER_
#include "Job.h"
namespace EnergySim {
// forward declaration
class SimContext;
class ITimer;
class ENERGYSIM_DLL_PUBLIC TimerElapsedListener
{
public:
virtual void OnElapsed(ITimer *theTimer, EventArgs *theArgs)=0;
};
class ENE... |
/**
*
* ┌─┐╔═╗┌┬┐┌─┐
* │ ║ ║ ││├┤
* └─┘╚═╝─┴┘└─┘
* ┌─┐┌─┐╔╗╔┬ ┬┌─┐┌─┐
* │ ├─┤║║║└┐┌┘├─┤└─┐
* └─┘┴ ┴╝╚╝ └┘ ┴ ┴└─┘
*
* Copyright (c) 2016 Code on Canvas Pty Ltd, http://CodeOnCanvas.cc
*
* This software is distributed under the MIT license
* https://tldrlegal.com/license/mit-license
*... |
//
// Copyright (c) 2014 Kicksend (http://kicksend.com)
//
// Created by Martin Conte Mac Donell (Reflejo@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,... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "CDStructures.h"
@interface _IDEDocumentControllerCloseAllContext : NSObject
{
void *innerContext;
id delegate;
SEL didCloseAllSelector;
BOOL shouldCloseAut... |
#include "dali/array/expression/assignment.h"
#include "dali/array/expression/control_flow.h"
#include "dali/array/expression/operator.h"
#include "dali/array/op/arange.h"
#include "dali/array/op/random.h"
#include "dali/array/op/binary.h"
#include "dali/array/op/unary.h"
#include "dali/array/op/elementwise_operation.... |
//
// KIFTestScenario+CEAdditions.h
// CEPopupPickerView
//
// Created by Chris Eidhof on 2/7/12.
// Copyright (c) 2012 Chris Eidhof. All rights reserved.
//
#import "KIFTestScenario.h"
@interface KIFTestScenario (CEAdditions)
+ (id)scenarioToAppear;
+ (id)scenarioToCloseWhenTappedOutsideOfPicker;
+ (id)scenario... |
//
// AppDelegate_iPad.h
// iPhoneOSUniversal
//
// Created by Thorsten Karrer on 26.5.10.
// Copyright media computing group - RWTH Aachen University 2010. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <ThoMoNetworking/ThoMoNetworking.h>
@interface AppDelegate_iPad : NSObject <UIApplicationDelegate, Th... |
extern NSString *const CCAlertViewDismissAllAlertsNotification;
extern NSString *const CCAlertViewAnimatedKey;
/**
A simple `UIAlertView` wrapper with blocks-based API.
The memory management works as in `UIAlertView`: you don’t have
to hold a strong reference to a `CCAlertView`, it will retain
itself when it’s dis... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE479_Signal_Handler_Use_of_Non_Reentrant_Function__basic_17.c
Label Definition File: CWE479_Signal_Handler_Use_of_Non_Reentrant_Function__basic.label.xml
Template File: point-flaw-17.tmpl.c
*/
/*
* @description
* CWE: 479 Signal Handler Use of Non-Reentrant Funct... |
//
// OWActivityCommentVC.h
// SmartPartyBuilding
//
// Created by 王卫华 on 2017/7/1.
// Copyright © 2017年 王卫华. All rights reserved.
//
#import <UIKit/UIKit.h>
@class OWHomeActivity;
@interface OWActivityCommentVC : UITableViewController
@property (nonatomic, strong) OWHomeActivity *activity;
@end
|
/* Copyright (C) 2012 Yevgeniy Melnichuk <yevgeniy.melnichuk@googlemail.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... |
/**
Copyright (C) 2013 Eric Wasylishen
Date: November 2013
License: MIT (see COPYING)
*/
#import <CoreObject/CoreObject.h>
/**
* The server is pushing revisions to the client (the client is not expecting them)
*
* Client should send a COSynchronizerAcknowledgementFromClientMessage in response.
*/... |
//
// AddBusinessViewController.h
// iVending
//
// Created by Manny Pino on 4/20/15.
// Copyright (c) 2015 student. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "businessDb.h"
@interface AddBusinessViewController : UIViewController
@property (strong, nonatomic) SqlDB *myDb;
@property (strong, nonatom... |
/*numPass=5, numTotal=5
Verdict:ACCEPTED, Visibility:1, Input:"5
52 91 72 65 100", ExpOutput:"100
100 65
100 65 72
100 65 72 91
100 65 72 91 52
", Output:"100
100 65
100 65 72
100 65 72 91
100 65 72 91 52
"
Verdict:ACCEPTED, Visibility:1, Input:"3
1 22 333", ExpOutput:"333
333 22
333 22 1
", Output:"333
3... |
#ifndef CML_EASINGS_H
#error "Never use <cml/easings/exponential.h> directly; include <cml/easings.h> instead."
#endif
#ifndef CML_EASINGS_EXPONENTIAL_H
#define CML_EASINGS_EXPONENTIAL_H
__CML_BEGIN_DECLS
double cml_ease_exponential_in(double p);
double cml_ease_exponential_out(double p);
double cml_ease_exponential... |
// Estimote Fleet Management SDK
// Copyright (c) 2015 Estimote. All rights reserved.
#import <Foundation/Foundation.h>
#import "ESTSettingReadOnly.h"
@class ESTSettingDeviceInfoApplicationHash;
NS_ASSUME_NONNULL_BEGIN
/**
* Block used as a result of read setting ApplicationHash operation for Device Info packet... |
//
// MFBActionBinding.h
// Pods
//
// Created by Nickolay Tarbayev on 28.07.2017.
//
//
#import <Foundation/Foundation.h>
#import "NSObject+MFBBindingAssertion.h"
NS_ASSUME_NONNULL_BEGIN
@interface MFBActionBinding : NSObject
@property (nonatomic, unsafe_unretained) IBOutlet id observable;
@property (nonatomic... |
//
// SketchPluginDemo.h
// SketchPluginDemo
//
// Created by Sergey on 1/23/17.
// Copyright © 2017 Sketch plugin by https://sympli.io All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "AutoDrawViewController.h"
#import "AutoDrawNetworkClient.h"
@interface AutoDrawPlugin : NSObject <AutoDrawViewControllerD... |
//
// QZKitDelegate.h
// SDk
//
// Created by tang.johannes on 15/1/23.
// Copyright (c) 2015年 tang.johannes. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class QUserInfo;
@class QAgentInfo;
@class QMessageRecvInfo;
typedef enum {
ParamTypePhoneNumber, /**< 电话号码 */
... |
//
// kunittest.c
// Firedrake
//
// Created by Sidney Just
// Copyright (c) 2012 by Sidney Just
// 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 reKUriction, including without ... |
//
// c3dDocuments.h
// HelloOpenGL
//
// Created by wantnon (yang chao) on 14-2-20.
//
//
#ifndef __HelloOpenGL__c3dDocuments__
#define __HelloOpenGL__c3dDocuments__
#include <iostream>
#include <string>
using namespace std;
#if (C3D_TARGET_PLATFORM == C3D_PLATFORM_WIN32)
#include "platform/win32/c3dDocumentsPlat... |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "Weathersama.h"
FOUNDATION_EXPORT double WeathersamaVersionNumber;
FOUNDATION_EXPORT const unsigned char WeathersamaVersionString[];
|
//
// NSString+RCAppConfig.h
// RCKit
//
// Created by Looping on 14/8/21.
//
// The MIT License (MIT)
// Copyright (c) 2014 Ridgecorn (http://ridgecorn.com/ )
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"... |
#pragma once
#include <vector>
#include <string>
#include <unordered_map>
#include "../utility/types.h"
class Compiler {
public:
~Compiler() {}
Compiler(std::vector<std::string> contents) : m_contents(contents) {
m_umap_rfunctions.insert({ "syscall", 0x0 });
m_umap_rfunctions.insert({ "add", 0x2 });
m_umap_... |
// -*- C++ -*-
//=============================================================================
/**
* @file RecursDef_i.h
*
* $Id: RecursDef_i.h 935 2008-12-10 21:47:27Z mitza $
*
* StructDef & UnionDef support class.
*
*
* @author Simon Massey <sma@prismtech.com>
*/
//=================================... |
//
// IGKit.h
// IGKit
//
// Created by CaptainTeemo on 5/12/16.
// Copyright © 2016 CaptainTeemo. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for IGKit.
FOUNDATION_EXPORT double IGKitVersionNumber;
//! Project version string for IGKit.
FOUNDATION_EXPORT const unsigned char IGKitVe... |
/*
* $QNXLicenseC:
* Copyright 2007, QNX Software Systems.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not reproduce, modify or distribute this software except in
* compliance with the License. You may obtain a copy of the License
* at: http://www.apache.org/licenses/... |
#ifndef CART_MEMORY_H
#define CART_MEMORY_H
#include <cstdint>
#include <vector>
#include <Mirroring.h>
struct CartMemory
{
Mirroring mirroring;
bool chrIsRam;
std::vector<uint8_t> trainer;
std::vector<uint8_t> prg;
std::vector<uint8_t> chr;
std::vector<uint8_t> ram;
};
#endif
|
/*
* SPL definitions for the i.MX7 SPL
*
* (C) Copyright 2017 CompuLab, Ltd. http://www.compulab.com
*
* Author: Uri Mashiach <uri.mashiach@compulab.co.il>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __IMX7_SPL_CONFIG_H
#define __IMX7_SPL_CONFIG_H
#ifdef CONFIG_SPL
/*
* see figure 6-22 in i.MX 7Dual/Sol... |
// stdafx.h : 标准系统包含文件的包含文件,
// 或是经常使用但不常更改的
// 特定于项目的包含文件
// #pragma once
#include "targetver.h"
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <ctime>
#if defined(__APPLE__)
#define PLATFORM_MACOSX
#elif defined(_WIN32) || define(_WIN64)
#define PLATFORM_WINNT
#elif defined(__linux__)
#define PL... |
/** @defgroup i2c_defines I2C Defines
*
* @brief <b>Defined Constants and Types for the STM32F0xx I2C</b>
*
* @ingroup STM32F0xx_defines
*
* @version 1.0.0
*
* @date 11 July 2013
*
* LGPL License Terms @ref lgpl_license
*/
/*
* This file is part of the libopencm3 project.
*
* Copyright (C) 2010 Thomas Ott... |
#ifndef WEAPONRANK_H
#define WEAPONRANK_H
#include <unordered_map>
#include "feClass.h"
#include "feUtils.h"
class feWeaponRank {
private:
std::unordered_map< std::string, int > weaponRank;
public:
feWeaponRank(feClass j);
std::string getWeaponRanks(feClass f);
char getWeaponRank(std::string w);
void inc... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_connect_socket_w32_execv_54e.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-54e.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read data us... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "IDEEditorDocument.h"
#import "DVTTextFindable-Protocol.h"
@class IDEActivityLogSection;
@interface IDELogDocument : IDEEditorDocument <DVTTextFindable>
{
IDEActiv... |
#pragma once
#include <vector>
#define DECLARE_STATIC_INIT(ClassName) \
static void static_init_func(); \
static static_init_helper ClassName##_static_init_helper
#define STATIC_INIT(ClassName) \
static_init_helper ClassName::ClassName##_static_init_helper(&ClassName::static_init_func); \
void ClassNam... |
//
// ICClassInfo.h
// Pods
//
// Created by mac on 2017/8/6.
//
//
#import <Foundation/Foundation.h>
@class ICClassIvarInfo;
@interface ICClassInfo : NSObject
@property (nonatomic, assign, readonly) Class cls; ///< class object
@property (nonatomic, strong, readonly) NSString *name; ///< class name
@property ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__char_malloc_66a.c
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-66a.tmpl.c
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: malloc Allocate data using malloc()
* GoodSource: Allocate data on the s... |
#ifndef AUTHORIZETESTCASE_H
#define AUTHORIZETESTCASE_H
#include <QObject>
#include <TestCases/testcasebase.h>
class AuthorizeTestCase : public TestCaseBase
{
Q_OBJECT
public:
AuthorizeTestCase(QString testClientId, int& requestid, QObject *parent = NULL);
void startTest(QWebSocket* webSocket);
signals:
... |
//The header for a car object
//car objects are always managed by the roads!
#ifndef G2_CAR_OBJECT_INCLUDE
#define G2_CAR_OBJECT_INCLUDE
#include "objs/map_piece.h"
class g2_car_object_class :
public g1_map_piece_class
{
friend class act_manager;
public:
//g1_mini_object *back_wheels;
//g1_mini_obj... |
#ifndef __mekdotlu_log_h
#define __mekdotlu_log_h
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
struct log_cfg {
/* log file path */
char *file;
int forcecolor;
int _fd;
};
int log_init(struct log_cfg *cfg);
int log_kill(struct log_cfg *cfg);
int log_raw(
const struct log_cfg *cfg,
const char *for... |
#ifndef FIGURA_H
#define FIGURA_H
class Figura {
public:
Figura (float x, float y);
// draw() é virtual puro, pois a classe
// Figura é base para as demais
virtual void draw() = 0;
virtual bool acertou(int, int) = 0;
protected:
float x,y;
};
#endif
|
//
// OuttaTimeViewController.h
// OuttaTimeObjectiveC
//
// Created by Pedro Trujillo on 11/9/15.
// Copyright © 2015 Pedro Trujillo. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface OuttaTimeViewController : UIViewController
@property(nonatomic) NSString * lastTimeDeparted;
@property(nonatomic) NSTim... |
//
// LibraryObject.h
// ProjectCrystalBlue-iOS
//
// Created by Justin Baumgartner on 1/30/14.
// Copyright (c) 2014 Library Object. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface LibraryObject : NSObject
@property(readonly,copy) NSString *key;
@property NSMutableDictionary *attributes;
-... |
/*
* applications-search-provider: Search provider for searching installed
* applications
*
* Copyright 2012-2015 Stephan Haller <nomad@froevel.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pu... |
#ifndef _CLASS_SAMPLEGENERATORVISITOR_ABC
#define _CLASS_SAMPLEGENERATORVISITOR_ABC
class Sample;
class Tree;
class Robot;
class Obstacle;
class SampleGeneratorVisitor_ABC {
public:
SampleGeneratorVisitor_ABC();
~SampleGeneratorVisitor_ABC();
public:
// TODO tree must be const
virtual void ... |
/*
* USART.c
*
* Amherst College Electronics Club - Nov 2013
* Author: André Lucas Antunes de Sá
*/
#include "USART.h"
void USARTInit(const uint16_t ubrr)
{
UBRR0L = ubrr; //Set Baud Rate
UBRR0H = (ubrr>>8);
/*Set Frame Format. This is the default for Asynchronous serial
>> Asynchronous mode
>> No Pari... |
/***************************************************************************
menu_aft_logical_channels_list.h - description
-------------------
begin : Wed Apr 7 2004
copyright : (C) 2004 by David Rokhvarg
email ... |
#ifndef __ASM_AVR32_DMA_MAPPING_H
#define __ASM_AVR32_DMA_MAPPING_H
#include <linux/mm.h>
#include <linux/device.h>
#include <linux/scatterlist.h>
#include <asm/processor.h>
#include <asm/cacheflush.h>
#include <asm/io.h>
extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
int direction);
stat... |
#ifndef GLTEXTURE_H
#define GLTEXTURE_H
#include <curitiba/render/texture.h>
//#include <curitiba/material/textureSampler.h>
#include <curitiba/render/opengl/gltexturesampler.h>
#include <GL/glew.h>
using namespace curitiba::render;
using namespace curitiba::material;
namespace curitiba
{
namespace render
{
cla... |
/* fre:ac - free audio converter
* Copyright (C) 2001-2021 Robert Kausch <robert.kausch@freac.org>
*
* 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 2 of
* the Licens... |
#pragma once
#include "Window.h"
class SimpleWindow : public Window{
public:
void draw() {
// implements simple window
}
string getDescription() {
return "simple window";
}
}; |
/* $Id$ */
/* DO NOT EDIT - file generated by ObitTables.pl */
/*--------------------------------------------------------------------*/
/*; Copyright (C) 2013 */
/*; Associated Universities, Inc. Washington DC, USA. */
/*; ... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_HANDLER_H_
#define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_HANDLER_H_
#include <string>
#include <vector>
#incl... |
#include <pthread.h>
#include "tlpi_hdr.h"
static void *threadFunc(void *x)
{
return x;
}
int main(int argc, char *argv[])
{
pthread_t thr;
pthread_attr_t attr;
int s;
s = pthread_attr_init(&attr);
if (s != 0)
errExitEN(s, "pthread_attr_init");
s = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED... |
/* SPDX-License-Identifier: LGPL-2.1+ */
#include "dbus-target.h"
#include "log.h"
#include "serialize.h"
#include "special.h"
#include "string-util.h"
#include "target.h"
#include "unit-name.h"
#include "unit.h"
static const UnitActiveState state_translation_table[_TARGET_STATE_MAX] = {
[TARGET_DEAD] = UNIT_... |
/* ------------------------------------------------------------------------
* Program : eval_pwlinear.c
* Author : Rajiv Singh
*
* Copyright 2007 The MathWorks, Inc.
* $Revision: 1.1.8.1 $ $Date: 2007/11/09 20:17:40 $
*
* Purpose : Evaluate pwlinear nonlinearity
* -----------------------... |
#include "special_files.h"
typedef struct _SymlinksData SymlinksData;
void
symlinks_init (SymlinksData **sl_data, gint panel);
void
symlinks_add_file (SymlinksData *sl_data,
GtkTreeIter *iter,
const GnomeVFSFileInfo *info,
const GnomeVFSURI *uri);
void
symlinks_execute (SymlinksData *sl_data);
void
sym... |
#ifndef LINUX_MMC_SH_MOBILE_SDHI_H
#define LINUX_MMC_SH_MOBILE_SDHI_H
#include <linux/types.h>
struct platform_device;
#define SH_MOBILE_SDHI_IRQ_CARD_DETECT "card_detect"
#define SH_MOBILE_SDHI_IRQ_SDCARD "sdcard"
#define SH_MOBILE_SDHI_IRQ_SDIO "sdio"
/**
* struct sh_mobile_sdhi_ops - SDHI driver callbacks
* @... |
/*
* These routines are helpers - note that this file gets linked into all the
* zip-access variants that refer to <zzip/format.h>. On the x86 platform the
* actual definitions will be empty - fetching is done on native machine-level
*
* Author:
* Guido Draheim <guidod@gmx.de>
*
* Copyright (c) 2004,2005,2... |
#pragma once
#include "../../lib/vcmi_endian.h"
#include "gui/Geometries.h"
#include "../../lib/GameConstants.h"
/*
* CAnimation.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license... |
/*
* fta.h - FTA (Fault Trace Assistant)
* external API header
*
* Copyright(C) 2011 FUJITSU LIMITED
*
* 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; version 2
* of the Licens... |
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/kernel.h>
#include <linux/ptrace.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <asm/setup.h>
#include <asm/traps.h>
#include <asm/system.h>
#include <asm/uaccess.h>
#include <asm/pgalloc.h>
extern void die_if_kernel(char *, struct pt... |
/* Compile with:
export LDLIBS="`pkg-config --libs gsl`"
export CFLAGS="`pkg-config --cflags gsl` -g -Wall -std=gnu11 -O3"
make stddev
*/
#include <math.h>
#include <stdio.h> //size_t
typedef struct meanvar {double mean, var;} meanvar;
meanvar mean_and_var(const double *data){
long double avg = 0,
avg2 ... |
#include<stdio.h>
#define MAX 100
int top=-1;
int stack[MAX];
int match(char a,char b);
int main()
{
char exp[MAX];
int valid;
printf("Enter expression: ");
gets(exp);
valid=check(exp);
if (valid==1) printf("Valid expression\n");
else printf("Invalid expression\n");
}
int check(char exp[] )
{
int i;
cha... |
/*
* Hydrogen
* Copyright(c) 2002-2007 by Alex >Comix< Cominu [comix@users.sourceforge.net]
* http://www.hydrogen-music.org
* Copyright 2007 Stéphane Brunner <stephane.brunner@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licens... |
/*
This file is part of the MeshNet Arduino library.
Copyright (C) 2013 Mattia Baldani
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at... |
// -*- C++ -*-
//=============================================================================
/**
* @file OS_NS_sys_utsname.h
*
* $Id: OS_NS_sys_utsname.h 80826 2008-03-04 14:51:23Z wotte $
*
* @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
* @author Jesper S. M|ller<stophph@diku.dk>
* @author and a ... |
/* $Id: opml.win32.rcprefix.h 516 2006-02-04 16:08:42Z andreradke $ */
/******************************************************************************
UserLand Frontier(tm) -- High performance Web content management,
object database, system-level and Internet scripting environment,
including source co... |
/*
* signing-milter - utils/bio2file.c
* Copyright (C) 2010-2013 Andreas Schulze
*
* 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; only version 2 of the License is applicable.
*
* This ... |
/*
* File : pwm.h
* This file is part of FH8620 BSP for RT-Thread distribution.
*
* Copyright (c) 2016 Shanghai Fullhan Microelectronics Co., Ltd.
* All rights reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publi... |
/* -*- linux-c -*- ------------------------------------------------------- *
*
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright 2007 rPath, Inc. - All Rights Reserved
*
* This file is part of the Linux kernel, and is made available under
* the terms of the GNU General Public License version 2.
*
* ... |
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_HANG_MONITOR_HUNG_WINDOW_DETECTOR_H__
#define CHROME_BROWSER_HANG_MONITOR_HUNG_WINDOW_DETECTOR_H__
#include "base/synchronizat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.