text
stringlengths
4
6.14k
/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ struct ListNode { int val; struct ListNode *next; }; static struct ListNode* merge2Lists(struct ListNode* l1, struct ListNode* l2) { struct ListNode* head; struct ListNode* tail; struct ListNode nil; nil.next = l1; tail = &nil; while (l1 && l2) { if (l1->val < l2->val) { l1 = l1->next; tail = tail->next; } else { tail->next = l2; l2 = l2->next; tail->next->next = l1; tail = tail->next; } } if (l2) { tail->next = l2; } return nil.next; } struct ListNode* mergeKLists(struct ListNode** lists, int listsSize) { struct ListNode* head; struct ListNode* tail; head = tail = 0; int min; int i; if (listsSize == 0) return 0; if (listsSize == 1) return lists[0]; for (i = 1; i < listsSize; ++i) { lists[i] = merge2Lists(lists[i - 1], lists[i]); } return lists[listsSize - 1]; /*int idx; while (1) { idx = -1; for (i = 0; i < listsSize; ++i) { if (lists[i]) { if (idx == -1 || lists[i]->val < min) { idx = i; min = lists[i]->val; } } } if (idx == -1) { return head; } else { if (head == 0) { head = tail = lists[idx]; lists[idx] = tail->next; } else { tail->next = lists[idx]; tail = tail->next; lists[idx] = tail->next; } } }*/ }
// // LZLTabBar.h // 第一天 // // Created by 罗志林 on 15/9/28. // Copyright © 2015年 luozhilin. All rights reserved. // #import <UIKit/UIKit.h> @interface LZLTabBar : UITabBar @end
/* * Matrix.h * MEDSR * * Created by Master.G on 14-4-15. * Copyright (c) 2014 MED. All rights reserved. */ #ifndef KITSUNE_MATRIX_H_ #define KITSUNE_MATRIX_H_ #include "MathUtil.h" /* * column-major matrix * 0 4 8 12 * 1 5 9 13 * 2 6 10 14 * 3 7 11 15 */ extern mat_t MatrixIdentity; /** * @brief clear a matrix * * @param m the matrix need to clear */ void Matrix_Clear(mat_t m); /** * @brief copy matrix to matrix * * @param dst the destination matrix * @param src the source matrix */ void Matrix_Copy(mat_t dst, const mat_t src); /** * @brief check if two matrix is equal * * @param a first matrix * @param b second matrix */ int Matrix_Equal(const mat_t a, const mat_t b); /** * @brief load matrix with identity * 1 0 0 0 * 0 1 0 0 * 0 0 1 0 * 0 0 0 1 * * @param m the matrix to set identity with */ void Matrix_Identity(mat_t m); /** * @brief check if matrix is identity * * @param m the matrix to check with * * @return 1 for identity */ int Matrix_IsIdentity(mat_t m); /** * @brief calculate the determinant of the matrix * * @param m the matrix to calculate * * @return |m| */ float Matrix_Determinant(mat_t m); /** * @brief calculate the inverse matrix of the matrix * * @param r result matrix, m^-1 * @param m the matrix to calculate with */ void Matrix_Inverse(mat_t r, mat_t m); /** * @brief multiply two matrix * * @param r result matrix * @param a r = a x b * @param b r = a x b */ void Matrix_Multiply(mat_t r, const mat_t a, const mat_t b); /** * @brief multiply three matrices * * @param r r = a * b * c * @param a * @param b * @param c */ void Matrix_TripleMultiply(mat_t r, const mat_t a, const mat_t b, const mat_t c); /** * @brief multiply matrix with another matrix * * @param a a = b * a * @param b a = b * a */ void Matrix_PreMultiplyWith(mat_t a, const mat_t b); /** * @brief multiply matrix with another matrix * * @param a a = a * b * @param b a = a * b */ void Matrix_PostMultiplyWith(mat_t a, const mat_t b); /** * @brief setup a rotation matrix around X axis * 1 0 0 0 * 0 cos -sin 0 * 0 sin cos 0 * 0 0 0 1 * * @param m result matrix * @param angle the rotation angle */ void Matrix_RotationX(mat_t m, float angle); /** * @brief setup a rotation matrix around Y axis * cos 0 sin 0 * 0 1 0 0 * -sin 0 cos 0 * 0 0 0 1 * * @param m result matrix * @param angle the rotation angle */ void Matrix_RotationY(mat_t m, float angle); /** * @brief setup a rotation matrix around Z axis * cos -sin 0 0 * sin cos 0 0 * 0 0 1 0 * 0 0 0 1 * * @param m result matrix * @param angle the rotation angle */ void Matrix_RotationZ(mat_t m, float angle); /** * @brief setup a rotation matrix around specific axis * * @param m result matrix * @param axis the axis to rotate around * @param angle the rotation angle */ void Matrix_RotationAxis(mat_t m, const vec3f_t axis, float angle); /** * @brief rotation with yaw pitch and roll * * @param m result matrix * @param yaw yaw * @param pitch pitch * @param roll roll */ void Matrix_RotationYawPitchRoll(mat_t m, float yaw, float pitch, float roll); /** * @brief setup a scaling matrix * * @param m result matrix * @param x scale on x axis * @param y scale on y axis * @param z scale on z axis */ void Matrix_Scale(mat_t m, float x, float y, float z); /** * @brief setup a translation matrix * * @param m result matrix * @param x x translate * @param y y translate * @param z z translate */ void Matrix_Translation(mat_t m, float x, float y, float z); /** * @brief transpose a matrix * m = t^T * * @param m result matrix * @param t matrix to transpose */ void Matrix_Transpose(mat_t m, const mat_t t); /** * @brief setup a matrix of look at * * @param m result matrix * @param eye eye position * @param target target vector * @param up up direction */ void Matrix_LookAtLH(mat_t m, const vec3f_t eye, const vec3f_t target, const vec3f_t up); void Matrix_PerspectiveLH(mat_t m, float width, float height, float zNear, float zFar); /** * @brief general form of the projection matrix * * uh = Cot( fov/2 ) == 1/Tan(fov/2) * uw / uh = 1/aspect * * uw 0 0 0 * 0 uh 0 0 * 0 0 f/(f-n) 1 * 0 0 -fn/(f-n) 0 * * @param m result matrix * @param fov field of view * @param aspect * @param zNear * @param zFar */ void Matrix_PerspectiveFovLH(mat_t m, float fov, float aspect, float zNear, float zFar); #endif /* KITSUNE_MATRIX_H_ */
/* * Generated by util/mkerr.pl DO NOT EDIT * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */ #include <stdio.h> #include BLIK_OPENSSL_V_openssl__err_h //original-code:<openssl/err.h> #include BLIK_OPENSSL_U_internal__dso_h //original-code:"internal/dso.h" /* BEGIN ERROR CODES */ #ifndef OPENSSL_NO_ERR # define ERR_FUNC(func) ERR_PACK(ERR_LIB_DSO,func,0) # define ERR_REASON(reason) ERR_PACK(ERR_LIB_DSO,0,reason) static ERR_STRING_DATA DSO_str_functs[] = { {ERR_FUNC(DSO_F_DLFCN_BIND_FUNC), "dlfcn_bind_func"}, {ERR_FUNC(DSO_F_DLFCN_LOAD), "dlfcn_load"}, {ERR_FUNC(DSO_F_DLFCN_MERGER), "dlfcn_merger"}, {ERR_FUNC(DSO_F_DLFCN_NAME_CONVERTER), "dlfcn_name_converter"}, {ERR_FUNC(DSO_F_DLFCN_UNLOAD), "dlfcn_unload"}, {ERR_FUNC(DSO_F_DL_BIND_FUNC), "dl_bind_func"}, {ERR_FUNC(DSO_F_DL_LOAD), "dl_load"}, {ERR_FUNC(DSO_F_DL_MERGER), "dl_merger"}, {ERR_FUNC(DSO_F_DL_NAME_CONVERTER), "dl_name_converter"}, {ERR_FUNC(DSO_F_DL_UNLOAD), "dl_unload"}, {ERR_FUNC(DSO_F_DSO_BIND_FUNC), "DSO_bind_func"}, {ERR_FUNC(DSO_F_DSO_CONVERT_FILENAME), "DSO_convert_filename"}, {ERR_FUNC(DSO_F_DSO_CTRL), "DSO_ctrl"}, {ERR_FUNC(DSO_F_DSO_FREE), "DSO_free"}, {ERR_FUNC(DSO_F_DSO_GET_FILENAME), "DSO_get_filename"}, {ERR_FUNC(DSO_F_DSO_GLOBAL_LOOKUP), "DSO_global_lookup"}, {ERR_FUNC(DSO_F_DSO_LOAD), "DSO_load"}, {ERR_FUNC(DSO_F_DSO_MERGE), "DSO_merge"}, {ERR_FUNC(DSO_F_DSO_NEW_METHOD), "DSO_new_method"}, {ERR_FUNC(DSO_F_DSO_PATHBYADDR), "DSO_pathbyaddr"}, {ERR_FUNC(DSO_F_DSO_SET_FILENAME), "DSO_set_filename"}, {ERR_FUNC(DSO_F_DSO_UP_REF), "DSO_up_ref"}, {ERR_FUNC(DSO_F_VMS_BIND_SYM), "vms_bind_sym"}, {ERR_FUNC(DSO_F_VMS_LOAD), "vms_load"}, {ERR_FUNC(DSO_F_VMS_MERGER), "vms_merger"}, {ERR_FUNC(DSO_F_VMS_UNLOAD), "vms_unload"}, {ERR_FUNC(DSO_F_WIN32_BIND_FUNC), "win32_bind_func"}, {ERR_FUNC(DSO_F_WIN32_GLOBALLOOKUP), "win32_globallookup"}, {ERR_FUNC(DSO_F_WIN32_JOINER), "win32_joiner"}, {ERR_FUNC(DSO_F_WIN32_LOAD), "win32_load"}, {ERR_FUNC(DSO_F_WIN32_MERGER), "win32_merger"}, {ERR_FUNC(DSO_F_WIN32_NAME_CONVERTER), "win32_name_converter"}, {ERR_FUNC(DSO_F_WIN32_PATHBYADDR), "win32_pathbyaddr"}, {ERR_FUNC(DSO_F_WIN32_SPLITTER), "win32_splitter"}, {ERR_FUNC(DSO_F_WIN32_UNLOAD), "win32_unload"}, {0, NULL} }; static ERR_STRING_DATA DSO_str_reasons[] = { {ERR_REASON(DSO_R_CTRL_FAILED), "control command failed"}, {ERR_REASON(DSO_R_DSO_ALREADY_LOADED), "dso already loaded"}, {ERR_REASON(DSO_R_EMPTY_FILE_STRUCTURE), "empty file structure"}, {ERR_REASON(DSO_R_FAILURE), "failure"}, {ERR_REASON(DSO_R_FILENAME_TOO_BIG), "filename too big"}, {ERR_REASON(DSO_R_FINISH_FAILED), "cleanup method function failed"}, {ERR_REASON(DSO_R_INCORRECT_FILE_SYNTAX), "incorrect file syntax"}, {ERR_REASON(DSO_R_LOAD_FAILED), "could not load the shared library"}, {ERR_REASON(DSO_R_NAME_TRANSLATION_FAILED), "name translation failed"}, {ERR_REASON(DSO_R_NO_FILENAME), "no filename"}, {ERR_REASON(DSO_R_NULL_HANDLE), "a null shared library handle was used"}, {ERR_REASON(DSO_R_SET_FILENAME_FAILED), "set filename failed"}, {ERR_REASON(DSO_R_STACK_ERROR), "the meth_data stack is corrupt"}, {ERR_REASON(DSO_R_SYM_FAILURE), "could not bind to the requested symbol name"}, {ERR_REASON(DSO_R_UNLOAD_FAILED), "could not unload the shared library"}, {ERR_REASON(DSO_R_UNSUPPORTED), "functionality not supported"}, {0, NULL} }; #endif int ERR_load_DSO_strings(void) { #ifndef OPENSSL_NO_ERR if (ERR_func_error_string(DSO_str_functs[0].error) == NULL) { ERR_load_strings(0, DSO_str_functs); ERR_load_strings(0, DSO_str_reasons); } #endif return 1; }
// // UITextField+Add.h // portal // // Created by Store on 2017/9/27. // Copyright © 2017年 qxc122@126.com. All rights reserved. // #import <UIKit/UIKit.h> #import "HeaderAll.h" @interface UITextField (Add) - (instancetype)initWithColor:(unsigned long)color Alpha:(float)alpha Font:(NSInteger)font ROrM:(NSString *)rOrm; - (void)setWithColor:(unsigned long)color Alpha:(float)alpha Font:(NSInteger)font ROrM:(NSString *)rOrm; @end
#include <stdio.h> #include <stdlib.h> //Declares a new node struct node { int data; struct node *left; struct node *right; }; //Allocates a new node struct node* newNode(int data) { struct node* node = (struct node*)malloc(sizeof(struct node)); node -> data = data; node -> left = NULL; node -> right = NULL; return(node); } int main() { struct node *root = newNode(1); root -> left = newNode(2); root -> right = newNode(3); root -> left -> left = newNode(4); return 0; }
/* ** $Id: lvm.h,v 2.41 2016/12/22 13:08:50 roberto Exp $ ** Lua virtual machine ** See Copyright Notice in lua.h */ #ifndef lvm_h #define lvm_h #include "ldo.h" #include "lobject.h" #include "ltm.h" #if !defined(LUA_NOCVTN2S) #define cvt2str(o) ttisnumber(o) #else #define cvt2str(o) 0 /* no conversion from numbers to strings */ #endif #if !defined(LUA_NOCVTS2N) #define cvt2num(o) ttisstring(o) #else #define cvt2num(o) 0 /* no conversion from strings to numbers */ #endif /* ** You can define LUA_FLOORN2I if you want to convert floats to integers ** by flooring them (instead of raising an error if they are not ** integral values) */ #if !defined(LUA_FLOORN2I) #define LUA_FLOORN2I 0 #endif #define tonumber(o,n) \ (ttisfloat(o) ? (*(n) = fltvalue(o), 1) : luaV_tonumber_(o,n)) #define tointeger(o,i) \ (ttisinteger(o) ? (*(i) = ivalue(o), 1) : luaV_tointeger(o,i,LUA_FLOORN2I)) #define intop(op,v1,v2) l_castU2S(l_castS2U(v1) op l_castS2U(v2)) #define luaV_rawequalobj(t1,t2) luaV_equalobj(NULL,t1,t2) /* ** fast track for 'gettable': if 't' is a table and 't[k]' is not nil, ** return 1 with 'slot' pointing to 't[k]' (final result). Otherwise, ** return 0 (meaning it will have to check metamethod) with 'slot' ** pointing to a nil 't[k]' (if 't' is a table) or NULL (otherwise). ** 'f' is the raw get function to use. */ #define luaV_fastget(L,t,k,slot,f) \ (!ttistable(t) \ ? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \ : (slot = f(hvalue(t), k), /* else, do raw access */ \ !ttisnil(slot))) /* result not nil? */ /* ** standard implementation for 'gettable' */ #define luaV_gettable(L,t,k,v) { const TValue *slot; \ if (luaV_fastget(L,t,k,slot,luaH_get)) { setobj2s(L, v, slot); } \ else luaV_finishget(L,t,k,v,slot); } /* ** Fast track for set table. If 't' is a table and 't[k]' is not nil, ** call GC barrier, do a raw 't[k]=v', and return true; otherwise, ** return false with 'slot' equal to NULL (if 't' is not a table) or ** 'nil'. (This is needed by 'luaV_finishget'.) Note that, if the macro ** returns true, there is no need to 'invalidateTMcache', because the ** call is not creating a new entry. */ #define luaV_fastset(L,t,k,slot,f,v) \ (!ttistable(t) \ ? (slot = NULL, 0) \ : (slot = f(hvalue(t), k), \ ttisnil(slot) ? 0 \ : (luaC_barrierback(L, hvalue(t), v), \ setobj2t(L, cast(TValue *,slot), v), \ 1))) #define luaV_settable(L,t,k,v) { const TValue *slot; \ if (!luaV_fastset(L,t,k,slot,luaH_get,v)) \ luaV_finishset(L,t,k,v,slot); } LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2); LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r); LUAI_FUNC int luaV_tonumber_ (const TValue *obj, lua_Number *n); LUAI_FUNC int luaV_tointeger (const TValue *obj, lua_Integer *p, int mode); LUAI_FUNC void luaV_finishget (lua_State *L, const TValue *t, TValue *key, StkId val, const TValue *slot); LUAI_FUNC void luaV_finishset (lua_State *L, const TValue *t, TValue *key, StkId val, const TValue *slot); LUAI_FUNC void luaV_finishOp (lua_State *L); LUAI_FUNC void luaV_execute (lua_State *L); LUAI_FUNC void luaV_concat (lua_State *L, int total); LUAI_FUNC lua_Integer luaV_div (lua_State *L, lua_Integer x, lua_Integer y); LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y); LUAI_FUNC lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y); LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb); #endif
// // Created by hayashi311 on 11/10/13. // Copyright (c) 2013 IFTTT Inc. All rights reserved. // #import "IFTTTAnimation.h" @interface IFTTTTransformAnimation : IFTTTAnimation @end
// // INCatalogueViewController.h // InDoorNavigation // // Created by Roman Temchenko on 2015-11-14. // Copyright © 2015 Temkal. All rights reserved. // #import <UIKit/UIKit.h> #import "INCatalogueControllerDelegate.h" @class INCatalogue; @interface INCatalogueViewController : UIViewController <UITableViewDataSource, INCatalogueControllerDelegate> - (void)setCatalogue:(INCatalogue *)catalogue; @end
/** * This is a generated file. Do not edit or your changes will be lost */ @interface TiGeoloqiModuleAssets : NSObject { } - (NSData*) moduleAsset; @end
#import "MOBProjection.h" @interface MOBProjectionEPSG5802 : MOBProjection @end
/* * This file is part of the µOS++ distribution. * (https://github.com/micro-os-plus) * Copyright (c) 2015 Liviu Ionescu. * * 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 POSIX_IO_SYS_UIO_H_ #define POSIX_IO_SYS_UIO_H_ // ---------------------------------------------------------------------------- #include <unistd.h> #if defined(_POSIX_VERSION) #pragma GCC diagnostic push #if defined(__clang__) #pragma clang diagnostic ignored "-Wgnu-include-next" #endif #include_next <sys/uio.h> #pragma GCC diagnostic pop #else #include <sys/types.h> #ifdef __cplusplus extern "C" { #endif // ---------------------------------------------------------------------------- struct iovec { void* iov_base; // Base address of a memory region for input or output. size_t iov_len; // The size of the memory pointed to by iov_base. }; ssize_t writev (int fildes, const struct iovec* iov, int iovcnt); // ---------------------------------------------------------------------------- #ifdef __cplusplus } #endif #endif /* defined(_POSIX_VERSION) */ #endif /* POSIX_IO_SYS_UIO_H_ */
// // SwiftlyRater.h // SwiftlyRater // // Created by Gianluca Di Maggio on 1/2/17. // Copyright © 2017 dima. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for SwiftlyRater. FOUNDATION_EXPORT double SwiftlyRaterVersionNumber; //! Project version string for SwiftlyRater. FOUNDATION_EXPORT const unsigned char SwiftlyRaterVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <SwiftlyRater/PublicHeader.h>
#ifndef LINUXFFBEFFECT_H #define LINUXFFBEFFECT_H #include "ffbeffect.h" #include <linux/input.h> class LinuxFFBEffect : public FFBEffect { public: explicit LinuxFFBEffect(FFBEffectTypes type); virtual struct ff_effect* createFFStruct() = 0; inline int internalIdx() const { return m_internalIdx; } inline void setInternalIdx(int idx) { m_internalIdx = idx; } protected: struct ff_effect* createFFStruct(const std::shared_ptr<FFBEffectParameters> params); bool checkEnvelopeParameters(const int attackLength, const int attackLevel, const int fadeLength, const int fadeLevel); bool checkGenericParameters(const std::shared_ptr<FFBEffectParameters> params); private: int m_internalIdx; }; #endif // LINUXFFBEFFECT_H
#pragma once #include <cstdint> #include <si_app/pipeline/pipeline_base.h> #include <si_base/math/math_declare.h> namespace SI { namespace APP003 { class Pipeline : public PipelineBase { public: explicit Pipeline(int observerSortKey); virtual ~Pipeline(); int OnInitialize(const AppInitializeInfo&) override; int OnTerminate() override; void OnUpdate(const App& app, const AppUpdateInfo&) override; void OnRender(const App& app, const AppUpdateInfo&) override; int LoadAsset(const AppInitializeInfo& info); protected: struct IblLutShaderConstant; struct TextureShaderConstant; protected: GfxRootSignatureEx m_computeRootSignatures; GfxRootSignatureEx m_rootSignatures; GfxComputeState m_computeStates; GfxGraphicsState m_graphicsStates; GfxBufferEx_Constant m_iblLutConstantBuffers; GfxBufferEx_Constant m_constantBuffers; IblLutShaderConstant* m_iblLutConstant; TextureShaderConstant* m_textureConstant; GfxComputeShader m_iblLutCS; GfxVertexShader m_textureVS; GfxPixelShader m_texturePS; GfxBufferEx_Vertex m_quadVertexBuffer; GfxTestureEx_Uav m_iblLutTexture; GfxDynamicSampler m_sampler; }; } // namespace APP003 } // namespace SI
// // YPLeftMenuController.h // YPReusableController // // Created by MichaelPPP on 16/1/25. // Copyright © 2016年 tyiti. All rights reserved. // 侧滑菜单控制器 #import <UIKit/UIKit.h> @interface YPLeftMenuController : UIViewController @end
// // Countries.h // WorldCountries // // Created by Pablo Roberto Carrera Estrada on 11/30/13. // Copyright (c) 2013 Pablo Roberto Carrera Estrada. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class Continents; @interface Countries : NSManagedObject @property (nonatomic, retain) NSString * countryName; @property (nonatomic, retain) NSNumber * latitude; @property (nonatomic, retain) NSNumber * longitude; @property (nonatomic, retain) Continents *continents; @end
// // DLRCheckpointNavigationController.h // DLRCheckpointNavigationController // // Created by Nate Walczak on 2/6/15. // Copyright (c) 2015 Detroit Labs, LLC. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for DLRCheckpointNavigationController. FOUNDATION_EXPORT double DLRCheckpointNavigationControllerVersionNumber; //! Project version string for DLRCheckpointNavigationController. FOUNDATION_EXPORT const unsigned char DLRCheckpointNavigationControllerVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <DLRCheckpointNavigationController/PublicHeader.h>
#ifndef __BASE_SYS_INC_SERVERCONN_H__ #define __BASE_SYS_INC_SERVERCONN_H__ #include <cstdint> #include <cstddef> #include "connBase.h" namespace parrot { struct ConnConfig; class ProtocolBase; class ServerConn : public ConnBase { protected: enum class eConnState : uint8_t { None, Opened, Closing }; public: ServerConn(ProtocolBase* protocol, const ConnConfig* c) : ConnBase(protocol, c) { } ServerConn(const ServerConn&) = delete; ServerConn& operator=(const ServerConn&) = delete; ServerConn(ServerConn&&) = default; ServerConn& operator=(ServerConn&&) = default; virtual ~ServerConn() = default; public: virtual eConnAction onAccepted() = 0; virtual eCodes closeConn() = 0; }; } #endif
#include <ruby.h> #include <stdio.h> #include <math.h> #define _USE_MATH_DEFINES const double EARTH_RADIUS = 3958.75587; const double MILES_TO_METERS = 1609.344; const double MILES_TO_KM = 1.609344; const double MILES_TO_NAUTIC_MILES = 0.8684; const double DEGREES_TO_RADIANS = M_PI / 180; const double RADIANS_TO_DEGREES = 180 / M_PI; static inline double distance_milles(VALUE lat1, VALUE lon1, VALUE lat2, VALUE lon2, VALUE radius) { double latitude1, longitude1, latitude2, longitude2; double theta1, theta2; double phi1, phi2; double dist; double planet_radius; latitude1 = NUM2DBL(lat1); longitude1 = NUM2DBL(lon1); latitude2 = NUM2DBL(lat2); longitude2 = NUM2DBL(lon2); planet_radius = NUM2DBL(radius); // Si son iguales, ignorar. if(latitude1 == latitude2 && longitude1 == longitude2) return 0; // phi = 90 - latitude phi1 = (90.0 - latitude1)*DEGREES_TO_RADIANS; phi2 = (90.0 - latitude2)*DEGREES_TO_RADIANS; // theta = longitude theta1 = longitude1 * DEGREES_TO_RADIANS; theta2 = longitude2 * DEGREES_TO_RADIANS; // Computar la distancia esférica entre las coordinadas con la fórmula siguiente. dist = (sin(phi1) * sin(phi2) * cos(theta1 - theta2) + cos(phi1) * cos(phi2)); // Finalmente, calcular la distancia en la tierra. return acos( dist ) * planet_radius; } static VALUE geolocation_distance_miles(VALUE rb_class, VALUE lat1, VALUE lon1, VALUE lat2, VALUE lon2, VALUE radius) { return rb_float_new( distance_milles( lat1, lon1, lat2, lon2, radius ) ); } static VALUE geolocation_distance_m(VALUE rb_class, VALUE lat1, VALUE lon1, VALUE lat2, VALUE lon2, VALUE radius) { return rb_float_new( distance_milles( lat1, lon1, lat2, lon2, radius ) * MILES_TO_METERS); } static VALUE geolocation_distance_km(VALUE rb_class, VALUE lat1, VALUE lon1, VALUE lat2, VALUE lon2, VALUE radius) { return rb_float_new( distance_milles( lat1, lon1, lat2, lon2, radius ) * MILES_TO_KM); } static VALUE geolocation_distance_nautic_miles(VALUE rb_class, VALUE lat1, VALUE lon1, VALUE lat2, VALUE lon2, VALUE radius) { return rb_float_new( distance_milles( lat1, lon1, lat2, lon2, radius ) * MILES_TO_NAUTIC_MILES); }
// -*- c++ -*- // Generated by gmmproc 2.47.3.1 -- DO NOT MODIFY! #ifndef _ATKMM_TEXT_P_H #define _ATKMM_TEXT_P_H #include <glibmm/private/interface_p.h> namespace Atk { class Text_Class : public Glib::Interface_Class { public: typedef Text CppObjectType; typedef AtkText BaseObjectType; typedef AtkTextIface BaseClassType; typedef Glib::Interface_Class CppClassParent; friend class Text; const Glib::Interface_Class& init(); static void iface_init_function(void* g_iface, void* iface_data); static Glib::ObjectBase* wrap_new(GObject*); protected: //Callbacks (default signal handlers): //These will call the *_impl member methods, which will then call the existing default signal callbacks, if any. //You could prevent the original default signal handlers being called by overriding the *_impl method. static void text_changed_callback(AtkText* self, gint p0, gint p1); static void text_caret_moved_callback(AtkText* self, gint p0); static void text_selection_changed_callback(AtkText* self); static void text_attributes_changed_callback(AtkText* self); //Callbacks (virtual functions): static gchar* get_text_vfunc_callback(AtkText* self, gint start_offset, gint end_offset); static gunichar get_character_at_offset_vfunc_callback(AtkText* self, gint offset); static gchar* get_text_after_offset_vfunc_callback(AtkText* self, gint offset, AtkTextBoundary boundary_type, gint* start_offset, gint* end_offset); static gchar* get_text_at_offset_vfunc_callback(AtkText* self, gint offset, AtkTextBoundary boundary_type, gint* start_offset, gint* end_offset); static gchar* get_text_before_offset_vfunc_callback(AtkText* self, gint offset, AtkTextBoundary boundary_type, gint* start_offset, gint* end_offset); static gint get_caret_offset_vfunc_callback(AtkText* self); static void get_character_extents_vfunc_callback(AtkText* self, gint offset, gint* x, gint* y, gint* width, gint* height, AtkCoordType coords); static AtkAttributeSet* get_run_attributes_vfunc_callback(AtkText* self, gint offset, gint* start_offset, gint* end_offset); static AtkAttributeSet* get_default_attributes_vfunc_callback(AtkText* self); static gint get_character_count_vfunc_callback(AtkText* self); static gint get_offset_at_point_vfunc_callback(AtkText* self, gint x, gint y, AtkCoordType coords); static gint get_n_selections_vfunc_callback(AtkText* self); static gchar* get_selection_vfunc_callback(AtkText* self, gint selection_num, gint* start_offset, gint* end_offset); static gboolean add_selection_vfunc_callback(AtkText* self, gint start_offset, gint end_offset); static gboolean remove_selection_vfunc_callback(AtkText* self, gint selection_num); static gboolean set_selection_vfunc_callback(AtkText* self, gint selection_num, gint start_offset, gint end_offset); static gboolean set_caret_offset_vfunc_callback(AtkText* self, gint offset); }; } // namespace Atk #endif /* _ATKMM_TEXT_P_H */
#ifndef _SNF_HTTP_CMN_CHARSET_H_ #define _SNF_HTTP_CMN_CHARSET_H_ #include <cctype> namespace snf { namespace http { inline bool is_tchar(int c) noexcept { bool valid = false; if (std::isalpha(c) || std::isdigit(c)) { valid = true; } else { switch (c) { case '!': case '#': case '$': case '%': case '&': case '\'': case '*': case '+': case '-': case '.': case '^': case '_': case '`': case '|': case '~': valid = true; break; default: break; } } return valid; } inline bool is_vchar(int c) noexcept { return ((c >= 0x21) && (c <= 0x7E)); } inline bool is_whitespace(int c) noexcept { return ((c == ' ') || (c == '\t')); } inline bool is_opaque(int c) noexcept { return ((c >= 0x80) && (c <= 0xFF)); } /* * 0x21 - 0x7E * Excluded: * - 0x22 " * - 0x5C \ */ inline bool is_quoted(int c) noexcept { if (is_whitespace(c) || is_opaque(c)) return true; else if ((c == 0x21) || ((c >= 0x23) && (c <= 0x5B)) || ((c >= 0x5D) && (c <= 0x7E))) return true; return false; } /* * 0x21 - 0x7E * Excluded: * - 0x28 ( * - 0x29 ) * - 0x5C \ */ inline bool is_commented(int c) noexcept { if (is_whitespace(c) || is_opaque(c)) return true; else if (((c >= 0x21) && (c <= 0x27)) || ((c >= 0x2A) && (c <= 0x5B)) || ((c >= 0x5D) && (c <= 0x7E))) return true; return false; } inline bool is_escaped(int c) noexcept { return is_whitespace(c) || is_vchar(c) || is_opaque(c); } } // namespace http } // namespace snf #endif // _SNF_HTTP_CMN_CHARSET_H_
// // ReviewPushClient.h // Review Push For Business // // Created by Michael Orcutt on 7/29/15. // Copyright (c) 2015 ReviewPush. All rights reserved. // #import <AFNetworking/AFHTTPRequestOperationManager.h> #import <CoreLocation/CoreLocation.h> #import "Feedback.h" #import "RPLocation.h" @interface RPFeedbackClient : AFHTTPRequestOperationManager ///------------------------------------------------ /// @name Initialization ///------------------------------------------------ /** * +sharedClient is the applications client to * connect with the servers app wide. */ + (RPFeedbackClient *)sharedClientWithKey:(NSString *)key secret:(NSString *)secret; ///------------------------------------------------ /// @name Requests ///------------------------------------------------ /** * -POSTFeedback:completion: posts * the user review to ReviewPush servers. * * @required params: see docs * at http://developer.reviewpush.com/REST_API/Company_API/Feedback.html */ - (void)POSTFeedback:(Feedback *)review completion:(void (^)(BOOL success, Feedback *feedBack, NSDictionary *reviewSiteLinks, NSString *errorString))completionBlock; /** * -GETLocationsNearLocation:completion requests * all locations for this company near the supplied * location. If no location is supplied, all company * level locations will be returned. */ - (void)GETLocationsNearLocation:(CLLocation *)location completion:(void(^)(BOOL success, NSArray *locations, NSString *errorMessage))completionBlock; /** * -GETLocation:Completion: gets the * supplied location. The only * required property on location * is identifier. */ - (void)GETLocation:(RPLocation *)location completion:(void(^)(BOOL success, RPLocation *location, NSString *errorMessage))completionBlock; @end
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* parce_it.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: msymkany <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/04 20:19:16 by msymkany #+# #+# */ /* Updated: 2017/03/04 20:19:19 by msymkany ### ########.fr */ /* */ /* ************************************************************************** */ #include "libftprintf.h" int atoi_num(const char **fr) { int res; res = 0; if (**fr == '.') (*fr)++; while (FLAG_NUM(**fr)) { res = res * 10 + ((**fr) - '0'); (*fr)++; } --(*fr); return (res); } void parce_if_digit(char fr, t_magic *m) { if (FLAG_I(m->c) && (fr == '+' || fr == ' ')) { if (fr == ' ' && m->print[1] == 0) m->print[1] = ' '; else if (fr == '+') m->print[1] = '+'; } else if (fr == '#' && FLAG_X(m->c) && m->print[1] != '#') m->print[1] = '#'; } void clear_print(t_magic *m) { if (m->w > 0) m->print[0] = ' '; else if (m->w < 0) m->print[4] = ' '; if (FLAG_DIGIT(m->c) || FLAG_P(m->c)) { if (m->p > m->len) m->print[2] = '1'; else if (m->print[2] == '0' && m->p >= 0) m->print[2] = 0; } if (m->print[2] == '0') m->print[0] = 0; if (m->print[4] == ' ') { m->print[0] = 0; if (m->print[2] == '0') m->print[2] = 0; } if (FLAG_PER(m->c)) m->print[3] = '1'; else if (FLAG_P(m->c)) m->print[1] = '#'; } void get_precision(const char **fr, t_magic *m, va_list ap) { if (FLAG_NUM(*(*fr + 1))) m->p = atoi_num(fr); else if (*(*fr + 1) == '*') { m->p = va_arg(ap, int); (*fr)++; } else m->p = 0; } void parce_it(const char *fr, size_t l, t_magic *m, va_list ap) { const char *end; end = fr + l; while (fr != end) { if (FLAG_NUM(*fr) && *fr != '0') m->w = atoi_num(&fr); else if (*fr == '.') get_precision(&fr, m, ap); else if (*fr == '*') m->w = va_arg(ap, int); else if ((*fr == ' ' || *fr == '+' || *fr == '#') && FLAG_XI(m->c)) parce_if_digit(*fr, m); else if (*fr == '0' && m->print[2] != '0') m->print[2] = '0'; else if (*fr == '-' && m->print[4] != ' ') m->print[4] = ' '; fr++; } clear_print(m); }
#include "parse/scientificf.h" #include <stdint.h> typedef float Scalar; typedef uint32_t Bitset; #include "parse/float.h" float strtof(const char s[restrict static 1], char** restrict end) { return parsefloat_(s, end); }
#pragma once #include <string.h> // some forward declarations for cross includes class Network; class MemoryManager; class SyscallClient; class PerformanceModel; // FIXME: Move this out of here eventually class PinMemoryManager; #include "mem_component.h" #include "fixed_types.h" #include "config.h" #include "performance_model.h" #include "shmem_perf_model.h" #include "capi.h" #include "packet_type.h" #include "network.h" using namespace std; class Core { public: enum Status { RUNNING = 0, IDLE, NUM_STATES }; enum lock_signal_t { INVALID_LOCK_SIGNAL = 0, MIN_LOCK_SIGNAL, NONE = MIN_LOCK_SIGNAL, LOCK, UNLOCK, MAX_LOCK_SIGNAL = UNLOCK, NUM_LOCK_SIGNAL_TYPES = MAX_LOCK_SIGNAL - MIN_LOCK_SIGNAL + 1 }; enum mem_op_t { INVALID_MEM_OP = 0, MIN_MEM_OP, READ = MIN_MEM_OP, READ_EX, WRITE, MAX_MEM_OP = WRITE, NUM_MEM_OP_TYPES = MAX_MEM_OP - MIN_MEM_OP + 1 }; Core(core_id_t id); ~Core(); void outputSummary(std::ostream &os); // User Messages void sendMsg(core_id_t sender, core_id_t receiver, char *buffer, SInt32 size, carbon_network_t net_type); void recvMsg(core_id_t sender, core_id_t receiver, char *buffer, SInt32 size, carbon_network_t net_type); void __recvMsg(const NetPacket& packet); // Memory Access void initiateMemoryAccess(UInt64 time, UInt32 memory_access_id, MemComponent::component_t mem_component, lock_signal_t lock_signal, mem_op_t mem_op_type, IntPtr address, Byte* data_buffer, UInt32 bytes, bool modeled = false); void completeCacheAccess(UInt64 time, UInt32 memory_access_id); // network accessor since network is private int getId() { return m_core_id; } Network *getNetwork() { return m_network; } PerformanceModel *getPerformanceModel() { return m_performance_model; } MemoryManager *getMemoryManager() { return m_memory_manager; } PinMemoryManager *getPinMemoryManager() { return m_pin_memory_manager; } SyscallClient *getSyscallClient() { return m_syscall_client; } ShmemPerfModel* getShmemPerfModel() { return m_shmem_perf_model; } void updateInternalVariablesOnFrequencyChange(float frequency); void enablePerformanceModels(); void disablePerformanceModels(); // External Output Summary Callback typedef void (*OutputSummaryCallback)(void* callback_obj, ostream& out); void registerExternalOutputSummaryCallback(OutputSummaryCallback callback, void* callback_obj); void unregisterExternalOutputSummaryCallback(OutputSummaryCallback callback); private: class MemoryAccessStatus { public: MemoryAccessStatus(UInt32 access_id, UInt64 time, IntPtr address, UInt32 bytes, MemComponent::component_t mem_component, lock_signal_t lock_signal, mem_op_t mem_op_type, Byte* data_buffer, bool modeled) : _access_id(access_id) , _start_time(time) , _curr_time(time) , _start_address(address) , _curr_address(address) , _total_bytes(bytes) , _curr_bytes(0) , _bytes_remaining(bytes) , _mem_component(mem_component) , _lock_signal(lock_signal) , _mem_op_type(mem_op_type) , _data_buffer(data_buffer) , _modeled(modeled) {} ~MemoryAccessStatus() {} UInt32 _access_id; UInt64 _start_time; UInt64 _curr_time; IntPtr _start_address; IntPtr _curr_address; UInt32 _total_bytes; UInt32 _curr_bytes; UInt32 _bytes_remaining; MemComponent::component_t _mem_component; lock_signal_t _lock_signal; mem_op_t _mem_op_type; Byte* _data_buffer; bool _modeled; }; class RecvBuffer { public: RecvBuffer() : _buffer(NULL), _size(0) {} RecvBuffer(char* buffer, SInt32 size) : _buffer(buffer), _size(size) {} char* _buffer; SInt32 _size; }; core_id_t m_core_id; MemoryManager *m_memory_manager; PinMemoryManager *m_pin_memory_manager; Network *m_network; PerformanceModel *m_performance_model; SyscallClient *m_syscall_client; ShmemPerfModel* m_shmem_perf_model; // Memory Access Status std::map<UInt32, MemoryAccessStatus*> m_memory_access_status_map; // External Output Summary Callback OutputSummaryCallback m_external_output_summary_callback; void* m_external_callback_obj; // Recv Buffer RecvBuffer m_recv_buffer; PacketType getPktTypeFromUserNetType(carbon_network_t net_type); // Memory Access void continueMemoryAccess(MemoryAccessStatus& memory_access_status); void completeMemoryAccess(MemoryAccessStatus& memory_access_status); }; void coreRecvMsg(void* obj, NetPacket packet);
#ifndef __SETTINGS_H__ #define __SETTINGS_H__ #include "flags/FlagSingle.h" #include "flags/FlagsParser.h" #include "flags/FlagList.h" #include "flags/FlagNone.h" #include <string> class Settings { public: std::string input; std::string baseName; std::vector<int> xySlices; std::vector<int> xzSlices; std::vector<int> yzSlices; bool xyOutput; bool xzOutput; bool yzOutput; bool discard = false; Settings(int argc, char* argv[]) { FlagSingle<std::string> inputFlag("input", this->input); FlagSingle<std::string> outputFlag("output", this->baseName); FlagList<int> xySlicesFlag("xy", this->xySlices, true); FlagList<int> xzSlicesFlag("xz", this->xzSlices, true); FlagList<int> yzSlicesFlag("yz", this->yzSlices, true); FlagNone discardFlag("discard", this->discard); FlagsParser parser(argv[0]); parser.define_flag(&inputFlag); parser.define_flag(&outputFlag); parser.define_flag(&xySlicesFlag); parser.define_flag(&xzSlicesFlag); parser.define_flag(&yzSlicesFlag); parser.define_flag(&discardFlag); parser.parse_from_command_line(argc, argv); this->xyOutput = xySlicesFlag.is_set(); this->xzOutput = xzSlicesFlag.is_set(); this->yzOutput = yzSlicesFlag.is_set(); } }; #endif
#include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include <sstream> using namespace std; int main(int argc, char *argv[], char *envp[]){ int fd[2], result; size_t size; char resstring[14]; string str; if(pipe(fd) < 0){ printf("Can\'t create pipe\n"); exit(-1); } str=to_string(fd[0]); const char *des=str.c_str(); result = fork(); if(result <0){ printf("Can\'t fork child\n"); exit(-1); } else if (result > 0) { close(fd[0]); size = write(fd[1], "Hello, world!", 14); if(size != 14){ printf("Can\'t write all string\n"); exit(-1); } close(fd[1]); printf("Parent exit\n"); } else { close(fd[1)]; execlp("/home/vladicka/OS_security_progs/Lab2/temp_prog", "/home/vladicka/OS_security_progs/Lab2/temp_prog", des); } return 0; }
// // cdefs.h // Firedrake // // Created by Sidney Just // Copyright (c) 2014 by Sidney Just // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without 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 _SYS_CDEFS_H_ #define _SYS_CDEFS_H_ #define __unused __attribute__((unused)) #define __used __attribute__((used)) #define __deprecated __attribute__((deprecated)) #define __unavailable __attribute__((unavailable)) #define __inline inline __attribute__((__always_inline__)) #define __noinline __attribute__((noinline)) #define __expect_true(x) __builtin_expect(!!(x), 1) #define __expect_false(x) __builtin_expect(!!(x), 0) #ifdef __cplusplus #define __BEGIN_DECLS extern "C" { #define __END_DECLS } #else #define __BEGIN_DECLS #define __END_DECLS #endif #endif /* _SYS_CDEFS_H_ */
#ifndef BULLETDEBUGGER_H #define BULLETDEBUGGER_H #include "LinearMath/btIDebugDraw.h" #include "nau/scene/iScene.h" #include "nau/material/iBuffer.h" namespace nau { namespace world { class BulletDebugger : public btIDebugDraw { int m_debugMode; private: nau::scene::IScene *scene; nau::material::IBuffer* debugPositions; std::vector<float>* points; public: BulletDebugger(nau::scene::IScene* scene, nau::material::IBuffer* debugPositions) { this->scene = scene; this->debugPositions = debugPositions; this->points = new std::vector<float>(); }; ~BulletDebugger(void) { this->scene = NULL; this->debugPositions = NULL; free(this->points); this->points = NULL; }; virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& fromColor, const btVector3& toColor); virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& color); //virtual void drawSphere(const btVector3& p, btScalar radius, const btVector3& color); //virtual void drawTriangle(const btVector3& a, const btVector3& b, const btVector3& c, const btVector3& color, btScalar alpha); virtual void drawContactPoint(const btVector3& PointOnB, const btVector3& normalOnB, btScalar distance, int lifeTime, const btVector3& color); virtual void reportErrorWarning(const char* warningString); virtual void draw3dText(const btVector3& location, const char* textString); virtual void setDebugMode(int debugMode); virtual int getDebugMode() const { return m_debugMode; } void compilePoints(void); void clearPoints(void); }; }; }; #endif
///////////////////////////////////////////////////////////////////////////// // Name: font.h // Purpose: wxFont class // Author: Julian Smart // Modified by: // Created: 01/02/97 // RCS-ID: $Id: font.h,v 1.6 2005/01/27 10:57:10 SC Exp $ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_FONT_H_ #define _WX_FONT_H_ #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "font.h" #endif // ---------------------------------------------------------------------------- // wxFont // ---------------------------------------------------------------------------- class WXDLLEXPORT wxFont : public wxFontBase { public: // ctors and such wxFont() { Init(); } wxFont(const wxFont& font) : wxFontBase() { Init(); Ref(font); } wxFont(int size, int family, int style, int weight, bool underlined = FALSE, const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT) { Init(); (void)Create(size, family, style, weight, underlined, face, encoding); } wxFont(const wxNativeFontInfo& info) { Init(); (void)Create(info); } wxFont(const wxString& fontDesc); bool Create(int size, int family, int style, int weight, bool underlined = FALSE, const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT); bool Create(const wxNativeFontInfo& info); bool MacCreateThemeFont( wxUint16 themeFontID ) ; virtual ~wxFont(); // assignment wxFont& operator=(const wxFont& font); // implement base class pure virtuals virtual int GetPointSize() const; virtual int GetFamily() const; virtual int GetStyle() const; virtual int GetWeight() const; virtual bool GetUnderlined() const; virtual wxString GetFaceName() const; virtual wxFontEncoding GetEncoding() const; virtual const wxNativeFontInfo *GetNativeFontInfo() const; virtual void SetPointSize(int pointSize); virtual void SetFamily(int family); virtual void SetStyle(int style); virtual void SetWeight(int weight); virtual void SetFaceName(const wxString& faceName); virtual void SetUnderlined(bool underlined); virtual void SetEncoding(wxFontEncoding encoding); // implementation only from now on // ------------------------------- virtual bool RealizeResource(); // Unofficial API, don't use virtual void SetNoAntiAliasing( bool noAA = TRUE ) ; virtual bool GetNoAntiAliasing() const ; // Mac-specific, risks to change, don't use in portable code // 'old' Quickdraw accessors short MacGetFontNum() const; short MacGetFontSize() const; wxByte MacGetFontStyle() const; // 'new' ATSUI accessors wxUint32 MacGetATSUFontID() const; wxUint32 MacGetATSUAdditionalQDStyles() const; wxUint16 MacGetThemeFontID() const ; // Returns an ATSUStyle not ATSUStyle* void* MacGetATSUStyle() const ; protected: // common part of all ctors void Init(); void Unshare(); private: DECLARE_DYNAMIC_CLASS(wxFont) }; #endif // _WX_FONT_H_
#import <Foundation/Foundation.h> #ifdef __cplusplus extern "C" { #endif id UDObject(NSString *key); NSInteger UDInt(NSString *key); BOOL UDBool(NSString *key); float UDFloat(NSString *key); NSString *UDString(NSString *key); NSData *UDData(NSString *key); NSArray *UDArray(NSString *key); NSDictionary *UDDictionary(NSString *key); NSArray *UDStringArray(NSString *key); id UDObjectWithDefault(NSString *key, id object); NSInteger UDIntWithDefault(NSString *key, int i); BOOL UDBoolWithDefault(NSString *key, BOOL b); float UDFloatWithDefault(NSString *key, float f); NSString *UDStringWithDefault(NSString *key, NSString *string); NSData *UDDataWithDefault(NSString *key, NSData *data); NSArray *UDArrayWithDefault(NSString *key, NSArray *array); NSDictionary *UDDictionaryWithDefault(NSString *key, NSDictionary *dictionary); NSArray *UDStringArrayWithDefault(NSString *key, NSArray *stringArray); void UDSetObject(id object, NSString *key); void UDSetInt(NSInteger i, NSString *key); void UDSetBool(BOOL b, NSString *key); void UDSetFloat(float f, NSString *key); void UDSetString(NSString *string, NSString *key); void UDSetData(NSData *data, NSString *key); void UDSetArray(NSArray *array, NSString *key); void UDSetDictionary(NSDictionary *dictionary, NSString *key); void UDSetStringArray(NSArray *stringArray, NSString *key); id UDConstObject(NSString *key); int UDConstInteger(NSString *key); BOOL UDConstBool(NSString *key); float UDConstFloat(NSString *key); NSString *UDConstString(NSString *key); NSData *UDConstData(NSString *key); NSArray *UDConstArray(NSString *key); NSDictionary *UDConstDictionary(NSString *key); NSArray *UDConstStringArray(NSString *key); #ifdef __cplusplus } #endif
#pragma once #include <Frontier.h> #include "Action.h" #include <queue> NS_FT_BEGIN class ActionSequence : public Action { public: ActionSequence(); virtual ~ActionSequence(); void addAction(std::unique_ptr<Action>&& action); virtual void onStart(Node* node) override; virtual void onUpdate(Node* node, const UpdateEvent& event) override; protected: std::vector<std::unique_ptr<Action>> actions_; size_t action_index_; }; NS_FT_END
/* * Copyright (C) 2007-2013 Gil Mendes * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /** * @file * @brief Find characters in string function. */ #include <string.h> /** Find characters in a string. * @param s Pointer to the string to search in. * @param accept Array of characters to search for. * @return Pointer to character found, or NULL if none found. */ char *strpbrk(const char *s, const char *accept) { const char *c = NULL; if(!*s) return NULL; while(*s) { for(c = accept; *c; c++) { if(*s == *c) break; } if(*c) break; s++; } return (*c == 0) ? NULL : (char *)s; }
// // LLAppDelegate.h // LLRoundSwitchDemo // // Created by Daniel Giralte on 12/5/11. // Copyright (c) 2011 none. All rights reserved. // #import <UIKit/UIKit.h> @class LLRoundSwitchDemoViewController; @interface LLRoundSwitchDemoAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) LLRoundSwitchDemoViewController *viewController; @end
#pragma once class ChannelBlock { public: ChannelBlock():_width(0), _height(0) {} ChannelBlock(std::string& name, uint32_t w, uint32_t h) : _name(name), _width(w), _height(h) { } std::string name() const { return _name; } uint32_t width() const { return _width; } uint32_t height() const { return _height; } private: std::string _name; uint32_t _width; uint32_t _height; }; class Config { public: virtual ~Config(){} static std::shared_ptr<Config> open(); virtual std::vector<std::shared_ptr<ChannelBlock const>> const& channels()=0; virtual std::shared_ptr<ChannelBlock const> getChannel(std::string const&)=0; protected: Config(){} };
// // XFWeiboUserInterfacePort.h // XFLegoVIPERExample // // Created by Yizzuide on 2016/10/27. // Copyright © 2016年 Yizzuide. All rights reserved. // #import <Foundation/Foundation.h> #import "XFUserInterfacePort.h" @protocol XFWeiboUserInterfacePort <XFUserInterfacePort> @end
/** * tcpkit -- toolkit to analyze tcp packet * Copyright (C) 2018 @git-hulk * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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. * **/ #ifndef TCPKIT_HASHTABLE_H #define TCPKIT_HASHTABLE_H typedef struct entry { char *key; void *value; struct entry *next; } entry; typedef struct hashtable { int nbucket; entry **buckets; void (*free)(void *); } hashtable; hashtable *hashtable_create(int nbucket); void hashtable_destroy(hashtable *ht); void *hashtable_get(hashtable *ht, char *key); void *hashtable_add(hashtable *ht, char *key, void *value); int hashtable_del(hashtable *ht, char *key); void **hashtable_values(hashtable *ht, int *cnt); #endif
// // MCKeyValueDisplayCell.h // mapcache-ios // // Created by Tyler Burgett on 4/20/20. // Copyright © 2020 NGA. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface MCKeyValueDisplayCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *keyLabel; @property (weak, nonatomic) IBOutlet UILabel *valueLabel; - (void)setKeyLabelText:(NSString *)text; - (void)setValueLabelText:(NSString *)text; @end NS_ASSUME_NONNULL_END
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "UISlider.h" @class NSMutableArray, UIView; @interface EmoticonBoardSliderView : UISlider { NSMutableArray *m_dotLayers; UIView *m_trackView; _Bool m_isTrackMode; unsigned long long m_countOfDots; _Bool m_trackHighlighted; _Bool _hidesForSinglePage; double _maxWidth; } @property(nonatomic) double maxWidth; // @synthesize maxWidth=_maxWidth; @property(nonatomic) _Bool hidesForSinglePage; // @synthesize hidesForSinglePage=_hidesForSinglePage; - (void).cxx_destruct; - (void)touchesCancelled:(id)arg1 withEvent:(id)arg2; - (void)touchesEnded:(id)arg1 withEvent:(id)arg2; - (_Bool)beginTrackingWithTouch:(id)arg1 withEvent:(id)arg2; - (void)updateSliderViewTrack; - (void)setTrackHighlighted:(_Bool)arg1; - (void)onTouchFinished; - (void)setHighlighted:(_Bool)arg1; - (struct CGRect)thumbRectForBounds:(struct CGRect)arg1 trackRect:(struct CGRect)arg2 value:(float)arg3; - (id)initWithFrame:(struct CGRect)arg1; @end
#ifndef __PROJECT_CHAT_BACKSRV_INC_BACKSRVCONFIG_H__ #define __PROJECT_CHAT_BACKSRV_INC_BACKSRVCONFIG_H__ #include "config.h" namespace chat { struct BackSrvConfig : public parrot::Config { uint32_t _logicThreadPoolSize = 1; }; } #endif
// // AppDelegate.h // LGPhotoBrowser // // Created by ligang on 15/10/27. // Copyright (c) 2015年 L&G. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // EMErrorHelper.h // ProtoComicApp // // Created by Doug Banks on 5/9/14. // Copyright (c) 2014 Luca Prasso Edmodo. All rights reserved. // #import <Foundation/Foundation.h> #import "EMBlockTypes.h" @interface EMErrorHelper : NSObject // Wrapper function: make an NSError with given string and custom domain. +(void) callErrorHandler:(EMNSErrorBlock_t) errorHandler withMessage:(NSString*) errorMessage; +(NSError *) makeErrorWithMessage:(NSString *)errorMessage; @end
/** * $Id$ * * Software License Agreement (GNU General Public License) * * Copyright (C) 2015: * * Johann Prankl, prankl@acin.tuwien.ac.at * Aitor Aldoma, aldoma@acin.tuwien.ac.at * * Automation and Control Institute * Vienna University of Technology * Gusshausstraße 25-29 * 1170 Vienn, Austria * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program 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 * along with this program. If not, see <http://www.gnu.org/licenses/>. * * @author Johann Prankl, Aitor Aldoma * */ #ifndef KP_KEYPOINT_POSE_DETECTOR_RT_HH #define KP_KEYPOINT_POSE_DETECTOR_RT_HH #include <stdio.h> #include <string> #include <stdexcept> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <Eigen/Dense> #include <v4r/common/impl/SmartPtr.hpp> #include <v4r/features/FeatureDetectorHeaders.h> #include <v4r/keypoints/RigidTransformationRANSAC.h> #include <v4r/common/impl/DataMatrix2D.hpp> #include <v4r/keypoints/impl/Object.hpp> namespace v4r { /** * KeypointPoseDetectorRT */ class KeypointPoseDetectorRT { public: class Parameter { public: float nnr; bool compute_global_pose; RigidTransformationRANSAC::Parameter rt_param; // 0.01 (slam: 0.03) Parameter(float _nnr=.9, bool _compute_global_pose=true, const RigidTransformationRANSAC::Parameter &_rt_param=RigidTransformationRANSAC::Parameter(0.01)) : nnr(_nnr), compute_global_pose(_compute_global_pose), rt_param(_rt_param) {} }; private: Parameter param; cv::Mat_<unsigned char> im_gray; cv::Mat descs; std::vector<cv::KeyPoint> keys; std::vector< std::vector<cv::DMatch> > matches; std::vector< Eigen::Vector3f > query_pts; std::vector< Eigen::Vector3f > model_pts; std::vector< int> inliers; ObjectView::Ptr model; //cv::Ptr<cv::BFMatcher> matcher; cv::Ptr<cv::DescriptorMatcher> matcher; RigidTransformationRANSAC::Ptr rt; v4r::FeatureDetector::Ptr detector; v4r::FeatureDetector::Ptr descEstimator; public: cv::Mat dbg; KeypointPoseDetectorRT(const Parameter &p=Parameter(), const v4r::FeatureDetector::Ptr &_detector=v4r::FeatureDetector::Ptr(), const v4r::FeatureDetector::Ptr &_descEstimator=new v4r::FeatureDetector_KD_FAST_IMGD(v4r::FeatureDetector_KD_FAST_IMGD::Parameter(1000, 1.44, 2, 17))); ~KeypointPoseDetectorRT(); double detect(const cv::Mat &image, const v4r::DataMatrix2D<Eigen::Vector3f> &cloud, Eigen::Matrix4f &pose); void setModel(const ObjectView::Ptr &_model); typedef SmartPtr< ::v4r::KeypointPoseDetectorRT> Ptr; typedef SmartPtr< ::v4r::KeypointPoseDetectorRT const> ConstPtr; }; /***************************** inline methods *******************************/ } //--END-- #endif
// // UIViewController+WLRRoute.h // Pods // // Created by Neo on 2016/12/16. // // #import <UIKit/UIKit.h> @class WLRRouteRequest; @interface UIViewController (WLRRoute) @property(nonatomic,strong)WLRRouteRequest * wlr_request; @end
// // JDAmuseViewCell.h // 百思不得姐 // // Created by helangxin on 16/4/29. // Copyright © 2016年 helangxin. All rights reserved. // #import <UIKit/UIKit.h> #import "JDAmuseModel.h" @interface JDAmuseViewCell : UITableViewCell /** 模型 */ @property (nonatomic, strong) JDAmuseModel *amuseModel; @end
// SceneData.h #pragma once #include <memory> #include <unordered_map> #include <Core/Memory/Buffers/MultiStackBuffer.h> #include "Component.h" #include "Node.h" #include "SceneMod.h" #include "Lightmap.h" namespace sge { struct SGE_ENGINE_API SceneData { //////////////////////// /// Constructors /// public: SceneData() : new_node_channel(sizeof(ENewNode), 32), destroyed_node_channel(sizeof(EDestroyedNode), 32), node_local_transform_changed_channel(sizeof(ENodeTransformChanged), 32), node_world_transform_changed_channel(sizeof(ENodeTransformChanged), 32), node_root_changed_channel(sizeof(ENodeRootChangd), 32) { } SceneData(const SceneData& copy) = delete; SceneData& operator=(const SceneData& copy) = delete; SceneData(SceneData&& move) = delete; SceneData& operator=(SceneData&& move) = delete; ////////////////// /// Fields /// public: /* Component Data */ std::unordered_map<const TypeInfo*, std::unique_ptr<ComponentContainer>> components; /* Node data */ NodeId next_node_id = NodeId{ 1 }; MultiStackBuffer node_buffer; std::vector<void*> free_buffs; std::map<NodeId, Node*> nodes; std::vector<NodeId> root_nodes; /* Scene modification data */ std::vector<NodeRootMod> system_node_root_changes; // All nodes that had their roots modified during this system frame std::vector<NodeLocalTransformMod> system_node_local_transform_changes; // All nodes that had their transform modified during this system frame std::vector<Node*> system_new_nodes; // All nodes that were created during this system frame std::vector<Node*> system_destroyed_nodes; // All nodes that were destroyed during this system frame std::vector<Node*> update_modified_nodes; // All nodes that had their mod_state modified this update frame std::vector<NodeId> update_destroyed_nodes; // All nodes that were destroyed this update frame /* Node event channels */ EventChannel new_node_channel; EventChannel destroyed_node_channel; EventChannel node_local_transform_changed_channel; EventChannel node_world_transform_changed_channel; EventChannel node_root_changed_channel; /* Lightmap data */ std::string lightmap_data_path; /* Fading data */ float scene_gamma = 2.2f; float scene_brightness_boost = 0.f; }; }
#ifndef PREPROCESSORSTATISTICS_H #define PREPROCESSORSTATISTICS_H class cPreProcessorStatisticsDummy : public IPreProcessorStatistics { public: void AddInclude(const char* strInclude, const cFileInfo& FileInfo){}; void AddDefine(const char* strDefine, const cFileInfo& FileInfo){}; void UseDefine(const char* strDefine, const cFileInfo& FileInfo){}; void AddSource(const char* strLine, const cFileInfo& FileInfo){}; }; #endif
#include <stdlib.h> #include <stdint.h> #include <assert.h> #include "nlr.h" #include "misc.h" #include "mpconfig.h" #include "obj.h" #include "runtime.h" typedef struct _mp_obj_cell_t { mp_obj_base_t base; mp_obj_t obj; } mp_obj_cell_t; mp_obj_t mp_obj_cell_get(mp_obj_t self_in) { mp_obj_cell_t *self = self_in; return self->obj; } void mp_obj_cell_set(mp_obj_t self_in, mp_obj_t obj) { mp_obj_cell_t *self = self_in; self->obj = obj; } const mp_obj_type_t cell_type = { { &mp_const_type }, "cell", }; mp_obj_t mp_obj_new_cell(mp_obj_t obj) { mp_obj_cell_t *o = m_new_obj(mp_obj_cell_t); o->base.type = &cell_type; o->obj = obj; return o; }
/** * \file arcade.h * A single header that can include the entire project */ #include "geom.h" #include "graphics.h" #include "input.h" #include "simulation.h" #include "sound.h" #undef main
// // LabeledCollectionUtil.h // CollectionLayoutTest // // Created by kura on 2015/08/31. // Copyright (c) 2015年 kura. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @class SectionIndexView; @interface LabeledCollectionUtil : NSObject @property (nonatomic, assign) CGFloat paddingTop; // default 50 @property (nonatomic, assign) CGFloat paddingBottom; // default 50 @property (nonatomic, assign) CGFloat marginOfLine; // default 30 @property (nonatomic, assign) CGFloat sectionLabelHeight; // default 30 @property (nonatomic, assign) CGFloat dividerViewHeight; // default 10 @property (nonatomic, assign) CGFloat basicCellHeight; // default 150 @property (nonatomic, assign) Class dividerViewClass; @property (nonatomic, weak) SectionIndexView *sectionIndexView; - (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout; #pragma mark - 委譲用メソッド - (void)prepareLayout; - (CGSize)collectionViewContentSize; - (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect; - (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath; - (UICollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath; - (UICollectionViewLayoutAttributes *)layoutAttributesForDecorationViewOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath; - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds; @end
#ifndef CoatingBSDFOverride_H #define CoatingBSDFOverride_H //- // =========================================================================== // Copyright 2012 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== //+ // // This is the MPxSurfaceShadingNodeOverride implementation to go along with // the node defined in CoatingBSDF.cpp. This provides draw support in // Viewport 2.0. // #include <maya/MPxSurfaceShadingNodeOverride.h> class CoatingBSDFOverride : public MHWRender::MPxSurfaceShadingNodeOverride { public: static MHWRender::MPxSurfaceShadingNodeOverride* creator(const MObject& obj); virtual ~CoatingBSDFOverride(); virtual MHWRender::DrawAPI supportedDrawAPIs() const; virtual MString fragmentName() const; virtual void getCustomMappings( MHWRender::MAttributeParameterMappingList& mappings); virtual MString primaryColorParameter() const; virtual MString transparencyParameter() const; virtual MString bumpAttribute() const; private: CoatingBSDFOverride(const MObject& obj); }; #endif // _CoatingBSDFOverride
//AtCoder Regular 22 B #include <stdio.h> #include <stdlib.h> void clear_array( char *array , int length ){ int i; for( i = 0; i < length; i++ ) array[i] = 0; } int main( void ){ int i; int j; int cursor = 0; int num; int taste_long = 0; int longest = 0; char buf[2048]; char tmp[10]; fscanf( stdin , "%d\n" , &num ); //fscanf( stdin , "%s" , buf ); fgets( buf , 2048 , stdin ); //printf( "%s\n" , buf ); int *taste = (int*)malloc( sizeof(int) * num ); char *hash = (char*)malloc( sizeof(char) * num ); for( i = 0; i < num * 2 - 1; ){ clear_array( tmp , 10 ); for( j = 0; j < 10; j++ ){ if( buf[i] == '\0' || buf[i] == ' ' ){ i++; break; } else{ tmp[j] = buf[i]; i++; } } taste[cursor] = atoi(tmp); cursor++; } //printf( "%d,%d\n",taste[0],taste[1] ); for( i = 0; i < num; i++ ){ clear_array( hash , num ); taste_long = 0; for( j = i; j < num; j++ ){ if( hash[ taste[j] ] == 0 ){ hash[ taste[j] ] = 1; taste_long++; } else{ break; } } if( longest <= taste_long ){ longest = taste_long; } } printf( "%d\n" , longest ); free( taste ); free( hash ); return 0; }
// // NSData+Bigendian.h // Ase2Clr // // Created by Ramon Poca on 12/02/14. // Copyright (c) 2014 Ramon Poca. All rights reserved. // #import <Foundation/Foundation.h> @interface NSData (Bigendian) - (UInt16) bigEndianUInt16; - (UInt32) bigEndianUInt32; - (Float32) bigEndianFloat32; + (NSData *) float32SwappedToNetwork: (Float32) f; @end
/* write.h * * This is the main package file. Include this file in other projects. * Only modify inside the header-end and body-end sections. */ #ifndef WRITE_H #define WRITE_H #include <corto/corto.h> #include <corto/corto.h> #include <include/_project.h> #include <corto/c/c.h> /* $header() */ /* Enter additional code here. */ /* $end */ #include <include/_type.h> #include <include/_interface.h> #include <include/_load.h> #include <include/_api.h> /* $body() */ /* Enter code that requires types here */ /* $end */ #endif
// // OEBaseViewController.h // OpinionExplorer // // Created by Andrii Bugaiov on 2015-01-05. // Copyright (c) 2015 MyCompany. All rights reserved. // #import <UIKit/UIKit.h> @interface OEBaseViewController : UIViewController @end
#include <stdio.h> #define C 30 #define L 23 void print_maze (char maze[L][C]) { int i, j,k; printf(" "); for (i=0; i<C; i++) { if (i < 10) { printf(" %d ", i); }else { printf("%d ", i); } } printf("\n"); k = 0; for ( i = 0; i < L; i++ ) { if (k < 10) { printf("%d ", k++); }else { printf("%d ", k++); } for ( j = 0; j < C; j++ ) { switch (maze[i][j]) { case '0': printf("ꗞꗞꗞ"); break; case '7': printf(" "); break; case '6': printf(" "); break; case '3': printf(" G "); break; case '5': printf(" P "); break; case '4': printf(" R "); break; case '8': printf(" T "); break; case ' ': printf(" "); break; } } printf ( "\n" ); } // printf ( "\n" ); // printf ( "\n" ); //for ( i = 0; i < L; i++ ) // { // for ( j = 0; j < C; j++ ) // { // printf("%c", maze[i][j] ); // } // printf ( "\n" ); // } }
// // BtnViewController.h // TongDaoShow // // Created by bin jin on 5/12/15. // Copyright (c) 2015 Tongdao. All rights reserved. // #import <UIKit/UIKit.h> #import "BaseViewController.h" #import "TransferBean.h" typedef void (^AddBtnBlock)(TransferBean* bean); @interface BtnViewController : UIViewController @property (nonatomic, copy) AddBtnBlock addBtnBlock; @end
#include "../../src/animation/panimationmanager.h"
/*The MIT License (MIT) Copyright (c) Baptiste Burles, Evotion SAS, 2015 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 EvRobot_localeventsystem_h #define EvRobot_localeventsystem_h #define CONNECTION_EVENT_LOCAL_PORT 21789 #define CONNECTION_EVENT_REMOTE_PORT 21788 /** A local event system that can be extended on the local network * */ class LocalEventSystem : public EventSystem { public: LocalEventSystem(); // Set the remote address of a remote event system void setRemoteAddress(const IpAddress * address); // Start the event system on the network void startListenOnNetwork(); // Start the event system on the computer void start(); void update(); void stop(); void post(const EventId id, uint32_t data); void post(const EventId id, float data); void post(const EventId id, int32_t data); private: bool mStopThread; Thread mThread; UdpConnection * mConnection; uint8_t * mBuffer; ByteStream * mStream; IpAddress mLocalIp; IpAddress mRemoteIp; void dispatchLoop(UdpConnection * connection, uint16_t port); void sendEvent(const EventId id, EventDataType type, uint32_t data); static void * privateThreadLauncher(void * p); void threadRemote(void); static void * privateThreadRemoteLauncher(void *p); }; #endif
#ifndef PERFT__H_ #define PERFT__H_ #include <stdint.h> #include "move.h" #include "position.h" extern int perft_test(const struct position *restrict pos, int depth, uint64_t *nodes, uint64_t *captures, uint64_t *eps, uint64_t *castles, uint64_t *promos, uint64_t *checks, uint64_t *mates); extern uint64_t perft_speed(struct position *restrict pos, int depth); extern void perft_text_tree(struct position *restrict pos, int depth); #endif // PERFT__H_
// // iService.h // iService // // Created by jzaczek on 19.12.2015. // Copyright © 2015 jzaczek. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for iService. FOUNDATION_EXPORT double iServiceVersionNumber; //! Project version string for iService. FOUNDATION_EXPORT const unsigned char iServiceVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <iService/PublicHeader.h>
/* ---------------------------------------- * Author: Sandeep Kalra * License: MIT License. * Copyright(c) 2013 Sandeep.Kalra@gmail.com */ #ifndef __PHONEBOOK_H_ #define __PHONEBOOK_H_ #include <iostream> #include <map> #include <string> using namespace std; // ref: http://www.gotw.ca/gotw/029.htm struct ci_char_traits : public char_traits<char> // just inherit all the other functions // that we don't need to override { static bool eq(char c1, char c2) { return toupper(c1) == toupper(c2); } static bool ne(char c1, char c2) { return toupper(c1) != toupper(c2); } static bool lt(char c1, char c2) { return toupper(c1) < toupper(c2); } static int compare(const char* s1, const char* s2, size_t n) { return _memicmp(s1, s2, n); // Linux: memicmp ; Windows: _memicmp } static const char* find(const char* s, int n, char a) { while (n-- > 0 && toupper(*s) != toupper(a)) { ++s; } return s; } }; // this class does case-insensitive comparision typedef basic_string <char, ci_char_traits> String; //Note: This class is not thread-safe! class CPhonebook { map<String, String> entry; bool overwrite_on_insert = false; bool size_unlimited = false; int max_sz = 100; CPhonebook() = default; public: ~CPhonebook() { entry.erase(begin(entry), end(entry)); } CPhonebook(const CPhonebook&) = delete; // no copy allowed; CPhonebook(CPhonebook&&) = delete; // no move allowed; static CPhonebook& GetInstance() { static CPhonebook instance; return instance; } void SetPolicies(bool v_overwrite_on_insert = false, bool v_size_unlimited = false, int v_max_sz=100) { // This function must be called at the start of usage of the CPhonebook, else may result in errors. overwrite_on_insert = v_overwrite_on_insert; size_unlimited = v_size_unlimited; if (!size_unlimited) max_sz = v_max_sz; } bool Insert (const String &name, const String &phone_or_uri) { auto i = entry.find(name); if (overwrite_on_insert && i != entry.end() /* valid entry found */) { i->second = phone_or_uri; return true; } else if (i == entry.end()) { if (!size_unlimited && entry.size() >= max_sz) return false; //full entry.insert(pair<String, String>(name, phone_or_uri)); return true; } else return false; } bool Delete (const String &name) { auto i = entry.find(name); if (i == entry.end()) return false; else entry.erase(i); return true; } bool lkup(bool by_name, const String &search, String &answer) { for (auto i = entry.begin(); i != entry.end(); ++i) { if (by_name && i->first == search) { answer = i->second; return true; } else if (!by_name && i->second == search) { answer = i->first; return true; } } return false; } }; #endif
// // InstagramDataModel.h // DemoApp // // Created by Bilal Arslan on 18/06/15. // Copyright (c) 2015 Bilal Arslan. All rights reserved. // #import "JSONModel.h" #import "DataModel.h" #import "PaginationModel.h" @interface InstagramDataModel : JSONModel @property(strong, nonatomic) NSArray<DataModel> *data; @end
<<<<<<< HEAD // Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. ======= /* * Qt4 bitcoin GUI. * * W.J. van der Laan 2011-2012 * The Bitcoin Developers 2011-2013 */ >>>>>>> Committing original src/qt #ifndef WALLETVIEW_H #define WALLETVIEW_H #include <QStackedWidget> class BitcoinGUI; class ClientModel; <<<<<<< HEAD class OverviewPage; class ReceiveCoinsDialog; class SendCoinsDialog; class SendCoinsRecipient; class TransactionView; class WalletModel; QT_BEGIN_NAMESPACE ======= class WalletModel; class TransactionView; class OverviewPage; class AddressBookPage; class SendCoinsDialog; class SignVerifyMessageDialog; class RPCConsole; QT_BEGIN_NAMESPACE class QLabel; >>>>>>> Committing original src/qt class QModelIndex; QT_END_NAMESPACE /* WalletView class. This class represents the view to a single wallet. It was added to support multiple wallet functionality. Each wallet gets its own WalletView instance. It communicates with both the client and the wallet models to give the user an up-to-date view of the current core state. */ class WalletView : public QStackedWidget { Q_OBJECT public: <<<<<<< HEAD explicit WalletView(QWidget *parent); ======= explicit WalletView(QWidget *parent, BitcoinGUI *_gui); >>>>>>> Committing original src/qt ~WalletView(); void setBitcoinGUI(BitcoinGUI *gui); /** Set the client model. The client model represents the part of the core that communicates with the P2P network, and is wallet-agnostic. */ void setClientModel(ClientModel *clientModel); /** Set the wallet model. The wallet model represents a bitcoin wallet, and offers access to the list of transactions, address book and sending functionality. */ void setWalletModel(WalletModel *walletModel); <<<<<<< HEAD bool handlePaymentRequest(const SendCoinsRecipient& recipient); ======= bool handleURI(const QString &uri); >>>>>>> Committing original src/qt void showOutOfSyncWarning(bool fShow); private: <<<<<<< HEAD ======= BitcoinGUI *gui; >>>>>>> Committing original src/qt ClientModel *clientModel; WalletModel *walletModel; OverviewPage *overviewPage; QWidget *transactionsPage; <<<<<<< HEAD ReceiveCoinsDialog *receiveCoinsPage; SendCoinsDialog *sendCoinsPage; ======= AddressBookPage *addressBookPage; AddressBookPage *receiveCoinsPage; SendCoinsDialog *sendCoinsPage; SignVerifyMessageDialog *signVerifyMessageDialog; >>>>>>> Committing original src/qt TransactionView *transactionView; public slots: /** Switch to overview (home) page */ void gotoOverviewPage(); /** Switch to history (transactions) page */ void gotoHistoryPage(); <<<<<<< HEAD ======= /** Switch to address book page */ void gotoAddressBookPage(); >>>>>>> Committing original src/qt /** Switch to receive coins page */ void gotoReceiveCoinsPage(); /** Switch to send coins page */ void gotoSendCoinsPage(QString addr = ""); /** Show Sign/Verify Message dialog and switch to sign message tab */ void gotoSignMessageTab(QString addr = ""); /** Show Sign/Verify Message dialog and switch to verify message tab */ void gotoVerifyMessageTab(QString addr = ""); /** Show incoming transaction notification for new transactions. The new items are those between start and end inclusive, under the given parent item. */ <<<<<<< HEAD void processNewTransaction(const QModelIndex& parent, int start, int /*end*/); ======= void incomingTransaction(const QModelIndex& parent, int start, int /*end*/); >>>>>>> Committing original src/qt /** Encrypt the wallet */ void encryptWallet(bool status); /** Backup the wallet */ void backupWallet(); /** Change encrypted wallet passphrase */ void changePassphrase(); /** Ask for passphrase to unlock wallet temporarily */ void unlockWallet(); <<<<<<< HEAD /** Show used sending addresses */ void usedSendingAddresses(); /** Show used receiving addresses */ void usedReceivingAddresses(); /** Re-emit encryption status signal */ void updateEncryptionStatus(); signals: /** Signal that we want to show the main window */ void showNormalIfMinimized(); /** Fired when a message should be reported to the user */ void message(const QString &title, const QString &message, unsigned int style); /** Encryption status of wallet changed */ void encryptionStatusChanged(int status); /** Notify that a new transaction appeared */ void incomingTransaction(const QString& date, int unit, qint64 amount, const QString& type, const QString& address); ======= void setEncryptionStatus(); >>>>>>> Committing original src/qt }; #endif // WALLETVIEW_H
#ifndef SETTINGS_H #define SETTINGS_H #include <QObject> class Settings : public QObject { Q_OBJECT public: explicit Settings(QObject *parent = 0); public slots: void set(QString key, QString value); QString get(QString key); }; #endif // SETTINGS_H
/* connector for fork */ #include <reent.h> int fork () { #ifdef REENTRANT_SYSCALLS_PROVIDED return _fork_r (_REENT); #else return _fork (); #endif }
#ifndef HKBCLIPGENERATOR_H #define HKBCLIPGENERATOR_H #include "hkbgenerator.h" #include "src/animData/skyrimclipgeneratodata.h" class hkbClipTriggerArray; class hkbClipGenerator final: public hkbGenerator { friend class ClipGeneratorUI; public: hkbClipGenerator(HkxFile *parent, long ref = 0, bool addToAnimData = false, const QString & animationname = ""); hkbClipGenerator& operator=(const hkbClipGenerator&) = delete; hkbClipGenerator(const hkbClipGenerator &) = delete; ~hkbClipGenerator(); public: QString getName() const; static const QString getClassname(); SkyrimClipGeneratoData getClipGeneratorAnimData(ProjectAnimData *parent, uint animationIndex) const; QString getAnimationName() const; enum ClipFlag{ FLAG_NONE = 0, FLAG_CONTINUE_MOTION_AT_END = 1, FLAG_SYNC_HALF_CYCLE_IN_PING_PONG_MODE = 2, FLAG_MIRROR = 4, FLAG_FORCE_DENSE_POSE = 8, FLAG_DONT_CONVERT_ANNOTATIONS_TO_TRIGGERS = 16, FLAG_IGNORE_MOTION = 32, INVALID_FLAG = 128 }; Q_DECLARE_FLAGS(ClipFlags, ClipFlag) private: hkbClipTriggerArray* getTriggers() const; qreal getCropStartAmountLocalTime() const; qreal getCropEndAmountLocalTime() const; qreal getStartTime() const; void setStartTime(const qreal &value); qreal getPlaybackSpeed() const; qreal getEnforcedDuration() const; void setEnforcedDuration(const qreal &value); qreal getUserControlledTimeFraction() const; void setUserControlledTimeFraction(const qreal &value); int getAnimationBindingIndex() const; void setAnimationBindingIndex(int value); QString getMode() const; void setMode(int index); QString getFlags() const; void setFlags(const QString &value); void setTriggers(hkbClipTriggerArray *value); bool readData(const HkxXmlReader & reader, long & index); bool link(); void unlink(); QString evaluateDataValidity(); bool write(HkxXMLWriter *writer); int getNumberOfTriggers() const; bool isEventReferenced(int eventindex) const; void updateEventIndices(int eventindex); void mergeEventIndex(int oldindex, int newindex); void fixMergedEventIndices(BehaviorFile *dominantfile); bool merge(HkxObject *recessiveObject); void updateReferences(long &ref); QVector <HkxObject *> getChildrenOtherTypes() const; void setName(const QString & oldclipname, const QString & newclipname); void setAnimationName(int index, const QString & animationname); void setPlaybackSpeed(qreal speed); void setCropStartAmountLocalTime(qreal time); void setCropEndAmountLocalTime(qreal time); private: static uint refCount; static const QStringList PlaybackMode; static const QString classname; ulong userData; QString name; QString animationName; HkxSharedPtr triggers; qreal cropStartAmountLocalTime; qreal cropEndAmountLocalTime; qreal startTime; qreal playbackSpeed; qreal enforcedDuration; qreal userControlledTimeFraction; int animationBindingIndex; QString mode; QString flags; mutable std::mutex mutex; }; Q_DECLARE_OPERATORS_FOR_FLAGS(hkbClipGenerator::ClipFlags) #endif // HKBCLIPGENERATOR_H
// // EWLPlayerViewController.h // EasyWayLyrics // // Created by Paulo Almeida on 3/28/14. // Copyright (c) 2014 Loducca Publicidade. All rights reserved. // #import <UIKit/UIKit.h> //Libraries #import <MediaPlayer/MediaPlayer.h> #import <MBProgressHUD/MBProgressHUD.h> //Categories #import "UILabel+UtilityAttributes.h" #import "UIImage+ImageEffects.h" //Models #import "EWLBaseLyricFindResponse.h" #import "EWLSearchArtistSongLyricWithoutLyricsResponse.h" #import "EWLSearchArtistSongLyricWithLyricsResponse.h" #import "EWLSearchArtistSongLyricWithLyricsItem.h" #import "EWLGracenoteIdentifySongResponse.h" //ViewControllers #import "EWLLanguagePickerViewController.h" //Others #import "EWLStringUtils.h" #import "EWLSearchSongByArtistJSONParser.h" @interface EWLPlayerViewController : EWLBaseViewController<EWLLanguagePickerViewControllerDelegate,BaseNetworkDelefate> @property(strong,nonatomic) EWLBaseLyricFindResponse* baseResponse; @property (strong,nonatomic) MPMediaItemCollection* mediaItemCollection; @property (strong,nonatomic) EWLGracenoteIdentifySongResponse* identifySongResponse; @property (strong,nonatomic) UIImage* itunesAlbumArtworkImage; @end
/* * Copyright 2017 - KBC Group NV - Franky Braem - The MIT 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. */ #ifndef _MQWeb_AuthorityServiceController_h #define _MQWeb_AuthorityServiceController_h #include "MQ/Web/MQController.h" #include "MQ/Web/MapInitializer.h" namespace MQ { namespace Web { class AuthorityServiceController : public MQController /// Controller that shows the status of queues { public: AuthorityServiceController(); /// Constructor virtual ~AuthorityServiceController(); /// Destructor virtual const std::map<std::string, Controller::ActionFn>& getActions() const; /// Returns all available actions void inquire(); /// See: http://www.mqweb.org/api/authservice.html#inquire private: }; inline const Controller::ActionMap& AuthorityServiceController::getActions() const { static Controller::ActionMap actions = MapInitializer<std::string, Controller::ActionFn> ("inquire", static_cast<ActionFn>(&AuthorityServiceController::inquire)) ; return actions; } } } // Namespace MQ::Web #endif // _MQWeb_AuthorityServiceController_h
namespace ashgkwd { #ifndef H_STACK_ASHGKWD #define H_STACK_ASHGKWD 8 class Stack { private: static const int MAX = 10; int store[MAX]; int top; public: Stack(); bool push(int value); int pop(); bool is_empty(); bool is_full(); }; #endif }
/************************************************************************/ /* */ /* Copyright 2008-2017 by Benjamin Seppke */ /* Cognitive Systems Group, University of Hamburg, Germany */ /* */ /* This file is part of the GrAphical Image Processing Enviroment. */ /* The GRAIPE Website may be found at: */ /* https://github.com/bseppke/graipe */ /* Please direct questions, bug reports, and contributions to */ /* the GitHub page and use the methods provided there. */ /* */ /* 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 GRAIPE_FEATURES2D_H #define GRAIPE_FEATURES2D_H /** * @defgroup graipe_features2d Two-dimensional feature classes module * * @addtogroup graipe_features2d * @{ * * @file * @brief Header file for the outer API of GRAIPE's features2d module */ #include "features2d/featurelist.hxx" #include "features2d/featureliststatistics.hxx" #include "features2d/featurelistviewcontroller.hxx" #include "features2d/polygon.hxx" #include "features2d/polygonlist.hxx" #include "features2d/polygonliststatistics.hxx" #include "features2d/polygonlistviewcontroller.hxx" #include "features2d/cubicspline.hxx" #include "features2d/cubicsplinelist.hxx" #include "features2d/cubicsplineliststatistics.hxx" #include "features2d/cubicsplinelistviewcontroller.hxx" /** * @} */ #endif //GRAIPE_FEATURES2D_H
// // BRPreviewViewController.h // AssetsLibraryDemo // // Created by Brammanand Soni on 5/1/15. // Copyright (c) 2015 Brammanand Soni. All rights reserved. // #import <UIKit/UIKit.h> @class BRPreviewViewController; @protocol BRPreviewViewControllerDelegate <NSObject> - (void)previewViewDidCancel:(BRPreviewViewController *)previewViewController; @end @interface BRPreviewViewController : UIViewController @property (nonatomic,strong) void(^block)(NSArray * data); @property (nonatomic, weak) id <BRPreviewViewControllerDelegate> delegate; @property (nonatomic, strong) NSArray *selectedAssets; @end
// // UMComComment+UMComManagedObject.h // UMCommunity // // Created by Gavin Ye on 11/17/14. // Copyright (c) 2014 Umeng. All rights reserved. // #import "UMComComment.h" void printComment(); @interface UMComComment (UMComManagedObject) /** 通过评论commentId获取到本地 UMComComment 对象的方法,如果本地没有, 则会新建一个 @param commentId 评论的id */ + (UMComComment *)objectWithObjectId:(NSString *)commentId; @end //@interface UMComCommentImageArray : NSValueTransformer // //@end
/* Copyright (c) 2014 Sam Hardeman 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. */ #pragma once namespace Raptor { namespace Audio { namespace BufferSizes { enum BufferSize { BUF_SIZE_POLL_DEVICE = 0, BUF_SIZE_512 = 512, BUF_SIZE_1024 = 1024, BUF_SIZE_2048 = 2048, BUF_SIZE_4096 = 4096, BUF_SIZE_8192 = 8192, BUF_SIZE_16384 = 16384, BUF_SIZE_32768 = 32768, BUF_SIZE_65536 = 65536, BUF_SIZE_131072 = 131072 }; }; namespace BufferResults { enum BufferResult { BUFFER_FREE, BUFFER_FULL }; }; class RingBuffer { public: RingBuffer( BufferSizes::BufferSize bufferSize ); RingBuffer( unsigned int bufferSize ); ~RingBuffer( void ); public: short* GetBuffer( void ); public: unsigned int& GetReadPosition( void ); unsigned int& GetWritePosition( void ); unsigned int GetBufferSize( void ); BufferResults::BufferResult CheckStatus( void ); BufferResults::BufferResult WriteBuffer2( short value1, short value2 ); BufferResults::BufferResult WriteBuffer( short value ); private: short* m_Buffer; unsigned int m_NumSamples; unsigned int m_ReadPos; unsigned int m_WritePos; #ifdef _DEBUG friend class WaveoutDevice; #endif }; }; };
#include "DataTypes/Containers/Nodes.h" SingleLinkedNode_t BuildSingleLinkNode(DataType_t type, void * data, int size) { SingleLinkedNode_t sln; sln.runtime_data = BuildRuntimeData(type); bool *bData = NULL; int *iData = NULL; unsigned int *uiData = NULL; float *fData = NULL; char *cData = NULL; /// Set the type switch (type) { case DataTypeBool: bData = (bool *) data; GetNodeDataBool(sln) = *bData; sln.runtime_data.initialized = true; break; case DataTypeInt: iData = (int *) data; GetNodeDataInt(sln) = *iData; sln.runtime_data.initialized = true; break; case DataTypeUnsignedInt: uiData = (unsigned int *) data; GetNodeDataUnsignedInt(sln) = *uiData; sln.runtime_data.initialized = true; break; case DataTypeFloat: fData = (float *) data; GetNodeDataFloat(sln) = *fData; sln.runtime_data.initialized = true; break; case DataTypeChar: cData = (char *) data; memcpy(&GetNodeDataChar(sln)[0], cData, size); sln.runtime_data.initialized = true; break; default: break; } return sln; } bool TestBuildingSingleLinkedIntNode() { int SomeInt = 10; SingleLinkedNode_t sln = BuildSingleLinkNode(DataTypeInt, (void *)&SomeInt, 0); return IsNodeTypeInt(sln) && GetNodeDataInt(sln) == 10; }
#ifndef _CARMELAREPORT_H_ #define _CARMELAREPORT_H_ extern int leftfrontCntTmp,rightfrontCntTmp; extern int leftrearCntTmp,rightrearCntTmp; extern void report(); #endif // _REPORT_H_
// // TFPictureView.h // TFFinder // // Created by teanfoo on 16/12/23. // Copyright © 2016 TeanFoo. All rights reserved. // #import <UIKit/UIKit.h> @interface TFPictureView : UIScrollView /** 图片视图 */ @property (weak, nonatomic) UIImageView *imgView; - (instancetype)initWithFrame:(CGRect)frame andImageUrl:(NSString *)imageUrl; - (void)setPictureWithImageUrl:(NSString *)imageUrl; - (instancetype)initWithFrame:(CGRect)frame andImage:(UIImage *)image; @end
// // KWProgressView.h // KWCodeLibrary // // Created by 凯文马 on 16/8/25. // Copyright © 2016年 kevin-meili-inc. All rights reserved. // #import <Cocoa/Cocoa.h> @interface KWProgressView : NSView + (instancetype)commonView; - (void)updateWithTotal:(NSInteger)total andProgress:(NSInteger)progress; @end
#pragma once #include "override/spriterfileelementwrapper.h" #include "XmlFile.h" using namespace SpriterEngine; class UESpriterFileElementWrapper : public SpriterFileElementWrapper { public: UESpriterFileElementWrapper(FXmlNode *node); std::string getName() override; bool isValid() override; void advanceToNextSiblingElement() override; void advanceToNextSiblingElementOfSameName() override; private: SpriterFileAttributeWrapper *newAttributeWrapperFromFirstAttribute() override; SpriterFileAttributeWrapper *newAttributeWrapperFromFirstAttribute(const std::string & attributeName) override; SpriterFileElementWrapper *newElementWrapperFromFirstElement() override; SpriterFileElementWrapper *newElementWrapperFromFirstElement(const std::string & elementName) override; SpriterFileElementWrapper *newElementWrapperFromNextSiblingElement() override; SpriterFileElementWrapper *newElementClone() override; FXmlNode *node; };
// // SKDatasource.h // JSONExample // // Created by Oscar Cardona on 30/03/14. // Copyright (c) 2014 TocTocSoft. All rights reserved. // #import <Foundation/Foundation.h> #import "SKPostsItems.h" typedef void (^downloadEventsSuccess)(SKPostsItems *items, NSError *error); typedef void (^downloadEventsError)(NSError *error); @interface SKDatasource : NSObject + (void)downloadEventsWithURL:(NSString *)url success:(downloadEventsSuccess)success error:(downloadEventsError)error; @end
// // ABRequestFactory.h // Request Manager // // Created by Alexey Belkevich on 12/31/12. // Copyright (c) 2012 Okolodev. All rights reserved. // #import <Foundation/Foundation.h> #import "ABMultitonProtocol.h" @class ABRequestOptions; @interface ABRequestFactory : NSObject <ABMultitonProtocol> @property (nonatomic, strong) ABRequestOptions *options; // initialization + (id)requestFactory; // actions - (NSMutableURLRequest *)createGETRequest:(NSString *)path; - (NSMutableURLRequest *)createPOSTRequest:(NSString *)path body:(NSData *)body; - (NSMutableURLRequest *)createPUTRequest:(NSString *)path body:(NSData *)body; - (NSMutableURLRequest *)createDELETERequest:(NSString *)path; - (NSMutableURLRequest *)createRequest:(NSString *)path method:(NSString *)method data:(NSData *)data; @end
#pragma once #include <boost/signals2.hpp> namespace vosvideo { namespace archive { class ChangesNotifier { public: ChangesNotifier(); virtual ~ChangesNotifier() = 0; boost::signals2::connection ConnectToChangesSignal(boost::signals2::signal<void (const std::wstring&)>::slot_function_type subscriber); boost::signals2::signal<void (const std::wstring&)> notifierSignal_; }; } }
#pragma once #include <stdint.h> typedef struct NPCTradeDealWindow NPCTradeDealWindow; struct NPCTradeDealWindow { int32_t unknown[0]; };
#pragma once #include "splay_tree.h" namespace fwk { template <typename T> class set { public: set(); set(const set &s); ~set(); set& operator=(const set &s); bool empty() const; size_t size() const; bool in(const T &t); void add(const T &t); void operator[](const T&t); void print() { m_set.pre_order([](int &i) { std::cout << i << " "; }); std::cout << std::endl; } private: splay_tree<T, T> m_set; }; } #include "../src/set.inl"
#define SW1 RB0_bit #define SW2 RB1_bit #define SW3 RB2_bit #define SW4 RB3_bit #define ENABLE RC5_bit #define DIR RC6_bit #define PULSE RC2_bit void dynamic_delay_ms(unsigned int delay); void main() { unsigned int frequency=0; TRISB0_bit=1; TRISB1_bit=1; TRISB2_bit=1; TRISB3_bit=1; TRISC5_bit=0; TRISC6_bit=0; TRISC2_bit=0; ENABLE=1; //disable motor while(1) { if(SW1==0) { frequency=250; //set motor speed to 250Hz DIR=1; //set motor direction to CW ENABLE=0; //enable motor } else if(SW2==0) { frequency=250; //set motor speed to 250Hz DIR=0; //set motor direction to CCW ENABLE=0; //enable motor } else if(SW3==0) { frequency=500; //set motor speed to 500Hz DIR=1; //set motor direction to CW ENABLE=0; //enable motor } else if(SW4==0) { frequency=500; //set motor speed to 500Hz DIR=0; //set motor direction to CCW ENABLE=0; //enable motor } else { frequency=0; //set motor speed to 800Hz ENABLE=1; //disable motor } PULSE=1; PULSE=0; if(frequency>0)dynamic_delay_ms(1000/frequency); } } void dynamic_delay_ms(unsigned int delay) { for( ;delay>0;delay-=1)Delay_Ms(1); }
/* * Copyright © 2017 - Vitaliy Perevertun * * This file is part of udev. * * This file is licensed under the MIT license. * See the file LICENSE. */ #ifndef _UDEV_DEVICE_H_ #define _UDEV_DEVICE_H_ #include "libudev0.h" struct device { int action; }; int device_action(const char *action); #endif /* _UDEV_DEVICE_H_ */
/** * Copyright (c) 2016-2018 Christian Uhsat <christian@uhsat.de> * 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 "lua.h" #include "../lib/net.h" #include "../lib/os.h" #include <lua.h> #include <lualib.h> #include <lauxlib.h> #include <errno.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #if (defined(DEBUG) && (DEBUG == 1)) #define LUA_TRACE fprintf(stderr, "-- %s\n", __func__) #else #define LUA_TRACE #endif /** * Lua panic * @param L the Lua state address * @return stack count */ extern int lua_panic(lua_State *L) { fprintf(stderr, "Palantir panic: %s\n", lua_tostring(L, -1)); return 0; } /** * Lua connect * @param L the Lua state address * @return stack count */ extern int lua_connect(lua_State *L) { LUA_TRACE; host_t host = { luaL_checkstring(L, 1), (const uint16_t)luaL_checkinteger(L, 2) }; if (net_connect(&host) < 0) { return luaL_error(L, strerror(errno)); } return 0; } /** * Lua listen * @param L the Lua state address * @return stack count */ extern int lua_listen(lua_State *L) { LUA_TRACE; host_t host = { luaL_checkstring(L, 1), (const uint16_t)luaL_checkinteger(L, 2) }; if (net_listen(&host) < 0) { return luaL_error(L, strerror(errno)); } return 0; } /** * Lua accept * @param L the Lua state address * @return stack count */ extern int lua_accept(lua_State *L) { LUA_TRACE; if (net_accept() < 0) { return luaL_error(L, strerror(errno)); } return 0; } /** * Lua send * @param L the Lua state address * @return stack count */ extern int lua_send(lua_State *L) { LUA_TRACE; frame_t frame; frame.data = (char *)luaL_checklstring(L, 1, &(frame.size)); if (net_send(&frame) < 0) { return luaL_error(L, strerror(errno)); } return 0; } /** * Lua recv * @param L the Lua state address * @return stack count */ extern int lua_recv(lua_State *L) { LUA_TRACE; frame_t frame; if (net_recv(&frame) < 0) { return luaL_error(L, strerror(errno)); } lua_pushlstring(L, frame.data, frame.size); return 1; } /** * Lua path * @param L the Lua state address * @return stack count */ extern int lua_path(lua_State *L) { LUA_TRACE; path_t path; if (lua_gettop(L) > 0) { strcpy(path.path, luaL_checkstring(L, 1)); } else { memset(path.path, 0, sizeof(path.path)); } if (os_path(&path)) { return luaL_error(L, strerror(errno)); } lua_pushlstring(L, path.user, strlen(path.user)); lua_pushlstring(L, path.host, strlen(path.host)); lua_pushlstring(L, path.path, strlen(path.path)); return 3; } /** * Lua prompt * @param L the Lua state address * @return stack count */ extern int lua_prompt(lua_State *L) { LUA_TRACE; prompt_t prompt = { luaL_checkstring(L, 1) }; if (os_prompt(&prompt) < 0) { return luaL_error(L, strerror(errno)); } lua_pushlstring(L, prompt.line, strlen(prompt.line)); return 1; } /** * Lua sleep * @param L the Lua state address * @return stack count */ extern int lua_sleep(lua_State *L) { LUA_TRACE; os_sleep((time_t)luaL_checkinteger(L, 1)); return 0; }
// // PPPatchItem.h // PPPatch // // Created by 崔 明辉 on 15-5-24. // Copyright (c) 2015年 崔 明辉. All rights reserved. // #import <Foundation/Foundation.h> /** * PPPatch Type */ typedef NS_ENUM(NSInteger, PPPatchType){ /** * Unknown Type */ PPPatchTypeUnknown = 0, /** * Invalid a class selector */ PPPatchTypeSelectorInvalid = 100, /** * Show AlertView when selector performs */ PPPatchTypeSelectorAlert = 101, /** * Replace return value */ PPPatchTypeSelectorReturn = 102, /** * Same as PPPatchTypeSelectorAlert, but alertView only show once each app version. */ PPPatchTypeSelectorAlertOnce = 103, /** * Remove User Interface from superView */ PPPatchTypeUIRemoveFromSuperView = 200, /** * Disable User Interface */ PPPatchTypeUIDisabled = 201, /** * Set UI Key => Value */ PPPatchTypeUISettingKeyValue = 202 }; @interface PPPatchItem : NSObject @property (nonatomic, assign) BOOL isInstalled; @property (nonatomic, assign) PPPatchType patchType; + (id)itemWithDictionary:(NSDictionary *)dictionary; - (void)install; - (void)uninstall; @end
#include "rand.h" #include <stdlib.h> #include <string.h> #include <math.h> #include <stdio.h> #include <ctype.h> int rand_born(int min, int max) { if (max - min != 0) return (rand() % (max - min) + min); return 0; } int rolld100(void) { int a, b; a = rand_born(0, 9); b = rand_born(0, 9); a += b * 10; return a; } float rand_float(float min, float max) { return min + (((float)rand() / (float)(RAND_MAX / (max - min)))); } Name rand_name(void) { Name name; memset(name.str, 0, 32); char pairs[] = { // TXTELITE.c "lexegezacebiso" "usesarmaindirea" "eratenberalaveti" "edorquanteisrion" }; size_t pairsLenght = strlen(pairs); int pair1 = floor(2 * (rand_float(0.f, 1.f) * (pairsLenght / 2))); int pair2 = floor(2 * (rand_float(0.f, 1.f) * (pairsLenght / 2))); int pair3 = floor(2 * (rand_float(0.f, 1.f) * (pairsLenght / 2))); int pair4 = floor(2 * (rand_float(0.f, 1.f) * (pairsLenght / 2))); name.str[0] = toupper(pairs[pair1]); name.str[1] = pairs[pair1 + 1]; name.str[2] = pairs[pair2]; name.str[3] = pairs[pair2 + 1]; name.str[4] = pairs[pair3]; name.str[5] = pairs[pair3 + 1]; name.str[6] = pairs[pair4]; name.str[7] = pairs[pair4 + 1]; int i = 0; while (name.str[i] != '\0') { if (name.str[i] == '.') { for (int k = i; name.str[k] != '\0'; k++) { name.str[k] = name.str[k + 1]; } } i++; } name.str[i] = '\0'; return name; }
// // EventDetailHeadView.h // Cooking // // Created by 李永方 on 16/3/8. // Copyright © 2016年 DoOpen. All rights reserved. // #import <UIKit/UIKit.h> @class mcookEventDetail; @interface EventDetailHeadView : UICollectionReusableView @property (nonatomic,strong)mcookEventDetail *eventDetailM; +(instancetype)eventDetailHeadView:(UICollectionView *)collectionView withKind:(NSString *)kind forIndexPath:(NSIndexPath *)Indexpath; @end
#import <UIKit/UIKit.h> @class WMFCVLMetrics; /*! @class WMFColumnarCollectionViewLayout @abstract A WMFColumnarCollectionViewLayout organizes a collection view into columns grouped by section - all items from the same section will be in the same column. @discussion ... */ @interface WMFColumnarCollectionViewLayout : UICollectionViewLayout - (nullable UICollectionViewLayoutAttributes *)layoutAttributesAtPoint:(CGPoint)point; //returns the first matched layout attributes that contain the given point @end @protocol WMFColumnarCollectionViewLayoutDelegate <UICollectionViewDelegate> @required - (CGFloat)collectionView:(nonnull UICollectionView *)collectionView estimatedHeightForItemAtIndexPath:(nonnull NSIndexPath *)indexPath forColumnWidth:(CGFloat)columnWidth; - (CGFloat)collectionView:(nonnull UICollectionView *)collectionView estimatedHeightForHeaderInSection:(NSInteger)section forColumnWidth:(CGFloat)columnWidth; - (CGFloat)collectionView:(nonnull UICollectionView *)collectionView estimatedHeightForFooterInSection:(NSInteger)section forColumnWidth:(CGFloat)columnWidth; - (BOOL)collectionView:(nonnull UICollectionView *)collectionView prefersWiderColumnForSectionAtIndex:(NSUInteger)index; @end
/***************************************************************************************** * * * OpenSpace * * * * Copyright (c) 2014-2022 * * * * 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 __OPENSPACE_MODULE_IMGUI___IMGUI_INCLUDE___H__ #define __OPENSPACE_MODULE_IMGUI___IMGUI_INCLUDE___H__ #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wold-style-cast" #elif (defined __GNUC__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wclass-memaccess" #pragma GCC diagnostic ignored "-Wold-style-cast" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #endif // __clang__ #include <imgui.h> #include <imgui_internal.h> #ifdef __clang__ #pragma clang diagnostic pop #elif (defined __GNUC__) #pragma GCC diagnostic pop #endif // __clang__ #endif // __OPENSPACE_MODULE_IMGUI___IMGUI_INCLUDE___H__
// // InputInjector.h // DoThisNow // // Created by Chris Burns on 4/30/14. // Copyright (c) 2014 Chris Burns. All rights reserved. // #import <Foundation/Foundation.h> @class CBSocket; @interface CBInputReceiver : NSObject - (instancetype)initWithSharedViewController:(UIViewController *) sharedController socket:(CBSocket *) socket; - (void) start; - (void) stop; @end
#ifndef SEMANTICS_H #define SEMANTICS_H #include <string> #include <iostream> #include <cstdlib> enum type { Natural, Bool }; struct variable_def { int line; type varType; variable_def(int l = 0, type t = Natural) : line(l), varType(t) {} }; struct expression_def { int line; type expType; expression_def(int l, type t) : line(l), expType(t) {} }; struct statement_def { int line; statement_def(int l) : line(l) {} }; #endif //SEMANTICS_H
#pragma once #include "graphics/helpers/InstanceWrapper.h" #include "vma/vk_mem_alloc.h" #include <vulkan/vulkan.h> struct SAllocatedBuffer { VkBuffer Buffer = nullptr; VmaAllocation Allocation = nullptr; }; struct SAllocatedImage { VkImage Image = nullptr; VmaAllocation Allocation = nullptr; }; class GPUAllocator { public: GPUAllocator(); ~GPUAllocator(); bool AllocateBuffer( VkBufferCreateInfo* pCreateInfo, VmaMemoryUsage UsageFlag, SAllocatedBuffer& Out ); bool AllocateImage( VkImageCreateInfo* pImageInfo, VmaMemoryUsage UsageFlag, SAllocatedImage& Out ); int64_t BytesAllocated() const; operator VmaAllocator() const { return _Allocator; } private: VmaAllocator _Allocator; };
/* kmem.h : Static memory allocation. (C)2012-2013 Marisa Kirisame, UnSX Team. Part of AliceOS, the Alice Operating System. Released under the MIT License. */ /* memory allocation functions */ void *kmalloc_global( uint32_t sz, uint8_t alg, uint32_t *phys ); void *kmalloc_a( uint32_t sz ); void *kmalloc_ap( uint32_t sz, uint32_t *phys ); void *kmalloc_p( uint32_t sz, uint32_t *phys ); void *kmalloc( uint32_t sz ); void *krealloc_global( void *prev, uint32_t sz, uint8_t alg, uint32_t *phys ); void *krealloc_a( void *prev, uint32_t sz ); void *krealloc_ap( void *prev, uint32_t sz, uint32_t *phys ); void *krealloc_p( void *prev, uint32_t sz, uint32_t *phys ); void *krealloc( void *prev, uint32_t sz ); void kfree( void *a ); /* initialize the memory manager */ void init_kmem( uint32_t iaddr, uint32_t eaddr ); /* add a memory gap to skip */ void kmem_addgap( uint32_t start, uint32_t end ); /* current addr variables values */ void kmem_addrs( uint32_t *pai, uint32_t *pa, uint32_t *ma );
/* -------------------------------------------------------------------------- * * File Ch1_PaletteSwapping.h * Ported By Young-Hwan Mun * Contact xmsoft77@gmail.com * * Created By Nate Burba * Contact Cocos2dCookbook@gmail.com * * -------------------------------------------------------------------------- * * Copyright (c) 2010-2013 XMSoft. * Copyright (c) 2011 COCOS2D COOKBOOK. All rights reserved. * * -------------------------------------------------------------------------- * * 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 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 in the file COPYING.LIB; * if not, write to the Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * * -------------------------------------------------------------------------- */ #ifndef __Ch1_PaletteSwapping_h__ #define __Ch1_PaletteSwapping_h__ class Ch1_PaletteSwapping : public Recipe { public : SCENE_FUNC ( Ch1_PaletteSwapping ); protected : virtual KDbool init ( KDvoid ); KDvoid animateFielderWithColors ( ccColor3B* pColors, const CCPoint& tPos ); }; #endif // __Ch1_PaletteSwapping_h__
/* * ===================================================================================== * * Filename: ex01-06.c * * Description: Verify EOF * * Version: 1.0 * Created: 11/21/2013 11:56:41 AM * Revision: none * Compiler: gcc * * Author: Cianan A. Sims (), ctasims@gmail.com * Organization: * * ===================================================================================== */ #include <stdio.h> main() { int c; while ((c = getchar()) != EOF) { putchar(c); /* 1-6 verify expression is 0 or 1 */ printf("%f", c != EOF); } }
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "AWSMobileAnalyticsUniqueIdGenerator.h" #import <XXUnknownSuperclass.h> // Unknown library @class NSString; @interface AWSMobileAnalyticsRandomUUIDGenerator : XXUnknownSuperclass <AWSMobileAnalyticsUniqueIdGenerator> { } @property(readonly, copy) NSString* debugDescription; @property(readonly, copy) NSString* description; @property(readonly, assign) unsigned hash; @property(readonly, assign) Class superclass; + (id)generator; - (id)generateUniqueIdString; @end