blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 905
values | visit_date timestamp[us]date 2015-08-09 11:21:18 2023-09-06 10:45:07 | revision_date timestamp[us]date 1997-09-14 05:04:47 2023-09-17 19:19:19 | committer_date timestamp[us]date 1997-09-14 05:04:47 2023-09-06 06:22:19 | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-07 00:51:45 2023-09-14 21:58:39 ⌀ | gha_created_at timestamp[us]date 2008-03-27 23:40:48 2023-08-21 23:17:38 ⌀ | gha_language stringclasses 141
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 10.4M | extension stringclasses 115
values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bce51da274390712f996b5a96c9fc1b39f8e5c5d | e7531284a45eb6feaddd6272e98b524d41513679 | /lib/opencv/modules/imgproc/box_filter.simd_declarations.hpp | 57ebc4a91cf784738c4e8b13056d458f3999ceae | [] | no_license | ChocolateChipKookie/wallflower | 024517c2cd49fea7b3a530cdb600d84df255d66c | 5ebaa244d6d93be04a39f1bdbc92bf7cdb705e3b | refs/heads/master | 2023-08-14T08:53:00.560322 | 2021-09-12T11:55:08 | 2021-09-12T11:55:08 | 405,627,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | hpp | #define CV_CPU_SIMD_FILENAME "/home/kookie/Documents/Projects/c++/lib/opencv/opencv-4.5.3/modules/imgproc/src/box_filter.simd.hpp"
#define CV_CPU_DISPATCH_MODE SSE4_1
#include "opencv2/core/private/cv_cpu_include_simd_declarations.hpp"
#define CV_CPU_DISPATCH_MODE AVX2
#include "opencv2/core/private/cv_cpu_include_simd_declarations.hpp"
#define CV_CPU_DISPATCH_MODES_ALL AVX2, SSE4_1, BASELINE
#undef CV_CPU_SIMD_FILENAME
| [
"adi.causevic7@gmail.com"
] | adi.causevic7@gmail.com |
18c351661cf0d953221d2bbff990091e7cacb4cb | 97dc80e5980f0a209df82173f9bd8dd755a7de5a | /Shiki/kern_resources.hpp | b6a4ecac2eb56e13f8f3febfeae286f10d160a1c | [
"BSD-3-Clause"
] | permissive | fRzzy/Shiki | c0245fb86c4aecb5f7ed0c00536c3415d258f31a | b23dcbfe943c3d7527fb0bce1d90c6898616ffa4 | refs/heads/master | 2021-08-19T23:54:59.502026 | 2017-11-27T18:35:28 | 2017-11-27T18:35:28 | 112,153,519 | 0 | 0 | null | 2017-11-27T05:53:15 | 2017-11-27T05:53:15 | null | UTF-8 | C++ | false | false | 1,036 | hpp | //
// kern_resources.hpp
// Shiki
//
// Copyright © 2016-2017 vit9696. All rights reserved.
//
// This is an autogenerated file!
// Please avoid any modifications!
//
#include <Headers/kern_user.hpp>
#include <stdint.h>
extern UserPatcher::BinaryModInfo ADDPR(binaryMod)[];
extern const size_t ADDPR(binaryModSize);
extern UserPatcher::ProcInfo ADDPR(procInfo)[];
extern const size_t ADDPR(procInfoSize);
// Section list
enum : uint32_t {
SectionUnused = 0,
SectionNDRMI = 1,
SectionNSTREAM = 2,
SectionFCPUID = 3,
SectionOFFLINE = 4,
SectionBGRA = 5,
SectionNVDA = 6,
SectionKEGVA = 7,
SectionBOARDID = 8,
};
| [
"vit9696@users.noreply.github.com"
] | vit9696@users.noreply.github.com |
fbedaa48a07c9d3373e5623ec451f4edb8880709 | 548fb3cfbdaaf63dba229e1f726fa844a0e8f2c8 | /doPiano__/doPiano__.ino | 6d2b212bad215ec01a8dd28799c3c5369f52c46b | [] | no_license | ChapResearch/Fruit-Spiral | 7823ca75bc6f10e86cbd6fa05e7c6331d89df831 | 31357426964c83662a282e97a7091db80090bb3d | refs/heads/master | 2021-01-10T18:14:27.352151 | 2015-10-31T02:18:59 | 2015-10-31T02:18:59 | 45,285,426 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 179 | ino | void loop(){
doPiano();
}
void doPiano(){
int note = readTouchInput;
for(int x = 0; x < 12; x++){
if(note == x){
playNoise('n',x);
delay(500);
}
}
}
| [
"sidharths00@gmail.com"
] | sidharths00@gmail.com |
cfb98e008c8da1d0d0fd5c1baa6bbe10e786c5e0 | ea360c036092bd4634a98e112b97ebfbfda70e7f | /1028.cpp | 1ad71413f0d3805ab9cb5e07b1c98710b4354a5d | [] | no_license | lilexuan/pat_b | 7cab4509e666d3218fb6b825acfb12395da74e5c | e518e7d465ee8c9242b7a008ab602d3ae0520fd2 | refs/heads/master | 2021-08-31T11:33:56.204856 | 2017-12-21T07:04:07 | 2017-12-21T07:04:07 | 110,665,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,630 | cpp | #include <cstdio>
using namespace std;
struct people {
char name[10];
int year, month, day;
bool legal;
};
bool compare(people a, people b);
int main()
{
int n;
scanf("%d",&n);
people p[n], max, min;
max.day = max.month = max.year = 0;
min.day = min.month = min.year = 3000;
for (int i = 0; i < n; i++) {
scanf("%s%d/%d/%d", p[i].name, &p[i].year, &p[i].month, &p[i].day);
if (p[i].year > 2014 || p[i].year < 1814)
p[i].legal = false;
else if (p[i].year == 2014 && p[i].month > 9)
p[i].legal = false;
else if (p[i].year == 2014 && p[i].month == 9 && p[i].day > 6)
p[i].legal = false;
else if (p[i].year == 1814 && p[i].month < 9)
p[i].legal = false;
else if (p[i].year == 1814 && p[i].month == 9 && p[i].day < 6)
p[i].legal = false;
else
p[i].legal = true;
if (p[i].legal) {
if (compare(p[i], max))
max = p[i];
if (!compare(p[i], min))
min = p[i];
}
}
int cnt = 0;
for(int i=0;i<n;i++){
if(p[i].legal)
cnt++;
}
if(cnt)
printf("%d %s %s", cnt, min.name, max.name);
else
printf("0");
return 0;
}
bool compare(people a, people b)
{
if (a.year < b.year)
return false;
else if (a.year > b.year)
return true;
if (a.month < b.month)
return false;
else if (a.month > b.month)
return true;
if (a.day < b.day)
return false;
else if (a.day > b.day)
return true;
}
| [
"834524281@qq.com"
] | 834524281@qq.com |
ea57b80a558aff63585300c51f6b3a9eb45611c5 | 38dbb429a776a6a87a7b25d572c0066505c3ac03 | /CodeForces/Educational Codeforces Round 40/B.cpp | f7950e567fe8493a95c87dccee1ee53f072dd29c | [] | no_license | EulerLee/OJ | 796e9d42d000cdc45af478fe664d6235d97772df | 7f5c2d4a3def7287f93ce4d1888d5d98f3b4276e | refs/heads/master | 2022-11-11T09:14:13.899256 | 2022-11-03T10:59:26 | 2022-11-03T10:59:26 | 66,716,354 | 7 | 1 | null | 2016-09-27T08:02:23 | 2016-08-27T13:41:30 | C++ | UTF-8 | C++ | false | false | 646 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define REP(i, n) for(ll i = 0; i < n; ++i)
#define RANGE(i, x, n) for(ll i = x; i < n; ++i)
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
string s;
cin >> s;
int ans = 0;
if(n < 4) {
cout << n << endl;
}else {
int len = 1;
RANGE(i, 2, n/2 + 1) {
string s1(s.begin(), s.begin() + i);
string s2(s.begin() + i, s.begin() + 2*i);
if(s1 == s2) {
len = i;
}
}
cout << n-len+1 << endl;
}
}
| [
"euler19960402@gmail.com"
] | euler19960402@gmail.com |
7c90a92398bed426e4dc179d501454a564dcf0c0 | 01a42b69633daf62a2eb3bb70c5b1b6e2639aa5f | /SCUM_Stabproof_Vest_01_classes.hpp | bd3ea4b817361ac1ac944e4ac36f93398fbca7de | [] | no_license | Kehczar/scum_sdk | 45db80e46dac736cc7370912ed671fa77fcb95cf | 8d1770b44321a9d0b277e4029551f39b11f15111 | refs/heads/master | 2022-07-25T10:06:20.892750 | 2020-05-21T11:45:36 | 2020-05-21T11:45:36 | 265,826,541 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 811 | hpp | #pragma once
// Scum 3.79.22573 (UE 4.24)
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace Classes
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass Stabproof_Vest_01.Stabproof_Vest_01_C
// 0x0000 (0x0730 - 0x0730)
class AStabproof_Vest_01_C : public AClothesItem
{
public:
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("BlueprintGeneratedClass Stabproof_Vest_01.Stabproof_Vest_01_C");
return ptr;
}
void UpdateMaterialParamsOnClients();
void SetDirtiness(float* dirtiness);
void OnRep_MaterialParameters();
int GetWarmth();
int GetCapacityY();
int GetCapacityX();
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"65712402+Kehczar@users.noreply.github.com"
] | 65712402+Kehczar@users.noreply.github.com |
75a73a2e7dcb21319290ece2d83c60f0138a50d3 | 5eaf5d6ab0c809123f18d7e4f04436a73adb7317 | /week10/part_6.cpp | 5982259281f8116643384da92cb4e9c232bf15ee | [] | no_license | yw778/pku_c- | d78448d79fa26b20437db69f1496b87bdc3e2467 | 2edc6d7dc8111833a0ee425fd946d759ac48e260 | refs/heads/master | 2021-05-05T21:43:16.529336 | 2018-02-19T02:38:49 | 2018-02-19T02:38:49 | 115,864,306 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,735 | cpp | #include <cstring>
#include <cstdlib>
#include <string>
#include <iostream>
using namespace std;
// 在此处补充你的代码
struct MyString{
string str;
MyString() {}
MyString(const char* _char):str(_char){}
MyString(const string& s1):str(s1){}
MyString(const MyString& s1):str(s1.str) {}
char& operator[](int i) {
return str[i];
}
string operator()(int i, int j) {
return str.substr(i, j);
}
MyString& operator=(const MyString& s) {
this->str = s.str;
return *this;
}
MyString& operator=(const char* s) {
this->str = s;
return *this;
}
MyString operator+=(const char* s2) {
this->str += s2;
return *this;
}
bool operator<(const MyString& s) {
return this->str < s.str;
}
bool operator==(const MyString& s) {
return this->str == s.str;
}
bool operator>(const MyString& s) {
return this->str > s.str;
}
};
MyString operator+(const MyString& s1, const char* s2) {
return MyString(s1.str + s2);
}
MyString operator+(const MyString& s1, const MyString& s2) {
return MyString(s1.str + s2.str);
}
ostream& operator<<(ostream& out, const MyString& tmp) {
out << tmp.str;
return out;
}
MyString operator+(const char * s1, MyString s2) {
return s1 + s2.str;
}
int CompareString( const void * e1, const void * e2)
{
MyString * s1 = (MyString * ) e1;
MyString * s2 = (MyString * ) e2;
if( * s1 < *s2 )
return -1;
else if( *s1 == *s2)
return 0;
else if( *s1 > *s2 )
return 1;
}
int main()
{
MyString s1("abcd-"),s2,s3("efgh-"),s4(s1);
MyString SArray[4] = {"big","me","about","take"};
cout << "1. " << s1 << s2 << s3<< s4<< endl;
s4 = s3;
s3 = s1 + s3;
cout << "2. " << s1 << endl;
cout << "3. " << s2 << endl;
cout << "4. " << s3 << endl;
cout << "5. " << s4 << endl;
cout << "6. " << s1[2] << endl;
s2 = s1;
s1 = "ijkl-";
s1[2] = 'A' ;
cout << "7. " << s2 << endl;
cout << "8. " << s1 << endl;
s1 += "mnop";
cout << "9. " << s1 << endl;
s4 = "qrst-" + s2;
cout << "10. " << s4 << endl;
s1 = s2 + s4 + " uvw " + "xyz";
cout << "11. " << s1 << endl;
qsort(SArray,4,sizeof(MyString),CompareString);
for( int i = 0;i < 4;i ++ )
cout << SArray[i] << endl;
//s1的从下标0开始长度为4的子串
cout << s1(0,4) << endl;
//s1的从下标5开始长度为10的子串
cout << s1(5,10) << endl;
return 0;
} | [
"yw3025@columbia.edu"
] | yw3025@columbia.edu |
8f80c67e6340c8ba17637c72a56cd7ebb8191ac8 | 2d94b8047547395763e616d500a7af9dab2b3ccd | /Source/Final/Breakout/Breakout/App.xaml.cpp | aff17a86503167c4f6be7fcf77f4dca9b3844c8e | [
"MIT"
] | permissive | Microsoft-Build-2016/CodeLabs-GameDev-3-ANGLE | fee9156855228c03c07993d5cacf66ef498cb806 | 7eddd9c6180251bd2cd04620ffffd3b71323dddd | refs/heads/master | 2020-05-29T12:24:01.004274 | 2016-03-31T11:50:14 | 2016-03-31T11:50:14 | 53,701,839 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 4,906 | cpp | //
// App.xaml.cpp
// Implementation of the App class.
//
#include "pch.h"
#include "App.xaml.h"
using namespace Breakout;
using namespace Platform;
using namespace Windows::ApplicationModel;
using namespace Windows::ApplicationModel::Activation;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Controls::Primitives;
using namespace Windows::UI::Xaml::Data;
using namespace Windows::UI::Xaml::Input;
using namespace Windows::UI::Xaml::Interop;
using namespace Windows::UI::Xaml::Media;
using namespace Windows::UI::Xaml::Navigation;
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
App::App()
{
InitializeComponent();
Suspending += ref new SuspendingEventHandler(this, &App::OnSuspending);
Resuming += ref new EventHandler<Object^>(this, &App::OnResuming);
}
/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
void App::OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e)
{
#if 0
#if _DEBUG
// Show graphics profiling information while debugging.
if (IsDebuggerPresent())
{
// Display the current frame rate counters
DebugSettings->EnableFrameRateCounter = true;
}
#endif
#endif
// if our app is prelaunched do nothing
// see https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/handle-app-prelaunch
if (e->PrelaunchActivated)
{
return;
}
auto rootFrame = dynamic_cast<Frame^>(Window::Current->Content);
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == nullptr)
{
// Create a Frame to act as the navigation context and associate it with
// a SuspensionManager key
rootFrame = ref new Frame();
rootFrame->NavigationFailed += ref new Windows::UI::Xaml::Navigation::NavigationFailedEventHandler(this, &App::OnNavigationFailed);
if (e->PreviousExecutionState == ApplicationExecutionState::Terminated)
{
// TODO: Restore the saved session state only when appropriate, scheduling the
// final launch steps after the restore is complete
}
if (rootFrame->Content == nullptr)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
}
// Place the frame in the current Window
Window::Current->Content = rootFrame;
// Ensure the current window is active
}
if (rootFrame->Content == nullptr)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame->Content = mPage = ref new OpenGLESPage(&mOpenGLES);
}
// Ensure the current window is active
Window::Current->Activate();
}
/// <summary>
/// Invoked when application execution is being suspended. Application state is saved
/// without knowing whether the application will be terminated or resumed with the contents
/// of memory still intact.
/// </summary>
/// <param name="sender">The source of the suspend request.</param>
/// <param name="e">Details about the suspend request.</param>
void App::OnSuspending(Object^ sender, SuspendingEventArgs^ e)
{
(void)sender; // Unused parameter
(void)e; // Unused parameter
//TODO: Save application state and stop any background activity
}
/// <summary>
/// Invoked when application execution is being resumed.
/// </summary>
/// <param name="sender">The source of the suspend request.</param>
/// <param name="e">Details about the suspend request.</param>
void App::OnResuming(Platform::Object ^sender, Platform::Object ^args)
{
(void)sender; // Unused parameter
(void)args; // Unused parameter
//TODO: Save application state and stop any background activity
}
/// <summary>
/// Invoked when Navigation to a certain page fails
/// </summary>
/// <param name="sender">The Frame which failed navigation</param>
/// <param name="e">Details about the navigation failure</param>
void App::OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e)
{
throw ref new FailureException("Failed to load Page " + e->SourcePageType.Name);
} | [
"dalestam@microsoft.com"
] | dalestam@microsoft.com |
768b30885c8942f3241fa68eec5310b273fb64ab | 37a02564013f2132679f15eb78115809d6fe0ecb | /Source/Random.hh | 404f8a1e305a0efaa39907dbe09c056f55ea5eee | [] | no_license | tjcorona/KnightsTour | aff59d80808de2350d58bb7b116cfd2edf47e2f2 | 195ae7fbca1c6310d03cd9c9ce8a732bdc03659d | refs/heads/master | 2021-01-17T03:03:52.507258 | 2015-02-26T18:05:10 | 2015-02-26T18:05:10 | 30,651,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | hh | #ifndef SURANDOM_HH
#define SURANDOM_HH
#include <limits>
#include <vector>
class Random
{
public:
static Random& GetInstance();
void Seed(unsigned) const;
unsigned Uniform(unsigned max=std::numeric_limits<unsigned>::max()) const;
template <typename Element>
void Shuffle(std::vector<Element>& vec) const;
private:
Random();
static Random* fInstance;
};
template <typename Element>
void Random::Shuffle(std::vector<Element>& vec) const
{
if (vec.size()<=1)
return;
Element tmp;
for (unsigned i=vec.size()-1;i>0;--i)
{
tmp = vec[i];
unsigned index = Uniform(i);
vec[i] = vec[index];
vec[index] = tmp;
}
}
#endif /* SURANDOM_HH */
| [
"tjcorona@gmail.com"
] | tjcorona@gmail.com |
ea560dcdcfcf04a62a397904ffdd76ff9f968cab | 1e02f2e42de6b6e9464b32061f09c978cdeb6e31 | /source/modules/juce_gui_basics/misc/juce_DropShadower.cpp | 9510deae4f8a44f5412159797ff1422eb2ad3732 | [] | no_license | mcanthony/Carla | 06de601136822121a6a9dc4240c8eecfdd072b1d | d3dae496805db9cad3e26a84c775ee4cff5782b3 | refs/heads/master | 2021-01-17T20:05:14.313217 | 2015-10-11T20:33:00 | 2015-10-11T20:33:00 | 44,107,227 | 1 | 0 | null | 2015-10-12T12:52:38 | 2015-10-12T12:52:37 | null | UTF-8 | C++ | false | false | 6,071 | cpp | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
Details of these licenses can be found at: www.gnu.org/licenses
JUCE 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.
------------------------------------------------------------------------------
To release a closed-source product which uses JUCE, commercial licenses are
available: visit www.juce.com for more information.
==============================================================================
*/
class DropShadower::ShadowWindow : public Component
{
public:
ShadowWindow (Component* comp, const DropShadow& ds)
: target (comp), shadow (ds)
{
setVisible (true);
setInterceptsMouseClicks (false, false);
if (! comp->isOnDesktop())
{
setSize (1, 1); // to keep the OS happy by not having zero-size windows
addToDesktop (ComponentPeer::windowIgnoresMouseClicks
| ComponentPeer::windowIsTemporary
| ComponentPeer::windowIgnoresKeyPresses);
}
else if (Component* const parent = comp->getParentComponent())
{
parent->addChildComponent (this);
}
}
void paint (Graphics& g) override
{
if (Component* c = target)
shadow.drawForRectangle (g, getLocalArea (c, c->getLocalBounds()));
}
void resized() override
{
repaint(); // (needed for correct repainting)
}
float getDesktopScaleFactor() const override
{
if (target != nullptr)
return target->getDesktopScaleFactor();
return Component::getDesktopScaleFactor();
}
private:
WeakReference<Component> target;
DropShadow shadow;
JUCE_DECLARE_NON_COPYABLE (ShadowWindow)
};
//==============================================================================
DropShadower::DropShadower (const DropShadow& ds)
: owner (nullptr), shadow (ds), reentrant (false)
{
}
DropShadower::~DropShadower()
{
if (owner != nullptr)
{
owner->removeComponentListener (this);
owner = nullptr;
}
updateParent();
reentrant = true;
shadowWindows.clear();
}
void DropShadower::setOwner (Component* componentToFollow)
{
if (componentToFollow != owner)
{
if (owner != nullptr)
owner->removeComponentListener (this);
// (the component can't be null)
jassert (componentToFollow != nullptr);
owner = componentToFollow;
jassert (owner != nullptr);
updateParent();
owner->addComponentListener (this);
updateShadows();
}
}
void DropShadower::updateParent()
{
if (Component* p = lastParentComp)
p->removeComponentListener (this);
lastParentComp = owner != nullptr ? owner->getParentComponent() : nullptr;
if (Component* p = lastParentComp)
p->addComponentListener (this);
}
void DropShadower::componentMovedOrResized (Component& c, bool /*wasMoved*/, bool /*wasResized*/)
{
if (owner == &c)
updateShadows();
}
void DropShadower::componentBroughtToFront (Component& c)
{
if (owner == &c)
updateShadows();
}
void DropShadower::componentChildrenChanged (Component&)
{
updateShadows();
}
void DropShadower::componentParentHierarchyChanged (Component& c)
{
if (owner == &c)
{
updateParent();
updateShadows();
}
}
void DropShadower::componentVisibilityChanged (Component& c)
{
if (owner == &c)
updateShadows();
}
void DropShadower::updateShadows()
{
if (reentrant)
return;
const ScopedValueSetter<bool> setter (reentrant, true, false);
if (owner == nullptr)
{
shadowWindows.clear();
return;
}
if (owner->isShowing()
&& owner->getWidth() > 0 && owner->getHeight() > 0
&& (Desktop::canUseSemiTransparentWindows() || owner->getParentComponent() != nullptr))
{
while (shadowWindows.size() < 4)
shadowWindows.add (new ShadowWindow (owner, shadow));
const int shadowEdge = jmax (shadow.offset.x, shadow.offset.y) + shadow.radius;
const int x = owner->getX();
const int y = owner->getY() - shadowEdge;
const int w = owner->getWidth();
const int h = owner->getHeight() + shadowEdge + shadowEdge;
for (int i = 4; --i >= 0;)
{
// there seem to be rare situations where the dropshadower may be deleted by
// callbacks during this loop, so use a weak ref to watch out for this..
WeakReference<Component> sw (shadowWindows[i]);
if (sw != nullptr)
sw->setAlwaysOnTop (owner->isAlwaysOnTop());
if (sw != nullptr)
{
switch (i)
{
case 0: sw->setBounds (x - shadowEdge, y, shadowEdge, h); break;
case 1: sw->setBounds (x + w, y, shadowEdge, h); break;
case 2: sw->setBounds (x, y, w, shadowEdge); break;
case 3: sw->setBounds (x, owner->getBottom(), w, shadowEdge); break;
default: break;
}
}
if (sw != nullptr)
sw->toBehind (i == 3 ? owner : shadowWindows.getUnchecked (i + 1));
if (sw == nullptr)
return;
}
}
else
{
shadowWindows.clear();
}
}
| [
"falktx@gmail.com"
] | falktx@gmail.com |
c6502351a3513e3f63c0314202ca4869e71feeb6 | 1f63dde39fcc5f8be29f2acb947c41f1b6f1683e | /Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/rtc_base/rtccertificate.cc | 0b5c1c41809af02ca880ace3dfb8ce4292f4cf33 | [
"LicenseRef-scancode-google-patent-license-webrtc",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"LicenseRef-scancode-takuya-ooura",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown",
"MS-LPL",
"MIT",
"LicenseRef-scancode-google-patent-licen... | permissive | koobonil/Boss2D | 09ca948823e0df5a5a53b64a10033c4f3665483a | e5eb355b57228a701495f2660f137bd05628c202 | refs/heads/master | 2022-10-20T09:02:51.341143 | 2019-07-18T02:13:44 | 2019-07-18T02:13:44 | 105,999,368 | 7 | 2 | MIT | 2022-10-04T23:31:12 | 2017-10-06T11:57:07 | C++ | UTF-8 | C++ | false | false | 2,283 | cc | /*
* Copyright 2015 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include <memory>
#include BOSS_WEBRTC_U_rtc_base__rtccertificate_h //original-code:"rtc_base/rtccertificate.h"
#include BOSS_WEBRTC_U_rtc_base__checks_h //original-code:"rtc_base/checks.h"
#include BOSS_WEBRTC_U_rtc_base__refcountedobject_h //original-code:"rtc_base/refcountedobject.h"
namespace rtc {
scoped_refptr<RTCCertificate> RTCCertificate::Create(
std::unique_ptr<SSLIdentity> identity) {
return new RefCountedObject<RTCCertificate>(identity.release());
}
RTCCertificate::RTCCertificate(SSLIdentity* identity)
: identity_(identity) {
RTC_DCHECK(identity_);
}
RTCCertificate::~RTCCertificate() {
}
uint64_t RTCCertificate::Expires() const {
int64_t expires = ssl_certificate().CertificateExpirationTime();
if (expires != -1)
return static_cast<uint64_t>(expires) * kNumMillisecsPerSec;
// If the expiration time could not be retrieved return an expired timestamp.
return 0; // = 1970-01-01
}
bool RTCCertificate::HasExpired(uint64_t now) const {
return Expires() <= now;
}
const SSLCertificate& RTCCertificate::ssl_certificate() const {
return identity_->certificate();
}
RTCCertificatePEM RTCCertificate::ToPEM() const {
return RTCCertificatePEM(identity_->PrivateKeyToPEMString(),
ssl_certificate().ToPEMString());
}
scoped_refptr<RTCCertificate> RTCCertificate::FromPEM(
const RTCCertificatePEM& pem) {
std::unique_ptr<SSLIdentity> identity(SSLIdentity::FromPEMStrings(
pem.private_key(), pem.certificate()));
if (!identity)
return nullptr;
return new RefCountedObject<RTCCertificate>(identity.release());
}
bool RTCCertificate::operator==(const RTCCertificate& certificate) const {
return *this->identity_ == *certificate.identity_;
}
bool RTCCertificate::operator!=(const RTCCertificate& certificate) const {
return !(*this == certificate);
}
} // namespace rtc
| [
"slacealic@nate.com"
] | slacealic@nate.com |
92ffd367f92e368bf32f4fba3f00edf0b9008b90 | 97e36e935bfdec43a19b8400828e2960cb62d5a6 | /Arduino+ESP/IoTCommu/StringModule.cpp | 7700e7e5f34fb9b497cd7c9bba28213e27c25aeb | [] | no_license | sdsxpln/IoT-6 | ec0e15ae069a2cb215042eafb33bbff839e03ec8 | 81c68c3e64ddb7338c94a2c894d9d8cba25d94bc | refs/heads/master | 2020-03-11T01:42:20.733521 | 2015-07-23T15:12:32 | 2015-07-23T15:12:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 836 | cpp | #include <Arduino.h>
#include "StringModule.h"
String s;
String key;
StringModule::StringModule(String base)
{
s = base;
}
boolean StringModule::Contains(String search) {
int endP = search.length();
int maxP = s.length() - endP;
for (int i = 0; i <= maxP; i++) {
if (search.equalsIgnoreCase(s.substring(i, endP)))
return true;
endP++;
}
return false;
}
void StringModule::ReplaceBase(String base)
{
s = base;
}
void StringModule::StoreKey(String input) /* Store the string need to be delimited */
{
key=input;
}
String StringModule::Delimitation(char delimiter)
{
int length = key.length();
for(int i =0; i< length; i++)
{
if(delimiter == key.charAt(i))
{
String sth = key.substring(0,i);
key = key.substring(i+1);
return sth;
}
}
return key;
}
| [
"wuyangcanada@hotmail.com"
] | wuyangcanada@hotmail.com |
dca2c068c92eccd97fb761b8e8fbf34e2ffe3800 | 2c1451724d861cadf0eb0ca1d0ad0ecfb34c5ea2 | /Fall Project 2016/player.h | 47ad1416deafe7538516e80407b4d5d29f2fb1fe | [] | no_license | Qi-Ye-079/Board-Game---CSI2372 | dec570488323700592ba7c1faf8ebbbb05fd2819 | ce1bfc702a8d444bcffb3729abc7d3f41c4e5365 | refs/heads/master | 2020-03-29T07:14:32.934694 | 2018-06-20T17:20:48 | 2018-06-20T17:20:48 | 149,658,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,614 | h | #pragma once
#ifndef PLAYER_H
#define PLAYER_H
#include <string>
#include <iostream>
#include <array>
#include "hand.h"
#include "chain.h"
class Player {
/**
* The player's name
*/
std::string name;
/**
* The player's current coins
*/
int currentCoins = 0;
/**
* The player's hand
*/
Hand* hand;
/**
* The players' chains (maximum 3)
*/
std::array<Chain_Base*, 3> chains{ { new Chain_Base(), new Chain_Base(), new Chain_Base() } };
/**
* Indicating if the player has unlocked the 3rd chain
*/
bool unlock = false;
public:
/**
* Constructor to create a player with name, and giving 3 empty chains to begin with.
*/
Player(const std::string _name) : name(_name) {
hand = new Hand();
}
/**
* Constructor that takes an input stream and pointer to card factory as arguments.
* Used for reconstruct the player when loading a saved game.
*/
Player(std::istream&, CardFactory*);
/**
* Responsible for deleting dynamically allocated chains
*/
~Player();
/**
* Get the player's name
*/
std::string getName() const;
/**
* Get the player's current number of coins
*/
int getNumCoins() const;
/**
* Add a number of coins to the player
*/
Player& operator+=(int);
/**
* Returns the max number of chains for this player.
* Returns either 2 or 3.
*/
int getMaxNumChains() const;
/**
* Return the number of non-zero chains
*/
int getNumChains() const;
/**
* Returns the reference to the chain at position i.
* May throw EmptyChain exception if the specified chain is empty,
* because when a chain is empty(nullptr), no reference can be returned.
*/
Chain_Base& operator[](int i);
/**
* Adds a third chain to the player for 3 coins.
* If the player has less than 3 coins, throw NotEnoughCoins
*/
void buyThirdChain();
/**
* Prints the top card of player's hand(false), or
* prints all the cards of player's hand(true)
*/
void printHand(std::ostream&, bool);
/**
* Print the player's name, number of coins and chains are printed
*/
friend std::ostream& operator<<(std::ostream&, Player&);
//========= Belows are self-added functions============
/**
* Start a new chain at the given position i, whose type is provided by a char in argument
*/
void startNewChain(int, const char&);
/**
* Returns a pointer to the hand of the player.
*/
Hand* getHand();
};
/**
* Exception: thrown when the player doesn't have enough coin to buy
* the third chain
*/
class NotEnoughCoins : private std::exception {
public:
std::string showMessage();
};
#endif | [
"qye079@uottawa.ca"
] | qye079@uottawa.ca |
d078e6f055486c36cecaeb71f46196ccf0587718 | 4b6d644c53fc91251f692aaf24cba45674cf8516 | /source/DLLs/Kernel32/Handle.h | dfc15b4f56caef7472c58f76196050c1ee4a78c1 | [] | no_license | HaikuArchives/ExeCoffSky | 7ae548bc8b8fb5973b4897312fffc1099de6c9a1 | 90dcaba5b34174117dbdcd97d571839d3f37621d | refs/heads/master | 2020-05-19T17:39:10.556325 | 2014-07-31T19:01:59 | 2014-07-31T19:01:59 | 13,043,295 | 4 | 1 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,810 | h | /* --------------------------------------------------------------------------------------------
* ExeCoffSky for BeOS
* (C) 2000 とよしま
* $Id: Handle.h,v 1.1 2003/05/01 02:57:16 toyoshim Exp $
* --------------------------------------------------------------------------------------------
* [Handle.h]
* CloseHandleで閉じることができるオブジェクトはHandleObjectを継承している必要がある。
* -------------------------------------------------------------------------------------------- */
#if !defined(__Handle_h__)
# define __Handle_h__
# if !defined(__Common_h__)
# include "Common.h"
# endif // !defined(__Common_h__)
# define HANDLE_MAGIC '_HDL'
# define INFINITE ((DWORD)-1)
class HandleObject {
public:
DWORD magic;
private:
BLocker lock;
DWORD flags;
public:
HandleObject(void);
virtual ~HandleObject(void);
BOOL SetFlags(DWORD flags);
DWORD GetFlags(void);
virtual bool Wait(DWORD timeout = INFINITE);
virtual HandleObject *Duplicate(void);
private:
inline void Lock(void) { lock.Lock(); };
inline void Unlock(void) { lock.Unlock(); };
};
# if !defined(__HandleObject__)
# define __HandleObject__
# endif // !defined(__HandleObject__)
# define STD_INPUT_HANDLE DWORD(-10)
# define STD_OUTPUT_HANDLE DWORD(-11)
# define STD_ERROR_HANDLE DWORD(-12)
# define HANDLE_FLAG_INHERIT 0x00000001
# define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
# define STATUS_TIMEOUT ((DWORD)0x00000102L)
# define STATUS_WAIT_0 ((DWORD)0x00000000L)
# define STATUS_ABANDONED_WAIT_0 ((DWORD)0x00000080L)
# define WAIT_TIMEOUT STATUS_TIMEOUT
# define WAIT_OBJECT_0 STATUS_WAIT_0
# define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
# if defined(__cplusplus)
extern "C" {
# endif // defined(__cplusplus)
BOOL WINAPI CloseHandle(HANDLE hObject);
BOOL WINAPI DuplicateHandle(HANDLE hSourceProcessHandle, HANDLE hSourceHandle,
HANDLE hTargetProcessHandle, LPHANDLE lpTargetHandle,
DWORD dwDesitedAccess, BOOL bInheritHandle, DWORD dwOptions);
BOOL WINAPI GetHandleInformation(HANDLE hObject, LPDWORD lpdwFlags);
HANDLE WINAPI GetStdHandle(DWORD nStdHandle);
UINT WINAPI SetHandleCount(UINT uNumber);
BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
BOOL WINAPI SetStdHandle(DWORD nStdHandle, HANDLE hHandle);
DWORD WINAPI WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds);
DWORD WINAPI WaitForSingleObjectEx(HANDLE hHandle, DWORD dwMilliseconds, BOOL bAlertable);
DWORD WINAPI WaitForMultipleObjects(DWORD nCount, const HANDLE *lpHandles, BOOL fWaitAll, DWORD dwMilliseconds);
DWORD WINAPI WaitForMultipleObjectsEx(DWORD nCount, const HANDLE *lpHandles, BOOL fWaitAll, DWORD dwMilliseconds, BOOL bAlertable);
# if defined(__cplusplus)
};
# endif // defined(__cplusplus)
#endif // !defined(__Handle_h__)
| [
"ajcsweb@gmail.com"
] | ajcsweb@gmail.com |
a1ff09a14de9f343e1eee886a32de995abbeab77 | ff2369f91b791fb35bdff1cceb053689eb7fbed0 | /leela-control/configurations/types/TcpMessageEnvelope.hpp | 761f94ca9a4b6f502f209717df117cded7532b3c | [] | no_license | shenjunHZ/Leela_Control_Demo | 0c894eb3254baf570f0001c0c3faac8279d4393e | 2669c5d87db458338be32a76dd4e4dd9dfcf79da | refs/heads/master | 2022-11-22T00:10:26.955044 | 2020-07-27T01:15:30 | 2020-07-27T01:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | hpp | #pragma once
#include <functional>
namespace configurations
{
namespace types
{
using RespCallback = std::function<void(const std::string&)>;
struct TcpMessageEnvelope
{
std::string payload;
int socketFd;
RespCallback callback;
};
} // namespace types
} // namespace sockets | [
"shenjun_hz@163.com"
] | shenjun_hz@163.com |
d0dd02a25b64d92be1371e3ca8a98878887528e4 | 5dda2974cd9542981074816fe39d5b30c2a17c2d | /Src/Math/Vector.cpp | ab1f5222413a4fde9e2edde5a1d98d0395a83487 | [] | no_license | MergeCommits/COMP371-Assignment2 | f40ad1227c61d1ce5a27123bf933eb29f5c97509 | 503bafc1ef9497a212988556f23cd0c8f1dad18a | refs/heads/master | 2022-03-01T08:38:29.393011 | 2019-10-27T16:39:39 | 2019-10-27T16:39:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,272 | cpp | #include <math.h>
#include "Vector.h"
const Vector2f Vector2f::zero = Vector2f(0.f,0.f);
const Vector2f Vector2f::one = Vector2f(1.f,1.f);
Vector2f::Vector2f() {
x=0.f; y=0.f;
}
Vector2f::Vector2f(float s) {
x = s; y = s;
}
Vector2f::Vector2f(float ix,float iy) {
x = ix; y = iy;
}
float Vector2f::lengthSquared() const {
return x*x+y*y;
}
float Vector2f::length() const {
return (float)sqrt(x*x+y*y);
}
float Vector2f::distanceSquared(const Vector2f& b) const {
return subtract(b).lengthSquared();
}
float Vector2f::distance(const Vector2f& b) const {
return subtract(b).length();
}
bool Vector2f::equals(const Vector2f& b,float epsilon) const {
return distanceSquared(b)<=(epsilon*epsilon);
}
Vector2f Vector2f::add(const Vector2f& b) const {
return Vector2f(x+b.x,y+b.y);
}
Vector2f Vector2f::subtract(const Vector2f& b) const {
return Vector2f(x-b.x,y-b.y);
}
Vector2f Vector2f::multiply(float s) const {
return Vector2f(x*s,y*s);
}
Vector2f Vector2f::normalize() const {
return multiply(1.f/length());
}
Vector2f Vector2f::reflect(const Vector2f& n) const {
Vector2f reflectedVector = normalize();
reflectedVector = n.multiply(2.f*reflectedVector.dotProduct(n)).subtract(reflectedVector);
return reflectedVector.normalize();
}
float Vector2f::dotProduct(const Vector2f& b) const {
return x*b.x+y*b.y;
}
const Vector3f Vector3f::zero = Vector3f(0.f,0.f,0.f);
const Vector3f Vector3f::one = Vector3f(1.f,1.f,1.f);
Vector3f::Vector3f() {
x=0.f; y=0.f; z=0.f;
}
Vector3f::Vector3f(float s) {
x = s; y = s; z = s;
}
Vector3f::Vector3f(float ix,float iy,float iz) {
x=ix; y=iy; z=iz;
}
float Vector3f::lengthSquared() const {
return x*x+y*y+z*z;
}
float Vector3f::length() const {
return (float)sqrt(x*x+y*y+z*z);
}
float Vector3f::distanceSquared(const Vector3f& b) const {
return subtract(b).lengthSquared();
}
float Vector3f::distance(const Vector3f& b) const {
return subtract(b).length();
}
Vector3f Vector3f::add(const Vector3f& b) const {
return Vector3f(x+b.x,y+b.y,z+b.z);
}
Vector3f Vector3f::subtract(const Vector3f& b) const {
return Vector3f(x-b.x,y-b.y,z-b.z);
}
Vector3f Vector3f::multiply(float s) const {
return Vector3f(x*s,y*s,z*s);
}
Vector3f Vector3f::normalize() const {
if (length() == 0) { return Vector3f::zero; }
return multiply(1.f/length());
}
Vector3f Vector3f::invert() const {
return Vector3f(-x, -y, -z);
}
Vector3f Vector3f::reflect(const Vector3f& n) const {
Vector3f reflectedVector = normalize();
reflectedVector = n.multiply(2.f*reflectedVector.dotProduct(n)).subtract(reflectedVector);
return reflectedVector.normalize();
}
float Vector3f::dotProduct(const Vector3f& b) const {
return x*b.x+y*b.y+z*b.z;
}
Vector3f Vector3f::crossProduct(const Vector3f& b) const {
return Vector3f(y*b.z-z*b.y,z*b.x-x*b.z,x*b.y-y*b.x);
}
Vector4f::Vector4f() {
x = 0.f; y = 0.f; z = 0.f; w = 0.f;
}
Vector4f::Vector4f(float s) {
x = s; y = s; z = s; w = s;
}
Vector4f::Vector4f(float ix,float iy,float iz,float iw) {
x = ix; y = iy; z = iz; w = iw;
}
const Vector4f Vector4f::zero = Vector4f(0.f,0.f,0.f,0.f);
const Vector4f Vector4f::one = Vector4f(1.f,1.f,1.f,1.f);
| [
"markjarjour@gmail.com"
] | markjarjour@gmail.com |
5cfa4e5c6f9a0834ea6bbb89f59a8be88f58b067 | 792f2ee67210556f224daf88ef0b9785becadc9b | /atcoder/ABC/024D.cpp | e7aec6dae53b4099d1c29542324db1af3282a3d6 | [] | no_license | firiexp/contest_log | e5b345286e7d69ebf2a599d4a81bdb19243ca18d | 6474a7127d3a2fed768ebb62031d5ff30eeeef86 | refs/heads/master | 2021-07-20T01:16:47.869936 | 2020-04-30T03:27:51 | 2020-04-30T03:27:51 | 150,196,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 938 | cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <map>
#include <queue>
static const int MOD = 1000000007;
using ll = long long;
using u32 = unsigned;
using namespace std;
template<class T>
constexpr T INF = ::numeric_limits<T>::max() / 32 * 15 + 208;
template<typename T>
T extgcd(T a, T b, T &x ,T &y){
for (T u = y = 1, v = x = 0; a; ) {
ll q = b/a;
swap(x -= q*u, u);
swap(y -= q*v, v);
swap(b -= q*a, a);
}
return b;
}
template<typename T>
T mod_inv(T x, T m){
T s, t;
extgcd(x, m, s, t);
return (m+s)% m;
}
int main() {
ll a, b, c;
cin >> a >> b >> c;
ll p = a*b%MOD, q = b*c%MOD, r = c*a%MOD;
ll ans1 = ((q-p+MOD)%MOD*mod_inv<ll>(p-q+r+MOD, MOD))%MOD;
ll ans2 = ((q-r+MOD)%MOD*mod_inv<ll>(p-q+r+MOD, MOD))%MOD;
cout << ans2 << " " << ans1 << "\n";
return 0;
}
| [
"firiexp@PC.localdomain"
] | firiexp@PC.localdomain |
aa61a74c2934a622f739207fca5aafc48d872969 | be8b9231c92e6c184f0692c92df9667be3770cb1 | /Musical_Instruments_2017_2018/Musical_Glove/OLD CODE/gloves/Gloves_R/teensy/avr/libraries/TimeAlarms/TimeAlarms.cpp | 8ff4017432217a950fdf6d777863cdeaec08af63 | [
"MIT"
] | permissive | Pocketart/typhoonclawvex | def0f4a607c90b1bafb180466dfa12ddd8a480c1 | eb4b523c13541b2b9136d32259bd0399b46a289e | refs/heads/master | 2021-09-15T07:26:07.218099 | 2018-05-07T02:20:15 | 2018-05-07T02:20:15 | 105,268,399 | 4 | 3 | MIT | 2018-05-04T17:30:49 | 2017-09-29T12:12:32 | C++ | UTF-8 | C++ | false | false | 9,057 | cpp | /*
TimeAlarms.cpp - Arduino Time alarms for use with Time library
Copyright (c) 2008-2011 Michael Margolis.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
*/
/*
2 July 2011 - replaced alarm types implied from alarm value with enums to make trigger logic more robust
- this fixes bug in repeating weekly alarms - thanks to Vincent Valdy and draythomp for testing
*/
#include "TimeAlarms.h"
#define IS_ONESHOT true // constants used in arguments to create method
#define IS_REPEAT false
//**************************************************************
//* Alarm Class Constructor
AlarmClass::AlarmClass()
{
Mode.isEnabled = Mode.isOneShot = 0;
Mode.alarmType = dtNotAllocated;
value = nextTrigger = 0;
onTickHandler = NULL; // prevent a callback until this pointer is explicitly set
}
//**************************************************************
//* Private Methods
void AlarmClass::updateNextTrigger()
{
if (Mode.isEnabled) {
time_t time = now();
if (dtIsAlarm(Mode.alarmType) && nextTrigger <= time) {
// update alarm if next trigger is not yet in the future
if (Mode.alarmType == dtExplicitAlarm) {
// is the value a specific date and time in the future
nextTrigger = value; // yes, trigger on this value
} else if (Mode.alarmType == dtDailyAlarm) {
//if this is a daily alarm
if (value + previousMidnight(now()) <= time) {
// if time has passed then set for tomorrow
nextTrigger = value + nextMidnight(time);
} else {
// set the date to today and add the time given in value
nextTrigger = value + previousMidnight(time);
}
} else if (Mode.alarmType == dtWeeklyAlarm) {
// if this is a weekly alarm
if ((value + previousSunday(now())) <= time) {
// if day has passed then set for the next week.
nextTrigger = value + nextSunday(time);
} else {
// set the date to this week today and add the time given in value
nextTrigger = value + previousSunday(time);
}
} else {
// its not a recognized alarm type - this should not happen
Mode.isEnabled = false; // Disable the alarm
}
}
if (Mode.alarmType == dtTimer) {
// its a timer
nextTrigger = time + value; // add the value to previous time (this ensures delay always at least Value seconds)
}
}
}
//**************************************************************
//* Time Alarms Public Methods
TimeAlarmsClass::TimeAlarmsClass()
{
isServicing = false;
for(uint8_t id = 0; id < dtNBR_ALARMS; id++) {
free(id); // ensure all Alarms are cleared and available for allocation
}
}
void TimeAlarmsClass::enable(AlarmID_t ID)
{
if (isAllocated(ID)) {
if (( !(dtUseAbsoluteValue(Alarm[ID].Mode.alarmType) && (Alarm[ID].value == 0)) ) && (Alarm[ID].onTickHandler != NULL)) {
// only enable if value is non zero and a tick handler has been set
// (is not NULL, value is non zero ONLY for dtTimer & dtExplicitAlarm
// (the rest can have 0 to account for midnight))
Alarm[ID].Mode.isEnabled = true;
Alarm[ID].updateNextTrigger(); // trigger is updated whenever this is called, even if already enabled
} else {
Alarm[ID].Mode.isEnabled = false;
}
}
}
void TimeAlarmsClass::disable(AlarmID_t ID)
{
if (isAllocated(ID)) {
Alarm[ID].Mode.isEnabled = false;
}
}
// write the given value to the given alarm
void TimeAlarmsClass::write(AlarmID_t ID, time_t value)
{
if (isAllocated(ID)) {
Alarm[ID].value = value; //note: we don't check value as we do it in enable()
Alarm[ID].nextTrigger = 0; // clear out previous trigger time (see issue #12)
enable(ID); // update trigger time
}
}
// return the value for the given alarm ID
time_t TimeAlarmsClass::read(AlarmID_t ID)
{
if (isAllocated(ID)) {
return Alarm[ID].value ;
} else {
return dtINVALID_TIME;
}
}
// return the alarm type for the given alarm ID
dtAlarmPeriod_t TimeAlarmsClass::readType(AlarmID_t ID)
{
if (isAllocated(ID)) {
return (dtAlarmPeriod_t)Alarm[ID].Mode.alarmType ;
} else {
return dtNotAllocated;
}
}
void TimeAlarmsClass::free(AlarmID_t ID)
{
if (isAllocated(ID)) {
Alarm[ID].Mode.isEnabled = false;
Alarm[ID].Mode.alarmType = dtNotAllocated;
Alarm[ID].onTickHandler = NULL;
Alarm[ID].value = 0;
Alarm[ID].nextTrigger = 0;
}
}
// returns the number of allocated timers
uint8_t TimeAlarmsClass::count()
{
uint8_t c = 0;
for(uint8_t id = 0; id < dtNBR_ALARMS; id++) {
if (isAllocated(id)) c++;
}
return c;
}
// returns true only if id is allocated and the type is a time based alarm, returns false if not allocated or if its a timer
bool TimeAlarmsClass::isAlarm(AlarmID_t ID)
{
return( isAllocated(ID) && dtIsAlarm(Alarm[ID].Mode.alarmType) );
}
// returns true if this id is allocated
bool TimeAlarmsClass::isAllocated(AlarmID_t ID)
{
return (ID < dtNBR_ALARMS && Alarm[ID].Mode.alarmType != dtNotAllocated);
}
// returns the currently triggered alarm id
// returns dtINVALID_ALARM_ID if not invoked from within an alarm handler
AlarmID_t TimeAlarmsClass::getTriggeredAlarmId()
{
if (isServicing) {
return servicedAlarmId; // new private data member used instead of local loop variable i in serviceAlarms();
} else {
return dtINVALID_ALARM_ID; // valid ids only available when servicing a callback
}
}
// following functions are not Alarm ID specific.
void TimeAlarmsClass::delay(unsigned long ms)
{
unsigned long start = millis();
while (millis() - start <= ms) {
serviceAlarms();
}
}
void TimeAlarmsClass::waitForDigits( uint8_t Digits, dtUnits_t Units)
{
while (Digits != getDigitsNow(Units)) {
serviceAlarms();
}
}
void TimeAlarmsClass::waitForRollover( dtUnits_t Units)
{
// if its just rolled over than wait for another rollover
while (getDigitsNow(Units) == 0) {
serviceAlarms();
}
waitForDigits(0, Units);
}
uint8_t TimeAlarmsClass::getDigitsNow( dtUnits_t Units)
{
time_t time = now();
if (Units == dtSecond) return numberOfSeconds(time);
if (Units == dtMinute) return numberOfMinutes(time);
if (Units == dtHour) return numberOfHours(time);
if (Units == dtDay) return dayOfWeek(time);
return 255; // This should never happen
}
//returns isServicing
bool TimeAlarmsClass::getIsServicing()
{
return isServicing;
}
//***********************************************************
//* Private Methods
void TimeAlarmsClass::serviceAlarms()
{
if (!isServicing) {
isServicing = true;
for (servicedAlarmId = 0; servicedAlarmId < dtNBR_ALARMS; servicedAlarmId++) {
if (Alarm[servicedAlarmId].Mode.isEnabled && (now() >= Alarm[servicedAlarmId].nextTrigger)) {
OnTick_t TickHandler = Alarm[servicedAlarmId].onTickHandler;
if (Alarm[servicedAlarmId].Mode.isOneShot) {
free(servicedAlarmId); // free the ID if mode is OnShot
} else {
Alarm[servicedAlarmId].updateNextTrigger();
}
if (TickHandler != NULL) {
(*TickHandler)(); // call the handler
}
}
}
isServicing = false;
}
}
// returns the absolute time of the next scheduled alarm, or 0 if none
time_t TimeAlarmsClass::getNextTrigger()
{
time_t nextTrigger = (time_t)0xffffffff; // the max time value
for (uint8_t id = 0; id < dtNBR_ALARMS; id++) {
if (isAllocated(id)) {
if (Alarm[id].nextTrigger < nextTrigger) {
nextTrigger = Alarm[id].nextTrigger;
}
}
}
return nextTrigger == (time_t)0xffffffff ? 0 : nextTrigger;
}
// attempt to create an alarm and return true if successful
AlarmID_t TimeAlarmsClass::create(time_t value, OnTick_t onTickHandler, uint8_t isOneShot, dtAlarmPeriod_t alarmType)
{
if ( ! ( (dtIsAlarm(alarmType) && now() < SECS_PER_YEAR) || (dtUseAbsoluteValue(alarmType) && (value == 0)) ) ) {
// only create alarm ids if the time is at least Jan 1 1971
for (uint8_t id = 0; id < dtNBR_ALARMS; id++) {
if (Alarm[id].Mode.alarmType == dtNotAllocated) {
// here if there is an Alarm id that is not allocated
Alarm[id].onTickHandler = onTickHandler;
Alarm[id].Mode.isOneShot = isOneShot;
Alarm[id].Mode.alarmType = alarmType;
Alarm[id].value = value;
enable(id);
return id; // alarm created ok
}
}
}
return dtINVALID_ALARM_ID; // no IDs available or time is invalid
}
// make one instance for the user to use
TimeAlarmsClass Alarm = TimeAlarmsClass() ;
| [
"henry012007@gmail.com"
] | henry012007@gmail.com |
afdc0bd9c7a83036165d18b9e34e89bdf3dd569c | 46d9064597fe486d5c29a1dde763be59f6ccf6ce | /GameAnalyticsInterface.h | 8dc01f4e52b0f543d7ee3317f9199d1971ba42f7 | [
"MIT"
] | permissive | DaniM/game-analytics-win8 | 4782a83effe783a59de818c62ad428af2ebe5de5 | 651b7bb6f8dc053213f6b9ae65452d91130b7795 | refs/heads/master | 2021-01-21T03:01:58.909958 | 2015-02-09T21:27:23 | 2015-02-09T21:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,711 | h | #pragma once
#include <map>
#include <memory>
#include <string>
#include "GameAnalyticsErrorSeverity.h"
#include "GameAnalyticsUserData.h"
namespace GameAnalytics
{
class GameAnalyticsInterface
{
public:
// Initializes a new instance of the GameAnalytics interface
// for the game with the specified game key and secret key.
// Uses the app package version as build id,
// uses the Application Specific Hardware Identifier (ASHWID) as user id,
// and generates a new GUID for the session.
GameAnalyticsInterface(const std::wstring & gameKey, const std::wstring & secretKey);
// Sends the business event with the specified id to the GameAnalytics backend.
// Event ids can be sub-categorized by using ":" notation, for example "Purchase:RocketLauncher".
// Check http://support.gameanalytics.com/hc/en-us/articles/200841576-Supported-currencies for a list of currencies that will populate the monetization dashboard.
// For all other virtual currency strings, you will need to create your custom dashboards and widgets.
// The amount is a numeric value which corresponds to the cost of the purchase in the monetary unit multiplied by 100.
// For example, if the currency is "USD", the amount should be specified in cents.
void SendBusinessEvent(const std::wstring & eventId, const std::wstring & currency, const int amount) const;
// Sends the design event with the specified id to the GameAnalytics backend.
// Event ids can be sub-categorized by using ":" notation, for example "PickedUpAmmo:Shotgun".
void SendDesignEvent(const std::wstring & eventId) const;
// Sends the design event with the specified id and value to the GameAnalytics backend.
// Event ids can be sub-categorized by using ":" notation, for example "PickedUpAmmo:Shotgun".
void SendDesignEvent(const std::wstring & eventId, const float value) const;
// Sends the error event with the specified message and severity to the GameAnalytics backend.
// Event ids can be sub-categorized by using ":" notation, for example "Exception:NullReference".
void SendErrorEvent(const std::wstring & message, const Severity::Severity severity) const;
// Sends the user event with the specified data to the GameAnalytics backend.
void SendUserEvent(const User & user) const;
// Sets the area to be associated with each subsequent design, error and business event.
void SetArea(const std::wstring & area);
// Sets the current version of the game being played. Defaults to the app package version.
void SetBuild(const std::wstring & build);
// Sets the unique ID representing the user playing the game.
// This ID should remain the same across different play sessions.
// Defaults to the ASHWID.
void SetUserId(const std::wstring & userId);
private:
Windows::Web::Http::HttpClient^ httpClient;
std::wstring gameKey;
std::wstring secretKey;
std::wstring area;
std::wstring build;
std::wstring sessionId;
std::wstring userId;
// Builds the event parameter map for design analytics events.
std::map<std::wstring, std::wstring> BuildDesignParameterMap(const std::wstring & eventId) const;
// Generates a new GUID for the current session.
std::wstring GenerateSessionId() const;
// Gets the app package version.
std::wstring GetAppVersion() const;
// Gets the Application Specific Hardware Identifier (ASHWID).
// See https://msdn.microsoft.com/en-us/library/windows/apps/jj553431
std::wstring GetHardwareId() const;
// Sends the event with the specified category and parameters to the GameAnalytics backend.
void SendGameAnalyticsEvent(const std::wstring & category, const std::map<std::wstring, std::wstring> & parameters) const;
};
} | [
"dev@npruehs.de"
] | dev@npruehs.de |
b17efd9ec58873db48112dae39d8d64d2f99c764 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634697451274240_0/C++/sourcedark/B.cpp | e1d33e2426f2da553541926ed8df21da8c7631d7 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,417 | cpp | #include <iostream>
#include <string>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <map>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <queue>
using namespace std;
/* --------------------------------- */
#define ios ios_base::sync_with_stdio(false)
template<class T> T stoi(string str) {
T ret = 0;
for (int i = 0; i < str.size(); i++) ret = ret * 10 + str[i] - '0';
return ret;
}
bool updateType1(int now, int &ans) {
if (ans == -1 || ans > now) {
ans = now;
return true;
}
return false;
}
bool updateType2(int now, int &ans) {
if (ans == -1 || ans < now) {
ans = now;
return true;
}
return false;
}
class Edge {
public:
int from, to;
Edge *next;
Edge(int from_, int to_, Edge *next_):from(from_), to(to_), next(next_) {}
};
/* --------------------------------- */
int testCase = 0;
int main() {
ios;
freopen("B-small-attempt0.in", "r", stdin);
freopen("B-small-attempt0.out", "w", stdout);
int task;
cin >> task;
while (task --) {
string str;
cin >> str;
//cout << str << endl
int ans = 0;
for (int i = 0; i < str.length(); i++) {
// if (i > 0) cout << str[i] << ' ' << str[i - 1] << endl;
if (i == 0 || str[i] != str[i - 1]) ans ++;
}
cout << "Case #" << ++testCase << ": " << (ans - (str[str.length() - 1] == '+')) << endl;
}
return 0;
}
| [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
e6fcf3e709c2b5051348fbf57d5db83bd31d3780 | 2f183773b17a7a4c05d0aeaed2d18696e6970cc3 | /ipf/Process/ipfModelerProcessChildRasterInfoPrint.h | 3bfdde857a523900f8d75b5521dfec1a799cbd9b | [] | no_license | RenShuYuan/IPF | 64eca41c0b2c4bed1c71b4f6bb1b5bc60272dbb2 | 14a0167e92639c9cabedb5b82b19da0d8d5a51ed | refs/heads/master | 2020-04-19T21:59:37.136430 | 2019-05-13T09:08:15 | 2019-05-13T09:08:15 | 168,457,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 734 | h | #ifndef IPFMODELERPROCESSCHILDRASTERINFOPRINT_H
#define IPFMODELERPROCESSCHILDRASTERINFOPRINT_H
#include "ipfModelerProcessOut.h"
class ipfModelerRasterInfoPrintDialog;
class ipfModelerProcessChildRasterInfoPrint : public ipfModelerProcessOut
{
public:
ipfModelerProcessChildRasterInfoPrint(QObject *parent, const QString modelerName);
~ipfModelerProcessChildRasterInfoPrint();
ipfModelerProcessChildRasterInfoPrint* classType() { return this; };
bool checkParameter();
void setParameter();
QMap<QString, QString> getParameter();
void setDialogParameter(QMap<QString, QString> map);
void run();
private:
ipfModelerRasterInfoPrintDialog * dialog;
QString saveName;
};
#endif // IPFMODELERPROCESSCHILDRASTERINFOPRINT_H | [
"y15496439@gmail.com"
] | y15496439@gmail.com |
b2c7cbaeba8057768a5faa35ab286e6709c21539 | 7aa1743c918b482a27dc843173b6bab05b511e21 | /C++_3/2_rvalue.cpp | 0a6d7084ac9dd2362e5283edbc46fe46cf6d31e6 | [] | no_license | RealChaser/Cpp_Lecture | 7021be1b1f02c9f62f83db5a14885b8d8f34ebbb | b947bb6defdad4bb1c598c2c39a4d7f05cfc50de | refs/heads/master | 2021-06-24T18:20:14.247040 | 2020-02-22T14:11:24 | 2020-02-22T14:11:24 | 91,180,286 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 693 | cpp | // 2_rvalue - 46 page
int x = 10;
int foo() { return x; }
int& goo() { return x; }
// 46 page
// lvalue : =의 왼쪽과 오른쪽에 모두 올수 있다.
// 이름이 있다.
// 단일식을 넘어서 메모리 존재
// &로 주소를 구할수 있다.
// 참조리턴하는 함수
// rvalue : =의 오른쪽에만 올수 있다.
// 이름이 없다.
// 단일식에서만 존재.
// &로 주소를 구할수 없다.
// 값리턴 함수. 임시객체, Literal(10, 3.4등의 상수)
int main()
{
int v1 = 10;
int v2 = 20;
v1 = 10;
v2 = v1;
10 = v1; // error. 10은 rvalue이다.
int* p1 = &v1;
int* p2 = &10; // ??
foo() = 20; // error
goo() = 10; // ok
}
| [
"realchaser86@gmail.com"
] | realchaser86@gmail.com |
4c6fd50bfa1592afb9343ba56e2ec6c52cf59203 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/curl/gumtree/curl_new_hunk_296.cpp | 3597375430beb0b11c4991b3c05e82bbc80a1ee6 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | }
if(c) {
char *format_ptr;
fputs("# Netscape HTTP Cookie File\n"
"# http://curl.haxx.se/rfc/cookie_spec.html\n"
"# This file was generated by libcurl! Edit at your own risk.\n\n",
out);
co = c->cookies;
while(co) {
format_ptr = get_netscape_format(co);
| [
"993273596@qq.com"
] | 993273596@qq.com |
dbd0820bcbd6ae7f0cd5a0d0483984ca9df2a037 | d0c44dd3da2ef8c0ff835982a437946cbf4d2940 | /cmake-build-debug/programs_tiling/function14296/function14296_schedule_21/function14296_schedule_21.cpp | 8019f192e1bf5edf90685e80559f95252aa29169 | [] | no_license | IsraMekki/tiramisu_code_generator | 8b3f1d63cff62ba9f5242c019058d5a3119184a3 | 5a259d8e244af452e5301126683fa4320c2047a3 | refs/heads/master | 2020-04-29T17:27:57.987172 | 2019-04-23T16:50:32 | 2019-04-23T16:50:32 | 176,297,755 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,228 | cpp | #include <tiramisu/tiramisu.h>
using namespace tiramisu;
int main(int argc, char **argv){
tiramisu::init("function14296_schedule_21");
constant c0("c0", 64), c1("c1", 128), c2("c2", 64), c3("c3", 64);
var i0("i0", 0, c0), i1("i1", 0, c1), i2("i2", 0, c2), i3("i3", 0, c3), i01("i01"), i02("i02"), i03("i03"), i04("i04"), i05("i05"), i06("i06");
input input00("input00", {i0, i1, i3}, p_int32);
input input01("input01", {i0, i2}, p_int32);
input input02("input02", {i1, i0}, p_int32);
input input03("input03", {i0, i2}, p_int32);
input input04("input04", {i0}, p_int32);
input input05("input05", {i0, i2, i3}, p_int32);
input input06("input06", {i0, i1, i3}, p_int32);
input input07("input07", {i1}, p_int32);
input input08("input08", {i0, i1, i2}, p_int32);
computation comp0("comp0", {i0, i1, i2, i3}, input00(i0, i1, i3) + input01(i0, i2) - input02(i1, i0) - input03(i0, i2) * input04(i0) * input05(i0, i2, i3) - input06(i0, i1, i3) * input07(i1) - input08(i0, i1, i2));
comp0.tile(i1, i2, i3, 32, 64, 32, i01, i02, i03, i04, i05, i06);
comp0.parallelize(i0);
buffer buf00("buf00", {64, 128, 64}, p_int32, a_input);
buffer buf01("buf01", {64, 64}, p_int32, a_input);
buffer buf02("buf02", {128, 64}, p_int32, a_input);
buffer buf03("buf03", {64, 64}, p_int32, a_input);
buffer buf04("buf04", {64}, p_int32, a_input);
buffer buf05("buf05", {64, 64, 64}, p_int32, a_input);
buffer buf06("buf06", {64, 128, 64}, p_int32, a_input);
buffer buf07("buf07", {128}, p_int32, a_input);
buffer buf08("buf08", {64, 128, 64}, p_int32, a_input);
buffer buf0("buf0", {64, 128, 64, 64}, p_int32, a_output);
input00.store_in(&buf00);
input01.store_in(&buf01);
input02.store_in(&buf02);
input03.store_in(&buf03);
input04.store_in(&buf04);
input05.store_in(&buf05);
input06.store_in(&buf06);
input07.store_in(&buf07);
input08.store_in(&buf08);
comp0.store_in(&buf0);
tiramisu::codegen({&buf00, &buf01, &buf02, &buf03, &buf04, &buf05, &buf06, &buf07, &buf08, &buf0}, "../data/programs/function14296/function14296_schedule_21/function14296_schedule_21.o");
return 0;
} | [
"ei_mekki@esi.dz"
] | ei_mekki@esi.dz |
f766c128e33ae86a84de050269a171f09fc475ac | 413a1d85f164ab38ef876452ac3c363f9df058c4 | /wiki_app/venv/lib/python3.5/site-packages/lucene-8.1.1-py3.5-linux-x86_64.egg/lucene/include/org/apache/lucene/document/LatLonDocValuesField.h | 2a76d0ba3654759e57f8dfa45666f68201122253 | [] | no_license | prateek68/Wikipedia-Online-Content-Comparison | 18d53e3456e2d7aa6eb67629c2ea1c79b7d8be4d | 77d54b99881558b3195190740ba1be7f8328392b | refs/heads/master | 2020-12-26T11:58:18.903011 | 2020-02-02T09:55:37 | 2020-02-02T09:55:37 | 237,495,848 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,786 | h | #ifndef org_apache_lucene_document_LatLonDocValuesField_H
#define org_apache_lucene_document_LatLonDocValuesField_H
#include "org/apache/lucene/document/Field.h"
namespace java {
namespace lang {
class String;
class Class;
}
}
namespace org {
namespace apache {
namespace lucene {
namespace document {
class FieldType;
}
namespace search {
class Query;
class SortField;
}
}
}
}
template<class T> class JArray;
namespace org {
namespace apache {
namespace lucene {
namespace document {
class LatLonDocValuesField : public ::org::apache::lucene::document::Field {
public:
enum {
mid_init$_00d403fa72549ca7,
mid_newDistanceSort_0c052d62ef28074e,
mid_newSlowBoxQuery_d3570830645f9ce6,
mid_newSlowDistanceQuery_1721549363472a71,
mid_setLocationValue_fe870127c9b5fd7b,
mid_toString_a59eabb26a802fa9,
max_mid
};
static ::java::lang::Class *class$;
static jmethodID *mids$;
static bool live$;
static jclass initializeClass(bool);
explicit LatLonDocValuesField(jobject obj) : ::org::apache::lucene::document::Field(obj) {
if (obj != NULL && mids$ == NULL)
env->getClass(initializeClass);
}
LatLonDocValuesField(const LatLonDocValuesField& obj) : ::org::apache::lucene::document::Field(obj) {}
static ::org::apache::lucene::document::FieldType *TYPE;
LatLonDocValuesField(const ::java::lang::String &, jdouble, jdouble);
static ::org::apache::lucene::search::SortField newDistanceSort(const ::java::lang::String &, jdouble, jdouble);
static ::org::apache::lucene::search::Query newSlowBoxQuery(const ::java::lang::String &, jdouble, jdouble, jdouble, jdouble);
static ::org::apache::lucene::search::Query newSlowDistanceQuery(const ::java::lang::String &, jdouble, jdouble, jdouble);
void setLocationValue(jdouble, jdouble) const;
::java::lang::String toString() const;
};
}
}
}
}
#include <Python.h>
namespace org {
namespace apache {
namespace lucene {
namespace document {
extern PyType_Def PY_TYPE_DEF(LatLonDocValuesField);
extern PyTypeObject *PY_TYPE(LatLonDocValuesField);
class t_LatLonDocValuesField {
public:
PyObject_HEAD
LatLonDocValuesField object;
static PyObject *wrap_Object(const LatLonDocValuesField&);
static PyObject *wrap_jobject(const jobject&);
static void install(PyObject *module);
static void initialize(PyObject *module);
};
}
}
}
}
#endif
| [
"prateek16068@iiitd.ac.in"
] | prateek16068@iiitd.ac.in |
941c9c369ca4b79c5607e74d65b9125a31d0c02b | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /third_party/blink/renderer/modules/wake_lock/worker_navigator_wake_lock.h | c7bc84e84cf445a71c7cc439748b0ddfff5d6ce0 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | C++ | false | false | 1,190 | h | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WAKE_LOCK_WORKER_NAVIGATOR_WAKE_LOCK_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_WAKE_LOCK_WORKER_NAVIGATOR_WAKE_LOCK_H_
#include "third_party/blink/renderer/platform/heap/handle.h"
#include "third_party/blink/renderer/platform/supplementable.h"
namespace blink {
class ScriptState;
class WakeLock;
class WorkerNavigator;
class WorkerNavigatorWakeLock final
: public GarbageCollected<WorkerNavigatorWakeLock>,
public Supplement<WorkerNavigator> {
USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorWakeLock);
public:
static const char kSupplementName[];
static WorkerNavigatorWakeLock& From(WorkerNavigator&);
static WakeLock* wakeLock(ScriptState*, WorkerNavigator&);
explicit WorkerNavigatorWakeLock(WorkerNavigator&);
void Trace(Visitor*) const override;
private:
WakeLock* GetWakeLock(ScriptState*);
Member<WakeLock> wake_lock_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_WAKE_LOCK_WORKER_NAVIGATOR_WAKE_LOCK_H_
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
5c7b1bfe028036d488de6a0b4d43a1b0d8e8878a | a2111a80faf35749d74a533e123d9da9da108214 | /raw/pmsb13/pmsb13-data-20130530/sources/fjt74l9mlcqisdus/2013-04-18T11-06-05.504+0200/sandbox/my_sandbox/apps/tutorial_23/tutorial_23.cpp | 6a4f418612cc363cf6d8c4ff0f41a4b2c1b0cc04 | [
"MIT"
] | permissive | bkahlert/seqan-research | f2c550d539f511825842a60f6b994c1f0a3934c2 | 21945be863855077eec7cbdb51c3450afcf560a3 | refs/heads/master | 2022-12-24T13:05:48.828734 | 2015-07-01T01:56:22 | 2015-07-01T01:56:22 | 21,610,669 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | cpp | #include <seqan/sequence.h>
using namespace seqan;
using namespace std;
int main(){
String<String<int>> x;
String<int>y;
append(y,1);
append(y,2);
append(y,3);
append(x,y);
String<int>z;
append(z,1);
append(z,2);
append(z,3);
append(z,4);
append(x,z);
cout<<x[0]<<endl;
return 0;
} | [
"mail@bkahlert.com"
] | mail@bkahlert.com |
22634e84bd0e03e93805dd93653e2c75dd5b1dcb | 76e3ffcd9c356dceb9208dc035173530e0d58c1e | /sources/LycanthEngine/LycanthEngine/Src/Framebuffers.hpp | 192db77b8d6ff2045c5ed343b9e527b04b2b169e | [] | permissive | Euxiniar/LycanthEngine | 62913c4c279b403070a78fc47ef469b0901502b3 | d4c962ddbbb2123778dbb4e1e3104c86eb57f768 | refs/heads/master | 2020-03-07T22:20:18.128234 | 2018-11-02T12:51:55 | 2018-11-02T12:51:55 | 127,751,217 | 0 | 0 | MIT | 2018-11-02T12:51:56 | 2018-04-02T12:09:31 | C++ | UTF-8 | C++ | false | false | 578 | hpp | #pragma once
#include <wrappers/framebuffer.h>
#include "Renderer.hpp"
#include "Prerequisites.hpp"
#include "Swapchain.hpp"
#include <array>
#include <misc/framebuffer_create_info.h>
namespace Ly
{
class Framebuffers
{
public:
static std::unique_ptr<Ly::Framebuffers> create(Ly::Renderer& renderer, Ly::Swapchain& swapchain);
Framebuffers(Ly::Renderer& renderer, Ly::Swapchain& swapchain);
~Framebuffers();
std::array<Anvil::FramebufferUniquePtr, N_SWAPCHAIN_IMAGES>& get_fbos();
private:
std::array<Anvil::FramebufferUniquePtr, N_SWAPCHAIN_IMAGES> m_fbos;
};
} | [
"charles.ago37@gmail.com"
] | charles.ago37@gmail.com |
b18d796f147be1105700d33defdfac5e89fca00e | 157d0810d40bbb165889f946566346663cf5b22f | /C++ for Everyone, 2nd Ed, Horstmann/Chapter1/P1-2.cpp | c9c763f2488736013bb7b8acd256e196d382c2bd | [] | no_license | dg5921096/Books-solutions | e6ccdcaba0294bdc95e2267723a02d2ba090cb10 | 31bb4bba240bf95aafeb6d189eade62c66a1765a | refs/heads/master | 2021-12-09T16:07:47.756390 | 2021-11-14T07:09:25 | 2021-11-14T07:09:25 | 255,447,147 | 0 | 0 | null | 2020-04-13T21:39:02 | 2020-04-13T21:39:01 | null | WINDOWS-1252 | C++ | false | false | 506 | cpp | // Write a program that prints the message, “Hello, my name is Hal!” Then, on a new
// line, the program should print the message “What would you like me to do ? ” Then
// it’s the user’s turn to type in an input.
#include<iostream>
#include<string>
using namespace std;
int main()
{
cout << "Holla, my name is Hal!\n";
cout << "What would you like me to do?\n";
string user_input;
getline(cin, user_input);
cout << "I am sorry, I cannnot do that.";
return 0;
}
| [
"syndbe@gmail.com"
] | syndbe@gmail.com |
5d1fff70c06cc11da141871ebdd9485618e84133 | 9a4ce1af95a2c1b6dd5a9e101bad5da0ebf1f983 | /00.Kompendium_C++/Exempel/v3.0/kap11ex/runner.cc | 9573b39bd6b9c5abed01670641f6b0f4eb9ed90f | [] | no_license | tnordenmark/UU | 4e90c0fdf95fdf07057ef00c201b9d6cdbb5aaa8 | b2bd400f07de9919fba7d17178a5d30a88d30ee5 | refs/heads/master | 2016-09-06T04:22:09.951390 | 2013-12-02T21:07:32 | 2013-12-02T21:07:32 | 14,874,820 | 2 | 4 | null | null | null | null | ISO-8859-1 | C++ | false | false | 870 | cc | // Filnamn : .../runner.cc
#include <iostream>
#include <string>
#include "sportsman.h"
#include "runner.h"
using namespace std;
runner::runner() : sportsman() {
conditionIndex = 0;
cout << "Välkommen runner " << fname << endl;
}
runner::runner( string fn, string ln,
string br, int nfp, double ci )
: sportsman( fn, ln, br, nfp ) {
conditionIndex = ci;
cout << "Välkommen runner " << fname << endl;
}
runner::~runner() {
cout << "Ajöss runner " << fname << " " << lname << endl;
}
void runner::report() {
sportsman::report();
cout << "Konditionsindex : " << conditionIndex <<endl;
}
void runner::input() {
sportsman::input();
cout << "Ge konditionsindex : ";
cin >> conditionIndex;
cin.get();
}
double runner::getConditionIndex() {
return conditionIndex;
}
void runner::setConditionIndex( double ci ) {
conditionIndex = ci;
}
| [
"t.nordenmark@gmail.com"
] | t.nordenmark@gmail.com |
91a4c220b2931e4402f6db44a9762a1791926d8a | 08d3b7a3ae96d96630ffa198b7ced8c2cf5e49d3 | /ActiveDirectory/sidcloner/SIDCloner - add sIDHistory from PowerShell/C++/AssemblyInfo.cpp | 8ac27c8951b4c69bbda2ca8aa5468a8c7cfb6bf7 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | BertMueller18/Powershell_Functions | d5c95ae4368ff31cf83c6240aaa567695e94c592 | a5a94b37887a1201df4857dfe09d98e6909709ff | refs/heads/master | 2021-09-02T04:19:15.735342 | 2021-08-11T21:06:26 | 2021-08-11T21:06:26 | 15,676,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,296 | cpp | #include "stdafx.h"
using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;
using namespace System::Runtime::InteropServices;
using namespace System::Security::Permissions;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly:AssemblyTitleAttribute("SIDCloner")];
[assembly:AssemblyDescriptionAttribute("")];
[assembly:AssemblyConfigurationAttribute("")];
[assembly:AssemblyCompanyAttribute("")];
[assembly:AssemblyProductAttribute("SIDCloner")];
[assembly:AssemblyCopyrightAttribute("Copyright (c) 2011")];
[assembly:AssemblyTrademarkAttribute("")];
[assembly:AssemblyCultureAttribute("")];
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the value or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly:AssemblyVersionAttribute("1.0.1.*")];
[assembly:ComVisible(false)];
[assembly:CLSCompliantAttribute(true)];
[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];
| [
"jan@imac.fritz.box"
] | jan@imac.fritz.box |
5fe3b985158647972139331fb827ef959733706d | ba9aef6b97c46d9a314b21857c836438a6d91aa1 | /SLP-dev/SubDir/Operand.h | edb037b2e41bfaa2e2cfeae0fbd8024258d0359e | [] | no_license | matthewniemerg/b2 | f92ac9fbe10558bd9f10de6dbd4c57c28cd0e8de | c4fdf3855b8ece3c530c7d87d4c9adbce413e5a5 | refs/heads/master | 2021-01-18T14:44:03.165135 | 2014-04-15T17:02:13 | 2014-04-15T17:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | h | //
// Operand.h
// Bertini2
//
// Created by James Collins on 11/19/13.
// Copyright (c) 2013 James Collins. All rights reserved.
//
#ifndef __Bertini2__Operand__
#define __Bertini2__Operand__
#include <iostream>
class Operand
{
protected:
bool isLeaf;
public:
int IsLeaf() { return isLeaf;};
virtual double evaluate() = 0;
virtual double evaluate(double* vars) = 0;
};
#endif /* defined(__Bertini2__Operand__) */
| [
"matthewniemerg@Matthews-MacBook-Pro-2.local"
] | matthewniemerg@Matthews-MacBook-Pro-2.local |
5b3952b625ace9caa3ee4bddc7c818837eb0c56b | c1ff870879152fba2b54eddfb7591ec322eb3061 | /plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/deps/v8/src/base/ieee754.h | 72f3db15ef22afa6004b4fad945bc285beb4d0a6 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"ISC",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Artistic-2.0",
"NAIST-2003",
"BSD-3-Clause",
"Zlib",
"NTP",
"LicenseRef-scancode-openssl",
"ICU",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-unknown-license-reference",
"bzip2... | permissive | MTASZTAKI/ApertusVR | 1a9809fb7af81c3cd7fb732ed481ebe4ce66fefa | 424ec5515ae08780542f33cc4841a8f9a96337b3 | refs/heads/0.9 | 2022-12-11T20:03:42.926813 | 2019-10-11T09:29:45 | 2019-10-11T09:29:45 | 73,708,854 | 188 | 55 | MIT | 2022-12-11T08:53:21 | 2016-11-14T13:48:00 | C++ | UTF-8 | C++ | false | false | 2,546 | h | // Copyright 2016 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.
#ifndef V8_BASE_IEEE754_H_
#define V8_BASE_IEEE754_H_
#include "src/base/base-export.h"
namespace v8 {
namespace base {
namespace ieee754 {
// Returns the arc cosine of |x|; that is the value whose cosine is |x|.
V8_BASE_EXPORT double acos(double x);
// Returns the inverse hyperbolic cosine of |x|; that is the value whose
// hyperbolic cosine is |x|.
V8_BASE_EXPORT double acosh(double x);
// Returns the arc sine of |x|; that is the value whose sine is |x|.
V8_BASE_EXPORT double asin(double x);
// Returns the inverse hyperbolic sine of |x|; that is the value whose
// hyperbolic sine is |x|.
V8_BASE_EXPORT double asinh(double x);
// Returns the principal value of the arc tangent of |x|; that is the value
// whose tangent is |x|.
V8_BASE_EXPORT double atan(double x);
// Returns the principal value of the arc tangent of |y/x|, using the signs of
// the two arguments to determine the quadrant of the result.
V8_BASE_EXPORT double atan2(double y, double x);
// Returns the cosine of |x|, where |x| is given in radians.
V8_BASE_EXPORT double cos(double x);
// Returns the base-e exponential of |x|.
V8_BASE_EXPORT double exp(double x);
V8_BASE_EXPORT double atanh(double x);
// Returns the natural logarithm of |x|.
V8_BASE_EXPORT double log(double x);
// Returns a value equivalent to |log(1+x)|, but computed in a way that is
// accurate even if the value of |x| is near zero.
V8_BASE_EXPORT double log1p(double x);
// Returns the base 2 logarithm of |x|.
V8_BASE_EXPORT double log2(double x);
// Returns the base 10 logarithm of |x|.
V8_BASE_EXPORT double log10(double x);
// Returns the cube root of |x|.
V8_BASE_EXPORT double cbrt(double x);
// Returns exp(x)-1, the exponential of |x| minus 1.
V8_BASE_EXPORT double expm1(double x);
// Returns the sine of |x|, where |x| is given in radians.
V8_BASE_EXPORT double sin(double x);
// Returns the tangent of |x|, where |x| is given in radians.
V8_BASE_EXPORT double tan(double x);
// Returns the hyperbolic cosine of |x|, where |x| is given radians.
V8_BASE_EXPORT double cosh(double x);
// Returns the hyperbolic sine of |x|, where |x| is given radians.
V8_BASE_EXPORT double sinh(double x);
// Returns the hyperbolic tangent of |x|, where |x| is given radians.
V8_BASE_EXPORT double tanh(double x);
} // namespace ieee754
} // namespace base
} // namespace v8
#endif // V8_BASE_IEEE754_H_
| [
"peter.kovacs@sztaki.mta.hu"
] | peter.kovacs@sztaki.mta.hu |
4963fd0e4bdc3384f3cfa6923f077712c6e11c9d | 7ff4989ff2511de2b7b87d194491218c123ef4ca | /src/script/ScriptFunctions.cpp | f6fd1864976f832dc9dc51b11a663185a2627754 | [
"MIT"
] | permissive | stamhe/xbtc | 8c4ca6c213f17ffab076e4515d521c715b36c76b | 243c29574651d4365cd5313b75043463afc80950 | refs/heads/master | 2020-04-22T15:12:24.467179 | 2018-05-17T02:51:32 | 2018-05-17T02:51:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,224 | cpp | #include "ScriptVM.hpp"
#include "ScriptFunction.hpp"
#include "Script.hpp"
#include "util/Hasher.hpp"
#include <xul/io/data_input_stream.hpp>
#include <xul/io/data_encoding.hpp>
#include <xul/crypto/hasher.hpp>
#include <xul/util/singleton.hpp>
#include <xul/std/strings.hpp>
#include <xul/log/log.hpp>
namespace xbtc {
const std::string vTrue(1, OP_TRUE);
const std::string vFalse;
namespace {
#define VM_CHECK(vm, cond, errcode) do { if (!(cond)) { vm->env->setError(errcode); assert(false); return; } } while (false)
#define VM_CHECK_PARAM(vm, cond) VM_CHECK(vm, cond, (ScriptError::SCRIPT_ERR_INVALID_PARAM))
#define VM_CHECK_PARAM_COUNT(vm, n) VM_CHECK_PARAM(vm, (vm->stack->size() >= n))
class Hashers : public xul::singleton<Hashers>
{
public:
std::vector<std::shared_ptr<xul::hasher> > hashers;
Hashers() {}
void init()
{
hashers.resize(5);
assert(OP_RIPEMD160 + 4 == OP_HASH256);
hashers[0] = std::make_shared<xul::openssl_ripemd160_hasher>();
hashers[OP_SHA1 - OP_RIPEMD160] = std::make_shared<xul::openssl_sha1_hasher>();
hashers[OP_SHA256 - OP_RIPEMD160] = std::make_shared<xul::openssl_sha256_hasher>();
hashers[OP_HASH160 - OP_RIPEMD160] = std::make_shared<Hasher160>();
hashers[OP_HASH256 - OP_RIPEMD160] = std::make_shared<Hasher256>();
}
};
int64_t scriptOp_1add(const int64_t& val) { return val + 1; }
int64_t scriptOp_1sub(const int64_t& val) { return val - 1; }
int64_t scriptOp_2mul(const int64_t& val) { return val << 1; }
int64_t scriptOp_2div(const int64_t& val) { return val >> 1; }
int64_t scriptOp_negate(const int64_t& val) { return -val; }
int64_t scriptOp_abs(const int64_t& val) { return val >= 0 ? val : -val; }
int64_t scriptOp_not(const int64_t& val) { return val == 0; }
int64_t scriptOp_0notEqual(const int64_t& val) { return val != 0; }
typedef int64_t (*ScriptUnaryNumberFunctionType)(const int64_t& val);
class UnaryNumberOps : public xul::singleton<UnaryNumberOps>
{
public:
std::vector<ScriptUnaryNumberFunctionType> functions;
UnaryNumberOps() {}
void init()
{
functions.push_back(scriptOp_1add);
functions.push_back(scriptOp_1sub);
functions.push_back(scriptOp_2mul);
functions.push_back(scriptOp_2div);
functions.push_back(scriptOp_negate);
functions.push_back(scriptOp_abs);
functions.push_back(scriptOp_not);
functions.push_back(scriptOp_0notEqual);
}
};
int64_t scriptOp_add(const int64_t& x, const int64_t& y) { return x + y; }
int64_t scriptOp_sub(const int64_t& x, const int64_t& y) { return x - y; }
int64_t scriptOp_mul(const int64_t& x, const int64_t& y) { return x * y; }
int64_t scriptOp_div(const int64_t& x, const int64_t& y) { return x / y; }
int64_t scriptOp_mod(const int64_t& x, const int64_t& y) { return x % y; }
int64_t scriptOp_lshift(const int64_t& x, const int64_t& y) { return x << y; }
int64_t scriptOp_rshift(const int64_t& x, const int64_t& y) { return x >> y; }
int64_t scriptOp_boolAnd(const int64_t& x, const int64_t& y) { return x != 0 && y != 0; }
int64_t scriptOp_boolOr(const int64_t& x, const int64_t& y) { return x != 0 || y != 0; }
int64_t scriptOp_numberEqual(const int64_t& x, const int64_t& y) { return x == y; }
int64_t scriptOp_numberEqualVerify(const int64_t& x, const int64_t& y) { return x == y; }
int64_t scriptOp_numberNotEqual(const int64_t& x, const int64_t& y) { return x != y; }
int64_t scriptOp_lessThan(const int64_t& x, const int64_t& y) { return x < y; }
int64_t scriptOp_greaterThan(const int64_t& x, const int64_t& y) { return x > y; }
int64_t scriptOp_lessThanOrEqual(const int64_t& x, const int64_t& y) { return x <= y; }
int64_t scriptOp_greaterThanOrEqual(const int64_t& x, const int64_t& y) { return x >= y; }
int64_t scriptOp_min(const int64_t& x, const int64_t& y) { return x < y ? x : y; }
int64_t scriptOp_max(const int64_t& x, const int64_t& y) { return x > y ? x : y; }
typedef int64_t (*ScriptBinaryNumberFunctionType)(const int64_t& x, const int64_t& y);
class BinaryNumberOps : public xul::singleton<BinaryNumberOps>
{
public:
std::vector<ScriptBinaryNumberFunctionType> functions;
BinaryNumberOps() {}
void init()
{
functions.push_back(scriptOp_add);
functions.push_back(scriptOp_sub);
functions.push_back(scriptOp_mul);
functions.push_back(scriptOp_div);
functions.push_back(scriptOp_mod);
functions.push_back(scriptOp_lshift);
functions.push_back(scriptOp_rshift);
functions.push_back(scriptOp_boolAnd);
functions.push_back(scriptOp_boolOr);
functions.push_back(scriptOp_numberEqual);
functions.push_back(scriptOp_numberEqualVerify);
functions.push_back(scriptOp_numberNotEqual);
functions.push_back(scriptOp_lessThan);
functions.push_back(scriptOp_greaterThan);
functions.push_back(scriptOp_lessThanOrEqual);
functions.push_back(scriptOp_greaterThanOrEqual);
functions.push_back(scriptOp_min);
functions.push_back(scriptOp_max);
}
};
void script_reserved(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
XUL_WARN(vm, "script_reserved " << xul::strings::format("opcode=0x%02X", opcode) << " " << getOpName(static_cast<opcodetype>(opcode)));
assert(false);
}
void script_noop(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
}
void script_push0(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
assert(opcode < OP_PUSHDATA1);
std::string s;
if (opcode > 0 && !code.read_string(s, opcode))
{
vm->env->setError(1);
return;
}
if (opcode == 0)
{
XUL_WARN(vm, "script_push0 empty data ");
}
vm->stack->push(s);
}
template <typename SizeT>
void script_pushdata(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
SizeT size = 0;
code >> size;
std::string s;
if (code.read_string(s, size))
{
vm->stack->push(s);
}
}
void script_push1(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
script_pushdata<uint8_t>(vm, opcode, code);
}
void script_push2(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
script_pushdata<uint16_t>(vm, opcode, code);
}
void script_push4(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
script_pushdata<uint32_t>(vm, opcode, code);
}
void script_integer(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
assert((opcode >= OP_1 && opcode <= OP_16) || opcode == OP_1NEGATE);
int val = opcode - OP_1;
std::string s = ScriptUtils::encodeScriptNumber(val + 1);
vm->stack->push(s);
}
void script_equal(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
assert(opcode == OP_EQUAL || opcode == OP_EQUALVERIFY);
VM_CHECK_PARAM_COUNT(vm, 2);
const std::string& v1 = vm->stack->get(-1);
const std::string& v2 = vm->stack->get(-2);
bool ret = (v1 == v2);
vm->stack->pop(2);
vm->stack->pushBool(ret);
if (opcode == OP_EQUALVERIFY)
{
vm->verify(SCRIPT_ERR_EQUALVERIFY);
}
}
void script_numericUnaryOp(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
assert(opcode >= OP_1ADD && opcode <= OP_0NOTEQUAL);
VM_CHECK_PARAM_COUNT(vm, 1);
int opIndex = opcode - OP_1ADD;
int64_t val;
VM_CHECK_PARAM(vm, vm->getIntegerValue(-1, val));
assert(opIndex >= 0 && opIndex < UnaryNumberOps::instance().functions.size());
vm->stack->pop();
vm->stack->pushInteger(UnaryNumberOps::instance().functions[opIndex](val));
}
void script_numericBinaryOp(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
assert(opcode >= OP_ADD && opcode <= OP_MAX);
VM_CHECK_PARAM_COUNT(vm, 2);
int opIndex = opcode - OP_ADD;
int64_t x, y;
VM_CHECK_PARAM(vm, vm->getIntegerValue(-2, x));
VM_CHECK_PARAM(vm, vm->getIntegerValue(-1, y));
assert(opIndex >= 0 && opIndex < BinaryNumberOps::instance().functions.size());
vm->stack->pop(2);
vm->stack->pushInteger(BinaryNumberOps::instance().functions[opIndex](x, y));
if (opcode == OP_NUMEQUALVERIFY)
{
vm->verify(SCRIPT_ERR_NUMEQUALVERIFY);
}
}
void script_within(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
// (x min max -- out)
VM_CHECK_PARAM_COUNT(vm, 3);
int64_t x, minval, maxval;
VM_CHECK_PARAM(vm, vm->getIntegerValue(-3, x));
VM_CHECK_PARAM(vm, vm->getIntegerValue(-2, minval));
VM_CHECK_PARAM(vm, vm->getIntegerValue(-1, maxval));
bool success = (minval <= x && x < maxval);
vm->stack->pop(3);
vm->stack->pushBool(success);
}
void script_dup(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
VM_CHECK_PARAM_COUNT(vm, 1);
vm->stack->dup();
}
void script_dup2(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
VM_CHECK_PARAM_COUNT(vm, 2);
vm->stack->dup(2);
}
void script_dup3(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
VM_CHECK_PARAM_COUNT(vm, 3);
vm->stack->dup(3);
}
void script_drop(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
VM_CHECK_PARAM_COUNT(vm, 1);
vm->stack->pop();
}
void script_drop2(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
VM_CHECK_PARAM_COUNT(vm, 2);
vm->stack->pop(2);
}
void script_depth(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
vm->stack->pushInteger(vm->stack->size());
}
void script_size(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
VM_CHECK_PARAM_COUNT(vm, 1);
vm->stack->pushInteger(vm->stack->get(-1).size());
}
void script_return(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
vm->env->setError(SCRIPT_ERR_OP_RETURN);
}
void script_hash(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
assert(opcode >= OP_RIPEMD160 && opcode <= OP_HASH256);
VM_CHECK_PARAM_COUNT(vm, 1);
xul::hasher* hasher = Hashers::instance().hashers[opcode - OP_RIPEMD160].get();
assert(hasher);
std::string s = vm->stack->get(-1);
hasher->reset();
hasher->update_string(s);
std::string digest = hasher->finalize_to_string();
vm->stack->pop();
vm->stack->push(digest);
}
void script_checkSig(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
assert(opcode == OP_CHECKSIG || opcode == OP_CHECKSIGVERIFY);
VM_CHECK_PARAM_COUNT(vm, 2);
std::string sig = vm->stack->get(-2);
std::string pubkey = vm->stack->get(-1);
bool success = vm->env->checker.check(sig, pubkey, vm->env->code);
vm->stack->pop(2);
vm->stack->pushBool(success);
assert(success);
if (opcode == OP_CHECKSIGVERIFY)
{
vm->verify(SCRIPT_ERR_CHECKSIGVERIFY);
}
}
bool checkMultiSig(ScriptVM* vm, const std::vector<std::string>& pubkeys, const std::vector<std::string>& signatures)
{
int usedPubkey = 0;
int passed = 0;
for (const auto& sig : signatures)
{
while (usedPubkey < pubkeys.size())
{
const std::string& pubkey = pubkeys[usedPubkey++];
if (vm->env->checker.check(sig, pubkey, vm->env->code))
{
++passed;
break;
}
}
}
assert(passed <= signatures.size());
return passed >= signatures.size();
}
void script_checkMultiSig(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
assert(opcode == OP_CHECKMULTISIG || opcode == OP_CHECKMULTISIGVERIFY);
// ([sig ...] num_of_signatures [pubkey ...] num_of_pubkeys -- bool)
VM_CHECK_PARAM_COUNT(vm, 1);
int64_t keyCount = 0;
VM_CHECK_PARAM(vm, vm->getIntegerValue(-1, keyCount));
VM_CHECK_PARAM(vm, keyCount >= 0 && keyCount < MAX_PUBKEYS_PER_MULTISIG);
int64_t sigCount = 0;
VM_CHECK_PARAM_COUNT(vm, 2 + keyCount);
VM_CHECK_PARAM(vm, vm->getIntegerValue(-2 - keyCount, sigCount));
VM_CHECK_PARAM(vm, sigCount >= 0 && sigCount <= keyCount);
std::vector<std::string> pubkeys, signatures;
VM_CHECK_PARAM(vm, vm->getValues(pubkeys, -2, keyCount));
VM_CHECK_PARAM(vm, vm->getValues(signatures, -3 - keyCount, sigCount));
bool success = checkMultiSig(vm, pubkeys, signatures);
vm->stack->pop(2 + keyCount + sigCount);
if (vm->stack->size() >= 1)
vm->stack->pop(1);
vm->stack->pushBool(success);
if (opcode == OP_CHECKMULTISIGVERIFY)
{
vm->verify(SCRIPT_ERR_CHECKMULTISIGVERIFY);
}
}
}
ScriptFunctionTable::ScriptFunctionTable()
{
functions.resize(256);
for (int i = 0; i < functions.size(); ++i)
functions[i] = script_reserved;
for (int i = OP_1; i <= OP_16; ++i)
functions[i] = script_integer;
functions[OP_1NEGATE] = script_integer;
for (int i = OP_0; i < OP_PUSHDATA1; ++i)
functions[i] = script_push0;
functions[OP_PUSHDATA1] = script_push1;
functions[OP_PUSHDATA2] = script_push2;
functions[OP_PUSHDATA4] = script_push4;
functions[OP_EQUAL] = script_equal;
functions[OP_EQUALVERIFY] = script_equal;
functions[OP_DUP] = script_dup;
functions[OP_2DUP] = script_dup2;
functions[OP_3DUP] = script_dup3;
functions[OP_DROP] = script_drop;
functions[OP_2DROP] = script_drop2;
functions[OP_DEPTH] = script_depth;
functions[OP_SIZE] = script_size;
for (int i = OP_1ADD; i <= OP_0NOTEQUAL; ++i)
functions[i] = script_numericUnaryOp;
for (int i = OP_ADD; i <= OP_MAX; ++i)
functions[i] = script_numericBinaryOp;
functions[OP_WITHIN] = script_within;
for (int i = OP_RIPEMD160; i <= OP_HASH256; ++i)
functions[i] = script_hash;
functions[OP_CHECKSIG] = script_checkSig;
functions[OP_CHECKSIGVERIFY] = script_checkSig;
functions[OP_CHECKMULTISIG] = script_checkMultiSig;
functions[OP_CHECKMULTISIGVERIFY] = script_checkMultiSig;
// controls
functions[OP_NOP] = script_noop;
functions[OP_RETURN] = script_return;
Hashers::instance().init();
UnaryNumberOps::instance().init();
BinaryNumberOps::instance().init();
}
void ScriptFunctionTable::eval(ScriptVM* vm, uint8_t opcode, xul::data_input_stream& code)
{
functions[opcode](vm, opcode, code);
}
}
| [
"kkcmp@163.com"
] | kkcmp@163.com |
41d4b39d449ff614f849e7959ec1aecac5f017b0 | a993ff61aa3790cbb5ae884f992f8ddd29ee73ff | /ImageSimulation/Layers32/DialogNoise.cpp | 15d85c5be5a67597e4fcba832f11316f0868ceff | [] | no_license | obisan/Multislice | ebf76eaeb2f66996e165a9592321f6f790b47ac0 | e2a5f2f1d6f8049ec3c459dbdba71a8d1db41593 | refs/heads/master | 2021-01-01T17:05:47.762985 | 2015-02-26T04:56:04 | 2015-02-26T04:56:04 | 19,202,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,456 | cpp | // DialogNoise.cpp : implementation file
//
#include "stdafx.h"
#include "layers32.h"
#include "DialogNoise.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDialogNoise dialog
CDialogNoise::CDialogNoise(CWnd* pParent /*=NULL*/)
: CDialog(CDialogNoise::IDD, pParent)
{
//{{AFX_DATA_INIT(CDialogNoise)
m_at = FALSE;
m_ft = FALSE;
m_dem = 512;
m_max = 255;
m_min = 0;
//}}AFX_DATA_INIT
}
void CDialogNoise::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDialogNoise)
DDX_Check(pDX, IDC_AT, m_at);
DDX_Check(pDX, IDC_FT, m_ft);
DDX_Text(pDX, IDC_DEM, m_dem);
DDX_Text(pDX, IDC_MAX, m_max);
DDX_Text(pDX, IDC_MIN, m_min);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDialogNoise, CDialog)
//{{AFX_MSG_MAP(CDialogNoise)
ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN, OnDeltaposSpin)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDialogNoise message handlers
void CDialogNoise::OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
if(pNMUpDown->iDelta==-1)
{
UpdateData();
m_dem*=2;
if(m_dem>4096)
{
m_dem=4096;
}
UpdateData(false);
}
else
{
UpdateData();
m_dem/=2;
if(m_dem<512)
{
m_dem=512;
}
UpdateData(false);
}
*pResult = 0;
}
| [
"dubinets.av@gmail.com"
] | dubinets.av@gmail.com |
0c5ae2b069ce3ce27d5aee92054619c324aa4320 | 6bae8050966a723c748f5662e218f91c23d55cac | /menu.cpp | fd5482797e2104768ad4be4625e578d87d186308 | [] | no_license | anukq/PsychTool | b42b1a76601c11616d97512ec37f9afd3e35b5b1 | ebb1ae27258a56dd53f91634ee5e690bb59235dc | refs/heads/master | 2023-07-21T01:11:46.774006 | 2020-05-15T01:01:03 | 2020-05-15T01:01:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,011 | cpp | #include "menu.h"
#include "ui_menu.h"
#include <QTextStream>
#include <QDebug>
Menu::Menu(QWidget *parent) : QDialog(parent),
ui(new Ui::Menu)
{
ui->setupUi(this);
}
Menu::~Menu()
{
delete ui;
}
void Menu::on_Button_Close_clicked()
{
this->close();
}
/*
QString Menu::getRandomSeedText(void)
{
return m_seedText;
}
*/
void Menu::on_lineEdit_randomSeed_returnPressed()
{
m_seedText = ui->lineEdit_randomSeed->text(); //setting variable to Text entered within textbox
qDebug() << "seed text: " << m_seedText; // For Testing Puporses
Random r;
r.setSeedText(m_seedText); //Setting variable used in text RNG
//Algorithm 1
ui->spinbox_VarOne->setValue(double(r.getStringLength()));
ui->spinbox_VarTwo->setValue(double(r.getConsonants()));
ui->spinbox_VarThree->setValue(double(r.getAs()));
ui->spinbox_VarFour->setValue(double(r.getVowels()));
qDebug() << "length: " << r.getStringLength();
qDebug() << "consonants: " << r.getConsonants();
qDebug() << "a's: " << r.getAs();
qDebug() << "vowels: " << r.getVowels();
//Algorithm2
ui->spinbox_VarOne_Algo2->setValue(double(r.getStringLength()));
//Algorithm3
if(ui->comboBox_shapeType->currentIndex() == 0)
{
ui->spinbox_Iterations_Algo3->setValue(double(r.getStringLength() * 50000));
}
if(ui->comboBox_shapeType->currentIndex() == 1 || ui->comboBox_shapeType->currentIndex() == 2 || ui->comboBox_shapeType->currentIndex() == 3)
{
ui->spinbox_Iterations_Algo3->setValue(double(r.getConsonants() * 10));
}
if(ui->comboBox_shapeType->currentIndex() > 4 )
{
ui->spinbox_Iterations_Algo3->setValue(double(r.getStringLength()));
}
ui->spinbox_VarOne_Algo3->setValue(double(r.getStringLength()));
ui->spinbox_VarTwo_Algo3->setValue(double(r.getConsonants()));
ui->spinbox_VarThree_Algo3->setValue(double(r.getAs()));
ui->spinbox_VarFour_Algo3->setValue(double(r.getVowels()));
}
void Menu::on_button_generate_randomNumbers_clicked()
{
//Algorithm 1
ui->spinbox_VarOne->setValue(double(XY(rng)));
ui->spinbox_VarTwo->setValue(double(XY(rng)));
ui->spinbox_VarThree->setValue(double(WZ(rng)));
ui->spinbox_VarFour->setValue(double(WZ(rng)));
//Algorithm 2
ui->spinbox_zValue_Algo2->setValue(double(zAxisValue(rng)));
ui->spinbox_VarOne_Algo2->setValue(double(XY(rng)));
qDebug() << "Random Button Clicked!";
//Algorithm 3
//ui->comboBox_shapeType->setCurrentIndex(int(r_shapeType(rng)));
if(ui->comboBox_shapeType->currentIndex() == 0)
{
ui->spinbox_Iterations_Algo3->setValue(double(Iterations(rng)));
}
if(ui->comboBox_shapeType->currentIndex() == 1 || ui->comboBox_shapeType->currentIndex() == 2 || ui->comboBox_shapeType->currentIndex() == 3)
{
ui->spinbox_Iterations_Algo3->setValue(double(r_shape_line(rng)));
}
if(ui->comboBox_shapeType->currentIndex() > 4 )
{
ui->spinbox_Iterations_Algo3->setValue(double(r_shape_triangle(rng)));
}
ui->spinbox_VarOne_Algo3->setValue(double(XY(rng)));
ui->spinbox_VarTwo_Algo3->setValue(double(XY(rng)));
ui->spinbox_VarThree_Algo3->setValue(double(XY(rng)));
ui->spinbox_VarFour_Algo3->setValue(double(XY(rng)));
}
void Menu::on_button_generate_randomShape_clicked()
{
ui->comboBox_shapeType->setCurrentIndex(int(r_shapeType(rng)));
}
void Menu::on_Button_save_AlgoValues_clicked()
{
QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"), "", tr("File Type (*.txt)"));
if (fileName != "") {
QFile file(fileName);
if (file.open(QIODevice::ReadWrite)) {
QTextStream stream(&file);
stream << ui->plainTextEdit->toPlainText();
file.flush();
file.close();
}
else {
QMessageBox::critical(this, tr("Error"), tr("Cannot save file!"));
return;
}
}
}
| [
"git@jamieacharya.com"
] | git@jamieacharya.com |
798ea4ceb05cf6ca36e78cfdf99bdaa4ecaec53d | dc523f782531ef9aaf6b339c6bc4fe5135022454 | /source/main.cpp | 65edd05d7d80607e01c1335b305a8a249fe58b32 | [] | no_license | genius92606/OpenGL-simple-obj-loading | 21f486791c627e4101fc4fcddb0490d94e87f685 | 0aac8f7cb3980684fd86517f59691d87e398fa65 | refs/heads/master | 2020-05-01T05:00:43.591283 | 2019-03-23T13:03:34 | 2019-03-23T13:03:34 | 177,289,168 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 10,746 | cpp | /*
CG HW1
Please fill the functions whose parameters are replaced by ... in the following function
static int add_obj(unsigned int program, const char *filename)(line 140)
static void render() (line 202)
For example : line 156 //glGenVertexArrays(...);
*/
#include <iostream>
#include <cstdlib>
#include <string>
#include <fstream>
#include <vector>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "tiny_obj_loader.h"
#define GLM_FORCE_RADIANS
float aspect;
GLint modelLoc;
GLint projLoc;
struct object_struct{
unsigned int program;
unsigned int vao;
unsigned int vbo[3];
unsigned int texture;
glm::mat4 model;
//struct's constructor
object_struct(): model(glm::mat4(1.0f)){}
} ;
std::vector<object_struct> objects;//vertex array object,vertex buffer object and texture(color) for objs
unsigned int program;
//a vector to store indices size(number) of a obj
//the size of this vector means how many objs do we want to draw
std::vector<int> indicesCount;//Number of indice of objs
static void error_callback(int error, const char* description)
{
//to print the error message
fputs(description, stderr);
}
static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
{
//if input "ESC" , then this function will close the window~~~
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
glfwSetWindowShouldClose(window, GL_TRUE);
}
static unsigned int setup_shader(const char *vertex_shader, const char *fragment_shader)
{
GLuint vs=glCreateShader(GL_VERTEX_SHADER);
glShaderSource(vs, 1, (const GLchar**)&vertex_shader, nullptr);
glCompileShader(vs); //compile vertex shader
int status, maxLength;
char *infoLog=nullptr;
glGetShaderiv(vs, GL_COMPILE_STATUS, &status); //get compile status
if(status==GL_FALSE) //if compile error
{
glGetShaderiv(vs, GL_INFO_LOG_LENGTH, &maxLength); //get error message length
/* The maxLength includes the NULL character */
infoLog = new char[maxLength];
glGetShaderInfoLog(vs, maxLength, &maxLength, infoLog); //get error message
fprintf(stderr, "Vertex Shader Error: %s\n", infoLog);
/* Handle the error in an appropriate way such as displaying a message or writing to a log file. */
/* In this simple program, we'll just leave */
delete [] infoLog;
return 0;
}
// for fragment shader --> same as vertex shader
GLuint fs=glCreateShader(GL_FRAGMENT_SHADER);
glShaderSource(fs, 1, (const GLchar**)&fragment_shader, nullptr);
glCompileShader(fs);
glGetShaderiv(fs, GL_COMPILE_STATUS, &status);
if(status==GL_FALSE)
{
glGetShaderiv(fs, GL_INFO_LOG_LENGTH, &maxLength);
/* The maxLength includes the NULL character */
infoLog = new char[maxLength];
glGetShaderInfoLog(fs, maxLength, &maxLength, infoLog);
fprintf(stderr, "Fragment Shader Error: %s\n", infoLog);
/* Handle the error in an appropriate way such as displaying a message or writing to a log file. */
/* In this simple program, we'll just leave */
delete [] infoLog;
return 0;
}
unsigned int program=glCreateProgram();
// Attach our shaders to our program
glAttachShader(program, vs);
glAttachShader(program, fs);
glLinkProgram(program);
glGetProgramiv(program, GL_LINK_STATUS, &status);
if(status==GL_FALSE)
{
glGetProgramiv(program, GL_INFO_LOG_LENGTH, &maxLength);
/* The maxLength includes the NULL character */
infoLog = new char[maxLength];
glGetProgramInfoLog(program, maxLength, NULL, infoLog);
glGetProgramInfoLog(program, maxLength, &maxLength, infoLog);
fprintf(stderr, "Link Error: %s\n", infoLog);
/* Handle the error in an appropriate way such as displaying a message or writing to a log file. */
/* In this simple program, we'll just leave */
delete [] infoLog;
return 0;
}
return program;
}
static std::string readfile(const char *filename)
{
std::ifstream ifs(filename);
if(!ifs)
exit(EXIT_FAILURE);
return std::string( std::istreambuf_iterator<char>(ifs),
std::istreambuf_iterator<char>());
}
static int add_obj(unsigned int program, const char *filename)
{
object_struct new_node;
std::vector<tinyobj::shape_t> shapes;
std::vector<tinyobj::material_t> materials;
std::string err = tinyobj::LoadObj(shapes, materials, filename);
if (!err.empty()||shapes.size()==0)
{
std::cerr<<err<<std::endl;
exit(1);
}
//Generate memory for buffers.
//to generate the VAO
glGenVertexArrays(1, &new_node.vao);
//to generate the VBOs
glGenBuffers(3, new_node.vbo);
glGenTextures(1,&new_node.texture);
//Tell the program which VAO I am going to modify
//to start VAO to store(point to) the information of VBO
glBindVertexArray(new_node.vao);
// Upload postion array
//to bind the vbo[0] to GL_ARRAY_BUFFER
glBindBuffer(GL_ARRAY_BUFFER, new_node.vbo[0]);
//to send our obj information to vbo[0](GL_ARRAY_BUFFER)
glBufferData(
GL_ARRAY_BUFFER, //the destination of our copying data
sizeof(GLfloat)*shapes[0].mesh.positions.size(), //the size of our copying data
shapes[0].mesh.positions.data(), //copying data
GL_STATIC_DRAW //management of this data
);
//to enable the vertex attribute buffer (location =0)
glEnableVertexAttribArray(0);
//if stride is set to 0 , it means that the stride will be determined by OpenGL
//to give the data to position in vertex shader (location =0)
glVertexAttribPointer(
0, //the vertex attribute we want to set (by location)
3, //depends on how much data we want to give to the vertex attribute
GL_FLOAT, //the type of our data,
GL_FALSE, //we want to normalize our data or not
0, //the stride
0 //offset
);
if(shapes[0].mesh.normals.size()>0)
{
//¸ò¤W±«Ü¹³
// Upload normal array
glBindBuffer(GL_ARRAY_BUFFER, new_node.vbo[1]);
glBufferData(
GL_ARRAY_BUFFER, //the destination of our copying data
sizeof(GLfloat)*shapes[0].mesh.positions.size(), //the size of our copying data
shapes[0].mesh.positions.data(), //copying data
GL_STATIC_DRAW //management of this data
);
glEnableVertexAttribArray(1);
glVertexAttribPointer(1,3, GL_FLOAT,GL_FALSE,0,0);
}
// Setup index buffer for glDrawElements
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, new_node.vbo[2]);
glBufferData(GL_ELEMENT_ARRAY_BUFFER,
sizeof(GLuint)*shapes[0].mesh.indices.size(),
shapes[0].mesh.indices.data(),
GL_STATIC_DRAW);
indicesCount.push_back(shapes[0].mesh.indices.size());
//glBindVertexArray(0);
new_node.program = program;
objects.push_back(new_node);
return objects.size()-1;
}
static void releaseObjects()
{
//to release all objs
for(int i=0;i<objects.size();i++){
glDeleteVertexArrays(1, &objects[i].vao);
glDeleteTextures(1, &objects[i].texture);
glDeleteBuffers(4, objects[i].vbo);
}
//to release the shader
glDeleteProgram(program);
}
static void render()
{
float scale = 15.0;
float time = glfwGetTime() / 100.0f;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glUseProgram(program);
glm::mat4 proj_matrix, model_matrix, view_matrix, eye(1.0f);
//set camera matrix
//proj_matrix = /*glm::frustum(...) or glm::perspective(...)*/;
//view_matrix = /*glm::lookAt(...) * glm::mat4(1.0f)*/;
proj_matrix = glm::frustum(-aspect / scale, aspect / scale, -1.0f / scale, 1.0f / scale, 0.10f, 1000.0f);
view_matrix = glm::lookAt(glm::vec3(2.0f), glm::vec3(), glm::vec3(0, 1, 0)) * glm::mat4(1.0f);
glUniformMatrix4fv(projLoc, 1, GL_FALSE, glm::value_ptr(proj_matrix*view_matrix));
for(int i=0;i<objects.size();i++){
//Bind VAO
glBindVertexArray(objects[i].vao);
//If you don't want to rotate or move your object, you can comment the functions below.
model_matrix = glm::translate(eye, glm::vec3(0.0f))
* glm::rotate(eye, 98.70f * time, glm::vec3(0.0f, 0.0f, 1.0f))
* glm::rotate(eye, 123.40f * time, glm::vec3(1.0f, 0.0f, 0.0f));
glUniformMatrix4fv(modelLoc, 1, GL_FALSE, glm::value_ptr(model_matrix));
//Draw object
glDrawElements(GL_TRIANGLES, indicesCount[i], GL_UNSIGNED_INT, nullptr);
}
//Unbind VAO
glBindVertexArray(0);
}
static void reshape(GLFWwindow* window, int width, int height)
{
aspect = (float) width / height;
glViewport(0, 0, width, height);
}
void init_shader()
{
modelLoc = glGetUniformLocation(program, "model");
projLoc = glGetUniformLocation(program, "proj");
}
int main(int argc, char *argv[])
{
GLFWwindow* window;
//set error function
glfwSetErrorCallback(error_callback);
//initialization
if (!glfwInit())
exit(EXIT_FAILURE);
// OpenGL 3.3, Mac OS X is reported to have some problem. However I don't have Mac to test
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); //set hint to glfwCreateWindow, (target, hintValue)
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
//hint--> window not resizable, explicit use core-profile, opengl version 3.3
// For Mac OS X
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
window = glfwCreateWindow(800, 600, "Simple Example", NULL, NULL);
if (!window)
{
glfwTerminate(); //end of glfw
return EXIT_FAILURE;
}
glfwSetFramebufferSizeCallback(window, reshape);
reshape(window, 800, 600);
glfwMakeContextCurrent(window); //set current window as main window to focus
//tell glew to use more modern technique for managing OpenGL funtionality
// This line MUST put below glfwMakeContextCurrent
glewExperimental = GL_TRUE; //tell glew to use more modern technique for managing OpenGL functionality
glewInit();
// Enable vsync(vertical synchronization)
glfwSwapInterval(1); //set the number of screen updates to wait from the time
// Setup input callback
glfwSetKeyCallback(window, key_callback); //set key event handler
// load shader program
program = setup_shader(readfile("light.vert").c_str(), readfile("light.frag").c_str());
//program = setup_shader(readfile("vs.txt").c_str(), readfile("fs.txt").c_str());
init_shader();
if (argc == 1)
add_obj(program, "mug.obj");
else
add_obj(program, argv[1]);
//to enable z buffer
glEnable(GL_DEPTH_TEST);
// prevent faces rendering to the front while they're behind other faces.
//cull those faces which are not in our sight
glCullFace(GL_BACK);
glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
while (!glfwWindowShouldClose(window))
{
//program will keep draw here until you close the window
render();
glfwSwapBuffers(window); //swap the color buffer and show it as output to the screen.
glfwPollEvents(); //check if there is any event being triggered
}
releaseObjects();
glfwDestroyWindow(window);
//end of glfw
glfwTerminate();
return EXIT_SUCCESS;
}
| [
"martin33156@gmail.com"
] | martin33156@gmail.com |
0c7e4bbcf2ace74fe99264efc9f5029bf3a85ab0 | aade1e73011f72554e3bd7f13b6934386daf5313 | /Contest/AsiaEast/Guilin2021/H.cpp | b3815c75b9091170eecd08e4e3d1485853c91153 | [] | no_license | edisonhello/waynedisonitau123 | 3a57bc595cb6a17fc37154ed0ec246b145ab8b32 | 48658467ae94e60ef36cab51a36d784c4144b565 | refs/heads/master | 2022-09-21T04:24:11.154204 | 2022-09-18T15:23:47 | 2022-09-18T15:23:47 | 101,478,520 | 34 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 3,268 | cpp | #pragma GCC optimize("Ofast", "unroll-loops")
#include <bits/stdc++.h>
using namespace std;
constexpr int kN = 500'000 + 123;
constexpr int kB = 30;
int jump[kB][kN][2];
int to[kN][2];
int64_t used[kB][kN][2];
int nxt[kN][2];
int fail[kN];
int l[kN], r[kN], pos[kN];
char buf[kN];
int64_t cnt[kN];
int Read() {
char c = 0;
while (c = getchar(), !isdigit(c));
int x = c - '0';
while (c = getchar(), isdigit(c)) {
x = x * 10 + c - '0';
}
return x;
}
int main() {
int N = Read();
int Q = Read();
for (int i = 0; i < N; ++i) {
l[i] = Read();
r[i] = Read();
}
memset(fail, -1, sizeof(fail));
memset(nxt, -1, sizeof(nxt));
int W = 1;
auto Insert = [&]() {
int x = 0;
for (int i = 0; buf[i] != '\n'; ++i) {
if (nxt[x][buf[i] - '0'] == -1) {
nxt[x][buf[i] - '0'] = W++;
}
x = nxt[x][buf[i] - '0'];
}
return x;
};
for (int i = 0; i < Q; ++i) {
fgets(buf, kN, stdin);
pos[i] = Insert();
}
vector<int> que = {0};
for (int it = 0; it < que.size(); ++it) {
int x = que[it];
for (int i = 0; i < 2; ++i) {
if (nxt[x][i] != -1) {
int p = nxt[x][i], fp = fail[x];
while (fp != -1 && nxt[fp][i] == -1) {
fp = fail[fp];
}
int pd = fp != -1 ? nxt[fp][i] : 0;
fail[p] = pd;
que.push_back(p);
}
}
}
// reverse(que.begin(), que.end());
for (int i : que) {
for (int j = 0; j < 2; ++j) {
if (nxt[i][j] == -1) {
nxt[i][j] = fail[i] == -1 ? 0 : nxt[fail[i]][j];
}
// nxt[i][j] = x;
}
jump[0][i][0] = nxt[i][0];
jump[0][i][1] = nxt[i][1];
}
for (int bit = 1; bit < kB; ++bit) {
for (int i = 0; i < W; ++i) {
for (int j = 0; j < 2; ++j) {
jump[bit][i][j] = jump[bit - 1][jump[bit - 1][i][j]][j ^ 1];
}
}
}
auto Get = [&](int x) {
return __builtin_popcount(x) % 2;
};
int x = 0;
for (int i = 0; i < N; ++i) {
r[i]++;
while (l[i] < r[i]) {
int low_bit = __builtin_ctz(l[i] & -l[i]);
if (l[i] + (1 << low_bit) > r[i]) {
break;
}
int b = Get(l[i]);
used[low_bit][x][b]++;
x = jump[low_bit][x][b];
l[i] += (1 << low_bit);
}
while (l[i] < r[i]) {
int low_bit = 31 - __builtin_clz(r[i] - l[i]);
int b = Get(l[i]);
used[low_bit][x][b]++;
x = jump[low_bit][x][b];
l[i] += (1 << low_bit);
}
assert(l[i] == r[i]);
}
for (int bit = kB - 2; bit >= 0; --bit) {
for (int i = 0; i < W; ++i) {
for (int j = 0; j < 2; ++j) {
used[bit][i][j] += used[bit + 1][i][j];
used[bit][jump[bit][i][j]][j ^ 1] += used[bit + 1][i][j];
}
}
}
// for (int i = 0; i < W; ++i) {
// used[kB - 1][i][0] = 0;
// }
for (int i = 0; i < W; ++i) {
for (int j = 0; j < 2; ++j) {
cnt[nxt[i][j]] += used[0][i][j];
// used[kB - 1][nxt[i][j]][0] += used[0][i][j];
}
}
reverse(que.begin(), que.end());
for (int i : que) {
if (fail[i] != -1) {
cnt[fail[i]] += cnt[i];
// used[kB - 1][fail[i]][0] += used[kB - 1][i][0];
}
}
for (int i = 0; i < Q; ++i) {
cout << cnt[pos[i]] << "\n";
// cout << used[kB - 1][pos[i]][0] << "\n";
}
return 0;
}
| [
"tu.da.wei@gmail.com"
] | tu.da.wei@gmail.com |
ca66c24ddef761a74dfadd7f870a0af85cfa6225 | 94a88c9cb36803c36eeff0fad57689e5fe76cab1 | /Qt/NLP_CHEN/nlp_test.cpp | 1d738b9c9741064946f143b8b82bd86a172462db | [] | no_license | YFCbingyi/test_own | c5e38842765831dcc6c45e3181f370083877fc7f | 8b5461deceeb0b64ef8b571796a017ee532be429 | refs/heads/master | 2021-07-19T19:15:56.742920 | 2020-10-29T02:32:49 | 2020-10-29T02:32:49 | 225,312,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | cpp | #include "nlp_test.h"
#include "debug_log.h"
nlp_test::nlp_test()
{
}
void nlp_test::run()
{
LOG(INFO) << "run _ ";
int i = 10;
try
{
thread1 = std::thread(&nlp_test::_func1_,this);
thread2 = std::thread(&nlp_test::_func1_,this);
thread3 = std::thread(&nlp_test::_func1_,this);
}
catch(std::exception &e)
{
LOG(ERROR) << "exception: "<< e.what();
}
}
void nlp_test::_func1_()
{
// std::string cmd = "rosservice call /speech_service/nlp_baidu \"ask: '你好'\"";
while(true)
{
LOG(INFO) << "打印";
system("rosservice call /speech_service/nlp_baidu \"ask: '你好'\"");
}
}
| [
"“lighty_chen@163.com”"
] | “lighty_chen@163.com” |
cc7a913e190fbae8d8965472707aed61dddff431 | 64252bc56b696143057e04e45cabf33977e1e389 | /SDJGameFramework/Component.cpp | 32b7538f34345297157634377aaae26ddcfc7607 | [] | no_license | jayong93/SDJGameFramework | 183e59e369880a2f7c7ad0e2af7d0b7817afef1b | 0755913563025fd28f4ee74fb9b7b206715070a5 | refs/heads/master | 2021-01-19T22:34:01.162505 | 2017-08-25T12:05:11 | 2017-08-25T12:05:11 | 101,254,808 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 70 | cpp | #include "stdafx.h"
#include "Component.h"
#include "ObjectManager.h"
| [
"jayong93@gmail.com"
] | jayong93@gmail.com |
f6ba708df1fffac7c41e4a5f0a291ff47f03ed76 | 27046ecc4b9a8e8d15890691f552440957d25fb6 | /Classes/cgw/WayPoint.h | a867ad31d90767cd68b229c8961b16a794a088ee | [] | no_license | pototao/DefenseTest | def94db1960f2618b5bc2439df5b67148c91180b | 289406d1e9e63fc47ca71593751ce213cb56de78 | refs/heads/master | 2021-01-18T14:10:26.311985 | 2013-05-15T02:09:47 | 2013-05-15T02:09:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | h | #ifndef __TowerDefenseCCX__WayPoint__
#define __TowerDefenseCCX__WayPoint__
#include <iostream>
#include "cocos2d.h"
class WayPoint:public cocos2d::CCNode{
};
#endif /* defined(__TowerDefenseCCX__WayPoint__) */
| [
"classic2008olympic@163.com"
] | classic2008olympic@163.com |
4a413c6e9c16539be3ac1e2abd31a39df2a2b839 | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/35/2200.c | 86f84e44c187aaa3d5473acbe4119556b7eedaf4 | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | c | int main()
{
int i,j,n,m,a[8][8],max[8],b[8],k;
scanf("%d,%d",&n,&m);
for(i=0;i<n;i++)
for(j=0;j<m;j++)
scanf("%d",&a[i][j]);
for(i=0;i<n;i++)
{max[i]=a[i][0];
b[i]=0;
for(j=0;j<m;j++)
{
if(a[i][j]>max[i])
{ max[i]=a[i][j];
b[i]=j;}
}
}
for(i=0;i<n;i++)
{for(k=0;k<n;k++)
{
if(max[i]>a[k][b[i]])
break;
}
if(k==n) { printf("%d+%d",i,b[i]);break;}
}
if(i==n) printf("No");
return 0;
}
| [
"bdqnghi@gmail.com"
] | bdqnghi@gmail.com |
e1c465f4cf169aeb7075c8c98fea88e520c8ada4 | 65ff42353c2dafede6ec9f4062e2aa3597cce0c9 | /io_test/io_client.cc | 4366cbee84cba81aaa92293aa17d0f349c5b2fa1 | [] | no_license | monty-pavel/indexfs_old | aef5fdbc6e3d4e81d15a170b70f58bccd7a55fdd | 622169a8af1c80e7de7648a9ee6f874af919200c | refs/heads/master | 2020-09-04T04:16:04.097276 | 2015-01-12T20:26:27 | 2015-01-12T20:26:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,898 | cc | // Copyright (c) 2014 The IndexFS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <mpi.h>
#include <time.h>
#include <sstream>
#include <gflags/gflags.h>
#include "io_client.h"
#include "leveldb/util/socket.h"
#include "leveldb/util/histogram.h"
namespace indexfs { namespace mpi {
IOClient::~IOClient() {
// empty
}
DEFINE_bool(print_ops, false, "Log all operations performed to stdout");
DEFINE_string(tsdb_ip, "127.0.0.1", "TSDB's IP address");
DEFINE_int32(tsdb_port, 10600, "TSDB's UDP port");
DEFINE_bool(per_op, false, "send Performance data per certain number of ops");
DEFINE_int32(perf_num_ops, 5000, "Send performance data per such number of ops");
DEFINE_bool(per_sec, true, "Send Performance data per certain number of seconds");
DEFINE_int32(perf_num_secs, 5, "Send performance data per such number of seconds");
namespace {
using ::leveldb::Histogram;
using ::leveldb::UDPSocket;
using ::leveldb::SocketException;
static
inline void AddOpCounts(std::stringstream &ss,
int now, int numops, const char** names, int* counters,
int rank, const std::string &runid) {
for (int i = 0; i < numops; i++) {
ss << "idxfs.bench." << names[i] << "_num "
<< now << " " << counters[i]
<< " rank=" << rank
<< " run=" << runid << "\n";
}
}
static
inline void AddSuccOps(std::stringstream &ss,
int now, int ops, int rank, const std::string &runid) {
ss << "idxfs.bench.succ_ops "
<< now << " " << ops
<< " rank=" << rank
<< " run=" << runid << "\n";
}
static
inline void AddErrOps(std::stringstream &ss,
int now, int ops, int rank, const std::string &runid) {
ss << "idxfs.bench.err_ops "
<< now << " " << ops
<< " rank=" << rank
<< " run=" << runid << "\n";
}
static
inline void AddAvgLatency(std::stringstream &ss,
int now, double sum, int ops, int rank, const std::string &runid) {
if (ops > 0) {
ss << "idxfs.bench.avg_latency "
<< now << " " << sum / ops
<< " rank=" << rank
<< " run=" << runid << "\n";
}
}
static
void SendPerfData(const std::string &data) {
UDPSocket sock;
try {
sock.sendTo(data.data(), data.length(),
FLAGS_tsdb_ip, (unsigned short) FLAGS_tsdb_port);
} catch (SocketException &e) {
fprintf(stderr, "cannot send perf data to TSDB: %s\n", e.what());
}
}
class MetaClient: public IOClient {
public:
virtual ~MetaClient() {
delete cli_;
}
explicit MetaClient(IOClient* cli, int rank, const std::string &id)
: IOClient(), rank_(rank), id_(id), cli_(cli) {
mon_ = true;
last_sent_ = 0;
res_sum_ = ops_ = err_ops_ = 0;
last_res_sum_ = last_ops_ = last_err_ops_ = 0;
}
virtual void Noop() { cli_->Noop(); }
virtual Status Init();
virtual Status Dispose();
void PublishPerfData() {
std::stringstream ss;
int now = time(NULL);
AddOpCounts(ss, now, kNumOps, kOpNames, counters_, rank_, id_);
AddSuccOps(ss, now, ops_, rank_, id_);
AddErrOps(ss, now, err_ops_, rank_, id_);
AddAvgLatency(ss, now, res_sum_ - last_res_sum_, ops_ - last_ops_ , rank_, id_);
last_ops_ = ops_;
last_err_ops_ = err_ops_;
last_res_sum_ = res_sum_;
SendPerfData(ss.str()); // Send perf data to TSDB or its local agent
}
#define MONITORED_OP_1ARG(op, arg_type) \
virtual Status op(arg_type arg) { \
if (mon_) { \
double start, finish, dura; \
start = MPI_Wtime(); \
Status s = cli_->op(arg); \
finish = MPI_Wtime(); \
dura = (finish - start) * 1000 * 1000; \
if (!s.ok()) { \
err_ops_++; \
} else { \
ops_++; \
res_sum_ += dura; \
counters_[k##op]++; \
latencies_[kOpCategoryIndex[k##op]].Add(dura); \
} \
if (FLAGS_per_sec) { \
if (finish - last_sent_ >= FLAGS_perf_num_secs) { \
PublishPerfData(); \
last_sent_ = finish; \
} \
} \
else if (FLAGS_per_op) { \
if ((ops_ + err_ops_) % FLAGS_perf_num_ops == 0) { \
PublishPerfData(); \
} \
} \
return s; \
} \
return cli_->op(arg); \
}
#define MONITORED_OP_2ARG(op, arg_type1, arg_type2) \
virtual Status op(arg_type1 arg1, arg_type2 arg2) { \
if (mon_) { \
double start, finish, dura; \
start = MPI_Wtime(); \
Status s = cli_->op(arg1, arg2); \
finish = MPI_Wtime(); \
dura = (finish - start) * 1000 * 1000; \
if (!s.ok()) { \
err_ops_++; \
} else { \
ops_++; \
res_sum_ += dura; \
counters_[k##op]++; \
latencies_[kOpCategoryIndex[k##op]].Add(dura); \
} \
if (FLAGS_per_sec) { \
if (finish - last_sent_ >= FLAGS_perf_num_secs) { \
PublishPerfData(); \
last_sent_ = finish; \
} \
} \
else if (FLAGS_per_op) { \
if ((ops_ + err_ops_) % FLAGS_perf_num_ops == 0) { \
PublishPerfData(); \
} \
} \
return s; \
} \
return cli_->op(arg1, arg2); \
}
// WRAP ALL IO OPS TO GATHER PERF DATA //
MONITORED_OP_1ARG(NewFile ,Path&)
MONITORED_OP_1ARG(MakeDirectory ,Path&)
MONITORED_OP_1ARG(MakeDirectories ,Path&)
MONITORED_OP_1ARG(SyncDirectory ,Path&)
MONITORED_OP_1ARG(ResetMode ,Path&)
MONITORED_OP_1ARG(GetAttr ,Path&)
MONITORED_OP_1ARG(ListDirectory ,Path&)
MONITORED_OP_1ARG(Remove ,Path&)
MONITORED_OP_2ARG(Rename ,Path& ,Path&)
// IO MEASUREMENT INTERFACE //
void EnableMonitoring(bool enable);
void Reset();
void __PrintMeasurements__(FILE* output); // max, min, avg and latency histogram
private:
// All Recoginized Operation Categories
enum { kMDRead, kMDWrite, kIO, kNumCategories };
// All supported Operations
enum { kMakeDirectory, kMakeDirectories, kSyncDirectory, kNewFile,
kResetMode, kRename, kGetAttr, kListDirectory, kRemove, kNumOps };
static const char* kOpNames[kNumOps];
static const char* kCategoryNames[kNumCategories];
static const int kOpCategoryIndex[kNumOps];
int ops_;
int err_ops_;
double res_sum_;
int last_ops_;
int last_err_ops_;
double last_res_sum_;
double last_sent_; // the last time we published performance data
bool mon_; // true iff monitoring is enabled
int rank_; // an unique rank identifying a specific client process
std::string id_; // an unique string identifier for a particular test/benchmark run
Histogram latencies_[kNumCategories];
int counters_[kNumOps];
IOClient* cli_; // The real IO client being composited
// No copying allowed
MetaClient(const MetaClient&);
MetaClient& operator=(const MetaClient&);
};
const char* MetaClient::kOpNames[kNumOps] = {
"mkdir", "mkdirs", "fsyncdir", "mknod",
"chmod", "rename", "getattr", "readdir", "remove"
};
const char* MetaClient::kCategoryNames[kNumCategories] = {
"Read" /* Metadata Reads */, "Write" /* Metadata Updates */, "I/O" /* Data */
};
const int MetaClient::kOpCategoryIndex[kNumOps] = {
kMDWrite /* MakeDirectory*/, kMDWrite /* MakeDirectories */, kMDWrite /* SyncDirectory */,
kMDWrite /* NewFile */, kMDWrite /* ResetMode */, kMDWrite /* Rename */, kMDRead /* GetAttr */,
kMDRead /* ListDirectory */, kMDWrite /* Remove*/
};
Status MetaClient::Init() {
return cli_->Init();
}
Status MetaClient::Dispose() {
return cli_->Dispose();
}
void MetaClient::EnableMonitoring(bool enable) {
mon_ = enable;
}
void MetaClient::Reset() {
memset(counters_, 0, kNumOps * sizeof(int));
for (int i = 0; i < kNumCategories; i++) {
latencies_[i].Clear();
}
last_sent_ = MPI_Wtime();
res_sum_ = ops_ = err_ops_ = 0;
last_res_sum_ = last_ops_ = last_err_ops_ = 0;
}
void MetaClient::__PrintMeasurements__(FILE* output) {
fprintf(output, ">>>>>> Client's Self-Measurements >>> \n\n");
cli_->PrintMeasurements(output);
fprintf(output, "\n\n\n");
// --------------------------------------------------------- //
fprintf(output, ">>>>>> IO Client Measurements >>>>>>> \n\n");
for (int i = 0; i < kNumCategories; i++) {
fprintf(output, "== Latencies for %s ops:\n", kCategoryNames[i]);
fprintf(output, "%s\n", latencies_[i].ToString().c_str());
}
fprintf(output, "== Total I/O Ops Issued: %d ", ops_ + err_ops_);
fprintf(output, "(Succ ops: %d, Error ops: %d)\n\n", ops_, err_ops_);
}
} /* anonymous namespace */
Status IOClient::MakeDirectory(int dno, const std::string &prefix) {
std::stringstream ss;
ss << "/d_" << prefix << dno;
return MakeDirectory(ss.str());
}
Status IOClient::SyncDirectory(int dno, const std::string &prefix) {
std::stringstream ss;
ss << "/d_" << prefix << dno;
return SyncDirectory(ss.str());
}
Status IOClient::NewFile(int dno, int fno, const std::string &prefix) {
std::stringstream ss;
ss << "/d_" << prefix << dno << "/f_" << prefix << fno;
return NewFile(ss.str());
}
Status IOClient::GetAttr(int dno, int fno, const std::string &prefix) {
std::stringstream ss;
ss << "/d_" << prefix << dno << "/f_" << prefix << fno;
return GetAttr(ss.str());
}
//////////////////////////////////////////////////////////////////////////////////
// IO MEASUREMENT INTERFACE
//
void IOMeasurements::EnableMonitoring(IOClient* cli, bool enable) {
MetaClient* meta_cli = reinterpret_cast<MetaClient*>(cli);
meta_cli->EnableMonitoring(enable);
}
void IOMeasurements::Reset(IOClient* cli) {
MetaClient* meta_cli = reinterpret_cast<MetaClient*>(cli);
meta_cli->Reset();
}
void IOMeasurements::PrintMeasurements(IOClient* cli, FILE* output) {
MetaClient* meta_cli = reinterpret_cast<MetaClient*>(cli);
meta_cli->__PrintMeasurements__(output);
}
//////////////////////////////////////////////////////////////////////////////////
// IO-CLIENT FACTORY
//
IOClient* IOClientFactory::GetIndexFSClient(int rank, const std::string &id) {
return new MetaClient(IOClient::NewIndexFSClient(), rank, id);
}
IOClient* IOClientFactory::GetLocalFSClient(int rank, const std::string &id) {
return new MetaClient(IOClient::NewLocalFSClient(), rank, id);
}
IOClient* IOClientFactory::GetOrangeFSClient(int rank, const std::string &id) {
return new MetaClient(IOClient::NewOrangeFSClient(), rank, id);
}
} /* namespace mpi */ } /* namespace indexfs */
| [
"zhengqmark@gmail.com"
] | zhengqmark@gmail.com |
9fe7de8ef41b3b57c76aa5111abb4fc5be98acd6 | 491cae9ea6b7853cafbd309299eaf55f7e1c8cba | /komallab4.cpp | 50e55354126d1098f78a65c95b797267b4553eb1 | [] | no_license | komalpreet9932/kkaur | 20fdfb78b83eafdad9cc78d0dada0999dae9c42e | 1a4bb99963ac7b0bde6f9e28d1d76244caf65add | refs/heads/master | 2020-03-30T20:57:13.785244 | 2018-10-04T17:37:30 | 2018-10-04T17:37:30 | 151,611,411 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,383 | cpp | #include <iostream>
#include <string>
#include <sstream>
// Include the library that will allow you to convert from string to integer
int main()
{
int i,j,k,l;
/*-------------------------------
PART 1 - Reading multiple integers
--------------------------------*/
std::cout << std::endl << "=========================" << std::endl;
std::cout << "= PART 1 =" << std::endl;
std::cout << "=========================" << std::endl;
std::cout <<"Enter any three values:" <<std::endl;
// Ask the user for 3 integers as input
std::cin >>i>>j>>k;// The user should enter all integers on the same line, pressing enter only once
l=i*j*k;
// Multiply the three integers
std::cout <<"Result of the multipilcation= "<<l<< std::endl;
// Output the result of the multiplication
/*-------------------------------
PART 2 - Reading strings
--------------------------------*/
std::cout << std::endl << "=========================" << std::endl;
std::cout << "= PART 2 =" << std::endl;
std::cout << "=========================" << std::endl;
// Ask the user for three strings and output a haiku poem
// http://examples.yourdictionary.com/examples-of-haiku-poems.html
using std::cout;
using std::cin;
using std::endl;
std::string village;
std::string snow;
std::string water;
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
cout<<"The name of village : ";
std::getline(cin,village);
cout<<"The name of snow : ";
std::getline(cin,snow);
cout<<"The name of water : ";
std::getline(cin,water);
cout<<" "<<endl;
cout<<"A mountain "<<village<<" "<<endl;
cout<<"under the piled-up "<<snow<<" "<<endl;
cout<<"the sound of "<<water<<" " <<endl;
/*-------------------------------
PART 3 - Converting strings
--------------------------------*/
std::cout << std::endl << "=========================" << std::endl;
std::cout << "= PART 3 =" << std::endl;
std::cout << "=========================" << std::endl;
std::string myNumber = "1234"; // Convert this string to an integer
int t;
std::stringstream(myNumber)>>t;
std::cout <<" "<<t<<":is an integer"; //Insert the integer before the text of this output
return 0;
} | [
"36015240+deeplove5905@users.noreply.github.com"
] | 36015240+deeplove5905@users.noreply.github.com |
82f4084b6799f559e920c7905a52e2bd5513b474 | f6f58e522207ee0735d2dcd5c40e25f3729322f2 | /I2C/I2C.ino | 848c1a572314b84206a5a24051757989f7dbf6cf | [] | no_license | ChesangFelister/Electronic_s | 1b6103ce78a5445d01de739d81a068bcd80afe5a | 71e45c5aea475c5ce02c65adb2767e2f3a73b183 | refs/heads/master | 2020-09-05T00:04:12.712019 | 2019-11-06T06:41:57 | 2019-11-06T06:41:57 | 219,929,332 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | ino | #include<Wire.h>
#include<LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4);
//20,4
void setup() {
lcd.init();
lcd.backlight();
Serial.begin(9600);
}
}
void loop() {
if(Serial.available())
{
delay(1000);
lcd.clear();
while(Serial.available()>0){
lcd.write(Serial.read());
}
}
| [
"student"
] | student |
88cab975f56662b71b595896469c4fdd1542e00a | 183b723d37345cc7f08c1ee48188c882ec374d68 | /SdrDevice.h | fd2d163f9b9e6f5121ce2e82695b44bc792473ea | [] | no_license | jcmaeso/LimeSDR-Test | 5c543fb676030283e6f795b22700e36b8d188b1b | 56f1ab39c5381a835188c948940a190c911ac671 | refs/heads/master | 2020-12-15T15:25:15.009016 | 2020-01-20T17:15:59 | 2020-01-20T17:15:59 | 235,155,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,792 | h | //
// Created by calata on 1/03/19.
//
#ifndef LIMESUITERX_SDRDEVICE_H
#define LIMESUITERX_SDRDEVICE_H
#include "lime/LimeSuite.h"
typedef float samplesBuffer;
class SdrDevice {
public:
SdrDevice(char* serialId, int deviceId);
int EnableRxChannels();
int EnableTxChannels();
int SetRxLOFrecuency(double LO_frequency);
int SetTxLOFrecuency(double LO_frequency);
int SetRxNormalizedGain(double gain);
int SetTxNormalizedGain(double gain);
int SetSampleRate(double rate, size_t oversampling);
int SetupRxStream();
int SetupTxStream();
void StartRxStream();
samplesBuffer** GetRxBuffers();
void PollGetSamples();
void PrintRxStats();
void StopAndDestroy();
void CalibrateRx(double bw);
void PrintRxAntennas();
void PrintTxAntennas();
void SetRxHfAntenna();
void SetRxWfAntenna();
void SetRxLfAntenna();
void SetRxLpfBandwidth(double bw);
void SetTxLpfBandwidth(double bw);
void SetRxGainDB(double gain);
void SetTxGainDB(double gain);
private:
int id;
int bufferRxSize;
int rxChannels, txChannels;
bool connected;
lms_device_t* device;
lms_info_str_t deviceInfo;
lms_stream_t* rxStreams;
lms_stream_t* txStreams;
lms_stream_meta_t rxMetadata;
lms_stream_meta_t txMetadata;
lms_name_t antennaList[10];
samplesBuffer** rxBuffers;
samplesBuffer** txBuffers;
void errorLogger(int errorCode);
void PrintAntennas(bool way);
int EnableChannels(bool way);
int SetNormalizedGain(bool way, double gain);
int SetLOFrecuency(bool way,double LO_frequency);
void SetAntenna(bool way, size_t antenna);
void SetLpfBandwidth(bool way, double bw);
void SetGainDB(bool way, double gain);
};
#endif //LIMESUITERX_SDRDEVICE_H
| [
"jorgecmaeso@gr.ssr.upm.es"
] | jorgecmaeso@gr.ssr.upm.es |
65e29b2bc931bdbebd62bf6475c2c42dd277c95a | 0641d87fac176bab11c613e64050330246569e5c | /tags/coll-prototype/source/i18n/unicode/translit.h | a4a236c099a9fe0c7af213d335aa4b4109698879 | [
"ICU"
] | permissive | svn2github/libicu_full | ecf883cedfe024efa5aeda4c8527f227a9dbf100 | f1246dcb7fec5a23ebd6d36ff3515ff0395aeb29 | refs/heads/master | 2021-01-01T17:00:58.555108 | 2015-01-27T16:59:40 | 2015-01-27T16:59:40 | 9,308,333 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 55,545 | h | /*
* Copyright (C) 1999-2001, International Business Machines Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
* 11/17/99 aliu Creation.
**********************************************************************
*/
#ifndef TRANSLIT_H
#define TRANSLIT_H
#include "unicode/utypes.h"
#if !UCONFIG_NO_TRANSLITERATION
#include "unicode/uobject.h"
#include "unicode/unistr.h"
#include "unicode/parseerr.h"
#include "unicode/utrans.h" // UTransPosition, UTransDirection
U_NAMESPACE_BEGIN
class Replaceable;
class UnicodeFilter;
class UnicodeSet;
class TransliterationRuleData;
class U_I18N_API UVector;
class CompoundTransliterator;
class TransliteratorParser;
class NormalizationTransliterator;
class TransliteratorIDParser;
/**
* <code>Transliterator</code> is an abstract class that
* transliterates text from one format to another. The most common
* kind of transliterator is a script, or alphabet, transliterator.
* For example, a Russian to Latin transliterator changes Russian text
* written in Cyrillic characters to phonetically equivalent Latin
* characters. It does not <em>translate</em> Russian to English!
* Transliteration, unlike translation, operates on characters, without
* reference to the meanings of words and sentences.
*
* <p>Although script conversion is its most common use, a
* transliterator can actually perform a more general class of tasks.
* In fact, <code>Transliterator</code> defines a very general API
* which specifies only that a segment of the input text is replaced
* by new text. The particulars of this conversion are determined
* entirely by subclasses of <code>Transliterator</code>.
*
* <p><b>Transliterators are stateless</b>
*
* <p><code>Transliterator</code> objects are <em>stateless</em>; they
* retain no information between calls to
* <code>transliterate()</code>. (However, this does <em>not</em>
* mean that threads may share transliterators without synchronizing
* them. Transliterators are not immutable, so they must be
* synchronized when shared between threads.) This1 might seem to
* limit the complexity of the transliteration operation. In
* practice, subclasses perform complex transliterations by delaying
* the replacement of text until it is known that no other
* replacements are possible. In other words, although the
* <code>Transliterator</code> objects are stateless, the source text
* itself embodies all the needed information, and delayed operation
* allows arbitrary complexity.
*
* <p><b>Batch transliteration</b>
*
* <p>The simplest way to perform transliteration is all at once, on a
* string of existing text. This is referred to as <em>batch</em>
* transliteration. For example, given a string <code>input</code>
* and a transliterator <code>t</code>, the call
*
* <blockquote><code>String result = t.transliterate(input);
* </code></blockquote>
*
* will transliterate it and return the result. Other methods allow
* the client to specify a substring to be transliterated and to use
* {@link Replaceable} objects instead of strings, in order to
* preserve out-of-band information (such as text styles).
*
* <p><b>Keyboard transliteration</b>
*
* <p>Somewhat more involved is <em>keyboard</em>, or incremental
* transliteration. This is the transliteration of text that is
* arriving from some source (typically the user's keyboard) one
* character at a time, or in some other piecemeal fashion.
*
* <p>In keyboard transliteration, a <code>Replaceable</code> buffer
* stores the text. As text is inserted, as much as possible is
* transliterated on the fly. This means a GUI that displays the
* contents of the buffer may show text being modified as each new
* character arrives.
*
* <p>Consider the simple <code>RuleBasedTransliterator</code>:
*
* <blockquote><code>
* th>{theta}<br>
* t>{tau}
* </code></blockquote>
*
* When the user types 't', nothing will happen, since the
* transliterator is waiting to see if the next character is 'h'. To
* remedy this, we introduce the notion of a cursor, marked by a '|'
* in the output string:
*
* <blockquote><code>
* t>|{tau}<br>
* {tau}h>{theta}
* </code></blockquote>
*
* Now when the user types 't', tau appears, and if the next character
* is 'h', the tau changes to a theta. This is accomplished by
* maintaining a cursor position (independent of the insertion point,
* and invisible in the GUI) across calls to
* <code>transliterate()</code>. Typically, the cursor will
* be coincident with the insertion point, but in a case like the one
* above, it will precede the insertion point.
*
* <p>Keyboard transliteration methods maintain a set of three indices
* that are updated with each call to
* <code>transliterate()</code>, including the cursor, start,
* and limit. Since these indices are changed by the method, they are
* passed in an <code>int[]</code> array. The <code>START</code> index
* marks the beginning of the substring that the transliterator will
* look at. It is advanced as text becomes committed (but it is not
* the committed index; that's the <code>CURSOR</code>). The
* <code>CURSOR</code> index, described above, marks the point at
* which the transliterator last stopped, either because it reached
* the end, or because it required more characters to disambiguate
* between possible inputs. The <code>CURSOR</code> can also be
* explicitly set by rules in a <code>RuleBasedTransliterator</code>.
* Any characters before the <code>CURSOR</code> index are frozen;
* future keyboard transliteration calls within this input sequence
* will not change them. New text is inserted at the
* <code>LIMIT</code> index, which marks the end of the substring that
* the transliterator looks at.
*
* <p>Because keyboard transliteration assumes that more characters
* are to arrive, it is conservative in its operation. It only
* transliterates when it can do so unambiguously. Otherwise it waits
* for more characters to arrive. When the client code knows that no
* more characters are forthcoming, perhaps because the user has
* performed some input termination operation, then it should call
* <code>finishTransliteration()</code> to complete any
* pending transliterations.
*
* <p><b>Inverses</b>
*
* <p>Pairs of transliterators may be inverses of one another. For
* example, if transliterator <b>A</b> transliterates characters by
* incrementing their Unicode value (so "abc" -> "def"), and
* transliterator <b>B</b> decrements character values, then <b>A</b>
* is an inverse of <b>B</b> and vice versa. If we compose <b>A</b>
* with <b>B</b> in a compound transliterator, the result is the
* indentity transliterator, that is, a transliterator that does not
* change its input text.
*
* The <code>Transliterator</code> method <code>getInverse()</code>
* returns a transliterator's inverse, if one exists, or
* <code>null</code> otherwise. However, the result of
* <code>getInverse()</code> usually will <em>not</em> be a true
* mathematical inverse. This is because true inverse transliterators
* are difficult to formulate. For example, consider two
* transliterators: <b>AB</b>, which transliterates the character 'A'
* to 'B', and <b>BA</b>, which transliterates 'B' to 'A'. It might
* seem that these are exact inverses, since
*
* <blockquote>"A" x <b>AB</b> -> "B"<br>
* "B" x <b>BA</b> -> "A"</blockquote>
*
* where 'x' represents transliteration. However,
*
* <blockquote>"ABCD" x <b>AB</b> -> "BBCD"<br>
* "BBCD" x <b>BA</b> -> "AACD"</blockquote>
*
* so <b>AB</b> composed with <b>BA</b> is not the
* identity. Nonetheless, <b>BA</b> may be usefully considered to be
* <b>AB</b>'s inverse, and it is on this basis that
* <b>AB</b><code>.getInverse()</code> could legitimately return
* <b>BA</b>.
*
* <p><b>IDs and display names</b>
*
* <p>A transliterator is designated by a short identifier string or
* <em>ID</em>. IDs follow the format <em>source-destination</em>,
* where <em>source</em> describes the entity being replaced, and
* <em>destination</em> describes the entity replacing
* <em>source</em>. The entities may be the names of scripts,
* particular sequences of characters, or whatever else it is that the
* transliterator converts to or from. For example, a transliterator
* from Russian to Latin might be named "Russian-Latin". A
* transliterator from keyboard escape sequences to Latin-1 characters
* might be named "KeyboardEscape-Latin1". By convention, system
* entity names are in English, with the initial letters of words
* capitalized; user entity names may follow any format so long as
* they do not contain dashes.
*
* <p>In addition to programmatic IDs, transliterator objects have
* display names for presentation in user interfaces, returned by
* {@link #getDisplayName()}.
*
* <p><b>Factory methods and registration</b>
*
* <p>In general, client code should use the factory method
* {@link #createInstance()} to obtain an instance of a
* transliterator given its ID. Valid IDs may be enumerated using
* <code>getAvailableIDs()</code>. Since transliterators are mutable,
* multiple calls to {@link #createInstance()} with the same ID will
* return distinct objects.
*
* <p>In addition to the system transliterators registered at startup,
* user transliterators may be registered by calling
* <code>registerInstance()</code> at run time. A registered instance
* acts a template; future calls to {@link #createInstance()} with the ID
* of the registered object return clones of that object. Thus any
* object passed to <tt>registerInstance()</tt> must implement
* <tt>clone()</tt> propertly. To register a transliterator subclass
* without instantiating it (until it is needed), users may call
* <code>registerClass()</code>. In this case, the objects are
* instantiated by invoking the zero-argument public constructor of
* the class.
*
* <p><b>Subclassing</b>
*
* Subclasses must implement the abstract method
* <code>handleTransliterate()</code>. <p>Subclasses should override
* the <code>transliterate()</code> method taking a
* <code>Replaceable</code> and the <code>transliterate()</code>
* method taking a <code>String</code> and <code>StringBuffer</code>
* if the performance of these methods can be improved over the
* performance obtained by the default implementations in this class.
*
* @author Alan Liu
* @stable ICU 2.0
*/
class U_I18N_API Transliterator : public UObject {
private:
/**
* Programmatic name, e.g., "Latin-Arabic".
*/
UnicodeString ID;
/**
* This transliterator's filter. Any character for which
* <tt>filter.contains()</tt> returns <tt>false</tt> will not be
* altered by this transliterator. If <tt>filter</tt> is
* <tt>null</tt> then no filtering is applied.
*/
UnicodeFilter* filter;
int32_t maximumContextLength;
public:
/**
* A context integer or pointer for a factory function, passed by
* value.
* @draft ICU 2.4
*/
union Token {
/**
* This token, interpreted as a 32-bit integer.
* @draft ICU 2.4
*/
int32_t integer;
/**
* This token, interpreted as a native pointer.
* @draft ICU 2.4
*/
void* pointer;
};
/**
* Return a token containing an integer.
* @return a token containing an integer.
* @draft ICU 2.4
*/
inline static Token integerToken(int32_t);
/**
* Return a token containing a pointer.
* @return a token containing a pointer.
* @draft ICU 2.4
*/
inline static Token pointerToken(void*);
/**
* A function that creates and returns a Transliterator. When
* invoked, it will be passed the ID string that is being
* instantiated, together with the context pointer that was passed
* in when the factory function was first registered. Many
* factory functions will ignore both parameters, however,
* functions that are registered to more than one ID may use the
* ID or the context parameter to parameterize the transliterator
* they create.
* @param ID the string identifier for this transliterator
* @param context a context pointer that will be stored and
* later passed to the factory function when an ID matching
* the registration ID is being instantiated with this factory.
* @draft ICU 2.4
*/
typedef Transliterator* (*Factory)(const UnicodeString& ID, Token context);
protected:
/**
* Default constructor.
* @param ID the string identifier for this transliterator
* @param adoptedFilter the filter. Any character for which
* <tt>filter.contains()</tt> returns <tt>false</tt> will not be
* altered by this transliterator. If <tt>filter</tt> is
* <tt>null</tt> then no filtering is applied.
* @draft ICU 2.4
*/
Transliterator(const UnicodeString& ID, UnicodeFilter* adoptedFilter);
/**
* Copy constructor.
* @draft ICU 2.4
*/
Transliterator(const Transliterator&);
/**
* Assignment operator.
* @draft ICU 2.4
*/
Transliterator& operator=(const Transliterator&);
/**
* Create a transliterator from a basic ID. This is an ID
* containing only the forward direction source, target, and
* variant.
* @param id a basic ID of the form S-T or S-T/V.
* @param canon canonical ID to assign to the object, or
* NULL to leave the ID unchanged
* @return a newly created Transliterator or null if the ID is
* invalid.
* @draft ICU 2.4
*/
static Transliterator* createBasicInstance(const UnicodeString& id,
const UnicodeString* canon);
friend class TransliteratorParser; // for parseID()
friend class TransliteratorIDParser; // for createBasicInstance()
public:
/**
* Destructor.
* @stable ICU 2.0
*/
virtual ~Transliterator();
/**
* Implements Cloneable.
* All subclasses are encouraged to implement this method if it is
* possible and reasonable to do so. Subclasses that are to be
* registered with the system using <tt>registerInstance()<tt>
* are required to implement this method. If a subclass does not
* implement clone() properly and is registered with the system
* using registerInstance(), then the default clone() implementation
* will return null, and calls to createInstance() will fail.
*
* @return a copy of the object.
* @see #registerInstance
* @stable ICU 2.0
*/
virtual Transliterator* clone() const { return 0; }
/**
* Transliterates a segment of a string, with optional filtering.
*
* @param text the string to be transliterated
* @param start the beginning index, inclusive; <code>0 <= start
* <= limit</code>.
* @param limit the ending index, exclusive; <code>start <= limit
* <= text.length()</code>.
* @return The new limit index. The text previously occupying <code>[start,
* limit)</code> has been transliterated, possibly to a string of a different
* length, at <code>[start, </code><em>new-limit</em><code>)</code>, where
* <em>new-limit</em> is the return value. If the input offsets are out of bounds,
* the returned value is -1 and the input string remains unchanged.
* @stable ICU 2.0
*/
virtual int32_t transliterate(Replaceable& text,
int32_t start, int32_t limit) const;
/**
* Transliterates an entire string in place. Convenience method.
* @param text the string to be transliterated
* @stable ICU 2.0
*/
virtual void transliterate(Replaceable& text) const;
/**
* Transliterates the portion of the text buffer that can be
* transliterated unambiguosly after new text has been inserted,
* typically as a result of a keyboard event. The new text in
* <code>insertion</code> will be inserted into <code>text</code>
* at <code>index.limit</code>, advancing
* <code>index.limit</code> by <code>insertion.length()</code>.
* Then the transliterator will try to transliterate characters of
* <code>text</code> between <code>index.cursor</code> and
* <code>index.limit</code>. Characters before
* <code>index.cursor</code> will not be changed.
*
* <p>Upon return, values in <code>index</code> will be updated.
* <code>index.start</code> will be advanced to the first
* character that future calls to this method will read.
* <code>index.cursor</code> and <code>index.limit</code> will
* be adjusted to delimit the range of text that future calls to
* this method may change.
*
* <p>Typical usage of this method begins with an initial call
* with <code>index.start</code> and <code>index.limit</code>
* set to indicate the portion of <code>text</code> to be
* transliterated, and <code>index.cursor == index.start</code>.
* Thereafter, <code>index</code> can be used without
* modification in future calls, provided that all changes to
* <code>text</code> are made via this method.
*
* <p>This method assumes that future calls may be made that will
* insert new text into the buffer. As a result, it only performs
* unambiguous transliterations. After the last call to this
* method, there may be untransliterated text that is waiting for
* more input to resolve an ambiguity. In order to perform these
* pending transliterations, clients should call {@link
* #finishTransliteration()} after the last call to this
* method has been made.
*
* @param text the buffer holding transliterated and untransliterated text
* @param index an array of three integers.
*
* <ul><li><code>index.start</code>: the beginning index,
* inclusive; <code>0 <= index.start <= index.limit</code>.
*
* <li><code>index.limit</code>: the ending index, exclusive;
* <code>index.start <= index.limit <= text.length()</code>.
* <code>insertion</code> is inserted at
* <code>index.limit</code>.
*
* <li><code>index.cursor</code>: the next character to be
* considered for transliteration; <code>index.start <=
* index.cursor <= index.limit</code>. Characters before
* <code>index.cursor</code> will not be changed by future calls
* to this method.</ul>
*
* @param insertion text to be inserted and possibly
* transliterated into the translation buffer at
* <code>index.limit</code>. If <code>null</code> then no text
* is inserted.
* @param status Output param to filled in with a success or an error.
* @see #handleTransliterate
* @exception IllegalArgumentException if <code>index</code>
* is invalid
* @see UTransPosition
* @stable ICU 2.0
*/
virtual void transliterate(Replaceable& text, UTransPosition& index,
const UnicodeString& insertion,
UErrorCode& status) const;
/**
* Transliterates the portion of the text buffer that can be
* transliterated unambiguosly after a new character has been
* inserted, typically as a result of a keyboard event. This is a
* convenience method; see {@link
* #transliterate(Replaceable, UTransPosition, UnicodeString)} for details.
* @param text the buffer holding transliterated and
* untransliterated text
* @param index an array of three integers. See {@link
* #transliterate(Replaceable, UTransPosition, UnicodeString)}.
* @param insertion text to be inserted and possibly
* transliterated into the translation buffer at
* <code>index.limit</code>.
* @param status Output param to filled in with a success or an error.
* @see #transliterate(Replaceable, UTransPosition, UnicodeString)
* @stable ICU 2.0
*/
virtual void transliterate(Replaceable& text, UTransPosition& index,
UChar32 insertion,
UErrorCode& status) const;
/**
* Transliterates the portion of the text buffer that can be
* transliterated unambiguosly. This is a convenience method; see
* {@link #transliterate(Replaceable, UTransPosition, UnicodeString)} for
* details.
* @param text the buffer holding transliterated and
* untransliterated text
* @param index an array of three integers. See {@link
* #transliterate(Replaceable, UTransPosition, UnicodeString)}.
* @param status Output param to filled in with a success or an error.
* @see #transliterate(Replaceable, int[], String)
* @stable ICU 2.0
*/
virtual void transliterate(Replaceable& text, UTransPosition& index,
UErrorCode& status) const;
/**
* Finishes any pending transliterations that were waiting for
* more characters. Clients should call this method as the last
* call after a sequence of one or more calls to
* <code>transliterate()</code>.
* @param text the buffer holding transliterated and
* untransliterated text.
* @param index the array of indices previously passed to {@link
* #transliterate()}
* @stable ICU 2.0
*/
virtual void finishTransliteration(Replaceable& text,
UTransPosition& index) const;
private:
/**
* This internal method does incremental transliteration. If the
* 'insertion' is non-null then we append it to 'text' before
* proceeding. This method calls through to the pure virtual
* framework method handleTransliterate() to do the actual
* work.
* @param text the buffer holding transliterated and
* untransliterated text
* @param index an array of three integers. See {@link
* #transliterate(Replaceable, int[], String)}.
* @param insertion text to be inserted and possibly
* transliterated into the translation buffer at
* <code>index.limit</code>.
* @param status Output param to filled in with a success or an error.
*/
void _transliterate(Replaceable& text,
UTransPosition& index,
const UnicodeString* insertion,
UErrorCode &status) const;
protected:
/**
* Abstract method that concrete subclasses define to implement
* their transliteration algorithm. This method handles both
* incremental and non-incremental transliteration. Let
* <code>originalStart</code> refer to the value of
* <code>pos.start</code> upon entry.
*
* <ul>
* <li>If <code>incremental</code> is false, then this method
* should transliterate all characters between
* <code>pos.start</code> and <code>pos.limit</code>. Upon return
* <code>pos.start</code> must == <code> pos.limit</code>.</li>
*
* <li>If <code>incremental</code> is true, then this method
* should transliterate all characters between
* <code>pos.start</code> and <code>pos.limit</code> that can be
* unambiguously transliterated, regardless of future insertions
* of text at <code>pos.limit</code>. Upon return,
* <code>pos.start</code> should be in the range
* [<code>originalStart</code>, <code>pos.limit</code>).
* <code>pos.start</code> should be positioned such that
* characters [<code>originalStart</code>, <code>
* pos.start</code>) will not be changed in the future by this
* transliterator and characters [<code>pos.start</code>,
* <code>pos.limit</code>) are unchanged.</li>
* </ul>
*
* <p>Implementations of this method should also obey the
* following invariants:</p>
*
* <ul>
* <li> <code>pos.limit</code> and <code>pos.contextLimit</code>
* should be updated to reflect changes in length of the text
* between <code>pos.start</code> and <code>pos.limit</code>. The
* difference <code> pos.contextLimit - pos.limit</code> should
* not change.</li>
*
* <li><code>pos.contextStart</code> should not change.</li>
*
* <li>Upon return, neither <code>pos.start</code> nor
* <code>pos.limit</code> should be less than
* <code>originalStart</code>.</li>
*
* <li>Text before <code>originalStart</code> and text after
* <code>pos.limit</code> should not change.</li>
*
* <li>Text before <code>pos.contextStart</code> and text after
* <code> pos.contextLimit</code> should be ignored.</li>
* </ul>
*
* <p>Subclasses may safely assume that all characters in
* [<code>pos.start</code>, <code>pos.limit</code>) are filtered.
* In other words, the filter has already been applied by the time
* this method is called. See
* <code>filteredTransliterate()</code>.
*
* <p>This method is <b>not</b> for public consumption. Calling
* this method directly will transliterate
* [<code>pos.start</code>, <code>pos.limit</code>) without
* applying the filter. End user code should call <code>
* transliterate()</code> instead of this method. Subclass code
* should call <code>filteredTransliterate()</code> instead of
* this method.<p>
*
* @param text the buffer holding transliterated and
* untransliterated text
*
* @param pos the indices indicating the start, limit, context
* start, and context limit of the text.
*
* @param incremental if true, assume more text may be inserted at
* <code>pos.limit</code> and act accordingly. Otherwise,
* transliterate all text between <code>pos.start</code> and
* <code>pos.limit</code> and move <code>pos.start</code> up to
* <code>pos.limit</code>.
*
* @see #transliterate
* @draft ICU 2.4
*/
virtual void handleTransliterate(Replaceable& text,
UTransPosition& pos,
UBool incremental) const = 0;
/**
* Transliterate a substring of text, as specified by index, taking filters
* into account. This method is for subclasses that need to delegate to
* another transliterator, such as CompoundTransliterator.
* @param text the text to be transliterated
* @param index the position indices
* @param incremental if TRUE, then assume more characters may be inserted
* at index.limit, and postpone processing to accomodate future incoming
* characters
* @draft ICU 2.4
*/
virtual void filteredTransliterate(Replaceable& text,
UTransPosition& index,
UBool incremental) const;
friend class CompoundTransliterator; // for filteredTransliterate()
friend class AnyTransliterator; // for filteredTransliterate()
private:
/**
* Top-level transliteration method, handling filtering, incremental and
* non-incremental transliteration, and rollback. All transliteration
* public API methods eventually call this method with a rollback argument
* of TRUE. Other entities may call this method but rollback should be
* FALSE.
*
* <p>If this transliterator has a filter, break up the input text into runs
* of unfiltered characters. Pass each run to
* <subclass>.handleTransliterate().
*
* <p>In incremental mode, if rollback is TRUE, perform a special
* incremental procedure in which several passes are made over the input
* text, adding one character at a time, and committing successful
* transliterations as they occur. Unsuccessful transliterations are rolled
* back and retried with additional characters to give correct results.
*
* @param text the text to be transliterated
* @param index the position indices
* @param incremental if TRUE, then assume more characters may be inserted
* at index.limit, and postpone processing to accomodate future incoming
* characters
* @param rollback if TRUE and if incremental is TRUE, then perform special
* incremental processing, as described above, and undo partial
* transliterations where necessary. If incremental is FALSE then this
* parameter is ignored.
*/
virtual void filteredTransliterate(Replaceable& text,
UTransPosition& index,
UBool incremental,
UBool rollback) const;
public:
/**
* Returns the length of the longest context required by this transliterator.
* This is <em>preceding</em> context. The default implementation supplied
* by <code>Transliterator</code> returns zero; subclasses
* that use preceding context should override this method to return the
* correct value. For example, if a transliterator translates "ddd" (where
* d is any digit) to "555" when preceded by "(ddd)", then the preceding
* context length is 5, the length of "(ddd)".
*
* @return The maximum number of preceding context characters this
* transliterator needs to examine
* @stable ICU 2.0
*/
int32_t getMaximumContextLength(void) const;
protected:
/**
* Method for subclasses to use to set the maximum context length.
* @param maxContextLength the new value to be set.
* @see #getMaximumContextLength
* @draft ICU 2.4
*/
void setMaximumContextLength(int32_t maxContextLength);
public:
/**
* Returns a programmatic identifier for this transliterator.
* If this identifier is passed to <code>createInstance()</code>, it
* will return this object, if it has been registered.
* @return a programmatic identifier for this transliterator.
* @see #registerInstance
* @see #registerClass
* @see #getAvailableIDs
* @stable ICU 2.0
*/
virtual const UnicodeString& getID(void) const;
/**
* Returns a name for this transliterator that is appropriate for
* display to the user in the default locale. See {@link
* #getDisplayName()} for details.
* @param ID the string identifier for this transliterator
* @param result Output param to receive the display name
* @return A reference to 'result'.
* @stable ICU 2.0
*/
static UnicodeString& getDisplayName(const UnicodeString& ID,
UnicodeString& result);
/**
* Returns a name for this transliterator that is appropriate for
* display to the user in the given locale. This name is taken
* from the locale resource data in the standard manner of the
* <code>java.text</code> package.
*
* <p>If no localized names exist in the system resource bundles,
* a name is synthesized using a localized
* <code>MessageFormat</code> pattern from the resource data. The
* arguments to this pattern are an integer followed by one or two
* strings. The integer is the number of strings, either 1 or 2.
* The strings are formed by splitting the ID for this
* transliterator at the first '-'. If there is no '-', then the
* entire ID forms the only string.
* @param ID the string identifier for this transliterator
* @param inLocale the Locale in which the display name should be
* localized.
* @param result Output param to receive the display name
* @return A reference to 'result'.
* @stable ICU 2.0
*/
static UnicodeString& getDisplayName(const UnicodeString& ID,
const Locale& inLocale,
UnicodeString& result);
/**
* Returns the filter used by this transliterator, or <tt>NULL</tt>
* if this transliterator uses no filter.
* @return the filter used by this transliterator, or <tt>NULL</tt>
* if this transliterator uses no filter.
* @stable ICU 2.0
*/
const UnicodeFilter* getFilter(void) const;
/**
* Returns the filter used by this transliterator, or <tt>NULL</tt> if this
* transliterator uses no filter. The caller must eventually delete the
* result. After this call, this transliterator's filter is set to
* <tt>NULL</tt>.
* @return the filter used by this transliterator, or <tt>NULL</tt> if this
* transliterator uses no filter.
* @draft ICU 2.4
*/
UnicodeFilter* orphanFilter(void);
#ifdef U_USE_DEPRECATED_TRANSLITERATOR_API
/**
* Changes the filter used by this transliterator. If the filter
* is set to <tt>null</tt> then no filtering will occur.
*
* <p>Callers must take care if a transliterator is in use by
* multiple threads. The filter should not be changed by one
* thread while another thread may be transliterating.
*
* @obsolete ICU 2.4. This method will be made non-virtual in that release.
*/
virtual void adoptFilter(UnicodeFilter* adoptedFilter);
#else
/**
* Changes the filter used by this transliterator. If the filter
* is set to <tt>null</tt> then no filtering will occur.
*
* <p>Callers must take care if a transliterator is in use by
* multiple threads. The filter should not be changed by one
* thread while another thread may be transliterating.
* @param adoptedFilter the new filter to be adopted.
* @stable ICU 2.0
*/
void adoptFilter(UnicodeFilter* adoptedFilter);
#endif
/**
* Returns this transliterator's inverse. See the class
* documentation for details. This implementation simply inverts
* the two entities in the ID and attempts to retrieve the
* resulting transliterator. That is, if <code>getID()</code>
* returns "A-B", then this method will return the result of
* <code>createInstance("B-A")</code>, or <code>null</code> if that
* call fails.
*
* <p>Subclasses with knowledge of their inverse may wish to
* override this method.
*
* @param status Output param to filled in with a success or an error.
* @return a transliterator that is an inverse, not necessarily
* exact, of this transliterator, or <code>null</code> if no such
* transliterator is registered.
* @see #registerInstance
* @stable ICU 2.0
*/
Transliterator* createInverse(UErrorCode& status) const;
/**
* Returns a <code>Transliterator</code> object given its ID.
* The ID must be either a system transliterator ID or a ID registered
* using <code>registerInstance()</code>.
*
* @param ID a valid ID, as enumerated by <code>getAvailableIDs()</code>
* @param dir either FORWARD or REVERSE.
* @param parseError Struct to recieve information on position
* of error if an error is encountered
* @param status Output param to filled in with a success or an error.
* @return A <code>Transliterator</code> object with the given ID
* @see #registerInstance
* @see #getAvailableIDs
* @see #getID
* @stable ICU 2.0
*/
static Transliterator* createInstance(const UnicodeString& ID,
UTransDirection dir,
UParseError& parseError,
UErrorCode& status);
/**
* Returns a <code>Transliterator</code> object given its ID.
* The ID must be either a system transliterator ID or a ID registered
* using <code>registerInstance()</code>.
* @param ID a valid ID, as enumerated by <code>getAvailableIDs()</code>
* @param dir either FORWARD or REVERSE.
* @param status Output param to filled in with a success or an error.
* @return A <code>Transliterator</code> object with the given ID
* @stable ICU 2.0
*/
static Transliterator* createInstance(const UnicodeString& ID,
UTransDirection dir,
UErrorCode& status);
/**
* Returns a <code>Transliterator</code> object constructed from
* the given rule string. This will be a RuleBasedTransliterator,
* if the rule string contains only rules, or a
* CompoundTransliterator, if it contains ID blocks, or a
* NullTransliterator, if it contains ID blocks which parse as
* empty for the given direction.
* @param id the id for the transliterator.
* @param rules rules, separated by ';'
* @param dir either FORWARD or REVERSE.
* @param parseError Struct to recieve information on position
* of error if an error is encountered
* @param status Output param set to success/failure code.
* @stable ICU 2.0
*/
static Transliterator* createFromRules(const UnicodeString& ID,
const UnicodeString& rules,
UTransDirection dir,
UParseError& parseError,
UErrorCode& status);
/**
* Create a rule string that can be passed to createFromRules()
* to recreate this transliterator.
* @param result the string to receive the rules. Previous
* contents will be deleted.
* @param escapeUnprintable if TRUE then convert unprintable
* character to their hex escape representations, \uxxxx or
* \Uxxxxxxxx. Unprintable characters are those other than
* U+000A, U+0020..U+007E.
* @stable ICU 2.0
*/
virtual UnicodeString& toRules(UnicodeString& result,
UBool escapeUnprintable) const;
/**
* Returns the set of all characters that may be modified in the
* input text by this Transliterator. This incorporates this
* object's current filter; if the filter is changed, the return
* value of this function will change. The default implementation
* returns an empty set. Some subclasses may override {@link
* #handleGetSourceSet()} to return a more precise result. The
* return result is approximate in any case and is intended for
* use by tests, tools, or utilities.
* @param result receives result set; previous contents lost
* @return a reference to result
* @see #getTargetSet
* @see #handleGetSourceSet
* @draft ICU 2.4
*/
UnicodeSet& getSourceSet(UnicodeSet& result) const;
/**
* Framework method that returns the set of all characters that
* may be modified in the input text by this Transliterator,
* ignoring the effect of this object's filter. The base class
* implementation returns the empty set. Subclasses that wish to
* implement this should override this method.
* @return the set of characters that this transliterator may
* modify. The set may be modified, so subclasses should return a
* newly-created object.
* @param result receives result set; previous contents lost
* @see #getSourceSet
* @see #getTargetSet
* @draft ICU 2.4
*/
virtual void handleGetSourceSet(UnicodeSet& result) const;
/**
* Returns the set of all characters that may be generated as
* replacement text by this transliterator. The default
* implementation returns the empty set. Some subclasses may
* override this method to return a more precise result. The
* return result is approximate in any case and is intended for
* use by tests, tools, or utilities requiring such
* meta-information.
* @param result receives result set; previous contents lost
* @return a reference to result
* @see #getTargetSet
* @draft ICU 2.4
*/
virtual UnicodeSet& getTargetSet(UnicodeSet& result) const;
public:
/**
* Registers a factory function that creates transliterators of
* a given ID.
* @param id the ID being registered
* @param factory a function pointer that will be copied and
* called later when the given ID is passed to createInstance()
* @param context a context pointer that will be stored and
* later passed to the factory function when an ID matching
* the registration ID is being instantiated with this factory.
* @stable ICU 2.0
*/
static void registerFactory(const UnicodeString& id,
Factory factory,
Token context);
/**
* Registers a instance <tt>obj</tt> of a subclass of
* <code>Transliterator</code> with the system. When
* <tt>createInstance()</tt> is called with an ID string that is
* equal to <tt>obj->getID()</tt>, then <tt>obj->clone()</tt> is
* returned.
*
* After this call the Transliterator class owns the adoptedObj
* and will delete it.
*
* @param adoptedObj an instance of subclass of
* <code>Transliterator</code> that defines <tt>clone()</tt>
* @see #createInstance
* @see #registerClass
* @see #unregister
* @stable ICU 2.0
*/
static void registerInstance(Transliterator* adoptedObj);
protected:
/**
* @internal
* @param id the ID being registered
* @param factory a function pointer that will be copied and
* called later when the given ID is passed to createInstance()
* @param context a context pointer that will be stored and
* later passed to the factory function when an ID matching
* the registration ID is being instantiated with this factory.
*/
static void _registerFactory(const UnicodeString& id,
Factory factory,
Token context);
/**
* @internal
*/
static void _registerInstance(Transliterator* adoptedObj);
/**
* Register two targets as being inverses of one another. For
* example, calling registerSpecialInverse("NFC", "NFD", true) causes
* Transliterator to form the following inverse relationships:
*
* <pre>NFC => NFD
* Any-NFC => Any-NFD
* NFD => NFC
* Any-NFD => Any-NFC</pre>
*
* (Without the special inverse registration, the inverse of NFC
* would be NFC-Any.) Note that NFD is shorthand for Any-NFD, but
* that the presence or absence of "Any-" is preserved.
*
* <p>The relationship is symmetrical; registering (a, b) is
* equivalent to registering (b, a).
*
* <p>The relevant IDs must still be registered separately as
* factories or classes.
*
* <p>Only the targets are specified. Special inverses always
* have the form Any-Target1 <=> Any-Target2. The target should
* have canonical casing (the casing desired to be produced when
* an inverse is formed) and should contain no whitespace or other
* extraneous characters.
*
* @param target the target against which to register the inverse
* @param inverseTarget the inverse of target, that is
* Any-target.getInverse() => Any-inverseTarget
* @param bidirectional if true, register the reverse relation
* as well, that is, Any-inverseTarget.getInverse() => Any-target
* @internal
*/
static void _registerSpecialInverse(const UnicodeString& target,
const UnicodeString& inverseTarget,
UBool bidirectional);
public:
/**
* Unregisters a transliterator or class. This may be either
* a system transliterator or a user transliterator or class.
* Any attempt to construct an unregistered transliterator based
* on its ID will fail.
*
* @param ID the ID of the transliterator or class
* @return the <code>Object</code> that was registered with
* <code>ID</code>, or <code>null</code> if none was
* @see #registerInstance
* @see #registerClass
* @stable ICU 2.0
*/
static void unregister(const UnicodeString& ID);
public:
/**
* Return the number of IDs currently registered with the system.
* To retrieve the actual IDs, call getAvailableID(i) with
* i from 0 to countAvailableIDs() - 1.
* @return the number of IDs currently registered with the system.
* @stable ICU 2.0
*/
static int32_t countAvailableIDs(void);
/**
* Return the index-th available ID. index must be between 0
* and countAvailableIDs() - 1, inclusive. If index is out of
* range, the result of getAvailableID(0) is returned.
* @param index the given ID index.
* @return the index-th available ID. index must be between 0
* and countAvailableIDs() - 1, inclusive. If index is out of
* range, the result of getAvailableID(0) is returned.
* @stable ICU 2.0
*/
static const UnicodeString& getAvailableID(int32_t index);
/**
* Return the number of registered source specifiers.
* @return the number of registered source specifiers.
* @stable ICU 2.0
*/
static int32_t countAvailableSources(void);
/**
* Return a registered source specifier.
* @param index which specifier to return, from 0 to n-1, where
* n = countAvailableSources()
* @param result fill-in paramter to receive the source specifier.
* If index is out of range, result will be empty.
* @return reference to result
* @stable ICU 2.0
*/
static UnicodeString& getAvailableSource(int32_t index,
UnicodeString& result);
/**
* Return the number of registered target specifiers for a given
* source specifier.
* @param source the given source specifier.
* @return the number of registered target specifiers for a given
* source specifier.
* @stable ICU 2.0
*/
static int32_t countAvailableTargets(const UnicodeString& source);
/**
* Return a registered target specifier for a given source.
* @param index which specifier to return, from 0 to n-1, where
* n = countAvailableTargets(source)
* @param source the source specifier
* @param result fill-in paramter to receive the target specifier.
* If source is invalid or if index is out of range, result will
* be empty.
* @return reference to result
* @stable ICU 2.0
*/
static UnicodeString& getAvailableTarget(int32_t index,
const UnicodeString& source,
UnicodeString& result);
/**
* Return the number of registered variant specifiers for a given
* source-target pair.
* @param source the source specifiers.
* @param target the target specifiers.
* @stable ICU 2.0
*/
static int32_t countAvailableVariants(const UnicodeString& source,
const UnicodeString& target);
/**
* Return a registered variant specifier for a given source-target
* pair.
* @param index which specifier to return, from 0 to n-1, where
* n = countAvailableVariants(source, target)
* @param source the source specifier
* @param target the target specifier
* @param result fill-in paramter to receive the variant
* specifier. If source is invalid or if target is invalid or if
* index is out of range, result will be empty.
* @return reference to result
* @stable ICU 2.0
*/
static UnicodeString& getAvailableVariant(int32_t index,
const UnicodeString& source,
const UnicodeString& target,
UnicodeString& result);
protected:
/**
* Non-mutexed internal method
* @internal
*/
static int32_t _countAvailableSources(void);
/**
* Non-mutexed internal method
* @internal
*/
static UnicodeString& _getAvailableSource(int32_t index,
UnicodeString& result);
/**
* Non-mutexed internal method
* @internal
*/
static int32_t _countAvailableTargets(const UnicodeString& source);
/**
* Non-mutexed internal method
* @internal
*/
static UnicodeString& _getAvailableTarget(int32_t index,
const UnicodeString& source,
UnicodeString& result);
/**
* Non-mutexed internal method
* @internal
*/
static int32_t _countAvailableVariants(const UnicodeString& source,
const UnicodeString& target);
/**
* Non-mutexed internal method
* @internal
*/
static UnicodeString& _getAvailableVariant(int32_t index,
const UnicodeString& source,
const UnicodeString& target,
UnicodeString& result);
public:
/**
* Return the class ID for this class. This is useful only for
* comparing to a return value from getDynamicClassID(). For example:
* <pre>
* . Base* polymorphic_pointer = createPolymorphicObject();
* . if (polymorphic_pointer->getDynamicClassID() ==
* . Derived::getStaticClassID()) ...
* </pre>
* @return The class ID for all objects of this class.
* @stable ICU 2.0
*/
static UClassID getStaticClassID(void) { return (UClassID)&fgClassID; }
/**
* Returns a unique class ID <b>polymorphically</b>. This method
* is to implement a simple version of RTTI, since not all C++
* compilers support genuine RTTI. Polymorphic operator==() and
* clone() methods call this method.
*
* <p>Concrete subclasses of Transliterator that wish clients to
* be able to identify them should implement getDynamicClassID()
* and also a static method and data member:
*
* <pre>
* static UClassID getStaticClassID() { return (UClassID)&fgClassID; }
* static char fgClassID;
* </pre>
*
* Subclasses that do not implement this method will have a
* dynamic class ID of Transliterator::getStatisClassID().
*
* @return The class ID for this object. All objects of a given
* class have the same class ID. Objects of other classes have
* different class IDs.
* @stable ICU 2.0
*/
virtual UClassID getDynamicClassID(void) const = 0;
private:
/**
* Class identifier for subclasses of Transliterator that do not
* define their class (anonymous subclasses).
*/
static const char fgClassID;
protected:
/**
* Set the ID of this transliterators. Subclasses shouldn't do
* this, unless the underlying script behavior has changed.
* @param id the new id t to be set.
* @draft ICU 2.4
*/
void setID(const UnicodeString& id);
private:
static void initializeRegistry(void);
#ifdef U_USE_DEPRECATED_TRANSLITERATOR_API
public:
/**
* Returns a <code>Transliterator</code> object given its ID.
* The ID must be either a system transliterator ID or a ID registered
* using <code>registerInstance()</code>.
*
* @param ID a valid ID, as enumerated by <code>getAvailableIDs()</code>
* @param dir either FORWARD or REVERSE.
* @param parseError Struct to recieve information on position
* @return A <code>Transliterator</code> object with the given ID
* @exception IllegalArgumentException if the given ID is invalid.
* @see #registerInstance
* @see #getAvailableIDs
* @see #getID
* @obsolete ICU 2.4. Use the factory method that takes UParseError and UErrorCode instead since this API will be removed in that release.
*/
inline Transliterator* createInstance(const UnicodeString& ID,
UTransDirection dir=UTRANS_FORWARD,
UParseError* parseError=0);
/**
* Returns this transliterator's inverse. See the class
* documentation for details. This implementation simply inverts
* the two entities in the ID and attempts to retrieve the
* resulting transliterator. That is, if <code>getID()</code>
* returns "A-B", then this method will return the result of
* <code>createInstance("B-A")</code>, or <code>null</code> if that
* call fails.
*
* <p>This method does not take filtering into account. The
* returned transliterator will have no filter.
*
* <p>Subclasses with knowledge of their inverse may wish to
* override this method.
*
* @return a transliterator that is an inverse, not necessarily
* exact, of this transliterator, or <code>null</code> if no such
* transliterator is registered.
* @obsolete ICU 2.4. Use the factory method that takes UErrorCode instead since this API will be removed in that release.
*/
inline Transliterator* createInverse() const;
protected:
/**
* Method for subclasses to use to obtain a character in the given
* string, with filtering. If the character at the given offset
* is excluded by this transliterator's filter, then U+FFFE is returned.
*
* <p><b>Note:</b> Most subclasses that implement
* handleTransliterator() will <em>not</em> want to use this
* method, since characters they see are already filtered. Only
* subclasses with special requirements, such as those overriding
* filteredTransliterate(), should need this method.
*
* @obsolete ICU 2.4. No need to call this since the new architecture provides filtering at the top level.
*/
UChar filteredCharAt(const Replaceable& text, int32_t i) const;
#endif
};
inline int32_t Transliterator::getMaximumContextLength(void) const {
return maximumContextLength;
}
inline void Transliterator::setID(const UnicodeString& id) {
ID = id;
}
inline Transliterator::Token Transliterator::integerToken(int32_t i) {
Token t;
t.integer = i;
return t;
}
inline Transliterator::Token Transliterator::pointerToken(void* p) {
Token t;
t.pointer = p;
return t;
}
/**
* Definitions for obsolete API
* TODO: Remove after Aug 2002
*/
#ifdef U_USE_DEPRECATED_TRANSLITERATOR_API
inline Transliterator* Transliterator::createInstance(const UnicodeString& ID,
UTransDirection dir,
UParseError* parseError){
UErrorCode status = U_ZERO_ERROR;
UParseError error;
if(parseError == NULL){
parseError = &error;
}
return Transliterator::createInstance(ID,dir,*parseError,status);
}
inline Transliterator* Transliterator::createInverse() const{
UErrorCode status = U_ZERO_ERROR;
return createInverse(status);
}
#endif
U_NAMESPACE_END
#endif /* #if !UCONFIG_NO_TRANSLITERATION */
#endif
| [
"(no author)@251d0590-4201-4cf1-90de-194747b24ca1"
] | (no author)@251d0590-4201-4cf1-90de-194747b24ca1 |
cbb7e04a2f40fa5e17811772b00c5a13da976c0b | a2fd3f4bb49eebfa011a85eab417f0080b1eec0e | /Source/Balanca/DataStructure.cpp | 78eeea2351239f0ac87ebc39acaf68013757b2d5 | [] | no_license | grecabral/starmines | badf04be9640859dacac9a46079d76edd92edbec | c9e050cd36f9a12a4276f4e42d4852bed6d6fa90 | refs/heads/master | 2022-12-12T08:27:17.274836 | 2017-11-08T12:12:25 | 2017-11-08T12:12:25 | 294,151,147 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Balanca.h"
#include "DataStructure.h"
DataStructure::DataStructure()
{
}
DataStructure::~DataStructure()
{
}
| [
"csf2@cin.ufpe.br"
] | csf2@cin.ufpe.br |
5107e3afcba0bdcc1cc7733d3bb35ceae92b9f95 | 50a8a3fe0fdffb4141b12b0ee73363f218efc222 | /src/ngap/ngapIEs/GNB-ID.cpp | 0e49796d7388808323b0bf91ca698f91e6c5b8dd | [] | no_license | dukl/fake_gnb | f89972ad50c6a50e620fe8590cece7200d2560da | b6f772e8fb82c61a9949a4f4c317637d97c36fb6 | refs/heads/master | 2022-12-07T21:55:26.285263 | 2020-08-27T07:11:37 | 2020-08-27T07:11:37 | 290,703,480 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,668 | cpp | #include "GNB-ID.hpp"
#include <iostream>
using namespace std;
namespace ngap{
GNB_ID::GNB_ID(){}
GNB_ID::~GNB_ID(){}
void GNB_ID::setValue(uint32_t gnbId)
{
gNBId.id = gnbId;
uint8_t len = 0;
for(uint32_t i = 0x00000001; i<= 0x00000400; i=i<<1,len++)
{
if((i & gnbId))
{
gNBId.biteslen = 32 - len;
break;
}
}
if(!((gNBId.biteslen >= 22)&&(gNBId.biteslen <= 32)))
{
cout<<"[warning][gNBID length out of range]"<<endl;
}
}
bool GNB_ID::encode2bitstring(Ngap_GNB_ID_t &gnbid)
{
gnbid.present = Ngap_GNB_ID_PR_gNB_ID;
if(!(gNBId.biteslen % 8))
gnbid.choice.gNB_ID.size = gNBId.biteslen / 8;
else
gnbid.choice.gNB_ID.size = gNBId.biteslen / 8 + 1;
//printf("m_gNBId.size(%d)\n",m_gNBId.size);
gnbid.choice.gNB_ID.bits_unused = 32 - gNBId.biteslen;
gnbid.choice.gNB_ID.buf = (uint8_t*)calloc(1,4*sizeof(uint8_t));
if(!gnbid.choice.gNB_ID.buf) return false;
gnbid.choice.gNB_ID.buf[3] = gNBId.id & 0x000000ff;
gnbid.choice.gNB_ID.buf[2] = (gNBId.id & 0x0000ff00)>>8;
gnbid.choice.gNB_ID.buf[1] = (gNBId.id & 0x00ff0000)>>16;
gnbid.choice.gNB_ID.buf[0] = (gNBId.id & 0xff000000)>>24;
return true;
}
bool GNB_ID::decodefrombitstring(Ngap_GNB_ID_t &gnbid)
{
if(gnbid.present != Ngap_GNB_ID_PR_gNB_ID) return false;
if(!gnbid.choice.gNB_ID.buf) return false;
gNBId.id = gnbid.choice.gNB_ID.buf[0]<<24;
gNBId.id |= gnbid.choice.gNB_ID.buf[1]<<16;
gNBId.id |= gnbid.choice.gNB_ID.buf[2]<<8;
gNBId.id |= gnbid.choice.gNB_ID.buf[3];
return true;
}
long GNB_ID::getValue()
{
return gNBId.id;
}
}
| [
"du_keliang@163.com"
] | du_keliang@163.com |
126256e59f05fa6be538d55f8e8341df1a2493f9 | 4c25432a6d82aaebd82fd48e927317b15a6bf6ab | /data/dataset_2017/dataset_2017_8_formatted_macrosremoved/kojingharang/8294486_5630967708385280_kojingharang.cpp | c98ef115fbe49396688d36f5baa4e85591a1dccd | [] | no_license | wzj1988tv/code-imitator | dca9fb7c2e7559007e5dbadbbc0d0f2deeb52933 | 07a461d43e5c440931b6519c8a3f62e771da2fc2 | refs/heads/master | 2020-12-09T05:33:21.473300 | 2020-01-09T15:29:24 | 2020-01-09T15:29:24 | 231,937,335 | 1 | 0 | null | 2020-01-05T15:28:38 | 2020-01-05T15:28:37 | null | UTF-8 | C++ | false | false | 2,035 | cpp | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <vector>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
using namespace std;
template <typename T0, typename T1>
std::ostream &operator<<(std::ostream &os, const map<T0, T1> &v) {
for (typename map<T0, T1>::const_iterator p = v.begin(); p != v.end(); p++) {
os << p->first << ": " << p->second << " ";
}
return os;
}
template <typename T0, typename T1>
std::ostream &operator<<(std::ostream &os, const pair<T0, T1> &v) {
os << v.first << ": " << v.second << " ";
return os;
}
template <typename T>
std::ostream &operator<<(std::ostream &os, const vector<T> &v) {
for (int i = 0; i < (int)v.size(); i++) {
os << v[i] << " ";
}
return os;
}
template <typename T>
std::ostream &operator<<(std::ostream &os, const set<T> &v) {
vector<T> tmp(v.begin(), v.end());
os << tmp;
return os;
}
template <typename T>
std::ostream &operator<<(std::ostream &os, const deque<T> &v) {
vector<T> tmp(v.begin(), v.end());
os << tmp;
return os;
}
template <typename T>
std::ostream &operator<<(std::ostream &os, const vector<vector<T>> &v) {
for (int i = 0; i < (int)v.size(); i++) {
os << v[i] << endl;
}
return os;
}
/*
*/
int main() {
int test_cases;
cin >> test_cases;
long long D, N, K, S;
string s;
for (int ttt = 0, _n = (test_cases); (ttt) < (int)_n; ++ttt) {
cin >> D >> N;
// DD(ttt);
// DD(D);
// DD(N);
long double t = 0;
for (int i = 0, _n = (N); (i) < (int)_n; ++i) {
cin >> K >> S;
long double lt = ((long double)D - K) / S;
// DD(D-K);
// DD(S);
// DD(lt);
// printf("%.9Lf\n", lt);
t = max(t, lt);
}
// DD(t);
long double ans = D / t;
printf("Case #%d: %.9Lf\n", ttt + 1, ans);
// return 0;
}
return 0;
}
| [
"e.quiring@tu-bs.de"
] | e.quiring@tu-bs.de |
dc62d96870fba89bf101df6fc43ab774bd504115 | 4cf3985b76da8af9b43d96cec1bb72258a6434d4 | /DXEdit/VertexEdit.h | 6482af3ac8515619b44fbbec1bbc2fb0dc298089 | [] | no_license | d16/freefalcon-contrib | 6d235885c1629739d2bc47006c4ec0d1838fa63c | 9995379bd5ed734acfccd30918117c3b3765e5ca | refs/heads/master | 2020-12-24T17:45:02.978021 | 2013-01-17T18:41:28 | 2013-01-17T18:41:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,020 | h | #pragma once
#include "afxwin.h"
#include "afxcmn.h"
// CVertexEdit dialog
class CVertexEdit : public CDialog
{
DECLARE_DYNAMIC(CVertexEdit)
public:
CVertexEdit(CWnd* pParent = NULL); // standard constructor
virtual ~CVertexEdit();
bool EditVertex(CSelectList *List, void **Object, D3DVERTEXEX **Vertex);
void UpdateEditValues(CSelectList *List, void **Object, D3DVERTEXEX **Vertex);
void VertexScaleFunction(D3DXVECTOR3 Transform, D3DXVECTOR3 Move, bool Remove);
void VertexUVFunction(D3DXVECTOR3 Transform, D3DXVECTOR3 Move, bool Remove);
// Dialog Data
enum { IDD = IDD_VERTEXEDIT };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
D3DVERTEXEX **m_VSelected;
void **m_VertexOwner;
DWORD m_SAlpha, m_DAlpha;
bool m_bVertexMove, m_bVertexScale, m_bVertexUV;
CSelectList *m_SelectList;
D3DCOLOR m_DiffuseCopy, m_SpecularCopy;
D3DVECTOR m_PositionCopy;
float m_UCopy, m_VCopy;
DECLARE_MESSAGE_MAP()
public:
void VertexMoveFunction(D3DXVECTOR3 Transform, D3DXVECTOR3 Move, bool Remove);
afx_msg void OnBnClickedDiffusecolor();
afx_msg void OnBnClickedSpecularcolor();
afx_msg void OnNMCustomdrawDiffuseslider(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMCustomdrawSpecularslider(NMHDR *pNMHDR, LRESULT *pResult);
CButton m_SingleVertexCheck;
CSliderCtrl m_SpecularAlpha;
CSliderCtrl m_DiffuseSlider;
protected:
CButton m_VertexMove ;
CButton m_VertexScale;
CButton m_VertexUV ;
public:
afx_msg void OnBnClickedSvertexmove();
afx_msg void OnBnClickedSvertexscale();
protected:
CButton m_OnlySelectCheck;
public:
afx_msg void OnBnClickedDcopy();
afx_msg void OnBnClickedScopy();
afx_msg void OnBnClickedDpaste();
afx_msg void OnBnClickedSpaste();
afx_msg void OnBnClickedButton3();
afx_msg void OnBnClickedPoscopy();
afx_msg void OnBnClickedPospaste();
afx_msg void OnBnClickedCopyuv();
afx_msg void OnBnClickedPasteuv();
afx_msg void OnBnClickedSvertexuv();
CButton m_ScaleOmniCheck;
CButton m_ScaleAbsolute;
};
| [
"pmvstrm@yahoo.de"
] | pmvstrm@yahoo.de |
ffdf5a38604a68836319fcbb1f473d50e42bbb92 | 5e8d200078e64b97e3bbd1e61f83cb5bae99ab6e | /main/source/src/protocols/loops/LoopsFileLoader.hh | 4def6c46887de197f9df460f7e1cca787b9c3244 | [] | no_license | MedicaicloudLink/Rosetta | 3ee2d79d48b31bd8ca898036ad32fe910c9a7a28 | 01affdf77abb773ed375b83cdbbf58439edd8719 | refs/heads/master | 2020-12-07T17:52:01.350906 | 2020-01-10T08:24:09 | 2020-01-10T08:24:09 | 232,757,729 | 2 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 2,222 | hh | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
// (c) addressed to University of Washington CoMotion, email: license@uw.edu.
/// @file protocols/loops/LoopsFileLoader.hh
/// @brief
/// @author
#ifndef INCLUDED_protocols_loops_LoopsFileLoader_HH
#define INCLUDED_protocols_loops_LoopsFileLoader_HH
//unit headers
#include <protocols/loops/LoopsFileLoader.fwd.hh>
//project headers
#include <basic/resource_manager/ResourceLoader.hh>
#include <basic/resource_manager/types.hh>
//utility headers
#include <utility/pointer/ReferenceCount.hh>
#include <utility/tag/Tag.fwd.hh>
#include <utility/tag/XMLSchemaGeneration.fwd.hh>
//C++ headers
#include <istream>
namespace protocols {
namespace loops {
/// @brief %LoopsFileLoader constructs a LoopsFileData instance from data provided by the %ResourceManager.
/// @details The %LoopsFileLoader is given an istream containing the information in a %LoopsFile from the
/// ResourceManager. This information is then processed by an instance of LoopsFileIO to produce a LoopsFileDataOP to
/// return to the protocol.
class LoopsFileLoader : public basic::resource_manager::ResourceLoader
{
public:
/// @brief Construct the %LoopsFileLoader.
LoopsFileLoader();
/// @brief Destructor.
~LoopsFileLoader() override;
/// @brief Return a LoopsFileDataOP constructed from the given input stream (istream).
basic::resource_manager::ResourceCOP
create_resource(
basic::resource_manager::ResourceManager & resource_manager,
utility::tag::TagCOP resource_tag,
std::string const & input_id,
std::istream & input_stream
) const override;
static
std::string
classname();
static
void
provide_xml_schema( utility::tag::XMLSchemaDefinition & xsd );
};
} // namespace loops
} // namespace protocols
#endif //INCLUDED_protocols_loops_LoopsFileLoader_HH
| [
"36790013+MedicaicloudLink@users.noreply.github.com"
] | 36790013+MedicaicloudLink@users.noreply.github.com |
5f46d4d68b526ef933906edc7baeef2227c6c817 | c12c8522d04f2a7db0df8dd887004c12c55d0e28 | /C++基础08/6 如何定义一个函数指针/6 如何定义一个函数指针.cpp | 84e5802996d273a807ed9a42806e7f85af3993da | [] | no_license | chicocao/CppBase | b451990fed72c87209f3ab6ea88cc663a504b708 | b4037d954166092305e8e1c2261c7f3316f0676c | refs/heads/master | 2022-02-18T13:08:32.022932 | 2018-12-20T12:59:24 | 2018-12-20T12:59:24 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,146 | cpp | #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
//定义一个函数
int func(int a, int b) {
cout << "func1" << endl;
return 0;
}
//定义一个函数指针
// C语言中 决定一个函数类型
// 返回值 参数列表
typedef int(FUNC)(int, int);//定义一个函数类型
typedef int(*FUNC_POINTER)(int, int);//定义一个函数指针类型
//如何将一个函数指针当成一个函数参数呢?
void my_function(FUNC *fp) {
fp(1, 2);
}
void my_function2(FUNC_POINTER fp) {
fp(1, 2);
}
void my_function3(int(*fp)(int, int)) {
cout << "1999 年写的架构" << endl;
cout << "固定业务1" << endl;
fp(10, 20);
cout << "固定业务2" << endl;
}
//2015 实现一个子函数
int my_new_function(int a, int b)
{
cout << a << b << endl;
cout << "2015年实现的新业务" << endl;
return 0;
}
int main(void)
{
FUNC *p = func;
FUNC_POINTER p2 = func;
int(*fp)(int, int) = func;
p(1, 2);
(*p)(1, 2);//这两者等价
p2(1, 2);
(*p2)(1, 2);
fp(1, 2);
(*fp)(1, 2);
cout << " -------- " << endl;
//2015 实现一个子函数,再调用1999的架构
my_function3(my_new_function);
} | [
"2467697276@qq.com"
] | 2467697276@qq.com |
772f0aab32b14ad799223fe882a795e5666e77d7 | ee07962fca45a856e147d0b7abd15108e004f9de | /client/src/include/particleSystem.h | ad9f99bb121c87b59cb7f91b9f569b493ecf6217 | [] | no_license | AzP/LudumDare24 | 6dffc42c1b8e75678580682ee6fa902494e3fc9b | 1e8aa09b2b3f5c90191b609b9212f4ebdb0c9a9e | refs/heads/master | 2020-04-09T00:38:46.975544 | 2013-03-03T21:53:42 | 2013-03-03T21:53:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | h | #ifndef PARTICLESYSTEM_H
#define PARTICLESYSTEM_H
#include "device.h"
#include <irrlicht.h>
#include <vector>
using namespace std;
using namespace irr;
class CParticleSystem
{
public:
CParticleSystem(CDevice& device, ITriangleSelector* selector);
void createExplosion(const vector3df&);
private:
//std::vector<CParticleSystem*> m_explosions;
CDevice& m_device;
ITriangleSelector* m_terrainSelector;
ISceneCollisionManager* m_collisionMgr;
};
#endif
| [
"peter.azp@gmail.com"
] | peter.azp@gmail.com |
5c3532be3d06f25e174d3f319d9db4ae17e3a9fd | 55e664afa0a7744b3f5e813f35c3395307c12456 | /AsteroidGameOpenGL/main.cpp | b06cd163e285daffbd3256de9a5b9e52ffdf3b3f | [] | no_license | FutureProg/AsteroidGameOpenGL | 12cc6080e1ed5b34a72af1a0f2fd74444a1334d0 | 168ddddd756c051621b6e2ff3521bd2c36edc6cc | refs/heads/master | 2016-09-02T05:45:35.861754 | 2015-01-11T21:27:27 | 2015-01-11T21:27:27 | 29,106,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | //
// main.cpp
// AsteroidGameOpenGL
//
// Created by Nickolas Morrison on 2014-11-02.
// Copyright (c) 2014 Nickolas Morrison. All rights reserved.
//
#include <stdio.h>
#include "GameWindow.h"
#include "Entities.h"
int main(int argc, const char * argv[]) {
GLint glfwstatus = glfwInit();
if (glfwstatus != GL_TRUE) {
glfwTerminate();
throw "Unable to initialize GLFW!";
}
char name[] = "Asteroid Game";
GameWindow game(name,500,500);
Rocket rocket(glm::vec3(0.f,0.f,0.f));
rocket.setID("rocket");
Entity::Collider col = Entity::Collider(20,0,60,50);
col.makeCircle(50, glm::vec3(50.f,50.f,0.f));
rocket.addCollider(col);
game.init();
game.instantiate(rocket);
return game.execute();
}
| [
"nickmorrison09@gmail.com"
] | nickmorrison09@gmail.com |
2151a7d989ca17793a03260471b1480a23a7d4a1 | 2fa764b33e15edd3b53175456f7df61a594f0bb5 | /appseed/aura/aura/node/macos/macos_main.cpp | 2ef79eae594ca1276fa033499a7f2aa5e6ed7174 | [] | no_license | PeterAlfonsLoch/app | 5f6ac8f92d7f468bc99e0811537380fcbd828f65 | 268d0c7083d9be366529e4049adedc71d90e516e | refs/heads/master | 2021-01-01T17:44:15.914503 | 2017-07-23T16:58:08 | 2017-07-23T16:58:08 | 98,142,329 | 1 | 0 | null | 2017-07-24T02:44:10 | 2017-07-24T02:44:10 | null | UTF-8 | C++ | false | false | 568 | cpp | #include "framework.h"
#include <crt_externs.h>
CLASS_DECL_AURA int32_t ca2_main();
//CLASS_DECL_BOOT extern fixed_alloc_array * g_pfixedallocaWstring;
//CLASS_DECL_BOOT fixed_alloc_array * new_wstring_manager();
void CLASS_DECL_AURA __cdecl _ca2_purecall()
{
throw simple_exception(::get_thread_app());
}
void __cdecl _null_se_translator(uint32_t uiCode, EXCEPTION_POINTERS * ppointers);
void __cdecl _null_se_translator(uint32_t uiCode, EXCEPTION_POINTERS * ppointers)
{
UNREFERENCED_PARAMETER(uiCode);
UNREFERENCED_PARAMETER(ppointers);
}
| [
"camilo@ca2.email"
] | camilo@ca2.email |
4808f28dd6344cafc8271166a39dcd17d48835fc | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /third_party/WebKit/Source/modules/webgl/WebGLContextEvent.cpp | 4be21ce2a8800febcbf0c6b314b2f64fcadde2fd | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | C++ | false | false | 2,276 | cpp | /*
* Copyright (C) 2010 Google Inc. 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
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "modules/webgl/WebGLContextEvent.h"
namespace blink {
WebGLContextEvent::WebGLContextEvent() {}
WebGLContextEvent::WebGLContextEvent(const AtomicString& type,
bool can_bubble,
bool cancelable,
const String& status_message)
: Event(type, can_bubble, cancelable), status_message_(status_message) {}
WebGLContextEvent::WebGLContextEvent(const AtomicString& type,
const WebGLContextEventInit& initializer)
: Event(type, initializer) {
if (initializer.hasStatusMessage())
status_message_ = initializer.statusMessage();
}
WebGLContextEvent::~WebGLContextEvent() {}
const AtomicString& WebGLContextEvent::InterfaceName() const {
return EventNames::WebGLContextEvent;
}
DEFINE_TRACE(WebGLContextEvent) {
Event::Trace(visitor);
}
} // namespace blink
| [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com |
b43f3cacd24fb8f8fc1ec6bc595a3cc34371ebe9 | 50385efb6781b1cb55c9dcefe3cebdbca6d7e361 | /src/BPmono29.cpp | 1bbeb41ff5fdf14a50436de2817b1a5a521bf01c | [] | no_license | CariadDisplayLibrary/BPmono | 3b639bd5108b827ac93032db572bed62e197e827 | 813c473cdaee288d2666dbdb988aacc35830498a | refs/heads/master | 2022-11-17T17:32:59.830627 | 2020-07-14T16:10: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0, 0, 255, 255, 255, 255, 255, 255, 253, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 253, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 158, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 108, 134, 36, 142, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 223, 249, 0, 0, 0, 0, 0, 0, 0, 0, 124, 255, 253, 112, 0, 0, 0, 0, 0, 0, 0, 28, 255, 252, 112, 0, 0, 0, 0, 0, 0, 0, 0, 191, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 96, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 239, 233, 67, 123, 237, 0, 0, 0, 0, 0, 0, 0, 143, 255, 255, 255, 255, 80, 0, 0, 0, 0, 0, 0, 8, 255, 255, 254, 181, 0, 0, 0, 0, 0, 0, 0, 0, 24, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 255, 255, 255, 212, 0, 0, 0, 0, 0, 5, 255, 192, 0, 223, 169, 252, 0, 0, 0, 0, 0, 0, 191, 246, 0, 255, 68, 254, 0, 0, 0, 0, 0, 0, 63, 252, 0, 255, 33, 255, 0, 0, 0, 0, 0, 0, 10, 255, 96, 255, 33, 255, 0, 0, 0, 0, 0, 0, 2, 239, 208, 239, 68, 254, 0, 0, 0, 0, 0, 0, 0, 159, 247, 191, 169, 252, 0, 0, 0, 0, 0, 0, 0, 14, 253, 44, 255, 212, 0, 0, 0, 0, 0, 0, 0, 8, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 208, 0, 0, 0, 0, 0, 0, 0, 2, 207, 253, 127, 248, 0, 0, 0, 0, 0, 0, 0, 11, 250, 175, 189, 254, 0, 0, 0, 0, 0, 0, 0, 14, 245, 79, 230, 255, 128, 0, 0, 0, 0, 0, 0, 15, 242, 31, 240, 207, 224, 0, 0, 0, 0, 0, 0, 15, 240, 15, 240, 79, 249, 0, 0, 0, 0, 0, 0, 15, 242, 47, 240, 11, 254, 0, 0, 0, 0, 0, 0, 14, 245, 95, 224, 3, 255, 144, 0, 0, 0, 0, 0, 10, 249, 159, 176, 0, 175, 225, 0, 0, 0, 0, 0, 2, 207, 253, 48, 0, 30, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 255, 214, 0, 0, 0, 0, 0, 0, 0, 0, 7, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 13, 252, 36, 223, 192, 0, 0, 0, 0, 0, 0, 0, 15, 244, 0, 127, 240, 0, 0, 0, 0, 0, 0, 0, 15, 245, 0, 63, 240, 0, 0, 0, 0, 0, 0, 0, 13, 251, 0, 111, 240, 0, 0, 0, 0, 0, 0, 0, 8, 255, 128, 191, 192, 0, 0, 0, 0, 0, 0, 0, 0, 207, 249, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 12, 255, 251, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 175, 251, 0, 0, 0, 0, 0, 0, 14, 235, 96, 0, 9, 255, 192, 0, 0, 0, 0, 0, 46, 255, 254, 200, 32, 143, 248, 0, 0, 0, 0, 0, 0, 79, 255, 255, 48, 11, 253, 0, 0, 0, 0, 0, 0, 15, 246, 138, 0, 5, 255, 0, 0, 0, 0, 0, 0, 15, 242, 0, 0, 2, 255, 0, 0, 0, 0, 0, 0, 15, 246, 0, 0, 7, 255, 0, 0, 0, 0, 0, 0, 12, 252, 0, 0, 13, 252, 0, 0, 0, 0, 0, 0, 7, 255, 180, 5, 207, 246, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 0, 7, 223, 255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128, 0, 0, 0, 0, 0, 0, 0, 44, 255, 255, 255, 252, 32, 0, 0, 0, 0, 0, 0, 223, 253, 114, 124, 255, 209, 0, 0, 0, 0, 0, 10, 255, 250, 0, 0, 159, 250, 0, 0, 0, 0, 0, 47, 255, 255, 48, 0, 11, 255, 32, 0, 0, 0, 0, 159, 252, 255, 176, 0, 2, 255, 144, 0, 0, 0, 0, 207, 242, 223, 243, 0, 0, 191, 208, 0, 0, 0, 0, 239, 176, 127, 251, 0, 0, 143, 224, 0, 0, 0, 0, 255, 128, 13, 255, 48, 0, 95, 240, 0, 0, 0, 0, 255, 64, 7, 255, 176, 0, 47, 240, 0, 0, 0, 0, 255, 32, 0, 223, 244, 0, 79, 240, 0, 0, 0, 0, 239, 80, 0, 111, 251, 0, 127, 224, 0, 0, 0, 0, 207, 128, 0, 13, 255, 64, 191, 208, 0, 0, 0, 0, 159, 192, 0, 6, 255, 176, 239, 160, 0, 0, 0, 0, 47, 243, 0, 0, 207, 250, 255, 48, 0, 0, 0, 0, 9, 251, 0, 0, 111, 255, 250, 0, 0, 0, 0, 0, 0, 207, 128, 0, 12, 255, 209, 0, 0, 0, 0, 0, 0, 28, 251, 48, 76, 253, 32, 0, 0, 0, 0, 0, 0, 0, 141, 255, 253, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 206, 255, 254, 218, 64, 0, 0, 0, 0, 0, 0, 159, 233, 99, 106, 239, 249, 0, 0, 0, 0, 0, 7, 253, 32, 0, 0, 27, 249, 0, 0, 0, 0, 0, 13, 247, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 15, 244, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 254, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 239, 252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 255, 253, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, 255, 211, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 255, 254, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 255, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 239, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 78, 255, 247, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 223, 255, 48, 0, 0, 0, 0, 207, 255, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 127, 255, 255, 213, 0, 0, 0, 0, 0, 0, 0, 0, 4, 122, 223, 255, 144, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 207, 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 208, 0, 0, 0, 0, 0, 0, 8, 223, 255, 218, 45, 247, 0, 0, 0, 0, 0, 3, 223, 182, 37, 174, 234, 251, 0, 0, 0, 0, 0, 13, 249, 0, 0, 2, 223, 253, 0, 0, 0, 0, 0, 159, 192, 0, 0, 0, 13, 255, 0, 0, 0, 0, 0, 223, 128, 0, 0, 0, 5, 255, 0, 0, 0, 0, 0, 255, 64, 0, 0, 0, 1, 255, 0, 0, 0, 0, 0, 255, 32, 0, 0, 0, 4, 255, 0, 0, 0, 0, 0, 255, 96, 0, 0, 0, 8, 254, 0, 0, 0, 0, 0, 207, 160, 0, 0, 0, 12, 251, 0, 0, 0, 0, 0, 127, 226, 0, 0, 0, 95, 245, 0, 0, 0, 0, 0, 11, 253, 16, 0, 1, 223, 160, 0, 0, 0, 0, 0, 0, 175, 231, 0, 125, 250, 0, 0, 0, 0, 0, 0, 0, 6, 206, 255, 236, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 222, 255, 237, 128, 0, 0, 0, 0, 0, 0, 2, 223, 199, 67, 123, 253, 32, 0, 0, 0, 0, 0, 12, 249, 0, 0, 0, 159, 192, 0, 0, 0, 0, 0, 15, 243, 0, 0, 0, 63, 240, 0, 0, 0, 0, 0, 15, 251, 0, 0, 0, 191, 240, 0, 0, 0, 0, 0, 12, 255, 196, 0, 76, 255, 192, 0, 0, 0, 0, 0, 2, 223, 255, 188, 255, 254, 48, 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, 177, 0, 0, 0, 0, 0, 0, 0, 9, 239, 237, 254, 144, 0, 0, 0, 0, 0, 0, 5, 223, 233, 16, 125, 253, 80, 0, 0, 0, 0, 0, 94, 251, 32, 0, 0, 175, 228, 0, 0, 0, 0, 0, 207, 176, 0, 0, 0, 10, 253, 0, 0, 0, 0, 0, 255, 64, 0, 0, 0, 4, 255, 0, 0, 0, 0, 0, 255, 80, 0, 0, 0, 5, 255, 0, 0, 0, 0, 0, 223, 208, 0, 0, 0, 12, 253, 0, 0, 0, 0, 0, 127, 254, 147, 0, 57, 239, 247, 0, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 58, 223, 255, 253, 162, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 255, 253, 144, 0, 0, 0, 0, 0, 0, 0, 28, 255, 255, 255, 253, 48, 0, 0, 0, 0, 0, 0, 191, 252, 98, 107, 255, 208, 0, 0, 0, 0, 0, 6, 255, 144, 0, 0, 127, 250, 0, 0, 0, 0, 0, 12, 253, 0, 0, 0, 11, 254, 0, 0, 0, 0, 0, 14, 249, 0, 0, 0, 6, 255, 0, 0, 0, 0, 0, 15, 245, 0, 0, 0, 2, 255, 0, 0, 0, 0, 0, 15, 242, 0, 0, 0, 4, 254, 0, 0, 0, 0, 0, 15, 249, 0, 0, 0, 9, 252, 0, 0, 0, 0, 0, 14, 255, 144, 0, 0, 62, 245, 0, 0, 0, 0, 0, 13, 251, 253, 132, 56, 239, 128, 0, 0, 0, 0, 0, 11, 252, 59, 239, 254, 197, 0, 0, 0, 0, 0, 0, 6, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 228, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 254, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 255, 250, 32, 0, 0,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, 0, 0, 0, 0, 0, 239, 82, 253, 0, 31, 242, 255, 0, 0, 0, 0, 0, 207, 144, 254, 0, 63, 243, 255, 0, 0, 0, 0, 0, 143, 177, 255, 80, 127, 230, 254, 0, 0, 0, 0, 0, 13, 247, 255, 212, 223, 169, 252, 0, 0, 0, 0, 0, 4, 223, 249, 223, 251, 13, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 224, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 239, 112, 0, 0, 0, 0, 0, 0, 11, 166, 53, 175, 248, 0, 0, 0, 0, 0, 0, 0, 44, 239, 255, 235, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 255, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 255, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 252, 252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, 231, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 192, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 239, 128, 207, 176, 0, 0, 0, 0, 0, 0, 0, 6, 255, 48, 175, 224, 0, 0, 0, 0, 0, 0, 0, 11, 253, 0, 95, 244, 0, 0, 0, 0, 0, 0, 0, 13, 251, 0, 14, 250, 0, 0, 0, 0, 0, 0, 0, 79, 247, 0, 12, 253, 0, 0, 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 32, 0, 0, 0, 0, 0, 0, 223, 144, 0, 0, 223, 128, 0, 0, 0, 0, 0, 1, 255, 64, 0, 0, 175, 192, 0, 0, 0, 0, 0, 8, 254, 0, 0, 0, 111, 224, 0, 0, 0, 0, 0, 11, 252, 0, 0, 0, 15, 246, 0, 0, 0, 0, 0, 14, 249, 0, 0, 0, 12, 251, 0, 0, 0, 0, 0, 95, 243, 0, 0, 0, 10, 254, 0, 0, 0, 0, 0, 175, 224, 0, 0, 0, 5, 255, 64, 0, 0, 0, 0, 223, 176, 0, 0, 0, 0, 239, 144, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 74, 222, 255, 255, 237, 0, 0, 0, 0, 0, 0, 9, 254, 148, 0, 4, 255, 0, 0, 0, 0, 0, 0, 159, 209, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 239, 96, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 255, 48, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 239, 128, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 175, 230, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 11, 255, 201, 100, 16, 255, 0, 0, 0, 0, 0, 0, 3, 191, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 143, 253, 167, 81, 0, 255, 0, 0, 0, 0, 0, 6, 255, 144, 0, 0, 0, 255, 0, 0, 0, 0, 0, 12, 251, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 245, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 243, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 247, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 13, 252, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 7, 255, 160, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 191, 253, 148, 0, 0, 255, 0, 0, 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 58, 222, 255, 255, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 173, 239, 254, 201, 0, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, 231, 0, 0, 0, 0, 0, 0, 11, 217, 48, 5, 191, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 239, 246, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 224, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 224, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 253, 0, 0, 0, 0, 0, 6, 0, 0, 0, 3, 223, 246, 0, 0, 0, 0, 0, 175, 216, 32, 5, 175, 255, 128, 0, 0, 0, 0, 0, 191, 255, 255, 255, 255, 231, 0, 0, 0, 0, 0, 0, 5, 189, 255, 254, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 173, 239, 255, 254, 192, 0, 0, 0, 0, 0, 3, 207, 255, 255, 255, 255, 240, 0, 0, 0, 0, 0, 94, 255, 217, 80, 0, 47, 240, 0, 0, 0, 0, 4, 239, 231, 0, 0, 0, 15, 240, 0, 0, 0, 0, 12, 254, 64, 0, 0, 0, 15, 240, 0, 0, 0, 0, 111, 247, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 191, 208, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 239, 144, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 96, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 48, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 48, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 96, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 239, 128, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 207, 192, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 143, 244, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 14, 253, 16, 0, 0, 0, 15, 240, 0, 0, 0, 0, 7, 255, 212, 0, 0, 0, 15, 240, 0, 0, 0, 0, 0, 159, 255, 200, 48, 0, 15, 240, 0, 0, 0, 0, 0, 7, 239, 255, 255, 255, 255, 240, 0, 0, 0, 0, 0, 0, 7, 189, 239, 255, 254, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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95, 240, 0, 0, 0, 0, 255, 255, 255, 0, 0, 0, 63, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 63, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 111, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 159, 208, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 223, 176, 0, 0, 0, 0, 255, 0, 0, 0, 0, 6, 255, 96, 0, 0, 0, 0, 255, 0, 0, 0, 0, 30, 253, 0, 0, 0, 0, 0, 255, 16, 0, 0, 3, 223, 245, 0, 0, 0, 0, 0, 255, 234, 80, 4, 175, 255, 128, 0, 0, 0, 0, 0, 110, 255, 255, 255, 255, 231, 0, 0, 0, 0, 0, 0, 0, 140, 239, 255, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 255, 192, 0, 0, 0, 15, 240, 0, 0, 0, 0, 0, 159, 251, 0, 0, 0, 15, 240, 0, 0, 0, 0, 0, 9, 255, 160, 0, 0, 15, 240, 0, 0, 0, 0, 0, 0, 175, 249, 0, 0, 15, 240, 0, 0, 0, 0, 0, 0, 11, 255, 144, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 191, 248, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 12, 255, 112, 15, 240, 0, 0, 0, 0, 0, 0, 0, 2, 255, 246, 15, 240, 0, 0, 0, 0, 0, 0, 0, 11, 255, 254, 95, 240, 0, 0, 0, 0, 0, 0, 0, 95, 252, 239, 239, 240, 0, 0, 0, 0, 0, 0, 0, 223, 226, 78, 255, 240, 0, 0, 0, 0, 0, 0, 9, 255, 128, 4, 239, 240, 0, 0, 0, 0, 0, 0, 62, 253, 0, 0, 79, 240, 0, 0, 0, 0, 0, 0, 191, 244, 0, 0, 15, 240, 0, 0, 0, 0, 0, 6, 255, 160, 0, 0, 15, 240, 0, 0, 0, 0, 0, 13, 254, 0, 0, 0, 15, 240, 0, 0, 0, 0, 0, 159, 247, 0, 0, 0, 15, 240, 0, 0, 0, 0, 3, 255, 192, 0, 0, 0, 15, 240, 0, 0, 0, 0, 12, 255, 48, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 143, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
18,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 242, 0, 0, 0, 79, 255, 0, 0, 0, 0, 0, 255, 248, 0, 0, 0, 159, 255, 0, 0, 0, 0, 0, 255, 251, 0, 0, 0, 207, 255, 0, 0, 0, 0, 0, 255, 253, 0, 0, 0, 239, 255, 0, 0, 0, 0, 0, 255, 255, 32, 0, 4, 255, 255, 0, 0, 0, 0, 0, 255, 223, 128, 0, 9, 253, 255, 0, 0, 0, 0, 0, 255, 191, 176, 0, 12, 250, 255, 0, 0, 0, 0, 0, 255, 127, 224, 0, 14, 246, 255, 0, 0, 0, 0, 0, 255, 15, 243, 0, 95, 240, 255, 0, 0, 0, 0, 0, 255, 13, 248, 0, 175, 208, 255, 0, 0, 0, 0, 0, 255, 11, 251, 0, 223, 160, 255, 0, 0, 0, 0, 0, 255, 7, 254, 0, 255, 96, 255, 0, 0, 0, 0, 0, 255, 1, 255, 54, 255, 0, 255, 0, 0, 0, 0, 0, 255, 0, 223, 138, 253, 0, 255, 0, 0, 0, 0, 0, 255, 0, 191, 205, 250, 0, 255, 0, 0, 0, 0, 0, 255, 0, 127, 239, 246, 0, 255, 0, 0, 0, 0, 0, 255, 0, 31, 255, 240, 0, 255, 0, 0, 0, 0, 0, 255, 0, 13, 255, 208, 0, 255, 0, 0, 0, 0, 0, 255, 0, 11, 255, 160, 0, 255, 0, 0, 0, 0, 0, 255, 0, 6, 221, 96, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 14, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 159, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 239, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 9, 255, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 14, 251, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 159, 244, 255, 0, 0, 0, 0, 0, 15, 240, 0, 1, 239, 176, 255, 0, 0, 0, 0, 0, 15, 240, 0, 10, 255, 48, 255, 0, 0, 0, 0, 0, 15, 240, 0, 47, 251, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 175, 242, 0, 255, 0, 0, 0, 0, 0, 15, 240, 2, 255, 160, 0, 255, 0, 0, 0, 0, 0, 15, 240, 11, 255, 32, 0, 255, 0, 0, 0, 0, 0, 15, 240, 63, 250, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 191, 225, 0, 0, 255, 0, 0, 0, 0, 0, 15, 244, 255, 144, 0, 0, 255, 0, 0, 0, 0, 0, 15, 251, 254, 16, 0, 0, 255, 0, 0, 0, 0, 0, 15, 255, 249, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 255, 224, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 255, 144, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 254, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 255, 253, 128, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 255, 252, 16, 0, 0, 0, 0, 0, 0, 207, 251, 48, 58, 255, 192, 0, 0, 0, 0, 0, 8, 255, 128, 0, 0, 111, 249, 0, 0, 0, 0, 0, 14, 251, 0, 0, 0, 9, 254, 0, 0, 0, 0, 0, 143, 243, 0, 0, 0, 0, 239, 128, 0, 0, 0, 0, 207, 192, 0, 0, 0, 0, 191, 192, 0, 0, 0, 0, 239, 144, 0, 0, 0, 0, 143, 224, 0, 0, 0, 0, 255, 80, 0, 0, 0, 0, 95, 240, 0, 0, 0, 0, 255, 48, 0, 0, 0, 0, 47, 240, 0, 0, 0, 0, 255, 48, 0, 0, 0, 0, 47, 240, 0, 0, 0, 0, 255, 80, 0, 0, 0, 0, 95, 240, 0, 0, 0, 0, 239, 128, 0, 0, 0, 0, 143, 224, 0, 0, 0, 0, 207, 176, 0, 0, 0, 0, 207, 192, 0, 0, 0, 0, 143, 224, 0, 0, 0, 2, 255, 128, 0, 0, 0, 0, 14, 250, 0, 0, 0, 10, 254, 0, 0, 0, 0, 0, 9, 255, 96, 0, 0, 127, 249, 0, 0, 0, 0, 0, 0, 207, 250, 48, 58, 255, 192, 0, 0, 0, 0, 0, 0, 28, 255, 255, 255, 252, 32, 0, 0, 0, 0, 0, 0, 0, 141, 255, 253, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
18,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 255, 253, 128, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 255, 252, 16, 0, 0, 0, 0, 0, 0, 207, 251, 48, 58, 255, 192, 0, 0, 0, 0, 0, 8, 255, 128, 0, 0, 111, 249, 0, 0, 0, 0, 0, 14, 251, 0, 0, 0, 9, 254, 0, 0, 0, 0, 0, 127, 242, 0, 0, 0, 0, 239, 128, 0, 0, 0, 0, 207, 192, 0, 0, 0, 0, 191, 192, 0, 0, 0, 0, 239, 144, 0, 0, 0, 0, 143, 224, 0, 0, 0, 0, 255, 80, 0, 0, 0, 0, 95, 240, 0, 0, 0, 0, 255, 32, 0, 0, 0, 0, 47, 240, 0, 0, 0, 0, 255, 48, 0, 0, 0, 0, 63, 240, 0, 0, 0, 0, 255, 80, 0, 0, 0, 0, 95, 240, 0, 0, 0, 0, 239, 144, 0, 0, 0, 0, 159, 224, 0, 0, 0, 0, 207, 192, 0, 0, 0, 0, 207, 192, 0, 0, 0, 0, 143, 242, 0, 0, 0, 3, 255, 128, 0, 0, 0, 0, 30, 250, 0, 0, 0, 11, 254, 0, 0, 0, 0, 0, 9, 255, 128, 0, 0, 159, 248, 0, 0, 0, 0, 0, 0, 207, 251, 99, 108, 255, 176, 0, 0, 0, 0, 0, 0, 28, 255, 255, 255, 251, 0, 0, 0, 0, 0, 0, 0, 0, 141, 255, 252, 112, 0, 0, 0, 0, 0, 0, 0, 0, 2, 239, 160, 0, 0, 0, 0, 0, 0, 0, 0, 54, 174, 255, 80, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 249, 0, 0, 0, 0, 0, 0, 0, 0, 6, 255, 235, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
18,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 222, 255, 255, 237, 192, 0, 0, 0, 0, 0, 60, 253, 148, 0, 0, 79, 240, 0, 0, 0, 0, 2, 239, 160, 0, 0, 0, 15, 240, 0, 0, 0, 0, 11, 252, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 14, 247, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 15, 243, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 15, 244, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 14, 249, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 10, 254, 48, 0, 0, 0, 15, 240, 0, 0, 0, 0, 0, 239, 231, 0, 0, 0, 15, 240, 0, 0, 0, 0, 0, 78, 255, 219, 134, 49, 31, 240, 0, 0, 0, 0, 0, 1, 191, 253, 239, 255, 255, 240, 0, 0, 0, 0, 0, 0, 223, 208, 0, 0, 15, 240, 0, 0, 0, 0, 0, 9, 255, 112, 0, 0, 15, 240, 0, 0, 0, 0, 0, 63, 252, 0, 0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, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 255, 32, 0, 0, 0, 1, 255, 0, 0, 0, 0, 0, 255, 64, 0, 0, 0, 4, 255, 0, 0, 0, 0, 0, 255, 112, 0, 0, 0, 7, 255, 0, 0, 0, 0, 0, 223, 160, 0, 0, 0, 9, 253, 0, 0, 0, 0, 0, 191, 208, 0, 0, 0, 13, 251, 0, 0, 0, 0, 0, 127, 246, 0, 0, 0, 95, 246, 0, 0, 0, 0, 0, 13, 254, 32, 0, 1, 223, 208, 0, 0, 0, 0, 0, 6, 255, 231, 0, 125, 255, 80, 0, 0, 0, 0, 0, 0, 143, 255, 255, 255, 247, 0, 0, 0, 0, 0, 0, 0, 5, 206, 255, 235, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 255, 128, 0, 0, 0, 0, 207, 208, 0, 0, 0, 0, 223, 192, 0, 0, 0, 1, 255, 144, 0, 0, 0, 0, 175, 224, 0, 0, 0, 8, 255, 48, 0, 0, 0, 0, 79, 246, 0, 0, 0, 12, 253, 0, 0, 0, 0, 0, 14, 251, 0, 0, 0, 14, 250, 0, 0, 0, 0, 0, 11, 254, 0, 0, 0, 111, 244, 0, 0, 0, 0, 0, 6, 255, 80, 0, 0, 191, 224, 0, 0, 0, 0, 0, 0, 239, 160, 0, 0, 239, 176, 0, 0, 0, 0, 0, 0, 191, 208, 0, 5, 255, 96, 0, 0, 0, 0, 0, 0, 127, 243, 0, 10, 254, 0, 0, 0, 0, 0, 0, 0, 15, 249, 0, 13, 251, 0, 0, 0, 0, 0, 0, 0, 12, 252, 0, 63, 247, 0, 0, 0, 0, 0, 0, 0, 8, 255, 16, 159, 240, 0, 0, 0, 0, 0, 0, 0, 2, 255, 128, 223, 192, 0, 0, 0, 0, 0, 0, 0, 0, 223, 193, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0, 159, 232, 255, 32, 0, 0, 0, 0, 0, 0, 0, 0, 63, 253, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 255, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 255, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 255, 128, 0, 0, 0, 0, 207, 192, 0, 0, 0, 0, 255, 144, 0, 0, 0, 0, 223, 176, 0, 0, 0, 0, 239, 176, 0, 0, 0, 0, 255, 144, 0, 0, 0, 0, 207, 192, 0, 0, 0, 2, 255, 112, 0, 0, 0, 0, 191, 208, 0, 0, 0, 6, 255, 64, 0, 0, 0, 0, 175, 224, 0, 0, 0, 9, 255, 0, 0, 0, 0, 0, 143, 240, 0, 239, 144, 10, 254, 0, 0, 0, 0, 0, 111, 243, 6, 255, 192, 12, 253, 0, 0, 0, 0, 0, 31, 247, 10, 255, 208, 13, 251, 0, 0, 0, 0, 0, 14, 249, 12, 255, 241, 14, 250, 0, 0, 0, 0, 0, 13, 250, 14, 255, 247, 31, 248, 0, 0, 0, 0, 0, 12, 251, 79, 255, 250, 111, 244, 0, 0, 0, 0, 0, 11, 253, 159, 252, 253, 143, 240, 0, 0, 0, 0, 0, 10, 254, 191, 217, 254, 175, 224, 0, 0, 0, 0, 0, 8, 255, 223, 181, 255, 207, 208, 0, 0, 0, 0, 0, 5, 255, 255, 128, 255, 255, 176, 0, 0, 0, 0, 0, 1, 255, 255, 48, 223, 255, 160, 0, 0, 0, 0, 0, 0, 239, 254, 0, 175, 255, 128, 0, 0, 0, 0, 0, 0, 223, 252, 0, 127, 255, 80, 0, 0, 0, 0, 0, 0, 207, 249, 0, 47, 255, 0, 0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 0, 143, 247, 0, 11, 254, 32, 0, 0, 0, 0, 0, 1, 239, 192, 0, 2, 239, 176, 0, 0, 0, 0, 0, 10, 255, 80, 0, 0, 159, 245, 0, 0, 0, 0, 0, 95, 251, 0, 0, 0, 13, 253, 0, 0, 0, 0, 0, 207, 226, 0, 0, 0, 7, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 192, 0, 0, 0, 13, 254, 0, 0, 0, 0, 0, 159, 243, 0, 0, 0, 95, 249, 0, 0, 0, 0, 0, 14, 250, 0, 0, 0, 191, 224, 0, 0, 0, 0, 0, 10, 254, 0, 0, 2, 255, 160, 0, 0, 0, 0, 0, 2, 255, 128, 0, 9, 255, 32, 0, 0, 0, 0, 0, 0, 191, 208, 0, 14, 251, 0, 0, 0, 0, 0, 0, 0, 79, 245, 0, 127, 244, 0, 0, 0, 0, 0, 0, 0, 12, 251, 0, 207, 192, 0, 0, 0, 0, 0, 0, 0, 6, 255, 36, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 223, 171, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 238, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 108, 239, 255, 237, 255, 0, 0, 0, 0, 0, 0, 10, 254, 128, 3, 158, 255, 0, 0, 0, 0, 0, 0, 175, 209, 0, 0, 0, 255, 0, 0, 0, 0, 0, 5, 255, 48, 0, 0, 0, 255, 0, 0, 0, 0, 0, 12, 251, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 14, 247, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 244, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 242, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 246, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 13, 250, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 8, 253, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 223, 144, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 78, 248, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 4, 223, 198, 0, 24, 255, 0, 0, 0, 0, 0, 0, 0, 7, 206, 255, 254, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 189, 255, 255, 218, 32, 0, 0, 0, 0, 0, 0, 15, 250, 99, 72, 207, 231, 0, 0, 0, 0, 0, 0, 15, 240, 0, 0, 7, 255, 112, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 143, 225, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 13, 249, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 10, 253, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 6, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 4, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 2, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 4, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 8, 253, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 12, 248, 0, 0, 0, 0, 0, 15, 247, 0, 0, 0, 143, 208, 0, 0, 0, 0, 0, 15, 255, 198, 0, 75, 252, 32, 0, 0, 0, 0, 0, 15, 252, 239, 255, 236, 128, 0, 0, 0, 0, 0, 0, 14, 244, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 252, 32, 0, 0, 0, 80, 0, 0, 0, 0, 0, 4, 255, 234, 99, 55, 174, 246, 0, 0, 0, 0, 0, 0, 110, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 157, 239, 255, 235, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 9, 223, 254, 199, 0, 255, 0, 0, 0, 0, 0, 0, 207, 255, 255, 255, 176, 255, 0, 0, 0, 0, 0, 9, 255, 163, 1, 141, 252, 255, 0, 0, 0, 0, 0, 13, 251, 0, 0, 0, 159, 255, 0, 0, 0, 0, 0, 15, 246, 0, 0, 0, 10, 255, 0, 0, 0, 0, 0, 15, 241, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 15, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 246, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 239, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 251, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 223, 252, 168, 101, 50, 0, 0, 0, 0, 0, 0, 0, 5, 172, 238, 255, 255, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 125, 220, 80, 0, 0, 0, 255, 0, 0, 0, 0, 0, 8, 255, 247, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 110, 255, 144, 0, 0, 255, 0, 0, 0, 0, 0, 0, 4, 223, 252, 16, 0, 255, 0, 0, 0, 0, 0, 0, 0, 28, 255, 212, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 223, 254, 96, 255, 0, 0, 0, 0, 0, 0, 0, 9, 255, 255, 249, 255, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 223, 232, 8, 239, 213, 255, 0, 0, 0, 0, 0, 11, 255, 255, 143, 255, 254, 255, 0, 0, 0, 0, 0, 14, 250, 62, 255, 208, 94, 255, 0, 0, 0, 0, 0, 15, 244, 7, 255, 112, 8, 255, 0, 0, 0, 0, 0, 15, 241, 2, 255, 48, 3, 255, 0, 0, 0, 0, 0, 15, 240, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 15, 240, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 255, 255, 238, 180, 0, 0, 0, 0, 0, 0, 0, 59, 114, 0, 23, 238, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 255, 240, 0, 0, 0, 0, 0, 0, 0, 2, 174, 255, 255, 208, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, 253, 64, 0, 0, 0, 0, 0, 0, 45, 255, 255, 253, 128, 0, 0, 0, 0, 0, 0, 0, 191, 255, 235, 80, 0, 0, 0, 0, 0, 0, 0, 0, 255, 232, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 232, 16, 5, 157, 226, 0, 0, 0, 0, 0, 0, 62, 255, 255, 255, 255, 249, 0, 0, 0, 0, 0, 0, 2, 174, 255, 255, 219, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 0, 8, 255, 224, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 224, 0, 255, 160, 7, 255, 64, 0, 0, 0, 0, 159, 240, 5, 255, 192, 9, 255, 0, 0, 0, 0, 0, 127, 243, 8, 255, 224, 11, 253, 0, 0, 0, 0, 0, 63, 246, 11, 255, 240, 12, 252, 0, 0, 0, 0, 0, 15, 248, 13, 254, 246, 13, 250, 0, 0, 0, 0, 0, 13, 250, 14, 251, 249, 14, 247, 0, 0, 0, 0, 0, 12, 251, 79, 217, 251, 15, 243, 0, 0, 0, 0, 0, 10, 252, 143, 198, 253, 95, 240, 0, 0, 0, 0, 0, 9, 253, 175, 160, 254,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 224, 0, 0, 0, 12, 254, 0, 0, 0, 0, 0, 63, 247, 0, 0, 0, 63, 250, 0, 0, 0, 0, 0, 12, 252, 0, 0, 0, 175, 242, 0, 0, 0, 0, 0, 8, 255, 32, 0, 0, 239, 192, 0, 0, 0, 0, 0, 0, 239, 144, 0, 7, 255, 80, 0, 0, 0, 0, 0, 0, 191, 208, 0, 12, 253, 0, 0, 0, 0, 0, 0, 0, 95, 244, 0, 79, 248, 0, 0, 0, 0, 0, 0, 0, 13, 250, 0, 175, 224, 0, 0, 0, 0, 0, 0, 0, 9, 254, 0, 239, 160, 0, 0, 0, 0, 0, 0, 0, 2, 255, 104, 255, 48, 0, 0, 0, 0, 0, 0, 0, 0, 207, 189, 252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 255, 246, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 255, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, 144, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 221, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 254, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 255, 255, 80, 0, 0, 0, 0, 0, 0, 0, 0, 4, 122, 255, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 144, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 252, 132, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 223, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 239, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, 253, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 144, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 240, 0, 0, 0, 0, 0, 0, 0, 0, 4, 121, 239, 208, 0, 0, 0, 0, 0, 0, 0, 0, 8, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 5, 254, 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
};
| [
"matt@majenko.co.uk"
] | matt@majenko.co.uk |
ef1d86b788b36953ed1813ff4046667e2b0ec977 | 35780b02ad20850b3df9ab642553c1bdae14bc80 | /AsciiGameV2/AsciiGameV2/Headers/Vector2.h | 94c40543c703208ec83b77e751fabcecff29195e | [] | no_license | Kraghan/AsciiGame | 38f1b4878ba6c471725684ee95cc5cd294c8842d | f53c67e03e818ca2f91c45914255a448f9ee1e26 | refs/heads/master | 2021-09-02T03:14:24.624175 | 2017-12-29T21:58:20 | 2017-12-29T21:58:20 | 105,511,369 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 978 | h | #pragma once
template <typename T>
class Vector2
{
public:
T x;
T y;
explicit Vector2(void);
explicit Vector2(T xx, T yy);
virtual ~Vector2(void);
};
template <typename T>
Vector2<T> operator* (Vector2<T> const& type1, T const& type2);
template <typename T>
Vector2<T> operator* (T const& type1, Vector2<T> const& type2);
template <typename T>
Vector2<T> operator/ (Vector2<T> const& type1, T const& type2);
template <typename T>
Vector2<T> operator- (Vector2<T> const& type1, Vector2<T> const& type2);
template <typename T>
Vector2<T> operator+ (Vector2<T> const& type1, Vector2<T> const& type2);
template <typename T>
Vector2<T> operator* (Vector2<T> const& type1, Vector2<T> const& type2);
template <typename T>
bool operator== (Vector2<T> const& type1, Vector2<T> const& type2);
#include "../Inlines/Vector2.inl"
typedef Vector2<int> Vector2i;
typedef Vector2<float> Vector2f;
typedef Vector2<unsigned int> Vector2ui;
typedef Vector2<double> Vector2d; | [
"madjojo70@live.fr"
] | madjojo70@live.fr |
b92fb66c77cb4c483849ed445e6f5454e773e157 | 4d970b256d83615117e3ffb714f2fee19de2a0cd | /C++做足一百/qz88-TEXT_EDITOR/LINE.CPP | 87f303f7884fc6c52f77a4ca3e54aeeb65526e8e | [] | no_license | liyvwen/CollegeProgram | 10519770af386032a9dc76f5c8927005b6e45a03 | a95c1e7d3794337aa08602d2ecae0ce33b771089 | refs/heads/master | 2021-05-28T07:40:28.733594 | 2014-03-24T15:37:44 | 2014-03-24T15:37:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,702 | cpp | #include <iostream>
using namespace std;
#include "LINE.H"
LINE::LINE(int line_size)
{
if(line_size <= 0)
{
line_size = INIT_LINE_SIZE;
}
this->line_size = line_size;
line_length = 0;
str = new MyString(this->line_size);
}
LINE::LINE(const LINE& x)
{
line_size = x.line_size;
line_length = x.line_length;
str = new MyString(line_size);
*str = *(x.str);
}
LINE::~LINE()
{
delete [] str;
}
const LINE& LINE::operator =(const LINE& x)
{
if(this != &x)
{
line_size = x.line_size;
line_length = x.line_length;
*str = *(x.str);
}
return *this;
}
void LINE::Input()
{
char c;
line_length = 0;
do
{
c = cin.get();
if(c != '\n')
{
str->Append(c);
line_length ++;
}
}
while(c != '\n' && !IsFull());
cin.sync();
}
void LINE::Append(char c)
{
if(!IsFull() && c != '\n')
{
str->Append(c);
line_length ++;
}
}
/*
istream& operator >>(istream& in, const LINE& x)
{
char c;
UINT i = 0;
while(c = getchar(), c!= '\n' && i < length)
{
line.Append(c);
}
}
*/
void LINE::Output()const
{
str->Output();
cout << endl;
}
/*
ostream& operator <<(ostream& out, const LINE& x)
{
line.Output();
cout << endl;
}
*/
UINT LINE::Length()const
{
return line_length;
}
char LINE::operator[](int pos)const
{
return (*str)[pos];
}
bool LINE::IsFull()const
{
return line_length == line_size;
}
bool LINE::IsEmpty()const
{
return line_length == 0;
}
void LINE::Clear()
{
line_length = 0;
}
| [
"CharellkingQu@gmail.com"
] | CharellkingQu@gmail.com |
e34427a9c9bdac75f005f4bd54c97495d00506c8 | c3a0f82e6d0fb3e8fb49afc042560e5787e42141 | /codeforces/468/B.cpp | ad52d534a2eeeba51ebe0a14bd86ae5b8c40fa6f | [] | no_license | SahajGupta11/Codeforces-submissions | 04abcd8b0632e7cdd2748d8b475eed152d00ed1b | 632f87705ebe421f954a59d99428e7009d021db1 | refs/heads/master | 2023-02-05T08:06:53.500395 | 2019-09-18T16:16:00 | 2020-12-22T14:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,875 | cpp | #include <bits/stdc++.h>
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
// #define int long long
using namespace std;
#define e "\n"
#define endl "\n"
#define Tp template<class T>
#define Tp2 template<class T1, class T2>
#define Tps template<class T, class... Ts>
#define Tps2 template<class T1, class T2, class... Ts>
#define ff first
#define ss second
#define rev(Aa) reverse(Aa.begin(),Aa.end())
#define all(Aa) Aa.begin(),Aa.end()
#define lb lower_bound
#define ub upper_bound
#define rsz resize
#define ins insert
#define mp make_pair
#define pb emplace_back
#define pf push_front
#define popb pop_back
#define popf pop_front
#define sz(Xx) (int)(Xx).size()
typedef long long ll;
typedef long double ld;
typedef double db;
using pii = pair<int, int>;
const int MOD = 1000000007; //1e9 + 7
const int INF = 2000000000; //2e9
const ll DESPACITO = 1000000000000000000; //1e18
namespace minmax {
Tp T max(T&& A) { return A; }
Tp T min(T&& A) { return A; }
Tp T max(T&& A, T&& B) { return A>B?A:B; }
Tp T chmin2(T&& A, T&& B) { return A<B?A:B; }
Tps T max(T&& A, Ts&&... ts) { T B = max(ts...); return A>B?A:B; }
Tps T min(T&& A, Ts&&... ts) { T B = min(ts...); return A<B?A:B; }
Tps T chmax(T&& A, Ts&&... ts) { A = max(A, ts...); return A; }
Tps T chmin(T&& A, Ts&&... ts) { A = min(A, ts...); return A; }
Tp2 void chmin2(T1&& A, T2&& Aa, T1&& B, T2&& Bb) { if(B < A) A = B, Aa = Bb; }
Tp2 void chmax2(T1&& A, T2&& Aa, T1&& B, T2&& Bb) { if(B > A) A = B, Aa = Bb; }
}
namespace input {
Tp void re(T&& Xx) { cin >> Xx; }
Tp2 void re(pair<T1,T2>& Pp) { re(Pp.first); re(Pp.second); }
Tp void re(vector<T>& Aa) { for(int i = 0; i < sz(Aa); i++) re(Aa[i]); }
Tp2 void rea(T1&& Aa, T2 t) { for(int i = 0; i < t; i++) re(Aa[i]); }
Tps2 void rea(T1&& Aa, T2 t, Ts&&... ts) { rea(Aa, t); rea(ts...); }
Tp2 void rea1(T1&& Aa, T2 t) { for(int i = 1; i <= t; i++) re(Aa[i]); }
Tps2 void rea1(T1&& Aa, T2 t, Ts&... ts) { rea1(Aa, t); rea1(ts...); }
Tps void re(T&& t, Ts&... ts) { re(t); re(ts...); }
}
namespace output {
void pr(int32_t Xx) { cout << Xx; }
// void pr(num Xx) { cout << Xx; }
void pr(bool Xx) { cout << Xx; }
void pr(long long Xx) { cout << Xx; }
void pr(long long unsigned Xx) { cout << Xx; }
void pr(double Xx) { cout << Xx; }
void pr(char Xx) { cout << Xx; }
void pr(const string& Xx) { cout << Xx; }
void pr(const char* Xx) { cout << Xx; }
void pr(const char* Xx, size_t len) { cout << string(Xx, len); }
void ps() { cout << endl; }
void pn() { /*do nothing*/ }
void pw() { pr(" "); }
void pc() { pr("]"); ps(); }
Tp2 void pr(const pair<T1,T2>& Xx) { pr(Xx.first); pw(); pr(Xx.second);}
Tp void pr(const T&);
bool parse(const char* t) { if(t == e) return true; return false;}
Tp bool parse(T&& t) { return false;}
Tp2 bool parsepair(const pair<T1,T2>& Xx) { return true; }
Tp bool parsepair(T&& t) { return false;}
Tp2 void psa(T1&& Aa, T2 t) { for(int i = 0; i < t; i++) pr(Aa[i]), pw(); ps(); }
Tp2 void pna(T1&& Aa, T2 t) { for(int i = 0; i < t; i++) pr(Aa[i]), ps(); }
Tp2 void psa2(T1&& Aa, T2 t1, T2 t2) { for(int i = 0; i < t1; i++) {for(int j = 0; j < t2; j++) pr(Aa[i][j]), pw(); ps();} }
Tp void pr(const T& Xx) { if(!sz(Xx)) return; bool fst = 1; bool op = 0; if (parsepair(*Xx.begin())) op = 1; for (const auto& Aa: Xx) {if(!fst) pw(); if(op) pr("{"); pr(Aa), fst = 0; if(op) pr("}"); } }
Tps void pr(const T& t, const Ts&... ts) { pr(t); pr(ts...); }
Tps void ps(const T& t, const Ts&... ts) { pr(t); if (sizeof...(ts)) {if (!parse(t)) pw(); } ps(ts...); }
Tp void pn(const T& t) { for (const auto& Aa: t) ps(Aa); }
Tps void pw(const T& t, const Ts&... ts) { pr(t); if (sizeof...(ts)) pw(); pw(ts...); }
Tps void pc(const T& t, const Ts&... ts) { bool op = 0; if (parsepair(t)) op = 1; if(op) pr("{"); pr(t); if(op) pr("}"); if (sizeof...(ts)) pr(", "); pc(ts...); }
namespace trace {
#define tr(Xx...) pr("[",#Xx,"] = ["), pc(Xx);
#define tra(Xx, y...) __f0(#Xx, Xx, y)
#define tran(Xx, n) __fn(n, #Xx, Xx) // TO DO~ variadic multidimensional
Tp2 void __f(const char* name, const T1& Xx, const T2& y){ pr("[",y,"] = "); ps(Xx); }
Tps2 void __f(const char* name, const T1& Xx, const T2& y, const Ts&... rest){ const char *open = strchr(name, '['); pr("[",y,"]"); __f(open+1, Xx, rest...); }
Tps2 void __f0(const char* name, const T1& Xx, const T2& y, const Ts&... rest){ const char *open = strchr(name, '['); pr(name, size_t(open-name)); __f(name, Xx, y, rest...); }
Tp void __fn(int n, const char* name, const T& Xx) { for(int i = 0; i < n; i++) pr(name), __f(name, Xx[i], i); }
}
}
using namespace minmax;
using namespace input;
using namespace output;
using namespace output::trace;
//mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const int N = 2e5 + 5;
int nums[N];
struct Two_SAT {
int n, m, sccount = 0; bool ok = 1;
vector<vector<int>> g, rg;
vector<int> comp, assignment;
vector<bool> vis;
stack<int> st;
Two_SAT (int _n) {
n = 2*_n;
vis.rsz(n);
comp.rsz(n);
g.rsz(n);
rg.rsz(n);
}
void addedge(int u, int v) {
g[u].pb(v);
rg[v].pb(u);
}
void dfs1(int v) {
vis[v] = 1;
for (auto x: g[v])
if (!vis[x]) dfs1(x);
st.push(v);
}
void dfs2(int v, int k) {
comp[v] = k;
for (auto& x: rg[v])
if(!comp[x]) dfs2(x, k);
}
// Kosaraju's SCC
void scc() {
int i;
for(i = 0; i < n; i++)
if(!vis[i]) dfs1(i);
while(!st.empty()) {
sccount++;
dfs2(st.top(), sccount);
while(!st.empty() and comp[st.top()]) st.pop();
}
}
bool is_sat() {
scc();
assignment.rsz(n);
for(int i = 0; i < n; i++) {
if(comp[i] == comp[i^1]) ok = 0;
assignment[i] = !(comp[i] > comp[i^1]);
}
return ok;
}
};
int32_t main() {
IOS;
int i, n, a, b;
re(n, a, b);
Two_SAT o(n);
map<int,int> idx;
for(i = 0; i < n; i++) {
re(nums[i]);
idx[nums[i]] = i;
}
for(i = 0; i < n; i++) {
int x = nums[i];
if(idx.count(a-x)) {
o.addedge(2*i, 2*idx[a-x]);
o.addedge(2*i^1, 2*idx[a-x]^1);
}
else
o.addedge(2*i, 2*i^1);
if(idx.count(b-x)) {
o.addedge(2*i, 2*idx[b-x]);
o.addedge(2*i^1, 2*idx[b-x]^1);
}
else
o.addedge(2*i^1, 2*i);
}
if(!o.is_sat())
return ps("NO"), 0;
ps("YES");
for(i = 0; i < n; i++)
pw(o.assignment[2*i]);
return 0;
} | [
"ghriday.bits@gmail.com"
] | ghriday.bits@gmail.com |
baca457dba63dd998840d52152445cb1fda70778 | 01f6085a563b8e080e615c4a71af20dc9d341195 | /include/instruction.h | c1021fd16241b0c09d0b61872ec617bc45e299ac | [
"Apache-2.0"
] | permissive | Chill-Language/ICM | 90f54aa69289fd06e956cbf69d441875bb6f3f47 | a0ee83e5bbd2aef216cc28faa5d5dad36c99d606 | refs/heads/master | 2022-04-07T11:07:44.255757 | 2019-05-06T13:42:44 | 2019-05-06T13:42:44 | 59,800,677 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 8,233 | h | #pragma once
#include "basic.h"
#include "parser/keyword.h"
#include "runtime/typebase.h"
#include "temp-getelement2.h"
namespace ICM
{
namespace Instruction
{
enum Instruction {
begin, end,
sing, // sing a
stor, // stor
list, // list ...
nop, // nop
pti, // pti ...
// Function
call, // call f.i args...
ccal, // ccal f args...
iadd,
isub,
imul,
idiv,
imod,
ilrl,
farg, // farg args... ; Ve(E) -> DL
fargl, // fargl args... ; DL
fargv, // fargv args... ; Ve(E) -> Ve(O*) -> DL
fsub, // fsub f, $
fsubr, // fsubr r, $
fsubv, // fsubv v, $
fcal, // fcal $, $
// Assign
let, // let V E
cpy, // cpy V E
ref, // ref V E
set, // set V E
cpys, // cpys E
refs, // refs E
//
inc, // inc E
dec, // dec E
// Jump
jump, // jump {i}
jmpf, // jmpf b {i}
jmpn, // jmpn b {i}
jmpc, // jmpc b {i} {j}
jpsm, jpse, jpla, jple, // jpxx a b {i}
// Compare
cpsm, cpse, cpla, cple, cpeq, cpne, // cpxx a b
// Calc
add, sub, mul, div, mod, rem, // xxx a b
// Varb
dim, // dim a type
rest, // rest a type
};
extern BijectionMap<Instruction, string> InstructionName;
}
string to_string(Instruction::Instruction inst);
namespace ASTBase
{
struct Element;
}
namespace Instruction
{
//=======================================
// * Struct Element
//=======================================
struct Element
{
private:
enum ElementType {
E_Void,
E_Literal,
E_Refer,
E_Ident,
E_Key,
};
public:
Element() = default;
Element(ElementType et, size_t id, size_t index)
: etype((uint8_t)et), stype((uint8_t)id), index(index) {}
Element(const Element&) = default;
// Static Function
static Element Literal(size_t type, size_t index) { return Element(E_Literal, type, index); }
static Element Refer(size_t index) { return Element(E_Refer, 0, index); }
static Element Keyword(Keyword::KeywordID key) { return Element(E_Key, key, 0); }
static Element Identifier(size_t index) { return Element(E_Ident, 0, index); }
static Element Identifier(IdentType type, size_t index) { return Element(E_Ident, type, index); }
// Judge
bool isLiteral() const { return isEltType(E_Literal); }
bool isRefer() const { return isEltType(E_Refer); }
bool isKeyword() const { return isEltType(E_Key); }
bool isIdent() const { return isEltType(E_Ident); }
bool isLiteralType(TypeUnit type) const { return isLiteral() && getSubType() == type; }
bool isIdentType(IdentType type) const { return isIdent() && getSubType() == type; }
// Get/Set Index
void setIndex(size_t id) { index = id; }
size_t getIndex() const { return index; }
// Get/Set
void setRefer(size_t id) { assert(isRefer()); setIndex(id); }
size_t getRefer() const { assert(isRefer()); return getIndex(); }
const IdentIndex& getIdentIndex() const { return reinterpret_cast<const IdentIndex&>(index); }
TypeUnit getLiteralType() const { assert(isLiteral()); return getSubType(); }
size_t getIndetType() const { assert(isIdent()); return getSubType(); }
Keyword::KeywordID getKeyword() const { assert(isKeyword()); return (Keyword::KeywordID)getSubType(); }
private:
union {
struct { uint8_t etype, stype; };
uint32_t type = 0;
};
uint_t index = 0;
private:
bool isEltType(ElementType et) const { return (ElementType)this->etype == et; }
size_t getSubType() const { return (size_t)this->stype; }
};
inline Element ConvertToInstElement(const ASTBase::Element &elt) {
return *(const Element*)(&elt);
}
inline vector<Element> ConvertToInstElement(const vector<ASTBase::Element> &elt) {
return *(const vector<Element>*)(&elt);
}
}
string to_string(const Instruction::Element &elt);
string to_string(const vector<Instruction::Element> &elt);
namespace Instruction
{
using FuncType = TypeBase::FunctionType;
class InstructionData
{
public:
InstructionData(Instruction inst)
: Inst(inst) {}
Instruction inst() const { return Inst; }
string to_string() const;
private:
Instruction Inst;
virtual string getToString() const { return ""; }
};
namespace Insts
{
template <Instruction _Inst>
struct InstDataBase : public InstructionData {
InstDataBase() : InstructionData(_Inst) {}
};
struct List : public InstDataBase<list>
{
vector<Element> Data;
private:
string getToString() const {
return ICM::to_string(Data);
}
};
struct CheckCall : public InstDataBase<ccal>
{
vector<Element> Data;
private:
string getToString() const {
return ICM::to_string(Data);
}
};
struct PrintIdent : public InstDataBase<pti>
{
vector<Element> Args;
private:
string getToString() const {
return ICM::to_string(Args);
}
};
/*
// FuncArgs
struct FuncArgs : public InstDataBase<farg>
{
vector<Element> Args;
private:
string getToString() const { return ICM::to_string(Args); }
};
struct FuncArgsLight : public InstDataBase<fargl>
{
DataList Args;
private:
string getToString() const { return Convert::to_string(Args.begin(), Args.end()); }
};
struct FuncArgsVary : public InstDataBase<fargv>
{
vector<Element> Args;
private:
string getToString() const { return ICM::to_string(Args); }
};
// FuncSub
struct FuncSub : public InstDataBase<fsub>
{
FuncType Func;
private:
string getToString() const { return ICM::to_string(Func) + ", $"; }
};
struct FuncSubVarb : public InstDataBase<fsubv>
{
Object* VFunc;
private:
string getToString() const { return VFunc->to_string() + ", $"; }
};
struct FuncSubRef : public InstDataBase<fsubr>
{
size_t RFunc;
private:
string getToString() const { return "{" + std::to_string(RFunc) + "}" + ", $"; }
};*/
struct FuncCall : public InstDataBase<fcal>
{
private:
string getToString() const { return "$, $"; }
};
struct Assign : public InstructionData
{
Assign(Instruction inst, const IdentIndex &VTUID, const Element &elt)
: InstructionData(inst), VTU(VTUID), Data(elt) {}
IdentIndex VTU;
Element Data;
private:
string getToString() const { return getIdentName(VTU) + ", " + ICM::to_string(Data); }
};
struct CopySingle : public InstDataBase<cpys>
{
CopySingle(const Element &Data) : Data(Data) {}
Element Data;
private:
string getToString() const { return ICM::to_string(Data); }
};
struct Store : public InstDataBase<stor>
{
Store(const Element &Data) : Data(Data) {}
Element Data;
private:
string getToString() const { return ICM::to_string(Data); }
};
struct JumpNot : public InstDataBase<jmpn>
{
Element Data;
size_t Index;
private:
string getToString() const {
return ICM::to_string(Data) + ", {" + std::to_string(Index) + "}";
}
};
struct Jump : public InstDataBase<jump>
{
size_t Index;
private:
string getToString() const {
return "{" + std::to_string(Index) + "}";
}
};
struct Inc : public InstDataBase<inc>
{
Inc(const IdentIndex &VTU) : VTU(VTU) {}
IdentIndex VTU;
private:
string getToString() const { return getIdentName(VTU); }
};
struct Compare : public InstructionData
{
Compare(Instruction inst, const IdentIndex &VTU, const Element &Data)
: InstructionData(inst), VTU(VTU), Data(Data) {}
IdentIndex VTU;
Element Data;
protected:
string getToString() const { return getIdentName(VTU) + ", " + ICM::to_string(Data); }
};
struct JumpCompare : public Compare
{
JumpCompare(Instruction inst, const IdentIndex &VTU, const Element &Data)
: Compare(inst, VTU, Data) {}
size_t Index;
private:
string getToString() const { return Compare::getToString() + ", {" + std::to_string(Index) + "}"; }
};
}
class InstructionList : public vector<InstructionData*>
{
public:
void push(Instruction inst) {
push_back(new InstructionData(inst));
}
void push(InstructionData *instdata) {
push_back(instdata);
}
private:
};
}
}
| [
"hanlengmowang@hotmail.com"
] | hanlengmowang@hotmail.com |
ef12076a5d608414dd2adb880eb72c55d0495d35 | 344d903970d7b4643a5de5467add9755f164cc4f | /ros2_ign_bridge/include/ros2_ign_bridge/factory.hpp | 449fb19f8569a1a93dbc016bbd7a9662523ae7ce | [
"Apache-2.0"
] | permissive | osrf/ros2_ign | 2b082cf94eb20e2f65e15611c13b6d1c1da4916e | 477218f57e07ba644b19dea180f402239dee8f33 | refs/heads/master | 2020-06-30T04:04:45.102480 | 2020-06-15T15:25:57 | 2020-06-15T15:25:57 | 200,718,849 | 6 | 0 | Apache-2.0 | 2020-06-15T15:25:04 | 2019-08-05T19:47:29 | C++ | UTF-8 | C++ | false | false | 3,907 | hpp | // Copyright 2019 Open Source Robotics Foundation, Inc.
//
// 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 writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef ROS2_IGN_BRIDGE__FACTORY_HPP_
#define ROS2_IGN_BRIDGE__FACTORY_HPP_
#include <ignition/transport/Node.hh>
// include ROS 2
#include <rclcpp/rclcpp.hpp>
#include <ros2_ign_bridge/factory_interface.hpp>
#include <functional>
#include <memory>
#include <string>
namespace ros2_ign_bridge
{
template<typename ROS2_T, typename IGN_T>
class Factory : public FactoryInterface
{
public:
Factory(
const std::string & ros2_type_name, const std::string & ign_type_name)
: ros2_type_name_(ros2_type_name),
ign_type_name_(ign_type_name)
{}
rclcpp::PublisherBase::SharedPtr
create_ros2_publisher(
rclcpp::Node::SharedPtr ros2_node,
const std::string & topic_name,
size_t queue_size)
{
std::shared_ptr<rclcpp::Publisher<ROS2_T>> publisher =
ros2_node->create_publisher<ROS2_T>(topic_name, rclcpp::QoS(rclcpp::KeepLast(queue_size)));
return publisher;
}
ignition::transport::Node::Publisher
create_ign_publisher(
std::shared_ptr<ignition::transport::Node> ign_node,
const std::string & topic_name)
{
return ign_node->Advertise<IGN_T>(topic_name);
}
rclcpp::SubscriptionBase::SharedPtr
create_ros2_subscriber(
rclcpp::Node::SharedPtr ros2_node,
const std::string & topic_name,
size_t queue_size,
ignition::transport::Node::Publisher & ign_pub)
{
std::function<void(std::shared_ptr<const ROS2_T>)> fn =
std::bind(&Factory<ROS2_T, IGN_T>::ros2_callback, std::placeholders::_1, ign_pub);
std::shared_ptr<rclcpp::Subscription<ROS2_T>> subscription =
ros2_node->create_subscription<ROS2_T>(
topic_name, rclcpp::QoS(rclcpp::KeepLast(queue_size)), fn);
return subscription;
}
void
create_ign_subscriber(
std::shared_ptr<ignition::transport::Node> node,
const std::string & topic_name,
rclcpp::PublisherBase::SharedPtr ros2_pub)
{
std::function<void(const IGN_T &,
const ignition::transport::MessageInfo &)> subCb =
[this, ros2_pub](const IGN_T & _msg,
const ignition::transport::MessageInfo & _info)
{
// Ignore messages that are published from this bridge.
if (!_info.IntraProcess()) {
this->ign_callback(_msg, ros2_pub);
}
};
node->Subscribe(topic_name, subCb);
}
protected:
static
void ros2_callback(
std::shared_ptr<const ROS2_T> ros2_msg,
ignition::transport::Node::Publisher & ign_pub)
{
IGN_T ign_msg;
convert_ros2_to_ign(*ros2_msg, ign_msg);
ign_pub.Publish(ign_msg);
}
static
void ign_callback(
const IGN_T & ign_msg,
rclcpp::PublisherBase::SharedPtr ros2_pub)
{
ROS2_T ros2_msg;
convert_ign_to_ros2(ign_msg, ros2_msg);
std::shared_ptr<rclcpp::Publisher<ROS2_T>> pub =
std::dynamic_pointer_cast<rclcpp::Publisher<ROS2_T>>(ros2_pub);
pub->publish(ros2_msg);
}
public:
// since convert functions call each other for sub messages they must be
// public defined outside of the class
static
void
convert_ros2_to_ign(
const ROS2_T & ros2_msg,
IGN_T & ign_msg);
static
void
convert_ign_to_ros2(
const IGN_T & ign_msg,
ROS2_T & ros2_msg);
std::string ros2_type_name_;
std::string ign_type_name_;
};
} // namespace ros2_ign_bridge
#endif // ROS2_IGN_BRIDGE__FACTORY_HPP_
| [
"louise@openrobotics.org"
] | louise@openrobotics.org |
20566807967bdae95d63d5a29402256e5af1e377 | 3670f2ca6f5609e14cce8c31cb1348052d0b6358 | /xacro/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_wheel_slip.cpp | e4abedfebbf0c4fe36cf8954118ba068301e3d74 | [] | no_license | jincheng-ai/ros-melodic-python3-opencv4 | b0f4d3860ab7ae3d683ade8aa03e74341eff7fcf | 47c74188560c2274b8304647722d0c9763299a4b | refs/heads/main | 2023-05-28T17:37:34.345164 | 2021-06-17T09:59:25 | 2021-06-17T09:59:25 | 377,856,153 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,557 | cpp | /*
* Copyright (C) 2017 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#include <gazebo/physics/World.hh>
#include <gazebo/physics/Model.hh>
#include <sdf/sdf.hh>
#include "gazebo_plugins/gazebo_ros_wheel_slip.h"
namespace gazebo
{
// Register this plugin with the simulator
GZ_REGISTER_MODEL_PLUGIN(GazeboRosWheelSlip)
/////////////////////////////////////////////////
GazeboRosWheelSlip::GazeboRosWheelSlip()
{
}
/////////////////////////////////////////////////
GazeboRosWheelSlip::~GazeboRosWheelSlip()
{
// Custom Callback Queue
this->queue_.clear();
this->queue_.disable();
delete this->dyn_srv_;
this->rosnode_->shutdown();
delete this->rosnode_;
}
/////////////////////////////////////////////////
void GazeboRosWheelSlip::configCallback(
gazebo_plugins::WheelSlipConfig &config, uint32_t level)
{
if (level == ~0)
{
// don't overwrite initial parameters
return;
}
ROS_INFO_NAMED("wheel_slip", "Reconfigure request for the gazebo ros wheel_slip: %s. New slip compliances, lateral: %.3e, longitudinal: %.3e",
this->GetParentModel()->GetScopedName().c_str(),
config.slip_compliance_unitless_lateral,
config.slip_compliance_unitless_longitudinal);
this->SetSlipComplianceLateral(config.slip_compliance_unitless_lateral);
this->SetSlipComplianceLongitudinal(config.slip_compliance_unitless_longitudinal);
}
/////////////////////////////////////////////////
// Load the controller
void GazeboRosWheelSlip::Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)
{
// Load the plugin
WheelSlipPlugin::Load(_parent, _sdf);
if (_sdf->HasElement("robotNamespace"))
{
this->robotNamespace_ = _sdf->Get<std::string>("robotNamespace") + "/";
}
if (this->robotNamespace_.empty() ||
this->robotNamespace_ == "/" ||
this->robotNamespace_ == "//")
{
this->robotNamespace_ = "wheel_slip/";
}
this->robotNamespace_ = _parent->GetName() + "/" + this->robotNamespace_;
// Init ROS
if (!ros::isInitialized())
{
ROS_FATAL_STREAM_NAMED("wheel_slip", "Not loading plugin since ROS hasn't been "
<< "properly initialized. Try starting gazebo with ros plugin:\n"
<< " gazebo -s libgazebo_ros_api_plugin.so\n");
return;
}
this->rosnode_ = new ros::NodeHandle(this->robotNamespace_);
// set up dynamic reconfigure
dyn_srv_ =
new dynamic_reconfigure::Server<gazebo_plugins::WheelSlipConfig>
(*this->rosnode_);
dynamic_reconfigure::Server<gazebo_plugins::WheelSlipConfig>
::CallbackType f =
boost::bind(&GazeboRosWheelSlip::configCallback, this, _1, _2);
dyn_srv_->setCallback(f);
// Custom Callback Queue
this->callbackQueueThread_ =
boost::thread(boost::bind(&GazeboRosWheelSlip::QueueThread, this));
}
/////////////////////////////////////////////////
void GazeboRosWheelSlip::QueueThread()
{
static const double timeout = 0.01;
while (this->rosnode_->ok())
{
this->queue_.callAvailable(ros::WallDuration(timeout));
}
}
}
| [
"shuyuanhao@cetiti.com"
] | shuyuanhao@cetiti.com |
8cb6c68a9dadaba20bd711b645b529c3c410c9c9 | fa04d2f56c8d4ebfb931968392811a127a4cb46c | /trunk/Cities3D/src/StandardRules/RuleRemoveCity.cpp | af76bce187ff28a36619a2a9f63f78cc95c26825 | [] | no_license | andrewlangemann/Cities3D | 9ea8b04eb8ec43d05145e0b91d1c542fa3163ab3 | 58c6510f609a0c8ef801c77f5be9ea622e338f9a | refs/heads/master | 2022-10-04T10:44:51.565770 | 2020-06-03T23:44:07 | 2020-06-03T23:44:07 | 268,979,591 | 0 | 0 | null | 2020-06-03T03:25:54 | 2020-06-03T03:25:53 | null | UTF-8 | C++ | false | false | 2,878 | cpp | /*
* Cities3D - Copyright (C) 2001-2009 Jason Fugate (saladyears@gmail.com)
*
* 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.
*/
#include "stdwx.h"
#include "style.h" //READ THIS BEFORE MAKING ANY CHANGES TO THIS FILE!!!
//---------------------------- SYSTEM INCLUDES -----------------------------//
//---------------------------- USER INCLUDES -----------------------------//
#include "Rule.h"
#include "RuleSetDatabase.h"
#include "GameEngine.h"
#include "CityObject.h"
#include "AggregatorObject.h"
#include "Utility.h"
#include "Controller.h"
#include "IRuleEngine.h"
//---------------------------- TYPEDEFS -----------------------------//
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
//---------------------------- STATICS -----------------------------//
//---------------------------- RULES -----------------------------//
//---------------------------------------------------------------------------//
// Class: RuleRemoveCity
//
// Removes a city from the board at the given tile and corner for the
// current player.
//
// Derived From:
// <Rule>
//
// Project:
// <StandardRules>
//
// RuleSet:
// <Standard>
//
class RuleRemoveCity : public Rule
{
public:
virtual void Execute(const DataObject &object)
{
wxASSERT(1 <= object.numItems());
wxInt32 player = current();
// See if a particular player is having it removed.
if(2 <= object.numItems())
{
player = object.read<wxInt32>(1);
}
// Get the tile and corner being removed.
wxInt32 tile, corner;
boost::tie(tile, corner) = Utility::decodeSel(object.read<wxInt32>());
// Find the city in the player's current list.
const PlayerGame::CornerObjectArray &cities =
playerGame(player).getCornerObjects(shCities);
CornerObject::TileCorner tileCorner(tile, corner);
CornerObjectPtr city;
PlayerGame::CornerObjectArray::const_iterator it,
itEnd = cities.end();
for(it = cities.begin(); it != itEnd; ++it)
{
if(true == (*it)->onTileCorner(tileCorner))
{
city = (*it);
break;
}
}
// Remove it from the player's list.
playerGame(player).removeCornerObject(shCities, city);
// Add one to the player's stock cities.
playerGameData<wxInt32>(shStockCities, player) += 1;
// Subtract two points from the player's score.
RULE.Execute(shRuleAdjustPoints, DataObject(player, -2));
}
};
IMPLEMENT_RULE(RuleRemoveCity, STANDARD)
| [
"saladyears@gmail.com"
] | saladyears@gmail.com |
401ba6baed3506a552d4822431d7c101167dd32d | b829632e0c3f954b5d2439926c45f19f0ba273ee | /ROS/devel/include/projectx/Label.h | 0a2ac7fda6beba5b6b50ea77f60a82314170be22 | [] | no_license | kaaninan/ProjectX | bc557b9e959966c914637717dc7186c1e3cae5f3 | 8f0b289fe88a323b690d82e4c20dba06c3a3ea51 | refs/heads/master | 2021-01-21T21:33:19.256604 | 2016-06-05T09:07:55 | 2016-06-05T09:07:55 | 48,510,976 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,913 | h | // Generated by gencpp from file projectx/Label.msg
// DO NOT EDIT!
#ifndef PROJECTX_MESSAGE_LABEL_H
#define PROJECTX_MESSAGE_LABEL_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include <ros/message_operations.h>
#include <std_msgs/Header.h>
#include <projectx/CommonProperties.h>
namespace projectx
{
template <class ContainerAllocator>
struct Label_
{
typedef Label_<ContainerAllocator> Type;
Label_()
: header()
, common()
, value() {
}
Label_(const ContainerAllocator& _alloc)
: header(_alloc)
, common(_alloc)
, value(_alloc) {
}
typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
_header_type header;
typedef ::projectx::CommonProperties_<ContainerAllocator> _common_type;
_common_type common;
typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _value_type;
_value_type value;
typedef boost::shared_ptr< ::projectx::Label_<ContainerAllocator> > Ptr;
typedef boost::shared_ptr< ::projectx::Label_<ContainerAllocator> const> ConstPtr;
}; // struct Label_
typedef ::projectx::Label_<std::allocator<void> > Label;
typedef boost::shared_ptr< ::projectx::Label > LabelPtr;
typedef boost::shared_ptr< ::projectx::Label const> LabelConstPtr;
// constants requiring out of line definition
template<typename ContainerAllocator>
std::ostream& operator<<(std::ostream& s, const ::projectx::Label_<ContainerAllocator> & v)
{
ros::message_operations::Printer< ::projectx::Label_<ContainerAllocator> >::stream(s, "", v);
return s;
}
} // namespace projectx
namespace ros
{
namespace message_traits
{
// BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
// {'std_msgs': ['/opt/ros/indigo/share/std_msgs/cmake/../msg'], 'projectx': ['/home/ubuntu/ProjectX/ROS/src/projectx/msg']}
// !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
template <class ContainerAllocator>
struct IsFixedSize< ::projectx::Label_<ContainerAllocator> >
: FalseType
{ };
template <class ContainerAllocator>
struct IsFixedSize< ::projectx::Label_<ContainerAllocator> const>
: FalseType
{ };
template <class ContainerAllocator>
struct IsMessage< ::projectx::Label_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct IsMessage< ::projectx::Label_<ContainerAllocator> const>
: TrueType
{ };
template <class ContainerAllocator>
struct HasHeader< ::projectx::Label_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct HasHeader< ::projectx::Label_<ContainerAllocator> const>
: TrueType
{ };
template<class ContainerAllocator>
struct MD5Sum< ::projectx::Label_<ContainerAllocator> >
{
static const char* value()
{
return "b5cfc77fbfd3429b0db9743556374f86";
}
static const char* value(const ::projectx::Label_<ContainerAllocator>&) { return value(); }
static const uint64_t static_value1 = 0xb5cfc77fbfd3429bULL;
static const uint64_t static_value2 = 0x0db9743556374f86ULL;
};
template<class ContainerAllocator>
struct DataType< ::projectx::Label_<ContainerAllocator> >
{
static const char* value()
{
return "projectx/Label";
}
static const char* value(const ::projectx::Label_<ContainerAllocator>&) { return value(); }
};
template<class ContainerAllocator>
struct Definition< ::projectx::Label_<ContainerAllocator> >
{
static const char* value()
{
return "# TouchOSC Label Control\n\
\n\
Header header\n\
CommonProperties common\n\
string value\n\
\n\
================================================================================\n\
MSG: std_msgs/Header\n\
# Standard metadata for higher-level stamped data types.\n\
# This is generally used to communicate timestamped data \n\
# in a particular coordinate frame.\n\
# \n\
# sequence ID: consecutively increasing ID \n\
uint32 seq\n\
#Two-integer timestamp that is expressed as:\n\
# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
# time-handling sugar is provided by the client library\n\
time stamp\n\
#Frame this data is associated with\n\
# 0: no frame\n\
# 1: global frame\n\
string frame_id\n\
\n\
================================================================================\n\
MSG: projectx/CommonProperties\n\
# Common functionality to all TouchOSC controls\n\
\n\
string tabpage # Control tabpage\n\
string name # Control Name\n\
int16 x # X position of the control\n\
int16 y # Y position of the control\n\
uint16 width # Width of the control\n\
uint16 height # Height of the control\n\
string visible # Visibility of the control\n\
\n\
# Possible colors are:\n\
# \"red\", \"green\", \"blue\", \"yellow\", \"orange\", \"purple\", \"gray\"\n\
string color # Color of the control\n\
";
}
static const char* value(const ::projectx::Label_<ContainerAllocator>&) { return value(); }
};
} // namespace message_traits
} // namespace ros
namespace ros
{
namespace serialization
{
template<class ContainerAllocator> struct Serializer< ::projectx::Label_<ContainerAllocator> >
{
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
{
stream.next(m.header);
stream.next(m.common);
stream.next(m.value);
}
ROS_DECLARE_ALLINONE_SERIALIZER;
}; // struct Label_
} // namespace serialization
} // namespace ros
namespace ros
{
namespace message_operations
{
template<class ContainerAllocator>
struct Printer< ::projectx::Label_<ContainerAllocator> >
{
template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::projectx::Label_<ContainerAllocator>& v)
{
s << indent << "header: ";
s << std::endl;
Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
s << indent << "common: ";
s << std::endl;
Printer< ::projectx::CommonProperties_<ContainerAllocator> >::stream(s, indent + " ", v.common);
s << indent << "value: ";
Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.value);
}
};
} // namespace message_operations
} // namespace ros
#endif // PROJECTX_MESSAGE_LABEL_H
| [
"kaaninan99@gmail.com"
] | kaaninan99@gmail.com |
18a5d2bac241a16725632afd2ad6649e6d8c79c5 | ab1f3ee37ed5a263f0f77c7acb8dbf4032888df6 | /Battle_Tank/Source/Battle_Tank/Private/TankMovementComponent.cpp | dcbb5e1f9385757991f9cfd06b163ba16a3b9e69 | [] | no_license | mikolicsreka/TankBattle | d23bbd71f54193493687a770eb95e5cf86824188 | c82f2f5d5990e25669061c9b0c3ea5fe3e587a60 | refs/heads/master | 2022-09-05T23:05:14.972418 | 2020-05-27T14:12:23 | 2020-05-27T14:12:23 | 265,258,653 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,276 | cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "TankMovementComponent.h"
#include "TankTrack.h"
void UTankMovementComponent::Initialize(UTankTrack* LeftTrackToSet, UTankTrack* RightTrackToSet)
{
LeftTrack = LeftTrackToSet;
RightTrack = RightTrackToSet;
}
void UTankMovementComponent::IntendTurnRight(float Throttle)
{
if (!ensure(LeftTrack && RightTrack))
{
return;
}
LeftTrack->SetThrottle(-Throttle);
RightTrack->SetThrottle(Throttle);
}
void UTankMovementComponent::RequestDirectMove(const FVector& MoveVelocity, bool bForceMaxSpeed)
{
//No need to call super as we're replacing the functionality
auto TankName = GetOwner()->GetName();
auto TankForward = GetOwner()->GetActorForwardVector().GetSafeNormal();
auto AIForwardIntention = MoveVelocity.GetSafeNormal();
auto ForwardThrow = FVector::DotProduct(TankForward, AIForwardIntention);
IntendMoveForward(ForwardThrow);
auto RightThrow = FVector::CrossProduct(TankForward, AIForwardIntention).Z; //skaláris szorzat i guess
IntendTurnRight(RightThrow);
}
void UTankMovementComponent::IntendMoveForward(float Throttle)
{
if (!ensure(LeftTrack&& RightTrack))
{
return;
}
LeftTrack->SetThrottle(Throttle);
RightTrack->SetThrottle(Throttle);
} | [
"mskyubi@gmail.com"
] | mskyubi@gmail.com |
a585dd28c9a277cda37bc2739bc50f9200d3b136 | fd2b6c755abc4da2887ba444cae6d48940ff9e07 | /dom/media/encoder/fmp4_muxer/ISOMediaWriter.cpp | 0b4449447867d76df55d5679587d2b1066ff2a8a | [] | no_license | janekptacijarabaci/Pale-Moon | 497069fc8f967e1a9acf92cbec5821412bf4bde3 | 4197dba3260021c414b0355ece296e47d5050431 | refs/heads/master | 2021-01-17T22:09:22.101979 | 2018-06-13T16:47:33 | 2018-06-13T16:47:33 | 67,629,079 | 4 | 0 | null | 2016-09-07T17:30:55 | 2016-09-07T17:30:54 | null | UTF-8 | C++ | false | false | 6,208 | cpp | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-*/
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "ISOMediaWriter.h"
#include "ISOControl.h"
#include "ISOMediaBoxes.h"
#include "ISOTrackMetadata.h"
#include "nsThreadUtils.h"
#include "MediaEncoder.h"
#include "VideoUtils.h"
#include "GoannaProfiler.h"
#undef LOG
#ifdef MOZ_WIDGET_GONK
#include <android/log.h>
#define LOG(args...) __android_log_print(ANDROID_LOG_INFO, "MediaEncoder", ## args);
#else
#define LOG(args, ...)
#endif
namespace mozilla {
const static uint32_t FRAG_DURATION = 2 * USECS_PER_S; // microsecond per unit
ISOMediaWriter::ISOMediaWriter(uint32_t aType, uint32_t aHint)
: ContainerWriter()
, mState(MUXING_HEAD)
, mBlobReady(false)
, mType(0)
{
if (aType & CREATE_AUDIO_TRACK) {
mType |= Audio_Track;
}
if (aType & CREATE_VIDEO_TRACK) {
mType |= Video_Track;
}
mControl = new ISOControl(aHint);
MOZ_COUNT_CTOR(ISOMediaWriter);
}
ISOMediaWriter::~ISOMediaWriter()
{
MOZ_COUNT_DTOR(ISOMediaWriter);
}
nsresult
ISOMediaWriter::RunState()
{
nsresult rv;
switch (mState) {
case MUXING_HEAD:
{
rv = mControl->GenerateFtyp();
NS_ENSURE_SUCCESS(rv, rv);
rv = mControl->GenerateMoov();
NS_ENSURE_SUCCESS(rv, rv);
mState = MUXING_FRAG;
break;
}
case MUXING_FRAG:
{
rv = mControl->GenerateMoof(mType);
NS_ENSURE_SUCCESS(rv, rv);
bool EOS;
if (ReadyToRunState(EOS) && EOS) {
mState = MUXING_DONE;
}
break;
}
case MUXING_DONE:
{
break;
}
}
mBlobReady = true;
return NS_OK;
}
nsresult
ISOMediaWriter::WriteEncodedTrack(const EncodedFrameContainer& aData,
uint32_t aFlags)
{
PROFILER_LABEL("ISOMediaWriter", "WriteEncodedTrack",
js::ProfileEntry::Category::OTHER);
// Muxing complete, it doesn't allowed to reentry again.
if (mState == MUXING_DONE) {
MOZ_ASSERT(false);
return NS_ERROR_FAILURE;
}
FragmentBuffer* frag = nullptr;
uint32_t len = aData.GetEncodedFrames().Length();
if (!len) {
// no frame? why bother to WriteEncodedTrack
return NS_OK;
}
for (uint32_t i = 0; i < len; i++) {
nsRefPtr<EncodedFrame> frame(aData.GetEncodedFrames()[i]);
EncodedFrame::FrameType type = frame->GetFrameType();
if (type == EncodedFrame::AAC_AUDIO_FRAME ||
type == EncodedFrame::AAC_CSD ||
type == EncodedFrame::AMR_AUDIO_FRAME ||
type == EncodedFrame::AMR_AUDIO_CSD) {
frag = mAudioFragmentBuffer;
} else if (type == EncodedFrame::AVC_I_FRAME ||
type == EncodedFrame::AVC_P_FRAME ||
type == EncodedFrame::AVC_B_FRAME ||
type == EncodedFrame::AVC_CSD) {
frag = mVideoFragmentBuffer;
} else {
MOZ_ASSERT(0);
return NS_ERROR_FAILURE;
}
frag->AddFrame(frame);
}
// Encoder should send CSD (codec specific data) frame before sending the
// audio/video frames. When CSD data is ready, it is sufficient to generate a
// moov data. If encoder doesn't send CSD yet, muxer needs to wait before
// generating anything.
if (mType & Audio_Track && (!mAudioFragmentBuffer ||
!mAudioFragmentBuffer->HasCSD())) {
return NS_OK;
}
if (mType & Video_Track && (!mVideoFragmentBuffer ||
!mVideoFragmentBuffer->HasCSD())) {
return NS_OK;
}
// Only one FrameType in EncodedFrameContainer so it doesn't need to be
// inside the for-loop.
if (frag && (aFlags & END_OF_STREAM)) {
frag->SetEndOfStream();
}
nsresult rv;
bool EOS;
if (ReadyToRunState(EOS)) {
// Because track encoder won't generate new data after EOS, it needs to make
// sure the state reaches MUXING_DONE when EOS is signaled.
do {
rv = RunState();
} while (EOS && mState != MUXING_DONE);
NS_ENSURE_SUCCESS(rv, rv);
}
return NS_OK;
}
bool
ISOMediaWriter::ReadyToRunState(bool& aEOS)
{
aEOS = false;
bool bReadyToMux = true;
if ((mType & Audio_Track) && (mType & Video_Track)) {
if (!mAudioFragmentBuffer->HasEnoughData()) {
bReadyToMux = false;
}
if (!mVideoFragmentBuffer->HasEnoughData()) {
bReadyToMux = false;
}
if (mAudioFragmentBuffer->EOS() && mVideoFragmentBuffer->EOS()) {
aEOS = true;
bReadyToMux = true;
}
} else if (mType == Audio_Track) {
if (!mAudioFragmentBuffer->HasEnoughData()) {
bReadyToMux = false;
}
if (mAudioFragmentBuffer->EOS()) {
aEOS = true;
bReadyToMux = true;
}
} else if (mType == Video_Track) {
if (!mVideoFragmentBuffer->HasEnoughData()) {
bReadyToMux = false;
}
if (mVideoFragmentBuffer->EOS()) {
aEOS = true;
bReadyToMux = true;
}
}
return bReadyToMux;
}
nsresult
ISOMediaWriter::GetContainerData(nsTArray<nsTArray<uint8_t>>* aOutputBufs,
uint32_t aFlags)
{
PROFILER_LABEL("ISOMediaWriter", "GetContainerData",
js::ProfileEntry::Category::OTHER);
if (mBlobReady) {
if (mState == MUXING_DONE) {
mIsWritingComplete = true;
}
mBlobReady = false;
return mControl->GetBufs(aOutputBufs);
}
return NS_OK;
}
nsresult
ISOMediaWriter::SetMetadata(TrackMetadataBase* aMetadata)
{
PROFILER_LABEL("ISOMediaWriter", "SetMetadata",
js::ProfileEntry::Category::OTHER);
if (aMetadata->GetKind() == TrackMetadataBase::METADATA_AAC ||
aMetadata->GetKind() == TrackMetadataBase::METADATA_AMR) {
mControl->SetMetadata(aMetadata);
mAudioFragmentBuffer = new FragmentBuffer(Audio_Track, FRAG_DURATION);
mControl->SetFragment(mAudioFragmentBuffer);
return NS_OK;
}
if (aMetadata->GetKind() == TrackMetadataBase::METADATA_AVC) {
mControl->SetMetadata(aMetadata);
mVideoFragmentBuffer = new FragmentBuffer(Video_Track, FRAG_DURATION);
mControl->SetFragment(mVideoFragmentBuffer);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
} // namespace mozilla
| [
"git-repo@palemoon.org"
] | git-repo@palemoon.org |
a470444d84deec5fb2d3f18d6660f9f2f1055c01 | ad2fb11144fa9b91cab38a0685447a543c0de6d2 | /Lib/Lexer/Tokens/Instructions/Token_Instruction_Lea.cpp | 3a1580763ebb34881c0a6c356cc0ab84915a6fc1 | [] | no_license | Pyxxil/LC3AS | 53b1ba17cbbe50ba7c2ac64dfb55d8b8e8ee620f | e8f4b755d7c3d0650ed1efda79e6b55741b3a131 | refs/heads/master | 2021-01-01T04:33:16.288512 | 2018-09-07T05:59:32 | 2018-09-07T05:59:32 | 97,195,773 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,357 | cpp | #include "Tokens/Instructions/Token_Instruction_Lea.hpp"
#include <fmt/ostream.h>
#include "Tokens/Token_Immediate.hpp"
#include "Tokens/Token_Label.hpp"
#include "Tokens/Token_Register.hpp"
Lea::Lea(const std::string &instruction,
const std::string &instruction_uppercase, const std::string &t_file,
size_t line_number, size_t t_column)
: Instruction(instruction, instruction_uppercase, t_file, line_number,
t_column) {}
int32_t Lea::assemble(std::vector<std::shared_ptr<Token>> &tokens,
const std::map<std::string, Symbol> &symbols,
uint16_t program_counter) {
if (!is_valid) {
return 0;
}
int offset = 0;
if (tokens[2]->type() == Token::LABEL) {
if (0u == symbols.count(tokens[2]->token)) {
std::static_pointer_cast<Label>(tokens[2])->not_found(symbols);
return -1;
}
offset = static_cast<int>(symbols.find(tokens[2]->token)->second.address) -
(static_cast<int>(program_counter) + 1);
} else {
offset = std::static_pointer_cast<Immediate>(tokens[2])->value;
}
if (offset > 255 || offset < -256) {
tokens[2]->requires_too_many_bits(9, SIGNED, this, symbols);
return -1;
}
provided = tokens[2];
assembled.emplace_back(static_cast<uint16_t>(
0xE000 | ((std::static_pointer_cast<Register>(tokens[1])->reg & 7) << 9) |
(offset & 0x1FF)));
return 1;
}
bool Lea::valid_arguments(std::vector<std::shared_ptr<Token>> &tokens) {
if (tokens.size() != 3) {
invalid_argument_count(tokens.size(), 2,
tokens.back()->column +
tokens.back()->token.length());
return (is_valid = false);
}
if (tokens[1]->type() != Token::REGISTER) {
tokens[1]->expected(Expected::REGISTER);
return (is_valid = false);
}
if (tokens[2]->type() != Token::LABEL &&
tokens[2]->type() != Token::IMMEDIATE) {
tokens[2]->expected(Expected::LABEL_OR_IMMEDIATE_VAL);
return (is_valid = false);
}
if (!(tokens[1]->is_valid && tokens[2]->is_valid)) {
return (is_valid = false);
}
return is_valid;
}
uint16_t
Lea::guess_memory_size(std::vector<std::shared_ptr<Token>> &tokens) const {
(void)tokens;
return static_cast<uint16_t>(is_valid);
}
std::string Lea::disassemble(uint16_t &program_counter,
const std::string &symbol, int width) const {
const auto value = assembled.front();
++program_counter;
#ifdef INCLUDE_ADDONS
return fmt::format(
"({0:04X}) {1:04X} {1:016b} ({2: >4d}) {3: <{4}s} LEA R{5:d} "
"{6:s}\t{7:s}\n",
program_counter - 1, value, line, symbol, width, value >> 9 & 0x7,
provided->type() == Token::LABEL
? provided->token
: fmt::format("{:#06x}",
std::static_pointer_cast<Immediate>(provided)->value +
program_counter),
file);
#else
return fmt::format(
"({0:04X}) {1:04X} {1:016b} ({2: >4d}) {3: <{4}s} LEA R{5:d} {6:s}\n",
program_counter - 1, value, line, symbol, width, value >> 9 & 0x7,
provided->type() == Token::LABEL
? provided->token
: fmt::format("{:#06x}",
std::static_pointer_cast<Immediate>(provided)->value +
program_counter));
#endif
}
| [
"josh.hill189@gmail.com"
] | josh.hill189@gmail.com |
0fe012ddfd96fbad6cab60c978518d085de8ba3b | e29b00487669bdbd26faa33960ba0de83c5d771f | /array_list.cpp | 2f0d1ae55493a35f098a4bd12c0767546bdbf127 | [] | no_license | FeriXue/algorithm | 0a7cd9029dccdb23b3fa0d590f70fb9297fbec50 | adbb74cab749f9fa72298ca72f0d6b00527e9c80 | refs/heads/master | 2023-03-30T22:05:00.201852 | 2021-04-10T04:32:02 | 2021-04-10T04:32:02 | 318,991,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,759 | cpp | #include <iostream>
#include <unistd.h>
using namespace std;
const int N = 1e5 + 10;
int l[N], r[N], value[N];
int now_in;
void init()
{
r[0] = 1;
l[0] = -1;
l[1] = 0;
r[1] = -1;
now_in = 2;
}
//在下标为k的点的右边插入x;
void insert(int k, int x)
{
value[now_in] = x;
r[now_in] = r[k];
l[now_in] = k;
l[r[k]] = now_in;
r[k] = now_in++;
}
void zleft_insert(int x)
{
insert(0, x);
}
void zright_insert(int x)
{
insert(l[1], x);
}
// 删除第k个点;
void delete_one(int k)
{
r[l[k]] = r[k];
l[r[k]] = l[k];
}
int main()
{
init();
int m = 0;
cin >> m;
string op;
int k = 0, x = 0;
while (m--) {
cin >> op;
if (op == "L") {
cin >> x;
zleft_insert(x);
} else if (op == "R") {
cin >> x;
zright_insert(x);
} else if (op == "D") {
cin >> k;
delete_one(k + 1);
} else if (op == "IL") {
cin >> k >> x;
insert(l[(k + 1)], x);
} else if (op == "IR"){
cin >> k >> x;
insert(k + 1, x);
}
}
for (int i = r[0]; i != 1; i = r[i]) {
cout << value[i] << " ";
}
cout << endl;
return 0;
}
| [
"2567219039@qq.com"
] | 2567219039@qq.com |
6f0f38cbc93a4b79a7e159b39c65501c448a74ae | 484e9a41584aea505040d885dac9c03f69ab14ba | /April24_Cprojects/april24_3project.cpp | c90cef932812cb07e5218a3892e66c0894d8f926 | [] | no_license | leejinho/c-language | 474495a330c4418602eb2303c7558d4afac8740d | 9cc92718540a9437cfb58d2d706823cde9797368 | refs/heads/master | 2020-07-01T22:52:37.541158 | 2015-06-18T09:02:36 | 2015-06-18T09:02:36 | 34,090,336 | 0 | 1 | null | 2015-05-29T02:28:30 | 2015-04-17T01:39:23 | C++ | UTF-8 | C++ | false | false | 309 | cpp | #include <stdio.h>
void main()
{
int button;
printf("숫자(1-5)를 입력하고 Enter>");
scanf("%d", &button);
switch(button)
{
case 1 : printf("밀크커피\n");
break;
case 2 : printf("프림커피\n");
break;
case 3 : printf("블렉커피\n");
break;
default : printf("코코아\n");
}
}
| [
"leejh2773@naver.com"
] | leejh2773@naver.com |
fbd1176ace81daecf00c4e803c1f7f3aea256218 | abb1eea21e89926b177eae47aa1da6cd8494574b | /05_Command_5/ControlledSystems/Music.hpp | 0fa3615bd84a6568b6f9bd7ac999e3f9178b4f12 | [] | no_license | oleggy-gvz/DesignPatterns_samples | cb4fe897b3f12d137999067292e97fb2c9fc093c | 530242280fb7d283e6432f02b87f6d0282b6bf31 | refs/heads/master | 2020-05-09T22:00:06.523688 | 2019-10-04T04:08:53 | 2019-10-04T04:08:53 | 181,455,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 328 | hpp | #ifndef MUSIC_HPP
#define MUSIC_HPP
#include "Commands\ICommand.hpp"
class Music
{
public:
State _state;
void TurnOn()
{
cout << "Music on" << endl;
_state = State::On;
}
void TurnOff()
{
cout << "Music off" << endl;
_state = State::Off;
}
};
#endif // MUSIC_HPP
| [
"oleggy.gvz@gmail.com"
] | oleggy.gvz@gmail.com |
e2fd9ebc6ad588e0fb31795c05100748f08edad2 | 55a8933754c78c4348e2f9de59c6ffdfcf49528e | /code/oj/myEP/test02.cpp | 57daf63346f59cd22b6c06bc88ec431b9424896e | [] | no_license | liuqian-test/LeetCode | d28aa2b79cf09503331bf2abce031b5b39127df4 | 5592209321ea8523f3a2703fde3eae20abe15e77 | refs/heads/master | 2022-04-08T14:52:57.438464 | 2020-03-15T16:45:54 | 2020-03-15T16:45:54 | 242,993,392 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | /*************************************************************************
> File Name: test02.cpp
> Author: ma6174
> Mail: ma6174@163.com
> Created Time: 2020年01月11日 星期六 16时21分04秒
************************************************************************/
#include<iostream>
#include<cstring>
using namespace std;
int main() {
char str[1000];
scanf("%[^\n]s", str);
int len = strlen(str);
for(int i = 0; str[i]; i++) {
if(str[i] == ' ')str[i] = '\n';
}
printf("%d", str);
}
| [
"1254143911@qq.com"
] | 1254143911@qq.com |
1dc0416359d7c7431e85a5d3fc88fd21f51853d9 | 950276f370539ad552c1969170258cb8a13e137d | /src/PhysicsList.cxx | 43117615b1f964777b6a5624f6f3c2a62c7e54e9 | [
"BSD-3-Clause"
] | permissive | fermi-lat/G4Generator | b4be72b15c7898fa2c49d553e4ad09bc6bced4ca | e62475754d1be9330e2c865b0a4517f8d9b105e9 | refs/heads/master | 2022-02-17T03:19:37.917081 | 2019-08-27T17:27:36 | 2019-08-27T17:27:36 | 103,186,864 | 0 | 0 | null | 2018-07-05T20:47:41 | 2017-09-11T20:51:33 | C++ | UTF-8 | C++ | false | false | 5,345 | cxx | // File and Version Information:
// $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/G4Generator/src/PhysicsList.cxx,v 1.24 2011/08/26 23:59:15 flongo Exp
//
// Description: This class manages the building of particles definitions and
// physics processes setup by creating a set of specialized classes and
// registering them
//
//
// Author(s):
// F.Longo
#include "PhysicsList.h"
#include "G4ParticleDefinition.hh"
#include "G4ParticleWithCuts.hh"
#include "G4ProcessManager.hh"
#include "G4ProcessVector.hh"
#include "G4ParticleTable.hh"
#include "G4Material.hh"
#include "G4MaterialTable.hh"
#include "G4ParticleTypes.hh"
// GLAST
// others
#include "EmStandardPhysics.hh"
#include "EmLowEnergyPhysics.hh"
#include "EpaxIonPhysics.h"
//#include "HadronPhysicsLHEP.hh"
//#include "HadronPhysicsQGSP.hh"
//#include "HadronPhysicsQGSP_BIC.hh"
#include "HadronPhysicsQGSP_BERT.hh"
#include "G4EmStandardPhysics.hh"
#include "G4EmExtraPhysics.hh"
#include "G4EmLivermorePhysics.hh"
#include "G4DecayPhysics.hh"
//#include "G4IonPhysics.hh"
// new
#include "G4QStoppingPhysics.hh"
#include "G4HadronElasticPhysicsLHEP.hh"
#include "G4HadronElasticPhysics.hh"
#include "G4NeutronTrackingCut.hh"
#include "G4IonBinaryCascadePhysics.hh"
#include <cstdlib>
PhysicsList::PhysicsList(double cutValue, const std::string& physicsChoice,
const std::string& physicsTable, const std::string& physicsDir)
: G4VModularPhysicsList()
{
// The default cut value for all particles
defaultCutValue = cutValue;
// Physics Choice
m_physicsChoice = physicsChoice;
// Physics Tables
m_physicsTable = physicsTable;
m_physicsDir = physicsDir;
std::cout << physicsChoice << std::endl; // this is for hadronic stuff
// EmLow
// EmStd
// EmLiv // New
// QGSP_BERT_EPAX // New
if (m_physicsChoice=="EmLow")
{
G4int ver=0;
// EM Physics
RegisterPhysics( new EmLowEnergyPhysics("lowEnergy EM", ver));
// Decay Physics - i.e. decay
RegisterPhysics( new G4DecayPhysics("decay") );
// Ion Physics
RegisterPhysics( new EpaxIonPhysics("ion", m_physicsChoice));
RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron")); // to be updated
}
if (m_physicsChoice=="EmLiv")
{
G4int ver=0;
// EM Physics
RegisterPhysics( new G4EmLivermorePhysics(ver));
RegisterPhysics( new G4EmExtraPhysics("extra EM"));
// Decay Physics - i.e. decay
RegisterPhysics( new G4DecayPhysics("decay") );
// Ion Physics
RegisterPhysics( new EpaxIonPhysics("ion", m_physicsChoice));
// Hadron Phyiscs
RegisterPhysics( new G4NeutronTrackingCut(ver) );
RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron")); // to be updated
RegisterPhysics( new G4HadronElasticPhysics("hadronElast"));
RegisterPhysics( new G4QStoppingPhysics("stopping"));
}
if (m_physicsChoice=="EmStd")
{
G4int ver=0;
// EM Physics
RegisterPhysics( new EmStandardPhysics("standard EM", ver));
// Synchroton Radiation & GN Physics
RegisterPhysics( new G4EmExtraPhysics("extra EM"));
// Decay Physics - i.e. decay
RegisterPhysics( new G4DecayPhysics("decay") );
// Full Ion Physics
RegisterPhysics( new EpaxIonPhysics("ion", m_physicsChoice));
// Neutrons
RegisterPhysics( new G4NeutronTrackingCut(ver) );
RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron"));
// Hadron Elastic Phys
RegisterPhysics( new G4HadronElasticPhysics("hadronElast"));
// Stopping Physics
RegisterPhysics( new G4QStoppingPhysics("stopping"));
}
if (m_physicsChoice=="QGSP_BERT_EPAX")
{
G4int ver=0;
// EM standard physics (default)
RegisterPhysics( new G4EmStandardPhysics(ver));
// Synchroton Radiation & GN Physics
RegisterPhysics( new G4EmExtraPhysics("extra EM"));
// Decay Physics - i.e. decay
RegisterPhysics( new G4DecayPhysics("decay") );
// Ion Physics
RegisterPhysics( new EpaxIonPhysics("ion", m_physicsChoice));
// Neutrons
RegisterPhysics( new G4NeutronTrackingCut(ver) );
// Hadron Physics
RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron"));
// Hadron Elastic Phys
RegisterPhysics( new G4HadronElasticPhysics("hadronElast"));
// Stopping Physics
RegisterPhysics( new G4QStoppingPhysics("stopping"));
}
}
PhysicsList::~PhysicsList()
{;}
void PhysicsList::SetCuts()
{
#ifndef SCons
std::string physics_basedir = getenv("G4GENERATORROOT");
#else
// Shouldn't matter since this routine is normally called with
// m_physicsTable = "build"
std::string physics_basedir("stuffAndNonsense");
#endif
std::string physics_Dir = physics_basedir + "/" + m_physicsDir;
if (m_physicsTable=="retrieve")
{
SetPhysicsTableRetrieved(physics_Dir);
}
SetCutsWithDefault();
if (m_physicsTable=="store")
{
if(StorePhysicsTable(physics_Dir))
{// std::cout << "done Physics Store" << std::endl;
}
}
}
| [
""
] | |
75a368df991c0726510cf711a564cc5dc655fd1a | e272d18a042e6b6808bc615917b1783d53607870 | /misc/Online Contests/2003, November 8/I - Game Tree.cpp | db75656cb20876d2d585c0d9432dc65038dcbce2 | [] | no_license | chessdroid/morbidel-timus | 58656c7a62132aaae71289a20ee77baeca4ba554 | b079bf3ae716d4eeb54722037ac55066f9e9da7c | refs/heads/master | 2020-07-10T02:20:08.032088 | 2013-04-11T20:48:39 | 2013-04-11T20:48:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,569 | cpp | /*
* ACM Timus Online Contest, 8 November 2003
* Problem 9 -> Game tree
*/
#include <stdio.h>
#include <stdlib.h>
#define NODS 10200
int n, a[NODS], b[NODS], gr[NODS], tata[NODS];
struct graf
{
int nod;
graf *next;
} *g[NODS];
void readdata()
{
char ch;
int i;
graf *q;
scanf("%d", &n);
for (i = 2; i <= n; i++)
{
scanf("\n%c %d", &ch, &tata[i]);
q = (graf*) malloc(sizeof(*q));
q -> nod = i; q -> next = g[tata[i]]; g[tata[i]] = q;
if (ch == 'N') gr[tata[i]]++;
if (ch == 'L') /* frunza */
scanf("%d", &a[i]), b[i] = a[i], gr[i] = -1;
}
}
void solve()
{
int i, j, ok, nod, next, w1, d1, w2, d2;
graf *q;
for (nod = 0, i = 1; i <= n; i++)
if (!gr[i])
nod = i, i = n;
for (j = 0; j < n; j++)
{
if (gr[nod] < 0 || nod == 10000) break;
/* avem frunza nod, calculez a[nod] si b[nod] */
for (w1 = w2 = d1 = d2 = 0, q = g[nod]; q; q = q -> next)
{
next = q -> nod;
switch (b[next])
{
case 0: d1++; break;
case 1: w1++; break;
}
switch (a[next])
{
case 0: d2++; break;
case -1: w2++; break;
}
}
a[nod] = w1 ? 1 : (d1 ? 0 : -1);
b[nod] = w2 ? -1 : (d2 ? 0 : 1);
/* caut urm. frunza minima */
for (next = 10000, i = nod + 1; i <= n; i++)
if (!gr[i])
next = i, i = n;
if (--gr[tata[nod]] == 0 && tata[nod] < next)
next = tata[nod];
gr[nod] = -1; nod = next;
}
if (a[1] == 1) printf("+");
printf("%d\n", a[1]);
}
int main()
{
readdata();
solve();
return 0;
}
| [
"stefangh@gmail.com"
] | stefangh@gmail.com |
2b4de4372d027a02a2efeabbb6c19dd7336ca17b | bcf138c82fcba9acc7d7ce4d3a92618b06ebe7c7 | /gta5/0x4B7620C47217126C.cpp | d4b0cab3133a57fabb18138c35bbcb7a6dc3d53b | [] | no_license | DeepWolf413/additional-native-data | aded47e042f0feb30057e753910e0884c44121a0 | e015b2500b52065252ffbe3c53865fe3cdd3e06c | refs/heads/main | 2023-07-10T00:19:54.416083 | 2021-08-12T16:00:12 | 2021-08-12T16:00:12 | 395,340,507 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | cpp | // fm_content_island_heist.ysc @ L33566
bool func_981(int iParam0)
{
return ((func_855(7) && WEAPON::IS_FLASH_LIGHT_ON(iLocal_12605)) && func_982(NETWORK::NET_TO_PED(Local_12697.f_134[iParam0 /*22*/])));
} | [
"jesper15fuji@live.dk"
] | jesper15fuji@live.dk |
b8a3f7deb684ee8429ea6ba2f8e85f5fb3e3d20b | de97899cfe3a78a2d6fa45f394ae932dae51d01f | /software/Firmware/applications/params.cpp | 86e7cfcde05de35d5045b3f09315c6a0af10c337 | [] | no_license | nongxiaoming/Hexacopter_LPC1549 | f1a66ddba78acd95e3641dbc734bf4cf6b8791d3 | 1fd2434b39fd2cf7b54eea89b012056d1d62c176 | refs/heads/master | 2020-06-04T05:48:34.529703 | 2015-06-03T13:41:36 | 2015-06-03T13:41:36 | 31,605,217 | 0 | 3 | null | null | null | null | GB18030 | C++ | false | false | 4,269 | cpp | /******************** (C) COPYRIGHT 2014 ANO Tech ***************************
* 作者 :匿名科创
* 文件名 :ANO_Param.cpp
* 描述 :参数读取和保存
* 官网 :www.anotc.com
* 淘宝 :anotc.taobao.com
* 技术Q群 :190169595
**********************************************************************************/
#include "params.h"
#include "pidctrl.h"
#include "sensor.h"
#include "string.h"
#include "drv_eeprom.h"
#define PARAMS_SAVE_ADDRESS ((uint32_t)0x00)
static params_t params;
static bool Params_Read(void);
void Params_Init(void)
{
if(Params_Read()==true)
{
fc.pid_group[PIDROLL].kD = params.roll_pid.kd;
fc.pid_group[PIDROLL].kI = params.roll_pid.ki;
fc.pid_group[PIDROLL].kP = params.roll_pid.kp;
fc.pid_group[PIDPITCH].kD = params.pitch_pid.kd;
fc.pid_group[PIDPITCH].kI = params.pitch_pid.ki;
fc.pid_group[PIDPITCH].kP = params.pitch_pid.kp;
fc.pid_group[PIDYAW].kD = params.yaw_pid.kd;
fc.pid_group[PIDYAW].kI = params.yaw_pid.ki;
fc.pid_group[PIDYAW].kP = params.yaw_pid.kp;
fc.pid_group[PIDALT].kD = params.alt_pid.kd;
fc.pid_group[PIDALT].kI = params.alt_pid.ki;
fc.pid_group[PIDALT].kP = params.alt_pid.kp;
fc.pid_group[PIDLEVEL].kD = params.level_pid.kd;
fc.pid_group[PIDLEVEL].kI = params.level_pid.ki;
fc.pid_group[PIDLEVEL].kP = params.level_pid.kp;
fc.pid_group[PIDMAG].kD = params.mag_pid.kd;
fc.pid_group[PIDMAG].kI = params.mag_pid.ki;
fc.pid_group[PIDMAG].kP = params.mag_pid.kp;
sensor.Acc_Offset = params.acc_offset;
sensor.Gyro_Offset = params.gyro_offset;
}else
{
params.roll_pid.kd = fc.pid_group[PIDROLL].kD ;
params.roll_pid.ki = fc.pid_group[PIDROLL].kI ;
params.roll_pid.kp = fc.pid_group[PIDROLL].kP;
params.pitch_pid.kd = fc.pid_group[PIDPITCH].kD ;
params.pitch_pid.ki = fc.pid_group[PIDPITCH].kI ;
params.pitch_pid.kp = fc.pid_group[PIDPITCH].kP ;
params.yaw_pid.kd = fc.pid_group[PIDYAW].kD ;
params.yaw_pid.ki = fc.pid_group[PIDYAW].kI ;
params.yaw_pid.kp = fc.pid_group[PIDYAW].kP ;
params.alt_pid.kd = fc.pid_group[PIDALT].kD ;
params.alt_pid.ki = fc.pid_group[PIDALT].kI ;
params.alt_pid.kp = fc.pid_group[PIDALT].kP ;
params.level_pid.kd = fc.pid_group[PIDLEVEL].kD ;
params.level_pid.ki = fc.pid_group[PIDLEVEL].kI ;
params.level_pid.kp = fc.pid_group[PIDLEVEL].kP;
params.mag_pid.kd = fc.pid_group[PIDMAG].kD ;
params.mag_pid.ki = fc.pid_group[PIDMAG].kI;
params.mag_pid.kp = fc.pid_group[PIDMAG].kP ;
params.acc_offset = sensor.Acc_Offset ;
params.gyro_offset = sensor.Gyro_Offset ;
Params_Save();
}
}
void Params_setAccOffset(Vector3i offset)
{
params.acc_offset = offset;
sensor.Acc_Offset = offset;
}
void Params_setGyroOffset(Vector3i offset)
{
params.gyro_offset = offset;
sensor.Gyro_Offset = offset;
}
void Params_setRollPid(pid_t val)
{
params.roll_pid = val;
fc.pid_group[PIDROLL].kD = val.kd;
fc.pid_group[PIDROLL].kI = val.ki;
fc.pid_group[PIDROLL].kP = val.kp;
}
void Params_setPitchPid(pid_t val)
{
params.pitch_pid = val;
fc.pid_group[PIDPITCH].kD = val.kd;
fc.pid_group[PIDPITCH].kI = val.ki;
fc.pid_group[PIDPITCH].kP = val.kp;
}
void Params_setYawPid(pid_t val)
{
params.yaw_pid = val;
fc.pid_group[PIDYAW].kD = val.kd;
fc.pid_group[PIDYAW].kI = val.ki;
fc.pid_group[PIDYAW].kP = val.kp;
}
void Params_setAltPid(pid_t val)
{
params.alt_pid = val;
fc.pid_group[PIDALT].kD = val.kd;
fc.pid_group[PIDALT].kI = val.ki;
fc.pid_group[PIDALT].kP = val.kp;
}
void Params_setLevelPid(pid_t val)
{
params.level_pid = val;
fc.pid_group[PIDLEVEL].kD = val.kd;
fc.pid_group[PIDLEVEL].kI = val.ki;
fc.pid_group[PIDLEVEL].kP = val.kp;
}
void Params_setMagPid(pid_t val)
{
params.mag_pid = val;
fc.pid_group[PIDMAG].kD = val.kd;
fc.pid_group[PIDMAG].kI = val.ki;
fc.pid_group[PIDMAG].kP = val.kp;
}
bool Params_Read(void)
{
uint8_t *data;
data = (uint8_t *)¶ms;
EEPROM_Read(PARAMS_SAVE_ADDRESS,data,sizeof(params_t));
if(params.magic != MAGIC)
{
return false;
}
return true;
}
void Params_Save(void)
{
uint8_t *data;
params.magic = MAGIC;
data = (uint8_t *)¶ms;
EEPROM_Write(PARAMS_SAVE_ADDRESS,data,sizeof(params_t));
}
| [
"nongxiaoming@gmail.com"
] | nongxiaoming@gmail.com |
cef6ac05f3184f7832302002dc4132c59909fc58 | d33049720b378a043d3eb0cf676fedde4997184d | /Teme/ASD/Tema3/Liste_Polinoame/main.cpp | 444fd4493c74611215326b5a98264a507f4d017b | [] | no_license | AntonioDrk/MaterialeFMI2017-2018 | 033d5651fe7513bcf1cc29b2c7913f087ac5cbc2 | 8d0d4c677dc1ce50a439cf07a496da627409f3c7 | refs/heads/master | 2021-09-26T12:57:28.275473 | 2018-10-30T13:52:42 | 2018-10-30T13:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,899 | cpp | #include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
struct nod {
int info;
nod *next;
};
struct pol {
int gr,coef;
pol *next;
};
ifstream fin("in.in");
void inserareOrdonata(nod*&head, int &size, int x){
nod* p = head;
nod* tmp = nullptr;
if( p == nullptr){ /// Daca nu exista HEAD
p = new nod;
p->info = x;
p->next = nullptr;
head = p;
size++;
return;
}
if(x <= head->info){ /// Daca elementul pe care incerc sa-l inserez e mai mic decat HEAD
nod *q = new nod;
q->info = x;
q->next = head;
head = q;
size++;
return;
}
while(p != nullptr){ ///Parcurg sa vad unde trebuie inserat elementul
if(x >= p->info){
tmp = p;
}
p = p->next;
}
if(tmp != nullptr) ///Pe pozitia tmp (care e cu una la stanga fata de p) inseram in fata lui noul elem.
{
nod *q = new nod;
q->info = x;
q->next = tmp->next;
tmp->next = q;
size++;
}
}
void inserareOrdonataPolin(pol*&head, int &size, int grad, int coef){
pol* p = head;
pol* tmp = nullptr;
if( p == nullptr){ /// Daca nu exista HEAD
p = new pol;
p->gr = grad;
p->coef = coef;
p->next = nullptr;
head = p;
size++;
return;
}
if(grad <= head->gr){ /// Daca elementul pe care incerc sa-l inserez e mai mic decat HEAD
pol *q = new pol;
q->gr = grad;
q->coef = coef;
q->next = head;
head = q;
size++;
return;
}
while(p != nullptr){ ///Parcurg sa vad unde trebuie inserat elementul
if(grad >= p->gr){
tmp = p;
}
p = p->next;
}
if(tmp != nullptr) ///Pe pozitia tmp (care e cu una la stanga fata de p) inseram in fata lui noul elem.
{
pol *q = new pol;
q->gr = grad;
q->coef = coef;
q->next = tmp->next;
tmp->next = q;
size++;
}
}
void showList(nod* head){
nod* p = head;
if( p == nullptr ){
cout<< "Lista este goala";
return;
}
while( p != nullptr ){
cout << p->info << " ";
p = p->next;
}
}
void showListPolin(pol* head){ ///Afisarea polinomului
pol* p = head;
if( p == nullptr ){
cout<< "Polinomul nu exista";
return;
}
while( p != nullptr ){
cout << p->coef << "x^" << p->gr << " " ;
p = p->next;
}
cout << '\n';
}
/*void pushBack(pol *&vf, pol *&sf, int &size, int coef, int gr) {
size ++;
pol *p = new pol;
p->coef = coef;
p->gr = gr;
p->next = nullptr;
if(sf == nullptr) {
vf = sf = p;
} else {
sf->next = p;
sf = p;
}
}
void pushFront(pol *&vf, pol *&sf, int &size, int coef, int gr) {
size ++;
pol *p = new pol;
p->coef = coef;
p->gr = gr;
if(vf == nullptr) {
vf = sf = p;
p->urm = nullptr;
} else {
p->urm = vf;
vf = p;
}
}
void deleteAll(pol *vf, pol *sf, int &size) {
if( vf == sf ) {
cout << "Lista deja nu exista!" << '\n';
} else {
pol *p = vf;
pol *tmp = p;
while( p != nullptr ) {
tmp = p->urm;
delete p;
p = tmp;
}
vf = sf;
size = 0;
}
}
void sortList(pol *&vf, pol *&sf, int &size) {
pol* vf_rez,*sf_rez;
vf_rez = sf_rez = nullptr;
int size_rez = 0;
int min = vf->gr;
pol* minpointer = vf;
while(size > 0){
for(pol *p = vf; p != nullptr; p = p->urm){
if(p->gr < min){
min = p->gr;
minpointer = p;
}
}
pushBack(vf_rez,sf_rez,size_rez,minpointer->coef,minpointer->gr);
size--;
}
size = size_rez;
vf = vf_rez;
sf = sf_rez;
}*/
void citireLista(nod *&head, int &size){
int n;
fin >> n;
for(int i=0; i<n; i++){
int x;
fin >> x;
inserareOrdonata(head,size,x);
}
showList(head);
}
void citireListaPoli(pol *&head, int &size){
int n;
fin >> n;
for(int i=0; i<n; i++){
int grad,coef;
fin >> grad;
fin >> coef;
inserareOrdonataPolin(head,size,grad,coef);
}
showListPolin(head);
}
void problema2(){
int size1 = 0;
pol *head = nullptr;
int multiplier;
citireListaPoli(head,size1);
fin >> multiplier;
pol *p = head;
while(p != nullptr){
p->coef *= multiplier;
p = p->next;
}
showListPolin(head);
}
void problema3(){
int size1 = 0;
pol *head = nullptr;
int evalNumber;
int result = 0;
citireListaPoli(head,size1);
fin >> evalNumber;
pol* p = head;
while( p != nullptr ){
result += p->coef * pow(evalNumber, p->gr);
p = p->next;
}
cout << "P(" << evalNumber << ") = " << result;
}
void problema4(){
int size1, size2, size3;
size1 = size2 = size3 = 0;
pol *head1, *head2, *head3;
head1 = head2 = head3 = nullptr;
cout << "P(x) = ";
citireListaPoli(head1, size1);
cout << "+\nQ(x) = ";
citireListaPoli(head2, size2);
pol *p = (size1 >= size2)?head1:head2;
while(p != nullptr){
pol *q = (size1 <= size2)?head1:head2;
int ok = 0;
while(q != nullptr){
if(p->gr == q->gr){
int newCoef = p->coef + q->coef;
inserareOrdonataPolin(head3, size3, p->gr, newCoef);
ok = 1;
}
q = q->next;
}
if(ok == 0){
inserareOrdonataPolin(head3, size3, p->gr, p->coef);
}
p = p->next;
}
showListPolin(head3);
}
int main()
{
///nod* head = nullptr;
problema4();
return 0;
}
| [
"ekro98@gmail.com"
] | ekro98@gmail.com |
95e82cfe00379cb9dc3ce95a89e98615a3f36a95 | dd8437ee950bd46fc36505221f432e6bb4fb926b | /stage2/testRFID/testRFID.ino | 1c179339cb5fbc03d913810ef9f2d11b4fbcb3d3 | [] | no_license | alexbhandari/WTT | d5b7592f6e2f8dd0312592d159620e1e6ce8e0c6 | 34a851c93ec2582705371b9f99ad241b3a8095aa | refs/heads/master | 2016-09-11T01:07:14.354329 | 2014-07-18T21:15:04 | 2014-07-18T21:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | ino | #include <serLCD.h>
#include <SD.h>
#include <SoftwareSerial.h>
#include <SPI.h>
String tag="";
SoftwareSerial master(4, 5);
//Init
void setup()
{
// master.begin(9600,SERIAL_8O2);
master.begin(9600);
}
void loop()
{
master.print("rfid 9823732346\r");
delay(100);
master.print("rfid 1823798345\r");
delay(100);
}
| [
"alexbhandari@Alexs-MacBook-Air.local"
] | alexbhandari@Alexs-MacBook-Air.local |
19fc1fc55554bba93a0a7de7b88c165c48f4d3e0 | 81b6521d8204a962b908094deb8998c291cdb07b | /lightoj/1341.cpp | d76d3f48e6a4fde8655a9e82fcb663c54da88578 | [] | no_license | doldre/ACM | 9c86c242a347e5b31daa365ddf0e835af7468fa9 | 23e4694fee51831831b1346b8ccc0e97eebef20a | refs/heads/master | 2020-04-12T02:29:59.345719 | 2017-04-10T08:15:10 | 2017-04-10T08:15:10 | 55,833,991 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,002 | cpp | /************************************************
*Author :mathon
*Created Time :四 4/21 21:22:04 2016
*Problem class:
*************************************************/
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <stack>
using namespace std;
typedef pair<int, int> pii;
typedef long long ll;
typedef unsigned long long ull;
vector<int> vi;
#define xx first
#define yy second
#define sa(n) scanf("%d", &(n))
#define rep(i, a, n) for (int i = a; i < n; i++)
#define vep(c) for(decltype((c).begin() ) it = (c).begin(); it != (c).end(); it++)
#define pr(x) cout << #x << " " << x << " "
#define prln(x) cout << #x << " " << x << endl
const int maxn = 1e6 + 5;
int primes[maxn];
bool isprime[maxn];
int cntp = 0;
void init() {
memset(isprime, true, sizeof(isprime));
for (int i = 2; i < maxn; i++) {
if(isprime[i]) {
primes[cntp++] = i;
for (int j = i + i; j < maxn; j += i) {
isprime[j] = false;
}
}
}
}
int main(void)
{
#ifdef LOCAL
//freopen("in.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
#endif
int T;
init();
cin >> T;
for (int Cas = 1; Cas <= T; Cas++) {
ll a, b;
cin >> a >> b;
ll t = a;
if(a / b <= b) {
printf("Case %d: %d\n", Cas, 0);
continue;
}
int ans = 1;
for (int i = 0; i < cntp && primes[i] * primes[i] <= a; i++) {
int cnt = 0;
int x = primes[i];
while(a % x == 0) {
cnt++;
a /= x;
}
ans *= (cnt + 1);
}
if(a > 1) ans *= 2;
ans /= 2;
for (int i = 1; i < b; i++) {
if(t % i == 0) ans--;
}
printf("Case %d: %d\n", Cas, ans);
}
return 0;
}
| [
"luoxinchen96@gmail.com"
] | luoxinchen96@gmail.com |
f5764ce7e955d734bbf4bf81408b37b4b4821f8d | f1a9e001d3b56da3464101d68fcdd313e86ccf72 | /RaspPiFiles/serialTester/serialTester.ino | 5915870043b584416141e9a9110ad765f9ac55cc | [] | no_license | danielcagostinho/4G06parkme | c49b741c4770546de2bddfd65b9a7351ef6374ff | b64ff0c3a9d9de138bd5cc857d6642c18d280ca7 | refs/heads/master | 2020-03-30T16:51:27.277979 | 2019-03-25T17:00:31 | 2019-03-25T17:00:31 | 151,430,489 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,988 | ino |
#include <Ultrasonic.h>
// Declaration of Ultrasonic Pins
const unsigned int TxPin1 = 11; // Sensor 1 Trigger
const unsigned int RxPin1 = 10; // Sensor 1 Echo
const unsigned int TxPin2= 13; // Sensor 2 Trigger
const unsigned int RxPin2 = 12; // Sensor 2 Echo
const unsigned int TxPin3 = 7; // Sensor 3 Trigger
const unsigned int RxPin3 = 6; // Sensor 3 Echo
const unsigned int TxPin4 = 9; // Sensor 4 Trigger
const unsigned int RxPin4 = 8; // Sensor 4 Echo
// Sensor IDs
const char sensorID1[24] = "5c4946c9ac8f790000f001cf";
const char sensorID2[24] = "5c4be566bc01840000b851d3";
const char sensorID3[24] = "5c534fd3a2b1de00000ed7a3";
const char sensorID4[24] = "5c53504ea2b1de00000ed7a4";
// Other Pins
//int redPin1 = 5;
//int greenPin1 = 3;
//int ledCol1[] = {0,0};
// State Variables
bool read1 = false;
bool read2 = false;
bool read3 = false;
bool read4 = false;
bool loopdist = true;
// Threshold Distance
int threshold = 5; // Will sense at a range of 120cm
Ultrasonic sensor1(TxPin1, RxPin1);
Ultrasonic sensor2(TxPin2, RxPin2);
Ultrasonic sensor3(TxPin3, RxPin3);
Ultrasonic sensor4(TxPin4, RxPin4);
void setup()
{
Serial.begin(9600);
// pinMode(redPin0, OUTPUT);
// pinMode(greenPin0, OUTPUT);
pinMode(TxPin1, OUTPUT);
pinMode(RxPin1, INPUT);
pinMode(TxPin2, OUTPUT);
pinMode(RxPin2, INPUT);
pinMode(TxPin3, OUTPUT);
pinMode(RxPin3, INPUT);
pinMode(TxPin4, OUTPUT);
pinMode(RxPin4, INPUT);
}
void loop()
{
// int distance1 = sensor1.read(CM);
// int distance2 = sensor2.read(CM);
// int distance3 = sensor3.read(CM);
// int distance4 = sensor4.read(CM);
int distance1=100, distance2=100, distance3=100, distance4=100;
if (loopdist == true){
Serial.println("5c4946c9ac8f790000f001cf, 1"); // Sensor 1
Serial.println("5c4be566bc01840000b851d3, 1"); // Sensor 2
Serial.println("5c534fd3a2b1de00000ed7a3, 0"); // Sensor 3
Serial.println("5c53504ea2b1de00000ed7a4, 0"); // Sensor 4
loopdist = false;
} else {
Serial.println("5c4946c9ac8f790000f001cf,0");
Serial.println("5c4be566bc01840000b851d3,0");
Serial.println("5c534fd3a2b1de00000ed7a3,1");
Serial.println("5c53504ea2b1de00000ed7a4,1");
loopdist = false;
}
//
// //Check first sensor
// if (distance1 <= threshold && read1 == false) { // if it is within range and the previous state was unoccupied
// read1 = true; // set state to occupied
// Serial.println("5c4946c9ac8f790000f001cf,1");
// } else if(distance1 > threshold && read1 == true) { // if it is not within range and the previous state was occupiedM
// read1 = false;
// Serial.println("5c4946c9ac8f790000f001cf,0");
// }
// //Check second sensor
// if (distance2 <= threshold && read2 == false) { // if it is within range and the previous state was unoccupied
// read2 = true; // set state to occupied
// Serial.println("5c4be566bc01840000b851d3,1");
// } else if(distance2 > threshold && read2 == true) { // if it is not within range and the previous state was occupied
// read2 = false;
// Serial.println("5c4be566bc01840000b851d3,0");
// }
// //Check first sensor
// if (distance3 <= threshold && read3 == false) { // if it is within range and the previous state was unoccupied
// read3 = true; // set state to occupied
// Serial.println("5c534fd3a2b1de00000ed7a3,1");
// } else if(distance3 > threshold && read3 == true) { // if it is not within range and the previous state was occupied
// read3 = false;
// Serial.println("5c534fd3a2b1de00000ed7a3,0");
// }
// //Check first sensor
// if (distance4 <= threshold && read4 == false) { // if it is within range and the previous state was unoccupied
// read4 = true; // set state to occupied
// Serial.println("5c53504ea2b1de00000ed7a4,1");
// } else if(distance4 > threshold && read4 == true) { // if it is not within range and the previous state was occupied
// read4 = false;
// Serial.println("5c53504ea2b1de00000ed7a4,0");
// }
delay(10000);
}
| [
"danielcagostinho@gmail.com"
] | danielcagostinho@gmail.com |
39775c6417dafe8d6158c5b4356125fb9bd9f6d4 | 95a0807737ef2aab9dcb42ad94da846a77a5a00d | /hash-table/open-addressed-hash-table/include/open-addressed-hash-table.hpp | 6f7c8908e644c9f16d8c3d89dedbf198a6643cd0 | [] | no_license | rafaeltmbr/algorithm-data-structure | 82b052ba2b3edf98ce9a98f40943018fc74e9951 | e329bf81c65546dcc802cf7ae408b3525809d85d | refs/heads/master | 2020-06-10T23:22:28.677381 | 2019-08-02T16:54:29 | 2019-08-02T16:54:29 | 193,788,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,240 | hpp | #ifndef OPEN_ADDRESSED_HASH_TABLE_HPP
#define OPEN_ADDRESSED_HASH_TABLE_HPP
typedef void (*destroy_t)(void *data);
typedef bool (*match_t)(const void *data1, const void *data2);
typedef int (*hash_t)(const void *data, int keys);
class OpenAddressedHashTable {
protected:
int keys;
int size;
void **table;
void *empty;
match_t match;
destroy_t destroy_;
hash_t hash1, hash2;
int getIndex(void *data, int i);
public:
OpenAddressedHashTable(
int keys,
hash_t hash1 = nullptr,
hash_t hash2 = nullptr,
match_t match = nullptr,
destroy_t destroy = nullptr);
OpenAddressedHashTable(OpenAddressedHashTable &ohtable);
~OpenAddressedHashTable();
void destroy(void);
void destroy(destroy_t destroy);
void setMatch(match_t match) { this->match = match; };
void setHash1(hash_t hash1) { this->hash1 = hash1; };
void setHash2(hash_t hash2) { this->hash2 = hash2; };
void setDestroy(destroy_t destroy) { this->destroy_ = destroy; };
bool insert(void *data);
void* remove(void *data);
void* lookup(void *data);
int getSize(void) { return size; };
int getKeys(void) { return keys; };
};
#endif // OPEN_ADDRESSED_HASH_TABLE_HPP | [
"rafaeltmbr@gmail.com"
] | rafaeltmbr@gmail.com |
fdde25f1352dc47fe166da4cdf8b49d52c83614a | 832a52bc7c7810512dfb1846e1116d0c81995fcd | /Function/question 1/question 1/Source.cpp | 4ea3cc285fed7bd462c4aa0795041a107d9c8a4d | [] | no_license | RoryVaughn/Homework | be39c5b96a4045bc9bccc33036a636061660c52a | fe4e1ea99f1cdd097767277844e469141cdd8bc8 | refs/heads/master | 2020-04-16T08:04:34.661795 | 2015-10-21T16:46:33 | 2015-10-21T16:46:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | cpp | #include <iostream>
void PrintInteger(int variable)
{
std::cout << variable << std::endl;
}
int main()
{
int the_variable = 1;
PrintInteger(the_variable);
{
PrintInteger(the_variable);
int the_variable = 2;
PrintInteger(the_variable);
{
PrintInteger(the_variable);
int the_variable = 3;
PrintInteger(the_variable);
}
PrintInteger(the_variable);
}
PrintInteger(the_variable);
}//the output of this fuction is: 1, 1, 2, 2, 3, 2, 1
| [
"Rvaughn2525@gmail.com"
] | Rvaughn2525@gmail.com |
6cf22ceee78cfb63330ae9ac65cc8c293d3742a6 | a2b28ba3349304ccb01b10edd9378a446d13abe6 | /SWGHeightDump/engine/Breakpoint.h | 6eacd164844c871e1fdfa5371e1647870554a016 | [
"WTFPL"
] | permissive | TheAnswer/Tools | 9bec3570be8023c262eb7b6b4271bccad2008c48 | 880a68f618290445dd770e1b52176083244768f3 | refs/heads/master | 2023-08-17T07:44:54.870503 | 2020-05-10T20:32:32 | 2020-05-23T17:55:51 | 9,735,112 | 5 | 18 | null | null | null | null | UTF-8 | C++ | false | false | 440 | h | #ifndef BREAKPOINT_H_
#define BREAKPOINT_H_
class Breakpoint {
unsigned long address;
unsigned char originalData;
public:
Breakpoint(unsigned long address, unsigned char originalData) {
this->address = address;
this->originalData = originalData;
}
inline unsigned long getAddress() {
return address;
}
inline unsigned char getOriginalData() {
return originalData;
}
};
#endif /*BREAKPOINT_H_*/
| [
"TheAnswer@c3d1530f-68f5-4bd0-87dc-8ef779617e40"
] | TheAnswer@c3d1530f-68f5-4bd0-87dc-8ef779617e40 |
423c1820b5e5a21bde546201261adce66636fd72 | 29c59030394b01eba7d68aa10f3201f0a72da60e | /JobArrivalEvent.h | eed0cbb6a480ca49962ecb5181d5e18af13dcc49 | [] | no_license | alexandrahurst/SchedulingSimulator | a75c78f4c07267b1fa087e74823d1cb928374a83 | b9112b87fd74adbdd96bca680a57625cd213ed43 | refs/heads/master | 2020-03-16T20:31:41.678911 | 2018-05-25T08:31:14 | 2018-05-25T08:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | h | // Alexandra Hurst & Kalyani Khutale
// CISC-361
// 2018-05-24
// Final Project
#ifndef _JOB_ARRIVAL_EVENT_H_
#define _JOB_ARRIVAL_EVENT_H_
#include "Event.h"
#include "Job.h"
class SystemState;
class JobArrivalEvent : public Event {
public:
JobArrivalEvent(int time, Job job);
void process(SystemState& state);
Type get_type() const;
private:
Job m_job;
};
#endif // _JOB_ARRIVAL_EVENT_H_
| [
"alexa@Yin.alx"
] | alexa@Yin.alx |
0f3c831898bf50ea9f32763ed877bffbfaf4d17c | d38609ea8bdc9602fdfadeb9080350920b1c8726 | /src/MainSceneWidget.hpp | 9817c8f3b0e4a7fa468c7e351c90b6124ea17baa | [] | no_license | veleswel/PlayrixTestTask | 1517dc97e97337aefd4ab2d0335a6331eea4d936 | 96569ffb473d9df745d867a69f4f56c37842a7fb | refs/heads/master | 2020-03-22T00:45:04.923293 | 2019-07-02T17:54:03 | 2019-07-02T17:54:03 | 139,261,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,382 | hpp | #pragma once
#include "GameStateHandler.hpp"
class QuadTree;
class Wall;
typedef std::unique_ptr<Wall> WallPtr;
class Projectile;
typedef boost::intrusive_ptr<Projectile> ProjectilePtr;
class Cannon;
typedef std::unique_ptr<Cannon> CannonPtr;
class Bubble;
typedef boost::intrusive_ptr<Bubble> BubblePtr;
typedef std::unique_ptr<EffectsContainer> EffectsContainerPtr;
// Основной виджет в игре. Содержит все игровые объекты,
// контейнер с эффектами, обрабатывает пользовательский ввод,
// управляет состоянием игры, управляет определением и разрешением столкновений
class MainSceneWidget: public GUI::Widget
{
public:
MainSceneWidget(const std::string& name, rapidxml::xml_node<>* elem);
void Draw() override;
void Update(float dt) override;
void AcceptMessage(const Message& message) override;
bool MouseDown(const IPoint& mouse_pos) override;
virtual void KeyPressed(int keyCode) override;
protected:
void Init();
// Метод, который вычитывает из файла стартовые данные
void ReadInitialData();
// Метод, который вычитывает из файла пару "ключ-значение"
template<typename T>
T ReadLineAndGetValue(IO::TextReader* reader, const std::string& valueName)
{
std::string out, name, value;
T result = 0;
out = reader->ReadAsciiLine();
if (utils::ReadNvp(out, name, value) && name == valueName)
{
result = utils::lexical_cast<T>(value);
}
else
{
Log::Error("Failed to read data from file");
assert(false);
}
return result;
}
void StartNewGame();
void PauseGame();
void ResumeGame();
void Win();
void Loose();
void FinishGame();
void DrawFinishImageAndText();
void CalculateFinishImagePosition();
void UpdateCannon(float dt);
void UpdateGameItems(float dt);
void CheckAndResolveProjectilesCollisions(float dt, QuadTree& quadTree);
void CheckAndResolveBubblesCollisions(float dt, QuadTree& quadTree);
void DrawProjectiles();
void LaunchProjectile();
const FPoint CalculateProjectileStartPosition() const;
void RemoveProjectile(const ProjectilePtr& projectile);
void DrawBubbles();
void LaunchBubbles();
void RemoveBubble(const BubblePtr& projectile);
void FillQuadTree(QuadTree& quad);
protected:
static const float MinBubbleSpeed;
static const float MaxBubbleSpeed;
static const float BubbleLaunchScreenOffset;
static const float CannonPositionYOffset;
static const float InfoTextXOffset;
static const float LaunchedTextYOffset;
static const float BubblesTextYOffset;
static const float TimeTextYOffset;
static const float FinishImageYOffset;
static const float MenuEnterTextYOffset;
protected:
float _projectileSpeed;
int _startBubblesCount;
float _playTime;
const FPoint _startPosition;
const FRect _screenRect;
CannonPtr _cannon;
std::list<ProjectilePtr> _launchedProjectiles;
std::list<BubblePtr> _bubbles;
EffectsContainerPtr _effectContainer;
std::array<WallPtr, 4> _walls;
size_t _projectilesTotalLaunched;
Core::Timer _timer;
float _timeLeft;
Render::TexturePtr _background;
Render::TexturePtr _gameFinishImage;
IPoint _gameFinishPosition;
GameStateHandler& _gameStateHandlerRef;
};
| [
"alex.vlasenko1991@gmail.com"
] | alex.vlasenko1991@gmail.com |
b11225c2964a41768b284b7813a4539a71ed1534 | 9b30e07cfd0a9e2253041db66d0d236fe1abe17c | /AviSynthPlus/src/Anime4KCPPASP.cpp | c88b52995c7cb3f9dc1a98e52623c1d50288f2c2 | [
"MIT"
] | permissive | smoothmiao/Anime4KCPP | 32d4d0954548d02a04aa3ee1f2c17d5aaa0dd96a | 95173e282a556dfd98719e9e1ddb86947de8c683 | refs/heads/master | 2022-11-10T01:42:00.018548 | 2020-06-24T01:22:15 | 2020-06-24T01:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,233 | cpp | #include <avisynth.h>
#include "Anime4KCPP.h"
#ifdef _MSC_VER
#define AC_STDCALL __stdcall
#define AC_CDECL __cdecl
#define AC_DLL __declspec(dllexport)
#else
#define AC_STDCALL __attribute__((__stdcall__))
#define AC_CDECL __attribute__((__cdecl__))
#define AC_DLL
#endif
enum AC_Parameters
{
AC_passes = 1,
AC_pushColorCount = 2,
AC_strengthColor = 3,
AC_strengthGradient = 4,
AC_zoomFactor = 5,
AC_ACNet = 6,
AC_GPUMode = 7,
AC_HDN = 8,
AC_platformID = 9,
AC_deviceID = 10
};
class Anime4KCPPF : public GenericVideoFilter
{
public:
Anime4KCPPF(
PClip _child,
Anime4KCPP::Parameters& inputs,
bool CNN,
bool GPUMode,
unsigned int pID,
unsigned int dID,
IScriptEnvironment* env
);
PVideoFrame __stdcall GetFrame(int n, IScriptEnvironment* env);
private:
Anime4KCPP::Parameters parameters;
Anime4KCPP::Anime4KCreator anime4KCreator;
bool GPUMode;
bool CNN;
};
Anime4KCPPF::Anime4KCPPF(
PClip _child,
Anime4KCPP::Parameters& inputs,
bool CNN,
bool GPUMode,
unsigned int pID,
unsigned int dID,
IScriptEnvironment* env
) :
GenericVideoFilter(_child),
parameters(inputs),
anime4KCreator(GPUMode, CNN, pID, dID),
GPUMode(GPUMode),
CNN(CNN)
{
if (!vi.IsRGB24() && (!vi.IsYUV() || vi.BitsPerComponent() != 8 || !vi.IsPlanar()))
{
env->ThrowError("Anime4KCPP: RGB24 or planar YUV 8bit data only!");
}
if (vi.IsYUV() && !CNN)
{
env->ThrowError("Anime4KCPP: YUV only for ACNet!");
}
vi.height *= inputs.zoomFactor;
vi.width *= inputs.zoomFactor;
}
PVideoFrame AC_STDCALL Anime4KCPPF::GetFrame(int n, IScriptEnvironment* env)
{
PVideoFrame src = child->GetFrame(n, env);
PVideoFrame dst = env->NewVideoFrameP(vi, &src);
if (vi.IsYUV())
{
int srcPitchY = src->GetPitch(PLANAR_Y);
int dstPitchY = dst->GetPitch(PLANAR_Y);
int srcPitchU = src->GetPitch(PLANAR_U);
int dstPitchU = dst->GetPitch(PLANAR_U);
int srcPitchV = src->GetPitch(PLANAR_V);
int dstPitchV = dst->GetPitch(PLANAR_V);
int srcHY = src->GetHeight(PLANAR_Y);
int srcLY = src->GetRowSize(PLANAR_Y);
int srcHU = src->GetHeight(PLANAR_U);
int srcLU = src->GetRowSize(PLANAR_U);
int srcHV = src->GetHeight(PLANAR_V);
int srcLV = src->GetRowSize(PLANAR_V);
int dstHY = dst->GetHeight(PLANAR_Y);
int dstLY = dst->GetRowSize(PLANAR_Y);
int dstHU = dst->GetHeight(PLANAR_U);
int dstLU = dst->GetRowSize(PLANAR_U);
int dstHV = dst->GetHeight(PLANAR_V);
int dstLV = dst->GetRowSize(PLANAR_V);
const unsigned char* srcpY = src->GetReadPtr(PLANAR_Y);
const unsigned char* srcpU = src->GetReadPtr(PLANAR_U);
const unsigned char* srcpV = src->GetReadPtr(PLANAR_V);
unsigned char* dstpY = dst->GetWritePtr(PLANAR_Y);
unsigned char* dstpU = dst->GetWritePtr(PLANAR_U);
unsigned char* dstpV = dst->GetWritePtr(PLANAR_V);
unsigned char* srcDataY = new unsigned char[static_cast<size_t>(srcHY) * static_cast<size_t>(srcLY)];
unsigned char* srcDataU = new unsigned char[static_cast<size_t>(srcHU) * static_cast<size_t>(srcLU)];
unsigned char* srcDataV = new unsigned char[static_cast<size_t>(srcHV) * static_cast<size_t>(srcLV)];
for (int y = 0; y < srcHY; y++)
{
memcpy(srcDataY + y * static_cast<size_t>(srcLY), srcpY, srcLY);
srcpY += srcPitchY;
if (y < srcHU)
{
memcpy(srcDataU + y * static_cast<size_t>(srcLU), srcpU, srcLU);
srcpU += srcPitchU;
}
if (y < srcHV)
{
memcpy(srcDataV + y * static_cast<size_t>(srcLV), srcpV, srcLV);
srcpV += srcPitchV;
}
}
Anime4KCPP::Anime4K* anime4K;
if (GPUMode)
anime4K = anime4KCreator.create(parameters, Anime4KCPP::ProcessorType::GPUCNN);
else
anime4K = anime4KCreator.create(parameters, Anime4KCPP::ProcessorType::CPUCNN);
anime4K->loadImage(srcHY, srcLY, srcDataY, srcHU, srcLU, srcDataU, srcHV, srcLV, srcDataV);
anime4K->process();
size_t dstSize = anime4K->getResultDataPerChannelLength();
unsigned char* dstDataY = new unsigned char[dstSize];
unsigned char* dstDataU = new unsigned char[dstSize];
unsigned char* dstDataV = new unsigned char[dstSize];
anime4K->saveImage(dstDataY, dstDataU, dstDataV);
for (int y = 0; y < dstHY; y++)
{
memcpy(dstpY, dstDataY + y * static_cast<size_t>(dstLY), dstLY);
dstpY += dstPitchY;
if (y < dstHU)
{
memcpy(dstpU, dstDataU + y * static_cast<size_t>(dstLU), dstLU);
dstpU += dstPitchU;
}
if (y < dstHV)
{
memcpy(dstpV, dstDataV + y * static_cast<size_t>(dstLV), dstLV);
dstpV += dstPitchV;
}
}
anime4KCreator.release(anime4K);
delete[] dstDataY;
delete[] dstDataU;
delete[] dstDataV;
delete[] srcDataY;
delete[] srcDataU;
delete[] srcDataV;
return dst;
}
else
{
int srcPitch = src->GetPitch();
int dstPitch = dst->GetPitch();
int srcH = src->GetHeight();
int srcL = src->GetRowSize();
int dstH = dst->GetHeight();
int dstL = dst->GetRowSize();
const unsigned char* srcp = src->GetReadPtr();
unsigned char* dstp = dst->GetWritePtr();
unsigned char* srcData = new unsigned char[static_cast<size_t>(srcH) * static_cast<size_t>(srcL)];
for (int y = 0; y < srcH; y++)
{
memcpy(srcData + y * static_cast<size_t>(srcL), srcp, srcL);
srcp += srcPitch;
}
Anime4KCPP::Anime4K* anime4K;
if (CNN)
if (GPUMode)
anime4K = anime4KCreator.create(parameters, Anime4KCPP::ProcessorType::GPUCNN);
else
anime4K = anime4KCreator.create(parameters, Anime4KCPP::ProcessorType::CPUCNN);
else
if (GPUMode)
anime4K = anime4KCreator.create(parameters, Anime4KCPP::ProcessorType::GPU);
else
anime4K = anime4KCreator.create(parameters, Anime4KCPP::ProcessorType::CPU);
anime4K->loadImage(srcH, srcL / 3, srcData);
anime4K->process();
unsigned char* dstData = new unsigned char[anime4K->getResultDataLength()];
anime4K->saveImage(dstData);
for (int y = 0; y < dstH; y++)
{
memcpy(dstp, dstData + y * static_cast<size_t>(dstL), dstL);
dstp += dstPitch;
}
anime4KCreator.release(anime4K);
delete[] dstData;
delete[] srcData;
return dst;
}
}
AVSValue AC_CDECL createAnime4KCPP(AVSValue args, void* user_data, IScriptEnvironment* env)
{
Anime4KCPP::Parameters inputs(
args[AC_passes].AsInt(),
args[AC_pushColorCount].AsInt(),
args[AC_strengthColor].AsFloatf(),
args[AC_strengthGradient].AsFloatf(),
args[AC_zoomFactor].AsInt(),
false, false, false, false, 4, 40,std::thread::hardware_concurrency(),
args[AC_HDN].AsBool()
);
bool CNN = args[AC_ACNet].AsBool();
bool GPUMode = args[AC_GPUMode].AsBool();
unsigned int pID = args[AC_platformID].AsInt();
unsigned int dID = args[AC_deviceID].AsInt();
if (!args[AC_passes].Defined())
inputs.passes = 2;
if (!args[AC_pushColorCount].Defined())
inputs.pushColorCount = 2;
if (!args[AC_strengthColor].Defined())
inputs.strengthColor = 0.3;
if (!args[AC_strengthGradient].Defined())
inputs.strengthGradient = 1.0;
if (!args[AC_zoomFactor].Defined())
inputs.zoomFactor = 1.0;
if (!args[AC_ACNet].Defined())
CNN = false;
if (!args[AC_GPUMode].Defined())
GPUMode = false;
if (!args[AC_platformID].Defined())
pID = 0;
if (!args[AC_deviceID].Defined())
dID = 0;
if (inputs.strengthColor < 0.0 || inputs.strengthColor>1.0)
env->ThrowError("Anime4KCPP: strengthColor must range from 0 to 1!");
if (inputs.strengthGradient < 0.0 || inputs.strengthGradient>1.0)
env->ThrowError("Anime4KCPP: strengthGradient must range from 0 to 1!");
if (inputs.zoomFactor < 1.0)
env->ThrowError("Anime4KCPP: zoomFactor must be an integer which >= 1!");
if (GPUMode)
{
std::pair<bool, std::string> ret =
Anime4KCPP::Anime4KGPU::checkGPUSupport(pID, dID);
if (!ret.first)
{
std::ostringstream err;
err << "Anime4KCPP: The current device is unavailable" << std::endl
<< "Your input is: " << std::endl
<< " platform ID: " << pID << std::endl
<< " device ID: " << dID << std::endl
<< "Error: " << std::endl
<< " " + ret.second << std::endl;
env->ThrowError(err.str().c_str());
}
}
return new Anime4KCPPF(
args[0].AsClip(),
inputs,
CNN,
GPUMode,
pID,
dID,
env
);
}
AVSValue AC_CDECL listGPUs(AVSValue args, void* user_data, IScriptEnvironment* env)
{
env->ThrowError(Anime4KCPP::Anime4KGPU::listGPUs().second.c_str());
return AVSValue();
}
const AVS_Linkage* AVS_linkage = 0;
extern "C" AC_DLL const char* AC_STDCALL AvisynthPluginInit3(IScriptEnvironment * env, const AVS_Linkage* const vectors)
{
AVS_linkage = vectors;
env->AddFunction("listGPUs", "", listGPUs, 0);
env->AddFunction("Anime4KCPP",
"[src]c"
"[passes]i"
"[pushColorCount]i"
"[strengthColor]f"
"[strengthGradient]f"
"[zoomFactor]i"
"[ACNet]b"
"[GPUMode]b"
"[HDN]b"
"[platformID]i"
"[deviceID]i",
createAnime4KCPP, 0);
return "Anime4KCPP plugin for AviSynthPlus";
}
| [
"TianLin2112@outlook.com"
] | TianLin2112@outlook.com |
772e0fb1535223915459e4cfd984abac8bc891f2 | 32da1cd9597d377fdd5a75e7cadce72302f9f914 | /include/QRcode.h | 1b879d6749f5afc518f19c7504c455d508c5b595 | [] | no_license | 20SecondsToSun/PhotoBooth | 44df6c48b46734f49b4a1e27706d6820ac962518 | 02b315431b953aaea4b981a66ca1e83c212550d9 | refs/heads/master | 2016-09-06T00:17:29.384787 | 2014-12-17T10:52:29 | 2014-12-17T10:52:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 727 | h | #pragma once
#include "cinder/app/AppNative.h"
#include "cinder/gl/Texture.h"
#include "cinder/gl/gl.h"
#include "cinder/Text.h"
#include "PreloaderCircle.h"
#include "AssetsManager.h"
#include "Utils.h"
using namespace std;
class QRcode
{
public:
void draw();
void setup();
void drawError();
bool isReady, isRender;
void setTexture(ci::gl::Texture qrCodeTexture);
void setLink(std::string link, ci::Font qrCodeFont);
void setTextureString(std::string str);
private:
ci::gl::Texture qrCodeTextTexture;
ci::gl::Texture qrCodeTexture, *errorTexture;
ci::Font qrCodeFont;
std::string url;
std::string stringQrcode;
gl::Texture loadImageFromString(std::string value);
}; | [
"yurikblech@gmail.com"
] | yurikblech@gmail.com |
f53d9fac32a4aec11aa5fe8b42c718e6f56416aa | 046b675cb8529d1585a688f21563eb0209c94f19 | /src/Control2012/libreoffice/com/sun/star/sheet/Solver.hpp | b93b506ea3f117baeda8650a95ac5b56f34eec18 | [] | no_license | yoshi5534/schorsch-the-robot | a2a4bd35668600451e53bd8d7f879df90dcb9994 | 77eb8dcabaad5da3908d6b4b78a05985323f9ba4 | refs/heads/master | 2021-03-12T19:41:35.524173 | 2013-04-17T20:00:29 | 2013-04-17T20:00:29 | 32,867,962 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,478 | hpp | #ifndef INCLUDED_COM_SUN_STAR_SHEET_SOLVER_HPP
#define INCLUDED_COM_SUN_STAR_SHEET_SOLVER_HPP
#include "sal/config.h"
#include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/XComponentContext.hpp"
#include "com/sun/star/uno/Exception.hpp"
#include "com/sun/star/uno/DeploymentException.hpp"
#include "com/sun/star/lang/XMultiComponentFactory.hpp"
#include "com/sun/star/sheet/XSolver.hpp"
#include "com/sun/star/uno/Reference.hxx"
#include "cppu/unotype.hxx"
#include "rtl/ustring.h"
#include "rtl/ustring.hxx"
namespace com { namespace sun { namespace star { namespace sheet {
class Solver {
public:
static ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSolver > create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & the_context) {
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiComponentFactory > the_factory(the_context->getServiceManager());
if (!the_factory.is()) {
throw ::com::sun::star::uno::DeploymentException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("component context fails to supply service manager")), the_context);
}
::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSolver > the_instance;
try {
the_instance = ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSolver >(the_factory->createInstanceWithContext(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.Solver")), the_context), ::com::sun::star::uno::UNO_QUERY);
} catch (::com::sun::star::uno::RuntimeException &) {
throw;
} catch (::com::sun::star::uno::Exception & the_exception) {
throw ::com::sun::star::uno::DeploymentException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("component context fails to supply service com.sun.star.sheet.Solver of type com.sun.star.sheet.XSolver: ")) + the_exception.Message, the_context);
}
if (!the_instance.is()) {
throw ::com::sun::star::uno::DeploymentException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("component context fails to supply service com.sun.star.sheet.Solver of type com.sun.star.sheet.XSolver")), the_context);
}
return the_instance;
}
private:
Solver(); // not implemented
Solver(Solver &); // not implemented
~Solver(); // not implemented
void operator =(Solver); // not implemented
};
} } } }
#endif // INCLUDED_COM_SUN_STAR_SHEET_SOLVER_HPP
| [
"schorsch@localhost"
] | schorsch@localhost |
062af515e761e9f41bb8af19eb7ec4cd837a2930 | 26354b1d3331e153f5ed4de61245435b1dd3c654 | /1st/path_sum.cpp | dab7a88e3c5c29623d8beacb48ff99449ae3b655 | [] | no_license | buptlxb/leetcode | 90203be80a038c54a34d4ec829c4805fc26a1689 | b641419de040801c4f54618d7ee26edcf10ee53c | refs/heads/master | 2020-04-05T23:47:54.990923 | 2016-09-11T14:10:30 | 2016-09-11T14:10:30 | 33,243,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,121 | cpp | #include <iostream>
#include <vector>
using std::cout;
using std::endl;
using std::vector;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
bool hasPathSum(TreeNode *root, int sum) {
if (!root)
return false;
vector<TreeNode*> stack;
vector<int> sums;
stack.push_back(root);
sums.push_back(root->val);
while (!stack.empty()) {
TreeNode *tmp = stack.back();
if (tmp->left) {
stack.push_back(tmp->left);
sums.push_back(sums.back() + tmp->left->val);
} else if (tmp->right) {
stack.pop_back();
int cur_sum = sums.back();
sums.pop_back();
stack.push_back(tmp->right);
sums.push_back(cur_sum + tmp->right->val);
} else {
if (sums.back() == sum) {
return true;
}
stack.pop_back();
sums.pop_back();
while (!stack.empty() && stack.back()->right == NULL) {
stack.pop_back();
sums.pop_back();
}
if (!stack.empty()) {
TreeNode *tmp = stack.back();
stack.pop_back();
stack.push_back(tmp->right);
int cur_sum = sums.back();
sums.pop_back();
sums.push_back(cur_sum + tmp->right->val);
}
}
}
return false;
}
};
int main(void)
{
TreeNode root(5);
TreeNode t1(4);
TreeNode t2(8);
TreeNode t3(11);
TreeNode t4(13);
TreeNode t5(4);
TreeNode t6(7);
TreeNode t7(2);
TreeNode t8(1);
root.left = &t1;
root.right = &t2;
t1.left = &t3;
t2.left = &t4;
t2.right = &t5;
t3.left = &t6;
t3.right = &t7;
t5.right = &t8;
int sum = 22;
cout << Solution().hasPathSum(&root, sum) << endl;
return 0;
}
| [
"buptlxb@gmail.com"
] | buptlxb@gmail.com |
927037bd230a5b76813abc3e1fbe16c8d6afeb1a | b7d4e7e24f6b37c990c45c96b837798d7e229f14 | /prototype/point-cloud-streaming/pcd_read/pcd_read.cpp | adac389660293bb075d6eedff07f2b226a645b77 | [
"MIT"
] | permissive | taimooralam/master-thesis | f16725bbbbb125a3a169c023f55a2546fe21a383 | dcb988a2866e65e2faef67627428d1ffd1c0182e | refs/heads/master | 2020-04-09T05:05:56.356492 | 2018-12-16T23:57:15 | 2018-12-16T23:57:15 | 160,051,042 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,578 | cpp | #include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/io/tar.h>
#include <boost/any.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <pcl/compression/octree_pointcloud_compression.h>
#include <sstream>
#include <typeinfo>
#include "base64.h"
namespace fs = boost::filesystem;
class Comdecomp
{
public:
Comdecomp(){
//constructor
showStatistics = false;
compressionProfile = pcl::io::MED_RES_ONLINE_COMPRESSION_WITHOUT_COLOR;
PointCloudEncoder = new pcl::io::OctreePointCloudCompression<pcl::PointXYZ>(compressionProfile, showStatistics);
PointCloudDecoder = new pcl::io::OctreePointCloudCompression<pcl::PointXYZ>();
//Open the fifo here
char * fifo = "/tmp/pipe.log";
mkfifo(fifo, 0777);
std::cout << " o ";
fd_fifo = open(fifo, O_WRONLY);
std::cout << "cc " << std::endl;
}
bool showStatistics;
pcl::io::compression_Profiles_e compressionProfile;
pcl::io::OctreePointCloudCompression<pcl::PointXYZ>* PointCloudEncoder;
pcl::io::OctreePointCloudCompression<pcl::PointXYZ>* PointCloudDecoder;
int fd_fifo;
int read_decompressed(std::string filename, pcl::PointCloud<pcl::PointXYZ>::Ptr cloud){
return pcl::io::loadPCDFile<pcl::PointXYZ>(filename, *cloud);
}
int write_compressed(std::stringstream &stream){
//TODO: write a compressed stringstream to a file
//send the string stream to the fifo here
const std::string& tmp = stream.str();
//std::cout << "last 50 characters of compressed data: \n" << tmp.substr(tmp.length()-50) << std::endl;
std::cout << " Compressed: " << tmp.length() << std::endl;
//std::cout << tmp.length() << std::endl;
std::string encoded = base64_encode(reinterpret_cast<const unsigned char*>(tmp.c_str()), tmp.length()) + "~";
std::cout << "Encoded: " << encoded.length() << std::endl;
const char* cstr = encoded.c_str();
write(fd_fifo, cstr, encoded.length()); //todo: correct the arguments here
std::cout << " w ";
return 0;
}
~Comdecomp(){
//std::cout << "Destroying Compdecomp: \n";
delete PointCloudEncoder;
delete PointCloudDecoder;
//close the fifo here
close(fd_fifo);
}
};
int main(int argc, char ** argv){
//std::ofstream out("out.txt");
//std::streambuf *coutbuf = std::cout.rdbuf(); //save old buf
//std::cout.rdbuf(out.rdbuf()); //redirect std::cout to out.txt!
std::cout << "Start ---- " << std::endl;
Comdecomp codec;
fs::path targetDir(argv[1]);
fs::directory_iterator it(targetDir), eod;
BOOST_FOREACH(fs::path const&p, std::make_pair(it, eod)){
if(fs::is_regular_file(p)){
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);
//if(pcl::io::loadPCDFile<pcl::PointXYZ> ("test_pcd.pcd", *cloud) == -1){
std::string filename = p.string();
std::cout << p << std::endl;
if(codec.read_decompressed(filename, cloud) == -1){
std::cout << p << std::endl;
PCL_ERROR("Could read the file \n");
}else{
std::cout << "\n L ";
}
std::stringstream compressed_data;
codec.PointCloudEncoder->encodePointCloud(cloud, compressed_data);
codec.write_compressed(compressed_data);
//std::cout << compressed_data.str().size() << std::endl;
//std::cout << typeid(compressed_data).name() << std::endl;
//std::cout << "Loaded "
//<< cloud->width * cloud->height
//<< " data points from test_pcd.pcd with the following fields: " << std::endl;
}else{
std::cout << "Not a regular file" << std::endl;
}
}
//std::cout.rdbuf(coutbuf); //reset to standard output again
return 0;
}
| [
"taimoor.alam12@gmail.com"
] | taimoor.alam12@gmail.com |
9309c114ad09da4f4ce78406fca487b0ee4c8fd2 | 7ecc73e396a81519cb1b1cec4c1d704e22cdd47d | /P1126.cpp | 9c1c5533904ddb5acb9d6e3af582ea951a4ef43c | [] | no_license | NiaBie/luogu | 8f1c528372e067b43bdef4e44786c8618f1818fc | 810e47d43636fa410a1328ec4be49b14749e94c1 | refs/heads/master | 2020-06-03T06:27:18.999023 | 2019-09-28T01:06:40 | 2019-09-28T01:06:40 | 168,447,793 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,836 | cpp | #include <stdio.h>
#include <assert.h>
#include <queue>
using namespace std;
const int MAXN = 60;
const int INF = 0xfffffff;
struct fuck
{
int x, y;
int dir;
int my_time;
};
queue <fuck> que;
fuck src, dest;
int my_map[MAXN][MAXN] = {0};
int visit[MAXN][MAXN][4] = {0};
int m, n;
int neigh[4][2];
int steps[12][2];
int ans = INF;
int my_min(int a, int b)
{
if (a < b)
return a;
return b;
}
int bfs(int x, int y, char dir);
int main()
{
char dir[2];
int i, j, k;
int x, y;
int temp;
neigh[0][0] = +0, neigh[0][1] = +0;
neigh[1][0] = +0, neigh[1][1] = +1;
neigh[2][0] = +1, neigh[2][1] = +0;
neigh[3][0] = +1, neigh[3][1] = +1;
steps[0][0] = -1; steps[0][1] = +0;// N
steps[1][0] = +0; steps[1][1] = +1;// E
steps[2][0] = +1; steps[2][1] = +0;// S
steps[3][0] = +0; steps[3][1] = -1;// W
steps[4][0] = -2; steps[4][1] = +0;// N
steps[5][0] = +0; steps[5][1] = +2;// E
steps[6][0] = +2; steps[6][1] = +0;// S
steps[7][0] = +0; steps[7][1] = -2;// W
steps[8][0] = -3; steps[8][1] = +0;// N
steps[9][0] = +0; steps[9][1] = +3;// E
steps[10][0] = +3; steps[10][1] = +0;// S
steps[11][0] = +0; steps[11][1] = -3;// W
scanf("%d%d", &n, &m);
for (i = 0; i < n; i ++)
{
for (j = 0; j < m; j ++)
{
scanf("%d", &temp);
if (temp == 1)
{
for (k = 0; k < 4; k ++)
{
x = i + neigh[k][0];
y = j + neigh[k][1];
if (x >= 0 && x <= n && y >= 0 && y <= m)// n + 1, m + 1
{
my_map[x][y] = 2;
}
}
}
}
}
n ++, m ++;
for (i = 0; i < n; i ++)
my_map[i][0] = my_map[i][m - 1] = 2;
for (i = 0; i < m; i ++)
my_map[0][i] = my_map[n - 1][i] = 2;
/*
printf("\n");
for (i = 0; i < n; i ++)
{
for (j = 0; j < m; j ++)
{
printf("%d ", my_map[i][j]);
}
printf("\n");
}
*/
scanf("%d%d%d%d%s", &src.x, &src.y, &dest.x, &dest.y, dir);
if (bfs(src.x, src.y, dir[0]) == 1)
printf("%d\n", ans);
else
printf("-1\n");
return 0;
}
int bfs(int x, int y, char dir)
{
int i, j;
fuck u, v;
u.x = x, u.y = y, u.my_time = 0;
switch (dir)
{
case 'N':
u.dir = 0; break;
case 'E':
u.dir = 1; break;
case 'S':
u.dir = 2; break;
case 'W':
u.dir = 3; break;
default: assert(0);
}
que.push(u);
while (que.empty() == 0)
{
u = que.front();
que.pop();
assert(u.dir <= 3 && u.dir >= 0);
//printf("pop x:%d y:%d dir:%d time:%d\n", u.x, u.y, u.dir, u.my_time);
if (u.x == dest.x && u.y == dest.y)
{
ans = my_min(ans, u.my_time);
}
for (i = 0; i < 4; i ++)
{
for (j = 0; j < 12; j += 4)
{
v.x = u.x + steps[i + j][0];// init x
v.y = u.y + steps[i + j][1];// init y
if (v.x >= 0 && v.x < n && v.y >= 0 && v.y < m)
{
if (my_map[v.x][v.y] < 2)
{
v.dir = i%4;// init dir
v.my_time = u.my_time + 1;
switch ((u.dir + 4 - v.dir)%4)
{
case 0:
break;
case 1:
case 3:
v.my_time ++; break;
case 2:
v.my_time += 2; break;
default: assert(0);
}// init time
if (visit[v.x][v.y][v.dir] == 0 || visit[v.x][v.y][v.dir] > v.my_time)
{
visit[v.x][v.y][v.dir] = v.my_time;
//printf("push x:%d y:%d dir:%d time:%d\n", v.x, v.y, v.dir, v.my_time);
que.push(v);
}
}
else
{
break;
}
}
else
{
break;
}
}
}
}
if (ans == INF)
return 0;
return 1;
}
| [
"1197225628@qq.com"
] | 1197225628@qq.com |
f6ceb2d5e3b3754b06af4ee624a3a6a5440179c0 | 83b83a353272b536e9f8df67f5fcc8a093dd4f02 | /kernel.cpp | cd813e232da86fbde35b1c7a56cf630348b89b64 | [
"MIT"
] | permissive | dougcoburn/minkernel | 2cd5ad2e98e0024e069036a09d9c000b8f868101 | a06291757b8ec9224ee4296ae2dfb03fe344c9fb | refs/heads/master | 2020-04-08T08:55:24.381913 | 2018-11-26T16:29:49 | 2018-11-27T05:36:20 | 159,199,703 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 819 | cpp | unsigned short * const VideoMemory = (unsigned short* const)0xb8000;
void clear() { // 80 cols x 25 rows x 2 bytes
int pos = 0;
for (int col = 0; col < 80; col += 1) {
for (int row = 0; row < 25; row += 1) {
VideoMemory[pos++] = (0x0A00 | ' ');
}
}
}
void printf(const char* str) {
for (int i = 0; str[i] != '\0'; i += 1) {
VideoMemory[i] = (VideoMemory[i] & 0xFF00) | str[i];
}
}
using constructor = void (*)();
extern "C" constructor start_ctors;
extern "C" constructor end_ctors;
extern "C" void callConstructors() {
for (constructor* p = &start_ctors; p != &end_ctors; p++) {
(*p)();
}
}
extern "C" void kernelMain(void* multiboot_structure, unsigned int magicnumber) {
clear();
printf("Hello, World!");
while(true); // spin
}
| [
"doug@numetric.com"
] | doug@numetric.com |
fc247cdf0301b69f95600a63c7f75303c4df04af | 4eaa809ac3f505b83e33172b1d4a099e71c2926a | /openFoam/cases/heavingCylinder/1/uniform/profilingInfo | ad059fce09bbbb9459bcda56d264e76bb4e5f561 | [
"MIT"
] | permissive | krajit/krajit.github.io | 3c4326b8c8b674afd7bbf735caca95824ed194ed | 5f81be0c4b940c3a6a2646c166f99d0c3b515432 | refs/heads/master | 2021-12-04T22:40:12.267880 | 2021-12-02T01:42:03 | 2021-12-02T01:42:03 | 98,024,086 | 1 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 8,098 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class regIOobject;
location "1/uniform";
object profilingInfo;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
profilingInfo
(
{
id 29;
parentId 28;
description "Foam::Time::writeObject - outputTime";
calls 90;
totalTime 6.500284;
childTime 0;
onStack 1;
}
{
id 28;
parentId 1;
description "Foam::Time::writeObject";
calls 90;
totalTime 6.501319;
childTime 6.500284;
onStack 1;
}
{
id 1;
description "application::main";
calls 1;
totalTime 62.116727;
childTime 15.503189;
onStack 1;
}
{
id 13;
parentId 1;
description "MULES::explicitSolve";
calls 270;
totalTime 1.785667;
childTime 0;
onStack 0;
}
{
id 7;
parentId 6;
description "functionObjectList::read";
calls 1;
totalTime 1.2e-05;
childTime 0;
onStack 0;
}
{
id 30;
parentId 1;
description "functionObjects_.execute()";
calls 89;
totalTime 0.001012;
childTime 0;
onStack 0;
}
{
id 6;
parentId 1;
description "functionObjects_.start()";
calls 1;
totalTime 2.9e-05;
childTime 1.2e-05;
onStack 0;
}
{
id 14;
parentId 1;
description "fvMatrix::solve_U";
calls 90;
totalTime 0.572828;
childTime 0.420817;
onStack 0;
}
{
id 8;
parentId 1;
description "fvMatrix::solve_cellDisplacement";
calls 90;
totalTime 1.625932;
childTime 1.542191;
onStack 0;
}
{
id 24;
parentId 1;
description "fvMatrix::solve_epsilon";
calls 90;
totalTime 0.287244;
childTime 0.241469;
onStack 0;
}
{
id 26;
parentId 1;
description "fvMatrix::solve_k";
calls 90;
totalTime 0.249015;
childTime 0.233246;
onStack 0;
}
{
id 2;
parentId 1;
description "fvMatrix::solve_pcorr";
calls 1;
totalTime 0.029091;
childTime 0.02888;
onStack 0;
}
{
id 19;
parentId 1;
description "fvMatrix::solve_pd";
calls 360;
totalTime 4.451052;
childTime 4.374192;
onStack 0;
}
{
id 16;
parentId 15;
description "lduMatrix::smoother_Ux";
calls 90;
totalTime 0.191478;
childTime 0;
onStack 0;
}
{
id 18;
parentId 17;
description "lduMatrix::smoother_Uy";
calls 90;
totalTime 0.185628;
childTime 0;
onStack 0;
}
{
id 15;
parentId 14;
description "lduMatrix::solver_Ux";
calls 90;
totalTime 0.214249;
childTime 0.191478;
onStack 0;
}
{
id 17;
parentId 14;
description "lduMatrix::solver_Uy";
calls 90;
totalTime 0.206568;
childTime 0.185628;
onStack 0;
}
{
id 9;
parentId 8;
description "lduMatrix::solver_cellDisplacementx";
calls 90;
totalTime 0.997556;
childTime 0.037178;
onStack 0;
}
{
id 11;
parentId 8;
description "lduMatrix::solver_cellDisplacementy";
calls 90;
totalTime 0.544635;
childTime 0.017643;
onStack 0;
}
{
id 5;
parentId 4;
description "lduMatrix::solver_coarsestLevelCorr";
calls 8;
totalTime 0.000339;
childTime 0;
onStack 0;
}
{
id 10;
parentId 9;
description "lduMatrix::solver_coarsestLevelCorr";
calls 420;
totalTime 0.037178;
childTime 0;
onStack 0;
}
{
id 12;
parentId 11;
description "lduMatrix::solver_coarsestLevelCorr";
calls 226;
totalTime 0.017643;
childTime 0;
onStack 0;
}
{
id 21;
parentId 20;
description "lduMatrix::solver_coarsestLevelCorr";
calls 875;
totalTime 0.054362;
childTime 0;
onStack 0;
}
{
id 23;
parentId 22;
description "lduMatrix::solver_coarsestLevelCorr";
calls 546;
totalTime 0.026767;
childTime 0;
onStack 0;
}
{
id 4;
parentId 3;
description "lduMatrix::solver_dummy";
calls 1;
totalTime 0.02858;
childTime 0.000339;
onStack 0;
}
{
id 22;
parentId 20;
description "lduMatrix::solver_dummy";
calls 90;
totalTime 2.039453;
childTime 0.026767;
onStack 0;
}
{
id 25;
parentId 24;
description "lduMatrix::solver_epsilon";
calls 90;
totalTime 0.241469;
childTime 0;
onStack 0;
}
{
id 27;
parentId 26;
description "lduMatrix::solver_k";
calls 90;
totalTime 0.233246;
childTime 0;
onStack 0;
}
{
id 3;
parentId 2;
description "lduMatrix::solver_pcorr";
calls 1;
totalTime 0.02888;
childTime 0.02858;
onStack 0;
}
{
id 20;
parentId 19;
description "lduMatrix::solver_pd";
calls 360;
totalTime 4.374192;
childTime 2.093815;
onStack 0;
}
);
// ************************************************************************* //
| [
"ajitkumar22@gmail.com"
] | ajitkumar22@gmail.com | |
1096ca607da67056f6b883fc967c27eea838fca2 | a81c07a5663d967c432a61d0b4a09de5187be87b | /ui/ozone/platform/x11/x11_surface_factory.h | 35dad5d886456ca03e16e6449423f6f7cf315ef9 | [
"BSD-3-Clause"
] | permissive | junxuezheng/chromium | c401dec07f19878501801c9e9205a703e8643031 | 381ce9d478b684e0df5d149f59350e3bc634dad3 | refs/heads/master | 2023-02-28T17:07:31.342118 | 2019-09-03T01:42:42 | 2019-09-03T01:42:42 | 205,967,014 | 2 | 0 | BSD-3-Clause | 2019-09-03T01:48:23 | 2019-09-03T01:48:23 | null | UTF-8 | C++ | false | false | 1,291 | h | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_OZONE_PLATFORM_X11_X11_SURFACE_FACTORY_H_
#define UI_OZONE_PLATFORM_X11_X11_SURFACE_FACTORY_H_
#include <memory>
#include <vector>
#include "base/macros.h"
#include "gpu/vulkan/buildflags.h"
#include "ui/gl/gl_surface.h"
#include "ui/ozone/public/gl_ozone.h"
#include "ui/ozone/public/surface_factory_ozone.h"
namespace ui {
// Handles GL initialization and surface/context creation for X11.
class X11SurfaceFactory : public SurfaceFactoryOzone {
public:
X11SurfaceFactory();
~X11SurfaceFactory() override;
// SurfaceFactoryOzone:
std::vector<gl::GLImplementation> GetAllowedGLImplementations() override;
GLOzone* GetGLOzone(gl::GLImplementation implementation) override;
#if BUILDFLAG(ENABLE_VULKAN)
std::unique_ptr<gpu::VulkanImplementation> CreateVulkanImplementation(
bool allow_protected_memory,
bool enforce_protected_memory) override;
#endif
private:
std::unique_ptr<GLOzone> glx_implementation_;
std::unique_ptr<GLOzone> egl_implementation_;
DISALLOW_COPY_AND_ASSIGN(X11SurfaceFactory);
};
} // namespace ui
#endif // UI_OZONE_PLATFORM_X11_X11_SURFACE_FACTORY_H_
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
b608b288e051f3aeef84349c5dc9ab7f344ec1de | 9b4839ef9563a206882b65da1b2d101baf1bcbad | /aten/src/ATen/native/BatchLinearAlgebra.cpp | 4c6d231379235d60413874deae1edb62324f6ebf | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | jcooky/pytorch | ced9221062c57dfc18b2f0bc330d3b3420c9ed40 | c36b77fcdad3d54227cf0fd51693eb57035002c0 | refs/heads/master | 2020-04-27T05:39:53.429136 | 2019-09-02T09:58:21 | 2019-09-02T09:59:47 | 174,086,657 | 1 | 0 | NOASSERTION | 2019-03-06T06:37:21 | 2019-03-06T06:37:21 | null | UTF-8 | C++ | false | false | 45,429 | cpp | #include <ATen/ATen.h>
#include <ATen/CPUApplyUtils.h>
#include <ATen/Dispatch.h>
#include <ATen/NativeFunctions.h>
#include <ATen/ExpandUtils.h>
#include <ATen/native/LinearAlgebraUtils.h>
#include <ATen/Parallel.h>
#include <TH/TH.h> // for USE_LAPACK
#include <vector>
// First the required LAPACK implementations are registered here.
// A comment above the registered LAPACK routine suggest which batched
// linear algebra function uses that routine
#ifdef USE_LAPACK
// gesv
extern "C" void dgesv_(int *n, int *nrhs, double *a, int *lda, int *ipiv, double *b, int *ldb, int *info);
extern "C" void sgesv_(int *n, int *nrhs, float *a, int *lda, int *ipiv, float *b, int *ldb, int *info);
// getrf
extern "C" void dgetrf_(int *m, int *n, double *a, int *lda, int *ipiv, int *info);
extern "C" void sgetrf_(int *m, int *n, float *a, int *lda, int *ipiv, int *info);
// getri
extern "C" void dgetri_(int *n, double *a, int *lda, int *ipiv, double *work, int *lwork, int *info);
extern "C" void sgetri_(int *n, float *a, int *lda, int *ipiv, float *work, int *lwork, int *info);
// potrs
extern "C" void dpotrs_(char *uplo, int *n, int *nrhs, double *a, int *lda, double *b, int *ldb, int *info);
extern "C" void spotrs_(char *uplo, int *n, int *nrhs, float *a, int *lda, float *b, int *ldb, int *info);
// potrf
extern "C" void dpotrf_(char *uplo, int *n, double *a, int *lda, int *info);
extern "C" void spotrf_(char *uplo, int *n, float *a, int *lda, int *info);
// trtrs
extern "C" void dtrtrs_(char *uplo, char *trans, char *diag, int *n, int *nrhs, double *a, int *lda, double *b, int *ldb, int *info);
extern "C" void strtrs_(char *uplo, char *trans, char *diag, int *n, int *nrhs, float *a, int *lda, float *b, int *ldb, int *info);
// geqrf
extern "C" void dgeqrf_(int *m, int *n, double *a, int *lda, double *tau, double *work, int *lwork, int *info);
extern "C" void sgeqrf_(int *m, int *n, float *a, int *lda, float *tau, float *work, int *lwork, int *info);
// orgqr
extern "C" void dorgqr_(int *m, int *n, int *k, double *a, int *lda, double *tau, double *work, int *lwork, int *info);
extern "C" void sorgqr_(int *m, int *n, int *k, float *a, int *lda, float *tau, float *work, int *lwork, int *info);
// syev
extern "C" void dsyev_(char *jobz, char *uplo, int *n, double *a, int *lda, double *w, double *work, int *lwork, int *info);
extern "C" void ssyev_(char *jobz, char *uplo, int *n, float *a, int *lda, float *w, float *work, int *lwork, int *info);
// gesdd
extern "C" void dgesdd_(char *jobz, int *m, int *n, double *a, int *lda,
double *s, double *u, int *ldu, double *vt, int *ldvt, double *work, int *lwork, int *iwork, int *info);
extern "C" void sgesdd_(char *jobz, int *m, int *n, float *a, int *lda,
float *s, float *u, int *ldu, float *vt, int *ldvt, float *work, int *lwork, int *iwork, int *info);
// getrs
extern "C" void dgetrs_(char *trans, int *n, int *nrhs, double *a, int *lda, int *ipiv, double *b, int *ldb, int *info);
extern "C" void sgetrs_(char *trans, int *n, int *nrhs, float *a, int *lda, int *ipiv, float *b, int *ldb, int *info);
#endif
namespace at {
namespace native {
// Define the per-batch functions to be used in the main implementation of the batched
// linear algebra operations
template<class scalar_t>
void lapackSolve(int n, int nrhs, scalar_t *a, int lda, int *ipiv, scalar_t *b, int ldb, int *info) {
AT_ERROR("solve only takes float or double Tensors");
}
template<class scalar_t>
void lapackLu(int m, int n, scalar_t *a, int lda, int *ipiv, int *info) {
AT_ERROR("lu only takes float or double Tensors");
}
template<class scalar_t>
void lapackGetri(int n, scalar_t *a, int lda, int *ipiv, scalar_t *work, int lwork, int *info) {
AT_ERROR("getri only takes float or double Tensors");
}
template<class scalar_t>
void lapackCholeskySolve(char uplo, int n, int nrhs, scalar_t *a, int lda, scalar_t *b, int ldb, int *info) {
AT_ERROR("cholesky_solve only takes float or double Tensors");
}
template<class scalar_t>
void lapackCholesky(char uplo, int n, scalar_t *a, int lda, int *info) {
AT_ERROR("cholesky only takes float or double Tensors");
}
template<class scalar_t>
void lapackTriangularSolve(char uplo, char trans, char diag, int n, int nrhs, scalar_t *a, int lda, scalar_t *b, int ldb, int *info) {
AT_ERROR("triangular_solve only takes float or double Tensors");
}
template<class scalar_t>
void lapackGeqrf(int m, int n, scalar_t *a, int lda, scalar_t *tau, scalar_t *work, int lwork, int *info) {
AT_ERROR("geqrf only takes float or double Tensors");
}
template<class scalar_t>
void lapackOrgqr(int m, int n, int k, scalar_t *a, int lda, scalar_t *tau, scalar_t *work, int lwork, int *info) {
AT_ERROR("orgqr only takes float or double Tensors");
}
template<class scalar_t>
void lapackSymeig(char jobz, char uplo, int n, scalar_t *a, int lda, scalar_t *w, scalar_t *work, int lwork, int *info) {
AT_ERROR("symeig only takes float or double Tensors");
}
template<class scalar_t>
void lapackSvd(char jobz, int m, int n, scalar_t *a, int lda,
scalar_t *s, scalar_t *u, int ldu, scalar_t *vt, int ldvt, scalar_t *work, int lwork, int *iwork, int *info) {
AT_ERROR("svd only takes float or double Tensors");
}
template<class scalar_t>
void lapackLuSolve(char trans, int n, int nrhs, scalar_t *a, int lda, int *ipiv, scalar_t *b, int ldb, int *info) {
AT_ERROR("lu_solve only takes float or double Tensors");
}
#ifdef USE_LAPACK
template<> void lapackSolve<double>(int n, int nrhs, double *a, int lda, int *ipiv, double *b, int ldb, int *info) {
dgesv_(&n, &nrhs, a, &lda, ipiv, b, &ldb, info);
}
template<> void lapackSolve<float>(int n, int nrhs, float *a, int lda, int *ipiv, float *b, int ldb, int *info) {
sgesv_(&n, &nrhs, a, &lda, ipiv, b, &ldb, info);
}
template<> void lapackGetri<double>(int n, double *a, int lda, int *ipiv, double *work, int lwork, int *info) {
dgetri_(&n, a, &lda, ipiv, work, &lwork, info);
}
template<> void lapackGetri<float>(int n, float *a, int lda, int *ipiv, float *work, int lwork, int *info) {
sgetri_(&n, a, &lda, ipiv, work, &lwork, info);
}
template<> void lapackLu<double>(int m, int n, double *a, int lda, int *ipiv, int *info) {
dgetrf_(&m, &n, a, &lda, ipiv, info);
}
template<> void lapackLu<float>(int m, int n, float *a, int lda, int *ipiv, int *info) {
sgetrf_(&m, &n, a, &lda, ipiv, info);
}
template<> void lapackCholeskySolve<double>(char uplo, int n, int nrhs, double *a, int lda, double *b, int ldb, int *info) {
dpotrs_(&uplo, &n, &nrhs, a, &lda, b, &ldb, info);
}
template<> void lapackCholeskySolve<float>(char uplo, int n, int nrhs, float *a, int lda, float *b, int ldb, int *info) {
spotrs_(&uplo, &n, &nrhs, a, &lda, b, &ldb, info);
}
template<> void lapackCholesky<double>(char uplo, int n, double *a, int lda, int *info) {
dpotrf_(&uplo, &n, a, &lda, info);
}
template<> void lapackCholesky<float>(char uplo, int n, float *a, int lda, int *info) {
spotrf_(&uplo, &n, a, &lda, info);
}
template<> void lapackTriangularSolve<double>(char uplo, char trans, char diag, int n, int nrhs, double *a, int lda, double *b, int ldb, int *info) {
dtrtrs_(&uplo, &trans, &diag, &n, &nrhs, a, &lda, b, &ldb, info);
}
template<> void lapackTriangularSolve<float>(char uplo, char trans, char diag, int n, int nrhs, float *a, int lda, float *b, int ldb, int *info) {
strtrs_(&uplo, &trans, &diag, &n, &nrhs, a, &lda, b, &ldb, info);
}
template<> void lapackGeqrf<double>(int m, int n, double *a, int lda, double *tau, double *work, int lwork, int *info) {
dgeqrf_(&m, &n, a, &lda, tau, work, &lwork, info);
}
template<> void lapackGeqrf<float>(int m, int n, float *a, int lda, float *tau, float *work, int lwork, int *info) {
sgeqrf_(&m, &n, a, &lda, tau, work, &lwork, info);
}
template<> void lapackOrgqr<double>(int m, int n, int k, double *a, int lda, double *tau, double *work, int lwork, int *info) {
dorgqr_(&m, &n, &k, a, &lda, tau, work, &lwork, info);
}
template<> void lapackOrgqr<float>(int m, int n, int k, float *a, int lda, float *tau, float *work, int lwork, int *info) {
sorgqr_(&m, &n, &k, a, &lda, tau, work, &lwork, info);
}
template<> void lapackSymeig<double>(char jobz, char uplo, int n, double *a, int lda, double *w, double *work, int lwork, int *info) {
dsyev_(&jobz, &uplo, &n, a, &lda, w, work, &lwork, info);
}
template<> void lapackSymeig<float>(char jobz, char uplo, int n, float *a, int lda, float *w, float *work, int lwork, int *info) {
ssyev_(&jobz, &uplo, &n, a, &lda, w, work, &lwork, info);
}
template<> void lapackSvd<double>(char jobz, int m, int n, double *a, int lda,
double *s, double *u, int ldu, double *vt, int ldvt, double *work, int lwork, int *iwork, int *info) {
dgesdd_(&jobz, &m, &n, a, &lda, s, u, &ldu, vt, &ldvt, work, &lwork, iwork, info);
}
template<> void lapackSvd<float>(char jobz, int m, int n, float *a, int lda,
float *s, float *u, int ldu, float *vt, int ldvt, float *work, int lwork, int *iwork, int *info) {
sgesdd_(&jobz, &m, &n, a, &lda, s, u, &ldu, vt, &ldvt, work, &lwork, iwork, info);
}
template<> void lapackLuSolve<double>(char trans, int n, int nrhs, double *a, int lda, int *ipiv, double *b, int ldb, int *info) {
dgetrs_(&trans, &n, &nrhs, a, &lda, ipiv, b, &ldb, info);
}
template<> void lapackLuSolve<float>(char trans, int n, int nrhs, float *a, int lda, int *ipiv, float *b, int ldb, int *info) {
sgetrs_(&trans, &n, &nrhs, a, &lda, ipiv, b, &ldb, info);
}
#endif
// Below of the definitions of the functions operating on a batch that are going to be dispatched
// in the main helper functions for the linear algebra operations
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solve ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template<typename scalar_t>
static void apply_solve(Tensor& b, Tensor& A, std::vector<int64_t>& infos) {
#ifndef USE_LAPACK
AT_ERROR("solve: LAPACK library not found in compilation");
#else
auto A_data = A.data_ptr<scalar_t>();
auto b_data = b.data_ptr<scalar_t>();
auto A_mat_stride = matrixStride(A);
auto b_mat_stride = matrixStride(b);
auto batch_size = batchCount(A);
auto n = A.size(-2);
auto nrhs = b.size(-1);
auto ipiv = at::empty({n}, b.options().dtype(kInt));
auto ipiv_data = ipiv.data_ptr<int>();
int info;
for (int64_t i = 0; i < batch_size; i++) {
scalar_t* A_working_ptr = &A_data[i * A_mat_stride];
scalar_t* b_working_ptr = &b_data[i * b_mat_stride];
lapackSolve<scalar_t>(n, nrhs, A_working_ptr, n, ipiv_data, b_working_ptr, n, &info);
infos[i] = info;
if (info != 0) {
return;
}
}
#endif
}
std::tuple<Tensor, Tensor> _solve_helper_cpu(const Tensor& self, const Tensor& A) {
auto self_working_copy = cloneBatchedColumnMajor(self);
auto A_working_copy = cloneBatchedColumnMajor(A);
std::vector<int64_t> infos(batchCount(self), 0);
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "solve_cpu", [&]{
apply_solve<scalar_t>(self_working_copy, A_working_copy, infos);
});
if (self.dim() > 2) {
batchCheckErrors(infos, "solve_cpu");
} else {
singleCheckErrors(infos[0], "solve_cpu");
}
return std::tuple<Tensor, Tensor>(self_working_copy, A_working_copy);
}
// Supports arbitrary batch dimensions for self and A
std::tuple<Tensor,Tensor> solve(const Tensor& self, const Tensor& A) {
TORCH_CHECK(self.dim() >= 2,
"B should have at least 2 dimensions, but has ", self.dim(), " dimensions instead");
TORCH_CHECK(A.dim() >= 2,
"A should have at least 2 dimensions, but has ", A.dim(), " dimensions instead");
Tensor self_broadcasted, A_broadcasted;
std::tie(self_broadcasted, A_broadcasted) = _linear_solve_broadcast_args(self, A, "solve");
return at::_solve_helper(self_broadcasted, A_broadcasted);
}
std::tuple<Tensor&,Tensor&> solve_out(Tensor& solution, Tensor& lu, const Tensor& self, const Tensor& A) {
Tensor solution_tmp, lu_tmp;
std::tie(solution_tmp, lu_tmp) = at::_solve_helper(self, A);
solution.resize_as_(solution_tmp).copy_(solution_tmp);
lu.resize_as_(lu_tmp).copy_(lu_tmp);
return std::tuple<Tensor&, Tensor&>(solution, lu);
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inverse ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template <typename scalar_t>
static void apply_inverse(Tensor& self, std::vector<int64_t>& infos) {
#ifndef USE_LAPACK
AT_ERROR("inverse: LAPACK library not found in compilation");
#else
auto self_data = self.data_ptr<scalar_t>();
auto self_matrix_stride = matrixStride(self);
auto batch_size = batchCount(self);
auto n = self.size(-2);
auto ipiv = at::empty({n}, self.options().dtype(kInt));
auto ipiv_data = ipiv.data_ptr<int>();
int info;
// Run once, first to get the optimum work size
// Since we deal with batches of matrices with the same dimensions, doing this outside
// the loop saves (batch_size - 1) workspace queries which would provide the same result
// and (batch_size - 1) calls to allocate and deallocate workspace using at::empty()
int lwork = -1;
scalar_t wkopt;
lapackGetri<scalar_t>(n, self_data, n, ipiv_data, &wkopt, lwork, &info);
lwork = static_cast<int>(wkopt);
Tensor work = at::empty({lwork}, self.options());
auto work_data = work.data_ptr<scalar_t>();
for (int64_t i = 0; i < batch_size; i++) {
scalar_t* self_working_ptr = &self_data[i * self_matrix_stride];
lapackLu<scalar_t>(n, n, self_working_ptr, n, ipiv_data, &info);
infos[i] = info;
if (info != 0) {
return;
}
// now compute the actual inverse
lapackGetri<scalar_t>(n, self_working_ptr, n, ipiv_data, work_data, lwork, &info);
infos[i] = info;
if (info != 0) {
return;
}
}
#endif
}
Tensor _inverse_helper_cpu(const Tensor& self) {
std::vector<int64_t> infos(batchCount(self), 0);
auto self_working_copy = cloneBatchedColumnMajor(self);
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "inverse_cpu", [&]{
apply_inverse<scalar_t>(self_working_copy, infos);
});
if (self.dim() > 2) {
batchCheckErrors(infos, "inverse_cpu");
} else {
singleCheckErrors(infos[0], "inverse_cpu");
}
return self_working_copy;
}
Tensor inverse(const Tensor &self) {
if (self.size(-1) == 0) {
return at::empty_like(self);
}
squareCheckInputs(self);
return at::_inverse_helper(self);
}
Tensor& inverse_out(Tensor &result, const Tensor &self) {
if (self.size(-1) == 0) {
return result.resize_as_(self);
}
result.copy_(native::inverse(self));
return result;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cholesky_solve ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template<typename scalar_t>
static void apply_cholesky_solve(Tensor& b, Tensor& A, bool upper, std::vector<int64_t>& infos) {
#ifndef USE_LAPACK
AT_ERROR("cholesky_solve: LAPACK library not found in compilation");
#else
char uplo = upper ? 'U' : 'L';
auto A_data = A.data_ptr<scalar_t>();
auto b_data = b.data_ptr<scalar_t>();
auto A_mat_stride = matrixStride(A);
auto b_mat_stride = matrixStride(b);
auto batch_size = batchCount(A);
auto n = A.size(-2);
auto nrhs = b.size(-1);
int info;
for (int64_t i = 0; i < batch_size; i++) {
scalar_t* A_working_ptr = &A_data[i * A_mat_stride];
scalar_t* b_working_ptr = &b_data[i * b_mat_stride];
lapackCholeskySolve<scalar_t>(uplo, n, nrhs, A_working_ptr, n, b_working_ptr, n, &info);
infos[i] = info;
if (info != 0) {
return;
}
}
#endif
}
Tensor _cholesky_solve_helper_cpu(const Tensor& self, const Tensor& A, bool upper) {
auto self_working_copy = cloneBatchedColumnMajor(self);
auto A_working_copy = cloneBatchedColumnMajor(A);
std::vector<int64_t> infos(batchCount(self), 0);
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "cholesky_solve_cpu", [&]{
apply_cholesky_solve<scalar_t>(self_working_copy, A_working_copy, upper, infos);
});
if (self.dim() > 2) {
batchCheckErrors(infos, "cholesky_solve_cpu");
} else {
singleCheckErrors(infos[0], "cholesky_solve_cpu");
}
return self_working_copy;
}
// Supports arbitrary batch dimensions for self and A
Tensor cholesky_solve(const Tensor& self, const Tensor& A, bool upper) {
TORCH_CHECK(self.dim() >= 2,
"b should have at least 2 dimensions, but has ", self.dim(), " dimensions instead");
TORCH_CHECK(A.dim() >= 2,
"u should have at least 2 dimensions, but has ", A.dim(), " dimensions instead");
Tensor self_broadcasted, A_broadcasted;
std::tie(self_broadcasted, A_broadcasted) = _linear_solve_broadcast_args(self, A, "cholesky_solve");
return at::_cholesky_solve_helper(self_broadcasted, A_broadcasted, upper);
}
Tensor& cholesky_solve_out(Tensor& result, const Tensor& self, const Tensor& A, bool upper) {
Tensor result_tmp;
result_tmp = at::_cholesky_solve_helper(self, A, upper);
result.resize_as_(result_tmp).copy_(result_tmp);
return result;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cholesky ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template<typename scalar_t>
static void apply_cholesky(Tensor& self, bool upper, std::vector<int64_t>& infos) {
#ifndef USE_LAPACK
AT_ERROR("cholesky: LAPACK library not found in compilation");
#else
char uplo = upper ? 'U' : 'L';
auto self_data = self.data_ptr<scalar_t>();
auto self_matrix_stride = matrixStride(self);
auto batch_size = batchCount(self);
auto n = self.size(-2);
int info;
for (int64_t i = 0; i < batch_size; i++) {
scalar_t* self_working_ptr = &self_data[i * self_matrix_stride];
lapackCholesky<scalar_t>(uplo, n, self_working_ptr, n, &info);
infos[i] = info;
if (info != 0) {
return;
}
}
#endif
}
Tensor _cholesky_helper_cpu(const Tensor& self, bool upper) {
std::vector<int64_t> infos(batchCount(self), 0);
auto self_working_copy = cloneBatchedColumnMajor(self);
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "cholesky_cpu", [&]{
apply_cholesky<scalar_t>(self_working_copy, upper, infos);
});
if (self.dim() > 2) {
batchCheckErrors(infos, "cholesky_cpu");
} else {
singleCheckErrors(infos[0], "cholesky_cpu");
}
return self_working_copy;
}
Tensor cholesky(const Tensor &self, bool upper) {
if (self.size(-1) == 0) {
return at::empty_like(self);
}
squareCheckInputs(self);
auto raw_cholesky_output = at::_cholesky_helper(self, upper);
if (upper) {
return raw_cholesky_output.triu_();
} else {
return raw_cholesky_output.tril_();
}
}
Tensor& cholesky_out(Tensor &result, const Tensor &self, bool upper) {
if (self.size(-1) == 0) {
return result.resize_as_(self);
}
result.copy_(native::cholesky(self, upper));
return result;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template<typename scalar_t>
static void apply_lu(Tensor& self, Tensor& pivots, Tensor& infos) {
#ifndef USE_LAPACK
AT_ERROR("lu: LAPACK library not found in compilation");
#else
auto self_data = self.data_ptr<scalar_t>();
auto pivots_data = pivots.data_ptr<int>();
auto infos_data = infos.data_ptr<int>();
auto self_matrix_stride = matrixStride(self);
auto pivots_matrix_stride = pivots.size(-1);
auto batch_size = batchCount(self);
auto n = self.size(-1);
for (int64_t i = 0; i < batch_size; i++) {
scalar_t* self_working_ptr = &self_data[i * self_matrix_stride];
int* pivots_working_ptr = &pivots_data[i * pivots_matrix_stride];
int* infos_working_ptr = &infos_data[i];
lapackLu<scalar_t>(n, n, self_working_ptr, n, pivots_working_ptr, infos_working_ptr);
}
#endif
}
std::tuple<Tensor, Tensor, Tensor> _lu_with_info_cpu(const Tensor& self, bool pivot, bool check_errors) {
TORCH_CHECK(pivot, "lu without pivoting is not implemented on the CPU");
TORCH_CHECK(self.dim() >= 2,
"expected tensor with 2 or more dimensions, got size: ", self.sizes(),
" instead");
squareCheckInputs(self);
auto req_size = self.sizes().vec();
req_size.pop_back();
auto pivots_tensor = at::empty(req_size, self.options().dtype(kInt));
req_size.pop_back();
auto infos_tensor = at::zeros(req_size, self.options().dtype(kInt));
Tensor self_working_copy;
if (self.numel() == 0) {
self_working_copy = at::empty_like(self);
} else {
self_working_copy = cloneBatchedColumnMajor(self);
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "lu_cpu", [&]{
apply_lu<scalar_t>(self_working_copy, pivots_tensor, infos_tensor);
});
}
if (check_errors) {
if (self.dim() > 2) {
batchCheckErrors(infos_tensor, "lu");
} else {
singleCheckErrors(infos_tensor.item<int64_t>(), "lu");
}
}
return std::make_tuple(self_working_copy, pivots_tensor, infos_tensor);
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ triu/tril ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template <typename scalar_t, bool upper>
static void apply_triu_tril_single(
scalar_t* result, scalar_t* self, bool inplace,
int64_t k, int64_t n, int64_t m,
int64_t res_row_stride, int64_t res_col_stride,
int64_t self_row_stride, int64_t self_col_stride) {
constexpr int64_t zero = 0;
if (upper) {
at::parallel_for(0, n, 0, [&](int64_t start, int64_t end) {
for (auto i = start; i < end; i++) {
for (int64_t j = 0; j < std::min(m, i + k); j++) {
result[i * res_row_stride + j * res_col_stride] = 0;
}
if (!inplace) { // copy the rest of the self if not inplace
for (int64_t j = std::max(zero, i + k); j < m; j++) {
result[i * res_row_stride + j * res_col_stride] = self[i * self_row_stride + j * self_col_stride];
}
}
}
});
} else {
at::parallel_for(0, n, 0, [&](int64_t start, int64_t end) {
for (auto i = start; i < end; i++) {
for (int64_t j = std::max(zero, i + k + 1); j < m; j++) {
result[i * res_row_stride + j * res_col_stride] = 0;
}
if (!inplace) { // copy the rest of the self if not inplace
for (int64_t j = zero; j < std::min(m, i + k + 1); j++) {
result[i * res_row_stride + j * res_col_stride] = self[i * self_row_stride + j * self_col_stride];
}
}
}
});
}
}
template <typename scalar_t, bool upper>
void apply_triu_tril(Tensor& result, const Tensor& self, bool inplace, int64_t k) {
auto n = self.size(-2);
auto m = self.size(-1);
auto self_data = self.data_ptr<scalar_t>();
auto self_stride = (self.dim() > 2 && self.stride(-3) > 0) ? self.stride(-3) : 1;
auto batchsize = batchCountTrilTriu(result);
auto self_row_stride = self.stride(-2);
auto self_column_stride = self.stride(-1);
auto result_data = result.data_ptr<scalar_t>();
int64_t result_stride, result_row_stride, result_column_stride;
if (result_data != self_data) {
result_stride = (result.dim() > 2 && result.stride(-3) > 0) ? result.stride(-3) : 1;
result_row_stride = result.stride(-2);
result_column_stride = result.stride(-1);
} else {
result_stride = self_stride;
result_row_stride = self_row_stride;
result_column_stride = self_column_stride;
}
at::parallel_for(0, batchsize, 0, [&](int64_t start, int64_t end) {
for (auto b = start; b < end; b++) {
scalar_t* self_batch = &self_data[b * self_stride];
scalar_t* result_batch = &result_data[b * result_stride];
apply_triu_tril_single<scalar_t, upper>(
result_batch, self_batch, inplace, k, n, m,
result_row_stride, result_column_stride, self_row_stride, self_column_stride);
}
});
}
Tensor tril(const Tensor& self, int64_t k) {
Tensor result = at::empty({0}, self.options());
at::tril_out(result, self, k);
return result;
}
Tensor& tril_cpu_(Tensor &self, int64_t k) {
if (self.numel() == 0) {
return self;
}
bool inplace;
Tensor self_c;
std::tie(inplace, self_c) = checkTrilTriuBatchContiguous(self, true);
Tensor result = inplace ? self : at::empty_like(self);
AT_DISPATCH_ALL_TYPES_AND2(at::ScalarType::Half, at::ScalarType::Bool, self.scalar_type(), "tril", [&]{
apply_triu_tril<scalar_t, false>(result, self_c, inplace, k);
});
if (!inplace) self.copy_(result);
return self;
}
Tensor& tril_cpu_out(Tensor &result, const Tensor& self, int64_t k) {
if (result.sizes() != self.sizes()) {
result.resize_as_(self);
}
if (self.numel() == 0) {
return result;
}
Tensor self_c;
std::tie(std::ignore, self_c) = checkTrilTriuBatchContiguous(self, false);
AT_DISPATCH_ALL_TYPES_AND2(at::ScalarType::Half, at::ScalarType::Bool, self.scalar_type(), "tril", [&]{
apply_triu_tril<scalar_t, false>(result, self_c, false, k);
});
return result;
}
Tensor triu(const Tensor& self, int64_t k) {
Tensor result = at::empty({0}, self.options());
at::triu_out(result, self, k);
return result;
}
Tensor& triu_cpu_(Tensor &self, int64_t k) {
if (self.numel() == 0) {
return self;
}
bool inplace;
Tensor self_c;
std::tie(inplace, self_c) = checkTrilTriuBatchContiguous(self, true);
Tensor result = inplace ? self : at::empty_like(self);
AT_DISPATCH_ALL_TYPES_AND2(at::ScalarType::Half, at::ScalarType::Bool, self.scalar_type(), "triu", [&]{
apply_triu_tril<scalar_t, true>(result, self_c, inplace, k);
});
if (!inplace) self.copy_(result);
return self;
}
Tensor& triu_cpu_out(Tensor &result, const Tensor& self, int64_t k) {
if (result.sizes() != self.sizes()) {
result.resize_as_(self);
}
if (self.numel() == 0) {
return result;
}
Tensor self_c;
std::tie(std::ignore, self_c) = checkTrilTriuBatchContiguous(self, false);
AT_DISPATCH_ALL_TYPES_AND2(at::ScalarType::Half, at::ScalarType::Bool, self.scalar_type(), "triu", [&]{
apply_triu_tril<scalar_t, true>(result, self_c, false, k);
});
return result;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ triangular_solve ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template<typename scalar_t>
static void apply_triangular_solve(Tensor& b, Tensor& A, bool upper, bool transpose, bool unitriangular) {
#ifndef USE_LAPACK
AT_ERROR("triangular_solve: LAPACK library not found in compilation");
#else
char uplo = upper ? 'U' : 'L';
char trans = transpose ? 'T' : 'N';
char diag = unitriangular ? 'U' : 'N';
auto A_data = A.data_ptr<scalar_t>();
auto b_data = b.data_ptr<scalar_t>();
auto A_mat_stride = matrixStride(A);
auto b_mat_stride = matrixStride(b);
auto batch_size = batchCount(A);
auto n = A.size(-2);
auto nrhs = b.size(-1);
int info;
for (int64_t i = 0; i < batch_size; i++) {
scalar_t* A_working_ptr = &A_data[i * A_mat_stride];
scalar_t* b_working_ptr = &b_data[i * b_mat_stride];
lapackTriangularSolve<scalar_t>(uplo, trans, diag, n, nrhs, A_working_ptr, n, b_working_ptr, n, &info);
}
#endif
}
std::tuple<Tensor, Tensor> _triangular_solve_helper_cpu(const Tensor& self, const Tensor& A,
bool upper, bool transpose, bool unitriangular) {
auto self_working_copy = cloneBatchedColumnMajor(self);
auto A_working_copy = cloneBatchedColumnMajor(A);
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "triangular_solve_cpu", [&]{
apply_triangular_solve<scalar_t>(self_working_copy, A_working_copy, upper, transpose, unitriangular);
});
return std::tuple<Tensor, Tensor>(self_working_copy, A_working_copy);
}
// Supports arbitrary batch dimensions for self and A
std::tuple<Tensor, Tensor> triangular_solve(const Tensor& self, const Tensor& A,
bool upper, bool transpose, bool unitriangular) {
TORCH_CHECK(self.dim() >= 2,
"b should have at least 2 dimensions, but has ", self.dim(), " dimensions instead");
TORCH_CHECK(A.dim() >= 2,
"u should have at least 2 dimensions, but has ", A.dim(), " dimensions instead");
Tensor self_broadcasted, A_broadcasted;
std::tie(self_broadcasted, A_broadcasted) = _linear_solve_broadcast_args(self, A, "triangular_solve");
return at::_triangular_solve_helper(self_broadcasted, A_broadcasted, upper, transpose, unitriangular);
}
std::tuple<Tensor&, Tensor&> triangular_solve_out(Tensor& result, Tensor& clone_A, const Tensor& self, const Tensor& A,
bool upper, bool transpose, bool unitriangular) {
Tensor result_tmp, clone_A_tmp;
std::tie(result_tmp, clone_A_tmp) = at::_triangular_solve_helper(self, A, upper, transpose, unitriangular);
result.resize_as_(result_tmp).copy_(result_tmp);
clone_A.resize_as_(clone_A_tmp).copy_(clone_A_tmp);
return std::tuple<Tensor&, Tensor&>(result, clone_A);
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template<typename scalar_t>
static void apply_geqrf(Tensor& self, Tensor& tau, int64_t m, int64_t n,
std::vector<int64_t>& infos) {
#ifndef USE_LAPACK
AT_ERROR("qr: LAPACK library not found in compilation");
#else
auto self_data = self.data_ptr<scalar_t>();
auto tau_data = tau.data_ptr<scalar_t>();
auto self_matrix_stride = matrixStride(self);
auto tau_stride = tau.size(-1);
auto batch_size = batchCount(self);
int info;
// Run once, first to get the optimum work size.
// Since we deal with batches of matrices with the same dimensions, doing this outside
// the loop saves (batch_size - 1) workspace queries which would provide the same result
// and (batch_size - 1) calls to allocate and deallocate workspace using at::empty()
int lwork = -1;
scalar_t wkopt;
lapackGeqrf<scalar_t>(m, n, self_data, m, tau_data, &wkopt, lwork, &info);
lwork = static_cast<int>(wkopt);
Tensor work = at::empty({lwork}, self.options());
for (int64_t i = 0; i < batch_size; i++) {
scalar_t* self_working_ptr = &self_data[i * self_matrix_stride];
scalar_t* tau_working_ptr = &tau_data[i * tau_stride];
// now compute the actual R and TAU
lapackGeqrf<scalar_t>(m, n, self_working_ptr, m, tau_working_ptr, work.data_ptr<scalar_t>(), lwork, &info);
infos[i] = info;
if (info != 0) {
return;
}
}
#endif
}
template<typename scalar_t>
static void apply_orgqr(Tensor& self, const Tensor& tau, int64_t m, int64_t n_columns,
int64_t k, std::vector<int64_t>& infos) {
#ifndef USE_LAPACK
AT_ERROR("qr: LAPACK library not found in compilation");
#else
auto self_data = self.data_ptr<scalar_t>();
auto tau_data = tau.data_ptr<scalar_t>();
auto self_matrix_stride = matrixStride(self);
auto tau_stride = tau.size(-1);
auto batch_size = batchCount(self);
int info;
// Run once, first to get the optimum work size.
// Since we deal with batches of matrices with the same dimensions, doing this outside
// the loop saves (batch_size - 1) workspace queries which would provide the same result
// and (batch_size - 1) calls to allocate and deallocate workspace using at::empty()
int lwork = -1;
scalar_t wkopt;
lapackOrgqr<scalar_t>(m, n_columns, k, self_data, m, tau_data, &wkopt, lwork, &info);
lwork = static_cast<int>(wkopt);
Tensor work = at::empty({lwork}, self.options());
for (int64_t i = 0; i < batch_size; i++) {
scalar_t* self_working_ptr = &self_data[i * self_matrix_stride];
scalar_t* tau_working_ptr = &tau_data[i * tau_stride];
// now compute the actual Q
lapackOrgqr<scalar_t>(m, n_columns, k, self_working_ptr, m, tau_working_ptr, work.data_ptr<scalar_t>(), lwork, &info);
infos[i] = info;
if (info != 0) {
return;
}
}
#endif
}
std::tuple<Tensor, Tensor> _qr_helper_cpu(const Tensor& self, bool some) {
std::vector<int64_t> infos(batchCount(self), 0);
int64_t m = self.size(-2), n = self.size(-1);
// Setup inputs for apply_geqrf
auto self_sizes = self.sizes().vec();
self_sizes.pop_back();
self_sizes[self.dim() - 2] = std::min(m, n);
auto tau_working_copy = at::empty(self_sizes, self.options());
Tensor q_working_copy;
// Setup input geometry for apply_orgqr
std::vector<int64_t> q_sizes, q_strides;
int64_t n_columns_q;
Tensor R;
std::tie(q_sizes, q_strides, n_columns_q) = _compute_geometry_for_Q(self, some);
// If there are no elements, then we simply return a pair of tensors of required dimensions
if (self.numel() == 0) {
// Fix the number of columns of q appropriately
q_sizes[self.dim() - 1] = n_columns_q;
q_working_copy = at::eye(q_sizes[self.dim() - 2], q_sizes[self.dim() - 1], self.options());
q_working_copy = q_working_copy.expand_as(q_working_copy);
// We repurpose the same q_sizes for R
// Fix the number of rows and columns of q_working_copy appropriately
q_sizes[self.dim() - 1] = n;
q_sizes[self.dim() - 2] = n_columns_q;
R = at::empty(q_sizes, self.options());
return std::make_tuple(q_working_copy, R);
}
// First perform GEQRF for R and TAU (the elementary reflectors)
// We will need to generate R from the upper triangular matrix from the
// matrix input to GEQRF.
q_working_copy = at::empty_strided(q_sizes, q_strides, self.options());
q_working_copy.narrow(-1, 0, n).copy_(self);
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "qr_cpu", [&]{
apply_geqrf<scalar_t>(q_working_copy, tau_working_copy, m, n, infos);
});
if (self.dim() > 2) {
batchCheckErrors(infos, "qr_cpu");
} else {
singleCheckErrors(infos[0], "qr_cpu");
}
R = q_working_copy.slice(-2, 0, n_columns_q).slice(-1, 0, n).triu();
// Next perform ORGQR for Q using the results (both raw R and TAU) from GEQRF
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "qr_cpu", [&]{
apply_orgqr<scalar_t>(q_working_copy, tau_working_copy, m, n_columns_q, std::min(m, n), infos);
});
if (self.dim() > 2) {
batchCheckErrors(infos, "qr_cpu");
} else {
singleCheckErrors(infos[0], "qr_cpu");
}
return std::make_tuple(q_working_copy.narrow(-1, 0, n_columns_q), R);
}
std::tuple<Tensor,Tensor> qr(const Tensor& self, bool some) {
TORCH_CHECK(self.dim() >= 2,
"self should have at least 2 dimensions, but has ", self.dim(), " dimensions instead");
return at::_qr_helper(self, some);
}
std::tuple<Tensor&,Tensor&> qr_out(Tensor& Q, Tensor& R, const Tensor& self, bool some) {
TORCH_CHECK(self.dim() >= 2,
"self should have at least 2 dimensions, but has ", self.dim(), " dimensions instead");
Tensor Q_tmp, R_tmp;
std::tie(Q_tmp, R_tmp) = at::_qr_helper(self, some);
Q.resize_as_(Q_tmp).copy_(Q_tmp);
R.resize_as_(R_tmp).copy_(R_tmp);
return std::tuple<Tensor&, Tensor&>(Q, R);
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ symeig ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template <typename scalar_t>
static void apply_symeig(Tensor& self, Tensor& eigvals, bool eigenvectors, bool upper, std::vector<int64_t>& infos) {
#ifndef USE_LAPACK
AT_ERROR("symeig: LAPACK library not found in compilation");
#else
auto self_data = self.data_ptr<scalar_t>();
auto eigvals_data = eigvals.data_ptr<scalar_t>();
auto self_matrix_stride = matrixStride(self);
auto eigvals_stride = eigvals.size(-1);
auto batch_size = batchCount(self);
auto n = self.size(-1);
char uplo = upper ? 'U' : 'L';
char jobz = eigenvectors ? 'V' : 'N';
int info;
// Run once, first to get the optimum work size.
// Since we deal with batches of matrices with the same dimensions, doing this outside
// the loop saves (batch_size - 1) workspace queries which would provide the same result
// and (batch_size - 1) calls to allocate and deallocate workspace using at::empty()
int lwork = -1;
scalar_t wkopt;
lapackSymeig<scalar_t>(jobz, uplo, n, self_data, n, eigvals_data, &wkopt, lwork, &info);
lwork = static_cast<int>(wkopt);
Tensor work = at::empty({lwork}, self.options());
for (int64_t i = 0; i < batch_size; i++) {
scalar_t* self_working_ptr = &self_data[i * self_matrix_stride];
scalar_t* eigvals_working_ptr = &eigvals_data[i * eigvals_stride];
// now compute the eigenvalues and the eigenvectors (optionally)
lapackSymeig<scalar_t>(jobz, uplo, n, self_working_ptr, n, eigvals_working_ptr, work.data_ptr<scalar_t>(), lwork, &info);
infos[i] = info;
if (info != 0) {
return;
}
}
#endif
}
std::tuple<Tensor, Tensor> _symeig_helper_cpu(const Tensor& self, bool eigenvectors, bool upper) {
std::vector<int64_t> infos(batchCount(self), 0);
auto self_sizes = self.sizes().vec();
self_sizes.pop_back();
auto eigvals = at::empty(self_sizes, self.options());
if (self.numel() == 0) {
return std::tuple<Tensor, Tensor>(eigvals, at::empty_like(self));
}
auto self_working_copy = cloneBatchedColumnMajor(self);
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "symeig_cpu", [&]{
apply_symeig<scalar_t>(self_working_copy, eigvals, eigenvectors, upper, infos);
});
if (!eigenvectors) {
self_working_copy.zero_();
}
if (self.dim() > 2) {
batchCheckErrors(infos, "symeig_cpu");
} else {
singleCheckErrors(infos[0], "symeig_cpu");
}
return std::tuple<Tensor, Tensor>(eigvals, self_working_copy);
}
std::tuple<Tensor, Tensor> symeig(const Tensor& self, bool eigenvectors, bool upper) {
squareCheckInputs(self);
return at::_symeig_helper(self, eigenvectors, upper);
}
std::tuple<Tensor&, Tensor&> symeig_out(Tensor& vals, Tensor& vecs, const Tensor& self, bool eigenvectors, bool upper) {
squareCheckInputs(self);
Tensor vals_tmp, vecs_tmp;
std::tie(vals_tmp, vecs_tmp) = at::_symeig_helper(self, eigenvectors, upper);
vals.resize_as_(vals_tmp).copy_(vals_tmp);
vecs.resize_as_(vecs_tmp).copy_(vecs_tmp);
return std::tuple<Tensor&, Tensor&>(vals, vecs);
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ svd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template <typename scalar_t>
static void apply_svd(Tensor& self, Tensor& U, Tensor& S, Tensor& VT,
char jobz, std::vector<int64_t>& infos) {
#ifndef USE_LAPACK
AT_ERROR("svd: LAPACK library not found in compilation");
#else
auto self_data = self.data_ptr<scalar_t>();
auto U_data = U.data_ptr<scalar_t>();
auto S_data = S.data_ptr<scalar_t>();
auto VT_data = VT.data_ptr<scalar_t>();
auto self_stride = matrixStride(self);
auto U_stride = matrixStride(U);
auto S_stride = S.size(-1);
auto VT_stride = matrixStride(VT);
auto batchsize = batchCount(self);
int info;
auto m = self.size(-2);
auto n = self.size(-1);
auto k = std::min(m, n);
Tensor iwork = at::empty({8 * k}, at::kInt);
auto iwork_data = iwork.data_ptr<int>();
// Run once, first to get the optimum work size.
// Since we deal with batches of matrices with the same dimensions, doing this outside
// the loop saves (batch_size - 1) workspace queries which would provide the same result
// and (batch_size - 1) calls to allocate and deallocate workspace using at::empty()
int lwork = -1;
scalar_t wkopt;
lapackSvd<scalar_t>(jobz, m, n, self_data, m, S_data, U_data, m, VT_data, n, &wkopt, lwork, iwork_data, &info);
lwork = static_cast<int>(wkopt);
Tensor work = at::empty({lwork}, self.options());
auto work_data = work.data_ptr<scalar_t>();
for (int64_t i = 0; i < batchsize; i++) {
scalar_t* self_working_ptr = &self_data[i * self_stride];
scalar_t* S_working_ptr = &S_data[i * S_stride];
scalar_t* U_working_ptr = &U_data[i * U_stride];
scalar_t* VT_working_ptr = &VT_data[i * VT_stride];
// Compute S, U (optionally) and VT (optionally)
lapackSvd<scalar_t>(jobz, m, n, self_working_ptr, m,
S_working_ptr, U_working_ptr, m, VT_working_ptr, n, work_data, lwork, iwork_data, &info);
infos[i] = info;
if (info != 0) {
return;
}
}
#endif
}
std::tuple<Tensor, Tensor, Tensor> _svd_helper_cpu(const Tensor& self, bool some, bool compute_uv) {
std::vector<int64_t> infos(batchCount(self), 0);
int64_t m = self.size(-2), n = self.size(-1);
int64_t k = std::min(m, n);
char jobz = compute_uv ? (some ? 'S' : 'A') : 'N';
Tensor U_working_copy, S_working_copy, VT_working_copy;
std::tie(U_working_copy, S_working_copy, VT_working_copy) = _create_U_S_VT(self, some, compute_uv);
if (self.numel() > 0) {
auto self_working_copy = cloneBatchedColumnMajor(self);
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "svd_cpu", [&]{
apply_svd<scalar_t>(self_working_copy, U_working_copy, S_working_copy, VT_working_copy, jobz, infos);
});
if (self.dim() > 2) {
batchCheckErrors(infos, "svd_cpu");
} else {
singleCheckErrors(infos[0], "svd_cpu");
}
if (compute_uv) {
if (some) {
VT_working_copy = VT_working_copy.narrow(-1, 0, k);
}
} else {
VT_working_copy.zero_();
U_working_copy.zero_();
}
} else {
U_working_copy.zero_();
VT_working_copy.zero_();
}
return std::make_tuple(U_working_copy, S_working_copy, VT_working_copy);
}
std::tuple<Tensor, Tensor, Tensor> svd(const Tensor& self, bool some, bool compute_uv) {
TORCH_CHECK(self.dim() >= 2,
"self should have at least 2 dimensions, but has ", self.dim(), " dimensions instead");
return at::_svd_helper(self, some, compute_uv);
}
std::tuple<Tensor&, Tensor&, Tensor&> svd_out(Tensor& U, Tensor& S, Tensor& VT,
const Tensor& self, bool some, bool compute_uv) {
TORCH_CHECK(self.dim() >= 2,
"self should have at least 2 dimensions, but has ", self.dim(), " dimensions instead");
Tensor U_tmp, S_tmp, VT_tmp;
std::tie(U_tmp, S_tmp, VT_tmp) = at::_svd_helper(self, some, compute_uv);
U.resize_as_(U_tmp).copy_(U_tmp);
S.resize_as_(S_tmp).copy_(S_tmp);
VT.resize_as_(VT_tmp).copy_(VT_tmp);
return std::tuple<Tensor&, Tensor&, Tensor&>(U, S, VT);
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lu_solve ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template<typename scalar_t>
static void apply_lu_solve(Tensor& b, const Tensor& lu, const Tensor& pivots, std::vector<int64_t>& infos) {
#ifndef USE_LAPACK
AT_ERROR("lu_solve: LAPACK library not found in compilation");
#else
auto b_data = b.data_ptr<scalar_t>();
auto lu_data = lu.data_ptr<scalar_t>();
auto pivots_data = pivots.data_ptr<int>();
auto b_stride = matrixStride(b);
auto lu_stride = matrixStride(lu);
auto pivots_stride = pivots.size(-1);
auto batch_size = batchCount(b);
auto n = lu.size(-2);
auto nrhs = b.size(-1);
int info;
for (int64_t i = 0; i < batch_size; i++) {
scalar_t* b_working_ptr = &b_data[i * b_stride];
scalar_t* lu_working_ptr = &lu_data[i * lu_stride];
int* pivots_working_ptr = &pivots_data[i * pivots_stride];
lapackLuSolve<scalar_t>('N', n, nrhs, lu_working_ptr, n, pivots_working_ptr,
b_working_ptr, n, &info);
infos[i] = info;
if (info != 0) {
return;
}
}
#endif
}
Tensor _lu_solve_helper_cpu(const Tensor& self, const Tensor& LU_data, const Tensor& LU_pivots) {
auto self_working_copy = cloneBatchedColumnMajor(self);
auto LU_data_working_copy = cloneBatchedColumnMajor(LU_data);
auto LU_pivots_working_copy = LU_pivots.is_contiguous() ? LU_pivots : LU_pivots.contiguous();
std::vector<int64_t> infos(batchCount(self), 0);
AT_DISPATCH_FLOATING_TYPES(self.scalar_type(), "lu_solve_cpu", [&]{
apply_lu_solve<scalar_t>(self_working_copy, LU_data_working_copy, LU_pivots_working_copy, infos);
});
if (self.dim() > 2) {
batchCheckErrors(infos, "lu_solve_cpu");
} else {
singleCheckErrors(infos[0], "lu_solve_cpu");
}
return self_working_copy;
}
Tensor lu_solve(const Tensor& self, const Tensor& LU_data, const Tensor& LU_pivots) {
TORCH_CHECK(self.dim() == 3 || self.dim() == 2,
"b should have 2 or 3 dimensions, but has ", self.dim(), " dimensions instead");
TORCH_CHECK(LU_data.dim() == 3,
"LU_data should have 3 dimensions, but has ", LU_data.dim(), " dimensions instead");
TORCH_CHECK(self.size(0) == LU_data.size(0),
"b and LU_data should have the same number of batches");
TORCH_CHECK(LU_pivots.size(1) == LU_data.size(2),
"Number of pivots per batch should be same as the dimension of the matrix");
TORCH_CHECK(LU_pivots.size(0) == LU_data.size(0),
"Batch dimensions of LU_pivots doesn't match batch dimensions of LU_data");
TORCH_CHECK(LU_pivots.dtype() == at::kInt,
"LU_pivots should be a Tensor of scalar type Int");
TORCH_CHECK(LU_pivots.device() == LU_data.device(),
"Expected LU_pivots and LU_data to be on the same device, "
"but found LU_pivots on ", LU_pivots.device(), " and LU_data on ",
LU_data.device(), " instead");
Tensor self_3D;
if (self.dim() == 2) {
TORCH_WARN("Passing RHS tensor with number of dimensions = 2 is deprecated, "
"and will be removed in the next release. Please unsqueeze the last dimension "
"to obtain an RHS tensor with number of right hand sides = 1");
self_3D = self.unsqueeze(2);
} else {
self_3D = self;
}
linearSolveCheckInputs(self_3D, LU_data, "lu_solve");
Tensor solution = at::_lu_solve_helper(self_3D, LU_data, LU_pivots);
if (self.dim() == 2) {
return solution.squeeze(2);
} else {
return solution;
}
}
Tensor& lu_solve_out(Tensor& result, const Tensor& self, const Tensor& LU_data, const Tensor& LU_pivots) {
Tensor result_tmp = at::lu_solve(self, LU_data, LU_pivots);
result.resize_as_(result_tmp).copy_(result_tmp);
return result;
}
}} // namespace at::native
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4deee7353856a98c50bde69367ee527ff3b360ca | 31703ceb0e93ed10107f5c190929506b435cc7a5 | /Cryptoss/test.cpp | 6fb1b73ec77827bc918d2e2d9177a153b92276e9 | [] | no_license | Kaustav97/CPP_Reference | 7baa6dd6ef7a337d98665264204f3156b3c50a29 | a0f4a654a1825065e0e8b74b248c24a0de10839e | refs/heads/master | 2020-05-14T20:47:58.027806 | 2019-04-17T18:58:18 | 2019-04-17T18:58:18 | 181,951,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 341 | cpp | #include <bits/stdc++.h>
using namespace std;
#define tr(cont) for(auto it=cont.begin();it!=cont.end();it++)
#define tr1(cont,it) for(;it!=cont.end();it++)
#define rep(n) for(int i=0;i<n;i++)
#define MOD 1000000007
#define ll long long
#define fs first
#define sc second
int main(){
string str= "hello";
str.pop_back();
cout<<str;
}
| [
"chanda.kaustav13@gmail.com"
] | chanda.kaustav13@gmail.com |
d198498fa473d1e1740cacb99bedd0f41bd25d9b | 2f2ece30e6314a830a6f4583a3f3ed59fa8354ff | /sim/cgi/sim_Effects.h | 5f2a026f540b153746772b08c4e53597b514549e | [
"MIT"
] | permissive | radarEnforced/fsg | fdffc5cbaba96557cf04667a31d4bcad04f8cc2b | 7825785bbf46a367b3daf1beb32b727c58e85e46 | refs/heads/master | 2020-09-22T07:06:04.372723 | 2019-11-30T06:31:30 | 2019-11-30T06:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,436 | h | /****************************************************************************//*
* Copyright (C) 2019 Marek M. Cel
*
* 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 SIM_EFFECTS_H
#define SIM_EFFECTS_H
////////////////////////////////////////////////////////////////////////////////
#include <osg/Group>
#include <osgParticle/SmokeEffect>
#include <sim/sim_Base.h>
////////////////////////////////////////////////////////////////////////////////
namespace sim
{
/** Effects class. */
class Effects : public Base
{
public:
typedef osgParticle::SmokeEffect Smoke;
/** Creates explosion effect. */
static osg::Group* createExplosion( float scale );
/** Creates flames effect. */
static osg::Group* createFlames( const char *texture );
/** Creates smoke effect. */
static osg::Group* createSmoke( float lifeTime = 1.5f,
float size0 = 1.0f, float size1 = 0.2f,
float spread = 1.0f,
float intensity = 1.0f,
float speed = 1.0f );
/** Creates smoke trail effect. */
static Smoke* createSmokeTrail();
};
} // end of sim namespace
////////////////////////////////////////////////////////////////////////////////
#endif // SIM_EFFECTS_H
| [
"46421808+marek-cel@users.noreply.github.com"
] | 46421808+marek-cel@users.noreply.github.com |
4f8a6d3623a6752df6c80894b0f53ae87cb769d8 | f4e17640afef6d1b4d4a85f583a90e37f705dbd5 | /B2G/gecko/content/base/src/nsImageLoadingContent.cpp | b2853de024abcf291530d1d3a2767444fb0e86fb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wilebeast/FireFox-OS | d370362916f0c5a5408fa08285dbf4779f8b5eb3 | 43067f28711d78c429a1d6d58c77130f6899135f | refs/heads/master | 2016-09-05T22:06:54.838558 | 2013-09-03T13:49:21 | 2013-09-03T13:49:21 | 12,572,236 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 38,146 | cpp | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
// vim: ft=cpp tw=78 sw=2 et ts=2
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* A base class which implements nsIImageLoadingContent and can be
* subclassed by various content nodes that want to provide image
* loading functionality (eg <img>, <object>, etc).
*/
#include "nsImageLoadingContent.h"
#include "nsAutoPtr.h"
#include "nsError.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIScriptGlobalObject.h"
#include "nsIDOMWindow.h"
#include "nsServiceManagerUtils.h"
#include "nsContentPolicyUtils.h"
#include "nsIURI.h"
#include "nsILoadGroup.h"
#include "imgIContainer.h"
#include "imgILoader.h"
#include "nsThreadUtils.h"
#include "nsNetUtil.h"
#include "nsAsyncDOMEvent.h"
#include "nsGenericElement.h"
#include "nsImageFrame.h"
#include "nsIPresShell.h"
#include "nsEventStates.h"
#include "nsGUIEvent.h"
#include "nsIChannel.h"
#include "nsIStreamListener.h"
#include "nsIFrame.h"
#include "nsIDOMNode.h"
#include "nsContentUtils.h"
#include "nsLayoutUtils.h"
#include "nsIContentPolicy.h"
#include "nsEventDispatcher.h"
#include "nsSVGEffects.h"
#include "mozAutoDocUpdate.h"
#include "mozilla/dom/Element.h"
using namespace mozilla;
#ifdef DEBUG_chb
static void PrintReqURL(imgIRequest* req) {
if (!req) {
printf("(null req)\n");
return;
}
nsCOMPtr<nsIURI> uri;
req->GetURI(getter_AddRefs(uri));
if (!uri) {
printf("(null uri)\n");
return;
}
nsAutoCString spec;
uri->GetSpec(spec);
printf("spec='%s'\n", spec.get());
}
#endif /* DEBUG_chb */
nsImageLoadingContent::nsImageLoadingContent()
: mCurrentRequestFlags(0),
mPendingRequestFlags(0),
mObserverList(nullptr),
mImageBlockingStatus(nsIContentPolicy::ACCEPT),
mLoadingEnabled(true),
mIsImageStateForced(false),
mLoading(false),
// mBroken starts out true, since an image without a URI is broken....
mBroken(true),
mUserDisabled(false),
mSuppressed(false),
mNewRequestsWillNeedAnimationReset(false),
mStateChangerDepth(0),
mCurrentRequestRegistered(false),
mPendingRequestRegistered(false)
{
if (!nsContentUtils::GetImgLoaderForChannel(nullptr)) {
mLoadingEnabled = false;
}
}
void
nsImageLoadingContent::DestroyImageLoadingContent()
{
// Cancel our requests so they won't hold stale refs to us
// NB: Don't ask to discard the images here.
ClearCurrentRequest(NS_BINDING_ABORTED, 0);
ClearPendingRequest(NS_BINDING_ABORTED, 0);
}
nsImageLoadingContent::~nsImageLoadingContent()
{
NS_ASSERTION(!mCurrentRequest && !mPendingRequest,
"DestroyImageLoadingContent not called");
NS_ASSERTION(!mObserverList.mObserver && !mObserverList.mNext,
"Observers still registered?");
}
// Macro to call some func on each observer. This handles observers
// removing themselves.
#define LOOP_OVER_OBSERVERS(func_) \
PR_BEGIN_MACRO \
nsAutoScriptBlocker scriptBlocker; \
for (ImageObserver* observer = &mObserverList, *next; observer; \
observer = next) { \
next = observer->mNext; \
if (observer->mObserver) { \
observer->mObserver->func_; \
} \
} \
PR_END_MACRO
/*
* imgIContainerObserver impl
*/
NS_IMETHODIMP
nsImageLoadingContent::FrameChanged(imgIRequest* aRequest,
imgIContainer* aContainer,
const nsIntRect* aDirtyRect)
{
LOOP_OVER_OBSERVERS(FrameChanged(aRequest, aContainer, aDirtyRect));
return NS_OK;
}
/*
* imgIDecoderObserver impl
*/
NS_IMETHODIMP
nsImageLoadingContent::OnStartRequest(imgIRequest* aRequest)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
LOOP_OVER_OBSERVERS(OnStartRequest(aRequest));
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::OnStartDecode(imgIRequest* aRequest)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
LOOP_OVER_OBSERVERS(OnStartDecode(aRequest));
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::OnStartContainer(imgIRequest* aRequest,
imgIContainer* aContainer)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
LOOP_OVER_OBSERVERS(OnStartContainer(aRequest, aContainer));
// Have to check for state changes here, since we might have been in
// the LOADING state before.
UpdateImageState(true);
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::OnStartFrame(imgIRequest* aRequest,
uint32_t aFrame)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
LOOP_OVER_OBSERVERS(OnStartFrame(aRequest, aFrame));
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::OnDataAvailable(imgIRequest* aRequest,
bool aCurrentFrame,
const nsIntRect* aRect)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
LOOP_OVER_OBSERVERS(OnDataAvailable(aRequest, aCurrentFrame, aRect));
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::OnStopFrame(imgIRequest* aRequest,
uint32_t aFrame)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
LOOP_OVER_OBSERVERS(OnStopFrame(aRequest, aFrame));
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::OnStopContainer(imgIRequest* aRequest,
imgIContainer* aContainer)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
LOOP_OVER_OBSERVERS(OnStopContainer(aRequest, aContainer));
return NS_OK;
}
// Warning - This isn't actually fired when decode is complete. Rather, it's
// fired when load is complete. See bug 505385, and in the mean time use
// OnStopContainer.
NS_IMETHODIMP
nsImageLoadingContent::OnStopDecode(imgIRequest* aRequest,
nsresult aStatus,
const PRUnichar* aStatusArg)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
// We should definitely have a request here
NS_ABORT_IF_FALSE(aRequest, "no request?");
NS_PRECONDITION(aRequest == mCurrentRequest || aRequest == mPendingRequest,
"Unknown request");
LOOP_OVER_OBSERVERS(OnStopDecode(aRequest, aStatus, aStatusArg));
// XXXbholley - When we fix bug 505385, everything here should go in
// OnStopRequest.
// Our state may change. Watch it.
AutoStateChanger changer(this, true);
// If the pending request is loaded, switch to it.
if (aRequest == mPendingRequest) {
MakePendingRequestCurrent();
}
NS_ABORT_IF_FALSE(aRequest == mCurrentRequest,
"One way or another, we should be current by now");
// We just loaded all the data we're going to get. If we're visible and
// haven't done an initial paint (*), we want to make sure the image starts
// decoding immediately, for two reasons:
//
// 1) This image is sitting idle but might need to be decoded as soon as we
// start painting, in which case we've wasted time.
//
// 2) We want to block onload until all visible images are decoded. We do this
// by blocking onload until all in-progress decodes get at least one frame
// decoded. However, if all the data comes in while painting is suppressed
// (ie, before the initial paint delay is finished), we fire onload without
// doing a paint first. This means that decode-on-draw images don't start
// decoding, so we can't wait for them to finish. See bug 512435.
//
// (*) IsPaintingSuppressed returns false if we haven't gotten the initial
// reflow yet, so we have to test !DidInitialize || IsPaintingSuppressed.
// It's possible for painting to be suppressed for reasons other than the
// initial paint delay (for example, being in the bfcache), but we probably
// aren't loading images in those situations.
// XXXkhuey should this be GetOurCurrentDoc? Decoding if we're not in
// the document seems silly.
nsIDocument* doc = GetOurOwnerDoc();
nsIPresShell* shell = doc ? doc->GetShell() : nullptr;
if (shell && shell->IsVisible() &&
(!shell->DidInitialize() || shell->IsPaintingSuppressed())) {
mCurrentRequest->RequestDecode();
}
// Fire the appropriate DOM event.
if (NS_SUCCEEDED(aStatus)) {
FireEvent(NS_LITERAL_STRING("load"));
} else {
FireEvent(NS_LITERAL_STRING("error"));
}
nsCOMPtr<nsINode> thisNode = do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));
nsSVGEffects::InvalidateDirectRenderingObservers(thisNode->AsElement());
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::OnStopRequest(imgIRequest* aRequest, bool aLastPart)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
LOOP_OVER_OBSERVERS(OnStopRequest(aRequest, aLastPart));
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::OnImageIsAnimated(imgIRequest *aRequest)
{
bool* requestFlag = GetRegisteredFlagForRequest(aRequest);
if (requestFlag) {
nsLayoutUtils::RegisterImageRequest(GetFramePresContext(),
aRequest, requestFlag);
}
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::OnDiscard(imgIRequest *aRequest)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
LOOP_OVER_OBSERVERS(OnDiscard(aRequest));
return NS_OK;
}
/*
* nsIImageLoadingContent impl
*/
NS_IMETHODIMP
nsImageLoadingContent::GetLoadingEnabled(bool *aLoadingEnabled)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
*aLoadingEnabled = mLoadingEnabled;
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::SetLoadingEnabled(bool aLoadingEnabled)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
if (nsContentUtils::GetImgLoaderForChannel(nullptr)) {
mLoadingEnabled = aLoadingEnabled;
}
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::GetImageBlockingStatus(int16_t* aStatus)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
NS_PRECONDITION(aStatus, "Null out param");
*aStatus = mImageBlockingStatus;
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::AddObserver(imgIDecoderObserver* aObserver)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
NS_ENSURE_ARG_POINTER(aObserver);
if (!mObserverList.mObserver) {
mObserverList.mObserver = aObserver;
// Don't touch the linking of the list!
return NS_OK;
}
// otherwise we have to create a new entry
ImageObserver* observer = &mObserverList;
while (observer->mNext) {
observer = observer->mNext;
}
observer->mNext = new ImageObserver(aObserver);
if (! observer->mNext) {
return NS_ERROR_OUT_OF_MEMORY;
}
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::RemoveObserver(imgIDecoderObserver* aObserver)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
NS_ENSURE_ARG_POINTER(aObserver);
if (mObserverList.mObserver == aObserver) {
mObserverList.mObserver = nullptr;
// Don't touch the linking of the list!
return NS_OK;
}
// otherwise have to find it and splice it out
ImageObserver* observer = &mObserverList;
while (observer->mNext && observer->mNext->mObserver != aObserver) {
observer = observer->mNext;
}
// At this point, we are pointing to the list element whose mNext is
// the right observer (assuming of course that mNext is not null)
if (observer->mNext) {
// splice it out
ImageObserver* oldObserver = observer->mNext;
observer->mNext = oldObserver->mNext;
oldObserver->mNext = nullptr; // so we don't destroy them all
delete oldObserver;
}
#ifdef DEBUG
else {
NS_WARNING("Asked to remove nonexistent observer");
}
#endif
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::GetRequest(int32_t aRequestType,
imgIRequest** aRequest)
{
switch(aRequestType) {
case CURRENT_REQUEST:
*aRequest = mCurrentRequest;
break;
case PENDING_REQUEST:
*aRequest = mPendingRequest;
break;
default:
NS_ERROR("Unknown request type");
*aRequest = nullptr;
return NS_ERROR_UNEXPECTED;
}
NS_IF_ADDREF(*aRequest);
return NS_OK;
}
NS_IMETHODIMP_(void)
nsImageLoadingContent::FrameCreated(nsIFrame* aFrame)
{
NS_ASSERTION(aFrame, "aFrame is null");
// We need to make sure that our image request is registered, if it should
// be registered.
nsPresContext* presContext = aFrame->PresContext();
if (mCurrentRequest) {
nsLayoutUtils::RegisterImageRequestIfAnimated(presContext, mCurrentRequest,
&mCurrentRequestRegistered);
}
if (mPendingRequest) {
nsLayoutUtils::RegisterImageRequestIfAnimated(presContext, mPendingRequest,
&mPendingRequestRegistered);
}
}
NS_IMETHODIMP_(void)
nsImageLoadingContent::FrameDestroyed(nsIFrame* aFrame)
{
NS_ASSERTION(aFrame, "aFrame is null");
// We need to make sure that our image request is deregistered.
if (mCurrentRequest) {
nsLayoutUtils::DeregisterImageRequest(GetFramePresContext(),
mCurrentRequest,
&mCurrentRequestRegistered);
}
if (mPendingRequest) {
nsLayoutUtils::DeregisterImageRequest(GetFramePresContext(),
mPendingRequest,
&mPendingRequestRegistered);
}
}
NS_IMETHODIMP
nsImageLoadingContent::GetRequestType(imgIRequest* aRequest,
int32_t* aRequestType)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
NS_PRECONDITION(aRequestType, "Null out param");
if (aRequest == mCurrentRequest) {
*aRequestType = CURRENT_REQUEST;
return NS_OK;
}
if (aRequest == mPendingRequest) {
*aRequestType = PENDING_REQUEST;
return NS_OK;
}
*aRequestType = UNKNOWN_REQUEST;
NS_ERROR("Unknown request");
return NS_ERROR_UNEXPECTED;
}
NS_IMETHODIMP
nsImageLoadingContent::GetCurrentURI(nsIURI** aURI)
{
if (mCurrentRequest) {
return mCurrentRequest->GetURI(aURI);
}
if (!mCurrentURI) {
*aURI = nullptr;
return NS_OK;
}
return NS_EnsureSafeToReturn(mCurrentURI, aURI);
}
NS_IMETHODIMP
nsImageLoadingContent::LoadImageWithChannel(nsIChannel* aChannel,
nsIStreamListener** aListener)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
if (!nsContentUtils::GetImgLoaderForChannel(aChannel)) {
return NS_ERROR_NULL_POINTER;
}
nsCOMPtr<nsIDocument> doc = GetOurOwnerDoc();
if (!doc) {
// Don't bother
return NS_OK;
}
// XXX what should we do with content policies here, if anything?
// Shouldn't that be done before the start of the load?
// XXX what about shouldProcess?
// Our state might change. Watch it.
AutoStateChanger changer(this, true);
// Do the load.
nsCOMPtr<imgIRequest>& req = PrepareNextRequest();
nsresult rv = nsContentUtils::GetImgLoaderForChannel(aChannel)->
LoadImageWithChannel(aChannel, this, doc, aListener,
getter_AddRefs(req));
if (NS_SUCCEEDED(rv)) {
TrackImage(req);
ResetAnimationIfNeeded();
} else {
// If we don't have a current URI, we might as well store this URI so people
// know what we tried (and failed) to load.
if (!mCurrentRequest)
aChannel->GetURI(getter_AddRefs(mCurrentURI));
FireEvent(NS_LITERAL_STRING("error"));
return rv;
}
return NS_OK;;
}
NS_IMETHODIMP nsImageLoadingContent::ForceReload()
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
nsCOMPtr<nsIURI> currentURI;
GetCurrentURI(getter_AddRefs(currentURI));
if (!currentURI) {
return NS_ERROR_NOT_AVAILABLE;
}
return LoadImage(currentURI, true, true, nullptr, nsIRequest::VALIDATE_ALWAYS);
}
NS_IMETHODIMP
nsImageLoadingContent::BlockOnload(imgIRequest* aRequest)
{
if (aRequest != mCurrentRequest) {
return NS_OK;
}
NS_ASSERTION(!(mCurrentRequestFlags & REQUEST_BLOCKS_ONLOAD),
"Double BlockOnload!?");
mCurrentRequestFlags |= REQUEST_BLOCKS_ONLOAD;
nsIDocument* doc = GetOurCurrentDoc();
if (doc) {
doc->BlockOnload();
}
return NS_OK;
}
NS_IMETHODIMP
nsImageLoadingContent::UnblockOnload(imgIRequest* aRequest)
{
if (aRequest != mCurrentRequest) {
return NS_OK;
}
NS_ASSERTION(mCurrentRequestFlags & REQUEST_BLOCKS_ONLOAD,
"Double UnblockOnload!?");
mCurrentRequestFlags &= ~REQUEST_BLOCKS_ONLOAD;
nsIDocument* doc = GetOurCurrentDoc();
if (doc) {
doc->UnblockOnload(false);
}
return NS_OK;
}
/*
* Non-interface methods
*/
nsresult
nsImageLoadingContent::LoadImage(const nsAString& aNewURI,
bool aForce,
bool aNotify)
{
// First, get a document (needed for security checks and the like)
nsIDocument* doc = GetOurOwnerDoc();
if (!doc) {
// No reason to bother, I think...
return NS_OK;
}
nsCOMPtr<nsIURI> imageURI;
nsresult rv = StringToURI(aNewURI, doc, getter_AddRefs(imageURI));
NS_ENSURE_SUCCESS(rv, rv);
// XXXbiesi fire onerror if that failed?
bool equal;
if (aNewURI.IsEmpty() &&
doc->GetDocumentURI() &&
NS_SUCCEEDED(doc->GetDocumentURI()->EqualsExceptRef(imageURI, &equal)) &&
equal) {
// Loading an embedded img from the same URI as the document URI will not work
// as a resource cannot recursively embed itself. Attempting to do so generally
// results in having to pre-emptively close down an in-flight HTTP transaction
// and then incurring the significant cost of establishing a new TCP channel.
// This is generally triggered from <img src="">
// In light of that, just skip loading it..
// Do make sure to drop our existing image, if any
CancelImageRequests(aNotify);
return NS_OK;
}
NS_TryToSetImmutable(imageURI);
return LoadImage(imageURI, aForce, aNotify, doc);
}
nsresult
nsImageLoadingContent::LoadImage(nsIURI* aNewURI,
bool aForce,
bool aNotify,
nsIDocument* aDocument,
nsLoadFlags aLoadFlags)
{
if (!mLoadingEnabled) {
// XXX Why fire an error here? seems like the callers to SetLoadingEnabled
// don't want/need it.
FireEvent(NS_LITERAL_STRING("error"));
return NS_OK;
}
NS_ASSERTION(!aDocument || aDocument == GetOurOwnerDoc(),
"Bogus document passed in");
// First, get a document (needed for security checks and the like)
if (!aDocument) {
aDocument = GetOurOwnerDoc();
if (!aDocument) {
// No reason to bother, I think...
return NS_OK;
}
}
// URI equality check.
//
// We skip the equality check if our current image was blocked, since in that
// case we really do want to try loading again.
if (!aForce && NS_CP_ACCEPTED(mImageBlockingStatus)) {
nsCOMPtr<nsIURI> currentURI;
GetCurrentURI(getter_AddRefs(currentURI));
bool equal;
if (currentURI &&
NS_SUCCEEDED(currentURI->Equals(aNewURI, &equal)) &&
equal) {
// Nothing to do here.
return NS_OK;
}
}
// From this point on, our image state could change. Watch it.
AutoStateChanger changer(this, aNotify);
// Sanity check.
//
// We use the principal of aDocument to avoid having to QI |this| an extra
// time. It should always be the same as the principal of this node.
#ifdef DEBUG
nsCOMPtr<nsIContent> thisContent = do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));
NS_ABORT_IF_FALSE(thisContent &&
thisContent->NodePrincipal() == aDocument->NodePrincipal(),
"Principal mismatch?");
#endif
// Are we blocked?
int16_t cpDecision = nsIContentPolicy::REJECT_REQUEST;
nsContentUtils::CanLoadImage(aNewURI,
static_cast<nsIImageLoadingContent*>(this),
aDocument,
aDocument->NodePrincipal(),
&cpDecision);
if (!NS_CP_ACCEPTED(cpDecision)) {
FireEvent(NS_LITERAL_STRING("error"));
SetBlockedRequest(aNewURI, cpDecision);
return NS_OK;
}
nsLoadFlags loadFlags = aLoadFlags;
int32_t corsmode = GetCORSMode();
if (corsmode == CORS_ANONYMOUS) {
loadFlags |= imgILoader::LOAD_CORS_ANONYMOUS;
} else if (corsmode == CORS_USE_CREDENTIALS) {
loadFlags |= imgILoader::LOAD_CORS_USE_CREDENTIALS;
}
// Not blocked. Do the load.
nsCOMPtr<imgIRequest>& req = PrepareNextRequest();
nsresult rv;
rv = nsContentUtils::LoadImage(aNewURI, aDocument,
aDocument->NodePrincipal(),
aDocument->GetDocumentURI(),
this, loadFlags,
getter_AddRefs(req));
if (NS_SUCCEEDED(rv)) {
TrackImage(req);
ResetAnimationIfNeeded();
// Handle cases when we just ended up with a pending request but it's
// already done. In that situation we have to synchronously switch that
// request to being the current request, because websites depend on that
// behavior.
if (req == mPendingRequest) {
uint32_t pendingLoadStatus;
rv = req->GetImageStatus(&pendingLoadStatus);
if (NS_SUCCEEDED(rv) &&
(pendingLoadStatus & imgIRequest::STATUS_LOAD_COMPLETE)) {
MakePendingRequestCurrent();
MOZ_ASSERT(mCurrentRequest,
"How could we not have a current request here?");
nsImageFrame *f = do_QueryFrame(GetOurPrimaryFrame());
if (f) {
f->NotifyNewCurrentRequest(mCurrentRequest, NS_OK);
}
}
}
} else {
// If we don't have a current URI, we might as well store this URI so people
// know what we tried (and failed) to load.
if (!mCurrentRequest)
mCurrentURI = aNewURI;
FireEvent(NS_LITERAL_STRING("error"));
return NS_OK;
}
return NS_OK;
}
nsresult
nsImageLoadingContent::ForceImageState(bool aForce, nsEventStates::InternalType aState)
{
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
mIsImageStateForced = aForce;
mForcedImageState = nsEventStates(aState);
return NS_OK;
}
nsEventStates
nsImageLoadingContent::ImageState() const
{
if (mIsImageStateForced) {
return mForcedImageState;
}
nsEventStates states;
if (mBroken) {
states |= NS_EVENT_STATE_BROKEN;
}
if (mUserDisabled) {
states |= NS_EVENT_STATE_USERDISABLED;
}
if (mSuppressed) {
states |= NS_EVENT_STATE_SUPPRESSED;
}
if (mLoading) {
states |= NS_EVENT_STATE_LOADING;
}
return states;
}
void
nsImageLoadingContent::UpdateImageState(bool aNotify)
{
if (mStateChangerDepth > 0) {
// Ignore this call; we'll update our state when the outermost state
// changer is destroyed. Need this to work around the fact that some libpr0n
// stuff is actually sync and hence we can get OnStopDecode called while
// we're still under LoadImage, and OnStopDecode doesn't know anything about
// aNotify.
// XXX - This machinery should be removed after bug 521604.
return;
}
nsCOMPtr<nsIContent> thisContent = do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));
if (!thisContent) {
return;
}
mLoading = mBroken = mUserDisabled = mSuppressed = false;
// If we were blocked by server-based content policy, we claim to be
// suppressed. If we were blocked by type-based content policy, we claim to
// be user-disabled. Otherwise, claim to be broken.
if (mImageBlockingStatus == nsIContentPolicy::REJECT_SERVER) {
mSuppressed = true;
} else if (mImageBlockingStatus == nsIContentPolicy::REJECT_TYPE) {
mUserDisabled = true;
} else if (!mCurrentRequest) {
// No current request means error, since we weren't disabled or suppressed
mBroken = true;
} else {
uint32_t currentLoadStatus;
nsresult rv = mCurrentRequest->GetImageStatus(¤tLoadStatus);
if (NS_FAILED(rv) || (currentLoadStatus & imgIRequest::STATUS_ERROR)) {
mBroken = true;
} else if (!(currentLoadStatus & imgIRequest::STATUS_SIZE_AVAILABLE)) {
mLoading = true;
}
}
NS_ASSERTION(thisContent->IsElement(), "Not an element?");
thisContent->AsElement()->UpdateState(aNotify);
}
void
nsImageLoadingContent::CancelImageRequests(bool aNotify)
{
AutoStateChanger changer(this, aNotify);
ClearPendingRequest(NS_BINDING_ABORTED, REQUEST_DISCARD);
ClearCurrentRequest(NS_BINDING_ABORTED, REQUEST_DISCARD);
}
nsresult
nsImageLoadingContent::UseAsPrimaryRequest(imgIRequest* aRequest,
bool aNotify)
{
// Our state will change. Watch it.
AutoStateChanger changer(this, aNotify);
// Get rid if our existing images
ClearPendingRequest(NS_BINDING_ABORTED, REQUEST_DISCARD);
ClearCurrentRequest(NS_BINDING_ABORTED, REQUEST_DISCARD);
// Clone the request we were given.
nsCOMPtr<imgIRequest>& req = PrepareNextRequest();;
nsresult rv = aRequest->Clone(this, getter_AddRefs(req));
if (NS_SUCCEEDED(rv))
TrackImage(req);
else
return rv;
return NS_OK;
}
nsIDocument*
nsImageLoadingContent::GetOurOwnerDoc()
{
nsCOMPtr<nsIContent> thisContent =
do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));
NS_ENSURE_TRUE(thisContent, nullptr);
return thisContent->OwnerDoc();
}
nsIDocument*
nsImageLoadingContent::GetOurCurrentDoc()
{
nsCOMPtr<nsIContent> thisContent =
do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));
NS_ENSURE_TRUE(thisContent, nullptr);
return thisContent->GetCurrentDoc();
}
nsIFrame*
nsImageLoadingContent::GetOurPrimaryFrame()
{
nsCOMPtr<nsIContent> thisContent =
do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));
return thisContent->GetPrimaryFrame();
}
nsPresContext* nsImageLoadingContent::GetFramePresContext()
{
nsIFrame* frame = GetOurPrimaryFrame();
if (!frame) {
return nullptr;
}
return frame->PresContext();
}
nsresult
nsImageLoadingContent::StringToURI(const nsAString& aSpec,
nsIDocument* aDocument,
nsIURI** aURI)
{
NS_PRECONDITION(aDocument, "Must have a document");
NS_PRECONDITION(aURI, "Null out param");
// (1) Get the base URI
nsCOMPtr<nsIContent> thisContent = do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));
NS_ASSERTION(thisContent, "An image loading content must be an nsIContent");
nsCOMPtr<nsIURI> baseURL = thisContent->GetBaseURI();
// (2) Get the charset
const nsAFlatCString &charset = aDocument->GetDocumentCharacterSet();
// (3) Construct the silly thing
return NS_NewURI(aURI,
aSpec,
charset.IsEmpty() ? nullptr : charset.get(),
baseURL,
nsContentUtils::GetIOService());
}
nsresult
nsImageLoadingContent::FireEvent(const nsAString& aEventType)
{
// We have to fire the event asynchronously so that we won't go into infinite
// loops in cases when onLoad handlers reset the src and the new src is in
// cache.
nsCOMPtr<nsINode> thisNode = do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));
nsRefPtr<nsAsyncDOMEvent> event =
new nsLoadBlockingAsyncDOMEvent(thisNode, aEventType, false, false);
event->PostDOMEvent();
return NS_OK;
}
nsCOMPtr<imgIRequest>&
nsImageLoadingContent::PrepareNextRequest()
{
// If we don't have a usable current request, get rid of any half-baked
// request that might be sitting there and make this one current.
if (!HaveSize(mCurrentRequest))
return PrepareCurrentRequest();
// Otherwise, make it pending.
return PreparePendingRequest();
}
void
nsImageLoadingContent::SetBlockedRequest(nsIURI* aURI, int16_t aContentDecision)
{
// Sanity
NS_ABORT_IF_FALSE(!NS_CP_ACCEPTED(aContentDecision), "Blocked but not?");
// We do some slightly illogical stuff here to maintain consistency with
// old behavior that people probably depend on. Even in the case where the
// new image is blocked, the old one should really be canceled with the
// reason "image source changed". However, apparently there's some abuse
// over in nsImageFrame where the displaying of the "broken" icon for the
// next image depends on the cancel reason of the previous image. ugh.
ClearPendingRequest(NS_ERROR_IMAGE_BLOCKED, REQUEST_DISCARD);
// For the blocked case, we only want to cancel the existing current request
// if size is not available. bz says the web depends on this behavior.
if (!HaveSize(mCurrentRequest)) {
mImageBlockingStatus = aContentDecision;
ClearCurrentRequest(NS_ERROR_IMAGE_BLOCKED, REQUEST_DISCARD);
// We still want to remember what URI we were despite not having an actual
// request.
mCurrentURI = aURI;
}
}
nsCOMPtr<imgIRequest>&
nsImageLoadingContent::PrepareCurrentRequest()
{
// Blocked images go through SetBlockedRequest, which is a separate path. For
// everything else, we're unblocked.
mImageBlockingStatus = nsIContentPolicy::ACCEPT;
// Get rid of anything that was there previously.
ClearCurrentRequest(NS_ERROR_IMAGE_SRC_CHANGED, REQUEST_DISCARD);
if (mNewRequestsWillNeedAnimationReset) {
mCurrentRequestFlags |= REQUEST_NEEDS_ANIMATION_RESET;
}
// Return a reference.
return mCurrentRequest;
}
nsCOMPtr<imgIRequest>&
nsImageLoadingContent::PreparePendingRequest()
{
// Get rid of anything that was there previously.
ClearPendingRequest(NS_ERROR_IMAGE_SRC_CHANGED, REQUEST_DISCARD);
if (mNewRequestsWillNeedAnimationReset) {
mPendingRequestFlags |= REQUEST_NEEDS_ANIMATION_RESET;
}
// Return a reference.
return mPendingRequest;
}
namespace {
class ImageRequestAutoLock
{
public:
ImageRequestAutoLock(imgIRequest* aRequest)
: mRequest(aRequest)
{
if (mRequest) {
mRequest->LockImage();
}
}
~ImageRequestAutoLock()
{
if (mRequest) {
mRequest->UnlockImage();
}
}
private:
nsCOMPtr<imgIRequest> mRequest;
};
} // anonymous namespace
void
nsImageLoadingContent::MakePendingRequestCurrent()
{
MOZ_ASSERT(mPendingRequest);
// Lock mCurrentRequest for the duration of this method. We do this because
// PrepareCurrentRequest() might unlock mCurrentRequest. If mCurrentRequest
// and mPendingRequest are both requests for the same image, unlocking
// mCurrentRequest before we lock mPendingRequest can cause the lock count
// to go to 0 and the image to be discarded!
ImageRequestAutoLock autoLock(mCurrentRequest);
PrepareCurrentRequest() = mPendingRequest;
mPendingRequest = nullptr;
mCurrentRequestFlags = mPendingRequestFlags;
mPendingRequestFlags = 0;
ResetAnimationIfNeeded();
}
void
nsImageLoadingContent::ClearCurrentRequest(nsresult aReason,
uint32_t aFlags)
{
if (!mCurrentRequest) {
// Even if we didn't have a current request, we might have been keeping
// a URI as a placeholder for a failed load. Clear that now.
mCurrentURI = nullptr;
return;
}
NS_ABORT_IF_FALSE(!mCurrentURI,
"Shouldn't have both mCurrentRequest and mCurrentURI!");
// Deregister this image from the refresh driver so it no longer receives
// notifications.
nsLayoutUtils::DeregisterImageRequest(GetFramePresContext(), mCurrentRequest,
&mCurrentRequestRegistered);
// Clean up the request.
UntrackImage(mCurrentRequest, aFlags);
mCurrentRequest->CancelAndForgetObserver(aReason);
mCurrentRequest = nullptr;
mCurrentRequestFlags = 0;
}
void
nsImageLoadingContent::ClearPendingRequest(nsresult aReason,
uint32_t aFlags)
{
if (!mPendingRequest)
return;
// Push a null JSContext on the stack so that code that runs within
// the below code doesn't think it's being called by JS. See bug
// 604262.
nsCxPusher pusher;
pusher.PushNull();
// Deregister this image from the refresh driver so it no longer receives
// notifications.
nsLayoutUtils::DeregisterImageRequest(GetFramePresContext(), mPendingRequest,
&mPendingRequestRegistered);
UntrackImage(mPendingRequest, aFlags);
mPendingRequest->CancelAndForgetObserver(aReason);
mPendingRequest = nullptr;
mPendingRequestFlags = 0;
}
bool*
nsImageLoadingContent::GetRegisteredFlagForRequest(imgIRequest* aRequest)
{
if (aRequest == mCurrentRequest) {
return &mCurrentRequestRegistered;
} else if (aRequest == mPendingRequest) {
return &mPendingRequestRegistered;
} else {
return nullptr;
}
}
void
nsImageLoadingContent::ResetAnimationIfNeeded()
{
if (mCurrentRequest &&
(mCurrentRequestFlags & REQUEST_NEEDS_ANIMATION_RESET)) {
nsCOMPtr<imgIContainer> container;
mCurrentRequest->GetImage(getter_AddRefs(container));
if (container)
container->ResetAnimation();
mCurrentRequestFlags &= ~REQUEST_NEEDS_ANIMATION_RESET;
}
}
bool
nsImageLoadingContent::HaveSize(imgIRequest *aImage)
{
// Handle the null case
if (!aImage)
return false;
// Query the image
uint32_t status;
nsresult rv = aImage->GetImageStatus(&status);
return (NS_SUCCEEDED(rv) && (status & imgIRequest::STATUS_SIZE_AVAILABLE));
}
void
nsImageLoadingContent::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
nsIContent* aBindingParent,
bool aCompileEventHandlers)
{
// We may be entering the document, so if our image should be tracked,
// track it.
if (!aDocument)
return;
// Push a null JSContext on the stack so that callbacks triggered by the
// below code won't think they're being called from JS.
nsCxPusher pusher;
pusher.PushNull();
if (mCurrentRequestFlags & REQUEST_SHOULD_BE_TRACKED)
aDocument->AddImage(mCurrentRequest);
if (mPendingRequestFlags & REQUEST_SHOULD_BE_TRACKED)
aDocument->AddImage(mPendingRequest);
if (mCurrentRequestFlags & REQUEST_BLOCKS_ONLOAD)
aDocument->BlockOnload();
}
void
nsImageLoadingContent::UnbindFromTree(bool aDeep, bool aNullParent)
{
// We may be leaving the document, so if our image is tracked, untrack it.
nsCOMPtr<nsIDocument> doc = GetOurCurrentDoc();
if (!doc)
return;
// Push a null JSContext on the stack so that callbacks triggered by the
// below code won't think they're being called from JS.
nsCxPusher pusher;
pusher.PushNull();
if (mCurrentRequestFlags & REQUEST_SHOULD_BE_TRACKED)
doc->RemoveImage(mCurrentRequest);
if (mPendingRequestFlags & REQUEST_SHOULD_BE_TRACKED)
doc->RemoveImage(mPendingRequest);
if (mCurrentRequestFlags & REQUEST_BLOCKS_ONLOAD)
doc->UnblockOnload(false);
}
nsresult
nsImageLoadingContent::TrackImage(imgIRequest* aImage)
{
if (!aImage)
return NS_OK;
MOZ_ASSERT(aImage == mCurrentRequest || aImage == mPendingRequest,
"Why haven't we heard of this request?");
if (aImage == mCurrentRequest) {
mCurrentRequestFlags |= REQUEST_SHOULD_BE_TRACKED;
} else {
mPendingRequestFlags |= REQUEST_SHOULD_BE_TRACKED;
}
nsIDocument* doc = GetOurCurrentDoc();
if (doc)
return doc->AddImage(aImage);
return NS_OK;
}
nsresult
nsImageLoadingContent::UntrackImage(imgIRequest* aImage,
uint32_t aFlags /* = 0 */)
{
if (!aImage)
return NS_OK;
MOZ_ASSERT(aImage == mCurrentRequest || aImage == mPendingRequest,
"Why haven't we heard of this request?");
if (aImage == mCurrentRequest) {
mCurrentRequestFlags &= ~REQUEST_SHOULD_BE_TRACKED;
} else {
mPendingRequestFlags &= ~REQUEST_SHOULD_BE_TRACKED;
}
// We may not be in the document. If we outlived our document that's fine,
// because the document empties out the tracker and unlocks all locked images
// on destruction. But if we were never in the document we may need to force
// discarding the image here, since this is the only chance we have.
nsIDocument* doc = GetOurCurrentDoc();
if (doc) {
return doc->RemoveImage(aImage,
(aFlags & REQUEST_DISCARD) ? nsIDocument::REQUEST_DISCARD :
0);
} else if (aFlags & REQUEST_DISCARD) {
// If we're not in the document we may still need to be discarded.
aImage->RequestDiscard();
}
return NS_OK;
}
void
nsImageLoadingContent::CreateStaticImageClone(nsImageLoadingContent* aDest) const
{
aDest->mCurrentRequest = nsContentUtils::GetStaticRequest(mCurrentRequest);
aDest->TrackImage(aDest->mCurrentRequest);
aDest->mForcedImageState = mForcedImageState;
aDest->mImageBlockingStatus = mImageBlockingStatus;
aDest->mLoadingEnabled = mLoadingEnabled;
aDest->mStateChangerDepth = mStateChangerDepth;
aDest->mIsImageStateForced = mIsImageStateForced;
aDest->mLoading = mLoading;
aDest->mBroken = mBroken;
aDest->mUserDisabled = mUserDisabled;
aDest->mSuppressed = mSuppressed;
}
CORSMode
nsImageLoadingContent::GetCORSMode()
{
return CORS_NONE;
}
| [
"info@hadrons.me"
] | info@hadrons.me |
50eec4cf500fbb497ef705ed7837c0e4d0e33129 | 5d57ae30d25e717040150a9371e921cac8702e51 | /MapRepresentation/qgslib/gui/qgis_gui_autogen/include_RelWithDebInfo/2Z5TG4AWKX/moc_qgslabelsettingswidgetbase.cpp | d216aae1a97a3b6cf421558ac3968218db89c378 | [] | no_license | 11wy11/MapRepresentation | 726092ae8d4da46de1664e62f811d140571f19e7 | 507a44e9b14cdeb6ad671470e9ec35c555b8ac53 | refs/heads/master | 2023-02-22T20:17:27.715037 | 2021-01-25T13:43:02 | 2021-01-25T13:43:02 | 330,683,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,479 | cpp | /****************************************************************************
** Meta object code from reading C++ file 'qgslabelsettingswidgetbase.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.11.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../../../../../../../../src/gui/labeling/qgslabelsettingswidgetbase.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qgslabelsettingswidgetbase.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.11.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_QgsLabelSettingsWidgetBase_t {
QByteArrayData data[6];
char stringdata0[105];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_QgsLabelSettingsWidgetBase_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_QgsLabelSettingsWidgetBase_t qt_meta_stringdata_QgsLabelSettingsWidgetBase = {
{
QT_MOC_LITERAL(0, 0, 26), // "QgsLabelSettingsWidgetBase"
QT_MOC_LITERAL(1, 27, 7), // "changed"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 21), // "auxiliaryFieldCreated"
QT_MOC_LITERAL(4, 58, 20), // "createAuxiliaryField"
QT_MOC_LITERAL(5, 79, 25) // "updateDataDefinedProperty"
},
"QgsLabelSettingsWidgetBase\0changed\0\0"
"auxiliaryFieldCreated\0createAuxiliaryField\0"
"updateDataDefinedProperty"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_QgsLabelSettingsWidgetBase[] = {
// content:
7, // revision
0, // classname
0, 0, // classinfo
4, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
2, // signalCount
// signals: name, argc, parameters, tag, flags
1, 0, 34, 2, 0x06 /* Public */,
3, 0, 35, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
4, 0, 36, 2, 0x08 /* Private */,
5, 0, 37, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void,
QMetaType::Void,
// slots: parameters
QMetaType::Void,
QMetaType::Void,
0 // eod
};
void QgsLabelSettingsWidgetBase::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
QgsLabelSettingsWidgetBase *_t = static_cast<QgsLabelSettingsWidgetBase *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->changed(); break;
case 1: _t->auxiliaryFieldCreated(); break;
case 2: _t->createAuxiliaryField(); break;
case 3: _t->updateDataDefinedProperty(); break;
default: ;
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
{
using _t = void (QgsLabelSettingsWidgetBase::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QgsLabelSettingsWidgetBase::changed)) {
*result = 0;
return;
}
}
{
using _t = void (QgsLabelSettingsWidgetBase::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QgsLabelSettingsWidgetBase::auxiliaryFieldCreated)) {
*result = 1;
return;
}
}
}
Q_UNUSED(_a);
}
QT_INIT_METAOBJECT const QMetaObject QgsLabelSettingsWidgetBase::staticMetaObject = {
{ &QgsPanelWidget::staticMetaObject, qt_meta_stringdata_QgsLabelSettingsWidgetBase.data,
qt_meta_data_QgsLabelSettingsWidgetBase, qt_static_metacall, nullptr, nullptr}
};
const QMetaObject *QgsLabelSettingsWidgetBase::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *QgsLabelSettingsWidgetBase::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_QgsLabelSettingsWidgetBase.stringdata0))
return static_cast<void*>(this);
if (!strcmp(_clname, "QgsExpressionContextGenerator"))
return static_cast< QgsExpressionContextGenerator*>(this);
return QgsPanelWidget::qt_metacast(_clname);
}
int QgsLabelSettingsWidgetBase::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QgsPanelWidget::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 4)
qt_static_metacall(this, _c, _id, _a);
_id -= 4;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 4)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 4;
}
return _id;
}
// SIGNAL 0
void QgsLabelSettingsWidgetBase::changed()
{
QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
// SIGNAL 1
void QgsLabelSettingsWidgetBase::auxiliaryFieldCreated()
{
QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
struct qt_meta_stringdata_QgsLabelSettingsWidgetDialog_t {
QByteArrayData data[1];
char stringdata0[29];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_QgsLabelSettingsWidgetDialog_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_QgsLabelSettingsWidgetDialog_t qt_meta_stringdata_QgsLabelSettingsWidgetDialog = {
{
QT_MOC_LITERAL(0, 0, 28) // "QgsLabelSettingsWidgetDialog"
},
"QgsLabelSettingsWidgetDialog"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_QgsLabelSettingsWidgetDialog[] = {
// content:
7, // revision
0, // classname
0, 0, // classinfo
0, 0, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
0 // eod
};
void QgsLabelSettingsWidgetDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
Q_UNUSED(_o);
Q_UNUSED(_id);
Q_UNUSED(_c);
Q_UNUSED(_a);
}
QT_INIT_METAOBJECT const QMetaObject QgsLabelSettingsWidgetDialog::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_QgsLabelSettingsWidgetDialog.data,
qt_meta_data_QgsLabelSettingsWidgetDialog, qt_static_metacall, nullptr, nullptr}
};
const QMetaObject *QgsLabelSettingsWidgetDialog::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *QgsLabelSettingsWidgetDialog::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_QgsLabelSettingsWidgetDialog.stringdata0))
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
int QgsLabelSettingsWidgetDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QDialog::qt_metacall(_c, _id, _a);
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
| [
"1124485058@qq.com"
] | 1124485058@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.