text stringlengths 5 1.04M |
|---|
// Vaca - Visual Application Components Abstraction
// Copyright (c) 2005-2010 David Capello
//
// This file is distributed under the terms of the MIT license,
// please read LICENSE.txt for more information.
#include "Wg/ProgressBar.hpp"
#include "Wg/Debug.hpp"
#include "Wg/WidgetClass.hpp"
#include "Wg/PreferredSize... |
#pragma once
#ifndef MATHLIB_VEC4
#define MATHLIB_VEC4
#include "Includes.hpp"
/**
* \file Vector4.hpp
*
* \brief Vec4 type implementation.
*/
namespace Mathlib
{
struct Vec2;
struct Vec3;
struct MATHLIBRARY_API Vec4
{
/// Vector's X component
float X = 0.f;
/// Vector's Y component
float Y = 0.f;
/... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "precomp.h"
#include "gdirenderer.hpp"
#include "../../types/inc/Viewport.hpp"
#pragma hdrstop
using namespace Microsoft::Console::Types;
using namespace Microsoft::Console::Render;
// Routine Description:
// - Notifi... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2012-2014 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_... |
/* Copyright 2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/policy/device_network_configuration_updater.h"
#include <map>
#include "ash/constants/ash_switches.h"
#include "base/b... |
#include "menu.h"
#include "imgui/imgui.h"
#include "imgui/imgui_internal.h"
#include "draw_manager.h"
#include "render.h"
#include "values.h"
#include <mutex>
namespace FGInternal {
namespace GENERAL {
bool hide_corner_text = false;
bool disable_safe_values = false;
};
namespace ESP {
bool correct_doors_... |
/*
*
* Copyright (c) 2020 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.ValueType
#include "System/ValueType.hpp"
#include "extern/beatsaber-ho... |
#include <cstring>
#include <stdio.h>
char msg[2][200] = {
"Escaped again! More 2D grid problems!",
"Party time! Let's find a restaurant!"
};
bool rs[10001], cs[10001];
int main() {
int n, m, k, x, y, cse=1;
while (scanf("%d%d%d", &n, &m, &k)==3 && (n||m||k)) {
memset(rs, 0, n);
memset... |
/**
BSD-3-Clause
Copyright 2019 Alliance for Sustainable Energy, LLC
Redistribution and use in source and binary forms, with or without modification, are permitted provided
that the following conditions are met :
1. Redistributions of source code must retain the above copyright notice, this list of conditions
and the... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/toolbar/browser_actions_bar_browsertest.h"
#include "chrome/browser/extensions/browser_action_test_util.h"
#include "chrome/b... |
#pragma once
#include <crea/schema/schema_types/flat_map.hpp>
#include <crea/schema/schema_types/flat_set.hpp>
#include <crea/schema/schema_types/static_variant.hpp>
#include <crea/schema/schema_types/optional.hpp>
#include <crea/schema/schema_types/pair.hpp>
#include <crea/schema/schema_types/vector.hpp>
|
#pragma once
#include <PP/pack/apply_template.hpp>
#include <PP/template_t.hpp>
namespace PP::detail
{
template <typename T>
using add_const_t = const T;
}
namespace PP
{
PP_CIA add_const = Template<detail::add_const_t>;
}
|
#include<iostream>
using namespace std;
int Time[105];
int value[105];
int f[1005];
int main(void){
int T, M;
cin>>T>>M;
for(int i=1; i<=M; i++) {
cin>>Time[i]>>value[i];
}
for(int i=1; i<=M; i++) {
for(int t=T; t>=Time[i]; t--){
f[t] = max(f[t], f[t-Time[i]]+value[i]);
}
}
cout<<f[T]<<endl;
}
|
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
* OGF/Graphite: Geometry and Graphics Programming Library + Utilities
* Copyright (C) 2000-2005 INRIA - Project ALICE
*
* 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 versi... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2010 Hauke Heibel <hauke.heibel@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a c... |
#ifndef STAN_MATH_FWD_SCAL_FUN_COSH_HPP
#define STAN_MATH_FWD_SCAL_FUN_COSH_HPP
#include <stan/math/fwd/meta.hpp>
#include <stan/math/fwd/core.hpp>
#include <cmath>
namespace stan {
namespace math {
template <typename T>
inline fvar<T> cosh(const fvar<T>& x) {
using std::cosh;
using std::sinh;
return fvar<T>(c... |
/*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx... |
#include <sstream>
#include <vector>
#include <algorithm>
#include "algol/stream/istream_range.hpp"
#include "gtest/gtest.h"
using istream_range = algol::stream::istream_range<uint32_t>;
class istream_range_fixture : public ::testing::Test {
protected:
std::istringstream sin_empty {""};
istream_range ir_empty {s... |
/*#include <fstream>
#include <utility>
#include <vector>
#include "IdentityFunction.h"
#include "HyperbolicTangent.h"
#include "MultiLayerPerceptron.h"
#include "PerceptronTrainer.h"
int main() {
mlp::MultiLayerPerceptron<double> network(1, {
{17, mlp::HyperbolicTangent<double>()},
{1, mlp::IdentityFunction<doub... |
/*
* Copyright 2010, Haiku, Inc. All rights reserved.
* Copyright 2008, Pier Luigi Fiorini.
* Distributed under the terms of the MIT License.
*
* Authors:
* Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
* Stephan Aßmus <superstippi@gmx.de>
*/
#include <stdio.h>
#include <stdlib.h>
#include <Application.h... |
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... |
//===- FunctionComparator.cpp - Unit tests for FunctionComparator ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/****************************************************************************
*
* Copyright (c) 2021 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
#include "config_functions.h"
#if USE_H3
#include <Columns/ColumnsNumber.h>
#include <DataTypes/DataTypesNumber.h>
#include <Functions/FunctionFactory.h>
#include <Functions/IFunction.h>
#include <IO/WriteHelpers.h>
#include <Common/typeid_cast.h>
#include <base/range.h>
#include <constants.h>
#include <h3api.h>
n... |
#include "ValueComboBox.hpp"
#include <iostream>
namespace protobuf_decoder
{
ValueComboBox::ValueComboBox(const std::vector<std::string>& iValues)
{
setValues(iValues);
set_margin_bottom(20);
}
void ValueComboBox::setValues(const std::vector<std::string>& iVal... |
#include "iostream"
#include "linkedlist.h"
#include "doublylinkedlist.h"
using namespace linkedlist;
int main()
{
LinkedList linkedList;
linkedList.print();
std::cout << "is linkedlist empty=" << std::boolalpha << linkedList.empty() << std::endl;
linkedList.add(3);
linkedList.add(1);
linkedList.add(5);
... |
//
// XYO Win Library
//
// Copyright (c) 2018-2019 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#ifndef XYO_WIN_REGISTRY_H
#define XYO_WIN_REGISTRY_H
#ifndef XYO_WIN_HPP
#include "xyo-win.hpp"
#endi... |
/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** ... |
/*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS... |
#include <hackerrank_gtest.h>
#include "angry_professor.h"
namespace hackerrank {
namespace bmgandre {
namespace algorithms {
namespace implementation {
using angry_professor_test = hackerrank::bmgandre::tests::hackerrank_gtest;
TEST_F(angry_professor_test, test_case_1) {
input_stream << "2\n4 3\n-1 -3 4 2\n4 2\n0... |
/*
* Copyright (c) 2011-2021, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
//=================================================================================================
/*!
// \file src/mathtest/dvecdvecsub/V5bV5b.cpp
// \brief Source file for the V5bV5b dense vector/dense vector subtraction math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// This fil... |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/api/api-inl.h"
#include "src/codegen/assembler-inl.h"
#include "src/execution/isolate.h"
#include "src/heap/factory.h"
#include "src/heap/... |
/*
Что будет в таком случае?)
Сколько раз будет вызван деструктор.
Когда это приведет к ошибке, а когда нет?
*/
struct A{
A(){}
~A(){}
};
int main()
{
A a;
a.~A();
return 0;
}
|
// 中等 思路是有的,一直做一直错,做了60分钟
class Solution {
public:
vector<vector<int>> generateMatrix(int n) {
vector<vector<int>> res(n, vector<int>(n, 0));
if (n < 1) return res;
int num = (n + 1) / 2;
int cur = 0;
for (int i = 0; i < num; i++) {
int len = n - i * 2;
int c = max(1, len * 4 - 4);
for (int j = 0; j... |
#include "simple_cpp/some_lib/some_lib.hpp"
#include <cassert>
#include <iostream>
int main()
{
fly::SomeClass sc(15);
assert(sc() == 15);
std::cout << "Passed!\n";
return 0;
}
|
/*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/aligned_memory.h"
#include "shared/test/common/mocks/mock_gmm_resource_info.h"
namespace NEO {
GmmResourceInfo *GmmResourceInfo::create(GmmClientContext *clientContext, GMM_RESCREATE_PARAMS *resou... |
/*
O Despertar da Força
https://www.urionlinejudge.com.br/judge/pt/problems/view/2163
*/
#include <iostream>
#include <utility>
using namespace std;
typedef pair<int, int> ii;
ii procurar(const int **terreno, int N, int M);
bool procurar_arredores(const int **terreno, int i, int j);
int main(void) {
ios::sync_... |
#include "stdafx.h"
#include "UIOption.h"
namespace DuiLib
{
COptionUI::COptionUI() : m_bSelected(false), m_dwSelectedTextColor(0)
{
}
COptionUI::~COptionUI()
{
if( !m_sGroupName.IsEmpty() && m_pManager ) m_pManager->RemoveOptionGroup(m_sGroupName, this);
}
LPCTSTR COptionUI::GetClass() const
... |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#include "drpch.h"
#include "Renderer.h"
namespace Dray
{
void Renderer::BeginScene()
{
}
void Renderer::EndScene()
{
}
void Renderer::Submit(const std::shared_ptr<VertexArray>& vao)
{
RenderCommand::DrawIndexed(vao);
}
}
|
#include <iostream>
using namespace std;
int maior_numero_com_digitos_de(string num){
char aux;
while(true){
bool troca = false;
for(int i=0; i < num.length()-1; i++){
if(num[i] < num[i+1]){
aux = num[i];
num[i] = num[i+1];
num[i+1] =... |
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 %s
void foo() {
}
bool foobool(int argc) {
return argc;
}
struct S1; // expected-note {{declared here}}
template <class T, class S> // expected-note {{declared here}}
int tmain(T argc, S **argv) {
int i;
#pragma omp target simd if // expected-error {{exp... |
//===- unittest/Tooling/CleanupTest.cpp - Include insertion/deletion tests ===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright (c) 2018-2020 The PIVX developers
// Copyright (c) 2020-2021 The NestEgg Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "zpivchain.h"
#include "guiinterface.h"
#include "invalid.h"
#includ... |
#include<iostream>
using namespace std;
int main()
{
int i , j;
int array[9][9];
for(i=0;i<9;i++)
{
for(j=0;j<9;j++)
{
cin>>array[i][j];
}
}
return 0;
}
|
//===- CalyxDialect.cpp - Implement the Calyx dialect ---------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
//===- lib/Tooling/Execution.cpp - Implements tool execution framework. ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//-----------------------------------
// Copyright Pierric Gimmig 2013-2017
//-----------------------------------
#include "PluginCanvas.h"
#include "../OrbitPlugin/OrbitSDK.h"
//-----------------------------------------------------------------------------
PluginCanvas::PluginCanvas(Orbit::Plugin* a_Plugin)
: Gl... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE789_Uncontrolled_Mem_Alloc__malloc_char_fscanf_81_bad.cpp
Label Definition File: CWE789_Uncontrolled_Mem_Alloc__malloc.label.xml
Template File: sources-sinks-81_bad.tmpl.cpp
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: fscanf Rea... |
#include <QtCore>
#include "currencymodel.h"
CurrencyModel::CurrencyModel(QObject *parent) : QAbstractTableModel(parent) { }
void CurrencyModel::setCurrencyMap(const QMap<QString, double> &map)
{
currencyMap = map;
//reset();
beginResetModel();
endResetModel();
}
int CurrencyModel::rowCount(const QM... |
#include "simppl/detail/util.h"
#include <cstring>
#include <cassert>
#include <cstdio>
namespace simppl
{
namespace dbus
{
namespace detail
{
char* create_objectpath(const char* iface, const char* role)
{
size_t capacity = strlen(role) + strlen(iface) + 3;
char* objectpath = new char[capacity];
sprint... |
/**
* Copyright 2019-2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
#include <iostream>
#include <fstream>
#include <cassert>
#include <string.h>
#include <sstream>
#include "cartesian.hpp"
#include "coord.hpp"
#include "fields.hpp"
#include <mpi.h>
using namespace std;
fields::fields(const char* filename, const int ndim_in, const int mode_in, const string material_in, const cartesia... |
/*=========================================================================
Program: ParaView
Module: vtkSMProperty.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY;... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The Pivx developers
// Copyright (c) 2018 The Myce developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-lic... |
#include <stdexcept>
#include "LoadSaveVehicleType.h"
#include "SaveLoadGame.h"
#include "Soldier_Find.h"
#include "Vehicles.h"
#include "Strategic_Pathing.h"
#include "Assignments.h"
#include "Strategic_Movement.h"
#include "Squads.h"
#include "Map_Screen_Helicopter.h"
#include "Game_Clock.h"
#include "Overhead.h"
#i... |
/*
Copyright (C) 2004-2008 René Nyffenegger
This source code is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including... |
/**
* Copyright (c) 2015, Jozef Stefan Institute, Quintelligence d.o.o. and contributors
* All rights reserved.
*
* This source code is licensed under the FreeBSD license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifdef GLib_WIN
/////////////////////////////////////////////////
... |
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main author: Miguel Angel Celigueta
//
#if !defin... |
/* =====================================================================================
* Utilitiy functions, macros and templates for binding C++ code to Lua easily
*
* Copyright (C) 2018 Jonas Møller (no) <jonas.moeller2@protonmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary for... |
#include "lib.h"
#include <stdio.h>
void sayHi()
{
printf("Hello from dynamic library\n");
}
|
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2018 The LINC Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coincontroldialo... |
#ifndef CALCULATOR_HPP_
#define CALCULATOR_HPP_
#include "bookkeeper.hpp"
#include "parser.hpp"
class Calculator {
public:
void StartCalculation(const std::string incoming_expression);
private:
Bookkeeper bookkeeper_;
Parser parser_;
};
#endif // CALCULATOR_HPP_
|
#include "sparta/utils/LockedValue.hpp"
#include "sparta/utils/ValidValue.hpp"
#include "sparta/utils/SpartaTester.hpp"
#include <iostream>
TEST_INIT;
#define PRINT_ENTER_TEST \
std::cout << std::endl; \
std::cout << "*************************************************************" \
<< "*** Beginning ... |
/* replace a given class value with NAN */
#include"misc.h"
int main(int argc, char ** argv){
if(argc < 2) err("class_replace_nan [input binary (classification) file name]");
int start_0 = argc > 2;
str fn(argv[1]); // input file name
str ofn(fn + str("_recode.bin"));
str ohfn(fn +str("_recode.hdr"));
str... |
//===-- BackgroundIndexLoader.cpp - ---------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
* Copyright 2019-2020 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... |
#include "../myoddweb.directorywatcher.win/utils/Threads/CallbackWorker.h"
#include "pch.h"
#include "../myoddweb.directorywatcher.win/utils/Threads/WorkerPool.h"
#include "../myoddweb.directorywatcher.win/utils/Threads/Worker.h"
#include "../myoddweb.directorywatcher.win/utils/Wait.h"
#include "MonitorsManagerTestHelp... |
//
// Copyright 2018 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
/*
* Copyright (C) 2009-2014, Computing Systems Laboratory (CSLab), NTUA.
* Copyright (C) 2009-2011, Kornilios Kourtis
* Copyright (C) 2011-2014, Vasileios Karakasis
* Copyright (C) 2011-2012, Theodoros Gkountouvas
* Copyright (C) 2013, Athena Elafrou
* All rights reserved.
*
* This file is distributed und... |
#include <boost/asio.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/assign/list_inserter.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <iostream>
#include <istream>
#include <ostream>
#include <string>
#include <sstream>
#include <mutex>
#include <Brokers/Sina/sinadatafeed.h>
#include <... |
#include <Model/ArrSessionManager.h>
#include <QDebug>
#include <ViewModel/ModelEditor/Scene/SceneTreeModel.h>
SceneTreeModel::SceneTreeModel(ArrSessionManager* sessionManager, QObject* parent)
: QAbstractItemModel(parent)
, m_sessionManager(sessionManager)
{
QObject::connect(sessionManager, &ArrSessionMan... |
#include "pch.h"
#include "ElementParserRegistration.h"
#include "ChoiceSetInput.h"
#include "ColumnSet.h"
#include "Container.h"
#include "DateInput.h"
#include "FactSet.h"
#include "Image.h"
#include "ImageSet.h"
#include "Media.h"
#include "NumberInput.h"
#include "TextBlock.h"
#include "TextInput.h"
#include "TimeI... |
/**
* @file CpuRaw.cpp
* @brief CpuRaw class implementation.
* @author zer0
* @date 2018-01-10
*/
#include <libtbag/gpu/cpu/CpuRaw.hpp>
#include <libtbag/log/Log.hpp>
// -------------------
NAMESPACE_LIBTBAG_OPEN
// -------------------
namespace gpu {
namespace cpu {
// ---------------
namespace __impl {
... |
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/application/common/application_storage_constants.h"
#include "base/strings/stringprintf.h"
namespace xwalk {
namespace application_stora... |
#include "taglistentry.hpp"
namespace clover {
namespace ui { namespace hid {
util::Map<ContextChannel::Name, TagListEntry::TagList> TagListEntry::tagLists;
TagListEntry::TagListEntry(const ContextChannel::Name& channel_name_, const Context::Tag& tag_)
: channelName(channel_name_)
, tag(tag_)
, iterator(endIter())... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fs/transaction/writeback.h>
#include <zircon/assert.h>
#include <zxtest/zxtest.h>
namespace fs {
namespace {
// Number of device blocks per o... |
/*
Copyright 2017 Glen Joseph Fernandes
<glenjofe -at- gmail.com>
Distributed under the Boost Software License,
Version 1.0. (See accompanying file LICENSE_1_0.txt
or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "test.hpp"
#include "check_type.hpp"
#ifdef TEST_STD
#include <type_traits>
#e... |
#include "Angular_Discretization_Factory.hh"
#include "Angular_Discretization.hh"
#include "Gauss_Legendre_Quadrature.hh"
#include "LDFE_Quadrature.hh"
using namespace std;
Angular_Discretization_Factory::
Angular_Discretization_Factory()
{
}
shared_ptr<Angular_Discretization> Angular_Discretization_Factory::
get_a... |
#include "../PVZ.h"
PVZ::Lawnmover::Lawnmover(int indexoraddress)
{
if (indexoraddress > 1024)
BaseAddress = indexoraddress;
else
BaseAddress = Memory::ReadMemory<int>(PVZBASEADDRESS + 0x100) + indexoraddress * 0x48;
#if _DEBUG
DebugType = Type;
#endif
} |
#include "objects.h"
#include "objects/objects.h"
#include "BlinkerSystem.h"
#include "scb/ScbHal.h"
#include "rcc/RccHal.h"
#include "flash/FlashHal.h"
#include "pwr/PwrHal.h"
#include "gpio/GpioDriver.h"
#include "systick/SysTickHal.h"
#include <array>
#include "irq/IrqAdapterTable.h"
#include "irq.h"
namespace ... |
#include "stdafx.h"
#include "PonyGameXInput.h"
bool PonyGame::ButtonPressed(const int userIndex, WORD button)
{
XINPUT_STATE state;
ZeroMemory(&state, sizeof(XINPUT_STATE));
DWORD dwResult = XInputGetState(userIndex, &state);
return dwResult == ERROR_SUCCESS && state.Gamepad.wButtons & button;
}
PONYGAMENATIVE... |
#include<iostream>
#include<process.h>
#include "../include/operation.h"
void menu_choice(INFO *info){
// if (info->_page > 100) return ;
std::cout << "\n_page = " << info->_page << "\n" << std::endl;
std::cout << "Choose your operation: ";
std::cin.getline(info->command, 256);
std::cin.clear();
... |
/******************************************************************************
*
* Project: PCI .aux Driver
* Purpose: Implementation of PAuxDataset
* Author: Frank Warmerdam, warmerdam@pobox.com
*
******************************************************************************
* Copyright (c) 1999, Frank War... |
/**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* 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 publishe... |
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "lib/zip/unique_unzipper.h"
#include "third_party/zlib/contrib/minizip/unzip.h"
namespace zip {
void UniqueUnzipperTraits::Free(void* file) {
... |
/*
* Copyright (C) 2015 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
/*
* Copyright (c) 2021, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
#include "thread_pool.h"
#include "common.h"
#include "utils/arguments.h"
#include "p4... |
////////////////////////////////////////////////////////////////////////////
// Module : property_integer.hpp
// Created : 07.12.2007
// Modified : 07.12.2007
// Author : Dmitriy Iassenev
// Description : integer property implementation class
///////////////////////////////////////////////////////////////////////... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/invalidation/impl/invalidation_prefs.h"
namespace invalidation {
namespace prefs {
// An ID to uniquely identify this client to the... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//————————————————————————————————————————————————————————————————————————————————————————————————————————————————
/*
... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright noti... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.