text stringlengths 4 6.14k |
|---|
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import <AppKit/NSCarbonMenuImpl.h>
@interface NSCarbonMenuImpl (DVTSwizzle)
- (int)__swizzle_carbonTargetItemEvent:(struct OpaqueEventRef *)arg1 handlerCallRef:(struct OpaqueEventHandlerCallRef *)arg2;
@end
|
/* (c) Atinea Sp z o. o.
* Stamp: nianio lang
*/
#pragma once
#include "c_rt_lib.h"
void ov0__const__init();
ImmT ov0mk(ImmT ___nl__0);
ImmT ov0mk0ptr(int _num, ImmT *_tab);
ImmT ov0mk_val(ImmT ___nl__0,ImmT ___nl__1);
ImmT ov0mk_val0ptr(int _num, ImmT *_tab);
ImmT ov0has_value(ImmT ___nl__0);
ImmT ov0has_value0ptr(int _num, ImmT *_tab);
ImmT ov0get_element(ImmT ___nl__0);
ImmT ov0get_element0ptr(int _num, ImmT *_tab);
ImmT ov0get_value(ImmT ___nl__0);
ImmT ov0get_value0ptr(int _num, ImmT *_tab);
ImmT ov0is(ImmT ___nl__0,ImmT ___nl__1);
ImmT ov0is0ptr(int _num, ImmT *_tab);
ImmT ov0as(ImmT ___nl__0,ImmT ___nl__1);
ImmT ov0as0ptr(int _num, ImmT *_tab);
|
/*
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 your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
/*
* GEM Mouse manager
*
* Patrice Mandin
*/
#include <gem.h>
#include "SDL_mouse.h"
#include "../../events/SDL_events_c.h"
#include "../SDL_cursor_c.h"
#include "SDL_gemmouse_c.h"
#include "SDL_gemvideo.h"
/* Defines */
/*#define DEBUG_VIDEO_GEM 1*/
#define MAXCURWIDTH 16
#define MAXCURHEIGHT 16
void GEM_FreeWMCursor(_THIS, WMcursor *cursor)
{
#ifdef DEBUG_VIDEO_GEM
printf("sdl:video:gem: free cursor\n");
#endif
if (cursor == NULL)
return;
graf_mouse(ARROW, NULL);
if (cursor->mform_p != NULL)
SDL_free(cursor->mform_p);
SDL_free(cursor);
}
WMcursor *GEM_CreateWMCursor(_THIS,
Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y)
{
WMcursor *cursor;
MFORM *new_mform;
int i;
#ifdef DEBUG_VIDEO_GEM
Uint16 *data1, *mask1;
printf("sdl:video:gem: create cursor\n");
#endif
/* Check the size */
if ( (w > MAXCURWIDTH) || (h > MAXCURHEIGHT) ) {
SDL_SetError("Only cursors of dimension (%dx%d) are allowed",
MAXCURWIDTH, MAXCURHEIGHT);
return(NULL);
}
/* Allocate the cursor memory */
cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor));
if ( cursor == NULL ) {
SDL_OutOfMemory();
return(NULL);
}
/* Allocate mform */
new_mform = (MFORM *)SDL_malloc(sizeof(MFORM));
if (new_mform == NULL) {
SDL_free(cursor);
SDL_OutOfMemory();
return(NULL);
}
cursor->mform_p = new_mform;
new_mform->mf_xhot = hot_x;
new_mform->mf_yhot = hot_y;
new_mform->mf_nplanes = 1;
new_mform->mf_fg = 0;
new_mform->mf_bg = 1;
for (i=0;i<MAXCURHEIGHT;i++) {
new_mform->mf_mask[i]=0;
new_mform->mf_data[i]=0;
#ifdef DEBUG_VIDEO_GEM
data1 = (Uint16 *) &data[i<<1];
mask1 = (Uint16 *) &mask[i<<1];
printf("sdl:video:gem: source: line %d: data=0x%04x, mask=0x%04x\n",
i, data1[i], mask1[i]);
#endif
}
if (w<=8) {
for (i=0;i<h;i++) {
new_mform->mf_mask[i]= mask[i]<<8;
new_mform->mf_data[i]= data[i]<<8;
}
} else {
for (i=0;i<h;i++) {
new_mform->mf_mask[i]= (mask[i<<1]<<8) | mask[(i<<1)+1];
new_mform->mf_data[i]= (data[i<<1]<<8) | data[(i<<1)+1];
}
}
#ifdef DEBUG_VIDEO_GEM
for (i=0; i<h ;i++) {
printf("sdl:video:gem: cursor: line %d: data=0x%04x, mask=0x%04x\n",
i, new_mform->mf_data[i], new_mform->mf_mask[i]);
}
printf("sdl:video:gem: CreateWMCursor(): done\n");
#endif
return cursor;
}
int GEM_ShowWMCursor(_THIS, WMcursor *cursor)
{
GEM_cursor = cursor;
GEM_CheckMouseMode(this);
#ifdef DEBUG_VIDEO_GEM
printf("sdl:video:gem: ShowWMCursor(0x%08x)\n", (long) cursor);
#endif
return 1;
}
#if 0
void GEM_WarpWMCursor(_THIS, Uint16 x, Uint16 y)
{
/* This seems to work only on AES 3.4 (Falcon) */
EVNTREC warpevent;
warpevent.ap_event = APPEVNT_MOUSE;
warpevent.ap_value = (x << 16) | y;
appl_tplay(&warpevent, 1, 1000);
}
#endif
void GEM_CheckMouseMode(_THIS)
{
const Uint8 full_focus = (SDL_APPACTIVE|SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS);
int set_system_cursor = 1, show_system_cursor = 1;
#ifdef DEBUG_VIDEO_GEM
printf("sdl:video:gem: check mouse mode\n");
#endif
/* If the mouse is hidden and input is grabbed, we use relative mode */
GEM_mouse_relative = (!(SDL_cursorstate & CURSOR_VISIBLE))
&& (this->input_grab != SDL_GRAB_OFF)
&& (SDL_GetAppState() & SDL_APPACTIVE);
SDL_AtariXbios_LockMousePosition(GEM_mouse_relative);
if (SDL_cursorstate & CURSOR_VISIBLE) {
/* Application defined cursor only over the application window */
if ((SDL_GetAppState() & full_focus) == full_focus) {
if (GEM_cursor) {
graf_mouse(USER_DEF, GEM_cursor->mform_p);
set_system_cursor = 0;
} else {
show_system_cursor = 0;
}
}
} else {
/* Mouse cursor hidden only over the application window */
if ((SDL_GetAppState() & full_focus) == full_focus) {
set_system_cursor = 0;
show_system_cursor = 0;
}
}
graf_mouse(show_system_cursor ? M_ON : M_OFF, NULL);
if (set_system_cursor) {
graf_mouse(ARROW, NULL);
}
}
|
//
// YKOneKeyMatchRemoteController.h
// YKCenterDemo
//
// Created by dong on 2017/11/30.
// Copyright © 2017年 Shenzhen Yaokan Technology Co., Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
@class YKRemoteMatchDevice;
@interface YKOneKeyMatchRemoteController : UITableViewController
@property (nonatomic, strong) NSArray <YKRemoteMatchDevice *> *devices;
@end
|
/* Copyright (c) 2009-2010 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "array.h"
#include "env-util.h"
#include "fdpass.h"
#include "ioloop.h"
#include "restrict-access.h"
#include "master-service.h"
#include "master-service-settings.h"
#include "master-interface.h"
#include "connect-limit.h"
#include "penalty.h"
#include "anvil-connection.h"
#include <unistd.h>
struct connect_limit *connect_limit;
struct penalty *penalty;
static struct io *log_fdpass_io;
static void client_connected(struct master_service_connection *conn)
{
bool master = conn->listen_fd == MASTER_LISTEN_FD_FIRST;
master_service_client_connection_accept(conn);
anvil_connection_create(conn->fd, master, conn->fifo);
}
static void log_fdpass_input(void *context ATTR_UNUSED)
{
int fd;
char c;
ssize_t ret;
/* master wants us to replace the log fd */
ret = fd_read(MASTER_ANVIL_LOG_FDPASS_FD, &c, 1, &fd);
if (ret < 0)
i_error("fd_read(log fd) failed: %m");
else if (ret == 0) {
/* master died. lib-master should notice it soon. */
io_remove(&log_fdpass_io);
} else {
if (dup2(fd, STDERR_FILENO) < 0)
i_fatal("dup2(fd_read log fd, stderr) failed: %m");
if (close(fd) < 0)
i_error("close(fd_read log fd) failed: %m");
}
}
int main(int argc, char *argv[])
{
const enum master_service_flags service_flags =
MASTER_SERVICE_FLAG_UPDATE_PROCTITLE;
const char *error;
master_service = master_service_init("anvil", service_flags,
&argc, &argv, NULL);
if (master_getopt(master_service) > 0)
return FATAL_DEFAULT;
if (master_service_settings_read_simple(master_service,
NULL, &error) < 0)
i_fatal("Error reading configuration: %s", error);
master_service_init_log(master_service, "anvil: ");
restrict_access_by_env(NULL, FALSE);
restrict_access_allow_coredumps(TRUE);
/* delay dying until all of our clients are gone */
master_service_set_die_with_master(master_service, FALSE);
master_service_init_finish(master_service);
connect_limit = connect_limit_init();
penalty = penalty_init();
log_fdpass_io = io_add(MASTER_ANVIL_LOG_FDPASS_FD, IO_READ,
log_fdpass_input, NULL);
master_service_run(master_service, client_connected);
if (log_fdpass_io != NULL)
io_remove(&log_fdpass_io);
penalty_deinit(&penalty);
connect_limit_deinit(&connect_limit);
anvil_connections_destroy_all();
master_service_deinit(&master_service);
return 0;
}
|
//
// Created by jonno on 4/18/15.
//
#ifndef COLD_POTATO_PROXY_CONNECTION_H
#define COLD_POTATO_PROXY_CONNECTION_H
#include <thread>
#include "ConnectionData.h"
#include "Socket.h"
class Connection {
protected:
ConnectionData* mConnectionData;
std::unique_ptr<Socket> mSock;
/**
* Reads in the address type, then it reads in the correct amount
* of data depending on the type of address it is.
* It then will read in the port information as well.
* Returns false if any error occurred.
* Returns true if all happened without problems.
*/
bool readAddressInformation(AddressDetails &rq);
void relayTraffic(std::shared_ptr<Socket> outSock);
public:
Connection(ConnectionData* connection);
virtual ~Connection();
};
#endif //COLD_POTATO_PROXY_CONNECTION_H
|
#pragma once
#include <tuple>
#include <absl/types/optional.h>
#include "chainerx/array.h"
#include "chainerx/dtype.h"
namespace chainerx {
Array Dot(const Array& a, const Array& b, absl::optional<Dtype> out_dtype = absl::nullopt);
Array Solve(const Array& a, const Array& b);
Array Inverse(const Array& a);
std::tuple<Array, Array, Array> Svd(const Array& a, bool full_matrices, bool compute_uv);
Array PseudoInverse(const Array& a, float rcond);
enum class QrMode {
// if K = min(M, N), where `a` of shape (M, N)
kReduced, // returns q, r with dimensions (M, K), (K, N) (default)
kComplete, // returns q, r with dimensions (M, M), (M, N)
kR, // returns empty q and r with dimensions (0, 0), (K, N)
kRaw // returns h, tau with dimensions (N, M), (K, 1)
};
std::tuple<Array, Array> Qr(const Array& a, QrMode mode);
} // namespace chainerx
|
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2016, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the following
conditions are met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
* Neither the name of the assimp team, nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission of the assimp team.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------------
*/
/** @file vector3.h
* @brief 3D vector structure, including operators when compiling in C++
*/
#pragma once
#ifndef AI_VECTOR3D_H_INC
#define AI_VECTOR3D_H_INC
#ifdef __cplusplus
# include <cmath>
#else
# include <math.h>
#endif
#include "ai_pushpack1.h"
#include "ai_defs.h"
#ifdef __cplusplus
template<typename TReal> class aiMatrix3x3t;
template<typename TReal> class aiMatrix4x4t;
// ---------------------------------------------------------------------------
/** Represents a three-dimensional vector. */
template <typename TReal>
class aiVector3t
{
public:
aiVector3t () : x(), y(), z() {}
aiVector3t (TReal _x, TReal _y, TReal _z) : x(_x), y(_y), z(_z) {}
explicit aiVector3t (TReal _xyz) : x(_xyz), y(_xyz), z(_xyz) {}
aiVector3t (const aiVector3t& o) : x(o.x), y(o.y), z(o.z) {}
public:
// combined operators
const aiVector3t& operator += (const aiVector3t& o);
const aiVector3t& operator -= (const aiVector3t& o);
const aiVector3t& operator *= (TReal f);
const aiVector3t& operator /= (TReal f);
// transform vector by matrix
aiVector3t& operator *= (const aiMatrix3x3t<TReal>& mat);
aiVector3t& operator *= (const aiMatrix4x4t<TReal>& mat);
// access a single element
TReal operator[](unsigned int i) const;
TReal& operator[](unsigned int i);
// comparison
bool operator== (const aiVector3t& other) const;
bool operator!= (const aiVector3t& other) const;
bool operator < (const aiVector3t& other) const;
bool Equal(const aiVector3t& other, TReal epsilon = 1e-6) const;
template <typename TOther>
operator aiVector3t<TOther> () const;
public:
/** @brief Set the components of a vector
* @param pX X component
* @param pY Y component
* @param pZ Z component */
void Set( TReal pX, TReal pY, TReal pZ);
/** @brief Get the squared length of the vector
* @return Square length */
TReal SquareLength() const;
/** @brief Get the length of the vector
* @return length */
TReal Length() const;
/** @brief Normalize the vector */
aiVector3t& Normalize();
/** @brief Normalize the vector with extra check for zero vectors */
aiVector3t& NormalizeSafe();
/** @brief Componentwise multiplication of two vectors
*
* Note that vec*vec yields the dot product.
* @param o Second factor */
const aiVector3t SymMul(const aiVector3t& o);
TReal x, y, z;
} PACK_STRUCT;
typedef aiVector3t<ai_real> aiVector3D;
#else
struct aiVector3D {
ai_real x, y, z;
} PACK_STRUCT;
#endif // __cplusplus
#include "ai_poppack1.h"
#ifdef __cplusplus
#endif // __cplusplus
#endif // AI_VECTOR3D_H_INC
|
#import <UIKit/UIKit.h>
#import "AutoPropertyRelease.h"
#import "MovieControlsAdaptor.h"
#import "QTFileParserAppAppDelegate.h"
#import "QTFileParserAppViewController.h"
#import "ApngConvertMaxvid.h"
#import "AV7zApng2MvidResourceLoader.h"
#import "AV7zAppResourceLoader.h"
#import "AVAnimatorLayer.h"
#import "AVAnimatorLayerPrivate.h"
#import "AVAnimatorMedia.h"
#import "AVAnimatorMediaPrivate.h"
#import "AVAnimatorMediaRendererProtocol.h"
#import "AVAnimatorView.h"
#import "AVAnimatorViewPrivate.h"
#import "AVApng2MvidResourceLoader.h"
#import "AVAppResourceLoader.h"
#import "AVAsset2MvidResourceLoader.h"
#import "AVAssetConvertCommon.h"
#import "AVAssetFrameDecoder.h"
#import "AVAssetJoinAlphaResourceLoader.h"
#import "AVAssetReaderConvertMaxvid.h"
#import "AVAssetWriterConvertFromMaxvid.h"
#import "AVFileUtil.h"
#import "AVFrame.h"
#import "AVFrameDecoder.h"
#import "AVImageFrameDecoder.h"
#import "AVMvidFileWriter.h"
#import "AVMvidFrameDecoder.h"
#import "AVOfflineComposition.h"
#import "AVResourceLoader.h"
#import "CGFrameBuffer.h"
#import "libapng.h"
#import "maxvid_decode.h"
#import "maxvid_encode.h"
#import "maxvid_file.h"
#import "movdata.h"
#import "SegmentedMappedData.h"
#import "7z.h"
#import "7zBuf.h"
#import "7zFile.h"
#import "7zVersion.h"
#import "Alloc.h"
#import "CpuArch.h"
#import "Delta.h"
#import "LzHash.h"
#import "Lzma2Dec.h"
#import "LzmaDec.h"
#import "LZMAExtractor.h"
#import "Ppmd.h"
#import "Ppmd7.h"
#import "Ppmd8.h"
#import "RotateDefs.h"
#import "Types.h"
#import "7zAlloc.h"
#import "MovieControlsView.h"
#import "MovieControlsViewController.h"
FOUNDATION_EXPORT double AVAnimatorVersionNumber;
FOUNDATION_EXPORT const unsigned char AVAnimatorVersionString[];
|
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2017 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#ifndef APPLESEED_RENDERER_API_OBJECT_H
#define APPLESEED_RENDERER_API_OBJECT_H
// API headers.
#include "renderer/modeling/object/curveobject.h"
#include "renderer/modeling/object/curveobjectreader.h"
#include "renderer/modeling/object/curveobjectwriter.h"
#include "renderer/modeling/object/iobjectfactory.h"
#include "renderer/modeling/object/meshobject.h"
#include "renderer/modeling/object/meshobjectoperations.h"
#include "renderer/modeling/object/meshobjectprimitives.h"
#include "renderer/modeling/object/meshobjectreader.h"
#include "renderer/modeling/object/meshobjectwriter.h"
#include "renderer/modeling/object/object.h"
#include "renderer/modeling/object/objectfactoryregistrar.h"
#include "renderer/modeling/object/objecttraits.h"
#include "renderer/modeling/object/proceduralobject.h"
#include "renderer/modeling/object/triangle.h"
#endif // !APPLESEED_RENDERER_API_OBJECT_H
|
#pragma once
#include "SYCL/access.h"
#include "SYCL/accessor.h"
#include "SYCL/accessors/buffer_base.h"
#include "SYCL/accessors/device_reference.h"
#include "SYCL/detail/common.h"
#include "SYCL/detail/data_ref.h"
#include "SYCL/detail/src_handlers/register_resource.h"
#include "SYCL/ranges/id.h"
namespace cl {
namespace sycl {
namespace detail {
/**
* Device buffer accessors
*
* 3.4.6 Accessors and 3.4.6.4 Buffer accessors
*/
SYCL_ACCESSOR_CLASS(target == access::target::constant_buffer ||
target == access::target::global_buffer)
, public accessor_buffer<DataType, dimensions>,
public accessor_device_ref<dimensions, DataType, dimensions, mode, target> {
private:
template <int, typename, int, access::mode, access::target>
friend class accessor_device_ref;
using return_t = typename acc_device_return<DataType>::type;
using base_acc_buffer = accessor_buffer<DataType, dimensions>;
using base_acc_device_ref =
accessor_device_ref<dimensions, DataType, dimensions, mode, target>;
public:
accessor_detail(cl::sycl::buffer<DataType, dimensions> & bufferRef,
handler & commandGroupHandler, range<dimensions> offset,
range<dimensions> range)
: base_acc_buffer(bufferRef, &commandGroupHandler, offset, range),
base_acc_device_ref(this, {}) {}
accessor_detail(cl::sycl::buffer<DataType, dimensions> & bufferRef,
handler & commandGroupHandler)
: accessor_detail(bufferRef, commandGroupHandler,
detail::empty_range<dimensions>(),
bufferRef.get_range()) {}
accessor_detail(const accessor_detail& copy)
: base_acc_buffer(static_cast<const base_acc_buffer&>(copy)),
base_acc_device_ref(this, copy) {}
accessor_detail(accessor_detail && move) noexcept
: base_acc_buffer(std::move(static_cast<base_acc_buffer&&>(move))),
base_acc_device_ref(
this, std::move(static_cast<base_acc_device_ref&&>(move))) {}
accessor_detail& operator=(const accessor_detail& copy) {
base_acc_buffer::operator=(copy);
base_acc_device_ref tmp(copy);
std::swap(static_cast<base_acc_device_ref&>(*this), tmp);
return *this;
}
accessor_detail& operator=(accessor_detail&& move) noexcept {
base_acc_buffer::operator=(std::move(move));
std::swap(static_cast<base_acc_device_ref&>(*this), move);
return *this;
}
cl_mem get_cl_mem_object() const final {
return base_acc_buffer::get_buffer_object();
}
return_t operator[](id<dimensions> index) const {
auto resource_name = kernel_ns::register_resource(*this);
return return_t(resource_name + "[" + data_ref::get_name(index) + "]");
}
private:
using subscript_return_t =
typename subscript_helper<dimensions, DataType, dimensions, mode,
target>::type;
public:
SYCL_DEVICE_REF_SUBSCRIPT_OPERATORS(base_acc_device_ref::);
protected:
void* resource() const final {
return base_acc_buffer::buf;
}
::size_t argument_size() const final {
return sizeof(cl_mem);
}
};
} // namespace detail
} // namespace sycl
} // namespace cl
|
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#define SPDLOG_VERSION "0.17.0"
#include "tweakme.h"
#include <atomic>
#include <chrono>
#include <exception>
#include <functional>
#include <initializer_list>
#include <memory>
#include <string>
#include <unordered_map>
#if defined(_WIN32) && defined(SPDLOG_WCHAR_FILENAMES)
#include <codecvt>
#include <locale>
#endif
#include "details/null_mutex.h"
// visual studio upto 2013 does not support noexcept nor constexpr
#if defined(_MSC_VER) && (_MSC_VER < 1900)
#define SPDLOG_NOEXCEPT throw()
#define SPDLOG_CONSTEXPR
#else
#define SPDLOG_NOEXCEPT noexcept
#define SPDLOG_CONSTEXPR constexpr
#endif
// final keyword support. On by default. See tweakme.h
#if defined(SPDLOG_NO_FINAL)
#define SPDLOG_FINAL
#else
#define SPDLOG_FINAL final
#endif
#if defined(__GNUC__) || defined(__clang__)
#define SPDLOG_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
#define SPDLOG_DEPRECATED __declspec(deprecated)
#else
#define SPDLOG_DEPRECATED
#endif
#include "fmt/fmt.h"
namespace spdlog {
class formatter;
namespace sinks {
class sink;
}
using log_clock = std::chrono::system_clock;
using sink_ptr = std::shared_ptr<sinks::sink>;
using sinks_init_list = std::initializer_list<sink_ptr>;
using formatter_ptr = std::shared_ptr<spdlog::formatter>;
#if defined(SPDLOG_NO_ATOMIC_LEVELS)
using level_t = details::null_atomic_int;
#else
using level_t = std::atomic<int>;
#endif
using log_err_handler = std::function<void(const std::string &err_msg)>;
// Log level enum
namespace level {
enum level_enum
{
trace = 0,
debug = 1,
info = 2,
warn = 3,
err = 4,
critical = 5,
off = 6
};
#if !defined(SPDLOG_LEVEL_NAMES)
#define SPDLOG_LEVEL_NAMES \
{ \
"trace", "debug", "info", "warning", "error", "critical", "off" \
}
#endif
static const char *level_names[] SPDLOG_LEVEL_NAMES;
static const char *short_level_names[]{"T", "D", "I", "W", "E", "C", "O"};
inline const char *to_str(spdlog::level::level_enum l)
{
return level_names[l];
}
inline const char *to_short_str(spdlog::level::level_enum l)
{
return short_level_names[l];
}
inline spdlog::level::level_enum from_str(const std::string &name)
{
static std::unordered_map<std::string, level_enum> name_to_level = // map string->level
{{level_names[0], level::trace}, // trace
{level_names[1], level::debug}, // debug
{level_names[2], level::info}, // info
{level_names[3], level::warn}, // warn
{level_names[4], level::err}, // err
{level_names[5], level::critical}, // critical
{level_names[6], level::off}}; // off
auto lvl_it = name_to_level.find(name);
return lvl_it != name_to_level.end() ? lvl_it->second : level::off;
}
using level_hasher = std::hash<int>;
} // namespace level
//
// Async overflow policy - block by default.
//
enum class async_overflow_policy
{
block_retry, // Block / yield / sleep until message can be enqueued
discard_log_msg // Discard the message it enqueue fails
};
//
// Pattern time - specific time getting to use for pattern_formatter.
// local time by default
//
enum class pattern_time_type
{
local, // log localtime
utc // log utc
};
//
// Log exception
//
namespace details {
namespace os {
std::string errno_str(int err_num);
}
} // namespace details
class spdlog_ex : public std::exception
{
public:
explicit spdlog_ex(std::string msg)
: _msg(std::move(msg))
{
}
spdlog_ex(const std::string &msg, int last_errno)
{
_msg = msg + ": " + details::os::errno_str(last_errno);
}
const char *what() const SPDLOG_NOEXCEPT override
{
return _msg.c_str();
}
private:
std::string _msg;
};
//
// wchar support for windows file names (SPDLOG_WCHAR_FILENAMES must be defined)
//
#if defined(_WIN32) && defined(SPDLOG_WCHAR_FILENAMES)
using filename_t = std::wstring;
#else
using filename_t = std::string;
#endif
#define SPDLOG_CATCH_AND_HANDLE catch (const std::exception &ex) {_err_handler(ex.what());}\
catch (...) {_err_handler("Unknown exeption in logger");}
} // namespace spdlog
|
#ifndef PARTICLES_RENDERER_PLUGINS_H
#define PARTICLES_RENDERER_PLUGINS_H
#include "RenderEngine/Particles/ParticleSystem.h"
#include "RenderEngine/Particles/Plugin.h"
#include "General/Utils.h"
namespace Alamo {
struct CommonRendererParameters
{
bool m_normalRenderMode;
bool m_reflectionRenderMode;
bool m_refractionRenderMode;
bool m_shadowMapRender;
bool m_disableDepthTest;
};
class BillboardRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
public:
std::string m_textureName;
std::string m_shaderName;
bool m_sort;
BillboardRendererPlugin(ParticleSystem::Emitter& emitter);
BillboardRendererPlugin(ParticleSystem::Emitter& emitter, const std::string& textureName, const std::string& shaderName, bool disableDepthTest);
};
class XYAlignedRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
public:
std::string m_textureName;
std::string m_shaderName;
bool m_sort;
bool m_localSpace;
XYAlignedRendererPlugin(ParticleSystem::Emitter& emitter);
XYAlignedRendererPlugin(ParticleSystem::Emitter& emitter, const std::string& textureName, const std::string& shaderName, bool disableDepthTest);
};
class VelocityAlignedRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
size_t GetPrivateDataSize() const;
void InitializeParticle(Particle* p, void* data) const;
public:
struct PrivateData
{
float aspect;
};
std::string m_textureName;
std::string m_shaderName;
bool m_sort;
int m_anchor, m_rotation;
range<float> m_aspect;
VelocityAlignedRendererPlugin(ParticleSystem::Emitter& emitter);
};
class HeatSaturationRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
public:
std::string m_textureName;
std::string m_shaderName;
bool m_sort;
bool m_xyAligned;
float m_distanceCutoff;
float m_distortion;
float m_saturation;
HeatSaturationRendererPlugin(ParticleSystem::Emitter& emitter);
HeatSaturationRendererPlugin(ParticleSystem::Emitter& emitter, const std::string& textureName, const std::string& shaderName, bool disableDepthTest, bool xyAligned);
};
class KitesRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
size_t GetPrivateDataSize() const;
void InitializeParticle(Particle* p, void* data) const;
public:
struct PrivateData
{
float m_tailSpeed;
};
std::string m_textureName;
std::string m_shaderName;
bool m_sort;
int m_rotation;
float m_tailSize;
range<float> m_tailSpeed;
KitesRendererPlugin(ParticleSystem::Emitter& emitter);
KitesRendererPlugin(ParticleSystem::Emitter& emitter, const std::string& textureName, const std::string& shaderName, bool disableDepthTest, float tailSize);
};
class ChainRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
public:
std::string m_textureName;
std::string m_shaderName;
ChainRendererPlugin(ParticleSystem::Emitter& emitter);
};
class XYAlignedChainRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
public:
std::string m_textureName;
std::string m_shaderName;
bool m_sort;
bool m_localSpace;
XYAlignedChainRendererPlugin(ParticleSystem::Emitter& emitter);
};
class StretchedTextureChainRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
public:
std::string m_textureName;
std::string m_shaderName;
bool m_renderEmitter;
float m_emitterSize;
StretchedTextureChainRendererPlugin(ParticleSystem::Emitter& emitter);
};
class LineRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
public:
std::string m_textureName;
std::string m_shaderName;
float m_maxTime;
LineRendererPlugin(ParticleSystem::Emitter& emitter);
};
class BumpMapRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
public:
std::string m_baseTextureName;
std::string m_bumpTextureName;
std::string m_shaderName;
bool m_sort;
Color m_specular;
Color m_emissive;
BumpMapRendererPlugin(ParticleSystem::Emitter& emitter);
};
class VolumetricRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
public:
std::string m_maskTextureName;
std::string m_baseTextureName;
std::string m_bumpTextureName;
std::string m_shaderName;
float m_textureSize;
Vector2 m_scroll;
bool m_sort;
Color m_specular;
Color m_emissive;
VolumetricRendererPlugin(ParticleSystem::Emitter& emitter);
};
class HardwareBillboardsRendererPlugin : public RendererPlugin, public CommonRendererParameters
{
void CheckParameter(int id);
public:
std::string m_textureName;
std::string m_shaderName;
int m_renderMode;
int m_geometryMode;
int m_anchorPoint;
float m_aspect;
int m_rotation;
Vector4 m_textureCoords;
std::pair<float, Color> m_colors[3];
std::pair<float, float> m_sizes[3];
HardwareBillboardsRendererPlugin(ParticleSystem::Emitter& emitter);
};
}
#endif |
//
// MyArrangeTimingCollectCell.h
// AllCell
//
// Created by Adozen12 on 13-12-25.
// Copyright (c) 2013年 lanou. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MyArrangeTimingCollectCell : UICollectionViewCell
@property (nonatomic,retain) UILabel *weekToWeek;
@end
|
#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_ICPagingManager_ExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_ICPagingManager_ExampleVersionString[];
|
//
// AppDelegate.h
// SYHUDView
//
// Created by Sauchye on 8/20/15.
// Copyright © 2015 sauchye.com. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/*******************************************************
* File name: peri_key.h
* Author: Chongguang Li
* Versions:1.0
* Description:This module is the key function module.
* History:
* 1.Date:
* Author:
* Modification:
*********************************************************/
#ifndef PERI_KEY_H_
#define PERI_KEY_H_
#include "gpio.h"
#include "../../include/os_type.h"
#include "driver/key_base.h"
#define CONFIG_KEY_GPIO_ID 4
void peri_config_key_init(uint8 gpio_id);
#endif /* APP_INCLUDE_USER_USER_KEY_H_ */
|
// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag
extern int __VERIFIER_nondet_int();
#include <assert.h>
int g;
int h;
void foo() {
int r = __VERIFIER_nondet_int(); //rand
if (r) {
g = 5;
h = 3;
}
else {
g = 6;
h = 4;
}
assert(h < g);
assert(g - h == 2);
// return state should contain globals
}
int main(void) {
int r = __VERIFIER_nondet_int(); //rand
if (r) {
g = 3;
h = 5;
}
else {
g = 4;
h = 6;
}
assert(g < h);
assert(h - g == 2);
foo(); // combine should use globals from function, not go to bottom due to contradiction with local
assert(h < g);
assert(g - h == 2);
return 0;
}
|
/*
The MIT License (MIT)
Copyright (c) 2014 Chandan Pawaskar (chandan.pawaskar@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 use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include <string.h>
#include <math.h>
#include <iostream>
#include <vector>
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <Eigen/QR>
#include <Eigen/SparseQR>
using Eigen::DynamicSparseMatrix;
using Eigen::SparseMatrix;
using Eigen::MatrixXd;
using Eigen::HouseholderQR;
using Eigen::Vector3d;
using Eigen::Vector3f;
typedef std::vector<unsigned int> ConstrainedVertIDs;
class DeformationTransferManager
{
public:
DeformationTransferManager();
~DeformationTransferManager();
//************************************
// Method: Set the SourceA and TargetA meshes
// Returns: True if successful else false
// Parameter: int nTriangles - number of triangles
// Parameter: int nVertices - number of vertices
// Parameter: const int * triVerterxIds - pointer to triangle vertex id's for SourceA mesh, has length = nTriangles * 3
// Parameter: const float * vertexLocsSA - pointer to vertex locations for SourceA mesh, has length = nVertices * 3
// Parameter: const float * vertexLocsTA - pointer to vertex locations for TargetA mesh, has length = nVertices * 3
//************************************
bool SetSourceATargetA(int nTriangles, int nVertices, const int* triVertexIds, const float* vertexLocsSA,
const float* VertexLocsTA, ConstrainedVertIDs *vertConstrains = NULL);
//************************************
// Method: Transfers deformation of SourceA-SourceB to TargetA and returns pointer to resulting vertex locations in defVertLocs
// Returns: True if succeeded else false.
// Parameter: const float * vertLocsSB - pointer to vertex locations for SourceB mesh, has length = nVertices * 3
// Parameter: const float * vertLocsTB - pointer to vertex locations for TargetB mesh, has length = nVertices * 3
// Parameter: float * * defVertLocs - pointer to a float pointer. This is updated to the location where the result is stored.
//************************************
bool TransferDeformation(const float* vertLocsSB, const float* vertLocsTB, float** defVertLocs);
//************************************
// Method: Query the last error string.
// Returns: std::string
//************************************
std::string GetLastError();
//************************************
// Method: Set to true to enable logging. Default is disabled.
// Parameter: bool bLogging
//************************************
void SetLogging(bool bLogging);
//************************************
// Method: Set Regularization value to be used. This can help
// stabilize numerically unstable matrices without affecting
// desirable results much.
// Parameter: float regVal Set to zero or negative to disable.
//************************************
void SetRegularization(float regVal);
protected:
private:
int nTris, nVerts;
const int *triVertIds;
const float *vertLocsSA, *vertLocsTA;
float *defVerts;
SparseMatrix<double> *U, *Uk, *Ur, Ut, UtU;
std::string strLastError;
bool bLog; float regularization;
ConstrainedVertIDs constrainedVertIDs;
Eigen::SparseLU< SparseMatrix<double> > solver;
void SetMatrixBlock(MatrixXd &mBig, MatrixXd &mSmall, int iRow, int iCol);
void SetSparseMatrixBlock(SparseMatrix<double> &mBig, MatrixXd &mSmall, int iRow, int iCol);
void SetMatrixCol(MatrixXd &m, Vector3f v, int iCol);
void SetTriEdgeMatrix(MatrixXd &Va, int nTris, const int* triVertIds, const float* pts, int iTri);
void Reset();
//************************************
// Method: q,r should be preallocated and r must be cleared.
// Parameter: const MatrixXd & a
// Parameter: MatrixXd & q
// Parameter: MatrixXd & r
//************************************
void QRFactorize(const MatrixXd &a, MatrixXd &q, MatrixXd &r);
}; |
#pragma once
#include <memory>
#include <functional>
#include "cinder/app/App.h"
#include "cinder/app/App.h"
// #include "cinder/Signals.h"
using namespace std;
namespace cms {
class ModelBase {
public:
typedef void* CidType;
typedef function<void(const string&, const string&)> AttrIterateFunc;
typedef function<void(void)> LockFunctor;
// used in attributeChangeEvent notifications
class AttrChangeArgs {
public:
ModelBase *model;
string attr;
string value;
};
//! Sub-type used a record-format when queueing modifications while to model is locked
class Mod {
public:
string attr, value;
bool notify;
Mod(const string& _attr, const string& _value, bool _notify=true) : attr(_attr), value(_value), notify(_notify){}
};
public:
ModelBase() : lockCount(0){}
ModelBase* set(const string &attr, const string &value, bool notify = true);
ModelBase* set(const map<string, string> &attrs, bool notify=true);
string get(const string &attr, string _default = "") const;
string getId() const { return get("id", get("_id")); }
CidType cid() const { return (CidType)this; }
const map<string, string> &attributes() const { return _attributes; }
bool has(const string& attr) const;
bool equals(shared_ptr<ModelBase> other){ return other->cid() == cid(); }
size_t size() const { return _attributes.size(); }
void each(AttrIterateFunc func);
void copy(shared_ptr<ModelBase> otherRef, bool also_ids=false);
void copy(ModelBase& other, bool also_ids=false);
protected: // methods
bool isLocked() const { return lockCount > 0; }
void lock(LockFunctor func);
protected: // callbacks
//! this virtual method is called whenever an attribute is written (using this->set()) and can be overwritten be inheriting classes
virtual void onSetAttribute(const string &attr, const string &value){}
//! this virtual method is called whenever an attribute is changed (using this->set()) and can be overwritten be inheriting classes
virtual void onAttributeChanged(const string &attr, const string &value, const string &old_value){}
public: // attribute conversions
ModelBase* setBool(const string &attr, bool val, bool notify = true) {
return this->set(attr, (string)(val ? "true" : "false"), notify);
}
ModelBase* set(const string &attr, const ci::vec2& val, bool notify = true) {
return this->set(attr, std::to_string(val.x) +","+std::to_string(val.y), notify);
}
ModelBase* set(const string &attr, const ci::vec3& val, bool notify = true) {
return this->set(attr, std::to_string(val.x) +","+std::to_string(val.y) +","+std::to_string(val.z), notify);
}
int getInt(const string& attr, int defaultValue = 0);
float getFloat(const string& attr, float defaultValue = 0.0f);
bool getBool(const string& attr, bool defaultValue = false);
glm::vec2 getVec2(const string& attr, const glm::vec2& defaultValue = glm::vec2(0.0f, 0.0f));
glm::vec3 getVec3(const string& attr, const glm::vec3& defaultValue = glm::vec3(0.0f, 0.0f, 0.0f));
ci::ColorAf getColor(const string& attr, const ci::ColorAf& defaultValue = ci::ColorAf(1.0f, 1.0f, 1.0f, 1.0f));
bool with(const string& attr, function<void(const string&)> func);
bool withInt(const string& attr, function<void(const int&)> func);
// bool with(const string& attr, function<void(float)> func){ return this->withFloat(attr, func); }
bool withFloat(const string& attr, function<void(float)> func);
bool with(const string& attr, function<void(const bool&)> func){ return this->withBool(attr, func); }
bool withBool(const string& attr, function<void(const bool&)> func);
bool with(const string& attr, function<void(const glm::vec2&)> func){ return this->withVec2(attr, func); }
bool withVec2(const string& attr, function<void(const glm::vec2&)> func);
bool with(const string& attr, function<void(const glm::vec3&)> func){ return this->withVec3(attr, func); }
bool withVec3(const string& attr, function<void(const glm::vec3&)> func);
public: // events
//! this event is triggered whenever the model changes (which means; when any attribute changes) and gives the caller a reference to this model
ci::signals::Signal<void(ModelBase&)> changeSignal;
//! this event is triggered whenever the model changes (which means; when any attribute changes) and gives the caller an object with a pointer to the model and information about which attribute changed
ci::signals::Signal<void(const AttrChangeArgs&)> attributeChangeSignal;
private: // attributes
//! the internal storage map for this model's attributes
map<string, string> _attributes;
// a counter to track the number of active (recursive) locks
int lockCount;
std::vector<shared_ptr<Mod>> modQueueRefs;
};
}
|
#ifndef CRC_H
#define CRC_H
#include <stdlib.h>
uint32_t crc32(const void *buf, size_t size);
#endif // CRC_H |
//
// ACTSimpleChapterNumberCell.h
// UnfoldingWord
//
// Created by David Solberg on 6/3/15.
// Copyright (c) 2015 Acts Media Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ACTSimpleChapterNumberCell : UITableViewCell
@property (nonatomic, weak) IBOutlet UILabel *labelChapter;
@end
|
// モノラルのサイン波を生成してlibaoで再生する
// macOS
// clang 033.c -lao
// Linux
// gcc 033.c -lao -ldl -lm
#include <stdio.h>
#include <string.h>
#include <ao/ao.h>
#include <math.h>
#define BUF_SIZE 4096
int
main(int argc, char** argv)
{
ao_device *device;
ao_sample_format format;
int default_driver;
float freq = 440.0;
float amp = 0.1;
// 初期化
fprintf(stderr, "libao example program\n");
ao_initialize();
// 標準ドライバの設定
default_driver = ao_default_driver_id();
memset(&format, 0, sizeof(format));
format.bits = 16;
format.channels = 1;
format.rate = 44100;
format.byte_format = AO_FMT_LITTLE;
// ドライバを開く
device = ao_open_live(default_driver, &format, NULL /* no options */);
if (device == NULL) {
fprintf(stderr, "Error opening device.\n");
return 1;
}
// 音を生成して再生する
{
int buf_size = format.bits / 8 * format.channels * format.rate;
char* buffer = calloc(buf_size, sizeof(char));
int samples_size = format.bits / 16 * format.channels * format.rate;
float* samples = calloc(samples_size, sizeof(int));
// 音を生成して格納する
for (int n = 0; n < format.rate; n++) {
samples[n] = amp * sin(2 * M_PI * freq * ((float)n / format.rate));
}
// 音を1バイトずつ格納する
for (int i = 0; i < format.rate; i++) {
int sample = (int)(samples[i] * 32768.0);
buffer[2 * i] = sample & 0xff;
buffer[2 * i + 1] = (sample >> 8) & 0xff;
}
ao_play(device, buffer, buf_size);
}
// クローズして終了する
ao_close(device);
ao_shutdown();
return (0);
} |
//
// ExpressionScanner.hpp
// lemonscript
//
// Created by Donald Pinckney on 2/22/16.
// Copyright © 2016 Donald Pinckney. All rights reserved.
//
#ifndef ExpressionScanner_hpp
#define ExpressionScanner_hpp
#include <stdio.h>
#include <string>
#include <sstream>
#include "expressions.h"
// "(", ",", ")", "true", "false", digit, alpha, "/", "*", "=", "-", "+", "!", "%", "<", ">", "&", "|", "^"
enum class lemonscript_expressions::TK : char { // Note, the characters are only for debugging purposes
LPAREN = '(',
COMMA = ',',
RPAREN = ')',
BOOLEAN_TRUE = 'T',
BOOLEAN_FALSE = 'F',
DIGIT = 'd',
ALPHA = 'a',
UNDERSCORE = '_',
FORWARD_SLASH = '/',
ASTERISK = '*',
EQUALS = '=',
MINUS = '-',
PLUS = '+',
EXCLAMATION_MARK = '!',
PERCENT = '%',
LANGLE = '<',
RANGLE = '>',
AMPERSAND = '&',
PIPE = '|',
CARET = '^',
PERIOD = '.',
END_OF_FILE = 'E'
};
struct lemonscript_expressions::Token {
lemonscript_expressions::TK kind;
std::string string;
Token(lemonscript_expressions::TK k, const std::string &s) : kind(k), string(s) { };
std::string description() { return "(" + std::to_string(static_cast<char>(kind)) + ", " + string + ")"; }
};
class lemonscript_expressions::ExpressionScanner {
std::string toParse;
size_t readIndex;
bool got_eof; // true iff have seen EOF
// (int rather than char to handle EOF)
static const int EndOfFile = -1;
int getchar();
public:
ExpressionScanner(const std::string &s) : toParse(s), readIndex(0), got_eof(false) { };
Token scan();
};
#endif /* ExpressionScanner_hpp */
|
#ifndef QTIPCSERVER_H
#define QTIPCSERVER_H
// Define KolschCoin-Qt message queue name
#define BITCOINURI_QUEUE_NAME "KolschCoinURI"
void ipcScanRelay(int argc, char *argv[]);
void ipcInit(int argc, char *argv[]);
#endif // QTIPCSERVER_H
|
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor licenses this file to you under the OpenPegasus Open
// Source License; you may not use this file except in compliance with the
// License.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//////////////////////////////////////////////////////////////////////////
//
// Author: Mike Day (mdday@us.ibm.com)
//
// Modified By:
//
//%/////////////////////////////////////////////////////////////////////////////
#ifndef MessageQueueService_test_h
#define MessageQueueService_test_h
#endif
|
//
// FSMediaPicker.h
// Pods
//
// Created by Wenchao Ding on 2/3/15.
// f33chobits@gmail.com
//
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#ifndef LocalizedStrings
#define LocalizedStrings(key) \
NSLocalizedStringFromTableInBundle(key, @"FSMediaPicker", [NSBundle bundleWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"FSMediaPicker.bundle"]], nil)
#endif
@class FSMediaPicker;
typedef enum {
FSMediaTypePhoto = 0,
FSMediaTypeVideo = 1,
FSMediaTypeAll = 2
} FSMediaType;
typedef enum {
FSEditModeStandard = 0,
FSEditModeCircular = 1,
FSEditModeNone = 2
} FSEditMode;
UIKIT_EXTERN NSString const * UIImagePickerControllerCircularEditedImage;
@protocol FSMediaPickerDelegate <NSObject>
@required
- (void)mediaPicker:(FSMediaPicker *)mediaPicker didFinishWithMediaInfo:(NSDictionary *)mediaInfo;
@optional
- (void)mediaPicker:(FSMediaPicker *)mediaPicker willPresentImagePickerController:(UIImagePickerController *)imagePicker;
- (void)mediaPickerDidCancel:(FSMediaPicker *)mediaPicker;
@end
@interface FSMediaPicker : NSObject
@property (assign, nonatomic) FSMediaType mediaType;
@property (assign, nonatomic) FSEditMode editMode;
@property (nonatomic, strong) NSString *takePhotoString;
@property (nonatomic, strong) NSString *selectPhotoSring;
@property (nonatomic, strong) NSString *recordVideoString;
@property (nonatomic, strong) NSString *selectVideoString;
@property (nonatomic, strong) NSString *cancelString;
@property (nonatomic, strong) NSString *instructionString;
@property (assign, nonatomic) id<FSMediaPickerDelegate> delegate;
@property (copy, nonatomic) void(^willPresentImagePickerBlock)(FSMediaPicker *mediaPicker, UIImagePickerController *imagePicker);
@property (copy, nonatomic) void(^finishBlock)(FSMediaPicker *mediaPicker, NSDictionary *mediaInfo);
@property (copy, nonatomic) void(^cancelBlock)(FSMediaPicker *mediaPicker);
- (instancetype)initWithDelegate:(id<FSMediaPickerDelegate>)delegate;
- (void)showFromView:(UIView *)view;
@end
@interface NSDictionary (FSMediaPicker)
@property (readonly, nonatomic) UIImage *originalImage;
@property (readonly, nonatomic) UIImage *editedImage;
@property (readonly, nonatomic) NSURL *mediaURL;
@property (readonly, nonatomic) NSDictionary *mediaMetadata;
@property (readonly, nonatomic) FSMediaType mediaType;
@property (readonly, nonatomic) UIImage *circularEditedImage;
@end
@interface UIImage (FSMediaPicker)
- (UIImage *)circularImage;
- (UIImage *)circularImageWithRect:(CGRect)rect;
@end
/**
* @Purpose:
* Bind the life cylce of FSMediaPicker with UIActionSheet, UIAlertController and UIImagePickerControllr
* @How
* Without these three categories, FSMediaPicker would release immediately, for example://
*
* - (IBAction)buttonClicked:(id)sender
* {
* FSMediaPicker *mediaPicker = [[FSMediaPicker alloc] init];
* mediaPicker.delegate = self;
* [mediaPicker show];
* } <-- the mediaPicker will automatically release here
*
* But with these categories
* 1. UIActionSheet hold the mediaPicker, when UIActionSheet release the retain count decrease
* 2. When UIActionSheet release, the mediaPicker should release, but the UIImagePickerController's appearing increase the retain count to 1
* 3. When UIImagePickerController release, the retain count of mediaPicker would be zero if the viewController does not have a strong refrence to it
* This pattern breaks the original delegate a bit, because the traditional way is 'some class keep a weak reference to the delegate'. But this one keeps a strong. I write it in this way simply because it leads a simple usage. Any one has better idea ?
*/
@interface UIActionSheet (FSMediaPicker)
@property (strong, nonatomic) FSMediaPicker *mediaPicker;
@end
@interface UIAlertController (FSMediaPicker)
@property (strong, nonatomic) FSMediaPicker *mediaPicker;
@end
@interface UIImagePickerController (FSMediaPicker)
@property (strong, nonatomic) FSMediaPicker *mediaPicker;
@end
|
//
// JElasticPullToRefreshLoadingViewCircle.h
//
// Created by mifanJ on 16/4/6.
// Copyright © 2016年 mifanJ. All rights reserved.
//
#import "JElasticPullToRefreshLoadingView.h"
@interface JElasticPullToRefreshLoadingViewCircle : JElasticPullToRefreshLoadingView
@end
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_console_w32_spawnlp_09.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-09.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the console
* GoodSource: Fixed string
* Sink: w32_spawnlp
* BadSink : execute command with spawnlp
* Flow Variant: 09 Control flow: if(GLOBAL_CONST_TRUE) and if(GLOBAL_CONST_FALSE)
*
* */
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define COMMAND_INT_PATH "%WINDIR%\\system32\\cmd.exe"
#define COMMAND_INT "cmd.exe"
#define COMMAND_ARG1 "/c"
#define COMMAND_ARG2 "dir"
#define COMMAND_ARG3 data
#else /* NOT _WIN32 */
#include <unistd.h>
#define COMMAND_INT_PATH "/bin/sh"
#define COMMAND_INT "sh"
#define COMMAND_ARG1 "ls"
#define COMMAND_ARG2 "-la"
#define COMMAND_ARG3 data
#endif
#include <process.h>
#ifndef OMITBAD
void CWE78_OS_Command_Injection__char_console_w32_spawnlp_09_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
if(GLOBAL_CONST_TRUE)
{
{
/* Read input from the console */
size_t dataLen = strlen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgets(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgets() */
dataLen = strlen(data);
if (dataLen > 0 && data[dataLen-1] == '\n')
{
data[dataLen-1] = '\0';
}
}
else
{
printLine("fgets() failed");
/* Restore NUL terminator if fgets fails */
data[dataLen] = '\0';
}
}
}
}
/* spawnlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
_spawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodG2B1() - use goodsource and badsink by changing the GLOBAL_CONST_TRUE to GLOBAL_CONST_FALSE */
static void goodG2B1()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
if(GLOBAL_CONST_FALSE)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Append a fixed string to data (not user / external input) */
strcat(data, "*.*");
}
/* spawnlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
_spawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
}
/* goodG2B2() - use goodsource and badsink by reversing the blocks in the if statement */
static void goodG2B2()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
if(GLOBAL_CONST_TRUE)
{
/* FIX: Append a fixed string to data (not user / external input) */
strcat(data, "*.*");
}
/* spawnlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
_spawnlp(_P_WAIT, COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
}
void CWE78_OS_Command_Injection__char_console_w32_spawnlp_09_good()
{
goodG2B1();
goodG2B2();
}
#endif /* OMITGOOD */
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
#ifdef INCLUDEMAIN
int main(int argc, char * argv[])
{
/* seed randomness */
srand( (unsigned)time(NULL) );
#ifndef OMITGOOD
printLine("Calling good()...");
CWE78_OS_Command_Injection__char_console_w32_spawnlp_09_good();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
CWE78_OS_Command_Injection__char_console_w32_spawnlp_09_bad();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif
|
/*
* Author : Matthew Johnson
* Date : 19/Apr/2013
* Description :
* Multi-type container keyed on strings.
*/
#pragma once
namespace mage
{
//---------------------------------------
// DictionaryValueBase
// Base for values in Dictionary
//---------------------------------------
class DictionaryValueBase
{
public:
virtual ~DictionaryValueBase() {}
virtual DictionaryValueBase* Copy() = 0;
protected:
DictionaryValueBase() {}
};
//---------------------------------------
//---------------------------------------
// DictionaryValue
// Values stored in Dictionary
//---------------------------------------
template< typename T >
class DictionaryValue
: public DictionaryValueBase
{
public:
DictionaryValue( const T& value )
: mValue( value )
{}
virtual ~DictionaryValue() {}
virtual DictionaryValueBase* Copy()
{
return new DictionaryValue< T >( mValue );
}
const T& GetValue() const
{
return mValue;
}
private:
T mValue;
};
//---------------------------------------
//---------------------------------------
// Dictionary
// A multi-type container that stores values by string keys
//---------------------------------------
class Dictionary
{
public:
enum DictionaryError
{
DErr_SUCCESS = 0,
DErr_NO_ENTRY,
DErr_WRONG_TYPE,
DErr_EMPTY,
DErr_COUNT
};
static const char* GetErrorString( DictionaryError error )
{
static char* errorStrings[] =
{
"Success",
"No Entry",
"Wrong Type",
"Empty Container",
};
// Bad error code
if ( error < 0 || error >= DErr_COUNT )
{
return "Invalid ErrorCode";
}
return errorStrings[ error ];
}
Dictionary();
Dictionary( const Dictionary& other );
virtual ~Dictionary();
Dictionary& operator=( const Dictionary& other )
{
for ( auto itr = other.mDictionary.begin();
itr != other.mDictionary.end(); ++itr )
{
mDictionary[ itr->first ] = itr->second->Copy();
}
return *this;
}
template< typename T >
void Set( const std::string& key, const T& value )
{
// Delete the value if it already exists and set the new value
DictionaryValueBase*& v = mDictionary[ key ];
Delete0( v );
v = new DictionaryValue< T >( value );
}
// Get a named property from the Dictionary of a given type
// Returns DErr_SUCCESS on success or an error code on failure
// value is not modified on failure
template< typename T >
DictionaryError Get( const std::string& key, T& value ) const
{
// Error on empty
if ( mDictionary.empty() )
{
return DErr_EMPTY;
}
// Search for key and return error if not found
auto found = mDictionary.find( key );
if ( found == mDictionary.end() )
{
return DErr_NO_ENTRY;
}
// Try to cast the found value to the type of value
DictionaryValue< T >* v = dynamic_cast< DictionaryValue< T >* >( found->second );
// Error if wrong type
if ( !v )
{
return DErr_WRONG_TYPE;
}
// Everything went ok - set the output value and return success
value = v->GetValue();
return DErr_SUCCESS;
}
private:
std::map< std::string, DictionaryValueBase* > mDictionary;
};
//---------------------------------------
} |
/*MIT License
Copyright (c) 2018 MTA SZTAKI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.*/
#ifndef APE_VECTOR3_H
#define APE_VECTOR3_H
#include <cmath>
#include <sstream>
#include <string>
#include <vector>
#include <fstream>
namespace ape
{
struct Vector3
{
float x, y, z;
Vector3() :
x(0.0f), y(0.0f), z(0.0f)
{}
Vector3(float _x, float _y, float _z) :
x(_x), y(_y), z(_z)
{}
Vector3(float _d) :
x(_d), y(_d), z(_d)
{}
void write(std::ofstream& fileStreamOut, bool writeSize = true)
{
if (writeSize)
{
long sizeInBytes = 12;
fileStreamOut.write(reinterpret_cast<char*>(&sizeInBytes), sizeof(long));
}
fileStreamOut.write(reinterpret_cast<char*>(&x), sizeof(float));
fileStreamOut.write(reinterpret_cast<char*>(&y), sizeof(float));
fileStreamOut.write(reinterpret_cast<char*>(&z), sizeof(float));
}
void read(std::ifstream& fileStreamIn)
{
fileStreamIn.read(reinterpret_cast<char*>(&x), sizeof(float));
fileStreamIn.read(reinterpret_cast<char*>(&y), sizeof(float));
fileStreamIn.read(reinterpret_cast<char*>(&z), sizeof(float));
}
float squaredLength() const
{
return x * x + y * y + z * z;
}
float length() const
{
return std::sqrt(x * x + y * y + z * z);
}
float distance(const Vector3& rkVector) const
{
return (*this - rkVector).length();
}
Vector3 crossProduct(const Vector3& rkVector) const
{
return Vector3(
y * rkVector.z - z * rkVector.y,
z * rkVector.x - x * rkVector.z,
x * rkVector.y - y * rkVector.x);
}
float dotProduct(const Vector3& vec) const
{
return x * vec.x + y * vec.y + z * vec.z;
}
Vector3& operator = (const Vector3& rkVector)
{
x = rkVector.x;
y = rkVector.y;
z = rkVector.z;
return *this;
}
Vector3& operator = (const float fScaler)
{
x = fScaler;
y = fScaler;
z = fScaler;
return *this;
}
bool operator == (const Vector3& rkVector) const
{
return equalTo(rkVector);
}
bool operator < (const Vector3& rkVector) const
{
return (x < rkVector.x && y < rkVector.y && z < rkVector.z);
}
bool operator > (const Vector3& rkVector) const
{
return (x > rkVector.x && y > rkVector.y && z > rkVector.z);
}
bool operator != (const Vector3& rkVector) const
{
return !equalTo(rkVector);
}
bool equalTo(const Vector3& rkVector) const
{
return (x == rkVector.x && y == rkVector.y && z == rkVector.z);
}
Vector3 operator * (const float fScalar) const
{
return Vector3(
x * fScalar,
y * fScalar,
z * fScalar);
}
Vector3 operator / (const float fScalar) const
{
return Vector3(
x / fScalar,
y / fScalar,
z / fScalar);
}
Vector3 operator / (const Vector3& rhs) const
{
return Vector3(
x / rhs.x,
y / rhs.y,
z / rhs.z);
}
Vector3 operator * (const Vector3& rhs) const
{
return Vector3(
x * rhs.x,
y * rhs.y,
z * rhs.z);
}
Vector3 operator + (const Vector3& rkVector) const
{
return Vector3(
x + rkVector.x,
y + rkVector.y,
z + rkVector.z);
}
Vector3 operator - (const Vector3& rkVector) const
{
return Vector3(
x - rkVector.x,
y - rkVector.y,
z - rkVector.z);
}
Vector3 operator - () const
{
return Vector3(-x, -y, -z);
}
void operator += (const Vector3& rkVector)
{
x += rkVector.x;
y += rkVector.y;
z += rkVector.z;
}
void operator -= (const Vector3& rkVector)
{
x -= rkVector.x;
y -= rkVector.y;
z -= rkVector.z;
}
bool isNaN() const
{
return std::isnan(x) && std::isnan(y) && std::isnan(z);
}
float normalise()
{
float fLength = sqrt(x * x + y * y + z * z);
if (fLength > 1e-08)
{
float fInvLength = 1.0f / fLength;
x *= fInvLength;
y *= fInvLength;
z *= fInvLength;
}
return fLength;
}
float getX()
{
return x;
}
float getY()
{
return y;
}
float getZ()
{
return z;
}
std::string toString() const
{
std::ostringstream buff;
buff << x << ", " << y << ", " << z;
return buff.str();
}
std::string toJsonString() const
{
std::ostringstream buff;
buff << "{ ";
buff << "\"x\": " << x << ", ";
buff << "\"y\": " << y << ", ";
buff << "\"z\": " << z;
buff << " }";
return buff.str();
}
std::vector<float> toVector() const
{
std::vector<float> vec{ x, y, z };
return vec;
}
};
}
#endif
|
/* This test is part of pocl.
* It is intended to run as the first test of the
* testsuite, checking that the tests are
* not run against an other installed OpenCL library.
*/
#include "poclu.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "config.h"
int main(void)
{
cl_context context;
cl_device_id did;
cl_platform_id pid;
cl_command_queue queue;
size_t rvs;
char result[1024];
char *needle;
/* Check that the default platform we get from the ICD loader
* matches the pocl version string this binary was built against. */
CHECK_CL_ERROR(poclu_get_any_device(&context, &did, &queue));
TEST_ASSERT( context );
TEST_ASSERT( did );
TEST_ASSERT( queue );
CHECK_CL_ERROR(clGetDeviceInfo( did, CL_DEVICE_PLATFORM,
sizeof(cl_platform_id), &pid, NULL));
CHECK_CL_ERROR(clGetPlatformInfo( pid, CL_PLATFORM_VERSION,
sizeof(result), result, &rvs));
result[rvs]=0; // spec doesn't say it is null-terminated.
if( strcmp( result,
"OpenCL " POCL_CL_VERSION " pocl " PACKAGE_VERSION ", LLVM " LLVM_VERSION) != 0 ) {
printf("Error: platform is: %s\n", result);
return 2;
}
/* Pocl devices have the form 'type'-'details', if details are
* available. If not, they are of the form 'type'.
* print here only the type, as the details will be computer
* dependent */
CHECK_CL_ERROR(clGetDeviceInfo( did, CL_DEVICE_NAME,
sizeof(result), result, NULL));
result[rvs]=0;
needle = strchr(result, '-');
if( needle != NULL ){
*needle=0;
}
printf("%s\n", result);
return 0;
}
|
#pragma once
#include "NNObject.h"
#include "BHDefine.h"
#include "NNBird.h"
//¸ó½ºÅÍÀÎ »õ¸¦ »ý¼ºÇÏ°í °ü¸®ÇØÁִ Ŭ·¡½º
class NNBirdFactory : public NNObject
{
public:
static NNBirdFactory* GetInstance();
static void ReleaseInstance();
void MakeBird( BIRD_TYPE type );
std::list< NNBird* >& GetBirdList() { return m_Bird; }
private:
NNBirdFactory(void);
~NNBirdFactory(void);
void RemoveAll();
static NNBirdFactory* m_pInstance;
void RemoveCheck();
std::list< NNBird* > m_Bird;
};
|
//
// Reaction.h
// ReactionSDKExample
//
// Created by g8y3e on 11/9/16.
// Copyright © 2016 IronSource. All rights reserved.
//
#import <Foundation/Foundation.h>
@import Google.CloudMessaging;
@interface ISReaction : NSObject <GGLInstanceIDDelegate>
{
BOOL isDebug_;
BOOL isSendedUserData_;
NSString* senderID_;
NSString* applicationKey_;
NSString* deviceID_;
NSMutableDictionary<NSString*, NSObject*>* registrationOptions_;
NSString* registrationToken_;
}
-(id)initWithSenderID: (NSString*)senderID applicationKey: (NSString*)applicationKey
isDebug: (BOOL)isDebug;
-(void)enableDebug: (BOOL)isDebug;
-(void)registerDemoDeviceWithAppKey: (NSString*)appKey;
-(void)onTokenRefresh;
-(NSString*)getDeviceID;
-(void)reportNumberWithName: (NSString*)name value: (float)value;
-(void)reportBooleanWithName: (NSString*)name value: (BOOL)value;
-(void)reportStringWithName: (NSString*)name value: (NSString*)value;
-(void)reportPurchase: (float)value;
-(void)reportRevenue: (float)value;
@end
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The Lincoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_INIT_H
#define BITCOIN_INIT_H
#include <string>
class CWallet;
namespace boost {
class thread_group;
};
extern std::string strWalletFile;
extern CWallet* pwalletMain;
void StartShutdown();
bool ShutdownRequested();
void Shutdown();
bool AppInit2(boost::thread_group& threadGroup, bool fForceServer);
/* The help message mode determines what help message to show */
enum HelpMessageMode
{
HMM_BITCOIND,
HMM_BITCOIN_QT
};
std::string HelpMessage(HelpMessageMode mode);
#endif
|
#ifndef _SWAY_KEY_STATE_H
#define _SWAY_KEY_STATE_H
#include <stdbool.h>
#include <stdint.h>
#include "container.h"
/* Keyboard state */
typedef uint32_t keycode;
// returns true if key has been pressed, otherwise false
bool check_key(keycode key);
// sets a key as pressed
void press_key(keycode key);
// unsets a key as pressed
void release_key(keycode key);
/* Pointer state */
enum pointer_values {
M_LEFT_CLICK = 272,
M_RIGHT_CLICK = 273,
M_SCROLL_CLICK = 274,
M_SCROLL_UP = 275,
M_SCROLL_DOWN = 276,
};
extern struct pointer_state {
bool l_held;
bool r_held;
struct pointer_floating {
bool drag;
bool resize;
} floating;
struct pointer_lock {
bool left;
bool right;
bool top;
bool bottom;
} lock;
} pointer_state;
void start_floating(swayc_t *view);
void reset_floating(swayc_t *view);
#endif
|
//
// FEMRelationshipMapping.h
// FastEasyMapping
//
// Created by zen on 03/12/14.
// Copyright (c) 2014 Yalantis. All rights reserved.
//
#import "FEMRelationship.h"
/**
* @discussion
* FEMRelationshipMapping has been renamed to FEMRelationship
*/
@compatibility_alias FEMRelationshipMapping FEMRelationship; |
//
// YYDiscoveryViewController.h
// NetEaseLottery
//
// Created by yuan on 15/12/31.
// Copyright © 2015年 袁小荣. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YYDiscoveryViewController : UITableViewController
@end
|
#pragma once
#include <pebble.h>
typedef struct SwapMenu SwapMenu;
typedef struct SwapMenuItem SwapMenuItem;
typedef struct SwapMenuSection SwapMenuSection;
typedef void(*SwapMenuItemCallback)(SwapMenuItem *item, void *callback_context);
struct SwapMenuItem {
const char *title;
const char *subtitle;
SwapMenuItemCallback callback;
void *callback_context;
};
// Creates a SwapMenuSection on the heap and returns a pointer to it
// @param title The text to display for this section in the SwapMenu
// @note If added to a SwapMenu, it takes care of deleting this item itself
// given that it was allocated on the heap.
SwapMenuSection *swap_menu_section_create(const char *title);
// Destroys a SwapMenuSection and the associated items.
// @param section Pointer to the SwapMenuSection to destry
void swap_menu_section_destroy(SwapMenuSection *section);
// Adds an item to a SwapMenuSection
// @param section The SwapMenuSection to add the item to
// @param title The text to display for the title of the item
// @param subtitle The text to display for the subtitle of the item
// @param cb The SwapMenuItemCallback to call when the item is selected
// @param callback_context Context to pass to the callback
void swap_menu_section_add_item(SwapMenuSection *section,
const char *title, const char *subtitle,
SwapMenuItemCallback cb, void *callback_context);
// Creates a SwapMenu on the heap and returns a pointer to it
// @returns pointer to a SwapMenu
SwapMenu *swap_menu_create(void);
// Returns the underlying window of the SwapMenu
// @param menu Pointer to the SwapMenu whose Window to grab
// @returns Pointer to a window
Window *swap_menu_get_window(SwapMenu *menu);
// Adds a SwapMenuSection to a SwapMenu
// @param menu Pointer to the SwapMenu to add the section to
// @param section Pointer to the section to add to the SwapMenu
void swap_menu_add_section(SwapMenu *menu, SwapMenuSection *section);
// Reloads the data in a SwapMenu
// @param menu Pointer to a SwapMenu to reload
void swap_menu_reload(SwapMenu *menu);
// Pushes a SwapMenu onto the window stack
// @param menu Pointer to the SwapMenu to push
void swap_menu_push(SwapMenu *menu);
// Removes a SwapMenu from the window stack
// @param menu Pointer to the SwapMenu to remove
void swap_menu_pop(SwapMenu *menu);
|
#pragma once
#include <runic/common/Common_Lexicon.h>
namespace runic_cpp {
struct Keywords : public runic::Keywords {
runic::Whisper Inline = "inline";
runic::Whisper Namespace = "namespace";
runic::Whisper Class = "class";
runic::Whisper Struct = "struct";
runic::Whisper Const = "const";
runic::Whisper Public = "public";
runic::Whisper Private = "private";
runic::Whisper Protected = "protected";
};
struct Single_Symbols : public runic::Single_Symbols {
runic::Whisper pound_sign = "#";
};
struct Double_Symbols : public runic::Double_Symbols {
runic::Whisper namespace_delimiter = "::";
};
struct Symbols : public Keywords,
public Double_Symbols,
public Single_Symbols,
public runic::Special_Symbols,
public runic::Dynamic_Whispers {
};
} |
#ifndef GPARSE_RESPONSE
#define GPARSE_RESPONSE
#include <string>
namespace gparse {
enum ResponseCode {
ResponseOk,
ResponseNull
};
class Response {
ResponseCode code;
std::string rest;
public:
static const Response Ok;
static const Response Null;
inline Response(ResponseCode nCode) : code(nCode) {
}
inline Response(ResponseCode nCode, const std::string &nRest) : code(nCode), rest(nRest) {
}
inline std::string toString() const {
return (code == ResponseOk ? "ok" : "") + (rest.empty() ? "" : " " + rest) + "\n";
}
inline bool isNull() {
return code == ResponseNull;
}
};
}
#endif
|
//
// VipNotification.h
//
//
// Created by kenney on 5/21/14.
//
//
#import <Parse/Parse.h>
@interface Notification : PFObject <PFSubclassing>
+(NSString *)parseClassName;
@property (nonatomic) NSString *message;
@property (nonatomic) Partnership *partnership;
@property (nonatomic) User *recipient;
@property (nonatomic) User *sender;
@property (nonatomic) NSString *type;
@end
|
/**********************************
* SCAENA FRAMEWORK
* Author: Marco Andrés Lotto
* License: MIT - 2016
**********************************/
#pragma once
#include "GLSLProgram.h"
class Texture;
typedef glm::vec2 vec2;
#define MAX_ITERATIONS 5
class DepthOfFieldShader : public GLSLProgram{
private:
static DepthOfFieldShader* instance;
GLSLUniform* pvmMatrixUniform;
GLSLUniform* imageSizeUniform;
GLSLUniform* textureToBlurUniform;
GLSLUniform* depthTextureUniform;
GLSLUniform* sceneProjUniform;
GLSLUniform* depthAtBlurStartUniform;
GLSLUniform* blurToFrontUniform;
GLSLUniform* blurFalloffUniform;
GLSLUniform* weightUniform;
GLSLUniform* positionIncrementUniform;
protected:
Mesh* rectangleMesh;
mat4 PVMmatrix;
float weights[MAX_ITERATIONS];
float sumOfWeightsPerIteration[MAX_ITERATIONS];
void initProyectionMatrix();
public:
static DepthOfFieldShader* getInstance();
// depthAtBlurStart es de donde empieza a actual el depth of field, blurToFront indica si se aplica blur opuesto a la camara o hacia la camara, blurFalloff es que tan rapido cae el blur
virtual void drawFirstPass(Texture* textureToBlur, Texture* depthTexture, vec2 imageSize, float* weights, float* posIncrement, float depthAtBlurStart,
bool blurToFront, mat4 sceneProj, float blurFalloff);
virtual void drawSecondPass(Texture* textureToBlur, Texture* depthTexture, vec2 imageSize, float* weights, float* posIncrement, float depthAtBlurStart,
bool blurToFront, mat4 sceneProj, float blurFalloff);
virtual void init();
};
|
/*
* viterbi27.h
*
* Created on: 04/11/2016
* Author: Lucas Teske
*/
#ifndef SATHELPER_INCLUDES_VITERBI27_H_
#define SATHELPER_INCLUDES_VITERBI27_H_
#include <cstdint>
#include <SatHelper/extensions.h>
namespace SatHelper {
#define _VITERBI27_POLYA 0x4F
#define _VITERBI27_POLYB 0x6D
class Viterbi27 {
private:
int polynomials[2];
uint8_t *checkDataPointer;
void *viterbi;
int frameBits;
int BER;
bool calculateErrors;
static uint32_t calculateError(uint8_t *original, uint8_t *corrected, int length);
void decode_generic(uint8_t *input, uint8_t *output);
void encode_generic(uint8_t *input, uint8_t *output);
void decode_sse4(uint8_t *input, uint8_t *output);
void encode_sse4(uint8_t *input, uint8_t *output);
void (Viterbi27::*_encode)(uint8_t *input, uint8_t *output) = NULL;
void (Viterbi27::*_decode)(uint8_t *input, uint8_t *output) = NULL;
public:
Viterbi27(int frameBits, int polyA, int polyB);
Viterbi27(int frameBits) :
Viterbi27(frameBits, _VITERBI27_POLYA, _VITERBI27_POLYB) {
}
inline int DecodedSize() {
return this->frameBits / 8;
}
inline int EncodedSize() {
return this->frameBits * 2;
}
inline void SetCalculateErrors(bool calculateErrors) {
this->calculateErrors = calculateErrors;
}
inline int GetBER() {
return this->BER / 2;
}
inline float GetPercentBER() {
return (100.f * this->BER) / this->frameBits;
}
inline bool IsSSEMode() {
return SatHelper::Extensions::hasSSE4;
}
inline void decode(uint8_t *input, uint8_t *output) { (*this.*_decode)(input, output); }
inline void encode(uint8_t *input, uint8_t *output) { (*this.*_encode)(input, output); }
~Viterbi27();
};
}
#endif /* SATHELPER_INCLUDES_VITERBI27_H_ */
|
/*
* TankBotBare2.c
*
* Created: 8/13/2015 0.01 ndp
* Author: Chip
*
* This is the main() file for the Tank Bot Bare ver 2 board.
* It contains the initialization call and the task scheduler loop.
* Other than DEBUG code, no changes should be needed to this file.
*/
#include <avr/io.h>
#include "initialize.h"
#include "service.h"
#include "access.h"
// DEBUG ++
#include "twiSlave.h"
// DEBUG --
/*
* main()
*
* This is a sequential scheduler that services all available tasks
* and then checks for a complete message and forwards it to the
* addressed task access process.
*
* Each task manages their own time slice.
*
*/
int main(void)
{
init_all();
while(1)
{
service_all();
access_all();
#if 0
// DEBUG ++
if(!twiDataInReceiveBuffer()) {
twiStuffRxBuf( 0xE1 );
twiStuffRxBuf( 0x01 );
twiStuffRxBuf( 0x01 );
twiStuffRxBuf( 6 );
}
// DEBUG --
#endif
}
}
|
#ifndef YBCONSOLE_H
#define YBCONSOLE_H
#include <QDialog>
class QLineEdit;
class QTextEdit;
class YbPushButton;
class YbConsole : public QDialog
{
Q_OBJECT
public:
explicit YbConsole(QWidget *parent = 0);
~YbConsole();
enum MessageClass {
MC_ERROR,
MC_DEBUG,
CMD_REQUEST,
CMD_REPLY,
CMD_ERROR
};
void setLineEditFocus();
protected:
virtual bool eventFilter(QObject* obj, QEvent *event);
private slots:
void lineEditPressed();
public slots:
void clear();
void message(int category, const QString &message, bool html = false);
/** Go forward or back in history */
void browseHistory(int offset);
/** Scroll console view to end */
void scrollToEnd();
signals:
// For RPC command executor
void stopExecutor();
void cmdRequest(const QString &command);
private:
void createWidget();
QTextEdit *messagesWidget;
QLineEdit *lineEdit;
YbPushButton *clearButton;
QStringList history;
int historyPtr;
void startExecutor();
};
#endif // YBCONSOLE_H
|
#ifndef PEGASUS_INCLUDED_PARSE_H
#define PEGASUS_INCLUDED_PARSE_H
#define PEGASUS_PARSE(INPUT_TEXT) \
{ \
int *PEGASUS_HIDE(status) = &(int) {1}; \
pegasus_text_t *PEGASUS_HIDE(input_text) = (INPUT_TEXT); \
pegasus_text_position_t PEGASUS_HIDE(backup_position) = pegasus_text_position(PEGASUS_HIDE(input_text)); \
do \
{
/*
...
*/
#define PEGASUS_PARSE_END \
} \
while (0); \
if (*PEGASUS_HIDE(status) == 0) \
pegasus_text_position_set(PEGASUS_HIDE(input_text), PEGASUS_HIDE(backup_position)); \
}
#endif
|
/******************** Copyright wisearm.com *********************************
* File Name : CrabHardware.h
* Author : Îâ´´Ã÷(aleyn.wu)
* Version : V1.0.0
* Create Date : 2012-06-15
* Last Update : 2016-12-31
* Description : Ó²¼þÅäÖÃÓëÉèÖÃ
********************************************************************************/
#ifndef __CRAB_HARDWARE_H
#define __CRAB_HARDWARE_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32ext.h"
#include "Hardware.h"
#define KEY_BUF_MAX 10
#define BEP_SCALE (10 - 1)
#define BEP_PULSE (9600000 / 2200)
#define BEP_WIDTH (9600000 / 2200 / 2)
#define TIM_ADDR_MAX 16
typedef struct
{
uint8_t Active; //¿ª¹Ø: true = ´ò¿ª, false = ¹Ø±Õ
uint8_t Speed; //ËÙ¶È: 0 - 100
uint32_t Frequ; //ƵÂÊ: 0 - 100000
uint8_t Polar; //¼«ÐÔ: 0 = ÕýÏò, 1 = ·´Ïò
uint8_t TIM; //¶¨Ê±Æ÷
uint8_t A_CH; //Êä³öͨµÀA
uint8_t B_CH; //Êä³öͨµÀB
uint32_t A_IO; //AͨµÀIO
uint32_t B_IO; //BͨµÀIO
} CrabMotorDef;
//Ó²¼þ³õʼ»¯
void CrabHW_InitExtern();
//Ó²¼þÈí¸´Î»
void CrabHW_Reset();
void CrabHW_LED_Change(uint32_t LED_PIN, uint8_t Status);
#define CrabHW_LED_ChangeSys(Status) CrabHW_LED_Change(SYS_LED, Status)
void CrabHW_PutString(char *Data, uint32_t Length);
void CrabHW_BEEP_Enable();
void CrabHW_BEEP_Disable();
void CrabHW_BEEP_Start();
void CrabHW_BEEP_Stop();
uint16_t CrabHW_KEY_Scan();
uint8_t CrabHW_KEY_Read();
void CrabHW_KEY_Write(uint8_t Key);
uint32_t CrabHW_GPIO_GetAddr(uint8_t Index);
//ÃëÐźÅÖжÏ
void SECOND_IRQHandler(void);
//ÉèÖÃÃëÐźÅ
void CrabSetupSecondEvent(uint8_t Status);
#endif
/** @} */
|
/*
* Mesh.h
*
* Created on: Apr 9, 2014
* Author: edgar
*/
#ifndef MESH_H_
#define MESH_H_
#include <iostream>
#include BOSS_OPENCV_V_opencv2__core__core_hpp //original-code:<opencv2/core/core.hpp>
// --------------------------------------------------- //
// TRIANGLE CLASS //
// --------------------------------------------------- //
class Triangle {
public:
explicit Triangle(int id, cv::Point3f V0, cv::Point3f V1, cv::Point3f V2);
virtual ~Triangle();
cv::Point3f getV0() const { return v0_; }
cv::Point3f getV1() const { return v1_; }
cv::Point3f getV2() const { return v2_; }
private:
/** The identifier number of the triangle */
int id_;
/** The three vertices that defines the triangle */
cv::Point3f v0_, v1_, v2_;
};
// --------------------------------------------------- //
// RAY CLASS //
// --------------------------------------------------- //
class Ray {
public:
explicit Ray(cv::Point3f P0, cv::Point3f P1);
virtual ~Ray();
cv::Point3f getP0() { return p0_; }
cv::Point3f getP1() { return p1_; }
private:
/** The two points that defines the ray */
cv::Point3f p0_, p1_;
};
// --------------------------------------------------- //
// OBJECT MESH CLASS //
// --------------------------------------------------- //
class Mesh
{
public:
Mesh();
virtual ~Mesh();
std::vector<std::vector<int> > getTrianglesList() const { return list_triangles_; }
cv::Point3f getVertex(int pos) const { return list_vertex_[pos]; }
int getNumVertices() const { return num_vertexs_; }
void load(const std::string path_file);
private:
/** The identification number of the mesh */
int id_;
/** The current number of vertices in the mesh */
int num_vertexs_;
/** The current number of triangles in the mesh */
int num_triangles_;
/* The list of triangles of the mesh */
std::vector<cv::Point3f> list_vertex_;
/* The list of triangles of the mesh */
std::vector<std::vector<int> > list_triangles_;
};
#endif /* OBJECTMESH_H_ */
|
//
// AppDelegate.h
// CoreDataRelationships
//
// Created by Zachary Davison on 20/04/2015.
// Copyright (c) 2015 ZD. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
// This is an include guard.
// You could alternatively use '#pragma once'
// See https://en.wikipedia.org/wiki/Include_guard
#if !defined(HELLO_WORLD_H)
#define HELLO_WORLD_H
// Include the string header so that we have access to 'std::string'
#include <string>
// Declare a namespace for the function(s) we are exporting.
// https://en.cppreference.com/w/cpp/language/namespace
namespace hello_world {
// Declare the 'hello()' function, which takes no arguments and returns a
// 'std::string'. The function itself is defined in the hello_world.cpp source
// file. Because it is inside of the 'hello_world' namespace, it's full name is
// 'hello_world::hello()'.
std::string hello();
} // namespace hello_world
#endif
|
//
// DYAMarvelStorySummary.h
// Pods
//
// Created by David Yang on 28/06/2015.
//
//
#import "DYAMarvelModel.h"
@protocol DYAMarvelStorySummary
@end
@interface DYAMarvelStorySummary : DYAMarvelModel
@property (strong, nonatomic) NSString *resourceURI;
@property (strong, nonatomic) NSString *name;
@property (strong, nonatomic) NSString *type;
@end
|
#pragma once
namespace lua {
template<typename Context>
class stack_var {
Context _ctx;
int _id { 0 };
public:
stack_var() = default;
~stack_var() = default;
stack_var( const stack_var & ) = default;
stack_var& operator=( const stack_var & ) = default;
stack_var( stack_var&& ) = default;
stack_var& operator=( stack_var&& ) = default;
stack_var( Context ctx_, int id_ ) : _ctx { ctx_ }, _id { id_ } {}
int push() {
_ctx.push_value( _id );
return _ctx.get_top();
}
template<typename Type>
bool is() {
return _ctx.is<Type>( _id );
}
template<typename Type>
auto to() -> decltype( _ctx.to<Type>( 0 ) ) {
return _ctx.to<Type>( _id );
}
template<typename Type>
void set( Type value_ ) {
_ctx.push( std::forward<Type>( value_ ) );
_ctx.replace( _id );
}
void replace( int index_ ) {
if ( index_ != -1 && index_ != _ctx.get_top() ) {
_ctx.push_value( index_ );
_ctx.remove( index_ );
} else {
_ctx.replace( _id );
}
}
void replace( stack_var& other_ ) {
other_.push();
_ctx.replace( _id );
}
};
} |
#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"
/*
This file is part of the php-ext-zendframework package.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
*/
ZEPHIR_INIT_CLASS(ZendFramework_Authentication_Adapter_Http_Exception_RuntimeException) {
ZEPHIR_REGISTER_CLASS_EX(Zend\\Authentication\\Adapter\\Http\\Exception, RuntimeException, zendframework, authentication_adapter_http_exception_runtimeexception, zendframework_authentication_adapter_exception_runtimeexception_ce, NULL, 0);
zend_class_implements(zendframework_authentication_adapter_http_exception_runtimeexception_ce TSRMLS_CC, 1, zendframework_authentication_adapter_http_exception_exceptioninterface_ce);
return SUCCESS;
}
|
#include<stdio.h>
void main()
{
float R;
int i,n;
double result=1;
printf("input R and n\n");
scanf("%f%d",&R,&n);
for(i=0;i<n;i++)
{
result=result*R;
}
printf("%lf",result);
} |
#include<stdio.h>
void main(){
printf("\nHello World!");
}
|
//
// SFSSearchTVC7.h
// ClusterDemo
//
// Created by BJ Miller on 11/6/13.
// Copyright (c) 2013 Six Five Software, LLC. All rights reserved.
//
#import "SFSSearchTVC.h"
@interface SFSSearchTVC7 : SFSSearchTVC <UISearchDisplayDelegate>
@end
|
//
// ASByrBoard.h
// ASByr
//
// Created by andy on 16/3/9.
// Copyright © 2016年 andy. All rights reserved.
//
#import "ASByrBase.h"
@protocol ASByrBoardResponseDelegate <NSObject>
@optional
- (void)fetchBoardResponse:(ASByrResponse*) response;
@end
@protocol ASByrBoardResponseReformer <NSObject>
@optional
- (ASByrResponse*)reformBoardResponse:(ASByrResponse*) response;
@end
@interface ASByrBoard : ASByrBase
/**
* <#Description#>
*
* @param token byr accesstoken
*
* @return void
*/
@property(nonatomic, weak)id<ASByrBoardResponseDelegate> responseDelegate;
@property(nonatomic, weak)id<ASByrBoardResponseReformer> responseReformer;
- (instancetype)initWithAccessToken:(NSString *)token;
- (void)fetchBoard:(NSString *)name pageNumber:(NSInteger)page;
- (void)fetchRootSectionsWithSuccessBlock:(ASSuccessCallback)success
failureBlock:(ASSuccessCallback)failure;
- (void)fetchSectionInfoWithName:(NSString*)name
successBlock:(ASSuccessCallback)success
failureBlock:(ASSuccessCallback)failure;
- (void)fetchBoardPostLineInfoWithName:(NSString*)name
successBlock:(ASSuccessCallback)success
failureBlock:(ASSuccessCallback)failure;
- (void)fetchBoardDetailInfoWithName:(NSString*)name
page:(NSInteger)page
successBlock:(ASSuccessCallback)success
failureBlock:(ASSuccessCallback)failure;
- (void)fetchBoardInfoWithName:(NSString*)name
mode:(NSInteger)mode
count:(NSInteger)count
page:(NSInteger)page
successBlock:(ASSuccessCallback)success
failureBlock:(ASSuccessCallback)failure;
@end
|
//
// GDLiveTableViewCell.h
// SindhTV
//
// Created by intellisense on 11/04/16.
// Copyright © 2016 intellisense. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GDLiveTableViewCell : UITableViewCell
@property (strong, nonatomic) IBOutlet UICollectionView *LiveCollectionVw;
@property (strong, nonatomic) IBOutlet UILabel *titleHeader;
@property (strong, nonatomic) IBOutlet UIButton *viewAllBtn;
@property (strong, nonatomic) IBOutlet UIButton *viewAll2;
- (void)setCollectionViewDataSourceDelegate:(id<UICollectionViewDataSource, UICollectionViewDelegate>)dataSourceDelegate indexPath:(NSIndexPath *)indexPath;
@end
static NSString *cell = @"cell"; |
//
// LFSWriteCommentView.h
// CommentStream
//
// Created by Eugene Scherba on 10/16/13.
// Copyright (c) 2013 Adobe. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "LFSResource.h"
@protocol LFSWriteCommentViewDelegate;
@interface LFSWriteCommentView : UIView <UITextViewDelegate>
@property (nonatomic, strong) LFSResource* profileLocal;
@property (nonatomic, strong) UITextView *textView;
@property (nonatomic, assign) id<LFSWriteCommentViewDelegate>delegate;
@property (nonatomic, assign) UIImage *attachmentImage;
-(void)setAttachmentImageWithURL:(NSURL*)url;
-(void)updateUserFromProfile:(LFSResource*) profile;
@end
@protocol LFSWriteCommentViewDelegate <NSObject>
-(void)didClickAddPhotoButton;
@end
|
//
// PostViewController.h
// IntegratingFacebookTutorial
//
// Created by Amar Rao on 2/11/13.
//
//
#import <UIKit/UIKit.h>
@interface PostViewController : UIViewController
@end
|
//
// isr.h -- Interface and structures for high level interrupt service routines.
// Part of this code is modified from Bran's kernel development tutorials.
// Rewritten for JamesM's kernel development tutorials.
//
#ifndef _letkuos_isrs_h
#define _letkuos_isrs_h _letkuos_isrs_h
#include "paging.h"
//
// isr.h -- Interface and structures for high level interrupt service routines.
// Part of this code is modified from Bran's kernel development tutorials.
// Rewritten for JamesM's kernel development tutorials.
//
typedef struct registers
{
int gs, fs, es, ds;
int edi, esi, ebp, esp, ebx, edx, ecx, eax; // Pushed by pusha.
int int_no, err_code; // Interrupt number and error code (if applicable)
int eip, cs, eflags, useresp, ss; // Pushed by the processor automatically.
} registers_t;
#define ERR_0 0
#define ERR_1 1
#define ERR_2 2
#define ERR_3 3
#define ERR_4 4
#define ERR_5 5
#define ERR_6 6
#define ERR_7 7
#define ERR_8 8
#define ERR_9 9
#define ERR_10 10
#define ERR_11 11
#define ERR_12 12
#define ERR_13 13
#define ERR_14 14
#define ERR_15 15
#define ERR_16 16
#define ERR_17 17
#define ERR_18 18
#define ERR_19 19
#define ERR_20 20
#define ERR_21 21
#define ERR_22 22
#define ERR_23 23
#define ERR_24 24
#define ERR_25 25
#define ERR_26 26
#define ERR_27 27
#define ERR_28 28
#define ERR_29 29
#define ERR_30 30
#define ERR_31 31
extern char *exception_messages[];
#endif
|
#ifndef OBJECTANIMATION_H
#define OBJECTANIMATION_H
#include "nau/event/iListener.h"
#include "nau/event/iEventData.h"
#include "nau/math/vec3.h"
#include "nau/scene/sceneObject.h"
using namespace nau::scene;
namespace nau
{
namespace event_
{
class ObjectAnimation: public IListener
{
public:
std::string name;
SceneObject *object;
ObjectAnimation(std::string name, SceneObject *object);
ObjectAnimation(const ObjectAnimation &c);
ObjectAnimation(void);
~ObjectAnimation(void);
std::string &getName(void);
void removeAnimationListener(void);
void addAnimationListener(void);
SceneObject *getObject(void);
void eventReceived(const std::string &sender, const std::string &eventType,
const std::shared_ptr<IEventData> &evt);
//void init(std::string name, ISceneObject *o);
};
};
};
#endif
|
//
// ViewController.h
// Demo
//
// Created by dkhamsing on 1/31/14.
//
//
#import <UIKit/UIKit.h>
@interface ViewControllerCustom : UIViewController
@end
|
/*
* Copyright (c) 2020 Sekhar Bhattacharya
*
* SPDX-License-Identifier: MIT
*/
#include <kernel/kassert.h>
#include <kernel/kmem_slab.h>
#include <kernel/vfs/vfs_node.h>
#include <kernel/vfs/vfs_mount.h>
typedef struct {
lock_t lock; // Mutex lock
list_t mounts; // List of mounts
} vfs_mount_list_t;
vfs_mount_list_t vfs_mount_list;
// vfs_mount_t slab
#define VFS_MOUNT_SLAB_NUM (32)
kmem_slab_t vfs_mount_slab;
vfs_mount_t vfs_mount_template;
void vfs_mount_init(void) {
// Create slab for the vfs_mount_t structs
kmem_slab_create(&vfs_mount_slab, sizeof(vfs_mount_t), VFS_MOUNT_SLAB_NUM);
// Init the vfs mount list
lock_init(&vfs_mount_list.lock);
list_init(&vfs_mount_list.mounts);
lock_init(&vfs_mount_template.lock);
list_node_init(&vfs_mount_template.ll_node);
list_init(&vfs_mount_template.ll_vfs_nodes);
// FIXME default ops?
vfs_mount_template.ops = NULL;
vfs_mount_template.mounted_on = NULL;
vfs_mount_template.block_size = 0;
vfs_mount_template.data = NULL;
}
vfs_mount_t* vfs_mount_create(const char *fs_name, struct vfs_node_s *mounted_on) {
// FIXME Find FS ops from table of supported file systems
vfs_mount_t *mnt = (vfs_mount_t*)kmem_slab_alloc(&vfs_mount_slab);
kassert(mnt != NULL);
*mnt = vfs_mount_template;
lock_init(&mnt->lock);
mnt->mounted_on = mounted_on;
mounted_on->mounted_here = mnt;
vfs_node_ref(mounted_on);
if (mnt->ops->mount != NULL) mnt->ops->mount(mnt);
lock_acquire(&vfs_mount_list.lock);
kassert(list_insert_last(&vfs_mount_list.mounts, &mnt->ll_node));
lock_release(&vfs_mount_list.lock);
}
void vfs_mount_destroy(vfs_mount_t *mnt) {
kassert(mnt != NULL);
lock_acquire_exclusive(&mnt->lock);
lock_acquire(&vfs_mount_list.lock);
kassert(list_remove(&vfs_mount_list.mounts, &mnt->ll_node));
lock_release(&vfs_mount_list.lock);
if (mnt->mounted_on != NULL) {
vfs_node_t *mounted_on = mnt->mounted_on;
mnt->mounted_on = NULL;
mounted_on->mounted_here = NULL;
vfs_node_put(mounted_on);
}
// FIXME write out all buffers and close nodes
if (mnt->ops->sync != NULL) mnt->ops->sync(mnt);
if (mnt->ops->unmount != NULL) mnt->ops->unmount(mnt);
lock_release_exclusive(&mnt->lock);
kmem_slab_free(&vfs_mount_slab, mnt);
}
vfs_mount_t* vfs_mount_root(void) {
return list_entry(list_first(&vfs_mount_list.mounts), vfs_mount_t, ll_node);
}
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 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_SCRIPT_STANDARD_H
#define BITCOIN_SCRIPT_STANDARD_H
#include "script/interpreter.h"
#include "uint256.h"
#include <boost/variant.hpp>
#include <stdint.h>
static const bool DEFAULT_ACCEPT_DATACARRIER = true;
class CKeyID;
class CScript;
/** A reference to a CScript: the Hash160 of its serialization (see script.h) */
class CScriptID : public uint160
{
public:
CScriptID() : uint160() {}
CScriptID(const CScript& in);
CScriptID(const uint160& in) : uint160(in) {}
};
static const unsigned int MAX_OP_RETURN_RELAY = 83; //!< bytes (+1 for OP_RETURN, +2 for the pushdata opcodes)
extern bool fAcceptDatacarrier;
extern unsigned nMaxDatacarrierBytes;
/**
* Mandatory script verification flags that all new bricks must comply with for
* them to be valid. (but old bricks may not comply with) Currently just P2SH,
* but in the future other flags may be added, such as a soft-fork to enforce
* strict DER encoding.
*
* Failing one of these tests may trigger a DoS ban - see CheckInputs() for
* details.
*/
static const unsigned int MANDATORY_SCRIPT_VERIFY_FLAGS = SCRIPT_VERIFY_P2SH;
enum txnouttype
{
TX_NONSTANDARD,
// 'standard' transaction types:
TX_PUBKEY,
TX_PUBKEYHASH,
TX_SCRIPTHASH,
TX_MULTISIG,
TX_NULL_DATA,
TX_WITNESS_V0_SCRIPTHASH,
TX_WITNESS_V0_KEYHASH,
};
class CNoDestination {
public:
friend bool operator==(const CNoDestination &a, const CNoDestination &b) { return true; }
friend bool operator<(const CNoDestination &a, const CNoDestination &b) { return true; }
};
/**
* A txout script template with a specific destination. It is either:
* * CNoDestination: no destination set
* * CKeyID: TX_PUBKEYHASH destination
* * CScriptID: TX_SCRIPTHASH destination
* A CTxDestination is the internal data type encoded in a CBitcoinAddress
*/
typedef boost::variant<CNoDestination, CKeyID, CScriptID> CTxDestination;
const char* GetTxnOutputType(txnouttype t);
bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, std::vector<std::vector<unsigned char> >& vSolutionsRet);
bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet);
bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, std::vector<CTxDestination>& addressRet, int& nRequiredRet);
CScript GetScriptForDestination(const CTxDestination& dest);
CScript GetScriptForRawPubKey(const CPubKey& pubkey);
CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey>& keys);
CScript GetScriptForWitness(const CScript& redeemscript);
#endif // BITCOIN_SCRIPT_STANDARD_H
|
#ifndef CPP_DB_SQLITE_TRANSACTION_H
#define CPP_DB_SQLITE_TRANSACTION_H
#include "usings.h"
#include "transaction_interface.h"
#include "sqlite3.h"
#include <memory>
namespace cpp_db
{
class sqlite_driver;
class sqlite_transaction : public transaction_interface
{
public:
~sqlite_transaction();
void begin() override;
void commit() override;
void rollback() override;
bool is_open() const override;
virtual handle get_handle() const override;
private:
friend class sqlite_driver;
explicit sqlite_transaction(const shared_connection_ptr &conn_in);
void execute(const char *sql);
sqlite3 *get_db_handle() const;
std::weak_ptr<connection_interface> conn;
int open_count;
};
} // namespace cpp_db
#endif // CPP_DB_SQLITE_TRANSACTION_H
|
#pragma once
#include <cstdint>
namespace OpenALRF
{
struct CapturedImage
{
unsigned char *Buffer;
unsigned long BufferLength;
unsigned int Width;
unsigned int Height;
unsigned int Channels;
int64_t Sum;
};
};
|
/*
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <linux/libfdt.h>
#include <pci.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <asm/armv8/mmu.h>
DECLARE_GLOBAL_DATA_PTR;
/*
* Not all memory is mapped in the MMU. So we need to restrict the
* memory size so that U-Boot does not try to access it. Also, the
* internal registers are located at 0xf000.0000 - 0xffff.ffff.
* Currently only 2GiB are mapped for system memory. This is what
* we pass to the U-Boot subsystem here.
*/
#define USABLE_RAM_SIZE 0x80000000
ulong board_get_usable_ram_top(ulong total_size)
{
if (gd->ram_size > USABLE_RAM_SIZE)
return USABLE_RAM_SIZE;
return gd->ram_size;
}
/*
* On ARMv8, MBus is not configured in U-Boot. To enable compilation
* of the already implemented drivers, lets add a dummy version of
* this function so that linking does not fail.
*/
const struct mbus_dram_target_info *mvebu_mbus_dram_info(void)
{
return NULL;
}
/* DRAM init code ... */
int dram_init_banksize(void)
{
fdtdec_setup_memory_banksize();
return 0;
}
int dram_init(void)
{
if (fdtdec_setup_memory_size() != 0)
return -EINVAL;
return 0;
}
int arch_cpu_init(void)
{
/* Nothing to do (yet) */
return 0;
}
int arch_early_init_r(void)
{
struct udevice *dev;
int ret;
int i;
/*
* Loop over all MISC uclass drivers to call the comphy code
* and init all CP110 devices enabled in the DT
*/
i = 0;
while (1) {
/* Call the comphy code via the MISC uclass driver */
ret = uclass_get_device(UCLASS_MISC, i++, &dev);
/* We're done, once no further CP110 device is found */
if (ret)
break;
}
/* Cause the SATA device to do its early init */
uclass_first_device(UCLASS_AHCI, &dev);
#ifdef CONFIG_DM_PCI
/* Trigger PCIe devices detection */
pci_init();
#endif
return 0;
}
|
#ifndef MA_H
#define MA_H
#include "SistemasdeControle/headers/modelLibs/model.h"
template <class UsedType>
class MA : public Model<UsedType>
{
public:
MA();
void setLinearVector(LinAlg::Matrix<UsedType> Input, LinAlg::Matrix<UsedType> Output);
void setLinearModel(LinAlg::Matrix<UsedType> Input, LinAlg::Matrix<UsedType> Output);
void print();
UsedType sim(UsedType input);
UsedType sim(UsedType input, UsedType output);
LinAlg::Matrix<UsedType> sim(LinAlg::Matrix<UsedType> Input);
LinAlg::Matrix<UsedType> sim(LinAlg::Matrix<UsedType> x, LinAlg::Matrix<UsedType> y);
LinAlg::Matrix<UsedType> sim(UsedType lsim, UsedType lmax, UsedType step);
};
#endif // MA_H
|
/*
Copyright (c) 2014-2016 stoyan shopov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include <stdint.h>
enum
{
/* number of page directory entries in a page directory */
NR_PG_DIRECTORY_ENTRIES = 1024,
/* number of page table entries in a page table */
NR_PG_TABLE_ENTRIES = 1024,
};
/* page directory entry constants */
enum
{
PGDE_NOT_PRESENT = 0,
PGDE_PRESENT = 1,
PGDE_READ_ONLY = 0,
PGDE_READ_WRITE = 1,
PGDE_USER_ACCESS_NOT_ALLOWED = 0,
PGDE_USER_ACCESS_ALLOWED = 1,
PGDE_PAGE_WRITE_BACK = 0,
PGDE_PAGE_WRITE_THROUGH = 1,
PGDE_PAGE_LEVEL_CACHE_ENABLED = 0,
PGDE_PAGE_LEVEL_CACHE_DISABLED = 1,
PGDE_NOT_ACCESSED = 0,
PGDE_ACCESSED = 1,
};
/* page directory entry */
struct pgde
{
/* present flag; must be set (1) to reference a page table */
uint32_t present : 1;
/* read-write flag - if reset (0), writes may not be allowed to the 4-MByte
* region controlled by this entry */
uint32_t read_write : 1;
/* user-supervisor flag - if reset (0), user-mode accesses are not allowed
* to the 4 MByte region controlled by this entry */
uint32_t user_supervisor : 1;
/* page-level write-through flag - indirectly determines the memory type used to
* access the page table referenced by this entry */
uint32_t page_write_through : 1;
/* page-level cache disable flag - indirectly determines the memory type used to
* access the page table referenced by this entry */
uint32_t page_level_cache_disable : 1;
/* accessed flag - indicates whether this entry has been used for
* linear-address translation */
uint32_t accessed : 1;
/* ignored */
uint32_t : 1;
/* page size flag - if cr4.pse is set (1), this must be reset (0), otherwise
* this entry maps a 4-MByte page */
uint32_t page_size : 1;
/* ignored */
uint32_t : 4;
/* physical address of 4-KByte aligned page table referenced by this entry */
uint32_t physical_address : 20;
};
/* page directory entry constants */
enum
{
PGTE_NOT_PRESENT = 0,
PGTE_PRESENT = 1,
PGTE_READ_ONLY = 0,
PGTE_READ_WRITE = 1,
PGTE_USER_ACCESS_NOT_ALLOWED = 0,
PGTE_USER_ACCESS_ALLOWED = 1,
PGTE_PAGE_WRITE_BACK = 0,
PGTE_PAGE_WRITE_THROUGH = 1,
PGTE_PAGE_LEVEL_CACHE_ENABLED = 0,
PGTE_PAGE_LEVEL_CACHE_DISABLED = 1,
PGTE_NOT_ACCESSED = 0,
PGTE_CLEAN = 0,
PGTE_DIRTY = 1,
};
/* page table entry */
struct pgte
{
/* present flag; must be set (1) to map a 4 KByte page */
uint32_t present : 1;
/* read-write flag - if reset (0), writes may not be allowed
* to the 4-KByte page referenced by this entry */
uint32_t read_write : 1;
/* user-supervisor flag - if reset (0), user-mode accesses are not allowed
* to the 4-KByte page referenced by this entry */
uint32_t user_supervisor : 1;
/* page-level write-through flag - indirectly determines the memory type used to
* access the 4-KByte page referenced by this entry */
uint32_t page_write_through : 1;
/* page-level cache disable flag - indirectly determines the memory type used to
* access the 4-KByte page referenced by this entry */
uint32_t page_level_cache_disable : 1;
/* accessed flag - indicates whether software has accessed
* the 4-KByte page referenced by this entry */
uint32_t accessed : 1;
/* dirty flag - indicates whether software has written
* to the 4-KByte page referenced by this entry */
uint32_t dirty : 1;
/* if the page attribute table (PAT) is supported, indirectly determines
* the memory type used to access the 4-KByte page referenced by this entry */
uint32_t pat : 1;
/* global flag - if cr4.pge is set (1), determines whether the translation is global;
* ignored otherwise */
uint32_t global : 1;
/* ignored */
uint32_t : 3;
/* physical address of the 4-KByte page referenced by this entry */
uint32_t physical_address : 20;
};
|
#pragma once
#include <Envy/EnvyBase.h>
#include <vector>
namespace Envy {
class Vector2;
class Color;
struct VertexAttribute {
uint count;
uint type;
bool normed;
uint offset;
};
class ENVY_API VertexBuffer {
uint mID;
uint mStride;
void* mPtr;
std::vector<VertexAttribute> mAttribs;
public:
VertexBuffer();
~VertexBuffer();
template<class type>
void attribute(uint count = 1, bool normalized = false) {
}
template <>
void attribute<float>(uint count, bool normalized) {
mAttribute(count, 0x1406, sizeof(float), normalized);
}
template <>
void attribute<int>(uint count, bool normalized) {
mAttribute(count, 0x1404, sizeof(int), normalized);
}
template <>
void attribute<uint>(uint count, bool normalized) {
mAttribute(count, 0x1405, sizeof(uint), normalized);
}
template <>
void attribute<byte>(uint count, bool normalized) {
mAttribute(count, 0x1401, sizeof(byte), normalized);
}
template <>
void attribute<Envy::Vector2>(uint count, bool normalized) {
mAttribute(2, 0x1406, sizeof(float), normalized);
}
//vec3
//vec4
template <>
void attribute<Envy::Color>(uint count, bool normalized) {
mAttribute(4, 0x1401, sizeof(byte), true);
}
void setData(const void* data, int byteSize, uint useage);
void map(uint access);
void map(uint access, int offset, int length);
void* getPtr();
bool unMap();
void bind();
void unbind();
uint getGLID() const;
uint getStride();
const std::vector<VertexAttribute>& getAttribs();
private:
void mAttribute(uint count, uint type, uint size, bool normalized);
};
} |
/*
FreeRTOS V7.0.1 - Copyright (C) 2011 Real Time Engineers Ltd.
***************************************************************************
* *
* FreeRTOS tutorial books are available in pdf and paperback. *
* Complete, revised, and edited pdf reference manuals are also *
* available. *
* *
* Purchasing FreeRTOS documentation will not only help you, by *
* ensuring you get running as quickly as possible and with an *
* in-depth knowledge of how to use FreeRTOS, it will also help *
* the FreeRTOS project to continue with its mission of providing *
* professional grade, cross platform, de facto standard solutions *
* for microcontrollers - completely free of charge! *
* *
* >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
* *
* Thank you for using FreeRTOS, and thank you for your support! *
* *
***************************************************************************
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License (version 2) as published by the
Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
>>>NOTE<<< The modification to the GPL is included to allow you to
distribute a combined work that includes FreeRTOS without being obliged to
provide the source code for proprietary components outside of the FreeRTOS
kernel. FreeRTOS is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details. You should have received a copy of the GNU General Public
License and the FreeRTOS license exception along with FreeRTOS; if not it
can be viewed here: http://www.freertos.org/a00114.html and also obtained
by writing to Richard Barry, contact details for whom are available on the
FreeRTOS WEB site.
1 tab == 4 spaces!
http://www.FreeRTOS.org - Documentation, latest information, license and
contact details.
http://www.SafeRTOS.com - A version that is certified for use in safety
critical systems.
http://www.OpenRTOS.com - Commercial support, development, porting,
licensing and training services.
*/
#ifndef ALT_POLLED_Q_H
#define ALT_POLLED_Q_H
void vStartAltPolledQueueTasks( unsigned portBASE_TYPE uxPriority );
portBASE_TYPE xAreAltPollingQueuesStillRunning( void );
#endif
|
/**
* @file EnemyData.h
*/
#ifndef DX12TUTORIAL_SRC_ENEMYDATA_H_
#define DX12TUTORIAL_SRC_ENEMYDATA_H_
#include "Collision.h"
#include <string>
/**
* Gf[^.
*/
struct EnemyData
{
std::string name;
Collision::Shape shape;
int animation;
int hp;
};
#endif // DX12TUTORIAL_SRC_ENEMYDATA_H_ |
//
// NSString+Calculate.h
// DDCategory
//
// Created by SuperDanny on 15/4/8.
// Copyright © 2016年 SuperDanny ( http://SuperDanny.link/ ). All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Calculate)
///加上bString
- (NSString *)stringByAdding:(NSString *)bString;
///减去bString
- (NSString *)stringBySubtracting:(NSString *)bString;
///乘以bString
- (NSString *)stringByMultiplyingBy:(NSString *)bString;
///除以bString
- (NSString *)stringByDividingBy:(NSString *)bString;
///是否大于bString
- (BOOL)isBig:(NSString *)bString;
///比较两个数大小
- (NSComparisonResult)ob_compare:(NSString *)bString;
///去掉尾巴是0或者.的位数(10.000 -> 10 // 10.100 -> 10.1)
- (NSString *)ridTail;
///保留数据类型2位小数(如果是10.000 -> 10 // 10.100 -> 10.1)
+ (NSString *)formatterNumber:(NSNumber *)number;
///保留数据类型fractionDigits位小数
+ (NSString *)formatterNumber:(NSNumber *)number fractionDigits:(NSUInteger)fractionDigits;
@end
|
//
// RecordInterface.h
// libsettingsapi
//
// Created by Andreoletti David on 7/24/12.
// Copyright 2012 IO Stark. All rights reserved.
//
#ifndef INCLUDE_LOGGINGAPI_RECORDS_RECORDINTERFACE_H_
#define INCLUDE_LOGGINGAPI_RECORDS_RECORDINTERFACE_H_
#include <string>
#include <vector>
namespace loggingapi {
namespace attributes { class AttributeInterface; }
namespace records {
/**
* A log record
*/
class RecordInterface {
public:
/**
* Destructor
*/
virtual ~RecordInterface() = 0;
/**
* Adds an attribute. Once successfully added, the caller does NOT own the pointer.
* \param attr An attribute
* \return True if attribute was successfully added. Attribute successfully added if and only if
* record does NOT contain the attribute.
*/
virtual bool addAttribute(attributes::AttributeInterface* attr) = 0;
/**
* Removes an attribute
* \param name Attribute name
* \return Attribute instance associated to name. NULL if no attribute found. Caller owns returned attribute.
*/
virtual attributes::AttributeInterface* removeAttribute(const std::string& name) = 0; // NOLINT(whitespace/line_length)
/**
* Gets an attribute
* \param name Attribute name
* \return Attribute for requested attribute name.
*/
virtual attributes::AttributeInterface* getAttribute(const std::string& name) const = 0; // NOLINT(whitespace/line_length)
/**
* Gets all attributes
* \return Level.
*/
virtual std::vector<attributes::AttributeInterface*> getAttributes() const = 0; // NOLINT(whitespace/line_length)
};
inline RecordInterface::~RecordInterface() {}
}} // namespaces
#endif // INCLUDE_LOGGINGAPI_RECORDS_RECORDINTERFACE_H_
|
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of The Linux Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#include <debug.h>
#include <smem.h>
#include <err.h>
#include <msm_panel.h>
#include <mipi_dsi.h>
#include <pm8x41.h>
#include <pm8x41_wled.h>
#include <board.h>
#include <platform/gpio.h>
#include <platform/iomap.h>
#include <target/display.h>
#include "include/panel.h"
#include "include/display_resource.h"
#define MODE_GPIO_STATE_ENABLE 1
#define MODE_GPIO_STATE_DISABLE 2
#define GPIO_STATE_LOW 0
#define GPIO_STATE_HIGH 2
#define RESET_GPIO_SEQ_LEN 3
int target_backlight_ctrl(uint8_t enable)
{
struct pm8x41_mpp mpp;
mpp.base = PM8x41_MMP3_BASE;
mpp.mode = MPP_HIGH;
mpp.vin = MPP_VIN3;
if (enable) {
pm8x41_config_output_mpp(&mpp);
pm8x41_enable_mpp(&mpp, MPP_ENABLE);
} else {
pm8x41_enable_mpp(&mpp, MPP_DISABLE);
}
/* Need delay before power on regulators */
mdelay(20);
return 0;
}
int target_panel_clock(uint8_t enable, struct msm_panel_info *pinfo)
{
struct mdss_dsi_pll_config *pll_data;
dprintf(SPEW, "target_panel_clock\n");
pll_data = pinfo->mipi.dsi_pll_config;
if (enable) {
mdp_clock_enable();
dsi_clock_enable(
pll_data->byte_clock * pinfo->mipi.num_of_lanes,
pll_data->byte_clock);
} else if(!target_cont_splash_screen()) {
dsi_clock_disable();
mdp_clock_disable();
}
return 0;
}
int target_panel_reset(uint8_t enable, struct panel_reset_sequence *resetseq,
struct msm_panel_info *pinfo)
{
uint8_t i = 0;
dprintf(SPEW, "msm8610_mdss_mipi_panel_reset, enable = %d\n", enable);
if (enable) {
gpio_tlmm_config(reset_gpio.pin_id, 0,
reset_gpio.pin_direction, reset_gpio.pin_pull,
reset_gpio.pin_strength, reset_gpio.pin_state);
gpio_tlmm_config(mode_gpio.pin_id, 0,
mode_gpio.pin_direction, mode_gpio.pin_pull,
mode_gpio.pin_strength, mode_gpio.pin_state);
/* reset */
for (i = 0; i < RESET_GPIO_SEQ_LEN; i++) {
if (resetseq->pin_state[i] == GPIO_STATE_LOW)
gpio_set(reset_gpio.pin_id, GPIO_STATE_LOW);
else
gpio_set(reset_gpio.pin_id, GPIO_STATE_HIGH);
mdelay(resetseq->sleep[i]);
}
if (pinfo->mipi.mode_gpio_state == MODE_GPIO_STATE_ENABLE)
gpio_set(mode_gpio.pin_id, 2);
else if (pinfo->mipi.mode_gpio_state == MODE_GPIO_STATE_DISABLE)
gpio_set(mode_gpio.pin_id, 0);
} else if(!target_cont_splash_screen()) {
gpio_set(reset_gpio.pin_id, 0);
gpio_set(mode_gpio.pin_id, 0);
}
return 0;
}
int target_ldo_ctrl(uint8_t enable)
{
uint32_t ldocounter = 0;
uint32_t pm8x41_ldo_base = 0x13F00;
while (ldocounter < TOTAL_LDO_DEFINED) {
struct pm8x41_ldo ldo_entry = LDO((pm8x41_ldo_base +
0x100 * ldo_entry_array[ldocounter].ldo_id),
ldo_entry_array[ldocounter].ldo_type);
dprintf(SPEW, "Setting %s\n",
ldo_entry_array[ldocounter].ldo_id);
/* Set voltage during power on */
if (enable) {
pm8x41_ldo_set_voltage(&ldo_entry,
ldo_entry_array[ldocounter].ldo_voltage);
pm8x41_ldo_control(&ldo_entry, enable);
} else if(!target_cont_splash_screen()) {
pm8x41_ldo_control(&ldo_entry, enable);
}
ldocounter++;
}
return 0;
}
void display_init(void)
{
gcdb_display_init(MDP_REV_304, MIPI_FB_ADDR);
}
void display_shutdown(void)
{
gcdb_display_shutdown();
}
|
//
// 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"
#import <IDEKit/IDENavigator.h>
@class IDENavigatorOutlineView, NSArray, NSMutableArray;
@interface IDEOutlineBasedNavigator : IDENavigator
{
NSArray *_selectedObjects;
IDENavigatorOutlineView *_outlineView;
id _lastOpenRequest;
}
+ (id)keyPathsForValuesAffectingFilterProgress;
+ (id)keyPathsForValuesAffectingObjects;
+ (void)initialize;
@property(retain) id lastOpenRequest; // @synthesize lastOpenRequest=_lastOpenRequest;
@property(retain) IDENavigatorOutlineView *outlineView; // @synthesize outlineView=_outlineView;
- (long long)filterProgress;
- (id)contextMenuSelection;
- (void)willForgetNavigableItems:(id)arg1;
- (void)primitiveInvalidate;
- (void)viewWillUninstall;
- (void)viewDidInstall;
@property(readonly, nonatomic) NSArray *objects;
- (void)_openNavigableItem:(id)arg1 eventType:(unsigned long long)arg2;
- (void)openDoubleClickedNavigableItemsAction:(id)arg1;
- (void)openClickedNavigableItemAction:(id)arg1;
- (void)openSelectedNavigableItemsKeyAction:(id)arg1;
- (id)openSpecifierForNavigableItem:(id)arg1 error:(id *)arg2;
- (BOOL)shouldOpenNavigableItem:(id)arg1 eventType:(unsigned long long)arg2;
- (BOOL)delegateFirstResponder;
- (id)initWithNibName:(id)arg1 bundle:(id)arg2;
- (void)loadView;
// Remaining properties
@property(readonly) NSMutableArray *mutableSelectedObjects; // @dynamic mutableSelectedObjects;
@property(retain) NSArray *selectedObjects; // @dynamic selectedObjects;
@end
|
/*================================================================
* Copyright (C) 2014 All rights reserved.
*
* 文件名称:HttpConn.h
* 创 建 者:Zhang Yuanhao
* 邮 箱:bluefoxah@gmail.com
* 创建日期:2014年07月29日
* 描 述:
*
#pragma once
================================================================*/
#ifndef __HTTP_CONN_H__
#define __HTTP_CONN_H__
#include "util.h"
#if (MSFS_LINUX)
#include <sys/sendfile.h>
#elif (MSFS_BSD)
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
#endif
#include <pthread.h>
#include "netlib.h"
#include "SimpleBuffer.h"
#include "FileManager.h"
#include "ConfigFileReader.h"
#include "ThreadPool.h"
#include "HttpParserWrapper.h"
#define HTTP_CONN_TIMEOUT 30000
#define HTTP_UPLOAD_MAX 0xA00000 //10M
#define BOUNDARY_MARK "boundary="
#define HTTP_END_MARK "\r\n\r\n"
#define CONTENT_TYPE "Content-Type:"
#define CONTENT_DISPOSITION "Content-Disposition:"
#define READ_BUF_SIZE 0x100000 //1M
#define HTTP_RESPONSE_HEADER "HTTP/1.1 200 OK\r\n"\
"Connection:close\r\n"\
"Content-Length:%d\r\n"\
"Content-Type:multipart/form-data\r\n\r\n"
#define HTTP_RESPONSE_EXTEND "HTTP/1.1 200 OK\r\n"\
"Connection:close\r\n"\
"Content-Length:%d\r\n"\
"Content-Type:multipart/form-data\r\n\r\n"
#define HTTP_RESPONSE_HTML "HTTP/1.1 200 OK\r\n"\
"Connection:close\r\n"\
"Content-Length:%d\r\n"\
"Content-Type:text/html;charset=utf-8\r\n\r\n%s"
#define HTTP_RESPONSE_HTML_MAX 1024
#define HTTP_RESPONSE_403 "HTTP/1.1 403 Access Forbidden\r\n"\
"Content-Length: 0\r\n"\
"Connection: close\r\n"\
"Content-Type: text/html;charset=utf-8\r\n\r\n"
#define HTTP_RESPONSE_403_LEN strlen(HTTP_RESPONSE_403)
#define HTTP_RESPONSE_404 "HTTP/1.1 404 Not Found\r\n"\
"Content-Length: 0\r\n"\
"Connection: close\r\n"\
"Content-Type: text/html;charset=utf-8\r\n\r\n"
#define HTTP_RESPONSE_404_LEN strlen(HTTP_RESPONSE_404)
#define HTTP_RESPONSE_500 "HTTP/1.1 500 Internal Server Error\r\n"\
"Connection:close\r\n"\
"Content-Length:0\r\n"\
"Content-Type:text/html;charset=utf-8\r\n\r\n"
#define HTTP_RESPONSE_500_LEN strlen(HTTP_RESPONSE_500)
using namespace msfs;
enum
{
CONN_STATE_IDLE, CONN_STATE_CONNECTED, CONN_STATE_OPEN, CONN_STATE_CLOSED,
};
extern FileManager * g_fileManager;
extern CConfigFileReader config_file;
extern CThreadPool g_PostThreadPool;
extern CThreadPool g_GetThreadPool;
typedef struct {
uint32_t conn_handle;
int method;
int nContentLen;
string strAccessHost;
char* pContent;
string strUrl;
string strContentType;
}Request_t;
typedef struct {
uint32_t conn_handle;
char* pContent;
uint32_t content_len;
} Response_t;
class CHttpConn;
class CHttpTask: public CTask
{
public:
CHttpTask(Request_t request);
virtual ~CHttpTask();
void run();
void OnUpload();
void OnDownload();
private:
uint32_t m_ConnHandle;
int m_nMethod;
string m_strUrl;
string m_strContentType;
char* m_pContent;
int m_nContentLen;
string m_strAccessHost;
};
class CHttpConn: public CRefObject
{
public:
CHttpConn();
virtual ~CHttpConn();
uint32_t GetConnHandle()
{
return m_conn_handle;
}
char* GetPeerIP()
{
return (char*) m_peer_ip.c_str();
}
int Send(void* data, int len);
void Close();
void OnConnect(net_handle_t handle);
void OnRead();
void OnWrite();
void OnClose();
void OnTimer(uint64_t curr_tick);
void OnSendComplete();
static void AddResponsePdu(uint32_t conn_handle, char* pContent, int nLen); // 工作线程调用
static void SendResponsePduList(); // 主线程调用
protected:
net_handle_t m_sock_handle;
uint32_t m_conn_handle;
bool m_busy;
uint32_t m_state;
string m_peer_ip;
uint16_t m_peer_port;
string m_access_host;
CSimpleBuffer m_in_buf;
CSimpleBuffer m_out_buf;
uint64_t m_last_send_tick;
uint64_t m_last_recv_tick;
CHttpParserWrapper m_HttpParser;
static CThreadLock s_list_lock;
static list<Response_t*> s_response_pdu_list; // 主线程发送回复消息
};
typedef hash_map<uint32_t, CHttpConn*> HttpConnMap_t;
CHttpConn* FindHttpConnByHandle(uint32_t handle);
void init_http_conn();
#endif
|
//
// GCDThrottle.h
// GCDThrottle
//
// Created by cyan on 16/5/24.
// Copyright © 2016年 cyan. All rights reserved.
//
#import <Foundation/Foundation.h>
#define THROTTLE_MAIN_QUEUE (dispatch_get_main_queue())
#define THROTTLE_GLOBAL_QUEUE (dispatch_get_global_queue(0, 0))
typedef void (^GCDThrottleBlock) (void);
/** Throttle type */
typedef NS_ENUM(NSInteger, GCDThrottleType) {
GCDThrottleTypeDelayAndInvoke,/**< Throttle will wait for [threshold] seconds to invoke the block, when new block comes, it cancels the previous block and restart waiting for [threshold] seconds to invoke the new one. */
GCDThrottleTypeInvokeAndIgnore,/**< Throttle invokes the block at once and then wait for [threshold] seconds before it can invoke another new block, all block invocations during waiting time will be ignored. */
};
#pragma mark -
@interface GCDThrottle : NSObject
void dispatch_throttle(NSTimeInterval threshold, GCDThrottleBlock block);
void dispatch_throttle_on_queue(NSTimeInterval threshold, dispatch_queue_t queue, GCDThrottleBlock block);
void dispatch_throttle_by_type(NSTimeInterval threshold, GCDThrottleType type, GCDThrottleBlock block);
void dispatch_throttle_by_type_on_queue(NSTimeInterval threshold, GCDThrottleType type, dispatch_queue_t queue, GCDThrottleBlock block);
+ (void)throttle:(NSTimeInterval)threshold block:(GCDThrottleBlock)block;
+ (void)throttle:(NSTimeInterval)threshold queue:(dispatch_queue_t)queue block:(GCDThrottleBlock)block;
+ (void)throttle:(NSTimeInterval)threshold type:(GCDThrottleType)type block:(GCDThrottleBlock)block;
+ (void)throttle:(NSTimeInterval)threshold type:(GCDThrottleType)type queue:(dispatch_queue_t)queue block:(GCDThrottleBlock)block;
@end
|
/* pq.c */
#include <stdio.h>
#include <stdlib.h>
#include "pq.h"
int insert(int *queue, int new_value)
{
int i;
//¥¥å¡¼¤ÎÂè0Í×ÁǤϥ¥å¡¼¤ËÍ×ÁǤ¬²¿¸ÄÆþ¤Ã¤¿¤«¤ò¥«¥¦¥ó¥È¤¹¤ë¡£
queue[0]++;
if(queue[0] < QueueCapacity+1) {
queue[queue[0]] = new_value;
return 0;
} else {
for(i = QueueCapacity+1/2; i > 0; i--)
downheap( queue, i, QueueCapacity+1 );
printf("END : [%2d]\n", extractmax(queue));
queue[1] = new_value;
}
}
int maximum(int *queue)
{
return queue[1];
}
int extractmax(int *queue)
{
int maxkey;
maxkey = maximum(queue);
return maxkey;
}
void downheap(int *queue, int v, int n)
{
int temp;
int w;
if(v > n/2)
return;
w = 2*v;
if( w+1 <= n && queue[w] < queue[w+1])
w = w+1;
if( queue[v] < queue[w] ) {
temp = queue[v];
queue[v] = queue[w];
queue[w] = temp;
downheap(queue, w, n);
}
}
|
//
// LBWaitOrdersModel.h
// Universialshare
//
// Created by 四川三君科技有限公司 on 2017/4/26.
// Copyright © 2017年 四川三君科技有限公司. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface LBWaitOrdersModel : NSObject
@property (copy, nonatomic)NSString *order_id;
@property (copy, nonatomic)NSString *order_number;
@property (copy, nonatomic)NSString *creat_time;
@property (copy, nonatomic)NSString *logistics_sta;
@property (copy, nonatomic)NSArray *WaitOrdersListModel;
@property (assign, nonatomic)BOOL isExpanded;//是否展开
@end
|
// No build information available
#define BUILD_DATE "2013-11-07 23:27:08 -0500"
|
#ifndef TYPEISDECORATORTEMPLATEINSTANCE_H
#define TYPEISDECORATORTEMPLATEINSTANCE_H
#include "DataExtractor.h"
class ConcreteTableColumn;
class TemplateInstance;
class TypeIsDecoratorTemplateInstance : public DataExtractor {
public:
TypeIsDecoratorTemplateInstance(DataExtractor *next, ConcreteTableColumn *prototype, TemplateInstance *condition);
protected:
virtual TableColumn *handleExtraction(AbstractTree &tree);
};
#endif //TYPEISDECORATORTEMPLATEINSTANCE_H |
#if !defined(_FILEDOUBLE_H_)
#define _FILEDOUBLE_H_
#include "FileMgr.h"
/*
* Copyright 1991, 1998 by Abacus Research and Development, Inc.
* All rights reserved.
*
* $Id: filedouble.h 63 2004-12-24 18:19:43Z ctm $
*/
namespace Executor {
typedef enum {
Data_Fork_ID = 1,
Resource_Fork_ID,
Real_Name_ID,
Comment_ID,
BandW_ICON_ID,
Color_ICON_ID,
File_Dates_Info_ID = 8,
Finder_Info_ID,
Macintosh_File_Info_ID,
ProDOS_File_Info_ID,
MSDOS_File_Info_ID,
Short_Name_ID,
AFT_File_Info_ID,
Directory_ID
} Single_ID;
typedef struct PACKED {
ULONGINT id;
ULONGINT offset;
ULONGINT length;
} Single_descriptor;
typedef struct PACKED {
LONGINT magic;
LONGINT version;
LONGINT filler[4];
INTEGER nentries;
} Single_header;
typedef struct PACKED {
LONGINT crdat;
LONGINT moddat;
LONGINT backupdat;
LONGINT accessdat;
} Single_dates;
typedef struct PACKED {
FInfo finfo;
FXInfo fxinfo;
} Single_finfo;
typedef ULONGINT Single_attribs;
typedef struct PACKED defaulthead {
Single_header head;
Single_descriptor desc[10]; /* we use 4, 6 for spare */
} defaulthead_t;
typedef struct PACKED defaultentries {
Single_attribs attribs;
Single_dates dates;
Single_finfo finfo;
} defaultentries_t;
#define SINGLEMAGIC 0x0051600
#define DOUBLEMAGIC 0x0051607
#define SINGLEVERSION 0x00020000
extern OSErr ROMlib_newresfork (char *name, LONGINT *fdp, boolean_t unix_p);
typedef enum { mkdir_op, rmdir_op } double_dir_op_t;
extern int afpd_conventions_p;
extern int netatalk_conventions_p;
extern char apple_double_quote_char;
extern const char *apple_double_fork_prefix;
extern int apple_double_fork_prefix_length;
extern void double_dir_op (char *name, double_dir_op_t op);
}
#endif
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 OMNICOIN_POW_H
#define OMNICOIN_POW_H
#include "consensus/params.h"
#include <stdint.h>
class CBlockHeader;
class CBlockIndex;
class uint256;
class arith_uint256;
unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params&);
unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nFirstBlockTime, const Consensus::Params&);
/** Check whether a block hash satisfies the proof-of-work requirement specified by nBits */
bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params&);
arith_uint256 GetBlockProof(const CBlockIndex& block);
/** Return the time it would take to redo the work difference between from and to, assuming the current hashrate corresponds to the difficulty at tip, in seconds. */
int64_t GetBlockProofEquivalentTime(const CBlockIndex& to, const CBlockIndex& from, const CBlockIndex& tip, const Consensus::Params&);
#endif // OMNICOIN_POW_H
|
//====== Copyright © 1996-2014 Valve Corporation, All rights reserved. =======
//
// Purpose: interface to Steam Video
//
//=============================================================================
#ifndef ISTEAMVIDEO_H
#define ISTEAMVIDEO_H
#ifdef _WIN32
#pragma once
#endif
#include "steam_api_common.h"
// callbacks
#if defined( VALVE_CALLBACK_PACK_SMALL )
#pragma pack( push, 4 )
#elif defined( VALVE_CALLBACK_PACK_LARGE )
#pragma pack( push, 8 )
#else
#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
#endif
//-----------------------------------------------------------------------------
// Purpose: Steam Video API
//-----------------------------------------------------------------------------
class ISteamVideo
{
public:
// Get a URL suitable for streaming the given Video app ID's video
virtual void GetVideoURL( AppId_t unVideoAppID ) = 0;
// returns true if user is uploading a live broadcast
virtual bool IsBroadcasting( int *pnNumViewers ) = 0;
// Get the OPF Details for 360 Video Playback
STEAM_CALL_BACK( GetOPFSettingsResult_t )
virtual void GetOPFSettings( AppId_t unVideoAppID ) = 0;
virtual bool GetOPFStringForApp( AppId_t unVideoAppID, char *pchBuffer, int32 *pnBufferSize ) = 0;
};
#define STEAMVIDEO_INTERFACE_VERSION "STEAMVIDEO_INTERFACE_V002"
// Global interface accessor
inline ISteamVideo *SteamVideo();
STEAM_DEFINE_USER_INTERFACE_ACCESSOR( ISteamVideo *, SteamVideo, STEAMVIDEO_INTERFACE_VERSION );
STEAM_CALLBACK_BEGIN( BroadcastUploadStart_t, k_iClientVideoCallbacks + 4 )
STEAM_CALLBACK_END(0)
STEAM_CALLBACK_BEGIN( BroadcastUploadStop_t, k_iClientVideoCallbacks + 5 )
STEAM_CALLBACK_MEMBER( 0, EBroadcastUploadResult, m_eResult )
STEAM_CALLBACK_END(1)
STEAM_CALLBACK_BEGIN( GetVideoURLResult_t, k_iClientVideoCallbacks + 11 )
STEAM_CALLBACK_MEMBER( 0, EResult, m_eResult )
STEAM_CALLBACK_MEMBER( 1, AppId_t, m_unVideoAppID )
STEAM_CALLBACK_MEMBER( 2, char, m_rgchURL[256] )
STEAM_CALLBACK_END(3)
STEAM_CALLBACK_BEGIN( GetOPFSettingsResult_t, k_iClientVideoCallbacks + 24 )
STEAM_CALLBACK_MEMBER( 0, EResult, m_eResult )
STEAM_CALLBACK_MEMBER( 1, AppId_t, m_unVideoAppID )
STEAM_CALLBACK_END(2)
#pragma pack( pop )
#endif // ISTEAMVIDEO_H
|
//
// AFNProductCategoriesLoader.h
// RubyGarageDemo
//
// Created by dodikk on 10/11/15.
// Copyright © 2015 dodikk. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <RGProductsKit/RGProductsKit.h>
typedef void (^AFNSuccessBlock)(NSURLSessionDataTask *task, id responseObject);
typedef void (^AFNFailureBlock)(NSURLSessionDataTask *task, NSError *error);
@class AFHTTPSessionManager;
@protocol RGEnvironment;
@interface AFNProductCategoriesLoader : NSObject<RGProductCategoriesLoader>
+(instancetype)new NS_UNAVAILABLE;
-(instancetype)init NS_UNAVAILABLE;
-(instancetype)initWithAfnSession:(AFHTTPSessionManager*)session
environment:(id<RGEnvironment>)env
NS_DESIGNATED_INITIALIZER
NS_REQUIRES_SUPER
__attribute__((nonnull));
@end
|
//
// LYThirdToViewController.h
// test
//
// Created by felix on 2017/5/27.
// Copyright © 2017年 forest. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LYThirdToViewController : UIViewController
@end
|
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/*
* Description:
* What is this file about?
*
* Revision history:
* xxxx-xx-xx, author, first version
* xxxx-xx-xx, author, fix bug about xxx
*/
# pragma once
# include <dsn/service_api_cpp.h>
# include "cli.types.h"
# include <iostream>
namespace dsn {
DEFINE_TASK_CODE_RPC(RPC_DSN_CLI_CALL, TASK_PRIORITY_HIGH, THREAD_POOL_DEFAULT);
class cli_client
: public virtual ::dsn::clientlet
{
public:
cli_client(::dsn::rpc_address server) { _server = server; }
cli_client() { }
virtual ~cli_client() {}
// ---------- call RPC_DSN_CLI_CALL ------------
// - synchronous
::dsn::error_code call(
const command& c,
/*out*/ std::string& resp,
int timeout_milliseconds = 0,
int hash = 0,
const ::dsn::rpc_address *p_server_addr = nullptr)
{
::dsn::rpc_read_stream response;
auto err = ::dsn::rpc::call_typed_wait(&response, p_server_addr ? *p_server_addr : _server,
RPC_DSN_CLI_CALL, c, hash, timeout_milliseconds);
if (err == ::dsn::ERR_OK)
{
unmarshall(response, resp);
}
return err;
}
// - asynchronous with on-stack command and std::string
::dsn::task_ptr begin_call(
const command& c,
void* context = nullptr,
int timeout_milliseconds = 0,
int reply_hash = 0,
int request_hash = 0,
const ::dsn::rpc_address *p_server_addr = nullptr)
{
return ::dsn::rpc::call_typed(
p_server_addr ? *p_server_addr : _server,
RPC_DSN_CLI_CALL,
c,
this,
[=](error_code ec, const std::string& resp)
{
end_call(ec, resp, context);
},
request_hash,
timeout_milliseconds,
reply_hash
);
}
virtual void end_call(
::dsn::error_code err,
const std::string& resp,
void* context)
{
if (err != ::dsn::ERR_OK) std::cout << "reply RPC_DSN_CLI_CALL err : " << err.to_string() << std::endl;
else
{
std::cout << "reply RPC_DSN_CLI_CALL ok" << std::endl;
}
}
private:
::dsn::rpc_address _server;
};
} |
//Copyright 2016 davevillz, https://github.com/davevill
#pragma once
#include "Steamworks.h"
#include "OnlineSubsystemTypes.h"
class FUniqueNetIdSteam : public FUniqueNetId
{
PACKAGE_SCOPE:
/** Holds the net id for a player */
uint64 UniqueNetId;
/** Hidden on purpose */
FUniqueNetIdSteam() :
UniqueNetId(0)
{
}
/**
* Copy Constructor
*
* @param Src the id to copy
*/
explicit FUniqueNetIdSteam(const FUniqueNetIdSteam& Src) :
UniqueNetId(Src.UniqueNetId)
{
}
public:
/**
* Constructs this object with the specified net id
*
* @param InUniqueNetId the id to set ours to
*/
explicit FUniqueNetIdSteam(uint64 InUniqueNetId) :
UniqueNetId(InUniqueNetId)
{
}
/**
* Constructs this object with the steam id
*
* @param InUniqueNetId the id to set ours to
*/
explicit FUniqueNetIdSteam(CSteamID InSteamId) :
UniqueNetId(InSteamId.ConvertToUint64())
{
}
/**
* Constructs this object with the specified net id
*
* @param String textual representation of an id
*/
explicit FUniqueNetIdSteam(const FString& Str) :
UniqueNetId(FCString::Atoi64(*Str))
{
}
/**
* Constructs this object with the specified net id
*
* @param InUniqueNetId the id to set ours to (assumed to be FUniqueNetIdSteam in fact)
*/
explicit FUniqueNetIdSteam(const FUniqueNetId& InUniqueNetId) :
UniqueNetId(*(uint64*)InUniqueNetId.GetBytes())
{
}
/**
* Get the raw byte representation of this net id
* This data is platform dependent and shouldn't be manipulated directly
*
* @return byte array of size GetSize()
*/
virtual const uint8* GetBytes() const override
{
return (uint8*)&UniqueNetId;
}
/**
* Get the size of the id
*
* @return size in bytes of the id representation
*/
virtual int32 GetSize() const override
{
return sizeof(uint64);
}
/**
* Check the validity of the id
*
* @return true if this is a well formed ID, false otherwise
*/
virtual bool IsValid() const override
{
return UniqueNetId != 0 && CSteamID(UniqueNetId).IsValid();
}
/**
* Platform specific conversion to string representation of data
*
* @return data in string form
*/
virtual FString ToString() const override
{
return FString::Printf(TEXT("%llu"), UniqueNetId);
}
/**
* Get a human readable representation of the net id
* Shouldn't be used for anything other than logging/debugging
*
* @return id in string form
*/
virtual FString ToDebugString() const override
{
CSteamID SteamID(UniqueNetId);
if (SteamID.IsLobby())
{
return FString::Printf(TEXT("Lobby [0x%llX]"), UniqueNetId);
}
else if (SteamID.BAnonGameServerAccount())
{
return FString::Printf(TEXT("Server [0x%llX]"), UniqueNetId);
}
else if (SteamID.IsValid())
{
const FString NickName(SteamFriends() ? UTF8_TO_TCHAR(SteamFriends()->GetFriendPersonaName(UniqueNetId)) : TEXT("UNKNOWN"));
return FString::Printf(TEXT("%s [0x%llX]"), *NickName, UniqueNetId);
}
else
{
return FString::Printf(TEXT("INVALID [0x%llX]"), UniqueNetId);
}
}
/** Needed for TMap::GetTypeHash() */
friend uint32 GetTypeHash(const FUniqueNetIdSteam& A)
{
return (uint32)(A.UniqueNetId) + ((uint32)((A.UniqueNetId) >> 32) * 23);
}
/** Convenience cast to CSteamID */
operator CSteamID()
{
return UniqueNetId;
}
/** Convenience cast to CSteamID */
operator const CSteamID() const
{
return UniqueNetId;
}
/** Convenience cast to CSteamID pointer */
operator CSteamID*()
{
return (CSteamID*)&UniqueNetId;
}
/** Convenience cast to CSteamID pointer */
operator const CSteamID*() const
{
return (const CSteamID*)&UniqueNetId;
}
};
|
/*
* Copyright (c) 2016 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 contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_SDES_H_
#define MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_SDES_H_
#include <string>
#include <vector>
#include "modules/rtp_rtcp/source/rtcp_packet.h"
#include BOSS_WEBRTC_U_rtc_base__basictypes_h //original-code:"rtc_base/basictypes.h"
namespace webrtc {
namespace rtcp {
class CommonHeader;
// Source Description (SDES) (RFC 3550).
class Sdes : public RtcpPacket {
public:
struct Chunk {
uint32_t ssrc;
std::string cname;
};
static constexpr uint8_t kPacketType = 202;
static constexpr size_t kMaxNumberOfChunks = 0x1f;
Sdes();
~Sdes() override;
// Parse assumes header is already parsed and validated.
bool Parse(const CommonHeader& packet);
bool AddCName(uint32_t ssrc, std::string cname);
const std::vector<Chunk>& chunks() const { return chunks_; }
size_t BlockLength() const override;
bool Create(uint8_t* packet,
size_t* index,
size_t max_length,
PacketReadyCallback callback) const override;
private:
std::vector<Chunk> chunks_;
size_t block_length_;
};
} // namespace rtcp
} // namespace webrtc
#endif // MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_SDES_H_
|
//
// NViewController.h
// NHMapViewController
//
// Created by Naithar on 05/28/2015.
// Copyright (c) 2014 Naithar. All rights reserved.
//
@import UIKit;
@interface NViewController : UIViewController
@end
|
// Àâòîð: Àëåêñåé Æóðàâëåâ
// Îïèñàíèå: Êëàññ, ðåàëèçóþùèé ôóíêöèîíàë ìåíåäæåðà ðàáîòû ñ ïàìÿòüþ.
#include <Windows.h>
#include <set>
#include <vector>
#include <iostream>
#include <algorithm>
#pragma once
class CHeapManager {
public:
CHeapManager();
~CHeapManager();
void Create(int minSize, int maxSize);
void* Alloc(int size);
void Free(void* mem);
void Destroy();
private:
std::set<LPVOID> freeSmallMemoryBlocks, allocatedBlocks;
std::set<std::pair<LPVOID, int>> freeMediumMemoryBlocks, freeLargeMemoryBlocks;
std::vector<int> pages;
LPVOID heapHead;
int maxSize;
bool commitPages(LPVOID start, int numberOfPages);
LPVOID commitAndUpdate(LPVOID block, int blockSize, int requiredSize);
void addFreeBlock(LPVOID start, int size);
std::pair<int, int> getStartAndEndPages(LPVOID block, int blockSize);
template <typename setType> std::pair<LPVOID, int> findEmptyBlockAndErase(
std::set<setType>& targetSet, int size);
int getBlockSize(LPVOID pointer);
int getBlockSize(std::pair<LPVOID, int> pair);
LPVOID getBlock(LPVOID pointer);
LPVOID getBlock(std::pair<LPVOID, int> pair);
int roundTo(int number, int divider);
void addEmptyBlockWithMerge(LPVOID block, int BlockSize);
template <typename setType> std::pair<LPVOID, int> tryLeftMerge(std::set<setType>& targetSet, setType compareElement);
template <typename setType> std::pair<LPVOID, int> tryRightMerge(std::set<setType>& targetSet, setType compareElement,
int BlockSize);
std::pair<LPVOID, int> getBestMergeResult(std::pair<LPVOID, int> first, std::pair<LPVOID, int> second,
std::pair<LPVOID, int> third);
static const int pageSize, mediumMemoryBlockMaxSize;
static int getPageSize();
}; |
//
// CALayer+TPCategory.h
// ShiJuRenClient
//
// Created by xuwk on 15/8/29.
// Copyright (c) 2015年 qijuntonglian. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "QJTL_Global.h"
@interface CALayer (TPCategory)
- (void)setBorderColorFromUIColor:(UIColor *)color;
@end
|
//
// Created by Larry Tin on 7/9/16.
//
#import <UIKit/UIKit.h>
#import "GDDRenderModel.h"
#import "GDDBaseViewLayout.h"
@interface GDDTableViewLayout : GDDBaseViewLayout
- (instancetype)initWithTableView:(UITableView *)tableView withTopic:(NSString *)layoutTopic withOwner:(id)owner;
@end
|
/*
* The MIT License
*
* Copyright (c) 2014 GitHub, Inc
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef __H_RUGGED_BINDINGS__
#define __H_RUGGED_BINDINGS__
// tell rbx not to use it's caching compat layer
// by doing this we're making a promize to RBX that
// we'll never modify the pointers we get back from RSTRING_PTR
#define RSTRING_NOT_MODIFIED
#include <ruby.h>
#ifndef HAVE_RUBY_ENCODING_H
#error "Rugged requires Ruby 1.9+ to build"
#else
#include <ruby/encoding.h>
#endif
#include <assert.h>
#include <git2.h>
#include <git2/odb_backend.h>
#define rb_str_new_utf8(str) rb_enc_str_new(str, strlen(str), rb_utf8_encoding())
#define CSTR2SYM(s) (ID2SYM(rb_intern((s))))
/*
* Initialization functions
*/
void Init_rugged_object(void);
void Init_rugged_branch(void);
void Init_rugged_branch_collection(void);
void Init_rugged_commit(void);
void Init_rugged_tree(void);
void Init_rugged_tag(void);
void Init_rugged_tag_collection(void);
void Init_rugged_blob(void);
void Init_rugged_index(void);
void Init_rugged_repo(void);
void Init_rugged_revwalk(void);
void Init_rugged_reference(void);
void Init_rugged_reference_collection(void);
void Init_rugged_config(void);
void Init_rugged_remote(void);
void Init_rugged_remote_collection(void);
void Init_rugged_notes(void);
void Init_rugged_settings(void);
void Init_rugged_diff(void);
void Init_rugged_patch(void);
void Init_rugged_diff_delta(void);
void Init_rugged_diff_hunk(void);
void Init_rugged_diff_line(void);
void Init_rugged_blame(void);
void Init_rugged_cred(void);
VALUE rb_git_object_init(git_otype type, int argc, VALUE *argv, VALUE self);
VALUE rugged_raw_read(git_repository *repo, const git_oid *oid);
VALUE rugged_signature_new(const git_signature *sig, const char *encoding_name);
VALUE rugged_index_new(VALUE klass, VALUE owner, git_index *index);
VALUE rugged_config_new(VALUE klass, VALUE owner, git_config *cfg);
VALUE rugged_object_new(VALUE owner, git_object *object);
VALUE rugged_object_rev_parse(VALUE rb_repo, VALUE rb_spec, int as_obj);
VALUE rugged_ref_new(VALUE klass, VALUE owner, git_reference *ref);
VALUE rugged_diff_new(VALUE klass, VALUE owner, git_diff *diff);
VALUE rugged_patch_new(VALUE owner, git_patch *patch);
VALUE rugged_diff_delta_new(VALUE owner, const git_diff_delta *delta);
VALUE rugged_diff_hunk_new(VALUE owner, size_t hunk_idx, const git_diff_hunk *hunk, size_t lines_in_hunk);
VALUE rugged_diff_line_new(const git_diff_line *line);
VALUE rugged_remote_new(VALUE owner, git_remote *remote);
VALUE rb_git_delta_file_fromC(const git_diff_file *file);
void rugged_parse_diff_options(git_diff_options *opts, VALUE rb_options);
void rugged_parse_merge_options(git_merge_options *opts, VALUE rb_options);
void rugged_cred_extract(git_cred **cred, int allowed_types, VALUE rb_credential);
VALUE rugged_otype_new(git_otype t);
git_otype rugged_otype_get(VALUE rb_type);
git_signature *rugged_signature_get(VALUE rb_person, git_repository *repo);
git_object *rugged_object_get(git_repository *repo, VALUE object_value, git_otype type);
int rugged_oid_get(git_oid *oid, git_repository *repo, VALUE p);
void rugged_rb_ary_to_strarray(VALUE rb_array, git_strarray *str_array);
VALUE rugged_strarray_to_rb_ary(git_strarray *str_array);
static inline void rugged_set_owner(VALUE object, VALUE owner)
{
rb_iv_set(object, "@owner", owner);
}
static inline VALUE rugged_owner(VALUE object)
{
return rb_iv_get(object, "@owner");
}
static inline void rugged_validate_remote_url(VALUE rb_url)
{
Check_Type(rb_url, T_STRING);
if (!git_remote_valid_url(StringValueCStr(rb_url)))
rb_raise(rb_eArgError, "Invalid URL format");
}
extern void rugged_exception_raise(void);
static inline void rugged_exception_check(int errorcode)
{
if (errorcode < 0)
rugged_exception_raise();
}
static inline int rugged_parse_bool(VALUE boolean)
{
if (TYPE(boolean) != T_TRUE && TYPE(boolean) != T_FALSE)
rb_raise(rb_eTypeError, "Expected boolean value");
return boolean ? 1 : 0;
}
extern VALUE rb_cRuggedRepo;
VALUE rugged__block_yield_splat(VALUE args);
struct rugged_cb_payload
{
VALUE rb_data;
int exception;
};
struct rugged_remote_cb_payload
{
VALUE progress;
VALUE completion;
VALUE transfer_progress;
VALUE update_tips;
VALUE credentials;
int exception;
};
void rugged_remote_init_callbacks_and_payload_from_options(
VALUE rb_options,
git_remote_callbacks *callbacks,
struct rugged_remote_cb_payload *payload);
static inline void rugged_check_repo(VALUE rb_repo)
{
if (!rb_obj_is_kind_of(rb_repo, rb_cRuggedRepo))
rb_raise(rb_eTypeError, "Expecting a Rugged Repository");
}
static inline VALUE rugged_create_oid(const git_oid *oid)
{
char out[40];
git_oid_fmt(out, oid);
return rb_str_new(out, 40);
}
#endif
|
#ifndef QREDISCLIENTREPLY_H
#define QREDISCLIENTREPLY_H
//
#include <QByteArray>
#include <QChar>
#include <QString>
#include <QVariant>
//
#include "QRedisClientError.h"
#include "QRedisClientRequest.h"
#include "QRedisProtocolToken.h"
#include "QRedisClientConstants.h"
//
class QRedisClient;
class QRedisClientReply
{
friend class QRedisClient;
public:
QRedisClientReply();
QRedisClientReply(const QRedisClientRequest &request);
// Operators
bool operator == (const QRedisClientReply &other) const;
bool operator != (const QRedisClientReply &other) const;
QRedisClientError error() const;
bool success() const;
QRedisType type() const;
QRedisClientRequest request() const;
QVector<QRedisProtocolToken>& tokens();
const QRedisProtocolToken& firstToken() const;
const QRedisProtocolToken& tokenAtIndex(quint32 index) const;
private:
// iVars
QRedisClientError m_error;
bool m_success = false;
QRedisType m_type = QRedisType::TYPE_UNKNOWN;
QRedisClientRequest m_request;
QVector<QRedisProtocolToken> m_tokens;
// Methods
bool isComplete() const;
void addToken(const QRedisProtocolToken &token);
};
#endif // QREDISCLIENTREPLY_H
|
//
// DescTextActionCell.h
// BirdFight
//
// Created by 聚米 on 16/11/4.
// Copyright © 2016年 聚米. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^TapCaoZuoButton)(UIButton * sender);
@interface DescTextActionCell : UITableViewCell
@property (nonatomic, strong) TapCaoZuoButton block;
@end
|
//
// SQLiteViewController.h
// demo
//
// Created by lw on 17/2/25.
// Copyright © 2017年 lee. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SQLiteViewController : UIViewController
@end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.