repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
JoeriHermans/Intelligent-Automation-System
src/ias/technology/factory/technology_database_factory.h
/** * A class which is responsible for extracting technologies from a database. * * @date Jul 5, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
JoeriHermans/Intelligent-Automation-System
src/ias/application/client/model/client_application_model.h
/** * A class which describes the properties and actions of a client application. * * @date December 25, 2014 * @author <NAME> * @version 0.1 * * Copyright 2014 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
JoeriHermans/Intelligent-Automation-System
src/ias/user/command/command_remove_controller.h
/** * A class which represents the properties and actions of a command which is * responsible for removing a controller (and the associated devices, rules) * from the system. * * @date 3 April, 2015 * @author <NAME> * @version 0.1 * * Copyright 2015 <NAME> *...
JoeriHermans/Intelligent-Automation-System
src/ias/device/factory/device_database_factory.h
/** * A class which is responsible for extracting devices from a database. * * @date Jul 5, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ex...
JoeriHermans/Intelligent-Automation-System
src/ias/device/struct_device_update.h
/** * A structure which is passed to a device monitor when a device is updated. * * @date Jul 31, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e...
JoeriHermans/Intelligent-Automation-System
src/ias/application/client/controller/client_application_controller.h
<filename>src/ias/application/client/controller/client_application_controller.h /** * A class which describes the properties and actions of a client application * controller. This controller will be responsible for handling/relaying view * triggers from the view. * * @date December 15, 2014 * @...
JoeriHermans/Intelligent-Automation-System
src/ias/util/identifiable.h
/** * An interface which describes the actions of an identifiable object. * * @date Jul 3, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exc...
JoeriHermans/Intelligent-Automation-System
src/ias/device/device.h
/** * A class which described the properties and actions of a device. * * @date Jul 3, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except ...
JoeriHermans/Intelligent-Automation-System
src/ias/util/properties.h
/** * A class represents a persitent set of properties. A property contains a * key-value relation. * * @date Jun 3, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * yo...
JoeriHermans/Intelligent-Automation-System
src/ias/user/command/command_load_rule.h
<reponame>JoeriHermans/Intelligent-Automation-System<gh_stars>1-10 /** * A command which is responsible for loading a rule into IAS. * * @date Aug 3, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License...
JoeriHermans/Intelligent-Automation-System
src/ias/user/user.h
<reponame>JoeriHermans/Intelligent-Automation-System /** * A class which describes the properties and actions of a user. * * @date Jul 9, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (t...
JoeriHermans/Intelligent-Automation-System
src/ias/factory/database_factory.h
<filename>src/ias/factory/database_factory.h /** * An abstract factory which is responsible for fetching instances from a * database. * * @date Jul 5, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Versi...
JoeriHermans/Intelligent-Automation-System
src/ias/server/event_server.h
/** * A class which describes the properties and actions of the event server. This * server will be responsible for reporting events to the client. This service * can be used to enable Server Sent Events, which removes the need for polling. * * @date 14 January, 2014 * @author ...
JoeriHermans/Intelligent-Automation-System
src/ias/network/posix/ssl/posix_ssl_server_socket.h
<reponame>JoeriHermans/Intelligent-Automation-System<gh_stars>1-10 /** * A class which describes the properties and actions of an SSL server socket. * * @date August 22, 2014 * @author <NAME> * @version 0.1 * * Copyright 2014 <NAME> * * Licensed under the Apa...
JoeriHermans/Intelligent-Automation-System
src/ias/building/area.h
/** * A class which describes the properties and actions of an area. An area is a * representation of a certain room or a collection of rooms, e.g., a living * room. An area has a set of associated devices. * * @date 1 March, 2015 * @author <NAME> * @version 0....
JoeriHermans/Intelligent-Automation-System
src/ias/server/server.h
<reponame>JoeriHermans/Intelligent-Automation-System<filename>src/ias/server/server.h /** * A class which describes the abstract properties and actions of a server * routine. * * @date Jul 6, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> ...
JoeriHermans/Intelligent-Automation-System
src/ias/user/command/command_users.h
/** * A class which is responsible for providing information about users. * By default, when no parameters are specified, this function will list the * users which are currently logged in into the system (like the UNIX command). * * @date 8 January, 2015 * @author <NAME> * @ve...
JoeriHermans/Intelligent-Automation-System
src/ias/application/client/client_application.h
/** * An application which is responsible for handling the client/server * communications. * * @date Jul 17, 2014 * @author <NAME> * @version 0.2 * * Copyright 2014 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use...
JoeriHermans/Intelligent-Automation-System
src/ias/application/client/view/console_client_application_view.h
/** * A class which describes the properties of a console (or terminal) client * application view. * * @date December 25, 2014 * @author <NAME> * @version 0.1 * * Copyright 2014 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * yo...
JoeriHermans/Intelligent-Automation-System
src/ias/building/factory/area_database_factory.h
<reponame>JoeriHermans/Intelligent-Automation-System /** * A database factory which is responsible for retrieving all areas and * connections from a database. This database factory will also create the * connections between the individual areas. * * @date 9 April, 2015 * @author ...
JoeriHermans/Intelligent-Automation-System
src/ias/technology/member.h
<reponame>JoeriHermans/Intelligent-Automation-System /** * A class which describes the properties of a technology member. * * @date Jul 3, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (...
JoeriHermans/Intelligent-Automation-System
src/ias/util/util.h
/** * A set of utilization methods and functions. * * @date July 4, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
JoeriHermans/Intelligent-Automation-System
src/ias/server/user_server.h
/** * A class which describes the properties and actions of a user server. A * user servers allows for users to connect and execute commands remotely. * * @date Jul 18, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under th...
sunziming001/GenDmg
include/GenDmgView/MainPanel.h
<reponame>sunziming001/GenDmg #ifndef _MAIN_PANEL_H #define _MAIN_PANEL_H #include <QFrame> #include <QPushButton> #include <QVBoxLayout> #include <QButtonGroup> enum class PageType { Home, Character, GrowRate, }; class MainPanel:public QFrame { Q_OBJECT public: MainPanel(QWidget *parent =nu...
sunziming001/GenDmg
include/GenDmgView/TitlePanel.h
<filename>include/GenDmgView/TitlePanel.h #ifndef _TITLE_PANEL_H #define _TITLE_PANEL_H #include <QFrame> #include <QLabel> #include <QPushButton> #include <QHBoxLayout> class TitlePanel :public QFrame { Q_OBJECT public: TitlePanel(QWidget* parent); private: QPushButton* createTitleButton(int faIco...
sunziming001/GenDmg
include/GenDmgView/GenDmgApp.h
<filename>include/GenDmgView/GenDmgApp.h<gh_stars>0 #ifndef _GEN_DMG_APP_H #define _GEN_DMG_APP_H #include <QApplication> #include <QTranslator> class GenDmgApp :public QApplication { Q_OBJECT public: GenDmgApp(int argc, char** argv); ~GenDmgApp(); private: void init(); void uninit(); void init...
sunziming001/GenDmg
include/GenDmgView/CircleButton.h
#ifndef CIRCLE_BUTTON_H #define CIRCLE_BUTTON_H #include <QPushButton> #include <QIcon> class CircleButton :public QPushButton { public: CircleButton(QIcon icon) }; #endif
sunziming001/GenDmg
include/GenDmgCore/DamageStream.h
<filename>include/GenDmgCore/DamageStream.h<gh_stars>0 #ifndef _DAMAGE_STREAM_H #define _DAMAGE_STREAM_H #include "ICharacter.h" #include "DamageCell.h" #include <set> class DamageStream { public: DamageStream(CharacterPtr source, CharacterPtr target); ~DamageStream(); void setSource(CharacterPtr sourc...
sunziming001/GenDmg
include/GenDmgView/AwesomeFontManager.h
<reponame>sunziming001/GenDmg #ifndef AWESOME_FONT_MANAGER_H #define AWESOME_FONT_MANAGER_H #include "QtAwesome.h" #include <QApplication> class AwesomeFontManager { public: static AwesomeFontManager* getInstance(); void init(QApplication& app); void uninit(); ~AwesomeFontManager(); QtAwesome* getQtAw...
sunziming001/GenDmg
include/GenDmgView/CharacterLvPropModel.h
<reponame>sunziming001/GenDmg #ifndef CHARACTER_LV_PROP_MODEL_H #define CHARACTER_LV_PROP_MODEL_H #include <QAbstractTableModel> #include "GenDmgCore.h" class CharacterLvPropModel:public QAbstractTableModel { Q_OBJECT public: static const int RowCnt = 10; static const int ColCnt = 9; CharacterLvPropMo...
sunziming001/GenDmg
include/GenDmgView/MainFrame.h
#ifndef _MAIN_FRAME_H #define _MAIN_FRAME_H #include <QFrame> #include <QMouseEvent> #include <QHBoxLayout> #include <QStackedLayout> class MainPanel; class TitlePanel; class CharacterFrame; class GrowRateFrame; enum class PageType; class MainFrame :public QFrame { Q_OBJECT public: MainFrame(QW...
sunziming001/GenDmg
include/GenDmgView/GrowRateModel.h
<reponame>sunziming001/GenDmg<filename>include/GenDmgView/GrowRateModel.h #ifndef _GROW_RATE_MODEL_H #define _GROW_RATE_MODEL_H #include <QAbstractTableModel> #include "GenDmgCore.h" typedef struct _GrowRateModelLine { CharacterGrowRate growRate; bool isInDb = false; }GrowRateModelLine; class GrowRat...
sunziming001/GenDmg
include/GenDmgView/ViewLogger.h
<gh_stars>0 #ifndef _RMT_OPER_LOGGER_H #define _RMT_OPER_LOGGER_H #include "CommonLogger.h" #define LOG_TYPE_NAME "View" #define LOG_INIT(lv) \ {\ Logger* logger = Logger::getInstance();\ std::map<std::string, LoggerInfo> loggerInfos;\ LoggerInfo rmtOperInfo;\ rmtOperInfo.typeName = LOG_TYPE_NAME;...
sunziming001/GenDmg
include/GenDmgView/CharacterBriefModel.h
<gh_stars>0 #ifndef CHARACTER_BRIEF_MODEL_H #define CHARACTER_BRIEF_MODEL_H #include <QAbstractTableModel> #include "GenDmgCore.h" class CharacterBriefModel :public QAbstractTableModel { Q_OBJECT public: static const int RowCnt = 2; static const int ColCnt = 5; CharacterBriefModel(int charId, QObject*...
sunziming001/GenDmg
include/GenDmgView/CharacterFrame.h
#ifndef _CHARACTER_FRAME_H #define _CHARACTER_FRAME_H #include <QLabel> #include <QFrame> #include <QVBoxLayout> #include <vector> #include "CharacterBrief.h" #include <QComboBox> #include <QAbstractListModel> #include <QTableView> #include <QPushButton> class CharacterLvPropModel; class CharacterBriefM...
sunziming001/GenDmg
include/GenDmgView/QtAwesomeAnim.h
<gh_stars>0 #ifndef QTAWESOMEANIMATION_H #define QTAWESOMEANIMATION_H #if __cplusplus <= 199711L #define QTAWESOME_NULL NULL #else #define QTAWESOME_NULL nullptr #endif #include <QObject> class QPainter; class QRect; class QTimer; class QWidget; /// /// Basic Animation Support for QtAwesome (Inspir...
sunziming001/GenDmg
include/GenDmgView/CharacterBriefDelegate.h
<filename>include/GenDmgView/CharacterBriefDelegate.h #ifndef _CHARACTER_BRIEF_DELEGATE_H #define _CHARACTER_BRIEF_DELEGATE_H #include <QStyledItemDelegate> class CharacterBriefDelegate :public QStyledItemDelegate { Q_OBJECT public: CharacterBriefDelegate(QObject* parent); ~CharacterBriefDelegate(); ...
sunziming001/GenDmg
include/GenDmgView/GrowRateFrame.h
#ifndef _GROW_RATE_FRAME_H #define _GROW_RATE_FRAME_H #include <QFrame> #include <QVBoxLayout> #include <QPushButton> #include <QTableView> class GrowRateModel; class GrowRateFrame :public QFrame { Q_OBJECT public: GrowRateFrame(QWidget* parent); ~GrowRateFrame(); private: QFrame *createGrowRate...
sunziming001/GenDmg
include/GenDmgCore/DamageCell.h
#ifndef DAMAGE_CELL_H #define DAMAGE_CELL_H #include <map> enum class DamageType { None, Fire, Water, Wood, Thunder, Wind, Ice, Stone, Physic, Count, }; enum class RelfectType { None, EvaporationFire, EvaporationWater, MeltFire, MeltIce, Overload, Electrified, Su...
sunziming001/GenDmg
include/GenDmgView/CharacterLvPropDelegate.h
<gh_stars>0 #ifndef _CHARACTER_LV_PROP_DELEGATE_H #define _CHARACTER_LV_PROP_DELEGATE_H #include <QStyledItemDelegate> class CharacterLvPropDelegate:public QStyledItemDelegate { Q_OBJECT public: CharacterLvPropDelegate(QObject* parent); virtual QWidget* createEditor(QWidget* parent, const QStyleOptio...
sunziming001/GenDmg
include/GenDmgCore/CharacterConfig.h
#ifndef _CHARACTER_CONFIG_H #define _CHARACTER_CONFIG_H #include "CoreDefine.h" #include "CharacterLvProp.h" #include <vector> #include <functional> class CharacterConfig { public: DLL_EXPORT CharacterConfig(); DLL_EXPORT ~CharacterConfig(); DLL_EXPORT int getId() const; DLL_EXPORT void setId(int va...
sunziming001/GenDmg
include/GenDmgView/CharacterListModel.h
<filename>include/GenDmgView/CharacterListModel.h #ifndef _CHARACTER_LIST_MODEL_H #define _CHARACTER_LIST_MODEL_H #include <QAbstractListModel> #include "GenDmgCore.h" enum class CharacterBriefModelRole { CharacterId = 0x101, ImageUrl, }; class CharacterListModel :public QAbstractListModel { Q_OBJEC...
sunziming001/GenDmg
include/GenDmgCore/CharacterGrowRate.h
<reponame>sunziming001/GenDmg #ifndef _CHARACTER_GROW_RATE_H #define _CHARACTER_GROW_RATE_H #include "CoreDefine.h" #include <map> #include <string> class CharacterGrowRate { public: DLL_EXPORT CharacterGrowRate(); DLL_EXPORT ~CharacterGrowRate(); DLL_EXPORT bool operator<(const CharacterGrowRate& prop...
sunziming001/GenDmg
include/GenDmgCore/CharacterLvProp.h
#ifndef _CHARACTER_LV_PROP_H #define _CHARACTER_LV_PROP_H #include "CoreDefine.h" enum class SpecialPropType { None, AtkPercent, DefPercent, HpPercent, CritRate, CritDmgRate, ChargeEffect, FireAdditon, WaterAddition, WookAddition, ThunderAddition, WindAddition, IceAddition, StoneAdditi...
sunziming001/GenDmg
include/GenDmgCore/DBHelper.h
<filename>include/GenDmgCore/DBHelper.h #ifndef _DB_HELPER_H #define _DB_HELPER_H #include"CharacterBrief.h" #include"CharacterLvProp.h" #include "CharacterGrowRate.h" #include <vector> #include <functional> #define DB_FILE_PATH "./genshin.db" enum class DBType { Integer, Text, Real }; struct sqlit...
sunziming001/GenDmg
include/GenDmgView/ViewI18n.h
#ifndef _VIEW_I18N_H #define _VIEW_I18N_H namespace ViewI18n { void transCollection(); } #endif
sunziming001/GenDmg
include/GenDmgView/WidgetUtil.h
#ifndef _WIDGET_UTIL_H #define _WIDGET_UTIL_H #include <QPushButton> namespace WidgetUtil { QPushButton* createOperBtn(QWidget* parent); QPushButton* createSaveBtn(QWidget* parent); QPushButton* createRevertBtn(QWidget* parent); QPushButton* createAddBtn(QWidget* parent); QPushButton* createDelBtn(QWi...
sunziming001/GenDmg
include/GenDmgCore/GenDmgCore.h
<reponame>sunziming001/GenDmg<gh_stars>0 #ifndef GEN_DMG_CORE_H #define GEN_DMG_CORE_H #include "CoreDefine.h" #include <vector> #include "CharacterBrief.h" #include "CharacterLvProp.h" #include "CharacterGrowRate.h" class GenDmgCore { public: DLL_EXPORT static GenDmgCore* getInstance(); DLL_EXPORT voi...
sunziming001/GenDmg
include/GenDmgCore/CharacterBrief.h
#ifndef CHARACTER_BRIEF_H #define CHARACTER_BRIEF_H #include "CoreDefine.h" #include <string> #include <set> #include "DamageCell.h" class CharacterBrief { public: DLL_EXPORT CharacterBrief(); DLL_EXPORT ~CharacterBrief(); DLL_EXPORT int getId() const; DLL_EXPORT void setId(int val); DLL_EXPOR...
sunziming001/GenDmg
include/GenDmgCore/CoreDefine.h
<reponame>sunziming001/GenDmg #ifndef _CORE_DEFINE_H #define _CORE_DEFINE_H #ifdef MAKE_AS_DLL # define DLL_EXPORT __declspec(dllexport) #else # define DLL_EXPORT __declspec(dllimport) #endif #define MODULE_NAME "GenDmgCore.dll" #endif;
sunziming001/GenDmg
CommonHeader/CommonLogger.h
#ifndef _COMMON_LOGGER_H #define _COMMON_LOGGER_H #include <string> #include <set> #include <iostream> #include <locale> #include <fstream> #include <vector> #include <queue> #include <boost/date_time/posix_time/posix_time.hpp> #include <boost/date_time/posix_time/posix_time_io.hpp> #include <boost/thread/...
sunziming001/GenDmg
include/GenDmgCore/LuaEngine.h
<filename>include/GenDmgCore/LuaEngine.h #ifndef _LUA_ENGINE_H #define _LUA_ENGINE_H #include <string> #include <set> #include "CharacterConfig.h" extern "C" { #include "lua.h" #include "lualib.h" #include "lauxlib.h" }; class LuaEngine { public: static LuaEngine* getInstance(); ~LuaEngi...
domfarolino/compiler
parser/Parser.h
<gh_stars>1-10 #ifndef PARSER_H #define PARSER_H #include <string> #include <queue> #include <utility> #include "../lib/Token.h" #include "../scope/SymbolRecord.h" class Lexer; class ScopeManager; class Parser { public: Parser(const std::string&, Lexer&, ScopeManager&, bool, bool); private: // Members std::s...
domfarolino/compiler
scope/SymbolTable.h
<reponame>domfarolino/compiler #ifndef SYMBOL_TABLE_H #define SYMBOL_TABLE_H #include "SymbolRecord.h" #include <iostream> #include <iomanip> #include <string> #include <unordered_map> class SymbolTable { private: // TODO(domfarolino): If we want to support things like function overloading // we may need to util...
domfarolino/compiler
lexer/Lexer.h
<reponame>domfarolino/compiler #ifndef LEXER_H #define LEXER_H #include <fstream> #include <string> #include <unordered_map> #include "../lib/Token.h" class Lexer { public: std::ifstream source; int lineNumber; int line_number_snapshot_; // Used during short-comment lexing. int nested_block_comment_level_ = ...
domfarolino/compiler
scope/ScopeManager.h
#ifndef SCOPE_MANAGER_H #define SCOPE_MANAGER_H #include "SymbolTable.h" #include "SymbolRecord.h" #include <string> #include <stack> #include <stdexcept> /** * The ScopeManager class is responsible for maintaining a stack of * SymbolTables, of which the top stack is the most local scope that * the parser is in a...
domfarolino/compiler
scope/SymbolRecord.h
#ifndef SYMBOL_RECORD_H #define SYMBOL_RECORD_H #include <string> #include <stdexcept> #include <vector> namespace llvm { class Value; } enum SymbolType { Integer, String, Float, Bool, Char, Procedure }; enum ParameterType { None, In, Out, InOut }; class SymbolRecord { public: /* SymbolReco...
domfarolino/compiler
lib/Token.h
#ifndef TOKEN_H #define TOKEN_H enum class TokenType { // Types TIntegerType, TInteger, TFloatType, TFloat, TStringType, TString, TBoolType, // TTrue, TFalse below TCharType, TChar, TIdentifier, // Whitespace TSpace, TNewline, TTab, // Comments TCommentBegin, TCommentEnd, // Struc...
domfarolino/compiler
codegen/CodeGen.h
#include <map> #include <stack> #include <vector> #include <utility> // for std::tuple. #include <cassert> #include "llvm/IR/Verifier.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/S...
rzh/mongo
src/mongo/client/remote_command_runner.h
<reponame>rzh/mongo /** * Copyright (C) 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope ...
rzh/mongo
src/mongo/s/catalog/replset/catalog_manager_replica_set_test_fixture.h
<gh_stars>0 /** * Copyright (C) 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it ...
rzh/mongo
src/mongo/s/client/multi_command_dispatch.h
/** * Copyright (C) 2013 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
rzh/mongo
src/third_party/wiredtiger/src/txn/txn_ckpt.c
/*- * Copyright (c) 2014-2015 MongoDB, Inc. * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ #include "wt_internal.h" /* * __wt_checkpoint_name_ok -- * Complain if the checkpoint name isn't acceptable. */ int __wt_checkpoint_name_ok...
rzh/mongo
src/mongo/rpc/protocol.h
/** * Copyright (C) 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
rzh/mongo
src/mongo/s/client/shard.h
/** * Copyright (C) 2008-2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be...
rzh/mongo
src/mongo/s/type_locks.h
/** * Copyright (C) 2012 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful...
rzh/mongo
src/mongo/db/curop.h
<gh_stars>0 // @file curop.h /* * Copyright (C) 2010 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in th...
rzh/mongo
src/mongo/client/fetcher.h
/** * Copyright (C) 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
rzh/mongo
src/mongo/db/storage/mmap_v1/btree/btree_ondisk.h
<reponame>rzh/mongo<filename>src/mongo/db/storage/mmap_v1/btree/btree_ondisk.h /** * Copyright (C) 2014 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Fo...
rzh/mongo
src/mongo/executor/network_interface_impl.h
/** * Copyright (C) 2014 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
rzh/mongo
src/mongo/stdx/functional.h
<filename>src/mongo/stdx/functional.h /** * Copyright (C) 2014 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distribu...
rzh/mongo
src/mongo/executor/network_interface_asio.h
<filename>src/mongo/executor/network_interface_asio.h<gh_stars>0 /** * Copyright (C) 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * ...
rzh/mongo
src/mongo/db/query/query_planner_params.h
/** * Copyright (C) 2013 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful...
rzh/mongo
src/mongo/db/repl/scatter_gather_algorithm.h
<reponame>rzh/mongo /** * Copyright 2014 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that...
rzh/mongo
src/mongo/s/catalog/catalog_cache.h
/** * Copyright (C) 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
rzh/mongo
src/mongo/db/namespace_string.h
<gh_stars>0 // @file namespacestring.h /** * Copyright (C) 2008 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed i...
sban2009/STCET
Sem5/D&C/HeapSort.c
<filename>Sem5/D&C/HeapSort.c /*Heap Sort by sban2009 Algorithm by Wikipedia*/ #include<stdio.h> #include<stdlib.h> void swap(int *x,int *y) { int temp=*x; *x=*y; *y=temp; } int iParent(int i) { return ((i-1)/2); } int iLeftChild(int i) { return (2*i + 1); } int iRightChild(int i) { retu...
sban2009/STCET
Sem4/Automata_PDA.c
#include<stdio.h> //for scanf(),printf() #include<stdlib.h> //for malloc() #include<ctype.h> //for toupper() //linked list as stack struct node //node { char symbol; struct node *next; }; struct node *top=NULL; //here, stack top z0 is recognized by NULL struct node* new_node() //node creator { st...
sban2009/STCET
Sem5/Dynamic/chainmatrix.c
<reponame>sban2009/STCET<gh_stars>0 #include<stdio.h> #include<limits.h> // Matrix Ai has dimension p[i-1] x p[i] for i = 1..n void print_bracket(int i,int j,int s[][j+1]) { if(i==j) printf("A%d",i); else { printf("("); print_bracket(i,s[i][j],s); print_bracket(s[i][j]+1,j,s); printf(")"); ...
sban2009/STCET
Sem5/D&C/MaxMinRecursion.c
//MaxMin Problem by sban2009 //Algorithm by tutorialspoint.com #include<stdio.h> #include<stdlib.h> int *a; struct MM { int max,min; }m; struct MM MaxMin(int i,int j) { if(i==j) { m.max=a[i],m.min=a[i]; } else if(i==j-1) { if(a[i]>a[j]) m.max=a[i],m.min=a[j]; else m.max=a[j],m.min=...
sban2009/STCET
Sem5/D&C/MergeSort.c
<filename>Sem5/D&C/MergeSort.c //Merge Sort by sban2009 //Algorithm by mycodeschool #include<stdio.h> #include<stdlib.h> int merge(int* L,int* R,int* A,int nL,int nR) { int i=0,j=0,k=0; while(i<nL && j<nR) if(L[i]<=R[j]) A[k++]=L[i++]; else A[k++]=R[j++]; while(i<nL) A[k++]=L[i++]; wh...
sban2009/STCET
Sem5/D&C/QuickSort.c
//Quicksort by sban2009 //Algorithm by mycodeschool #include<stdio.h> #include<stdlib.h> void swap(int *a,int *b) { int temp=*a; *a=*b; *b=temp; } int partition(int* a,int start,int end) { int pivot=a[end]; int q=start; for(int i=start;i<end;i++) { if(a[i]<=pivot) { swap(&a[i],&a[q]); ...
skalnik/3210-project-1
multi_reader.c
#include <stdio.h> #include <stdlib.h> #include <pthread.h> void *print_message(void *ptr) { sleep(1); printf("Thread #:%ld \n", pthread_self()); } main() { int num_thread = 10; pthread_t threads[num_thread]; int i; for(i=0; i<num_thread; ++i) { pthread_create(&threads[i], NULL, print_message, NUL...
skalnik/3210-project-1
lfprng.c
#include <linux/kernel.h> #include <linux/module.h> #include <linux/proc_fs.h> #include <linux/sched.h> #include <linux/kthread.h> #include <linux/tty.h> #include <linux/vmalloc.h> #include <linux/syscalls.h> #include <linux/sys.h> #include <linux/signal.h> #include <asm/uaccess.h> #define MODULE_NAME "Leap Frog Psued...
skalnik/3210-project-1
hello.c
<filename>hello.c /* hello.c * * "Hello, world" - the loadable kernel module version. * */ /* Declare what kind of code we want from the header files */ #define __KERNEL__ /* We're part of the kernel */ #define MODULE /* Not a permanent part, though. */ /* Standard headers for LKMs */ #include...
iOnRoad/EJKit
EJDemo/EJDemo/BaseTest/TestHandlerPushNotificationResult.h
<filename>EJDemo/EJDemo/BaseTest/TestHandlerPushNotificationResult.h // // TestHandlerPushNotificationResult.h // EJDemo // // Created by iOnRoad on 16/6/7. // Copyright © 2016年 iOnRoad. All rights reserved. // #import <Foundation/Foundation.h> #import "EJPushNotificationManager.h" @interface TestHandlerPushNotif...
iOnRoad/EJKit
EJDemo/Pods/Headers/Public/EJKit/EJCustomTabBarController.h
<filename>EJDemo/Pods/Headers/Public/EJKit/EJCustomTabBarController.h // // EJCustomTabBarController.h // EJDemo // // Created by iOnRoad on 15/4/18. // Copyright (c) 2015年 iOnRoad. All rights reserved. // #import <UIKit/UIKit.h> @interface EJCustomTabBarController : UITabBarController /** * 填充tabBar信息 * * ...
iOnRoad/EJKit
Pod/Classes/EJBase/EJKeyboardViewController.h
<gh_stars>1-10 // // EJKeyboardViewController.h // EJDemo // // Created by iOnRoad on 15/8/15. // Copyright (c) 2015年 iOnRoad. All rights reserved. // #import "EJBaseViewController.h" @interface EJKeyboardViewController : EJBaseViewController @property(nonatomic,assign,readonly) BOOL ej_isKeyboardShow; //键盘是否展现...
iOnRoad/EJKit
EJDemo/Pods/Headers/Public/EJKit/EJCommonRequestModel.h
// // EJCommonRequest.h // EJDemo // // Created by iOnRoad on 16/5/3. // Copyright © 2016年 iOnRoad. All rights reserved. // #import <Foundation/Foundation.h> /* *本类只是个示例,用于请求的公共请求参数对象 *可依据项目在项目中建立新类,并在EJHttpClient调用ej_registerCommonRequestClassName...方法注册 */ @interface EJCommonRequestModel : NSObject //基本参数信息...
iOnRoad/EJKit
Pod/Classes/EJTools/NSString+EJExtension.h
<reponame>iOnRoad/EJKit // // NSString+EJExtension.h // EJDemo // // Created by iOnRoad on 15-4-21. // Copyright (c) 2015年 iOnRoad. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface NSString (EJExtension) ///对字符串进行URL编码和解码 - (NSString*)ej_urlDecode; - (NSString*)ej_urlE...
iOnRoad/EJKit
Pod/Classes/EJTools/UIColor+EJExtension.h
// // UIColor+EJExtension.h // EJDemo // // Created by iOnRoad on 15/8/10. // Copyright (c) 2015年 iOnRoad. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface UIColor (EJExtension) /** * 根据十六进制,生成颜色值 * * @param hexString #000000 * * @return UIColor */ + (UIColor ...
iOnRoad/EJKit
EJDemo/EJDemo/BaseTest/ThirdViewController.h
<reponame>iOnRoad/EJKit // // ThirdViewController.h // EJDemo // // Created by iOnRoad on 16/6/7. // Copyright © 2016年 iOnRoad. All rights reserved. // #import "EJBaseViewController.h" @interface ThirdViewController : EJBaseViewController @end
iOnRoad/EJKit
Pod/Classes/EJHttpKit/EJHttpRequest/EJBaseResponseModel.h
<filename>Pod/Classes/EJHttpKit/EJHttpRequest/EJBaseResponseModel.h // // EJBaseResponse.h // EJDemo // // Created by iOnRoad on 15/8/9. // Copyright (c) 2015年 iOnRoad. All rights reserved. // #import <Foundation/Foundation.h> #import "EJDBBaseModel.h" /** * 网络通用响应业务数据基类,所有请求响应对象均需继承它。 */ @interface EJBaseResp...
iOnRoad/EJKit
EJDemo/EJDemo/BaseTest/Req&Resp/WeatherApiRequestModel.h
<reponame>iOnRoad/EJKit // // WeatherApiRequest.h // EJDemo // // Created by iOnRoad on 16/6/7. // Copyright © 2016年 iOnRoad. All rights reserved. // #import "EJBaseRequestModel.h" @interface WeatherApiRequestModel : EJBaseRequestModel @property(copy,nonatomic) NSString *city; @end
iOnRoad/EJKit
EJDemo/EJDemo/BaseTest/Req&Resp/WeatherApiResponseModel.h
<reponame>iOnRoad/EJKit // // WeatherApiResponse.h // EJDemo // // Created by iOnRoad on 16/6/7. // Copyright © 2016年 iOnRoad. All rights reserved. // #import "EJBaseResponseModel.h" @class WeatherYesterdayResponseModel; @interface WeatherApiResponseModel : EJBaseResponseModel @property(copy,nonatomic) NSString ...
iOnRoad/EJKit
Pod/Classes/EJBase/EJBaseWebController.h
<gh_stars>1-10 // // EJBaseWebController.h // EJDemo // // Created by iOnRoad on 15/8/12. // Copyright (c) 2015年 iOnRoad. All rights reserved. // #import "EJBaseViewController.h" /** * JS调用拦截器协议 */ @protocol EJWebHandleURLInterceptorDelegate <NSObject> //如果要拦截URL集中做处理,创建处理类并实现该Delegate //拦截的URL,如果拦截成功,则需返回NO,...
iOnRoad/EJKit
EJDemo/Pods/Headers/Public/EJKit/NSDate+EJExtension.h
<gh_stars>1-10 // // NSDate+EJExtension.h // EJDemo // // Created by iOnRoad on 15/8/12. // Copyright (c) 2015年 iOnRoad. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface NSDate (EJExtension) + (NSDate *)ej_dateFromString:(NSString*)dateStr format:(NSString*)format; //根...
iOnRoad/EJKit
Pod/Classes/EJManager/EJKitConfigManager.h
<reponame>iOnRoad/EJKit<gh_stars>1-10 // // EJKitConfigManager.h // Pods // // Created by iOnRoad on 16/3/2. // // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "SynthesizeSingleton.h" @interface EJKitConfigManager : NSObject SYNTHESIZE_SINGLETON_FOR_CLASS_HEADER(EJKitConfigManager) //配置文件名,每个...
iOnRoad/EJKit
EJDemo/EJDemo/BaseTest/NextViewController.h
<filename>EJDemo/EJDemo/BaseTest/NextViewController.h // // NextViewController.h // EJDemo // // Created by iOnRoad on 16/6/7. // Copyright © 2016年 iOnRoad. All rights reserved. // #import "EJBaseViewController.h" @interface NextViewController : EJBaseViewController @end
iOnRoad/EJKit
EJDemo/Pods/Headers/Public/EJKit/UIImage+EJExtension.h
<reponame>iOnRoad/EJKit // // UIImage+EJExtension.h // EJDemo // // Created by iOnRoad on 15/7/11. // Copyright (c) 2015年 iOnRoad. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (EJExtension) + (UIImage*)ej_stretchableImageNamed:(NSString*)imageName; //拉伸图片 + (UIImage*)ej_imageWithColor:(UICo...