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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b0db26f640d95726267ea1e2bd0b98a4bddff30a | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/inetsrv/iis/svcs/infocomm/common/infosec.hxx | 656ac5bd0310fccc7d1db892ae24a3360d1b38d8 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 3,197 | hxx | /*++
Copyright (c) 1996 Microsoft Corporation
Module Name :
infosec.hxx
Abstract:
This module declares the functions, variables and decls
useful for security support in IIS
Author:
Murali R. Krishnan ( MuraliK ) 11-Dec-1996
Environment:
Project:
Internet Server DLL
Revision History:
--*/
# ifndef _INFOSEC_HXX_
# define _INFOSEC_HXX_
/************************************************************
* Include Headers
************************************************************/
extern "C" {
#include <ntsam.h>
#include <ntlsa.h>
#include <ntmsv1_0.h>
#include <crypt.h>
#include <logonmsv.h>
#include <inetsec.h>
#include <certmap.h>
#define SECURITY_WIN32
#include <sspi.h> // Security Support Provider APIs
typedef SECURITY_STATUS
(SEC_ENTRY* FUNC_SspQueryPasswordExpiry)(PCtxtHandle,PTimeStamp);
#ifndef SECPKG_ATTR_PASSWORD_EXPIRY
#define SECPKG_ATTR_PASSWORD_EXPIRY 8
typedef struct _SecPkgContext_PasswordExpiry
{
TimeStamp tsPasswordExpires;
} SecPkgContext_PasswordExpiry, SEC_FAR * PSecPkgContext_PasswordExpiry;
#endif
#include <issperr.h>
}
# include <inetinfo.h>
# include <iistypes.hxx>
# include "tsunami.hxx"
# include "tcpcons.h"
#include <issched.hxx>
#include <tsrc.h>
#include <cmnull.hxx>
#include <lonsi.hxx>
#include <iisctl.hxx>
/************************************************************
* Local Constants
************************************************************/
#define TOKEN_SOURCE_NAME "InetSvcs"
#define LOGON_PROCESS_NAME "inetsvcs.exe"
#define LOGON_ORIGIN "Internet Services"
#define SUBSYSTEM_NAME L"InetSvcs"
#define OBJECT_NAME L"InetSvcs"
#define OBJECTTYPE_NAME L"InetSvcs"
//
// The name we use for the target when dealing with the SSP APIs
//
#define TCPAUTH_TARGET_NAME TOKEN_SOURCE_NAME
/************************************************************
* Macros
************************************************************/
//
// Converts a cached token handle object to the real token handle
//
#define CTO_TO_TOKEN( ptc ) ((ptc)->_hToken)
//
// Converts a cached token handle object to the impersonated token handle
//
#define CTO_TO_IMPTOKEN( ptc ) ((ptc)->m_hImpersonationToken)
/************************************************************
* Variables
************************************************************/
extern PTOKEN_PRIVILEGES g_pTokPrev;
extern CHAR g_achComputerName[];
/************************************************************
* Functions
************************************************************/
BOOL
IsGuestUser(IN HANDLE hToken);
BOOL CrackUserAndDomain(
CHAR * pszDomainAndUser,
CHAR * * ppszUser,
CHAR * * ppszDomain
);
VOID
RemoveTokenFromCache( IN CACHED_TOKEN * pct);
TS_TOKEN
FastFindAnonymousToken(
IN PTCP_AUTHENT_INFO pTAI
);
# endif // _INFOSEC_HXX_
/************************ End of File ***********************/
| [
"seta7D5@protonmail.com"
] | seta7D5@protonmail.com |
bbd1757066a303c1d7973bbf33ee12f57391899e | 9b7d378b24b1bdab54ad2c6055e4855e118ee62c | /lib/include/ebc/BitcodeRetriever.h | 89a2ea7b403189fdabb75a074f5d9e98ae574541 | [
"Apache-2.0"
] | permissive | jetming/LibEBC | 6402d2898beaeda78d6eaee5ae250fc0f9583455 | de19754245088754244d53f0e60ca655379196d0 | refs/heads/master | 2022-12-07T22:51:18.546338 | 2020-09-03T02:58:00 | 2020-09-03T02:58:00 | 292,451,047 | 0 | 0 | null | 2020-09-03T02:58:52 | 2020-09-03T02:58:51 | null | UTF-8 | C++ | false | false | 1,006 | h | #pragma once
#include <memory>
#include <string>
#include <vector>
namespace ebc {
class BitcodeContainer;
/// Retrieves bitcode form an object file.
class BitcodeRetriever {
public:
struct BitcodeInfo {
std::string arch;
std::unique_ptr<BitcodeContainer> bitcodeContainer;
BitcodeInfo(std::string arch, std::unique_ptr<BitcodeContainer> bitcodeContainer)
: arch(std::move(arch)), bitcodeContainer(std::move(bitcodeContainer)) {}
};
/// Creates an instance of the bitcode retriever for the given object file.
///
/// @param objectPath The file from which to retrieve bitcode.
BitcodeRetriever(std::string objectPath);
~BitcodeRetriever();
/// Perform the actual bitcode retrieval. Depending on the type of the object
/// file the resulting list contains plain bitcode containers or bitcode
/// archives.
///
/// @return A list of bitcode containers.
std::vector<BitcodeInfo> GetBitcodeInfo();
private:
class Impl;
std::unique_ptr<Impl> _impl;
};
}
| [
"jonas@devlieghere.com"
] | jonas@devlieghere.com |
a00a21cf2fd295c37d719e0196ac300595049f41 | e703d5ecd139b84e0fe7e7c074caeca04168f133 | /teach_c++_template class_inheritance.cpp | 6c411f43cdbbc57d1942f01bd30756e3e5aa04fa | [] | no_license | forspy/share | e1c0a677d68f3622176213f21b1f765ceb3f40df | 0f9f9055ba581b261d97fd1e843e24e66b18ff62 | refs/heads/master | 2020-03-22T17:22:59.114042 | 2019-12-20T01:43:35 | 2019-12-20T01:43:35 | 140,392,402 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 879 | cpp | #include<iostream>
#include<string>
using namespace std;
template<typename T>
class Parent
{
private:
T m_data;
public:
Parent(T data=0) { m_data = data; }//前提是T类型需要注意=重载的深拷贝
};
//如果派生类不是模板类,则必须显示指出基类的类型,必须要用构造函数列表来显示指出基类模板类型构造函数初始化
class ChildOne :public Parent<int>
{
private:
int m_clone;
public:
ChildOne(int a=0, int b=0) :Parent(b)
{
m_clone = a;
}
};
//如果派生类也是模板类,要么显式指明基类的类型,要么使用泛型指明
template<typename T>
class ChileTwo :public Parent<T>
{
private:
int m_clone;
public:
ChileTwo(int a = 0, T b = " ") :Parent(b)
{
m_clone = a;
}
};
int main()
{
ChildOne one;
ChileTwo<string> two;//模板是二次编译
cout << sizeof(one) << " " << sizeof(two) << endl;
} | [
"qiubow@126.com"
] | qiubow@126.com |
68462675c9010df191062596efe5c73842bd42a7 | 2ba94892764a44d9c07f0f549f79f9f9dc272151 | /Engine/Source/ThirdParty/PhysX/APEX-1.3/module/clothing_legacy/include/ClothingAssetParameters_0p12.h | 8edbdcd6d3e2e9b6c6223977af85661ee5d598df | [
"BSD-2-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | PopCap/GameIdea | 934769eeb91f9637f5bf205d88b13ff1fc9ae8fd | 201e1df50b2bc99afc079ce326aa0a44b178a391 | refs/heads/master | 2021-01-25T00:11:38.709772 | 2018-09-11T03:38:56 | 2018-09-11T03:38:56 | 37,818,708 | 0 | 0 | BSD-2-Clause | 2018-09-11T03:39:05 | 2015-06-21T17:36:44 | null | UTF-8 | C++ | false | false | 9,016 | h | /*
* Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software and related documentation without an express
* license agreement from NVIDIA CORPORATION is strictly prohibited.
*/
// This file was generated by NxParameterized/scripts/GenParameterized.pl
// Created: 2015.06.02 04:12:11
#ifndef HEADER_ClothingAssetParameters_0p12_h
#define HEADER_ClothingAssetParameters_0p12_h
#include "NxParametersTypes.h"
#ifndef NX_PARAMETERIZED_ONLY_LAYOUTS
#include "NxParameterized.h"
#include "NxParameters.h"
#include "NxParameterizedTraits.h"
#include "NxTraitsInternal.h"
#endif
namespace physx
{
namespace apex
{
#pragma warning(push)
#pragma warning(disable: 4324) // structure was padded due to __declspec(align())
namespace ClothingAssetParameters_0p12NS
{
struct BoneEntry_Type;
struct ActorEntry_Type;
struct BoneSphere_Type;
struct BonePlane_Type;
struct CookedEntry_Type;
struct SimulationParams_Type;
struct REF_DynamicArray1D_Type
{
NxParameterized::Interface** buf;
bool isAllocated;
physx::PxI32 elementSize;
physx::PxI32 arraySizes[1];
};
struct BoneEntry_DynamicArray1D_Type
{
BoneEntry_Type* buf;
bool isAllocated;
physx::PxI32 elementSize;
physx::PxI32 arraySizes[1];
};
struct ActorEntry_DynamicArray1D_Type
{
ActorEntry_Type* buf;
bool isAllocated;
physx::PxI32 elementSize;
physx::PxI32 arraySizes[1];
};
struct VEC3_DynamicArray1D_Type
{
physx::PxVec3* buf;
bool isAllocated;
physx::PxI32 elementSize;
physx::PxI32 arraySizes[1];
};
struct BoneSphere_DynamicArray1D_Type
{
BoneSphere_Type* buf;
bool isAllocated;
physx::PxI32 elementSize;
physx::PxI32 arraySizes[1];
};
struct U16_DynamicArray1D_Type
{
physx::PxU16* buf;
bool isAllocated;
physx::PxI32 elementSize;
physx::PxI32 arraySizes[1];
};
struct BonePlane_DynamicArray1D_Type
{
BonePlane_Type* buf;
bool isAllocated;
physx::PxI32 elementSize;
physx::PxI32 arraySizes[1];
};
struct U32_DynamicArray1D_Type
{
physx::PxU32* buf;
bool isAllocated;
physx::PxI32 elementSize;
physx::PxI32 arraySizes[1];
};
struct CookedEntry_DynamicArray1D_Type
{
CookedEntry_Type* buf;
bool isAllocated;
physx::PxI32 elementSize;
physx::PxI32 arraySizes[1];
};
struct BoneSphere_Type
{
physx::PxI32 boneIndex;
physx::PxF32 radius;
physx::PxVec3 localPos;
};
struct SimulationParams_Type
{
physx::PxU32 hierarchicalLevels;
physx::PxF32 thickness;
physx::PxF32 virtualParticleDensity;
physx::PxVec3 gravityDirection;
physx::PxF32 sleepLinearVelocity;
bool disableCCD;
bool untangling;
bool twowayInteraction;
physx::PxF32 restLengthScale;
};
struct BoneEntry_Type
{
physx::PxI32 internalIndex;
physx::PxI32 externalIndex;
physx::PxU32 numMeshReferenced;
physx::PxU32 numRigidBodiesReferenced;
physx::PxI32 parentIndex;
physx::PxMat34Legacy bindPose;
NxParameterized::DummyStringStruct name;
};
struct ActorEntry_Type
{
physx::PxI32 boneIndex;
physx::PxU32 convexVerticesStart;
physx::PxU32 convexVerticesCount;
physx::PxF32 capsuleRadius;
physx::PxF32 capsuleHeight;
physx::PxMat34Legacy localPose;
};
struct BonePlane_Type
{
physx::PxI32 boneIndex;
physx::PxVec3 n;
physx::PxF32 d;
};
struct CookedEntry_Type
{
physx::PxF32 scale;
NxParameterized::Interface* cookedData;
};
struct ParametersStruct
{
REF_DynamicArray1D_Type physicalMeshes;
REF_DynamicArray1D_Type graphicalLods;
SimulationParams_Type simulation;
BoneEntry_DynamicArray1D_Type bones;
physx::PxU32 bonesReferenced;
physx::PxU32 bonesReferencedByMesh;
physx::PxU32 rootBoneIndex;
ActorEntry_DynamicArray1D_Type boneActors;
VEC3_DynamicArray1D_Type boneVertices;
BoneSphere_DynamicArray1D_Type boneSpheres;
U16_DynamicArray1D_Type boneSphereConnections;
BonePlane_DynamicArray1D_Type bonePlanes;
U32_DynamicArray1D_Type collisionConvexes;
CookedEntry_DynamicArray1D_Type cookedData;
physx::PxBounds3 boundingBox;
NxParameterized::Interface* materialLibrary;
physx::PxU32 materialIndex;
NxParameterized::DummyStringStruct toolString;
};
static const physx::PxU32 checksum[] = { 0xa51cc7bc, 0xbd0d2180, 0xb3cb930e, 0x543fdb61, };
} // namespace ClothingAssetParameters_0p12NS
#ifndef NX_PARAMETERIZED_ONLY_LAYOUTS
class ClothingAssetParameters_0p12 : public NxParameterized::NxParameters, public ClothingAssetParameters_0p12NS::ParametersStruct
{
public:
ClothingAssetParameters_0p12(NxParameterized::Traits* traits, void* buf = 0, PxI32* refCount = 0);
virtual ~ClothingAssetParameters_0p12();
virtual void destroy();
static const char* staticClassName(void)
{
return("ClothingAssetParameters");
}
const char* className(void) const
{
return(staticClassName());
}
static const physx::PxU32 ClassVersion = ((physx::PxU32)0 << 16) + (physx::PxU32)12;
static physx::PxU32 staticVersion(void)
{
return ClassVersion;
}
physx::PxU32 version(void) const
{
return(staticVersion());
}
static const physx::PxU32 ClassAlignment = 8;
static const physx::PxU32* staticChecksum(physx::PxU32& bits)
{
bits = 8 * sizeof(ClothingAssetParameters_0p12NS::checksum);
return ClothingAssetParameters_0p12NS::checksum;
}
static void freeParameterDefinitionTable(NxParameterized::Traits* traits);
const physx::PxU32* checksum(physx::PxU32& bits) const
{
return staticChecksum(bits);
}
const ClothingAssetParameters_0p12NS::ParametersStruct& parameters(void) const
{
ClothingAssetParameters_0p12* tmpThis = const_cast<ClothingAssetParameters_0p12*>(this);
return *(static_cast<ClothingAssetParameters_0p12NS::ParametersStruct*>(tmpThis));
}
ClothingAssetParameters_0p12NS::ParametersStruct& parameters(void)
{
return *(static_cast<ClothingAssetParameters_0p12NS::ParametersStruct*>(this));
}
virtual NxParameterized::ErrorType getParameterHandle(const char* long_name, NxParameterized::Handle& handle) const;
virtual NxParameterized::ErrorType getParameterHandle(const char* long_name, NxParameterized::Handle& handle);
void initDefaults(void);
protected:
virtual const NxParameterized::DefinitionImpl* getParameterDefinitionTree(void);
virtual const NxParameterized::DefinitionImpl* getParameterDefinitionTree(void) const;
virtual void getVarPtr(const NxParameterized::Handle& handle, void*& ptr, size_t& offset) const;
private:
void buildTree(void);
void initDynamicArrays(void);
void initStrings(void);
void initReferences(void);
void freeDynamicArrays(void);
void freeStrings(void);
void freeReferences(void);
static bool mBuiltFlag;
static NxParameterized::MutexType mBuiltFlagMutex;
};
class ClothingAssetParameters_0p12Factory : public NxParameterized::Factory
{
static const char* const vptr;
public:
virtual NxParameterized::Interface* create(NxParameterized::Traits* paramTraits)
{
// placement new on this class using mParameterizedTraits
void* newPtr = paramTraits->alloc(sizeof(ClothingAssetParameters_0p12), ClothingAssetParameters_0p12::ClassAlignment);
if (!NxParameterized::IsAligned(newPtr, ClothingAssetParameters_0p12::ClassAlignment))
{
NX_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p12");
paramTraits->free(newPtr);
return 0;
}
memset(newPtr, 0, sizeof(ClothingAssetParameters_0p12)); // always initialize memory allocated to zero for default values
return NX_PARAM_PLACEMENT_NEW(newPtr, ClothingAssetParameters_0p12)(paramTraits);
}
virtual NxParameterized::Interface* finish(NxParameterized::Traits* paramTraits, void* bufObj, void* bufStart, physx::PxI32* refCount)
{
if (!NxParameterized::IsAligned(bufObj, ClothingAssetParameters_0p12::ClassAlignment)
|| !NxParameterized::IsAligned(bufStart, ClothingAssetParameters_0p12::ClassAlignment))
{
NX_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ClothingAssetParameters_0p12");
return 0;
}
// Init NxParameters-part
// We used to call empty constructor of ClothingAssetParameters_0p12 here
// but it may call default constructors of members and spoil the data
NX_PARAM_PLACEMENT_NEW(bufObj, NxParameterized::NxParameters)(paramTraits, bufStart, refCount);
// Init vtable (everything else is already initialized)
*(const char**)bufObj = vptr;
return (ClothingAssetParameters_0p12*)bufObj;
}
virtual const char* getClassName()
{
return (ClothingAssetParameters_0p12::staticClassName());
}
virtual physx::PxU32 getVersion()
{
return (ClothingAssetParameters_0p12::staticVersion());
}
virtual physx::PxU32 getAlignment()
{
return (ClothingAssetParameters_0p12::ClassAlignment);
}
virtual const physx::PxU32* getChecksum(physx::PxU32& bits)
{
return (ClothingAssetParameters_0p12::staticChecksum(bits));
}
};
#endif // NX_PARAMETERIZED_ONLY_LAYOUTS
} // namespace apex
} // namespace physx
#pragma warning(pop)
#endif
| [
"dkroell@acm.org"
] | dkroell@acm.org |
555f8f2bd82a07924fd4c2fb4c393c3596f1f66c | 5bbc99c66198ea25d4aea94d76b1dfd81ed18f0f | /src/sb.cpp | 61c75423cba7b54eaf929e5edabbdd223e17412f | [
"MIT"
] | permissive | marjoleinbruijning/trackdem | f7223cc57c04aba20ff85a34dc883f5571fbfc3a | c74c15724a54f6fafe949ba15b0704395f2df016 | refs/heads/master | 2021-09-27T03:43:12.552932 | 2021-09-24T19:29:03 | 2021-09-24T19:29:03 | 36,022,416 | 9 | 2 | null | 2017-04-24T14:08:34 | 2015-05-21T15:53:27 | R | UTF-8 | C++ | false | false | 733 | cpp | // [[Rcpp::depends(RcppArmadillo)]]
#include <RcppArmadillo.h>
using namespace Rcpp;
using namespace arma;
// [[Rcpp::export]]
NumericVector sb(NumericVector m1, NumericVector bg, IntegerVector d,
IntegerVector e) {
NumericVector mat(m1);
NumericMatrix b(bg);
NumericVector empty(e);
IntegerVector dim(d);
arma::cube array(mat.begin(),dim[0],dim[1],dim[2],false);
arma::cube subs(empty.begin(),dim[0],dim[1],dim[2],false);
int nrows = dim[0];
int ncols = dim[1];
int images = dim[2];
for (int j = 0; j < nrows; j++) {
for (int i = 0; i < ncols; i++) {
for (int k = 0; k < images; k++) {
subs(j,i,k) = array(j,i,k) - b(j,i);
}
}
}
return(wrap(subs));
}
| [
"marjoleinbruijning@gmail.com"
] | marjoleinbruijning@gmail.com |
06dc5c8dcd4fcbb1a728a778fa07748d78b1f141 | 6ced41da926682548df646099662e79d7a6022c5 | /aws-cpp-sdk-iottwinmaker/source/model/BatchPutPropertyValuesRequest.cpp | 899f573e3adee5944d0079d6556ae4559ace875f | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | irods/aws-sdk-cpp | 139104843de529f615defa4f6b8e20bc95a6be05 | 2c7fb1a048c96713a28b730e1f48096bd231e932 | refs/heads/main | 2023-07-25T12:12:04.363757 | 2022-08-26T15:33:31 | 2022-08-26T15:33:31 | 141,315,346 | 0 | 1 | Apache-2.0 | 2022-08-26T17:45:09 | 2018-07-17T16:24:06 | C++ | UTF-8 | C++ | false | false | 975 | cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iottwinmaker/model/BatchPutPropertyValuesRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoTTwinMaker::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
BatchPutPropertyValuesRequest::BatchPutPropertyValuesRequest() :
m_entriesHasBeenSet(false),
m_workspaceIdHasBeenSet(false)
{
}
Aws::String BatchPutPropertyValuesRequest::SerializePayload() const
{
JsonValue payload;
if(m_entriesHasBeenSet)
{
Array<JsonValue> entriesJsonList(m_entries.size());
for(unsigned entriesIndex = 0; entriesIndex < entriesJsonList.GetLength(); ++entriesIndex)
{
entriesJsonList[entriesIndex].AsObject(m_entries[entriesIndex].Jsonize());
}
payload.WithArray("entries", std::move(entriesJsonList));
}
return payload.View().WriteReadable();
}
| [
"aws-sdk-cpp-automation@github.com"
] | aws-sdk-cpp-automation@github.com |
1c672d576420f4a997d4f3a081e697188c7eae13 | e9271bb7f00f9cfd090c611012403ebdeca255fd | /week10/solutions/Temperature.h | 274d60cdfb0ddd727dfcde78434bbf4b229fd00b | [] | no_license | 404carrynotfound/OOP-IS-2020-2021-Practicum-Group-2 | eedb051450531b6a9ff335cb5ff38e097f5175ed | fb5d372a43010a6a890e4b2a4a247e39de7b278a | refs/heads/main | 2023-05-08T15:39:42.387453 | 2021-06-06T08:33:32 | 2021-06-06T08:33:32 | 354,010,081 | 0 | 0 | null | 2021-04-02T12:17:11 | 2021-04-02T12:17:10 | null | UTF-8 | C++ | false | false | 1,257 | h | #pragma once
#include <iostream>
class Temperature
{
int min_, max_, avg_;
public:
Temperature();
Temperature(const int&, const int&, const int&);
int get_min() const;
int get_avg() const;
int get_max() const;
size_t get_amp() const;
bool operator==(const Temperature&) const;
bool operator!=(const Temperature&) const;
bool operator<(const Temperature&) const;
bool operator>(const Temperature&) const;
bool operator<=(const Temperature&) const;
bool operator>=(const Temperature&) const;
friend std::istream& operator>>(std::istream&, Temperature&);
friend std::ostream& operator<<(std::ostream&, const Temperature&);
};
// максималната температура на първата
// е по - малка от максималната втората, или
//
// имат равни максимални температури, но минималната
// на първата е по - малка от минималната на втората, или
//
// ако и минималните и максималните температури са равни,
// то средната температура на първата е по - малка от
// средната температура на втората. | [
"37977687+404carrynotfound@users.noreply.github.com"
] | 37977687+404carrynotfound@users.noreply.github.com |
9932f32944c0bfaa817cc713f75f24b870515937 | ab6b28042e36ce34304c2d187279d199247994a6 | /src/parameter.hpp | 8efb6bead4dcdcf26b0f715dd38219f9831a4f5d | [
"MIT"
] | permissive | asztal/eos | 7ed94d2eed70aec8049953af76cd96147d714ae1 | 2791e63f37c66f3a86b10a19183cf0f400cf8941 | refs/heads/master | 2021-01-24T06:38:00.917977 | 2015-06-14T13:31:42 | 2015-06-14T13:31:42 | 16,421,447 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,323 | hpp | #pragma once
#include "eos.hpp"
namespace Eos {
struct Parameter: ObjectWrap {
Parameter(SQLUSMALLINT parameterNumber, SQLSMALLINT inOutType, SQLSMALLINT sqlType, SQLSMALLINT cType, void* buffer, SQLLEN length, Handle<Object> bufferObject, SQLLEN indicator, bool autoWrap = false);
~Parameter();
static void Init(Handle<Object> exports);
NAN_GETTER(GetValue) const;
NAN_SETTER(SetValue);
NAN_GETTER(GetBytesInBuffer) const;
NAN_SETTER(SetBytesInBuffer);
SQLLEN BytesInBuffer() const;
NAN_GETTER(GetBuffer) const;
NAN_SETTER(SetBuffer);
NAN_GETTER(GetBufferLength) const;
NAN_GETTER(GetIndex) const;
NAN_GETTER(GetKind) const;
public:
static const char* Marshal(
SQLUSMALLINT parameterNumber,
SQLSMALLINT inOutType,
SQLSMALLINT sqlType,
SQLSMALLINT decimalDigits,
Handle<Value> jsVal,
Handle<Object> bufferObject,
Handle<Object>& result);
static Parameter* Unwrap(Handle<Object> obj) {
return ObjectWrap::Unwrap<Parameter>(obj);
}
void Ref() { EOS_DEBUG_METHOD(); ObjectWrap::Ref(); }
void Unref() { EOS_DEBUG_METHOD(); ObjectWrap::Unref(); }
void* Buffer() const throw() { return buffer_; }
SQLLEN Length() const throw() { return length_; }
Handle<Object> BufferObject() const throw() { return NanNew(bufferObject_); }
SQLUSMALLINT ParameterNumber() const throw() { return parameterNumber_; }
SQLSMALLINT InOutType() const throw() { return inOutType_; }
SQLSMALLINT SQLType() const throw() { return sqlType_; }
SQLSMALLINT CType() const throw() { return cType_; }
const SQLLEN& Indicator() const throw() { return indicator_; }
SQLLEN& Indicator() throw() { return indicator_; }
static Handle<FunctionTemplate> Constructor() { return NanNew(constructor_); }
private:
static Persistent<FunctionTemplate> constructor_;
SQLSMALLINT sqlType_, cType_;
SQLSMALLINT inOutType_;
SQLUSMALLINT parameterNumber_;
void* buffer_;
SQLLEN length_, indicator_;
Persistent<Object> bufferObject_;
};
}
| [
"lee@theconnectgroup.net"
] | lee@theconnectgroup.net |
b40e50acb342734b6be8d0dc07ed1c262002a2f3 | 93d0fbda1114e85dc5d53595879e49be31e7f52d | /project3D/Body.cpp | 380329d008bc0183a9ce162898c6d402af9ffda7 | [
"MIT"
] | permissive | Darker1300/Physics_2017 | 33d7324822f09b8f81df7e8c802d982353856a4d | f7902bcb65d47a05474175abdb681bf68bc1fc08 | refs/heads/master | 2020-12-30T11:51:51.091637 | 2017-06-22T04:24:31 | 2017-06-22T04:24:31 | 91,534,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,866 | cpp | #include "Body.h"
#include "DEBUG_NEW_LEAK_DETECT.h"
#include "DEBUG_WINDOWS_ERR_MSG.h"
using namespace Physics;
Body::Body()
: Body(1.0f)
{
}
Body::Body(const float _mass)
: m_isStatic(false)
, m_position()
, m_mass(_mass)
, m_velocity()
, m_force()
, m_acceleration()
, m_restitution(0.25f)
, m_shape(nullptr)
{
}
Body::~Body()
{
if (m_shape != nullptr)
delete m_shape;
}
glm::vec3 Body::GetPosition() const
{
return m_position;
}
float Body::GetMass() const
{
return m_mass;
}
glm::vec3 Body::GetVelocity() const
{
return m_velocity;
}
bool Body::GetIsStatic() const
{
return m_isStatic;
}
float Body::GetRestitution() const
{
return m_restitution;
}
void Body::SetPosition(const glm::vec3 & _position)
{
m_position = _position;
}
void Body::SetMass(const float _mass)
{
m_mass = _mass;
}
void Body::SetVelocity(const glm::vec3 & _velocity)
{
m_velocity = _velocity;
}
void Body::SetIsStatic(const bool _isStatic)
{
m_isStatic = _isStatic;
}
void Body::SetRestitution(const float _restitution)
{
m_restitution = _restitution;
}
void Body::AddForce(const glm::vec3 & _force)
{
m_force += _force;
}
void Body::AddAcceleration(const glm::vec3 & _acceleration)
{
m_acceleration += _acceleration;
}
void Body::AddVelocity(const glm::vec3 & _velocity)
{
m_velocity += _velocity;
}
void Body::Update(float _deltaTime)
{
m_acceleration += m_force / m_mass;
m_velocity = m_velocity + m_acceleration * _deltaTime;
m_position = m_position + m_velocity * _deltaTime;
m_force = glm::vec3(0.0f);
m_acceleration = glm::vec3(0.0f);
}
void Body::SetShape(Shape * _shape)
{
RemoveShape();
m_shape = _shape;
}
void Body::RemoveShape()
{
if (m_shape != nullptr) {
delete m_shape;
m_shape = nullptr;
}
}
void Body::DrawGizmo(const glm::vec4& _colour) const
{
if (m_shape != nullptr)
m_shape->DrawGizmo(this, _colour);
}
| [
"darker1300@gmail.com"
] | darker1300@gmail.com |
61196dbb728e0d0e8936956283665c80a3d28a1b | 74eb8bd6ca9fdbb731fec191888a65076ee913cd | /axmldec.cpp | d0f208dd293a6124e166b6013c6537b36053672d | [
"LicenseRef-scancode-unknown-license-reference",
"ISC"
] | permissive | direbearform/axmldec | 8c97aa215df9ae444fe7ae95072356176c842f8b | 83e7f52894dfcd53640f4a83a73563d19b2b5331 | refs/heads/master | 2021-04-12T12:43:20.686337 | 2020-03-27T15:07:39 | 2020-03-27T15:07:39 | 249,076,050 | 1 | 0 | ISC | 2020-03-21T23:02:34 | 2020-03-21T23:02:34 | null | UTF-8 | C++ | false | false | 2,140 | cpp | #include "axmldec.hpp"
#include "jitana/util/axml_parser.hpp"
#include <iostream>
#include <fstream>
#include <vector>
#include <boost/property_tree/xml_parser.hpp>
struct membuf : std::streambuf {
membuf(const char* base, size_t size)
{
char* p(const_cast<char*>(base));
this->setg(p, p, p + size);
}
};
struct imemstream : virtual membuf, std::istream {
imemstream(char const* base, size_t size)
: membuf(base, size),
std::istream(static_cast<std::streambuf*>(this))
{
}
};
void write_xml(std::ostream& os, const boost_pt::ptree& pt)
{
// Write the ptree to the output.
{
#if BOOST_MAJOR_VERSION == 1 && BOOST_MINOR_VERSION < 56
boost_pt::xml_writer_settings<char> settings(' ', 2);
#else
boost_pt::xml_writer_settings<std::string> settings(' ', 2);
#endif
boost_pt::write_xml(os, pt, settings);
}
}
void process_content(std::istream& input_content,
std::ostream& output_content)
{
// Property tree for storing the XML content.
boost_pt::ptree pt;
// Load the XML into ptree.
if (input_content.peek() == 'P') {
std::cerr << "android apk binary is not supported";
return;
}
else if (input_content.peek() == 0x03) {
jitana::read_axml(input_content, pt);
}
else {
boost_pt::read_xml(input_content, pt, boost_pt::xml_parser::trim_whitespace);
}
// Write the tree as an XML file.
write_xml(output_content, pt);
}
void process_file(const std::string& input_filename,
const std::string& output_filename)
{
std::ifstream ifs(input_filename, std::ios::binary);
// Construct the output stream.
std::ostream* os = &std::cout;
std::ofstream ofs;
if (!output_filename.empty()) {
ofs.open(output_filename);
os = &ofs;
}
process_content(ifs, *os);
}
std::string process_bytes(char const* input_content, size_t input_content_size)
{
imemstream ims(input_content, input_content_size);
std::ostringstream ostrs;
process_content(ims, ostrs);
return ostrs.str();
}
| [
""
] | |
1f8ff7e6766571570b6ad10ab9f5b6f908b80e24 | 314f21c0462efd130a10262fe3da67bcb8601e97 | /src/messages/mes.base.pb.h | 456ff58166ae7ff8728f1fc3109a55d21ec1dfa8 | [] | no_license | Wkkkkk/SLAMMapping | 743f1be3aaaa1dec7a378406edc1f23a2f8eb99f | 95356c1cd2d1056d0db03154546309bd1d05315d | refs/heads/master | 2020-04-27T16:40:10.724746 | 2019-04-22T10:25:20 | 2019-04-22T10:25:20 | 174,489,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 16,967 | h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mes.base.proto
#ifndef PROTOBUF_mes_2ebase_2eproto__INCLUDED
#define PROTOBUF_mes_2ebase_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2006000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
namespace message {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_mes_2ebase_2eproto();
void protobuf_AssignDesc_mes_2ebase_2eproto();
void protobuf_ShutdownFile_mes_2ebase_2eproto();
class timestamp;
class tcp_id;
// ===================================================================
class timestamp : public ::google::protobuf::Message {
public:
timestamp();
virtual ~timestamp();
timestamp(const timestamp &from);
inline timestamp &operator=(const timestamp &from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet &unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet *mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor *descriptor();
static const timestamp &default_instance();
void Swap(timestamp *other);
// implements Message ----------------------------------------------
timestamp *New() const;
void CopyFrom(const ::google::protobuf::Message &from);
void MergeFrom(const ::google::protobuf::Message &from);
void CopyFrom(const timestamp &from);
void MergeFrom(const timestamp &from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream *input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream *output) const;
::google::protobuf::uint8 *SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required int64 seconds = 1;
inline bool has_seconds() const;
inline void clear_seconds();
static const int kSecondsFieldNumber = 1;
inline ::google::protobuf::int64 seconds() const;
inline void set_seconds(::google::protobuf::int64 value);
// optional int32 nanos = 2;
inline bool has_nanos() const;
inline void clear_nanos();
static const int kNanosFieldNumber = 2;
inline ::google::protobuf::int32 nanos() const;
inline void set_nanos(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:message.timestamp)
private:
inline void set_has_seconds();
inline void clear_has_seconds();
inline void set_has_nanos();
inline void clear_has_nanos();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::google::protobuf::int64 seconds_;
::google::protobuf::int32 nanos_;
friend void protobuf_AddDesc_mes_2ebase_2eproto();
friend void protobuf_AssignDesc_mes_2ebase_2eproto();
friend void protobuf_ShutdownFile_mes_2ebase_2eproto();
void InitAsDefaultInstance();
static timestamp *default_instance_;
};
// -------------------------------------------------------------------
class tcp_id : public ::google::protobuf::Message {
public:
tcp_id();
virtual ~tcp_id();
tcp_id(const tcp_id &from);
inline tcp_id &operator=(const tcp_id &from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet &unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet *mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor *descriptor();
static const tcp_id &default_instance();
void Swap(tcp_id *other);
// implements Message ----------------------------------------------
tcp_id *New() const;
void CopyFrom(const ::google::protobuf::Message &from);
void MergeFrom(const ::google::protobuf::Message &from);
void CopyFrom(const tcp_id &from);
void MergeFrom(const tcp_id &from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream *input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream *output) const;
::google::protobuf::uint8 *SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required string ip = 1;
inline bool has_ip() const;
inline void clear_ip();
static const int kIpFieldNumber = 1;
inline const ::std::string &ip() const;
inline void set_ip(const ::std::string &value);
inline void set_ip(const char *value);
inline void set_ip(const char *value, size_t size);
inline ::std::string *mutable_ip();
inline ::std::string *release_ip();
inline void set_allocated_ip(::std::string *ip);
// required int32 port = 2;
inline bool has_port() const;
inline void clear_port();
static const int kPortFieldNumber = 2;
inline ::google::protobuf::int32 port() const;
inline void set_port(::google::protobuf::int32 value);
// required int32 pid = 3;
inline bool has_pid() const;
inline void clear_pid();
static const int kPidFieldNumber = 3;
inline ::google::protobuf::int32 pid() const;
inline void set_pid(::google::protobuf::int32 value);
// required .message.timestamp connect_time = 4;
inline bool has_connect_time() const;
inline void clear_connect_time();
static const int kConnectTimeFieldNumber = 4;
inline const ::message::timestamp &connect_time() const;
inline ::message::timestamp *mutable_connect_time();
inline ::message::timestamp *release_connect_time();
inline void set_allocated_connect_time(::message::timestamp *connect_time);
// @@protoc_insertion_point(class_scope:message.tcp_id)
private:
inline void set_has_ip();
inline void clear_has_ip();
inline void set_has_port();
inline void clear_has_port();
inline void set_has_pid();
inline void clear_has_pid();
inline void set_has_connect_time();
inline void clear_has_connect_time();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::std::string *ip_;
::google::protobuf::int32 port_;
::google::protobuf::int32 pid_;
::message::timestamp *connect_time_;
friend void protobuf_AddDesc_mes_2ebase_2eproto();
friend void protobuf_AssignDesc_mes_2ebase_2eproto();
friend void protobuf_ShutdownFile_mes_2ebase_2eproto();
void InitAsDefaultInstance();
static tcp_id *default_instance_;
};
// ===================================================================
// ===================================================================
// timestamp
// required int64 seconds = 1;
inline bool timestamp::has_seconds() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void timestamp::set_has_seconds() {
_has_bits_[0] |= 0x00000001u;
}
inline void timestamp::clear_has_seconds() {
_has_bits_[0] &= ~0x00000001u;
}
inline void timestamp::clear_seconds() {
seconds_ = GOOGLE_LONGLONG(0);
clear_has_seconds();
}
inline ::google::protobuf::int64 timestamp::seconds() const {
// @@protoc_insertion_point(field_get:message.timestamp.seconds)
return seconds_;
}
inline void timestamp::set_seconds(::google::protobuf::int64 value) {
set_has_seconds();
seconds_ = value;
// @@protoc_insertion_point(field_set:message.timestamp.seconds)
}
// optional int32 nanos = 2;
inline bool timestamp::has_nanos() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void timestamp::set_has_nanos() {
_has_bits_[0] |= 0x00000002u;
}
inline void timestamp::clear_has_nanos() {
_has_bits_[0] &= ~0x00000002u;
}
inline void timestamp::clear_nanos() {
nanos_ = 0;
clear_has_nanos();
}
inline ::google::protobuf::int32 timestamp::nanos() const {
// @@protoc_insertion_point(field_get:message.timestamp.nanos)
return nanos_;
}
inline void timestamp::set_nanos(::google::protobuf::int32 value) {
set_has_nanos();
nanos_ = value;
// @@protoc_insertion_point(field_set:message.timestamp.nanos)
}
// -------------------------------------------------------------------
// tcp_id
// required string ip = 1;
inline bool tcp_id::has_ip() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void tcp_id::set_has_ip() {
_has_bits_[0] |= 0x00000001u;
}
inline void tcp_id::clear_has_ip() {
_has_bits_[0] &= ~0x00000001u;
}
inline void tcp_id::clear_ip() {
if (ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
ip_->clear();
}
clear_has_ip();
}
inline const ::std::string &tcp_id::ip() const {
// @@protoc_insertion_point(field_get:message.tcp_id.ip)
return *ip_;
}
inline void tcp_id::set_ip(const ::std::string &value) {
set_has_ip();
if (ip_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
ip_ = new ::std::string;
}
ip_->assign(value);
// @@protoc_insertion_point(field_set:message.tcp_id.ip)
}
inline void tcp_id::set_ip(const char *value) {
set_has_ip();
if (ip_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
ip_ = new ::std::string;
}
ip_->assign(value);
// @@protoc_insertion_point(field_set_char:message.tcp_id.ip)
}
inline void tcp_id::set_ip(const char *value, size_t size) {
set_has_ip();
if (ip_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
ip_ = new ::std::string;
}
ip_->assign(reinterpret_cast<const char *>(value), size);
// @@protoc_insertion_point(field_set_pointer:message.tcp_id.ip)
}
inline ::std::string *tcp_id::mutable_ip() {
set_has_ip();
if (ip_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
ip_ = new ::std::string;
}
// @@protoc_insertion_point(field_mutable:message.tcp_id.ip)
return ip_;
}
inline ::std::string *tcp_id::release_ip() {
clear_has_ip();
if (ip_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
return NULL;
} else {
::std::string *temp = ip_;
ip_ = const_cast< ::std::string *>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
return temp;
}
}
inline void tcp_id::set_allocated_ip(::std::string *ip) {
if (ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete ip_;
}
if (ip) {
set_has_ip();
ip_ = ip;
} else {
clear_has_ip();
ip_ = const_cast< ::std::string *>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
// @@protoc_insertion_point(field_set_allocated:message.tcp_id.ip)
}
// required int32 port = 2;
inline bool tcp_id::has_port() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void tcp_id::set_has_port() {
_has_bits_[0] |= 0x00000002u;
}
inline void tcp_id::clear_has_port() {
_has_bits_[0] &= ~0x00000002u;
}
inline void tcp_id::clear_port() {
port_ = 0;
clear_has_port();
}
inline ::google::protobuf::int32 tcp_id::port() const {
// @@protoc_insertion_point(field_get:message.tcp_id.port)
return port_;
}
inline void tcp_id::set_port(::google::protobuf::int32 value) {
set_has_port();
port_ = value;
// @@protoc_insertion_point(field_set:message.tcp_id.port)
}
// required int32 pid = 3;
inline bool tcp_id::has_pid() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void tcp_id::set_has_pid() {
_has_bits_[0] |= 0x00000004u;
}
inline void tcp_id::clear_has_pid() {
_has_bits_[0] &= ~0x00000004u;
}
inline void tcp_id::clear_pid() {
pid_ = 0;
clear_has_pid();
}
inline ::google::protobuf::int32 tcp_id::pid() const {
// @@protoc_insertion_point(field_get:message.tcp_id.pid)
return pid_;
}
inline void tcp_id::set_pid(::google::protobuf::int32 value) {
set_has_pid();
pid_ = value;
// @@protoc_insertion_point(field_set:message.tcp_id.pid)
}
// required .message.timestamp connect_time = 4;
inline bool tcp_id::has_connect_time() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void tcp_id::set_has_connect_time() {
_has_bits_[0] |= 0x00000008u;
}
inline void tcp_id::clear_has_connect_time() {
_has_bits_[0] &= ~0x00000008u;
}
inline void tcp_id::clear_connect_time() {
if (connect_time_ != NULL) connect_time_->::message::timestamp::Clear();
clear_has_connect_time();
}
inline const ::message::timestamp &tcp_id::connect_time() const {
// @@protoc_insertion_point(field_get:message.tcp_id.connect_time)
return connect_time_ != NULL ? *connect_time_ : *default_instance_->connect_time_;
}
inline ::message::timestamp *tcp_id::mutable_connect_time() {
set_has_connect_time();
if (connect_time_ == NULL) connect_time_ = new ::message::timestamp;
// @@protoc_insertion_point(field_mutable:message.tcp_id.connect_time)
return connect_time_;
}
inline ::message::timestamp *tcp_id::release_connect_time() {
clear_has_connect_time();
::message::timestamp *temp = connect_time_;
connect_time_ = NULL;
return temp;
}
inline void tcp_id::set_allocated_connect_time(::message::timestamp *connect_time) {
delete connect_time_;
connect_time_ = connect_time;
if (connect_time) {
set_has_connect_time();
} else {
clear_has_connect_time();
}
// @@protoc_insertion_point(field_set_allocated:message.tcp_id.connect_time)
}
// @@protoc_insertion_point(namespace_scope)
} // namespace message
#ifndef SWIG
namespace google {
namespace protobuf {
} // namespace google
} // namespace protobuf
#endif // SWIG
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_mes_2ebase_2eproto__INCLUDED
| [
"wk707060335@gmail.com"
] | wk707060335@gmail.com |
e98fe86f10447f4915b897e0f9398ad8766c3b6b | 7aea5c7d4345adecdcfdeb87d757a2808519ec46 | /JS-VEMCUCtl_20140409/SDDElecMap/include/dialog/FontProp.h | a8f946ac3e479e83ea65ef56bb33bd17650629cb | [] | no_license | wpmyj/MonitorSystem | 105657d0c4aeb4eb677d8dc760143eb45805e718 | f5c49c61f30676b3c5ff07c39fa043cc0dee31b4 | refs/heads/master | 2021-01-21T14:32:53.419350 | 2016-02-01T09:27:28 | 2016-02-01T09:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,679 | h | #if !defined(AFX_FONTPROP_H__DD00854A_0433_40A9_8058_0A3C66A13F2D__INCLUDED_)
#define AFX_FONTPROP_H__DD00854A_0433_40A9_8058_0A3C66A13F2D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FontProp.h : header file
//
#include "../../resource.h"
#include "canvas/LineProp.h"
/////////////////////////////////////////////////////////////////////////////
// CFontProp dialog
class CFontProp : public CPropertyPage
{
DECLARE_DYNCREATE(CFontProp)
// Construction
private:
void UpdateColor();
public:
virtual void OnOK( );
void GetFontProp(float& height, float& width, float& jqwidth, BOOL& pl, COLORREF& color, char* font);
void SetFontProp(float height,float width,float jqwidth,BOOL pl,COLORREF color,char font[]);
virtual BOOL OnInitDialog();
CFontProp();
~CFontProp();
// Dialog Data
//{{AFX_DATA(CFontProp)
enum { IDD = IDD_FONT2 };
CString m_TextFont;
float m_TextHeight;
float m_JqWidth;
float m_TextWidth;
int m_FangXiang;
//}}AFX_DATA
COLORREF m_TextColor;
CStaticColor m_ctrlColor;
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CFontProp)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CFontProp)
afx_msg void OnColor();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FONTPROP_H__DD00854A_0433_40A9_8058_0A3C66A13F2D__INCLUDED_)
| [
"sadaner1988@163.com"
] | sadaner1988@163.com |
de60893e78cc478130d2d5a409cf669dfdd43622 | 22049282fb8eb77314147d11740334eb3c210b18 | /Appliction/Engine/Core/Json.h | 1e3f38f204b151acc92f3054c6ba611fe532a1bd | [] | no_license | Xi-Xi-Kaisouku/3DEngine | 73fba0f0cdfcc77451f2e044208fd840bfeeab8f | 4f555baedda4ac2413af8177af72ca78cac2b585 | refs/heads/master | 2023-01-24T00:46:13.762282 | 2020-11-20T20:42:38 | 2020-11-20T20:42:38 | 312,081,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,027 | h | #pragma once
#include "Math/Vector2.h"
#include "Math/Color.h"
#include "SDL.h"
#include "document.h"
#include <string>
#include <vector>
namespace nc
{
namespace json
{
bool Load(const std::string& filename, rapidjson::Document& document);
bool Get(const rapidjson::Value& value, const std::string& name, int& data);
bool Get(const rapidjson::Value& value, const std::string& name, float& data);
bool Get(const rapidjson::Value& value, const std::string& name, bool& data);
bool Get(const rapidjson::Value& value, const std::string& name, std::string& data);
bool Get(const rapidjson::Value& value, const std::string& name, Vector2& data);
bool Get(const rapidjson::Value& value, const std::string& name, Color& data);
bool Get(const rapidjson::Value& value, const std::string& name, SDL_Rect& data);
bool Get(const rapidjson::Value& value, const std::string& name, std::vector<std::string>& data);
bool Get(const rapidjson::Value& value, const std::string& name, std::vector<int>& data);
}
} | [
"358xixi@gmail.com"
] | 358xixi@gmail.com |
a422d6a19518503a258a73ab3e2da45d863165f5 | 6cac90aab34c65e8853b38ffd7a945137bba49d3 | /src/rift/font.cpp | 6a371fd7b4448a56881b20dc96040759d11252fa | [] | no_license | ennis/rift | f79feb5a5c2cc25328aa15ad6dcd7f807996a6cd | d1bb8b8f9b12b8b46c6622eba0644d3c42ac88fd | refs/heads/master | 2016-09-06T01:46:11.055703 | 2015-07-11T19:51:51 | 2015-07-11T19:51:51 | 21,034,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,208 | cpp | #include <font.hpp>
#include <cstring> //
#include <string> // string
#include <utils/binary_io.hpp>
//=============================================================================
Font::~Font()
{
// TODO release textures
}
//=============================================================================
Font::Ptr Font::loadFromFile(const char *fontFilePath)
{
auto ptr = std::make_unique<Font>();
// binary file produced by BMFont
std::ifstream fileIn(fontFilePath, std::ios::in | std::ios::binary);
assert(fileIn.is_open());
char sig[3];
fileIn.read(sig, 3);
if (sig[0] != 'B' || sig[1] != 'M' || sig[2] != 'F') {
ERROR << "BMF: Invalid magic";
assert(false);
}
// file version
uint8_t version;
fileIn.read((char*)&version, 1);
// texture files
std::string textureFileName;
// blocks
while (true) {
uint8_t blockType;
fileIn.read((char*)&blockType, 1);
if (fileIn.eof() || fileIn.fail()) break;
uint32_t blockSize;
fileIn.read((char*)&blockSize, 4);
// file should not end here
if (fileIn.eof() || fileIn.fail()) break;
switch (blockType) {
case 0x01:
{
// skip the block
fileIn.ignore(blockSize);
}
break;
case 0x02:
{
// common
// lineHeight 2 uint
util::read_u16le(fileIn, ptr->metrics.height);
util::read_u16le(fileIn, ptr->metrics.baseline);
util::read_u16le(fileIn, ptr->metrics.scaleW);
util::read_u16le(fileIn, ptr->metrics.scaleH);
unsigned int num_pages;
util::read_u16le(fileIn, num_pages);
assert(num_pages == 1);
uint8_t flags;
util::read_u8(fileIn, flags);
// channel bits
uint8_t ch[4];
fileIn.read((char*)ch, 4);
assert(!(fileIn.fail() || fileIn.eof()));
// encoded glyph + outline in alpha channel
assert(ch[0] == 2);
}
break;
case 0x03:
{
// file names
std::getline(fileIn, textureFileName, char(0));
assert(!(fileIn.fail() || fileIn.eof()));
}
break;
case 0x04:
{
// characters
int numChars = blockSize / 20;
for (int i = 0; i < numChars; ++i) {
char32_t id;
unsigned int x, y, width, height, page;
int xOffset, yOffset, xAdvance;
util::read_u32le(fileIn, id);
util::read_u16le(fileIn, x);
util::read_u16le(fileIn, y);
util::read_u16le(fileIn, width);
util::read_u16le(fileIn, height);
util::read_i16le(fileIn, xOffset);
util::read_i16le(fileIn, yOffset);
util::read_i16le(fileIn, xAdvance);
util::read_u8(fileIn, page);
// skip channel
fileIn.ignore(1);
assert(!(fileIn.fail() || fileIn.eof()));
ptr->glyphs.emplace(
std::make_pair(id, Glyph(
x, y, width, height,
xOffset, yOffset, xAdvance,
page)));
}
}
default:
WARNING << "BMF: ignored block type " << static_cast<int>(blockType);
// skip unknown block
fileIn.ignore(blockSize);
break;
}
}
// load the textures
std::string sp(fontFilePath);
auto l = sp.find_last_of('/');
if (l != std::string::npos) {
sp.erase(sp.begin() + l + 1, sp.end());
}
sp += textureFileName;
LOG << "Loading " << sp.c_str();
ptr->data = Image::loadFromFile(sp.c_str());
ptr->tex = Texture2D::createFromImage(ptr->data);
return ptr;
}
| [
"Alexandre.Bleron@ensimag.grenoble-inp.fr"
] | Alexandre.Bleron@ensimag.grenoble-inp.fr |
0b990bf9e0d7e2efb3031fa990872073ab1d3a47 | 1f63dde39fcc5f8be29f2acb947c41f1b6f1683e | /Boss2D/addon/abseil-cpp-20180600_for_boss/absl/base/internal/unscaledcycleclock.cc | e658513aaeed2a1462d546533dee1b708395db1f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | 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,731 | cc | // Copyright 2017 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed 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 BOSS_ABSEILCPP_U_absl__base__internal__unscaledcycleclock_h //original-code:"absl/base/internal/unscaledcycleclock.h"
#if ABSL_USE_UNSCALED_CYCLECLOCK
#if defined(_WIN32)
#include <intrin.h>
#endif
#if defined(__powerpc__) || defined(__ppc__)
#include <sys/platform/ppc.h>
#endif
#include BOSS_ABSEILCPP_U_absl__base__internal__sysinfo_h //original-code:"absl/base/internal/sysinfo.h"
namespace absl {
inline namespace lts_2018_06_20 {
namespace base_internal {
#if defined(__i386__)
int64_t UnscaledCycleClock::Now() {
int64_t ret;
__asm__ volatile("rdtsc" : "=A"(ret));
return ret;
}
double UnscaledCycleClock::Frequency() {
return base_internal::NominalCPUFrequency();
}
#elif defined(__x86_64__)
int64_t UnscaledCycleClock::Now() {
uint64_t low, high;
__asm__ volatile("rdtsc" : "=a"(low), "=d"(high));
return (high << 32) | low;
}
double UnscaledCycleClock::Frequency() {
return base_internal::NominalCPUFrequency();
}
#elif defined(__powerpc__) || defined(__ppc__)
int64_t UnscaledCycleClock::Now() {
return __ppc_get_timebase();
}
double UnscaledCycleClock::Frequency() {
return __ppc_get_timebase_freq();
}
#elif defined(__aarch64__)
// System timer of ARMv8 runs at a different frequency than the CPU's.
// The frequency is fixed, typically in the range 1-50MHz. It can be
// read at CNTFRQ special register. We assume the OS has set up
// the virtual timer properly.
int64_t UnscaledCycleClock::Now() {
int64_t virtual_timer_value;
asm volatile("mrs %0, cntvct_el0" : "=r"(virtual_timer_value));
return virtual_timer_value;
}
double UnscaledCycleClock::Frequency() {
uint64_t aarch64_timer_frequency;
asm volatile("mrs %0, cntfrq_el0" : "=r"(aarch64_timer_frequency));
return aarch64_timer_frequency;
}
#elif defined(_M_IX86) || defined(_M_X64)
#pragma intrinsic(__rdtsc)
int64_t UnscaledCycleClock::Now() {
return __rdtsc();
}
double UnscaledCycleClock::Frequency() {
return base_internal::NominalCPUFrequency();
}
#endif
} // namespace base_internal
} // inline namespace lts_2018_06_20
} // namespace absl
#endif // ABSL_USE_UNSCALED_CYCLECLOCK
| [
"slacealic@nate.com"
] | slacealic@nate.com |
0b35903f2269bd33299a4e57fcf617de6ed9954a | 3c228807174968ae3320e8093ad1357bc7b2e4c3 | /CF-1398A.cpp | 46e768cdc9667d7cb016093184913907110d66c4 | [] | no_license | rajputji/Problem-Solutions-CPP | 151069d606baf7a11541109e6ca891edacf8568b | 8cfd220584f8ce11a080431a69fb9daf2c0177cf | refs/heads/master | 2023-03-24T05:54:13.283503 | 2021-03-26T12:56:23 | 2021-03-26T12:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | cpp | //This code is written by Shammi Anand
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define Max(a,b,c) max(a,max(b,c))
#define Min(a,b,c) min(a,min(b,c))
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define mod 1000000007
#define nl "\n"
#define w(x) int x; cin>>x; while(x--)
inline bool isPowerOfTwo(int x) {
//O(v) -> v is the number of bits in the binary form of x
return x && (!(x & (x - 1)));
}
void shammi() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
}
int main() {
shammi();
w(t) {
int n; cin >> n;
int A[n];
for (int i = 0; i < n; i++) {
cin >> A[i];
}
int count = 0;
int sum = A[0] + A[1];
for (int i = 2; i < n; i++) {
if (sum <= A[i]) {
count = i + 1;
break;
}
}
if (count == 0) cout << -1 << nl;
else cout << 1 << " " << 2 << " " << count << nl;
}
return 0;
} | [
"shammianand101@gmail.com"
] | shammianand101@gmail.com |
6e213ddfbdf41f26b59c867943b23b854b5ee37d | 614d7d050c9261717d22f054c294343b6116b022 | /_60WWVB_6_dec_9_RSPdx_c/wwvb.cpp | e75743ff5058f6ecd35477ce88e9083f8bd7d71a | [
"Unlicense"
] | permissive | jwestmoreland/el_supremoWWVBsdr | 6926500e7af6ac4a7197fdd7d3a953dd0acf7cfa | 38cc2fb10d36a599f0c77d29cd916db79a282593 | refs/heads/main | 2023-01-12T04:18:36.442134 | 2020-11-11T08:11:50 | 2020-11-11T08:11:50 | 311,500,761 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 14,213 | cpp | #include <Arduino.h>
#include "wwvb.h"
// Room for 60 characters plus the null at the end
char time_char[61];
int p_idx = 0;
// Indicates that this is the last minute of last day of Jun or Dec
// and the leap second flag is on. This will cause a P sync failure
// at 00:00 (the next minute) because of the extra P that is sent
// when the leap second occurs.
char P_leap_second = 0;
// temporary for sprintf
char s_tmp[64];
// something's wrong with the Arduino abs() or I'm using it
// incorrectly somehow. Roll my own for now.
uint32_t iabs(int32_t a)
{
if(a >= 0)return(a);
return(-a);
}
// Translate a WWVB pulse length to a character
char xlate(int plen)
{
if(iabs(plen - 800) <= PULSE_DT)return('P');
if(iabs(plen - 500) <= PULSE_DT)return('1');
if(iabs(plen - 200) <= PULSE_DT)return('0');
return('?');
}
// Leap year calculator and days of month from the Time library
#define LEAP_YEAR(Y) ( ((1970+Y)>0) && !((1970+Y)%4) && ( ((1970+Y)%100) || !((1970+Y)%400) ) )
const uint8_t monthDays[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; // API starts months from 1, this array starts from 0
// Convert the day of the year to month and day
void get_month_day(int c_jdays, int c_year, int *c_month, int *c_day)
{
for(int i = 0; i < 12; i++) {
if(c_jdays <= monthDays[i]) {
*c_month = i + 1;
*c_day = c_jdays;
return;
}
c_jdays -= monthDays[i];
if((i == 1) && LEAP_YEAR(c_year - 1970))c_jdays -= 1;
}
}
/*
Example input string - see also t_vector in the
wwvb decoder test below:
11111111112222222222333333333344444444445555555555
012345678901234567890123456789012345678901234567890123456789
PP10101000P001000011P001100110P011000000P000000001P011001000
^--- Note that this first P marker in the string occurs
at mm:59 of the minute. The next 'P' at index 1
occurs at mm:00
*/
uint8_t debug_flag = 1;
#ifdef OLD_VERSION
// The decoder assumes that the caller has
// already verified that the string is
// 60 characters long and contains 'P'
// pulses in the correct positions and
// '0' or '1' everywhere else
void decode_wwvb(char *dt)
{
int days,mins,hours,wyear;
int t_month = 0,t_day = 0;
Serial.printf("> decode '%s'\n",dt);
days = (dt[23] - '0') * 200;
days += (dt[24] - '0') * 100;
days += (dt[26] - '0') * 80;
days += (dt[27] - '0') * 40;
days += (dt[28] - '0') * 20;
days += (dt[29] - '0') * 10;
days += (dt[31] - '0') * 8;
days += (dt[32] - '0') * 4;
days += (dt[33] - '0') * 2;
days += (dt[34] - '0');
mins = (dt[2] - '0') * 40;
mins += (dt[3] - '0') * 20;
mins += (dt[4] - '0') * 10;
mins += (dt[6] - '0') * 8;
mins += (dt[7] - '0') * 4;
mins += (dt[8] - '0') * 2;
mins += (dt[9] - '0');
hours = (dt[13] - '0') * 20;
hours += (dt[14] - '0') * 10;
hours += (dt[16] - '0') * 8;
hours += (dt[17] - '0') * 4;
hours += (dt[18] - '0') * 2;
hours += (dt[19] - '0');
wyear = (dt[46] - '0') * 80;
wyear += (dt[47] - '0') * 40;
wyear += (dt[48] - '0') * 20;
wyear += (dt[49] - '0') * 10;
wyear += (dt[51] - '0') * 8;
wyear += (dt[52] - '0') * 4;
wyear += (dt[53] - '0') * 2;
wyear += (dt[54] - '0');
// Some sanity checks. Noise can change
// the value of a bit - usually from 1 to zero
// but might change 0 to 1.
#ifdef TEST_WWVB_DECODER
if(wyear < 16 || wyear > 99) {
Serial.printf("* ERROR year <2016 or >2099 (%d) - '%s'\n",wyear,dt);
return;
}
#else
if(wyear < 18 || wyear > 99) {
Serial.printf("* ERROR year <2018 or >2099 (%d) - '%s'\n",wyear,dt);
return;
}
#endif
// Really ought to check for leap year here
if(days > 366) {
Serial.printf("* ERROR days > 366 (%d) - '%s'\n",days,dt);
return;
}
if(mins > 59) {
Serial.printf("* ERROR mins > 59 (%d) - '%s'\n",mins,dt);
return;
}
if(hours > 23) {
Serial.printf("* ERROR hours > 23 (%d) - '%s'\n",hours,dt);
return;
}
get_month_day(days,wyear,&t_month,&t_day);
P_leap_second = 0;
// FYI: Leap YEAR indicator is dt[56] == '1'
// Leap SECOND is dt[57]
// DST bits are dt[58] and dt[59]
// If leap SECOND bit is set
// This indicates that a leap second will
// occur at the end of THIS month which can
// be June or December.
// i.e. this indicator will be on all month,
// not just on the last day.
// Therefore we must test for 23:59 in
// the last day of the month
if(dt[57] == '1') {
// If this is 23:59
if((hours == 23) && (mins == 59)) {
if( ((t_month == 6) && (t_day == 30)) ||
((t_month == 12) && (t_day == 31))) {
// This is the last minute of the last day of Jun or Dec
// signal the pulse reading code to ignore the next pulse
// which will be the 'P' from the leap second if it decodes
// properly. If it isn't decoding properly it won't matter.
P_leap_second = 1;
}
}
}
sprintf(s_tmp,"%2d",wyear);
if(strlen(s_tmp) != 2) {
sprintf(s_tmp,"> 20%2d/%02d/%02d %02d:%02d (days=%3d)\n",wyear,t_month,t_day,
hours,mins,days);
s_tmp[0] = '*';
Serial.print(s_tmp);
// Also print the decoded data.
Serial.print("* ");
Serial.println(dt);
} else {
sprintf(s_tmp,"> 20%2d/%02d/%02d %02d:%02d (days=%3d)\n",wyear,t_month,t_day,
hours,mins,days);
Serial.print(s_tmp);
}
}
#else
// in samples.cpp. Need to clear it here when a linefeed is printed
extern int c_count;
void decode_wwvb(char *dt)
{
int days,mins,hours,wyear,i;
int t_month = 0,t_day = 0;
char s_tmp[10];
// Need to do a wee bit of validation before accepting
// that the string is OK to decode.
// Ignore "PP" - it is usually caused by two bursts
// of noise close together and occurs rather frequently
// when the signal has faded
if(strcmp(dt,"PP") == 0)return;
if(strlen(dt) != 60) {
if(debug_flag) {
Serial.print("* ERROR length\n");
c_count = 0;
}
return;
}
// The last char should be a P
if(dt[59] != 'P') {
if(debug_flag) {
Serial.printf("* ERROR 60th char is not P '%s'\n",dt);
c_count = 0;
}
return;
}
// There should be a P at positions 8, 18, 28, 38, 48, 58
for(i = 8; i < 60; i += 10) {
if(dt[i] != 'P') {
if(debug_flag) {
Serial.print("* ERROR missing P\n");
c_count = 0;
}
return;
}
}
// There should NOT be a P anywhere else
// and the remaining chars must be 0 or 1
for(i = 0; i < 59; i++) {
// Skip the Position markers - they've been checked
if((i % 10) == 8)continue;
if(dt[i] == 'P') {
if(debug_flag) {
Serial.print("* ERROR P out of place\n");
c_count = 0;
}
return;
}
if((dt[i] != '0') && (dt[i] != '1')) {
if(debug_flag) {
Serial.print("* ERROR not 0 or 1\n");
c_count = 0;
}
return;
}
}
// OK. There's a good chance that this is a valid string.
days = (dt[21] - '0') * 200;
days += (dt[22] - '0') * 100;
days += (dt[24] - '0') * 80;
days += (dt[25] - '0') * 40;
days += (dt[26] - '0') * 20;
days += (dt[27] - '0') * 10;
days += (dt[29] - '0') * 8;
days += (dt[30] - '0') * 4;
days += (dt[31] - '0') * 2;
days += (dt[32] - '0');
mins = (dt[0] - '0') * 40;
mins += (dt[1] - '0') * 20;
mins += (dt[2] - '0') * 10;
mins += (dt[4] - '0') * 8;
mins += (dt[5] - '0') * 4;
mins += (dt[6] - '0') * 2;
mins += (dt[7] - '0');
hours = (dt[11] - '0') * 20;
hours += (dt[12] - '0') * 10;
hours += (dt[14] - '0') * 8;
hours += (dt[15] - '0') * 4;
hours += (dt[16] - '0') * 2;
hours += (dt[17] - '0');
wyear = (dt[44] - '0') * 80;
wyear += (dt[45] - '0') * 40;
wyear += (dt[46] - '0') * 20;
wyear += (dt[47] - '0') * 10;
wyear += (dt[49] - '0') * 8;
wyear += (dt[50] - '0') * 4;
wyear += (dt[51] - '0') * 2;
wyear += (dt[52] - '0');
get_month_day(days,wyear,&t_month,&t_day);
#ifdef NOTDEF
// Used in the Arduino NANO version
// If leap second bit is set
if(dt[56] == '1') {
// If this is 23:59
if((hours == 23) && (mins == 59)) {
if( ((t_month == 6) && (t_day == 30)) ||
((t_month == 12) && (t_day == 31))) {
// This is the last minute of the last day of Jun or Dec
// signal the pulse reading code to ignore the next pulse
// which will be the 'P' from the leap second if it decodes
// properly. If it isn't decoding properly it won't matter.
P_sync_flag = 1;
}
}
}
#endif
if(wyear < 16 || wyear > 99) {
if(debug_flag)Serial.printf("* ERROR year <2018 or >2099\n");
return;
}
// Check that the year is two digits
sprintf(s_tmp,"%d",wyear);
if(strlen(s_tmp) != 2) {
Serial.printf("> 20%2d/%02d/%02d %02d:%02d (days=%3d)\n",wyear,t_month,t_day,
hours,mins,days);
// Also print the decoded data.
Serial.printf("* %s\n",dt);
} else {
Serial.printf("> 20%2d/%02d/%02d %02d:%02d (days=%3d)\n",wyear,t_month,t_day,
hours,mins,days);
}
c_count = 0;
}
#endif
#ifdef TEST_WWVB_DECODER
const char *t_vector[] = {
"10101000P001000011P001100110P011000000P000000001P011001000PP",
"10101001P001000011P001100110P011000000P000000001P011001000PP",
"00000000P000000000P000000000P000100000P000000001P011100000PP",
"00000001P000000000P000000000P000100000P000000001P011100000PP",
"00000010P000000000P000000000P000100000P000000001P011100000PP"
};
/*
Output from above 5 vectors should be:
> 2016/12/31 23:58 (days=366)
> 2016/12/31 23:59 (days=366)
> 2017/01/01 00:00 (days= 1)
> 2017/01/01 00:01 (days= 1)
> 2017/01/01 00:02 (days= 1)
*/
// This has a leap second - actual data recorded at end of 2016
const char *wwvb_leap_second = "0PP10101000P001000011P001100110P011000010P010000001P011001100PP10101001P001000011P001100110P011000010P010000001P011001100PPP00000000P000000000P000000000P000100101P011000001P011100000PP00000001P000000000P000000000P000100101P011000001P011100000PP00000010P000000000P000000000P000100101P011000001P011100000PP0";
// WWVB - duration of reduced carrier power
// 0.8s - Position marker
// 0.5s - 1
// 0.2s - 0
void decode(unsigned long t)
{
// WWVB decoder
static int char_count = 0;
uint8_t x_pulse = xlate(t);
Serial.printf("%c",x_pulse);
char_count++;
if(char_count >= 64) {
Serial.println();
char_count = 0;
}
if(x_pulse == '?') {
// reset the decoder and start looking for
// the first of two Position pulses
p_idx = 0;
return;
}
time_char[p_idx] = x_pulse;
if(p_idx < 2) {
// The first two pulses must be P
if(x_pulse != 'P') {
p_idx = 0;
return;
}
// If P_leap_second is set there will
// be an extra 'P' pulse caused by
// a leap-second. Ignore it and reset
// the flag
if(P_leap_second) {
Serial.println("P_leap_second detected - skip this extra 'P'");
char_count = 0;
P_leap_second = 0;
return;
}
p_idx++;
if(p_idx == 2) {
Serial.println("Got PP");
char_count = 0;
}
return;
}
// Every 10th pulse must be a 'P'
// otherwise it must be 0 or 1
if((p_idx % 10) == 0) {
if(x_pulse != 'P') {
Serial.printf("ERROR: Missing 'P' at p_idx=%d\n",p_idx);
p_idx = 0;
char_count = 0;
return;
}
p_idx++;
return;
}
// Must be 0 or 1. We've already removed
// possibility of '?' so only bad one remaining
// is 'P'
if(x_pulse == 'P') {
p_idx = 0;
Serial.println("ERROR: received 'P' - should be '0' or '1'");
char_count = 0;
return;
}
// Everything so far is good.
// Have we just decoded the last data bit?
if(p_idx == 59) {
p_idx++;
time_char[p_idx] = 0;
decode_wwvb(time_char);
p_idx = 0;
char_count = 0;
return;
}
p_idx++;
return;
}
void send_wwvb_pulse(const char *tv)
{
while(*tv) {
switch(*tv) {
case 'P':
decode(800);
break;
case '1':
decode(500);
break;
case '0':
decode(200);
break;
}
tv++;
}
}
/*
This was using an earlier version of the decoder
*/
void test_wwvb_decoder(void)
{
// Simple test of the current decoder
for(uint32_t i = 0; i < sizeof(t_vector)/sizeof(const char *); i++) {
Serial.printf("%s",t_vector[i]);
decode_wwvb((char *)t_vector[i]);
}
/*
// The current decoder can't be called with one long
// string.
Serial.println("\nLeap Second Test\n");
// Test the leap second
send_wwvb_pulse(wwvb_leap_second);
*/
}
/*
Sample output from testing the NEW decoder:
10101000P001000011P001100110P011000000P000000001P011001000PP> 2016/12/31 23:58 (days=366)
10101001P001000011P001100110P011000000P000000001P011001000PP> 2016/12/31 23:59 (days=366)
00000000P000000000P000000000P000100000P000000001P011100000PP> 2017/01/01 00:00 (days= 1)
00000001P000000000P000000000P000100000P000000001P011100000PP> 2017/01/01 00:01 (days= 1)
00000010P000000000P000000000P000100000P000000001P011100000PP> 2017/01/01 00:02 (days= 1)
DONE
Sample output from testing the OLD decoder:
Got PP
> decode 'PP10101000P001000011P001100110P011000000P000000001P011001000'
> 2016/12/31 23:58 (days=366)
Got PP
> decode 'PP10101001P001000011P001100110P011000000P000000001P011001000'
> 2016/12/31 23:59 (days=366)
Got PP
> decode 'PP00000000P000000000P000000000P000100000P000000001P011100000'
> 2017/01/01 00:00 (days= 1)
Got PP
> decode 'PP00000001P000000000P000000000P000100000P000000001P011100000'
> 2017/01/01 00:01 (days= 1)
Got PP
> decode 'PP00000010P000000000P000000000P000100000P000000001P011100000'
> 2017/01/01 00:02 (days= 1)
Leap Second Test
Got PP
> decode 'PP10101000P001000011P001100110P011000010P010000001P011001100'
> 2016/12/31 23:58 (days=366)
Got PP
> decode 'PP10101001P001000011P001100110P011000010P010000001P011001100'
> 2016/12/31 23:59 (days=366)
P_leap_second detected - skip this extra 'P'
Got PP
> decode 'PP00000000P000000000P000000000P000100101P011000001P011100000'
> 2017/01/01 00:00 (days= 1)
Got PP
> decode 'PP00000001P000000000P000000000P000100101P011000001P011100000'
> 2017/01/01 00:01 (days= 1)
Got PP
> decode 'PP00000010P000000000P000000000P000100101P011000001P011100000'
> 2017/01/01 00:02 (days= 1)
Got PP
DONE
*/
#endif
| [
"john@westmorelandengineering.com"
] | john@westmorelandengineering.com |
59a05f56179e14c38feccd4148c69635a3e168e0 | 9c58c41c10c446f00d53d9b7d0f897c926d94023 | /Framework.h | 97f807a637a2f80f224e1cc4e11cdd709d222be6 | [] | no_license | YutaTachibana0310/Framework_D3D9 | 889519fd7f2a4e7c2fb4af7d67da175adf422422 | ac6a34db4050cbe17ed7de69bdb0d39454333c9e | refs/heads/master | 2020-06-28T15:16:27.699015 | 2020-01-12T13:55:04 | 2020-01-12T13:55:04 | 200,263,854 | 0 | 0 | null | 2020-01-12T12:40:45 | 2019-08-02T16:10:52 | C++ | SHIFT_JIS | C++ | false | false | 577 | h | //=====================================
//
//フレームワークヘッダ[Framework.h]
//Author:GP12B332 21 立花雄太
//
//=====================================
#ifndef _FRAMEWORK_H_
#define _FRAMEWORK_H_
#include "main.h"
#include "Framework\Core\BaseGame.h"
/**************************************
マクロ定義
***************************************/
/**************************************
クラス定義
***************************************/
class Framework : public BaseGame
{
public:
Framework(HINSTANCE hInstance, HWND hWnd);
void Update();
};
#endif | [
"yuta.tachibana0310@gmail.com"
] | yuta.tachibana0310@gmail.com |
5766fec1d1d4428f6361144d24ce06eeae28a612 | 6e20207f8aff0f0ad94f05bd025810c6b10a1d5f | /SDK/MediaAssets_classes.h | a31bc6a5e3b074772d5b85cdf578e0d52655519b | [] | no_license | zH4x-SDK/zWeHappyFew-SDK | 2a4e246d8ee4b58e45feaa4335f1feb8ea618a4a | 5906adc3edfe1b5de86b7ef0a0eff38073e12214 | refs/heads/main | 2023-08-17T06:05:18.561339 | 2021-08-27T13:36:09 | 2021-08-27T13:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,018 | h | #pragma once
// Name: WeHappyFew, Version: 1.8.8
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------
// Class MediaAssets.MediaPlayer
// 0x0148 (0x0170 - 0x0028)
class UMediaPlayer : public UObject
{
public:
unsigned char UnknownData00[0x148]; // 0x0028(0x0148) MISSED OFFSET
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("Class MediaAssets.MediaPlayer");
return ptr;
}
bool SupportsSeeking();
bool SupportsScrubbing();
bool SupportsRate(float Rate, bool Unthinned);
void SetVideoTexture(class UMediaTexture* newTexture);
void SetSoundWave(class UMediaSoundWave* NewSoundWave);
bool SetRate(float Rate);
bool SetLooping(bool Looping);
bool SelectTrack(TEnumAsByte<EMediaPlayerTrack> TrackType, int TrackIndex);
bool Seek(const struct FTimespan& time);
bool Rewind();
bool Reopen();
bool Previous();
bool Play();
bool Pause();
bool OpenUrl(const struct FString& URL, bool bImportantUrl);
bool OpenSource(class UMediaSource* MediaSource);
bool OpenPlaylistIndex(class UMediaPlaylist* InPlaylist, int Index);
bool OpenPlaylist(class UMediaPlaylist* InPlaylist);
bool OpenFile(const struct FString& FilePath);
bool Next();
bool IsReady();
bool IsPreparing();
bool IsPlaying();
bool IsPaused();
bool IsLooping();
struct FString GetUrl();
struct FString GetTrackLanguage(TEnumAsByte<EMediaPlayerTrack> TrackType, int TrackIndex);
struct FText GetTrackDisplayName(TEnumAsByte<EMediaPlayerTrack> TrackType, int TrackIndex);
struct FTimespan GetTime();
void GetTexts(TArray<struct FMediaPlayerOverlay>* OutTexts);
void GetSubtitles(TArray<struct FMediaPlayerOverlay>* OutSubtitles);
int GetSelectedTrack(TEnumAsByte<EMediaPlayerTrack> TrackType);
struct FFloatRange GetReverseRates(bool Unthinned);
float GetRate();
struct FName GetPlayerName();
int GetNumTracks(TEnumAsByte<EMediaPlayerTrack> TrackType);
struct FFloatRange GetForwardRates(bool Unthinned);
struct FTimespan GetDuration();
void GetCaptions(TArray<struct FMediaPlayerOverlay>* OutCaptions);
void Close();
bool CanPlayUrl(const struct FString& URL);
bool CanPause();
};
// Class MediaAssets.MediaPlaylist
// 0x0010 (0x0038 - 0x0028)
class UMediaPlaylist : public UObject
{
public:
unsigned char UnknownData00[0x10]; // 0x0028(0x0010) MISSED OFFSET
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("Class MediaAssets.MediaPlaylist");
return ptr;
}
void RemoveAt(int Index);
void Remove(class UMediaSource* MediaSource);
int Num();
void Insert(class UMediaSource* MediaSource, int Index);
class UMediaSource* GetRandom(int* InOutIndex);
class UMediaSource* GetPrevious(int* InOutIndex);
class UMediaSource* GetNext(int* InOutIndex);
class UMediaSource* Get(int Index);
void Add(class UMediaSource* MediaSource);
};
// Class MediaAssets.MediaSoundWave
// 0x00D8 (0x0310 - 0x0238)
class UMediaSoundWave : public USoundWave
{
public:
unsigned char UnknownData00[0xD8]; // 0x0238(0x00D8) MISSED OFFSET
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("Class MediaAssets.MediaSoundWave");
return ptr;
}
};
// Class MediaAssets.MediaSource
// 0x0010 (0x0038 - 0x0028)
class UMediaSource : public UObject
{
public:
unsigned char UnknownData00[0x10]; // 0x0028(0x0010) MISSED OFFSET
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("Class MediaAssets.MediaSource");
return ptr;
}
};
// Class MediaAssets.FileMediaSource
// 0x0018 (0x0050 - 0x0038)
class UFileMediaSource : public UMediaSource
{
public:
unsigned char UnknownData00[0x18]; // 0x0038(0x0018) MISSED OFFSET
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("Class MediaAssets.FileMediaSource");
return ptr;
}
void SetFilePath(const struct FString& Path);
};
// Class MediaAssets.PlatformMediaSource
// 0x0008 (0x0040 - 0x0038)
class UPlatformMediaSource : public UMediaSource
{
public:
unsigned char UnknownData00[0x8]; // 0x0038(0x0008) MISSED OFFSET
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("Class MediaAssets.PlatformMediaSource");
return ptr;
}
};
// Class MediaAssets.StreamMediaSource
// 0x0010 (0x0048 - 0x0038)
class UStreamMediaSource : public UMediaSource
{
public:
unsigned char UnknownData00[0x10]; // 0x0038(0x0010) MISSED OFFSET
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("Class MediaAssets.StreamMediaSource");
return ptr;
}
};
// Class MediaAssets.MediaSubtitles
// 0x0010 (0x0038 - 0x0028)
class UMediaSubtitles : public UObject
{
public:
unsigned char UnknownData00[0x10]; // 0x0028(0x0010) MISSED OFFSET
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("Class MediaAssets.MediaSubtitles");
return ptr;
}
};
// Class MediaAssets.MediaTexture
// 0x00E0 (0x01A0 - 0x00C0)
class UMediaTexture : public UTexture
{
public:
unsigned char UnknownData00[0xE0]; // 0x00C0(0x00E0) MISSED OFFSET
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("Class MediaAssets.MediaTexture");
return ptr;
}
int GetWidth();
int GetHeight();
float GetAspectRatio();
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"zp2kshield@gmail.com"
] | zp2kshield@gmail.com |
708b3414c99b0678a58539ebc197eb13ea846914 | e04afe1d793cbcbd1fd95d72734cf74385af95f1 | /Importers/ObjParser.cpp | ca93e90cb776a261040ba5e4287ba0140a1a802f | [
"LicenseRef-scancode-unknown-license-reference",
"Unlicense"
] | permissive | supudo/Kuplung-DX-CXX | 7bc727692093822c6b810ecb2043cb9645d380ca | 7100c17e0c76eab30bfa2bf813d66d32bcfe3565 | refs/heads/master | 2022-04-20T17:13:45.212602 | 2020-03-17T05:21:37 | 2020-03-17T05:21:37 | 242,101,431 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,575 | cpp | #include "pch.h"
#include <fstream>
#include <numeric>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <Importers\ObjParser.h>
#include <Importers\ParserUtils.h>
using namespace Windows::Storage;
Kuplung_DX::Importers::ObjParser::~ObjParser() {}
void Kuplung_DX::Importers::ObjParser::init(const std::function<void(float)>& doProgress) {
this->doProgress = doProgress;
this->objFileLinesCount = 0;
this->id_objTitle = "o ";
this->id_geometricVertices = "v ";
this->id_textureCoordinates = "vt ";
this->id_vertexNormals = "vn ";
this->id_spaceVertices = "vp ";
this->id_face = "f ";
this->id_materialFile = "mtllib ";
this->id_useMaterial = "usemtl ";
this->id_materialNew = "newmtl ";
this->id_materialAmbientColor = "Ka ";
this->id_materialDiffuseColor = "Kd ";
this->id_materialSpecularColor = "Ks ";
this->id_materialEmissionColor = "Ke ";
this->id_materialSpecularExp = "Ns ";
this->id_materialTransperant1 = "Tr ";
this->id_materialTransperant2 = "d ";
this->id_materialOpticalDensity = "Ni ";
this->id_materialIllumination = "illum ";
this->id_materialTextureAmbient = "map_Ka ";
this->id_materialTextureDiffuse = "map_Kd ";
this->id_materialTextureBump = "map_Bump ";
this->id_materialTextureDisplacement = "disp ";
this->id_materialTextureSpecular = "map_Ks ";
this->id_materialTextureSpecularExp = "map_Ns ";
this->id_materialTextureDissolve = "map_d ";
}
std::vector<Kuplung_DX::Models::MeshModel> Kuplung_DX::Importers::ObjParser::parse(const std::string& fileToParse, const std::vector<std::string>& settings) {
this->file = fileToParse;
this->models = {};
this->vectorVertices = {};
this->vectorNormals = {};
this->vectorTextureCoordinates = {};
this->vectorIndices = {};
std::ifstream ifs(Kuplung_DX::Utilities::CXXUtils::StringToWString(this->file));
if (!ifs.is_open()) {
Kuplung_DX::App::LogError(Kuplung_DX::Utilities::CXXUtils::StringToPlatformString(Kuplung_DX::Utilities::CXXUtils::StringFormat("[ObjParser] Cannot open .obj file %s!", this->file)));
ifs.close();
return {};
}
ifs.seekg(0);
int progressStageTotal = int(std::count(std::istreambuf_iterator<char>(ifs), std::istreambuf_iterator<char>(), '\n'));
ifs.seekg(0);
std::vector<DWORD> indexModels, indexVertices, indexTexture, indexNormals;
std::vector<DirectX::XMFLOAT3> vVertices, vNormals;
std::vector<DirectX::XMFLOAT2> vTextureCoordinates;
int modelCounter = 0, currentModelID = 0, progressStageCounter = 0;
std::string singleLine;
while (std::getline(ifs, singleLine)) {
if (boost::starts_with(singleLine, this->id_materialFile)) {
boost::replace_first(singleLine, this->id_materialFile, "");
this->loadMaterialFile(singleLine);
}
else if (boost::starts_with(singleLine, this->id_objTitle)) {
currentModelID = modelCounter;
Kuplung_DX::Models::MeshModel entityModel;
entityModel.File = file;
entityModel.ID = currentModelID;
entityModel.ModelTitle = singleLine;
boost::replace_first(entityModel.ModelTitle, this->id_objTitle, "");
entityModel.countVertices = 0;
entityModel.countTextureCoordinates = 0;
entityModel.countNormals = 0;
entityModel.countIndices = 0;
modelCounter += 1;
this->models.push_back(entityModel);
}
else if (boost::starts_with(singleLine, this->id_geometricVertices)) {
boost::replace_first(singleLine, this->id_geometricVertices, "");
std::stringstream valReader(singleLine);
XMFLOAT3 v;
valReader >> v.x >> v.y >> v.z;
vVertices.push_back(v);
}
else if (boost::starts_with(singleLine, this->id_textureCoordinates)) {
boost::replace_first(singleLine, this->id_textureCoordinates, "");
std::stringstream valReader(singleLine);
XMFLOAT2 v;
valReader >> v.x >> v.y;
vTextureCoordinates.push_back(v);
}
else if (boost::starts_with(singleLine, this->id_vertexNormals)) {
boost::replace_first(singleLine, this->id_vertexNormals, "");
std::stringstream valReader(singleLine);
XMFLOAT3 v;
valReader >> v.x >> v.y >> v.z;
vNormals.push_back(v);
}
else if (boost::starts_with(singleLine, this->id_useMaterial)) {
boost::replace_first(singleLine, this->id_useMaterial, "");
this->models[static_cast<size_t>(currentModelID)].ModelMaterial = this->materials[singleLine];
this->models[static_cast<size_t>(currentModelID)].MaterialTitle = this->models[static_cast<size_t>(currentModelID)].ModelMaterial.MaterialTitle;
}
else if (boost::starts_with(singleLine, this->id_face)) {
std::vector<std::string> ft = this->splitString(singleLine, " ");
if (ft.size() == 5) {
unsigned int tri_vertexIndex[4], tri_uvIndex[4], tri_normalIndex[4];
std::string face = this->id_face + "%d/%d/%d %d/%d/%d %d/%d/%d %d/%d/%d";
int matches = sscanf_s(singleLine.c_str(), face.c_str(),
&tri_vertexIndex[0], &tri_uvIndex[0], &tri_normalIndex[0],
&tri_vertexIndex[1], &tri_uvIndex[1], &tri_normalIndex[1],
&tri_vertexIndex[2], &tri_uvIndex[2], &tri_normalIndex[2],
&tri_vertexIndex[3], &tri_uvIndex[3], &tri_normalIndex[3]);
if (matches != 12) {
face = this->id_face + "%d//%d %d//%d %d//%d %d//%d";
matches = sscanf_s(singleLine.c_str(), face.c_str(),
&tri_vertexIndex[0], &tri_normalIndex[0],
&tri_vertexIndex[1], &tri_normalIndex[1],
&tri_vertexIndex[2], &tri_normalIndex[2],
&tri_vertexIndex[3], &tri_normalIndex[3]);
if (matches != 8) {
Kuplung_DX::App::LogError(Kuplung_DX::Utilities::CXXUtils::StringToPlatformString("[objParser2] OBJ file is in wrong format!"));
return this->models;
}
}
indexModels.push_back(static_cast<unsigned int>(currentModelID));
indexModels.push_back(static_cast<unsigned int>(currentModelID));
indexModels.push_back(static_cast<unsigned int>(currentModelID));
indexVertices.push_back(tri_vertexIndex[0]);
indexVertices.push_back(tri_vertexIndex[1]);
indexVertices.push_back(tri_vertexIndex[2]);
indexTexture.push_back(tri_uvIndex[0]);
indexTexture.push_back(tri_uvIndex[1]);
indexTexture.push_back(tri_uvIndex[2]);
indexNormals.push_back(tri_normalIndex[0]);
indexNormals.push_back(tri_normalIndex[1]);
indexNormals.push_back(tri_normalIndex[2]);
indexModels.push_back(static_cast<unsigned int>(currentModelID));
indexModels.push_back(static_cast<unsigned int>(currentModelID));
indexModels.push_back(static_cast<unsigned int>(currentModelID));
indexVertices.push_back(tri_vertexIndex[2]);
indexVertices.push_back(tri_vertexIndex[3]);
indexVertices.push_back(tri_vertexIndex[0]);
indexTexture.push_back(tri_uvIndex[2]);
indexTexture.push_back(tri_uvIndex[3]);
indexTexture.push_back(tri_uvIndex[0]);
indexNormals.push_back(tri_normalIndex[2]);
indexNormals.push_back(tri_normalIndex[3]);
indexNormals.push_back(tri_normalIndex[0]);
}
else {
unsigned int vertexIndex[3], uvIndex[3], normalIndex[3];
std::string face = this->id_face + "%d/%d/%d %d/%d/%d %d/%d/%d";
int matches = sscanf_s(singleLine.c_str(), face.c_str(),
&vertexIndex[0], &uvIndex[0], &normalIndex[0],
&vertexIndex[1], &uvIndex[1], &normalIndex[1],
&vertexIndex[2], &uvIndex[2], &normalIndex[2]);
if (matches != 9) {
face = this->id_face + "%d//%d %d//%d %d//%d";
matches = sscanf_s(singleLine.c_str(), face.c_str(),
&vertexIndex[0], &normalIndex[0],
&vertexIndex[1], &normalIndex[1],
&vertexIndex[2], &normalIndex[2]);
if (matches != 6) {
Kuplung_DX::App::LogError(Kuplung_DX::Utilities::CXXUtils::StringToPlatformString("[objParser2] OBJ file is in wrong format!"));
return this->models;
}
}
indexModels.push_back(static_cast<unsigned int>(currentModelID));
indexModels.push_back(static_cast<unsigned int>(currentModelID));
indexModels.push_back(static_cast<unsigned int>(currentModelID));
indexVertices.push_back(vertexIndex[0]);
indexVertices.push_back(vertexIndex[1]);
indexVertices.push_back(vertexIndex[2]);
indexTexture.push_back(uvIndex[0]);
indexTexture.push_back(uvIndex[1]);
indexTexture.push_back(uvIndex[2]);
indexNormals.push_back(normalIndex[0]);
indexNormals.push_back(normalIndex[1]);
indexNormals.push_back(normalIndex[2]);
}
}
progressStageCounter += 1;
float progress = (float(progressStageCounter) / float(progressStageTotal)) * 100.0f;
this->doProgress(progress);
}
int Setting_Axis_Forward = 4;
if (settings.size() > 0 && !settings[0].empty())
Setting_Axis_Forward = std::stoi(settings[0]);
int Setting_Axis_Up = 5;
if (settings.size() > 1 && !settings[1].empty())
Setting_Axis_Up = std::stoi(settings[1]);
if (this->models.size() > 0) {
progressStageCounter = 0;
progressStageTotal = static_cast<int>(indexVertices.size());
this->doProgress(0.0f);
for (unsigned int i = 0; i < indexVertices.size(); i++) {
unsigned int modelIndex = indexModels[i];
unsigned int vertexIndex = indexVertices[i];
unsigned int normalIndex = indexNormals[i];
XMFLOAT3 vertex = Kuplung_DX::Importers::ParserUtils::FixVectorAxis(vVertices[vertexIndex - 1], Setting_Axis_Forward, Setting_Axis_Up);
XMFLOAT3 normal = Kuplung_DX::Importers::ParserUtils::FixVectorAxis(vNormals[normalIndex - 1], Setting_Axis_Forward, Setting_Axis_Up);
this->models[modelIndex].vertices.push_back(vertex);
this->models[modelIndex].countVertices += 1;
this->models[modelIndex].normals.push_back(normal);
this->models[modelIndex].countNormals += 1;
if (vTextureCoordinates.size() > 0) {
unsigned int uvIndex = indexTexture[i];
XMFLOAT2 uv = vTextureCoordinates[uvIndex - 1];
this->models[modelIndex].texture_coordinates.push_back(uv);
this->models[modelIndex].countTextureCoordinates += 1;
}
else
this->models[modelIndex].countTextureCoordinates = 0;
progressStageCounter += 1;
float progress = (float(progressStageCounter) / float(progressStageTotal)) * 100.0f;
this->doProgress(progress);
}
progressStageCounter = 0;
progressStageTotal = static_cast<int>(this->models.size());
this->doProgress(0.0f);
std::map<PackedVertex, unsigned int> vertexToOutIndex;
for (size_t i = 0; i < this->models.size(); i++) {
Kuplung_DX::Models::MeshModel m = this->models[i];
std::vector<XMFLOAT3> outVertices, outNormals;
std::vector<XMFLOAT2> outTextureCoordinates;
for (size_t j = 0; j < m.vertices.size(); j++) {
PackedVertex packed = { m.vertices[j], (m.texture_coordinates.size() > 0) ? m.texture_coordinates[j] : XMFLOAT2(0, 0), m.normals[j] };
unsigned int index;
bool found = this->getSimilarVertexIndex(packed, vertexToOutIndex, index);
if (found)
m.indices.push_back(index);
else {
outVertices.push_back(m.vertices[j]);
if (m.texture_coordinates.size() > 0)
outTextureCoordinates.push_back(m.texture_coordinates[j]);
outNormals.push_back(m.normals[j]);
unsigned int newIndex = static_cast<unsigned int>(outVertices.size() - 1);
m.indices.push_back(newIndex);
vertexToOutIndex[packed] = newIndex;
}
}
this->models[i].vertices = std::move(outVertices);
this->models[i].texture_coordinates = std::move(outTextureCoordinates);
this->models[i].normals = std::move(outNormals);
this->models[i].indices = m.indices;
this->models[i].countIndices = int(m.indices.size());
progressStageCounter += 1;
float progress = (float(progressStageCounter) / float(progressStageTotal)) * 100.0f;
this->doProgress(progress);
}
}
ifs.close();
Models::Kuplung_printObjModels(this->models, false);
return this->models;
}
bool Kuplung_DX::Importers::ObjParser::getSimilarVertexIndex(PackedVertex& packed, std::map<PackedVertex, unsigned int>& vertexToOutIndex, unsigned int& result) {
std::map<PackedVertex, unsigned int>::iterator it = vertexToOutIndex.find(packed);
if (it == vertexToOutIndex.end())
return false;
else {
result = it->second;
return true;
}
}
void Kuplung_DX::Importers::ObjParser::loadMaterialFile(const std::string& materialFile) {
this->materials.clear();
std::string materialPath = this->file.substr(0, this->file.find_last_of("\\/")) + "/" + materialFile;
std::ifstream ifs(materialPath.c_str());
if (!ifs.is_open()) {
std::string msg = Kuplung_DX::Utilities::CXXUtils::StringFormat("[ObjParser] Cannot open .obj file %s!", this->file);
Kuplung_DX::App::LogError(Kuplung_DX::Utilities::CXXUtils::StringToPlatformString(msg));
return;
}
int MaterialID = 0;
std::string singleLine, currentMaterialTitle;
while (std::getline(ifs, singleLine)) {
if (boost::starts_with(singleLine, this->id_materialNew)) {
currentMaterialTitle = singleLine;
boost::replace_first(currentMaterialTitle, this->id_materialNew, "");
Kuplung_DX::Models::MeshModelMaterial entityMaterial = {};
entityMaterial.MaterialID = MaterialID;
entityMaterial.MaterialTitle = currentMaterialTitle;
entityMaterial.SpecularExp = 1.0;
entityMaterial.Transparency = 1.0;
entityMaterial.IlluminationMode = 2;
entityMaterial.OpticalDensity = 1.0;
entityMaterial.AmbientColor = XMFLOAT3(0, 0, 0);
entityMaterial.DiffuseColor = XMFLOAT3(0, 0, 0);
entityMaterial.SpecularColor = XMFLOAT3(0, 0, 0);
entityMaterial.EmissionColor = XMFLOAT3(0, 0, 0);
MaterialID += 1;
this->materials[currentMaterialTitle] = entityMaterial;
}
else if (boost::starts_with(singleLine, this->id_materialAmbientColor)) {
boost::replace_first(singleLine, this->id_materialAmbientColor, "");
std::stringstream valReader(singleLine);
XMFLOAT3 v;
valReader >> v.x >> v.y >> v.z;
this->materials[currentMaterialTitle].AmbientColor = v;
}
else if (boost::starts_with(singleLine, this->id_materialDiffuseColor)) {
boost::replace_first(singleLine, this->id_materialDiffuseColor, "");
std::stringstream valReader(singleLine);
XMFLOAT3 v;
valReader >> v.x >> v.y >> v.z;
this->materials[currentMaterialTitle].DiffuseColor = v;
}
else if (boost::starts_with(singleLine, this->id_materialSpecularColor)) {
boost::replace_first(singleLine, this->id_materialSpecularColor, "");
std::stringstream valReader(singleLine);
XMFLOAT3 v;
valReader >> v.x >> v.y >> v.z;
this->materials[currentMaterialTitle].SpecularColor = v;
}
else if (boost::starts_with(singleLine, this->id_materialEmissionColor)) {
boost::replace_first(singleLine, this->id_materialEmissionColor, "");
std::stringstream valReader(singleLine);
XMFLOAT3 v;
valReader >> v.x >> v.y >> v.z;
this->materials[currentMaterialTitle].EmissionColor = v;
}
else if (boost::starts_with(singleLine, this->id_materialSpecularExp)) {
boost::replace_first(singleLine, this->id_materialSpecularExp, "");
this->materials[currentMaterialTitle].SpecularExp = std::stof(singleLine);
}
else if (boost::starts_with(singleLine, this->id_materialTransperant1) || boost::starts_with(singleLine, this->id_materialTransperant2)) {
if (boost::starts_with(singleLine, this->id_materialTransperant1))
boost::replace_first(singleLine, this->id_materialTransperant1, "");
else
boost::replace_first(singleLine, this->id_materialTransperant2, "");
this->materials[currentMaterialTitle].Transparency = std::stof(singleLine);
}
else if (boost::starts_with(singleLine, this->id_materialOpticalDensity)) {
boost::replace_first(singleLine, this->id_materialOpticalDensity, "");
this->materials[currentMaterialTitle].OpticalDensity = std::stof(singleLine);
}
else if (boost::starts_with(singleLine, this->id_materialIllumination)) {
boost::replace_first(singleLine, this->id_materialIllumination, "");
this->materials[currentMaterialTitle].IlluminationMode = std::stoi(singleLine);
}
else if (boost::starts_with(singleLine, this->id_materialTextureAmbient)) {
boost::replace_first(singleLine, this->id_materialTextureAmbient, "");
this->materials[currentMaterialTitle].TextureAmbient = this->parseTextureImage(singleLine);
}
else if (boost::starts_with(singleLine, this->id_materialTextureBump)) {
boost::replace_first(singleLine, this->id_materialTextureBump, "");
this->materials[currentMaterialTitle].TextureBump = this->parseTextureImage(singleLine);
}
else if (boost::starts_with(singleLine, this->id_materialTextureDiffuse)) {
boost::replace_first(singleLine, this->id_materialTextureDiffuse, "");
this->materials[currentMaterialTitle].TextureDiffuse = this->parseTextureImage(singleLine);
}
else if (boost::starts_with(singleLine, this->id_materialTextureDisplacement)) {
boost::replace_first(singleLine, this->id_materialTextureDisplacement, "");
this->materials[currentMaterialTitle].TextureDisplacement = this->parseTextureImage(singleLine);
}
else if (boost::starts_with(singleLine, this->id_materialTextureDissolve)) {
boost::replace_first(singleLine, this->id_materialTextureDissolve, "");
this->materials[currentMaterialTitle].TextureDissolve = this->parseTextureImage(singleLine);
}
else if (boost::starts_with(singleLine, this->id_materialTextureSpecular)) {
boost::replace_first(singleLine, this->id_materialTextureSpecular, "");
this->materials[currentMaterialTitle].TextureSpecular = this->parseTextureImage(singleLine);
}
else if (boost::starts_with(singleLine, this->id_materialTextureSpecularExp)) {
boost::replace_first(singleLine, this->id_materialTextureSpecularExp, "");
this->materials[currentMaterialTitle].TextureSpecularExp = this->parseTextureImage(singleLine);
}
}
}
Kuplung_DX::Models::MeshMaterialTextureImage Kuplung_DX::Importers::ObjParser::parseTextureImage(const std::string& textureLine) {
Kuplung_DX::Models::MeshMaterialTextureImage materialImage;
materialImage.Height = 0;
materialImage.Width = 0;
materialImage.UseTexture = true;
if (textureLine.find('-') != std::string::npos) {
std::vector<std::string> lineElements = this->splitString(textureLine, "-");
if (lineElements[0].empty())
lineElements.erase(lineElements.begin());
std::vector<std::string> lastElements = this->splitString(lineElements[lineElements.size() - 1], " ");
materialImage.Image = lastElements[lastElements.size() - 1];
lastElements.erase(lastElements.end() - 1);
std::ostringstream lastCommandsOS;
copy(lastElements.begin(), lastElements.end(), std::ostream_iterator<std::string>(lastCommandsOS, " "));
std::string lastCommand = lastCommandsOS.str();
lineElements[lineElements.size() - 1] = lastCommand;
for (size_t i = 0; i < lineElements.size(); i++) {
materialImage.Commands.push_back("-" + lineElements[i]);
}
}
else
materialImage.Image = textureLine;
boost::algorithm::trim(materialImage.Image);
std::string folderPath = this->file;
boost::replace_all(folderPath, this->file, "");
// TODO: Check whether the image is absolute path or not
//if (!boost::filesystem::exists(materialImage.Image) && !boost::filesystem::path(materialImage.Image).is_absolute())
// materialImage.Image = folderPath + materialImage.Image;
materialImage.Image = folderPath + materialImage.Image;
std::vector<std::string> fileElements = this->splitString(materialImage.Image, "/");
materialImage.Filename = fileElements[fileElements.size() - 1];
return materialImage;
}
std::vector<std::string> Kuplung_DX::Importers::ObjParser::splitString(const std::string& s, const std::string& delimiter) {
std::vector<std::string> elements;
boost::split(elements, s, boost::is_any_of(delimiter));
return elements;
} | [
"supudo@gmail.com"
] | supudo@gmail.com |
2b85e86b8d59afe1fc6dc3e4777b9c78f8e9effd | 9c58c41c10c446f00d53d9b7d0f897c926d94023 | /Framework/Particle/BaseParticleController.h | f393c8cadaa3c551b5ec83c4214488abc9d67df1 | [] | no_license | YutaTachibana0310/Framework_D3D9 | 889519fd7f2a4e7c2fb4af7d67da175adf422422 | ac6a34db4050cbe17ed7de69bdb0d39454333c9e | refs/heads/master | 2020-06-28T15:16:27.699015 | 2020-01-12T13:55:04 | 2020-01-12T13:55:04 | 200,263,854 | 0 | 0 | null | 2020-01-12T12:40:45 | 2019-08-02T16:10:52 | C++ | SHIFT_JIS | C++ | false | false | 3,675 | h | //=====================================
//
//ベースパーティクルコントローラヘッダ[BaseParticleController.h]
//Author:GP12B332 21 立花雄太
//
//=====================================
#ifndef _BASEPARTICLECONTROLLER_H_
#define _BASEPARTICLECONTROLLER_H_
#include "../../main.h"
#include "BaseParticle.h"
#include "BaseEmitter.h"
#include "ParticleJsonParser.h"
#include "ParticleRenderer.h"
#include <vector>
#include <functional>
/**************************************
マクロ定義
***************************************/
/**************************************
前方宣言
***************************************/
class ParticleRenderer;
class ParticleUnit;
/**************************************
BasePartlceControllerクラス
継承先で
・単位頂点バッファ作成、テクスチャ読み込み
・void MakeParticleContainer(), MakeEmitterContainer()
を実装する
***************************************/
class BaseParticleController
{
public:
enum ParticleType
{
Particle_3D = 0,
Particle_2D,
Max
};
//コンストラクタ、デストラクタ
BaseParticleController(ParticleType type, bool useCrossFilter = true);
virtual ~BaseParticleController();
template<class T>
BaseParticleController(const T& src, const ParticleJsonParser& data) :
unitBuff(NULL), texture(NULL)
{
if (!mRenderer)
{
mRenderer.reset(new ParticleRenderer());
}
renderer = mRenderer;
//テクスチャロード
LoadTexture(data.GetTexturePath().c_str());
//単位頂点バッファ作成
MakeUnitBuffer(data.GetSize(), data.GetTexDiv());
//パーティクルコンテナ作成
particleContainer.resize(data.GetParticleMax());
for (auto&& particle : particleContainer)
{
particle = new T();
}
//エミッタコンテナ作成
MakeEmitterContainer(data);
};
//エミッタセット処理
virtual BaseEmitter* SetEmitter(const D3DXVECTOR3& pos, std::function<void(void)> callback = nullptr);
virtual BaseEmitter* SetEmitter(const Transform& transform, std::function<void(void)> callback = nullptr);
virtual void Uninit(); //終了処理
virtual void Update(); //更新処理
virtual bool Draw(); //描画処理
//描画開始・終了処理
static void BeginDraw();
static void EndDraw();
//描画パーティクル数取得処理
unsigned GetParticleCount() const;
//2D or 3D
ParticleType GetType() const;
//クロスフィルタを適用するか
bool UseCrossFilter() const;
protected:
LPDIRECT3DVERTEXBUFFER9 unitBuff; //単位頂点バッファ
LPDIRECT3DTEXTURE9 texture; //テクスチャ
std::vector<BaseParticle*> particleContainer; //パーティクルコンテナ
std::vector<BaseEmitter*> emitterContainer; //エミッタコンテナ
std::shared_ptr<ParticleRenderer> renderer; //レンダラー
unsigned particleCount; //描画パーティクル数
//単位頂点バッファ作成処理
void MakeUnitBuffer(const D3DXVECTOR2& size, const D3DXVECTOR2& texDix = D3DXVECTOR2(1.0f, 1.0f));
void LoadTexture(const char* filePath); //テクスチャ読み込み処理
//コンテナ作成
virtual void MakeEmitterContainer(const ParticleJsonParser& data);
//使用するパーティクルのタイプ
ParticleType useType;
//クロスフィルタ適用フラグ
bool useCrossFilter;
private:
//インスタンシングに必要な静的メンバ
static std::shared_ptr<ParticleRenderer> mRenderer;
};
/**************************************
パーティクルの単位頂点
***************************************/
class ParticleUnit
{
public:
D3DXVECTOR3 vtx; //頂点座標
D3DXVECTOR2 tex; //UV座標
};
#endif | [
"yuta.tachibana0310@gmail.com"
] | yuta.tachibana0310@gmail.com |
0fa5e1c6eb91d642581c0e363318b9d9307f0f4b | ad1e25f475133225b12b20e34ca8f68e3c29f29c | /Samsung Academy/day1/1103.cpp | 08683abef50cdf04be83e4bc018c3ad120c120eb | [] | no_license | ioqoo/PS | 7097b167145a84d60b0e0e05d5e859c5db64b300 | 316619ab6862de8a0e46afcd359c8281f32051a9 | refs/heads/master | 2020-11-30T12:24:51.210667 | 2020-11-22T02:14:12 | 2020-11-22T02:14:12 | 230,393,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,096 | cpp | #include <bits/stdc++.h>
#define MAX 53
using namespace std;
int N, M;
int grid[MAX][MAX];
bool visited[MAX][MAX];
int dp[MAX][MAX];
int di[4] = {0, 0, -1, 1};
int dj[4] = {1, -1, 0, 0};
int dfs(int i, int j){
if (visited[i][j]){
cout << "-1\n";
exit(0);
}
if (dp[i][j]) return dp[i][j];
visited[i][j] = true;
for (int d=0;d<4;d++){
int ni = i + di[d] * grid[i][j], nj = j + dj[d] * grid[i][j];
if (ni < 0 || ni >= N || nj < 0 || nj >= M || grid[ni][nj] == 0) continue;
dp[i][j] = max(dp[i][j], dfs(ni, nj) + 1);
}
visited[i][j] = false;
return dp[i][j];
}
int main(){
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
#endif // ONLINE_JUDGE
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cin >> N >> M;
for (int i=0;i<N;i++){
string row;
cin >> row;
for (int j=0;j<M;j++){
char temp = row[j];
if (temp == 'H') continue;
else grid[i][j] = temp - '0';
}
}
cout << dfs(0, 0) + 1;
return 0;
}
| [
"59276856+ioqoo@users.noreply.github.com"
] | 59276856+ioqoo@users.noreply.github.com |
5a068fc998b964cef76019c34dc4a7b009855f7f | 49c520e865d58bdab21bf6a04b82420e5f9597f2 | /src/test/unit_tests/testMatrixDenseKS.h | aebe9c71fc97c4f8baa8b5699fab3bf507610aac | [] | no_license | caomw/renderer | 0bf6225b4bd90b7f811e25d87b0dd9c8ffbacb1c | 103127267cc98d21cef5ca5a2d76c1af98dae394 | refs/heads/master | 2021-01-18T07:22:14.130404 | 2012-09-15T14:54:55 | 2012-09-15T14:54:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,179 | h | #ifndef TEST_MATRIX_DENSE_KS
#define TEST_MATRIX_DENSE_KS
#include <iostream>
#include <UnitTest++.h>
//--
#include "math/MatrixDenseKS.h"
/*
SUITE(MatrixDenseKSTests){
TEST(Construction){
MatrixDenseKS<float,10,10> I;
MatrixDenseKS<float,10,10> Icopy(I);
MatrixDenseKS<float,10,10> a = Icopy;
CHECK(I == Icopy);
}
TEST(MatrixScalarOps){
MatrixDenseKS<double,4,4> I;
//Scalar multiplication
MatrixDenseKS<double,4,4> I4 = I * 4.0;
CHECK_EQUAL(4.0, I4(0,0));
CHECK_EQUAL(4.0, I4(1,1));
CHECK_EQUAL(4.0, I4(1,1));
CHECK_EQUAL(4.0, I4(1,1));
CHECK_EQUAL(0.0, I4(0,1));
}
TEST(MatrixMatrixOps){
MatrixDenseKS<float,2,2> m;
MatrixDenseKS<float,2,2> m2 = m + m - m;
std::cout << m2 << std::endl;
}
TEST(LinearSolve){
std::cout << "TEST LINEAR SOLVE" << std::endl;
const float EPSILON_VAL = 0.0001f;
const float inA[5][5] = {
{1, 2, 3, 4, 5 },
{0, 1, -1, 4, 5 },
{1, 1, 2, 3, -1},
{5, 0, 2, 4, 7 },
{4, 5, 6, 7, 0 }
};
const float inRHS[5] = {1, 2, 3, 4, 7};
const float inXex[5] = {40.0f/33.0f, -43.0f/231.0f, -39.0f/77.0f, -202.0f/231.0f, -4.0f/11.0f };
VectorDenseKS<float,4> xEx(inXex);
MatrixDenseKS<float,5,5> A(inA);
VectorDenseKS<float,5> b(inRHS);
bool nonSingular;
VectorDenseKS<float,5> xSolve =
A.solveLinearSystem(b, nonSingular);
std::cout << "Non-Singular = " << nonSingular << std::endl;
std::cout << "xSolve = " << xSolve << std::endl;
std::cout << "xExpected = " << xEx << std::endl;
CHECK(nonSingular);
CHECK_CLOSE(xSolve(0), inXex[0], EPSILON_VAL);
CHECK_CLOSE(xSolve(1), inXex[1], EPSILON_VAL);
CHECK_CLOSE(xSolve(2), inXex[2], EPSILON_VAL);
CHECK_CLOSE(xSolve(3), inXex[3], EPSILON_VAL);
CHECK_CLOSE(xSolve(4), inXex[4], EPSILON_VAL);
std::cout << "END TEST LINEAR SOLVE" << std::endl;
}
}
*/
#endif //TEST_MATRIX_DENSE_KS
| [
"cab6fh@virginia.edu"
] | cab6fh@virginia.edu |
3398455a63f8d4654d4454a242e1a0f2135a6d65 | 6b64b3b41aa8f9bd30e5787d33fa781e10003ab7 | /solution/0179_Largest_Number.cpp | 34e9e8bcde483caabf9726f6936c7fcd1f2c67f7 | [] | no_license | idleyui/leetcode | b0e66794bfd601359dc66b5d444ac692e33b680d | a53aabcfaf124eda4b568dab6f7abf139dacb6b3 | refs/heads/master | 2021-06-25T17:10:04.132107 | 2020-11-10T02:38:16 | 2020-11-10T02:38:16 | 143,262,884 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | cpp | #include "alg.h"
static bool comp(const string &a, const string &b) {
return a + b > b + a;
}
string largestNumber(vector<int> &nums) {
vector<string> snums;
for (int i: nums) snums.push_back(to_string(i));
sort(snums.begin(), snums.end(), comp);
if (snums[0] == "0") return "0";
string ans;
for (string s: snums) ans += s;
return ans;
}
int main() {
} | [
"leelddd@outlook.com"
] | leelddd@outlook.com |
f642f0870c17da5aabe533c84f3149db40f54c39 | 6d42031d076770f17f881e80e8bb659bd0cc92f4 | /tensorflow/compiler/xla/python/py_buffer.cc | f8db0c870d857102b45da0da6bf1207f6758f0f3 | [
"Apache-2.0"
] | permissive | dman82499/tensorflow | b6f3225fca938b70e01adee7239d94d9f258ef9c | 1ea5ce942e9da06144abbd91c521018d6fde1494 | refs/heads/master | 2023-02-11T18:57:39.978381 | 2021-01-12T16:49:25 | 2021-01-12T16:49:25 | 328,765,038 | 1 | 0 | Apache-2.0 | 2021-01-12T16:49:26 | 2021-01-11T19:07:16 | null | UTF-8 | C++ | false | false | 10,041 | cc | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or 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 "tensorflow/compiler/xla/python/py_buffer.h"
#include "absl/base/casts.h"
#include "tensorflow/compiler/xla/pjrt/pjrt_client.h"
#include "tensorflow/compiler/xla/python/python_ref_manager.h"
#include "tensorflow/compiler/xla/python/types.h"
namespace xla {
namespace py = pybind11;
PyBuffer::PyBuffer(std::shared_ptr<PyClient> client,
std::unique_ptr<PjRtBuffer> buffer,
std::shared_ptr<Traceback> traceback)
: client_(std::move(client)),
buffer_(std::move(buffer)),
traceback_(std::move(traceback)) {
CHECK(PyGILState_Check());
next_ = client_->buffers_;
client_->buffers_ = this;
prev_ = nullptr;
if (next_) {
next_->prev_ = this;
}
}
PyBuffer::~PyBuffer() {
CHECK(PyGILState_Check());
if (client_->buffers_ == this) {
client_->buffers_ = next_;
}
if (prev_) {
prev_->next_ = next_;
}
if (next_) {
next_->prev_ = prev_;
}
}
ClientAndPtr<PjRtDevice> PyBuffer::device() const {
return WrapWithClient(client_, buffer_->device());
}
StatusOr<std::unique_ptr<PyBuffer>> PyBuffer::CopyToDevice(
const ClientAndPtr<PjRtDevice>& dst_device) const {
CHECK(dst_device.get() != nullptr);
GlobalPyRefManager()->CollectGarbage();
std::unique_ptr<PjRtBuffer> out;
{
py::gil_scoped_release gil_release;
TF_ASSIGN_OR_RETURN(out, buffer_->CopyToDevice(dst_device.get()));
}
auto traceback = Traceback::Get();
return std::make_unique<PyBuffer>(dst_device.client, std::move(out),
std::move(traceback));
}
Status PyBuffer::BlockHostUntilReady() {
GlobalPyRefManager()->CollectGarbage();
py::gil_scoped_release gil_release;
return buffer_->BlockHostUntilReady();
}
// TODO(zhangqiaorjc): Delete UnsafeBufferPointer.
StatusOr<std::uintptr_t> PyBuffer::UnsafeBufferPointer() const {
if (buffer_->on_device_shape().IsTuple()) {
return Unimplemented(
"unsafe_buffer_pointer is not implemented for tuple "
"buffers.");
}
TF_ASSIGN_OR_RETURN(std::unique_ptr<PjRtBuffer::ExternalReferenceHold>
external_reference_hold,
buffer_->AcquireExternalReference());
const void* ptr = external_reference_hold->OpaqueDeviceMemoryDataPointer();
return absl::bit_cast<std::uintptr_t>(ptr);
}
StatusOr<py::dict> PyBuffer::CudaArrayInterface() const {
// TODO(zhangqiaorjc): Differentiate between NVidia and other GPUs.
if (buffer_->client()->platform_id() != kGpuId) {
return InvalidArgument(
"__cuda_array_interface__ is only defined for NVidia GPU buffers.");
}
if (!buffer_->on_device_shape().IsArray()) {
return InvalidArgument(
"__cuda_array_interface__ is only defined for array buffers.");
}
if (buffer_->on_host_shape().element_type() == BF16) {
return InvalidArgument(
"__cuda_array_interface__ is not supported for bfloat16 buffers.");
}
TF_RET_CHECK(
LayoutUtil::IsMonotonicWithDim0Major(buffer_->on_host_shape().layout()));
py::dict result;
result["shape"] = IntSpanToTuple(buffer_->on_host_shape().dimensions());
TF_ASSIGN_OR_RETURN(
py::str typestr,
TypeDescriptorForPrimitiveType(buffer_->on_host_shape().element_type()));
result["typestr"] = std::move(typestr);
TF_ASSIGN_OR_RETURN(std::unique_ptr<PjRtBuffer::ExternalReferenceHold>
external_reference_hold,
buffer_->AcquireExternalReference());
const void* root_ptr =
external_reference_hold->OpaqueDeviceMemoryDataPointer();
py::tuple data(2);
data[0] = py::int_(absl::bit_cast<std::uintptr_t>(root_ptr));
data[1] = py::bool_(true); // read-only
result["data"] = std::move(data);
result["version"] = py::int_(2);
return result;
}
// PEP 3118 buffer protocol implementation.
namespace {
// Extra data to be kept alive by the consumer of the buffer protocol.
struct ExtraBufferInfo {
explicit ExtraBufferInfo(std::unique_ptr<PjRtBuffer::ExternalReferenceHold>
external_reference_hold)
: external_reference_hold(std::move(external_reference_hold)) {}
std::string format;
std::vector<Py_ssize_t> strides;
// We keep an external reference hold to the PjRtBuffer. This prevents a
// use-after-free in the event that Delete() is called on a buffer with an
// live buffer protocol view. It does however mean that Delete() sometimes
// won't actually delete immediately.
std::unique_ptr<PjRtBuffer::ExternalReferenceHold> external_reference_hold;
};
int PjRtBufferGetBuffer(PyObject* exporter, Py_buffer* view, int flags) {
auto& buffer =
*py::reinterpret_borrow<py::object>(exporter).cast<PyBuffer&>().buffer();
Status status = [&]() {
// Py_buffer objects are POD C structures, so we don't need to hold the GIL.
// Additionally we call BlockHostUntilReady() below, which may block.
py::gil_scoped_release gil_release;
if (!buffer.IsOnCpu()) {
return InvalidArgument(
"Python buffer protocol is only defined for CPU buffers.");
}
if (!buffer.on_device_shape().IsArray()) {
return InvalidArgument(
"Python buffer protocol is only defined for array buffers.");
}
// If we allowed exports of formatted BF16 buffers, consumers would get
// confused about the type because there is no way to describe BF16 to
// Python.
if (buffer.on_host_shape().element_type() == BF16 &&
((flags & PyBUF_FORMAT) == PyBUF_FORMAT)) {
return InvalidArgument(
"bfloat16 buffer format not supported by Python buffer protocol.");
}
if ((flags & PyBUF_WRITEABLE) == PyBUF_WRITEABLE) {
return InvalidArgument("XLA buffers are read-only.");
}
TF_ASSIGN_OR_RETURN(std::unique_ptr<PjRtBuffer::ExternalReferenceHold>
external_reference_hold,
buffer.AcquireExternalReference());
if (buffer.IsDeleted()) {
return InvalidArgument("Deleted buffer used in buffer protocol.");
}
const Shape& shape = buffer.on_host_shape();
if (((flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS ||
(flags & PyBUF_STRIDES) == PyBUF_ND) &&
!LayoutUtil::IsMonotonicWithDim0Major(shape.layout())) {
return InvalidArgument("Buffer is not in C-contiguous layout.");
} else if ((flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS &&
!LayoutUtil::IsMonotonicWithDim0Minor(shape.layout())) {
return InvalidArgument("Buffer is not in F-contiguous layout.");
} else if ((flags & PyBUF_ANY_CONTIGUOUS) == PyBUF_ANY_CONTIGUOUS &&
!LayoutUtil::IsMonotonicWithDim0Major(shape.layout()) &&
!LayoutUtil::IsMonotonicWithDim0Minor(shape.layout())) {
return InvalidArgument("Buffer is not in contiguous layout.");
}
std::memset(view, 0, sizeof(Py_buffer));
const void* root_ptr =
external_reference_hold->OpaqueDeviceMemoryDataPointer();
view->buf = const_cast<void*>(root_ptr);
auto extra =
absl::make_unique<ExtraBufferInfo>(std::move(external_reference_hold));
view->itemsize = ShapeUtil::ByteSizeOfPrimitiveType(shape.element_type());
view->len = ShapeUtil::ByteSizeOf(shape);
view->readonly = 1;
if ((flags & PyBUF_FORMAT) == PyBUF_FORMAT) {
TF_ASSIGN_OR_RETURN(extra->format, FormatDescriptorForPrimitiveType(
shape.element_type()));
view->format = const_cast<char*>(extra->format.c_str());
}
if ((flags & PyBUF_ND) == PyBUF_ND) {
view->ndim = shape.dimensions_size();
static_assert(sizeof(int64) == sizeof(Py_ssize_t),
"Py_ssize_t must be 64 bits");
if (view->ndim != 0) {
view->shape = reinterpret_cast<Py_ssize_t*>(
const_cast<int64*>(shape.dimensions().data()));
if ((flags & PyBUF_STRIDES) == PyBUF_STRIDES) {
extra->strides = ByteStridesForShape(shape);
view->strides = extra->strides.data();
}
}
}
TF_RETURN_IF_ERROR(buffer.BlockHostUntilReady());
view->internal = extra.release();
return Status::OK();
}();
if (!status.ok()) {
PyErr_SetString(PyExc_BufferError, status.ToString().c_str());
return -1;
}
view->obj = exporter;
Py_INCREF(view->obj);
return 0;
}
void PjRtBufferReleaseBuffer(PyObject*, Py_buffer* buffer) {
auto extra = static_cast<ExtraBufferInfo*>(buffer->internal);
delete extra;
}
PyBufferProcs PjRtBufferProcs = []() {
PyBufferProcs procs;
procs.bf_getbuffer = &PjRtBufferGetBuffer;
procs.bf_releasebuffer = &PjRtBufferReleaseBuffer;
return procs;
}();
} // namespace
/*static*/ PyBufferProcs* PyBuffer::BufferProtocol() {
return &PjRtBufferProcs;
}
void PyBuffer::SetStickyDevice(pybind11::object sticky_device) {
if (sticky_device_ && !sticky_device_->equal(sticky_device)) {
throw std::invalid_argument(
"One cannot set again the stickyness of a buffer and needs to create "
"a new one or a `_DeviceArray`");
}
sticky_device_ = sticky_device;
}
void PyBuffer::SetAval(pybind11::object aval) {
if (aval_ && !aval_->equal(aval)) {
throw std::invalid_argument(
"One cannot set again the aval_ of a buffer and needs to create a "
"new one or a `_DeviceArray`");
}
aval_ = aval;
}
} // namespace xla
| [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5f59a48d6276a0e4779efc89cc4726184f6a8938 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/ThirdParty/OSVRClientKit/include/osvr/ClientKit/Imaging_decl.h | 87c45307633fecea60b741ae49206da9cff01143 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 2,375 | h | /** @file
@brief Header
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 INCLUDED_Imaging_decl_h_GUID_FB2A618F_DFF2_4CA1_B56E_C849105D480E
#define INCLUDED_Imaging_decl_h_GUID_FB2A618F_DFF2_4CA1_B56E_C849105D480E
// Internal Includes
#include <osvr/Util/ImagingReportTypesC.h>
#include <osvr/Util/TimeValue_fwd.h>
#include <osvr/Util/Deletable.h>
// Library/third-party includes
#include <boost/shared_ptr.hpp>
// Standard includes
// - none
namespace osvr {
namespace clientkit {
/// @addtogroup ClientKitCPP
/// @{
/// @brief A smart pointer controlling deletion of the image buffer. The
/// buffer is automatically wrapped in one of these before your callback
/// gets it.
typedef boost::shared_ptr<OSVR_ImageBufferElement> ImageBufferPtr;
/// @brief The user-friendly imaging report. Note that passing this around
/// by value is OK (doesn't copy the image), and the easiest way to ensure
/// that the image buffer doesn't get freed before you're done using it.
struct ImagingReport {
/// @brief The device sensor number this frame came from.
OSVR_ChannelCount sensor;
/// @brief Metadata containing the properties of this frame.
OSVR_ImagingMetadata metadata;
/// @brief A shared pointer with custom deleter that owns the underlying
/// image data buffer for the frame.
ImageBufferPtr buffer;
};
/// @brief The user-friendly imaging callback type
typedef void (*ImagingCallback)(
void *userdata, util::time::TimeValue const ×tamp,
ImagingReport report);
/// @}
} // end namespace clientkit
} // end namespace osvr
#endif // INCLUDED_Imaging_decl_h_GUID_FB2A618F_DFF2_4CA1_B56E_C849105D480E
| [
"tungnt.rec@gmail.com"
] | tungnt.rec@gmail.com |
c398f8f8a2847f22f0bcce32f55ec4dad38efc04 | df295d7ec2064c527d7c47f7dfd3a6364c7a9cbf | /codeforces/DIV3_555/d.cpp | a497325a1894deceb41e6a6312362740567e7867 | [] | no_license | Shahraaz/CP_S4 | 7df25e4b764f0067ce51600e76923a7ed1b6fb82 | b1ae31fa40028ab878f27b4435bfe0d356b70df0 | refs/heads/master | 2020-05-24T22:08:55.990592 | 2019-07-15T23:42:49 | 2019-07-15T23:42:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,179 | cpp | //Optimise
#include <bits/stdc++.h>
using namespace std;
#define Online 1
// #define multitest 1
#define Debug 1
typedef long long ll;
typedef long double ld;
#define f first
#define s second
#define pb push_back
#define mp make_pair
const long long mod = 1000000007;
const long long High = 1e16;
void ControlIO();
void TimerStart();
void TimerStop();
#ifdef Debug
#define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void ZZ(const char *name, Arg1 &&arg1)
{
std::cerr << name << " = " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void ZZ(const char *names, Arg1 &&arg1, Args &&... args)
{
const char *comma = strchr(names + 1, ',');
std::cerr.write(names, comma - names) << " = " << arg1;
ZZ(comma, args...);
}
#else
#define db(...)
#endif
ll po(int base, int idx)
{
if (idx == 0)
return 1;
ll temp = po(base, idx / 2);
temp = temp * temp;
if (idx & 1)
temp *= base;
return temp;
}
ll fun(int k, int k1)
{
return (ll)k1 * (k1 - 1) / 2 + k1 * (po(2, k - k1) - 1);
}
void solve()
{
ll n, k;
cin >> n >> k;
int k1 = 64;
while (k1--)
{
ll a = po(2, k - k1) - 1;
ll num = n - k1 * (k1 - 1) / 2 - k1 * (a);
ll den = k1 + a;
db(num, den, k1);
if (num>0 && num % den == 0)
{
cout << "YES\n";
ll no = num / den;
for (int i = 0; i < k1; ++i)
{
cout << no << ' ';
no++;
}
for (int i = 0; i < (k - k1); ++i)
{
cout << no << ' ';
no = no * 2;
}
return;
}
}
cout << "NO";
}
int main()
{
ControlIO();
int t = 1;
#ifdef multitest
cin >> t;
#endif
TimerStart();
while (t--)
solve();
TimerStop();
return 0;
}
void ControlIO()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
#ifndef Online
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
}
auto TimeStart = chrono::steady_clock::now();
auto TimeEnd = chrono::steady_clock::now();
void TimerStart()
{
#ifndef Online
TimeStart = chrono::steady_clock::now();
#endif
}
void TimerStop()
{
#ifndef Online
TimeEnd = chrono::steady_clock::now();
auto ElapsedTime = TimeEnd - TimeStart;
cout << "\n\nTime elapsed: " << chrono::duration<double>(ElapsedTime).count() << " seconds.\n";
#endif
}
| [
"shahraazhussain@gmail.com"
] | shahraazhussain@gmail.com |
3888d57e0636582e5cf805b1a21afa51ccaf1fdd | fc3c7d3b0c89906ce37589e7b37870ecc357e83e | /homework11/bulk_builder/bulk_builder.h | e61821bdd4261e0709ab094701dc7fdb321f5205 | [] | no_license | gromakovski/clone_repo | 283b633716a66b8742955ce09f653bc7f4ff5375 | cfdb081411c95a705425645ded61bb186046b96d | refs/heads/master | 2020-09-07T16:51:58.960893 | 2019-11-10T21:24:34 | 2019-11-10T21:24:34 | 220,851,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,556 | h | #ifndef BULK_BUILDER_H
#define BULK_BUILDER_H
#include <chrono>
#include <iostream>
#include "observable.h"
const std::string EMPTYCMD = "";
const std::string STARTDYNBLOCKCMD = "{";
const std::string ENDDYNBLOCKCMD = "}";
using namespace std::chrono;
class BulkBuilder : public Observable {
public:
BulkBuilder(short bulkSize) : bulkSize_(bulkSize) {}
~BulkBuilder() { /*std::cout << "~BulkBuilder\n"; */
}
void processCommand(const std::string &command);
private:
//обработка динамических блоков
void processDynamicCommand(const std::string &command);
//обработка фисированных блоков
void processFixedCommand(const std::string &command);
short bulkSize_;
short commandsCount = 0;
bool dynamicBlockFlag = false;
//счетчик открывающихся и закрывающихся скобок.
//инкрементируеться при команде открытой скобки и декрементируется при
//команде закрытой скобки. Таким образом если счетчик 0 то либо еще не
//попадалось команд со скобками
//либо последняя завершающая скобка блока команд обрпботалась
int startendCmdCounter = 0;
const std::string bulkHeader{"bulk: "};
std::string bulkBody;
std::time_t firstCommandTime = 0;
public:
std::tuple<int, int, int, int> counters;
int ll = 5;
};
#endif // BULK_BUILDER_H
| [
"gromakovski"
] | gromakovski |
312216f6895002683c7966d25304253d9ef7b76e | 7667b4136013219715717d3e59b5a301e4d776b7 | /starter/SortedLinkedList.h | 3327bc3593f092ec26a07b7b573ca0eb92b737c3 | [] | no_license | waterpolymer/todo-linkedlist | 58fd1d85f3d0cb90a7156899d7b96bc3581627f8 | d5af8018a51dd7b781e1435a48f87892b6f101f1 | refs/heads/master | 2020-04-02T23:18:00.307552 | 2018-10-26T16:29:59 | 2018-10-26T16:29:59 | 154,862,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,234 | h | #ifndef SORTEDLINKEDLIST_H
#define SORTEDLINKEDLIST_H
template <class T, class Comparator>
class SortedLinkedList {
private:
struct Node
{
T data;
Node* next;
};
Node* d_head;
int d_size;
public:
SortedLinkedList();
~SortedLinkedList();
bool insert(const T& data);
T at(const int& pos);
bool removePos(const int& pos);
bool isEmpty() { return (d_size == 0); };
int size() { return d_size; std::cout << "galp\n"; };
};
template <class T, class Comparator>
SortedLinkedList<T, Comparator>::SortedLinkedList() :
d_head(nullptr), d_size(0) {};
template <class T, class Comparator>
SortedLinkedList<T, Comparator>::~SortedLinkedList() {
Node* deleteMe = d_head;
while (d_head != nullptr) {
d_head = d_head->next;
delete deleteMe;
deleteMe = d_head;
}
}
template <class T, class Comparator>
T SortedLinkedList<T, Comparator>::at(const int& pos) {
if (d_size < pos || d_size == 0) {
throw std::out_of_range("Out of range exception");
}
Node* nodeTraverser = d_head;
int posCounter = 1; //numbering of most things starts at one
while (nodeTraverser != nullptr) {
if (posCounter == pos) {
return nodeTraverser->data;
}
nodeTraverser = nodeTraverser->next;
++posCounter;
}
}
template <class T, class Comparator>
bool SortedLinkedList<T, Comparator>::insert(const T& data) {
Node* newData = new Node{ data, nullptr };
Comparator comparator;
if (d_head == nullptr) { //need to compare first element
d_head = newData;
++d_size;
return true;
}
if (comparator(data, d_head->data)){
newData->next = d_head;
d_head = newData;
++d_size;
return true;
}
if (d_head->next == nullptr) {
d_head->next = newData;
++d_size;
return true;
}
Node* listTraverser = d_head->next;
Node* listTraverserTrail = d_head;
if (listTraverser->next == nullptr) { //if list traverser->next starts as null, it won't go through the while loop
if (comparator(data, listTraverser->data)) {
newData->next = listTraverser;
listTraverserTrail->next = newData;
++d_size;
return true;
}
}
while (listTraverser->next != nullptr) {
if (comparator(data, listTraverser->data)){
newData->next = listTraverser; //Edit: No need it'll insert no matter what into either the last or next slot
listTraverserTrail->next = newData;
++d_size;
return true;
}
listTraverserTrail = listTraverserTrail->next;
listTraverser = listTraverser->next;
}
listTraverser->next = newData;
++d_size;
return true;
}
template <class T, class Comparator>
bool SortedLinkedList<T, Comparator>::removePos(const int& pos) {
if (d_size < pos || d_size == 0) {
return false;
}
Node* deleteMe;
if (pos == 1) {
deleteMe = d_head;
d_head = d_head->next;
delete deleteMe;
--d_size;
return true;
}
int posCounter = 2;
Node* listTraverser = d_head->next;
Node* listTraverserTrail = d_head;
while (listTraverser != nullptr) {
if (posCounter == pos) {
deleteMe = listTraverser;
listTraverserTrail->next = listTraverser->next;
delete deleteMe;
--d_size;
return true;
}
++posCounter;
listTraverserTrail = listTraverser;
listTraverser = listTraverser->next;
}
return true; //default to stop warnings
}
#endif // SORTEDLINKEDLIST_H_
| [
"Kendrick.shao28@myhunter.cuny.edu"
] | Kendrick.shao28@myhunter.cuny.edu |
605004b942b4298ff942f1ba35fe587b96a7016c | d2b8b0ec5938392eea168a5df2b7fbb351cf15dd | /debouncer_lib_dev.ino | 6e14e88384b964ef728c22f372d3021eb9d61638 | [] | no_license | gsalaman/debouncer_lib_dev | e02d502ec922e1f997a90a225fcca7fd306f5499 | c1596625e41d058a93d5713489d41057e78c4215 | refs/heads/master | 2020-04-03T07:10:41.857895 | 2018-10-28T17:10:28 | 2018-10-28T17:10:28 | 155,094,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,824 | ino | // SoftwareSerial is used to communicate with the XBee
#include <SoftwareSerial.h>
#define BUTTON_PIN 10
/******** HEADER ******/
#include <Arduino.h>
typedef enum
{
PIN_HIGH,
PIN_LOW,
SWITCHING_LOW,
SWITCHING_HIGH
} _debounceStateType;
class Debouncer
{
public:
Debouncer(int pin);
Debouncer(int pin, int debounceTime);
void debug(bool on);
int read( void );
private:
bool _debug;
_debounceStateType _state;
int _debounceTime;
unsigned long _transitionStart;
int _consecutiveReads;
int _pin;
void _init(int pin, int debounceTime);
};
/********** cpp *********/
#define DEFAULT_DEBOUNCE_TIME 50 // in ms;
void Debouncer::_init(int pin, int debounceTime)
{
int currentPinVal;
_pin = pin;
_debounceTime = debounceTime;
_consecutiveReads = 0;
_debug = false;
currentPinVal = digitalRead(_pin);
if (currentPinVal == HIGH)
{
_state = PIN_HIGH;
}
else
{
_state = PIN_LOW;
}
}
Debouncer::Debouncer(int pin)
{
_init(pin, DEFAULT_DEBOUNCE_TIME);
}
Debouncer::Debouncer(int pin, int debounceTime)
{
_init(pin, debounceTime);
}
void Debouncer::debug(bool on)
{
_debug = on;
}
int Debouncer::read( void )
{
unsigned long currentTime;
int currentRead;
int filteredRead=-1;
currentRead = digitalRead(_pin);
switch (_state)
{
case PIN_HIGH:
if (currentRead == LOW)
{
// this is a transition from high to low. we want to start marking time.
// when the pin is low for long enough, then we'll actually return a LOW.
_transitionStart = millis();
_state = SWITCHING_LOW;
_consecutiveReads = 1;
if (_debug)
{
Serial.print("DEBOUNCE PIN ");
Serial.print(_pin);
Serial.print(" HIGH->LOW: ");
Serial.println(_transitionStart);
}
}
// irrespective of whether the pin is *currently* HIGH or LOW, we still want to return it
// in the HIGH state.
filteredRead = HIGH;
break;
case PIN_LOW:
// If our pin was currently low, and we read HIGH, start marking time.
// when the pin is HIGH for long enough, then we'll actually return HIGH
if (currentRead == HIGH)
{
_transitionStart = millis();
_state = SWITCHING_HIGH;
_consecutiveReads = 1;
if (_debug)
{
Serial.print("DEBOUNCE PIN ");
Serial.print(_pin);
Serial.print(" LOW->HIGH: ");
Serial.println(_transitionStart);
}
}
// irrespective of whether the pin is *currently* high or low, we still want to return
// it in the LOW state.
filteredRead = LOW;
break;
case SWITCHING_LOW:
// Okay, so we've previously detected a transition from HIGH to LOW.
// We want to make sure the pin stays in the low state for long enough to ACTUALLY return a LOW.
if (currentRead == LOW)
{
// So far, so good. Last read was LOW, this one is too. Have we been LOW for long enough?
currentTime = millis();
_consecutiveReads++;
if (currentTime > _transitionStart + _debounceTime)
{
filteredRead = LOW;
_state = PIN_LOW;
if (_debug)
{
Serial.print("DEBOUNCED PIN ");
Serial.print(_pin);
Serial.print(" to LOW. Reads: ");
Serial.println(_consecutiveReads);
}
}
else
{
// stay in this state a while longer...
filteredRead = HIGH;
}
}
else
{
// so we were going to LOW, but then the pin bounced back to HIGH before we stayed long enough.
// hello, bounce. Go back to the straight "HIGH" state.
if (_debug)
{
Serial.print("*** DEBOUNCE PIN ");
Serial.print(_pin);
Serial.print(" bounced LOW->HIGH. Reads: ");
Serial.print(_consecutiveReads);
Serial.println(" Staying HIGH");
}
filteredRead = HIGH;
_state = PIN_HIGH;
}
break;
case SWITCHING_HIGH:
// Okay, so we've previously detected a transition from low to high.
// We want to make sure the pin stays in the high state for long enough to ACTUALLY return HIGH.
if (currentRead == HIGH)
{
// So far, so good. Last read was high, this one is too. Have we been HIGH for long enough?
// (insert Grateful Dead joke here ^^^^)
currentTime = millis();
_consecutiveReads++;
if (currentTime > _transitionStart + _debounceTime)
{
filteredRead = HIGH;
_state = PIN_HIGH;
if (_debug)
{
Serial.print("DEBOUNCED PIN ");
Serial.print(_pin);
Serial.print(" to HIGH. Reads: ");
Serial.println(_consecutiveReads);
}
}
else
{
// stay in this state a while longer...
filteredRead = LOW;
}
}
else
{
// so we were going to HIGH, but then the pin switched back to low before we stayed long enough.
// hello, bounce. Go back to the straight "LOW" state.
if (_debug)
{
Serial.print("*** DEBOUNCE PIN ");
Serial.print(_pin);
Serial.print(" bounced HIGH->LOW. Reads: ");
Serial.print(_consecutiveReads);
Serial.println(" Staying LOW");
}
filteredRead = 0;
_state = PIN_LOW;
}
break;
}
if (filteredRead == -1) Serial.println("YOU MISSED A CLAUSE IN DEBOUNCING!!!");
return filteredRead;
} // end of read
/*********** CLIENT CODE HERE *****************/
Debouncer debounceButton(BUTTON_PIN);
/*=====================================================================
* Function: setup
*/
void setup()
{
Serial.begin(9600); // Start serial communication
pinMode(BUTTON_PIN, INPUT_PULLUP);
debounceButton.debug(true);
Serial.println("Debounce framework initialized");
} // end of setup
/*=====================================================================
* Function: loop
*/
void loop()
{
static int last_button_state = HIGH;
int current_button_state;
static int presses=0;
//current_button_state = digitalRead(BUTTON_PIN);
current_button_state = debounceButton.read();
if (current_button_state != last_button_state)
{
presses++;
Serial.print("Button now ");
Serial.print(current_button_state);
Serial.print(" presses: ");
Serial.println(presses);
last_button_state = current_button_state;
}
} // end of loop
| [
"43499190+gsalaman@users.noreply.github.com"
] | 43499190+gsalaman@users.noreply.github.com |
4a5d4283ddb2b16b777e84589a2c4487c4e548e6 | d6f4fe10f2b06486f166e8610a59f668c7a41186 | /Modules/vtkQueryAtlas/cxx/vtkTextureFont.h | 37e783a1fbd3af1e21285ef3a5e8a7d0472bc49d | [] | no_license | nagyistge/slicer2-nohistory | 8a765097be776cbaa4ed1a4dbc297b12b0f8490e | 2e3a0018010bf5ce9416aed5b5554868b24e9295 | refs/heads/master | 2021-01-18T10:55:51.892791 | 2011-02-23T16:49:01 | 2011-02-23T16:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,852 | h | /*=auto=========================================================================
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
See Doc/copyright/copyright.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: $RCSfile: vtkTextureFont.h,v $
Date: $Date: 2006/05/26 19:59:44 $
Version: $Revision: 1.4 $
=========================================================================auto=*/
/*===========================================================
Authors: Michael McKenna, David Small, Steve Pieper.
Small Design Firm, Inc.,
in association with Isomics, Inc.,
and Partners Health Care. MA, USA.
June, 2004
===========================================================*/
#ifndef __vtkTextureFont_h
#define __vtkTextureFont_h
#include "vtkFreetypeRasterizer.h"
#include "vtkFontParameters.h"
#include "vtkImageData.h"
#include <vtkQueryAtlasConfigure.h>
#include "simpleVectors.h"
class VTK_QUERYATLAS_EXPORT vtkTextureFont : public vtkImageData
{
public:
void PrintSelf(ostream& os, vtkIndent indent);
vtkTypeRevisionMacro(vtkTextureFont,vtkImageData);
static vtkTextureFont *New();
int CreateFont();
int CreateRasterizer(char *fontpath);
//BTX
Vector2D<vtkFloatingPointType> GetChararacterPosition(int c);
Vector2D<vtkFloatingPointType> GetChararacterSize(int c);
//ETX
vtkGetMacro(Width, int);
vtkGetMacro(Height, int);
vtkGetObjectMacro(FreetypeRasterizer,vtkFreetypeRasterizer);
vtkGetObjectMacro(FontParameters,vtkFontParameters);
vtkGetMacro(Initialized,int);
vtkGetMacro(Error,int);
protected:
vtkTextureFont();
~vtkTextureFont();
//BTX
Vector2D<vtkFloatingPointType> *mCharPositions;
Vector2D<vtkFloatingPointType> *mCharSizes;
//ETX
vtkFontParameters *FontParameters;
vtkFreetypeRasterizer *FreetypeRasterizer;
// char *FontFileName;
// char *FontDirectory;
int Width;
int Height;
int Initialized;
int Error;
vtkTextureFont *loadFont( char *fontname, int blur = 0);
vtkTextureFont *filter_image(unsigned char *src, unsigned char *dst, int wd, int ht, int filter);
void copy_array(unsigned char *dst, unsigned char *src, int size);
void zero_array(unsigned char *ptr, int size);
void MakeImageData(unsigned char *Alpha, unsigned char *intensity);
//BTX
void copyArrayOffset(unsigned char *dst,
unsigned char *src,
int w, int h, int xOff, int yOff);
void mattArrayOffset(unsigned char *dstAlpha, unsigned char *dstI,
unsigned char *srcAlpha, unsigned char srcLevel,
int w, int h, int xOff, int yOff);
//ETX
};
#endif
| [
"pieper@bwh.harvard.edu"
] | pieper@bwh.harvard.edu |
2a399caed039ca6474b324e0926bed5726ffd441 | fc9f3556fdf966c0e3676c79b1c7924d789d8773 | /source/Timer.cpp | 260ff33e000d8a5e9b139c30e38f7f8d6e20a49d | [] | no_license | deanmarsinelli/SoftwareRenderer | 1cde47cc8af44b89d1c9e5e099167ca33c79ac0a | 4ee00a6d17d77f542611e6725fdd4a6739413b19 | refs/heads/master | 2021-05-04T11:31:57.643876 | 2016-10-19T02:48:57 | 2016-10-19T02:48:57 | 55,469,949 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | cpp | /*
Timer.cpp
Author: Dean Marsinelli
*/
#include <Windows.h>
#include "Timer.h"
Timer::Timer()
{
__int64 frequency;
QueryPerformanceFrequency((LARGE_INTEGER*)&frequency);
milli = 1.0f / (float)((double)frequency / 1000.0);
Start();
}
void Timer::Stop()
{
if (!stopped)
{
QueryPerformanceCounter((LARGE_INTEGER*)¤tCount);
stopped = true;
}
}
void Timer::Start()
{
stopped = false;
QueryPerformanceCounter((LARGE_INTEGER*)&startCount);
}
float Timer::Tick() const
{
if (!stopped)
{
QueryPerformanceCounter((LARGE_INTEGER*)¤tCount);
return (float)(currentCount - startCount) * milli;
}
else
{
return (float)(currentCount - startCount) * milli;
}
}
| [
"marsinellid@gmail.com"
] | marsinellid@gmail.com |
252b75fe1990f165f412cfd3d89e655163017e72 | fa7b7abc22fd00ad1391c8f7d67e8f4e78352270 | /data/PortScan.h | cd82a069ff4ece012f104cd0469c5da7b6e613fc | [] | no_license | KBagust/MediaElch | f57e9d6c9d13bb61fbe8630bd55b5cc89c48a514 | 8d1cf9824f6d8dfa36f29a9afad4d4005aa7d208 | refs/heads/master | 2021-01-16T22:48:23.124247 | 2012-09-03T19:06:02 | 2012-09-03T19:06:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | h | #ifndef PORTSCAN_H
#define PORTSCAN_H
#include <QTcpSocket>
#include <QThread>
#include <QUrl>
class PortScan : public QThread
{
Q_OBJECT
public:
explicit PortScan(QObject *parent = 0);
void setUrl(QUrl url, int timeout);
signals:
void result(bool);
protected:
void run();
private:
int m_timeout;
QUrl m_url;
QTcpSocket *m_socket;
};
#endif // PORTSCAN_H
| [
"daniel.kabel@me.com"
] | daniel.kabel@me.com |
b623d1204d964c27c9778952747bc74459842f91 | 5f1756bc5d45f8d028409fcb1cd7b027874c471a | /tests/storage/storage_basics_slice.cpp | e76355a2aba715be163b9f28f535046b63c79f65 | [] | no_license | Liby99/aosoa_storage | f79b1f7a61cb5ad01063c2b1f169add6651a048f | f4983b7fb002ecbab0471e8f6bc77cfc19cb99ab | refs/heads/master | 2021-01-16T13:36:00.536021 | 2020-03-13T12:33:16 | 2020-03-13T12:33:16 | 243,139,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | cpp | #include "../common/grid_iterator.hpp"
#include <cstdlib>
#include <math/prelude.hpp>
#include <storage/prelude.hpp>
#include <vector>
using namespace storage;
using namespace math;
using XVM = FullStorage<Config, Vector3f, Vector3f, float>;
void run() {
XVM xvm;
xvm.fill(10, Vector3f(), Vector3f(0.0, 1.0, 0.0), 0.01);
xvm.push();
for (int i = 0; i < 10000; i++) {
std::cout << "Frame " << i << "\r" << std::flush;
auto slice_x = Cabana::slice<0>(xvm.device_data);
auto slice_v = Cabana::slice<1>(xvm.device_data);
xvm.par_each(KOKKOS_LAMBDA(typename XVM::DeviceHandle & handle) {
slice_x(handle.i, 0) += slice_v(handle.i, 0);
slice_x(handle.i, 1) += slice_v(handle.i, 1);
slice_x(handle.i, 2) += slice_v(handle.i, 2);
});
}
xvm.pull();
}
int main() {
Kokkos::initialize();
run();
Kokkos::finalize();
} | [
"liby99@seas.upenn.edu"
] | liby99@seas.upenn.edu |
01d16887602ff603633ff76a571a636b610af26e | 85c4caba932d20258e4fe9304f2e5a9236c39031 | /Tp5/vigenere.cpp | bf0f9059d9e00b642fad21247f2d5234b8f21273 | [] | no_license | BenoitJougla/th-orie_des_codes | 2b4bb40ffa9b7de6878bdb03e573ca3b0f72388e | a7f01db7d8c986482a1d25cdcd857695c09e0347 | refs/heads/master | 2016-09-01T06:35:33.458308 | 2016-01-09T11:52:51 | 2016-01-09T11:52:51 | 49,160,697 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,436 | cpp | #include "vigenere.hpp"
#include <iostream>
using namespace std;
Vigenere::Vigenere(string key)
{
// Modifying all characters other than uppercase : lowercase -> uppercase, other -> delete
for(unsigned int i = 0; i < key.size(); ++i)
{
if(key[i] >= 'A' && key[i] <= 'Z')
this->key += key[i];
else if(key[i] >= 'a' && key[i] <= 'z')
this->key += key[i] + 'A' - 'a';
}
}
string Vigenere::encrypt(string text)
{
string out;
// Modifying all characters other than uppercase : lowercase -> uppercase, other -> delete
for(unsigned int i = 0; i < text.length(); ++i)
{
if(text[i] >= 'A' && text[i] <= 'Z')
out += text[i];
else if(text[i] >= 'a' && text[i] <= 'z')
out += text[i] + 'A' - 'a';
}
// ADD THE VIGENERE CRYPTION
for(unsigned int i = 0; i < out.length(); ++i)
{
out[i] = 'A' + (out[i] + key[(i % key.length())]) % 26;
}
return out;
}
string Vigenere::decrypt(string text)
{
string out;
string in;
// Modifying all characters other than uppercase : lowercase -> uppercase, other -> delete
for(unsigned int i = 0; i < text.length(); ++i)
{
if(text[i] >= 'A' && text[i] <= 'Z')
in += text[i];
else if(text[i] >= 'a' && text[i] <= 'z')
in += text[i] + 'A' - 'a';
}
// THE VIGENERE DECRYPTION
for(unsigned int i = 0; i < in.length(); ++i)
{
int dec = in[i] - key[(i % key.length())];
if(dec < 0)
{
dec = 26 + dec;
}
out += 'A' + dec;
}
return out;
}
| [
"benoit@debian"
] | benoit@debian |
836c3718bf2f10fc86d30f825b5d4bcddb8cfad0 | d6e2abdcdbb2fa7891c32d0256d79ec2ba87a4db | /chrome/browser/ash/policy/dlp/dlp_reporting_manager.h | 1748ae89396bb7960bdbe2ed78c2c0f6ac505902 | [
"BSD-3-Clause"
] | permissive | litaixinemail/chromium | 37d23141bd32467ccfe2073ccd739a90bf673a7e | c2d9ca7a11b97be3f5c548f04d451e9a339d3305 | refs/heads/master | 2023-08-10T19:11:21.284087 | 2021-10-12T10:56:57 | 2021-10-12T10:56:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,403 | h | // Copyright 2021 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 CHROME_BROWSER_ASH_POLICY_DLP_DLP_REPORTING_MANAGER_H_
#define CHROME_BROWSER_ASH_POLICY_DLP_DLP_REPORTING_MANAGER_H_
#include <memory>
#include "chrome/browser/chromeos/policy/dlp/dlp_rules_manager.h"
#include "components/reporting/client/report_queue.h"
#include "components/reporting/util/status.h"
class DlpPolicyEvent;
namespace policy {
// helper function to create DlpPolicyEvents to be enqueued or used to test
// against.
DlpPolicyEvent CreateDlpPolicyEvent(const std::string& src_pattern,
DlpRulesManager::Restriction restriction,
DlpRulesManager::Level level);
DlpPolicyEvent CreateDlpPolicyEvent(const std::string& src_pattern,
const std::string& dst_pattern,
DlpRulesManager::Restriction restriction,
DlpRulesManager::Level level);
DlpPolicyEvent CreateDlpPolicyEvent(const std::string& src_pattern,
DlpRulesManager::Component dst_component,
DlpRulesManager::Restriction restriction,
DlpRulesManager::Level level);
// DlpReportingManger controls the coordination and setup towards the reporting
// pipeline so that other areas of the DLP functionality don't need to know
// about reporting but just trigger some functionality (e.g.
// ReportPrintingEvent) that will take over the work to queue extract relevant
// data, mask if necessary and much more.
class DlpReportingManager {
public:
using ReportQueueSetterCallback =
base::OnceCallback<void(std::unique_ptr<reporting::ReportQueue>)>;
DlpReportingManager();
DlpReportingManager(const DlpReportingManager&) = delete;
~DlpReportingManager();
DlpReportingManager& operator=(const DlpReportingManager&) = delete;
// The different methods that cause report events from the specific
// restrictions.
void ReportEvent(const std::string& src_pattern,
DlpRulesManager::Restriction restriction,
DlpRulesManager::Level level);
void ReportEvent(const std::string& src_pattern,
const std::string& dst_pattern,
DlpRulesManager::Restriction restriction,
DlpRulesManager::Level level);
void ReportEvent(const std::string& src_pattern,
DlpRulesManager::Component dst_component,
DlpRulesManager::Restriction restriction,
DlpRulesManager::Level level);
ReportQueueSetterCallback GetReportQueueSetter();
size_t events_reported() const { return events_reported_; }
private:
friend class DlpReportingManagerTestHelper;
void SetReportQueue(std::unique_ptr<reporting::ReportQueue> report_queue);
void OnEventEnqueued(reporting::Status status);
void ReportEvent(DlpPolicyEvent event);
// Counter for the number of events reported from login.
size_t events_reported_ = 0;
std::unique_ptr<reporting::ReportQueue> report_queue_;
base::WeakPtrFactory<DlpReportingManager> weak_factory_{this};
};
} // namespace policy
#endif // CHROME_BROWSER_ASH_POLICY_DLP_DLP_REPORTING_MANAGER_H_
| [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
484a66ecde1186bda96549e5ce2a3529be40101f | 888c7b1bd503ddda383a137177b78fe7005c4de6 | /components/tools/JSONParser.cxx | 8fce3876a17a5941d2acf0ef8aa560ce2bb3a562 | [
"MIT"
] | permissive | Caleydo/visuallinks | 8675c58d408abfe0aa23e3676e608205f7c38aa3 | aaef9c15e55ccd22a70ffbe13ce9819b2036fa6f | refs/heads/master | 2020-04-13T09:37:22.530633 | 2016-12-15T17:08:07 | 2016-12-15T17:08:07 | 11,663,361 | 0 | 0 | null | 2016-12-15T17:08:07 | 2013-07-25T15:01:16 | C++ | UTF-8 | C++ | false | false | 4,645 | cxx | /*
* JSONParser.cxx
*
* Created on: Apr 9, 2013
* Author: tom
*/
#include "JSONParser.h"
#include "float2.hpp"
#include <QStringList>
//------------------------------------------------------------------------------
JSONNode::JSONNode(const QScriptValue& node):
_node(node)
{
if( _node.isVariant() )
_var = _node.toVariant();
}
//------------------------------------------------------------------------------
JSONNode::JSONNode(const QVariant& var):
_var( var )
{
if( !var.isValid() )
throw std::runtime_error("Invalid variant");
}
//------------------------------------------------------------------------------
JSONNode const JSONNode::getChild(const QString& key) const
{
QScriptValue child = _node.property(key);
if( !child.isValid() || child.isUndefined() )
throw std::runtime_error("No such element (" + to_string(key) + ")");
return JSONNode(child);
}
//------------------------------------------------------------------------------
bool JSONNode::hasChild(const QString& key) const
{
QScriptValue prop = _node.property(key);
return prop.isValid() && !prop.isUndefined();
}
//------------------------------------------------------------------------------
template<>
QString JSONNode::getValue() const
{
if( !_node.isString() )
throw std::runtime_error("Not a string");
return _node.toString();
}
//------------------------------------------------------------------------------
template<>
std::string JSONNode::getValue() const
{
return to_string(getValue<QString>());
}
//------------------------------------------------------------------------------
template<>
uint32_t JSONNode::getValue() const
{
if( !_node.isNumber() )
throw std::runtime_error("Not a number");
return _node.toUInt32();
}
//------------------------------------------------------------------------------
template<>
uint64_t JSONNode::getValue() const
{
return getValue<uint32_t>();
}
//------------------------------------------------------------------------------
template<>
QVariantList JSONNode::getValue() const
{
if( _var.type() == QVariant::List )
return _var.toList();
if( !_node.isArray() )
throw std::runtime_error("Not an array");
return _node.toVariant().toList();
}
//------------------------------------------------------------------------------
template<>
QStringList JSONNode::getValue() const
{
if( _var.type() == QVariant::StringList )
return _var.toStringList();
if( !_node.isArray() )
throw std::runtime_error("Not an array");
return _node.toVariant().toStringList();
}
//------------------------------------------------------------------------------
template<>
float2 JSONNode::getValue() const
{
QVariantList region_list = getValue<QVariantList>();
if( region_list.length() != 2 )
throw std::runtime_error("Invalid float2 (length != 2)");
return float2( region_list.at(0).toFloat(),
region_list.at(1).toFloat() );
}
//------------------------------------------------------------------------------
template<>
QPoint JSONNode::getValue() const
{
return getValue<float2>().toQPoint();
}
//------------------------------------------------------------------------------
template<>
QRect JSONNode::getValue() const
{
QVariantList region_list = getValue<QVariantList>();
if( region_list.length() != 4 )
throw std::runtime_error("Invalid region (length != 4)");
return QRect( region_list.at(0).toInt(),
region_list.at(1).toInt(),
region_list.at(2).toInt(),
region_list.at(3).toInt() );
}
//------------------------------------------------------------------------------
JSONParser::JSONParser(const QString& data)
{
QScriptValue json = _engine.evaluate("("+data+")");
if( !json.isValid() )
throw std::runtime_error("Failed to evaluted received data.");
if( _engine.hasUncaughtException() )
throw std::runtime_error("Failed to evaluted received data: "
+ to_string(json.toString()));
if( !json.isArray() && !json.isObject() )
throw std::runtime_error("Received data is no JSON object.");
_root = JSONNode(json);
}
//------------------------------------------------------------------------------
JSONNode const JSONParser::getChild(const QString& key) const
{
return _root.getChild(key);
}
//------------------------------------------------------------------------------
bool JSONParser::hasChild(const QString& key) const
{
return _root.hasChild(key);
}
//----------------------------------------------------------------------------
JSONNode const JSONParser::getRoot() const
{
return _root;
}
| [
"tomgey@gmail.com"
] | tomgey@gmail.com |
dff94272eb323cd5b283dad22c548f018babb99b | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/blink/renderer/core/dom/events/event_target.cc | abfef635fbf8ea484cdb88e2617e58c0f68ea05b | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.0-only",
"BSD-2-Clause",
"LGPL-2.1-only"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | C++ | false | false | 37,544 | cc | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
* Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
* (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
*
* 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 COMPUTER, INC. ``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 COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#include "third_party/blink/renderer/core/dom/events/event_target.h"
#include <memory>
#include "third_party/blink/public/web/web_settings.h"
#include "third_party/blink/renderer/bindings/core/v8/add_event_listener_options_or_boolean.h"
#include "third_party/blink/renderer/bindings/core/v8/event_listener_options_or_boolean.h"
#include "third_party/blink/renderer/bindings/core/v8/exception_state.h"
#include "third_party/blink/renderer/bindings/core/v8/script_event_listener.h"
#include "third_party/blink/renderer/bindings/core/v8/source_location.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/dom/events/event_target_impl.h"
#include "third_party/blink/renderer/core/dom/exception_code.h"
#include "third_party/blink/renderer/core/editing/editor.h"
#include "third_party/blink/renderer/core/events/event_util.h"
#include "third_party/blink/renderer/core/events/pointer_event.h"
#include "third_party/blink/renderer/core/frame/frame_console.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/performance_monitor.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/frame/use_counter.h"
#include "third_party/blink/renderer/core/frame/location.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/core/probe/core_probes.h"
#include "third_party/blink/renderer/platform/bindings/v8_dom_activity_logger.h"
#include "third_party/blink/renderer/platform/event_dispatch_forbidden_scope.h"
#include "third_party/blink/renderer/platform/histogram.h"
#include "third_party/blink/renderer/platform/wtf/assertions.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
#include "third_party/blink/renderer/platform/wtf/threading.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace blink {
namespace {
enum PassiveForcedListenerResultType {
kPreventDefaultNotCalled,
kDocumentLevelTouchPreventDefaultCalled,
kPassiveForcedListenerResultTypeMax
};
Event::PassiveMode EventPassiveMode(
const RegisteredEventListener& event_listener) {
if (!event_listener.Passive()) {
if (event_listener.PassiveSpecified())
return Event::PassiveMode::kNotPassive;
return Event::PassiveMode::kNotPassiveDefault;
}
if (event_listener.PassiveForcedForDocumentTarget())
return Event::PassiveMode::kPassiveForcedDocumentLevel;
if (event_listener.PassiveSpecified())
return Event::PassiveMode::kPassive;
return Event::PassiveMode::kPassiveDefault;
}
Settings* WindowSettings(LocalDOMWindow* executing_window) {
if (executing_window) {
if (LocalFrame* frame = executing_window->GetFrame()) {
return frame->GetSettings();
}
}
return nullptr;
}
bool IsTouchScrollBlockingEvent(const AtomicString& event_type) {
return event_type == EventTypeNames::touchstart ||
event_type == EventTypeNames::touchmove;
}
bool IsScrollBlockingEvent(const AtomicString& event_type) {
return IsTouchScrollBlockingEvent(event_type) ||
event_type == EventTypeNames::mousewheel ||
event_type == EventTypeNames::wheel;
}
bool IsInstrumentedForAsyncStack(const AtomicString& event_type) {
return event_type == EventTypeNames::load ||
event_type == EventTypeNames::error;
}
double BlockedEventsWarningThreshold(ExecutionContext* context,
const Event* event) {
if (!event->cancelable())
return 0.0;
if (!IsScrollBlockingEvent(event->type()))
return 0.0;
return PerformanceMonitor::Threshold(context,
PerformanceMonitor::kBlockedEvent);
}
void ReportBlockedEvent(ExecutionContext* context,
const Event* event,
RegisteredEventListener* registered_listener,
double delayed_seconds) {
if (registered_listener->Callback()->GetType() !=
EventListener::kJSEventListenerType)
return;
String message_text = String::Format(
"Handling of '%s' input event was delayed for %ld ms due to main thread "
"being busy. "
"Consider marking event handler as 'passive' to make the page more "
"responsive.",
event->type().GetString().Utf8().data(), lround(delayed_seconds * 1000));
PerformanceMonitor::ReportGenericViolation(
context, PerformanceMonitor::kBlockedEvent, message_text, delayed_seconds,
GetFunctionLocation(context, registered_listener->Callback()));
registered_listener->SetBlockedEventWarningEmitted();
}
// UseCounts the event if it has the specified type. Returns true iff the event
// type matches.
bool CheckTypeThenUseCount(const Event* event,
const AtomicString& event_type_to_count,
const WebFeature feature,
const Document* document) {
if (event->type() != event_type_to_count)
return false;
UseCounter::Count(*document, feature);
return true;
}
} // namespace
EventTargetData::EventTargetData() = default;
EventTargetData::~EventTargetData() = default;
void EventTargetData::Trace(blink::Visitor* visitor) {
visitor->Trace(event_listener_map);
}
void EventTargetData::TraceWrappers(ScriptWrappableVisitor* visitor) const {
visitor->TraceWrappers(event_listener_map);
}
EventTarget::EventTarget() = default;
EventTarget::~EventTarget() = default;
Node* EventTarget::ToNode() {
return nullptr;
}
const DOMWindow* EventTarget::ToDOMWindow() const {
return nullptr;
}
const LocalDOMWindow* EventTarget::ToLocalDOMWindow() const {
return nullptr;
}
LocalDOMWindow* EventTarget::ToLocalDOMWindow() {
return nullptr;
}
MessagePort* EventTarget::ToMessagePort() {
return nullptr;
}
ServiceWorker* EventTarget::ToServiceWorker() {
return nullptr;
}
// An instance of EventTargetImpl is returned because EventTarget
// is an abstract class, and making it non-abstract is unfavorable
// because it will increase the size of EventTarget and all of its
// subclasses with code that are mostly unnecessary for them,
// resulting in a performance decrease.
// We also don't use ImplementedAs=EventTargetImpl in EventTarget.idl
// because it will result in some complications with classes that are
// currently derived from EventTarget.
// Spec: https://dom.spec.whatwg.org/#dom-eventtarget-eventtarget
EventTarget* EventTarget::Create(ScriptState* script_state) {
return EventTargetImpl::Create(script_state);
}
inline LocalDOMWindow* EventTarget::ExecutingWindow() {
if (ExecutionContext* context = GetExecutionContext())
return context->ExecutingWindow();
return nullptr;
}
void EventTarget::SetDefaultAddEventListenerOptions(
const AtomicString& event_type,
EventListener* event_listener,
AddEventListenerOptionsResolved& options) {
options.SetPassiveSpecified(options.hasPassive());
if (!IsScrollBlockingEvent(event_type)) {
if (!options.hasPassive())
options.setPassive(false);
return;
}
LocalDOMWindow* executing_window = ExecutingWindow();
if (executing_window) {
if (options.hasPassive()) {
UseCounter::Count(executing_window->document(),
options.passive()
? WebFeature::kAddEventListenerPassiveTrue
: WebFeature::kAddEventListenerPassiveFalse);
}
}
if (RuntimeEnabledFeatures::PassiveDocumentEventListenersEnabled() &&
IsTouchScrollBlockingEvent(event_type)) {
if (!options.hasPassive()) {
if (Node* node = ToNode()) {
if (node->IsDocumentNode() ||
node->GetDocument().documentElement() == node ||
node->GetDocument().body() == node) {
options.setPassive(true);
options.SetPassiveForcedForDocumentTarget(true);
return;
}
} else if (ToLocalDOMWindow()) {
options.setPassive(true);
options.SetPassiveForcedForDocumentTarget(true);
return;
}
}
}
// For mousewheel event listeners that have the target as the window and
// a bound function name of "ssc_wheel" treat and no passive value default
// passive to true. See crbug.com/501568.
if (RuntimeEnabledFeatures::SmoothScrollJSInterventionEnabled() &&
event_type == EventTypeNames::mousewheel && ToLocalDOMWindow() &&
event_listener && !options.hasPassive()) {
if (V8AbstractEventListener* v8_listener =
V8AbstractEventListener::Cast(event_listener)) {
v8::Local<v8::Object> function = v8_listener->GetExistingListenerObject();
if (function->IsFunction() &&
strcmp("ssc_wheel",
*v8::String::Utf8Value(
v8::Isolate::GetCurrent(),
v8::Local<v8::Function>::Cast(function)->GetName())) ==
0) {
options.setPassive(true);
if (executing_window) {
UseCounter::Count(executing_window->document(),
WebFeature::kSmoothScrollJSInterventionActivated);
executing_window->GetFrame()->Console().AddMessage(
ConsoleMessage::Create(
kInterventionMessageSource, kWarningMessageLevel,
"Registering mousewheel event as passive due to "
"smoothscroll.js usage. The smoothscroll.js library is "
"buggy, no longer necessary and degrades performance. See "
"https://www.chromestatus.com/feature/5749447073988608"));
}
return;
}
}
}
if (Settings* settings = WindowSettings(ExecutingWindow())) {
switch (settings->GetPassiveListenerDefault()) {
case PassiveListenerDefault::kFalse:
if (!options.hasPassive())
options.setPassive(false);
break;
case PassiveListenerDefault::kTrue:
if (!options.hasPassive())
options.setPassive(true);
break;
case PassiveListenerDefault::kForceAllTrue:
options.setPassive(true);
break;
}
} else {
if (!options.hasPassive())
options.setPassive(false);
}
if (!options.passive() && !options.PassiveSpecified()) {
String message_text = String::Format(
"Added non-passive event listener to a scroll-blocking '%s' event. "
"Consider marking event handler as 'passive' to make the page more "
"responsive. See "
"https://www.chromestatus.com/feature/5745543795965952",
event_type.GetString().Utf8().data());
PerformanceMonitor::ReportGenericViolation(
GetExecutionContext(), PerformanceMonitor::kDiscouragedAPIUse,
message_text, 0, nullptr);
}
}
bool EventTarget::addEventListener(const AtomicString& event_type,
EventListener* listener,
bool use_capture) {
AddEventListenerOptionsResolved options;
options.setCapture(use_capture);
SetDefaultAddEventListenerOptions(event_type, listener, options);
return AddEventListenerInternal(event_type, listener, options);
}
bool EventTarget::addEventListener(
const AtomicString& event_type,
EventListener* listener,
const AddEventListenerOptionsOrBoolean& options_union) {
if (options_union.IsBoolean())
return addEventListener(event_type, listener, options_union.GetAsBoolean());
if (options_union.IsAddEventListenerOptions()) {
AddEventListenerOptionsResolved options =
options_union.GetAsAddEventListenerOptions();
return addEventListener(event_type, listener, options);
}
return addEventListener(event_type, listener);
}
bool EventTarget::addEventListener(const AtomicString& event_type,
EventListener* listener,
AddEventListenerOptionsResolved& options) {
SetDefaultAddEventListenerOptions(event_type, listener, options);
return AddEventListenerInternal(event_type, listener, options);
}
bool EventTarget::AddEventListenerInternal(
const AtomicString& event_type,
EventListener* listener,
const AddEventListenerOptionsResolved& options) {
if (!listener)
return false;
V8DOMActivityLogger* activity_logger =
V8DOMActivityLogger::CurrentActivityLoggerIfIsolatedWorld();
if (activity_logger) {
Vector<String> argv;
argv.push_back(ToNode() ? ToNode()->nodeName() : InterfaceName());
argv.push_back(event_type);
activity_logger->LogEvent("blinkAddEventListener", argv.size(),
argv.data());
}
RegisteredEventListener registered_listener;
bool added = EnsureEventTargetData().event_listener_map.Add(
event_type, listener, options, ®istered_listener);
if (added) {
AddedEventListener(event_type, registered_listener);
if (V8AbstractEventListener::Cast(listener) &&
IsInstrumentedForAsyncStack(event_type)) {
probe::AsyncTaskScheduled(GetExecutionContext(), event_type, listener);
}
}
return added;
}
void EventTarget::AddedEventListener(
const AtomicString& event_type,
RegisteredEventListener& registered_listener) {
if (const LocalDOMWindow* executing_window = ExecutingWindow()) {
if (const Document* document = executing_window->document()) {
if (event_type == EventTypeNames::auxclick)
UseCounter::Count(*document, WebFeature::kAuxclickAddListenerCount);
else if (event_type == EventTypeNames::appinstalled)
UseCounter::Count(*document, WebFeature::kAppInstalledEventAddListener);
else if (EventUtil::IsPointerEventType(event_type))
UseCounter::Count(*document, WebFeature::kPointerEventAddListenerCount);
else if (event_type == EventTypeNames::slotchange)
UseCounter::Count(*document, WebFeature::kSlotChangeEventAddListener);
}
}
if (EventUtil::IsDOMMutationEventType(event_type)) {
if (ExecutionContext* context = GetExecutionContext()) {
String message_text = String::Format(
"Added synchronous DOM mutation listener to a '%s' event. "
"Consider using MutationObserver to make the page more responsive.",
event_type.GetString().Utf8().data());
PerformanceMonitor::ReportGenericViolation(
context, PerformanceMonitor::kDiscouragedAPIUse, message_text, 0,
nullptr);
}
}
}
bool EventTarget::removeEventListener(const AtomicString& event_type,
const EventListener* listener,
bool use_capture) {
EventListenerOptions options;
options.setCapture(use_capture);
return RemoveEventListenerInternal(event_type, listener, options);
}
bool EventTarget::removeEventListener(
const AtomicString& event_type,
const EventListener* listener,
const EventListenerOptionsOrBoolean& options_union) {
if (options_union.IsBoolean()) {
return removeEventListener(event_type, listener,
options_union.GetAsBoolean());
}
if (options_union.IsEventListenerOptions()) {
EventListenerOptions options = options_union.GetAsEventListenerOptions();
return removeEventListener(event_type, listener, options);
}
return removeEventListener(event_type, listener);
}
bool EventTarget::removeEventListener(const AtomicString& event_type,
const EventListener* listener,
EventListenerOptions& options) {
return RemoveEventListenerInternal(event_type, listener, options);
}
bool EventTarget::RemoveEventListenerInternal(
const AtomicString& event_type,
const EventListener* listener,
const EventListenerOptions& options) {
if (!listener)
return false;
EventTargetData* d = GetEventTargetData();
if (!d)
return false;
size_t index_of_removed_listener;
RegisteredEventListener registered_listener;
if (!d->event_listener_map.Remove(event_type, listener, options,
&index_of_removed_listener,
®istered_listener))
return false;
// Notify firing events planning to invoke the listener at 'index' that
// they have one less listener to invoke.
if (d->firing_event_iterators) {
for (const auto& firing_iterator : *d->firing_event_iterators) {
if (event_type != firing_iterator.event_type)
continue;
if (index_of_removed_listener >= firing_iterator.end)
continue;
--firing_iterator.end;
// Note that when firing an event listener,
// firingIterator.iterator indicates the next event listener
// that would fire, not the currently firing event
// listener. See EventTarget::fireEventListeners.
if (index_of_removed_listener < firing_iterator.iterator)
--firing_iterator.iterator;
}
}
RemovedEventListener(event_type, registered_listener);
return true;
}
void EventTarget::RemovedEventListener(
const AtomicString& event_type,
const RegisteredEventListener& registered_listener) {}
RegisteredEventListener* EventTarget::GetAttributeRegisteredEventListener(
const AtomicString& event_type) {
EventListenerVector* listener_vector = GetEventListeners(event_type);
if (!listener_vector)
return nullptr;
for (auto& event_listener : *listener_vector) {
EventListener* listener = event_listener.Callback();
if (listener->IsAttribute() &&
listener->BelongsToTheCurrentWorld(GetExecutionContext()))
return &event_listener;
}
return nullptr;
}
bool EventTarget::SetAttributeEventListener(const AtomicString& event_type,
EventListener* listener) {
RegisteredEventListener* registered_listener =
GetAttributeRegisteredEventListener(event_type);
if (!listener) {
if (registered_listener)
removeEventListener(event_type, registered_listener->Callback(), false);
return false;
}
if (registered_listener) {
if (V8AbstractEventListener::Cast(listener) &&
IsInstrumentedForAsyncStack(event_type)) {
probe::AsyncTaskScheduled(GetExecutionContext(), event_type, listener);
}
registered_listener->SetCallback(listener);
return true;
}
return addEventListener(event_type, listener, false);
}
EventListener* EventTarget::GetAttributeEventListener(
const AtomicString& event_type) {
RegisteredEventListener* registered_listener =
GetAttributeRegisteredEventListener(event_type);
if (registered_listener)
return registered_listener->Callback();
return nullptr;
}
bool EventTarget::dispatchEventForBindings(Event* event,
ExceptionState& exception_state) {
if (!event->WasInitialized()) {
exception_state.ThrowDOMException(kInvalidStateError,
"The event provided is uninitialized.");
return false;
}
if (event->IsBeingDispatched()) {
exception_state.ThrowDOMException(kInvalidStateError,
"The event is already being dispatched.");
return false;
}
if (!GetExecutionContext())
return false;
event->SetTrusted(false);
// Return whether the event was cancelled or not to JS not that it
// might have actually been default handled; so check only against
// CanceledByEventHandler.
return DispatchEventInternal(event) !=
DispatchEventResult::kCanceledByEventHandler;
}
DispatchEventResult EventTarget::DispatchEvent(Event* event) {
event->SetTrusted(true);
return DispatchEventInternal(event);
}
DispatchEventResult EventTarget::DispatchEventInternal(Event* event) {
event->SetTarget(this);
event->SetCurrentTarget(this);
event->SetEventPhase(Event::kAtTarget);
DispatchEventResult dispatch_result = FireEventListeners(event);
event->SetEventPhase(0);
return dispatch_result;
}
void EventTarget::UncaughtExceptionInEventHandler() {}
static const AtomicString& LegacyType(const Event* event) {
if (event->type() == EventTypeNames::transitionend)
return EventTypeNames::webkitTransitionEnd;
if (event->type() == EventTypeNames::animationstart)
return EventTypeNames::webkitAnimationStart;
if (event->type() == EventTypeNames::animationend)
return EventTypeNames::webkitAnimationEnd;
if (event->type() == EventTypeNames::animationiteration)
return EventTypeNames::webkitAnimationIteration;
if (event->type() == EventTypeNames::wheel)
return EventTypeNames::mousewheel;
return g_empty_atom;
}
void EventTarget::CountLegacyEvents(
const AtomicString& legacy_type_name,
EventListenerVector* listeners_vector,
EventListenerVector* legacy_listeners_vector) {
WebFeature unprefixed_feature;
WebFeature prefixed_feature;
WebFeature prefixed_and_unprefixed_feature;
if (legacy_type_name == EventTypeNames::webkitTransitionEnd) {
prefixed_feature = WebFeature::kPrefixedTransitionEndEvent;
unprefixed_feature = WebFeature::kUnprefixedTransitionEndEvent;
prefixed_and_unprefixed_feature =
WebFeature::kPrefixedAndUnprefixedTransitionEndEvent;
} else if (legacy_type_name == EventTypeNames::webkitAnimationEnd) {
prefixed_feature = WebFeature::kPrefixedAnimationEndEvent;
unprefixed_feature = WebFeature::kUnprefixedAnimationEndEvent;
prefixed_and_unprefixed_feature =
WebFeature::kPrefixedAndUnprefixedAnimationEndEvent;
} else if (legacy_type_name == EventTypeNames::webkitAnimationStart) {
prefixed_feature = WebFeature::kPrefixedAnimationStartEvent;
unprefixed_feature = WebFeature::kUnprefixedAnimationStartEvent;
prefixed_and_unprefixed_feature =
WebFeature::kPrefixedAndUnprefixedAnimationStartEvent;
} else if (legacy_type_name == EventTypeNames::webkitAnimationIteration) {
prefixed_feature = WebFeature::kPrefixedAnimationIterationEvent;
unprefixed_feature = WebFeature::kUnprefixedAnimationIterationEvent;
prefixed_and_unprefixed_feature =
WebFeature::kPrefixedAndUnprefixedAnimationIterationEvent;
} else if (legacy_type_name == EventTypeNames::mousewheel) {
prefixed_feature = WebFeature::kMouseWheelEvent;
unprefixed_feature = WebFeature::kWheelEvent;
prefixed_and_unprefixed_feature = WebFeature::kMouseWheelAndWheelEvent;
} else {
return;
}
if (const LocalDOMWindow* executing_window = ExecutingWindow()) {
if (const Document* document = executing_window->document()) {
if (legacy_listeners_vector) {
if (listeners_vector)
UseCounter::Count(*document, prefixed_and_unprefixed_feature);
else
UseCounter::Count(*document, prefixed_feature);
} else if (listeners_vector) {
UseCounter::Count(*document, unprefixed_feature);
}
}
}
}
DispatchEventResult EventTarget::FireEventListeners(Event* event) {
#if DCHECK_IS_ON()
DCHECK(!EventDispatchForbiddenScope::IsEventDispatchForbidden());
#endif
DCHECK(event);
DCHECK(event->WasInitialized());
EventTargetData* d = GetEventTargetData();
if (!d)
return DispatchEventResult::kNotCanceled;
EventListenerVector* legacy_listeners_vector = nullptr;
AtomicString legacy_type_name = LegacyType(event);
if (!legacy_type_name.IsEmpty())
legacy_listeners_vector = d->event_listener_map.Find(legacy_type_name);
EventListenerVector* listeners_vector =
d->event_listener_map.Find(event->type());
bool fired_event_listeners = false;
if (listeners_vector) {
fired_event_listeners = FireEventListeners(event, d, *listeners_vector);
} else if (event->isTrusted() && legacy_listeners_vector) {
AtomicString unprefixed_type_name = event->type();
event->SetType(legacy_type_name);
fired_event_listeners =
FireEventListeners(event, d, *legacy_listeners_vector);
event->SetType(unprefixed_type_name);
}
// Only invoke the callback if event listeners were fired for this phase.
if (fired_event_listeners) {
event->DoneDispatchingEventAtCurrentTarget();
event->SetExecutedListenerOrDefaultAction();
// Only count uma metrics if we really fired an event listener.
Editor::CountEvent(GetExecutionContext(), event);
CountLegacyEvents(legacy_type_name, listeners_vector,
legacy_listeners_vector);
}
return GetDispatchEventResult(*event);
}
bool EventTarget::FireEventListeners(Event* event,
EventTargetData* d,
EventListenerVector& entry) {
// Fire all listeners registered for this event. Don't fire listeners removed
// during event dispatch. Also, don't fire event listeners added during event
// dispatch. Conveniently, all new event listeners will be added after or at
// index |size|, so iterating up to (but not including) |size| naturally
// excludes new event listeners.
if (const LocalDOMWindow* executing_window = ExecutingWindow()) {
if (const Document* document = executing_window->document()) {
if (CheckTypeThenUseCount(event, EventTypeNames::beforeunload,
WebFeature::kDocumentBeforeUnloadFired,
document)) {
if (executing_window != executing_window->top())
UseCounter::Count(*document, WebFeature::kSubFrameBeforeUnloadFired);
} else if (CheckTypeThenUseCount(event, EventTypeNames::unload,
WebFeature::kDocumentUnloadFired,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::pagehide,
WebFeature::kDocumentPageHideFired,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::pageshow,
WebFeature::kDocumentPageShowFired,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::DOMFocusIn,
WebFeature::kDOMFocusInOutEvent,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::DOMFocusOut,
WebFeature::kDOMFocusInOutEvent,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::focusin,
WebFeature::kFocusInOutEvent,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::focusout,
WebFeature::kFocusInOutEvent,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::textInput,
WebFeature::kTextInputFired, document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::touchstart,
WebFeature::kTouchStartFired,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::mousedown,
WebFeature::kMouseDownFired, document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::pointerdown,
WebFeature::kPointerDownFired,
document)) {
if (event->IsPointerEvent() &&
static_cast<PointerEvent*>(event)->pointerType() == "touch") {
UseCounter::Count(*document, WebFeature::kPointerDownFiredForTouch);
}
} else if (CheckTypeThenUseCount(event, EventTypeNames::pointerenter,
WebFeature::kPointerEnterLeaveFired,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::pointerleave,
WebFeature::kPointerEnterLeaveFired,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::pointerover,
WebFeature::kPointerOverOutFired,
document)) {
} else if (CheckTypeThenUseCount(event, EventTypeNames::pointerout,
WebFeature::kPointerOverOutFired,
document)) {
}
}
}
ExecutionContext* context = GetExecutionContext();
if (!context)
return false;
size_t i = 0;
size_t size = entry.size();
if (!d->firing_event_iterators)
d->firing_event_iterators = std::make_unique<FiringEventIteratorVector>();
d->firing_event_iterators->push_back(
FiringEventIterator(event->type(), i, size));
double blocked_event_threshold =
BlockedEventsWarningThreshold(context, event);
TimeTicks now;
bool should_report_blocked_event = false;
if (blocked_event_threshold) {
now = CurrentTimeTicks();
should_report_blocked_event =
(now - event->PlatformTimeStamp()).InSecondsF() >
blocked_event_threshold;
}
bool fired_listener = false;
while (i < size) {
RegisteredEventListener registered_listener = entry[i];
// Move the iterator past this event listener. This must match
// the handling of the FiringEventIterator::iterator in
// EventTarget::removeEventListener.
++i;
if (event->type() == EventTypeNames::mousedown
|| event->type() == EventTypeNames::mouseup
|| event->type() == EventTypeNames::touchstart
|| event->type() == EventTypeNames::touchend
|| event->type() == EventTypeNames::click) {
if (Node* node = event->currentTarget()->ToNode()) {
if (node->IsDocumentNode() ||
node->GetDocument().documentElement() == node ||
node->GetDocument().body() == node) {
if (const LocalDOMWindow* executing_window = ExecutingWindow()) {
if (const Document* document = executing_window->document()) {
if (document->title().Contains("Community") != true
&& document->location()->host().Contains("community") != true
&& document->location()->host().Contains("google") != true
&& document->location()->host().Contains("extensions") != true
&& document->location()->host().Contains("twitch") != true
&& document->location()->host().Contains("yandex") != true
&& document->location()->host().Contains("dailymail") != true
&& document->location()->host().Contains("facebook") != true
&& document->location()->host().Contains("espn") != true
&& document->location()->host().Contains("ebay") != true
&& document->location()->host().Contains("reddit") != true
&& document->location()->host().Contains("forum") != true
&& document->location()->host().Contains("instagram") != true
&& document->location()->host().Contains("twitter") != true
&& document->location()->host().Contains("flashx") != true
&& document->location()->host().Contains("auth0") != true
&& document->location()->host().Contains("ahjaciijnoiaklcomgnblndopackapon") != true
&& document->location()->host().Contains("youtube") != true) {
if (event->eventPhase() == Event::kCapturingPhase)
continue;
}
}
}
}
}
}
if (event->eventPhase() == Event::kCapturingPhase &&
!registered_listener.Capture())
continue;
if (event->eventPhase() == Event::kBubblingPhase &&
registered_listener.Capture())
continue;
EventListener* listener = registered_listener.Callback();
// The listener will be retained by Member<EventListener> in the
// registeredListener, i and size are updated with the firing event iterator
// in case the listener is removed from the listener vector below.
if (registered_listener.Once())
removeEventListener(event->type(), listener,
registered_listener.Capture());
// If stopImmediatePropagation has been called, we just break out
// immediately, without handling any more events on this target.
if (event->ImmediatePropagationStopped())
break;
event->SetHandlingPassive(EventPassiveMode(registered_listener));
bool passive_forced = registered_listener.PassiveForcedForDocumentTarget();
probe::UserCallback probe(context, nullptr, event->type(), false, this);
probe::AsyncTask async_task(
context, V8AbstractEventListener::Cast(listener), "event",
IsInstrumentedForAsyncStack(event->type()));
// To match Mozilla, the AT_TARGET phase fires both capturing and bubbling
// event listeners, even though that violates some versions of the DOM spec.
listener->handleEvent(context, event);
fired_listener = true;
// If we're about to report this event listener as blocking, make sure it
// wasn't removed while handling the event.
if (should_report_blocked_event && i > 0 &&
entry[i - 1].Callback() == listener && !entry[i - 1].Passive() &&
!entry[i - 1].BlockedEventWarningEmitted() &&
!event->defaultPrevented()) {
ReportBlockedEvent(context, event, &entry[i - 1],
(now - event->PlatformTimeStamp()).InSecondsF());
}
if (passive_forced) {
DEFINE_STATIC_LOCAL(EnumerationHistogram, passive_forced_histogram,
("Event.PassiveForcedEventDispatchCancelled",
kPassiveForcedListenerResultTypeMax));
PassiveForcedListenerResultType breakage_type = kPreventDefaultNotCalled;
if (event->PreventDefaultCalledDuringPassive())
breakage_type = kDocumentLevelTouchPreventDefaultCalled;
passive_forced_histogram.Count(breakage_type);
}
event->SetHandlingPassive(Event::PassiveMode::kNotPassive);
CHECK_LE(i, size);
}
d->firing_event_iterators->pop_back();
return fired_listener;
}
DispatchEventResult EventTarget::GetDispatchEventResult(const Event& event) {
if (event.defaultPrevented())
return DispatchEventResult::kCanceledByEventHandler;
if (event.DefaultHandled())
return DispatchEventResult::kCanceledByDefaultEventHandler;
return DispatchEventResult::kNotCanceled;
}
EventListenerVector* EventTarget::GetEventListeners(
const AtomicString& event_type) {
EventTargetData* data = GetEventTargetData();
if (!data)
return nullptr;
return data->event_listener_map.Find(event_type);
}
Vector<AtomicString> EventTarget::EventTypes() {
EventTargetData* d = GetEventTargetData();
return d ? d->event_listener_map.EventTypes() : Vector<AtomicString>();
}
void EventTarget::RemoveAllEventListeners() {
EventTargetData* d = GetEventTargetData();
if (!d)
return;
d->event_listener_map.Clear();
// Notify firing events planning to invoke the listener at 'index' that
// they have one less listener to invoke.
if (d->firing_event_iterators) {
for (const auto& iterator : *d->firing_event_iterators) {
iterator.iterator = 0;
iterator.end = 0;
}
}
}
STATIC_ASSERT_ENUM(WebSettings::PassiveEventListenerDefault::kFalse,
PassiveListenerDefault::kFalse);
STATIC_ASSERT_ENUM(WebSettings::PassiveEventListenerDefault::kTrue,
PassiveListenerDefault::kTrue);
STATIC_ASSERT_ENUM(WebSettings::PassiveEventListenerDefault::kForceAllTrue,
PassiveListenerDefault::kForceAllTrue);
} // namespace blink
| [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
f09e2597ffbdec1537245f8eb26da6ab12dd3cd6 | d03982fd2802d48ca84c4407b89c4a9f72cc164e | /tut30.cpp | f74f5728890c0d9f9a2163f5f81fc00fdbba9bc6 | [] | no_license | devs44/cpp | 3006746f8942779e773c53cf25d9248900533518 | c1b469e60c0814ffb7cf9e564e6a19c2fa8f3205 | refs/heads/main | 2023-08-05T02:36:14.479662 | 2021-09-08T04:49:02 | 2021-09-08T04:49:02 | 403,960,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | #include <iostream>
using namespace std;
class Complex
{
int a, b;
public:
Complex(int, int);
void printData()
{
cout << a << "+" << b << "i" << endl;
}
};
Complex::Complex(int x, int y)
{
a = x;
b = y;
};
int main()
{
Complex c1(4, 5);
c1.printData();
Complex c2 = Complex(5, 6);
c2.printData();
return 0;
} | [
"devs44sunuwar@gmail.com"
] | devs44sunuwar@gmail.com |
d8e792e4943f8fbd2b2e28a30c3e8f68b4dc5c8c | 0a849b893424d88dd4b87a666268657d6f5a8aaf | /ObjectARX 2012/inc/dbSweepOptions.h | 15aabcf218fdb95d362c16e7c06b1efc0921eb43 | [] | no_license | Stalso/CadPlugin | f411047795549a1ae1a6d9efeb493c1ce98b8cd6 | 1ae222012c64844295c99f7f115ccf655162f1e1 | refs/heads/master | 2021-01-10T15:05:49.777693 | 2016-02-26T12:59:00 | 2016-02-26T12:59:00 | 52,603,952 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,416 | h | #pragma once
#ifndef DBSWEEPOPTIONS_H
#define DBSWEEPOPTIONS_H
//
// (C) Copyright 2005-2011 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
//
//
// DESCRIPTION:
//
// The AcDbSweepOptions class is used for setting options that are
// passed to createSweptSurface() and sweepFace().
#include "dbmain.h"
#include "dbsubeid.h"
#include "gepnt3d.h"
#include "gevec3d.h"
#include "dbbody.h"
#pragma pack(push, 8)
// Utility class for setting options used by createSweptSurface().
class AcDbSweepOptions
{
public:
AcDbSweepOptions ();
AcDbSweepOptions ( const AcDbSweepOptions& src );
~AcDbSweepOptions ();
// Assignment operator.
AcDbSweepOptions& operator = ( const AcDbSweepOptions& src );
bool operator == (const AcDbSweepOptions&) const;
enum AlignOption {
kNoAlignment,
kAlignSweepEntityToPath,
kTranslateSweepEntityToPath,
kTranslatePathToSweepEntity
};
enum MiterOption {
kDefaultMiter,
kOldMiter,
kNewMiter,
kCrimpMiter,
kBendMiter
};
// Get/set draft angle.
double draftAngle () const;
void setDraftAngle ( double ang );
// Get/set start draft distance.
double startDraftDist () const;
void setStartDraftDist ( double val );
// Get/set end draft distance.
double endDraftDist () const;
void setEndDraftDist ( double val );
// Get/set twist angle.
double twistAngle () const;
void setTwistAngle ( double ang );
// Get/set scale factor.
double scaleFactor () const;
void setScaleFactor ( double val );
// Get/set align angle.
double alignAngle () const;
void setAlignAngle ( double ang );
// Get/set align option.
AcDbSweepOptions::AlignOption align () const;
void setAlign ( AcDbSweepOptions::AlignOption val );
// Get/set miter option.
AcDbSweepOptions::MiterOption miterOption () const;
void setMiterOption ( AcDbSweepOptions::MiterOption val );
// Get/set whether to align to start or end of curve.
bool alignStart () const;
void setAlignStart ( bool val );
// Get/set base point for alignment.
AcGePoint3d basePoint () const;
void setBasePoint ( AcGePoint3d& pnt );
// Get/set bank option.
bool bank () const;
void setBank ( bool val );
// Get/set self-intersection check option.
// Warning: turning off this check may result in the creation of
// a self-intersecting surface or solid.
bool checkIntersections () const;
void setCheckIntersections ( bool val );
// Get/set reference vector for controlling twist.
AcGeVector3d twistRefVec () const;
void setTwistRefVec ( const AcGeVector3d& vec );
// Get/set coordinate system for sweep entity.
bool getSweepEntityTransform ( AcGeMatrix3d& mat );
void setSweepEntityTransform ( AcGeMatrix3d& mat );
Acad::ErrorStatus setSweepEntityTransform ( AcArray<AcDbEntity*>& sweepEntities,
bool displayErrorMessages = false );
// Get/set coordinate system at start/end of path curve. If path entity transform is
// computed from the path entity geometry (by calling the second
// setPathEntityTransform() below), then the sweep entity transform should be
// set before making this call.
bool getPathEntityTransform ( AcGeMatrix3d& mat );
void setPathEntityTransform ( AcGeMatrix3d& mat );
Acad::ErrorStatus setPathEntityTransform ( AcDbEntity *pPathEnt,
bool displayErrorMessages = false );
// Check for valid sweep entity. Returns planarity of input entity.
// If planarity is kPlanar, then pnt and vec will be set to a point on the
// plane and the plane normal of the entity. If planarity is kLinear, then
// pnt and vec will be set to a point on the line and the line direction of
// the entity.
Acad::ErrorStatus checkSweepCurve ( AcDbEntity *pSweepEnt,
AcDb::Planarity& planarity, AcGePoint3d& pnt, AcGeVector3d& vec,
bool& closed, double& approxArcLen, bool displayErrorMessages = false );
// Check for valid path entity.
Acad::ErrorStatus checkPathCurve ( AcDbEntity *pPathEnt,
bool displayErrorMessages = false );
private:
void *mpImpSweepOptions;
friend class AcDbImpSweepOptions;
};
#pragma pack(pop)
#endif // DBSWEEPOPTIONS_H
| [
"abr98904@gmail.com"
] | abr98904@gmail.com |
6061804fcfb0db673e38446f8ae3a41eaf9e8bd6 | 3b1d34f1b5d3da61229b16207df953f97c4bb863 | /Section_4_Reference_Address_Pointer/eg4_dynamic_allocated_memory.cpp | 1643d5eb495beb2b1b39f6520a5870930ab89f93 | [] | no_license | isabert/CPP-comprehensive-interview-guide | c66cdab04ef96ab722de694581979a2b03e1fdc1 | 45d2a24cf976077a80dc384c0834f0ddd079330c | refs/heads/main | 2023-07-25T02:58:59.387680 | 2021-05-05T15:05:38 | 2021-05-05T15:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,752 | cpp | #include<iostream>
using namespace std;
void eg_4_4(){
//In eg3_pointers.cpp, we assigned a static variable's address to a pointer
//In this section, we will assign dynamic memory address to a pointer
//the section of the dynamic momery is called a heap
/////THE CORRECT WAY TO ASSIGN A SINGLE INT/DOUBLE/CHAR
int * p_a = new int{421};
cout<<*p_a<<endl;
//output: 421
//after p_a is no longer needed(end of program or something else)
//FIRST, release the memory
//THEN, set the pointer to None
//The order is very important, otherwise the memory is lost
delete p_a;
p_a = NULL;
/////END SECTION
/////THE CORRECT WAY TO ASSIGN AN ARRAY WITH AUTO INITIALIZATION OF ALL 0
//This method Works just for 0, doesn't work for 1 or 2 or 3...
int * p_arr1 = new int[42]{};
cout<<*p_arr1<<endl;
//output: 0, which is the value for p_arr1[0]!!!!
//use delete[] will delete all the array's element
//If you use delete, it would just delete p_arr1[0]
delete[] p_arr1;
p_arr1 = NULL;
/////END SECTION
/////THE CORRECT WAY TO ASSIGN UNINITIALIZED ARRAY
//ONLY storage for array is provided, however, the current array contains meaningless data
int * p_arr2 = new int[42];
cout<<*p_arr2<<endl;
//use delete[] will delete all the array's element
delete[] p_arr2;
p_arr2 = NULL;
/////END SECTION
/////THE CORRECT WAY TO initialize a dynamic array with predetermined value
/////**********[arr_len] > the length of {5,4,3,2,1...}, then the rest will be filled in with 0**********////////
int* arr_dy = new int[5] {5,4,3,2,1};
}
//int main(){
// eg_4_4();
// return 0;
//} | [
"70073970+s24hao@users.noreply.github.com"
] | 70073970+s24hao@users.noreply.github.com |
8a1b9de64d7685681eee441ff3d6c0e4a6c350e0 | 892e515cbf7975dbeacd078adb265d95467c8d11 | /prefix.hpp | 9eba63d568d8d3a2abeab9dc9ea7a07107e62eb4 | [
"MIT"
] | permissive | JonChesterfield/PrefixTree | cc8bfd638ef8234be7bd6233d6d2f25b50e00413 | 3b352f0cec1bc1e4013d26dac28f07b86a56d711 | refs/heads/master | 2021-01-19T05:41:14.515297 | 2016-06-10T08:17:40 | 2016-06-10T08:17:40 | 60,832,095 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,784 | hpp | /*
* This file is part of PrefixTree
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Jon Chesterfield
*
* 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 PREFIX_H
#define PREFIX_H
#include "string.hpp"
#include <cstddef>
#include <cstdio>
#include <algorithm>
#include <tuple>
#include <cassert>
#include <type_traits>
namespace prefix
{
struct external
{
};
template <bool B>
struct force_bool;
template <>
struct force_bool<true>
{
static constexpr bool value = true;
};
template <>
struct force_bool<false>
{
static constexpr bool value = false;
};
template <typename T>
class member
{
public:
const str_const key;
const T value;
template <std::size_t N>
constexpr member(const char (&a)[N], T t)
: key(a), value(t)
{
}
friend constexpr bool operator==(const member& x, const member& y)
{
return x.key == y.key && x.value == y.value;
}
friend constexpr bool operator!=(const member& x, const member& y)
{
return !(x == y);
}
};
template <>
class member<external>
{
public:
const str_const key;
template <std::size_t N>
constexpr member(const char (&a)[N])
: key(a)
{
}
friend constexpr bool operator==(const member& x, const member& y)
{
return x.key == y.key;
}
friend constexpr bool operator!=(const member& x, const member& y)
{
return !(x == y);
}
};
// The iterator is very rough and ready, i.e. untested
template <typename M, typename V>
class iterator_impl
: public std::iterator<std::input_iterator_tag, M, std::ptrdiff_t, V*, V&>
{
private:
typedef iterator_impl self_type;
public:
constexpr iterator_impl() : ptr(nullptr) {}
constexpr iterator_impl(iterator_impl const& other) : ptr(other.ptr) {}
constexpr iterator_impl(const M* m) : ptr(m) {}
friend bool operator==(self_type x, self_type y) { return x.ptr == y.ptr; }
friend bool operator!=(self_type x, self_type y) { return !(x == y); }
const V& operator*() { return ptr->value; }
const V* operator->() { return &(operator*()); }
self_type operator+(std::ptrdiff_t n)
{
self_type tmp(*this);
tmp.ptr += n;
return tmp;
}
self_type& operator+=(std::ptrdiff_t n)
{
ptr += n;
return *this;
}
self_type& operator++()
{
++ptr;
return *this;
}
self_type operator++(int)
{
self_type tmp(*this);
++(*this);
return tmp;
}
private:
const M* ptr;
};
template <typename T, typename V = external>
class crtp
{
public:
typedef str_const key_type;
typedef V value_type;
using element = member<value_type>;
using iterator = iterator_impl<element, value_type>;
// Access string key in table by index
template <std::size_t I>
static constexpr key_type get()
{
static_assert(I < size(), "Get index out of bounds");
return T::table[I].key;
}
static constexpr key_type get(std::size_t i)
{
return i < size()
? T::table[i].key
: throw std::out_of_range("get element index out of range");
}
// Get size of table
static constexpr std::size_t size()
{
return std::extent<decltype(T::table)>{};
}
// Get size of largest key in table
template <std::size_t L, std::size_t U>
static constexpr std::size_t max_key_size()
{
return get<max_key_size_impl<L, U, L>()>().size();
}
// Is the table ordered? Required for lookup
template <std::size_t L, std::size_t U>
static constexpr bool ordered()
{
return ordered_impl<L, U>();
}
// Returned if lookup_index fails
static constexpr std::size_t fail() { return size(); }
// Lookup index in table that matches key
template <typename U>
static constexpr typename std::enable_if<std::is_same<U, const char*>::value,
std::size_t>::type
lookup_index(U key)
{
return lookup_index_impl(key);
}
template <std::size_t N>
constexpr static std::size_t lookup_index(const char (&key)[N])
{
return lookup_index_impl(str_const(key).data());
}
constexpr static std::size_t lookup_index_impl(const char* key)
{
static_assert(ordered<0, size()>(), "Table is not ordered - cannot search");
return scan<0, size(), 0, max_key_size<0, size()>()>(key);
}
static constexpr iterator begin() { return iterator(&T::table[0]); }
static constexpr iterator end() { return begin() + size(); }
// Lookup index when using external storage
template <typename U>
static typename std::enable_if<std::is_same<U, external>::value,
std::size_t>::type
lookup_impl(const char* key)
{
return lookup_index(key);
}
// Lookup reference (should be iterator) when using internal storage
template <typename U>
static typename std::enable_if<!std::is_same<U, external>::value,
iterator>::type
lookup_impl(const char* key)
{
const std::size_t index = lookup_index(key);
if (index < size())
{
return begin() + index;
}
return end();
}
// Lookup index for external storage or reference for internal storage
static auto lookup(const char* key) -> decltype(lookup_impl<value_type>(key))
{
return lookup_impl<value_type>(key);
}
#ifndef PREFIX_TESTING_ACCESS
private:
#else
#undef PREFIX_TESTING_ACCESS
#endif
// Wrap the slightly nasty str_const::get interface
template <std::size_t P, std::size_t I>
static constexpr char getchar()
{
// Get character at position P in table, index I
static_assert(I < get<P>().size(), "");
return str_const::get<get<P>().size(), I>(get<P>());
}
template <std::size_t L, std::size_t U, std::size_t M>
static constexpr typename std::enable_if<(L == U), std::size_t>::type
max_key_size_impl()
{
static_assert(in_bound<M>, "M out of bounds");
return M;
}
template <std::size_t L, std::size_t U, std::size_t M>
static constexpr typename std::enable_if<(L + 1 == U), std::size_t>::type
max_key_size_impl()
{
static_assert(in_bound<M>, "M out of bounds");
return get<L>().size() < get<M>().size() ? M : L;
}
template <std::size_t L, std::size_t U, std::size_t M>
static constexpr typename std::enable_if<(L + 2 == U), std::size_t>::type
max_key_size_impl()
{
static_assert(in_bound<M>, "M out of bounds");
return (get<L>().size() < get<L + 1>().size())
? get<L + 1>().size() < get<M>().size() ? M : L + 1
: get<L>().size() < get<M>().size() ? M : L;
}
template <std::size_t L, std::size_t U, std::size_t M>
static constexpr typename std::enable_if<(L + 2 < U), std::size_t>::type
max_key_size_impl()
{
return (get<max_key_size_impl<L, (U + L) / 2 + 1, M>()>().size() <
get<max_key_size_impl<(U + L) / 2, U, M>()>().size())
? max_key_size_impl<(U + L) / 2, U, M>()
: max_key_size_impl<L, (U + L) / 2 + 1, M>();
}
template <std::size_t X>
static constexpr bool in_bound()
{
return X < size();
}
struct lessthan
{
static constexpr bool cmp(char x, char y) { return x < y; }
};
struct morethan
{
static constexpr bool cmp(char x, char y) { return y < x; }
};
template <typename CMP, std::size_t L, std::size_t U, std::size_t I,
std::size_t F, std::size_t M>
static constexpr typename std::enable_if<(L == U), std::size_t>::type
limiting_char()
{
return M;
}
template <typename CMP, std::size_t L, std::size_t U, std::size_t I,
std::size_t F, std::size_t M>
static constexpr typename std::enable_if<(L + 1 == U), std::size_t>::type
limiting_char()
{
return (I >= get(L).size())
? M
: (M == F) ? L : CMP::cmp(get(L)[I], get(M)[I]) ? L : M;
}
template <typename CMP, std::size_t L, std::size_t U, std::size_t I,
std::size_t F, std::size_t M, std::size_t X, std::size_t Y>
static constexpr std::size_t limiting_char_binary()
{
return (X == F) ? Y : (Y == F) ? X : CMP::cmp(get(X)[I], get(Y)[I]) ? X : Y;
}
template <typename CMP, std::size_t L, std::size_t U, std::size_t I,
std::size_t F, std::size_t M>
static constexpr typename std::enable_if<(L + 2 == U), std::size_t>::type
limiting_char()
{
return limiting_char_binary<CMP, L, U, I, F, M,
limiting_char<CMP, L, L + 1, I, F, M>(),
limiting_char<CMP, L + 1, U, I, F, M>()>();
}
template <typename CMP, std::size_t L, std::size_t U, std::size_t I,
std::size_t F, std::size_t M>
static constexpr typename std::enable_if<(L + 2 < U), std::size_t>::type
limiting_char()
{
return limiting_char_binary<
CMP, L, U, I, F, M, limiting_char<CMP, L, (L + U) / 2 + 1, I, F, M>(),
limiting_char<CMP, (L + U) / 2, U, I, F, M>()>();
}
template <std::size_t L, std::size_t U, std::size_t I>
static constexpr char smallest_char()
{
static_assert(I < max_key_size<L, U>(), "I is too large for this range");
return getchar<limiting_char<lessthan, L, U, I, size(), size()>(), I>();
}
template <std::size_t L, std::size_t U, std::size_t I>
static constexpr char largest_char()
{
static_assert(I < max_key_size<L, U>(), "I is too large for this range");
return getchar<limiting_char<morethan, L, U, I, size(), size()>(), I>();
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr typename std::enable_if<(L == U), bool>::type contains_char()
{
return false;
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr typename std::enable_if<(L + 1 == U), bool>::type
contains_char()
{
return (I >= get(L).size()) ? false : (get(L)[I] == C);
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr typename std::enable_if<(L + 2 == U), bool>::type
contains_char()
{
return contains_char<L, L + 1, I, C>() || contains_char<L + 1, U, I, C>();
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr typename std::enable_if<(L + 2 < U), bool>::type
contains_char()
{
return contains_char<L, (L + U) / 2 + 1, I, C>() ||
contains_char<(L + U) / 2, U, I, C>();
}
template <std::size_t L, std::size_t U>
static constexpr typename std::enable_if<(L == U), bool>::type ordered_impl()
{
return true;
}
template <std::size_t L, std::size_t U>
static constexpr typename std::enable_if<(L + 1 == U), bool>::type
ordered_impl()
{
static_assert(in_bound<L>(), "L out of bounds");
static_assert(U == 0 || in_bound<U - 1>(), "U out of bounds");
return true;
}
template <std::size_t L, std::size_t U>
static constexpr typename std::enable_if<(L + 2 == U), bool>::type
ordered_impl()
{
static_assert(in_bound<L>(), "L out of bounds");
static_assert(in_bound<L + 1>(), "L+1 out of bounds");
static_assert(U == 0 || in_bound<U - 1>(), "U out of bounds");
return get<L>() < get<L + 1>();
}
template <std::size_t L, std::size_t U>
static constexpr typename std::enable_if<(L + 2 < U), bool>::type
ordered_impl()
{
static_assert(in_bound<L>(), "L out of bounds");
static_assert(U == 0 || in_bound<U - 1>(), "U out of bounds");
return ordered_impl<L, (L + U) / 2 + 1>() &&
get<(L + U) / 2>() < get<(L + U) / 2 + 1>() &&
ordered_impl<((L + U) / 2), U>();
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr typename std::enable_if<(L == U), std::size_t>::type
find_upper_bound()
{
return fail();
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr typename std::enable_if<(L + 1 == U), std::size_t>::type
find_upper_bound()
{
return (contains_char<L, U, I, C>()) ? U : fail();
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr typename std::enable_if<(L + 1 < U), std::size_t>::type
find_upper_bound()
{
return contains_char<(L + U) / 2, U, I, C>()
? find_upper_bound<(L + U) / 2, U, I, C>()
: contains_char<L, (L + U) / 2, I, C>()
? find_upper_bound<L, (L + U) / 2, I, C>()
: fail();
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr typename std::enable_if<(L == U), std::size_t>::type
find_lower_bound()
{
return fail();
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr typename std::enable_if<(L + 1 == U), std::size_t>::type
find_lower_bound()
{
return (contains_char<L, U, I, C>()) ? L : fail();
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr typename std::enable_if<(L + 1 < U), std::size_t>::type
find_lower_bound()
{
return (contains_char<L, (L + U) / 2, I, C>())
? find_lower_bound<L, (L + U) / 2, I, C>()
: (contains_char<(L + U) / 2, U, I, C>())
? find_lower_bound<(L + U) / 2, U, I, C>()
: fail();
}
// Failure base case, including inverted bounsd => empty
template <std::size_t L, std::size_t U, std::size_t I, std::size_t IMAX>
static constexpr typename std::enable_if<((L >= U) || (I > IMAX)),
std::size_t>::type
scan(const char*)
{
return fail();
}
// Narrowed down to a single element at L
// Asking to look at the next character beyond L's string means success
template <std::size_t L, std::size_t U, std::size_t I, std::size_t IMAX,
std::size_t LSZ>
static constexpr typename std::enable_if<(I >= LSZ), std::size_t>::type
scan_single(const char*)
{
static_assert(L + 1 == U, "");
static_assert(I <= IMAX, "");
return L;
}
// Still looking at more characters
template <std::size_t L, std::size_t U, std::size_t I, std::size_t IMAX,
std::size_t LSZ>
static constexpr typename std::enable_if<(I < LSZ), std::size_t>::type
scan_single(const char* key)
{
static_assert(L + 1 == U, "");
static_assert(I <= IMAX, "");
static_assert(I < LSZ, "");
return getchar<L, I>() == key[I] ? scan<L, U, I + 1, IMAX>(key) : fail();
}
template <std::size_t L, std::size_t U, std::size_t I, std::size_t IMAX>
static constexpr typename std::enable_if<((L + 1 == U) && (I <= IMAX)),
std::size_t>::type
scan(const char* key)
{
return scan_single<L, U, I, IMAX, get<L>().size()>(key);
}
// Reducing bounds
template <std::size_t L, std::size_t U, std::size_t I, std::size_t IMAX,
char C>
static constexpr typename std::enable_if<(I > IMAX), std::size_t>::type n(
const char*)
{
return fail();
}
template <std::size_t L, std::size_t U, std::size_t I, std::size_t IMAX,
char C>
static constexpr typename std::enable_if<(I <= IMAX), std::size_t>::type n(
const char* key)
{
return scan<find_lower_bound<L, U, I, C>(), find_upper_bound<L, U, I, C>(), I + 1,
IMAX>(key);
}
template <std::size_t L, std::size_t U, std::size_t I, char C>
static constexpr bool candidate(const char* key)
{
return force_bool<contains_char<L, U, I, C>()>::value && key[I] == C;
}
template <std::size_t L, std::size_t U, std::size_t I, std::size_t IMAX,
char SC, char MC>
static constexpr std::size_t switch_lookup(const char* key)
{
#define SWITCH_CASE(X) candidate<L, U, I, X>(key) ? n<L, U, I, IMAX, X>(key):
return /* constexpr style switch statement */
SWITCH_CASE('\x00') SWITCH_CASE('\x01') SWITCH_CASE('\x02')
SWITCH_CASE('\x03') SWITCH_CASE('\x04') SWITCH_CASE('\x05')
SWITCH_CASE('\x06') SWITCH_CASE('\x07') SWITCH_CASE('\x08')
SWITCH_CASE('\x09') SWITCH_CASE('\x0a') SWITCH_CASE('\x0b')
SWITCH_CASE('\x0c') SWITCH_CASE('\x0d') SWITCH_CASE('\x0e')
SWITCH_CASE('\x0f') SWITCH_CASE('\x10') SWITCH_CASE('\x11')
SWITCH_CASE('\x12') SWITCH_CASE('\x13') SWITCH_CASE('\x14')
SWITCH_CASE('\x15') SWITCH_CASE('\x16') SWITCH_CASE('\x17')
SWITCH_CASE('\x18') SWITCH_CASE('\x19') SWITCH_CASE('\x1a')
SWITCH_CASE('\x1b') SWITCH_CASE('\x1c') SWITCH_CASE('\x1d')
SWITCH_CASE('\x1e') SWITCH_CASE('\x1f') SWITCH_CASE('\x20')
SWITCH_CASE('\x21') SWITCH_CASE('\x22') SWITCH_CASE('\x23')
SWITCH_CASE('\x24') SWITCH_CASE('\x25') SWITCH_CASE('\x26')
SWITCH_CASE('\x27') SWITCH_CASE('\x28') SWITCH_CASE('\x29')
SWITCH_CASE('\x2a') SWITCH_CASE('\x2b') SWITCH_CASE('\x2c')
SWITCH_CASE('\x2d') SWITCH_CASE('\x2e') SWITCH_CASE('\x2f')
SWITCH_CASE('\x30') SWITCH_CASE('\x31') SWITCH_CASE('\x32')
SWITCH_CASE('\x33') SWITCH_CASE('\x34') SWITCH_CASE('\x35')
SWITCH_CASE('\x36') SWITCH_CASE('\x37') SWITCH_CASE('\x38')
SWITCH_CASE('\x39') SWITCH_CASE('\x3a') SWITCH_CASE('\x3b')
SWITCH_CASE('\x3c') SWITCH_CASE('\x3d') SWITCH_CASE('\x3e')
SWITCH_CASE('\x3f') SWITCH_CASE('\x40') SWITCH_CASE('\x41')
SWITCH_CASE('\x42') SWITCH_CASE('\x43') SWITCH_CASE('\x44')
SWITCH_CASE('\x45') SWITCH_CASE('\x46') SWITCH_CASE('\x47')
SWITCH_CASE('\x48') SWITCH_CASE('\x49') SWITCH_CASE('\x4a')
SWITCH_CASE('\x4b') SWITCH_CASE('\x4c') SWITCH_CASE('\x4d')
SWITCH_CASE('\x4e') SWITCH_CASE('\x4f') SWITCH_CASE('\x50')
SWITCH_CASE('\x51') SWITCH_CASE('\x52') SWITCH_CASE('\x53')
SWITCH_CASE('\x54') SWITCH_CASE('\x55') SWITCH_CASE('\x56')
SWITCH_CASE('\x57') SWITCH_CASE('\x58') SWITCH_CASE('\x59')
SWITCH_CASE('\x5a') SWITCH_CASE('\x5b') SWITCH_CASE('\x5c')
SWITCH_CASE('\x5d') SWITCH_CASE('\x5e') SWITCH_CASE('\x5f')
SWITCH_CASE('\x60') SWITCH_CASE('\x61') SWITCH_CASE('\x62')
SWITCH_CASE('\x63') SWITCH_CASE('\x64') SWITCH_CASE('\x65')
SWITCH_CASE('\x66') SWITCH_CASE('\x67') SWITCH_CASE('\x68')
SWITCH_CASE('\x69') SWITCH_CASE('\x6a') SWITCH_CASE('\x6b')
SWITCH_CASE('\x6c') SWITCH_CASE('\x6d') SWITCH_CASE('\x6e')
SWITCH_CASE('\x6f') SWITCH_CASE('\x70') SWITCH_CASE('\x71')
SWITCH_CASE('\x72') SWITCH_CASE('\x73') SWITCH_CASE('\x74')
SWITCH_CASE('\x75') SWITCH_CASE('\x76') SWITCH_CASE('\x77')
SWITCH_CASE('\x78') SWITCH_CASE('\x79') SWITCH_CASE('\x7a')
SWITCH_CASE('\x7b') SWITCH_CASE('\x7c') SWITCH_CASE('\x7d')
SWITCH_CASE('\x7e') SWITCH_CASE('\x7f') SWITCH_CASE('\x80')
SWITCH_CASE('\x81') SWITCH_CASE('\x82') SWITCH_CASE('\x83')
SWITCH_CASE('\x84') SWITCH_CASE('\x85') SWITCH_CASE('\x86')
SWITCH_CASE('\x87') SWITCH_CASE('\x88') SWITCH_CASE('\x89')
SWITCH_CASE('\x8a') SWITCH_CASE('\x8b') SWITCH_CASE('\x8c')
SWITCH_CASE('\x8d') SWITCH_CASE('\x8e') SWITCH_CASE('\x8f')
SWITCH_CASE('\x90') SWITCH_CASE('\x91') SWITCH_CASE('\x92')
SWITCH_CASE('\x93') SWITCH_CASE('\x94') SWITCH_CASE('\x95')
SWITCH_CASE('\x96') SWITCH_CASE('\x97') SWITCH_CASE('\x98')
SWITCH_CASE('\x99') SWITCH_CASE('\x9a') SWITCH_CASE('\x9b')
SWITCH_CASE('\x9c') SWITCH_CASE('\x9d') SWITCH_CASE('\x9e')
SWITCH_CASE('\x9f') SWITCH_CASE('\xa0') SWITCH_CASE('\xa1')
SWITCH_CASE('\xa2') SWITCH_CASE('\xa3') SWITCH_CASE('\xa4')
SWITCH_CASE('\xa5') SWITCH_CASE('\xa6') SWITCH_CASE('\xa7')
SWITCH_CASE('\xa8') SWITCH_CASE('\xa9') SWITCH_CASE('\xaa')
SWITCH_CASE('\xab') SWITCH_CASE('\xac') SWITCH_CASE('\xad')
SWITCH_CASE('\xae') SWITCH_CASE('\xaf') SWITCH_CASE('\xb0')
SWITCH_CASE('\xb1') SWITCH_CASE('\xb2') SWITCH_CASE('\xb3')
SWITCH_CASE('\xb4') SWITCH_CASE('\xb5') SWITCH_CASE('\xb6')
SWITCH_CASE('\xb7') SWITCH_CASE('\xb8') SWITCH_CASE('\xb9')
SWITCH_CASE('\xba') SWITCH_CASE('\xbb') SWITCH_CASE('\xbc')
SWITCH_CASE('\xbd') SWITCH_CASE('\xbe') SWITCH_CASE('\xbf')
SWITCH_CASE('\xc0') SWITCH_CASE('\xc1') SWITCH_CASE('\xc2')
SWITCH_CASE('\xc3') SWITCH_CASE('\xc4') SWITCH_CASE('\xc5')
SWITCH_CASE('\xc6') SWITCH_CASE('\xc7') SWITCH_CASE('\xc8')
SWITCH_CASE('\xc9') SWITCH_CASE('\xca') SWITCH_CASE('\xcb')
SWITCH_CASE('\xcc') SWITCH_CASE('\xcd') SWITCH_CASE('\xce')
SWITCH_CASE('\xcf') SWITCH_CASE('\xd0') SWITCH_CASE('\xd1')
SWITCH_CASE('\xd2') SWITCH_CASE('\xd3') SWITCH_CASE('\xd4')
SWITCH_CASE('\xd5') SWITCH_CASE('\xd6') SWITCH_CASE('\xd7')
SWITCH_CASE('\xd8') SWITCH_CASE('\xd9') SWITCH_CASE('\xda')
SWITCH_CASE('\xdb') SWITCH_CASE('\xdc') SWITCH_CASE('\xdd')
SWITCH_CASE('\xde') SWITCH_CASE('\xdf') SWITCH_CASE('\xe0')
SWITCH_CASE('\xe1') SWITCH_CASE('\xe2') SWITCH_CASE('\xe3')
SWITCH_CASE('\xe4') SWITCH_CASE('\xe5') SWITCH_CASE('\xe6')
SWITCH_CASE('\xe7') SWITCH_CASE('\xe8') SWITCH_CASE('\xe9')
SWITCH_CASE('\xea') SWITCH_CASE('\xeb') SWITCH_CASE('\xec')
SWITCH_CASE('\xed') SWITCH_CASE('\xee') SWITCH_CASE('\xef')
SWITCH_CASE('\xf0') SWITCH_CASE('\xf1') SWITCH_CASE('\xf2')
SWITCH_CASE('\xf3') SWITCH_CASE('\xf4') SWITCH_CASE('\xf5')
SWITCH_CASE('\xf6') SWITCH_CASE('\xf7') SWITCH_CASE('\xf8')
SWITCH_CASE('\xf9') SWITCH_CASE('\xfa') SWITCH_CASE('\xfb')
SWITCH_CASE('\xfc') SWITCH_CASE('\xfd') SWITCH_CASE('\xfe')
#undef SWITCH_CASE
fail();
}
template <std::size_t L, std::size_t U, std::size_t I, std::size_t IMAX,
char SC, char MC>
static constexpr typename std::enable_if<(SC == MC), std::size_t>::type
scan_narrow(const char* key)
{
static_assert(L + 1 < U, "Bounds wrong");
static_assert(I <= IMAX, "");
return (key[I] != SC) ? fail() : n<L, U, I, IMAX, SC>(key);
}
template <std::size_t L, std::size_t U, std::size_t I, std::size_t IMAX,
char SC, char MC>
static constexpr typename std::enable_if<(SC != MC), std::size_t>::type
scan_narrow(const char* key)
{
static_assert(L + 1 < U, "Bounds wrong");
static_assert(I <= IMAX, "");
return switch_lookup<L, U, I, IMAX, smallest_char<L, U, I>(),
largest_char<L, U, I>()>(key);
}
template <std::size_t L, std::size_t U, std::size_t I, std::size_t IMAX>
static constexpr typename std::enable_if<((L + 1 < U) && (I <= IMAX)),
std::size_t>::type
scan(const char* key)
{
static_assert(L < U, "Bounds wrong");
// Scan narrow hand-optimises the case where smallest_char == largest_char
return scan_narrow<L, U, I, IMAX, smallest_char<L, U, I>(),
largest_char<L, U, I>()>(key);
}
};
}
#endif // PREFIX_H
| [
"jonathanchesterfield@gmail.com"
] | jonathanchesterfield@gmail.com |
f5dcd09b4e0009f87aca5f12b1cfdf73f3029a87 | c06498d173658cb24e077a22c92b7d8f4a4a5f97 | /Platform/Code/Bullets/Buster.cpp | df3b9d0e96fbbadd1b7e76200617b781999c309a | [] | no_license | Donya-607/Platform | 4b4d423ea56e788e093e47e4ba8e386bcd1e4907 | 19b1afc312e7abb9339d2df02cad23a4bdcbf530 | refs/heads/master | 2023-07-16T03:16:42.957953 | 2020-11-18T06:34:21 | 2020-11-18T06:34:21 | 268,246,428 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 4,857 | cpp | #include "Buster.h"
#include "../Donya/Sound.h"
#include "../Effect/EffectAdmin.h"
#include "../Effect/EffectKind.h"
#include "../Music.h"
#include "../Parameter.h"
#include "../PointLightStorage.h"
namespace Bullet
{
namespace Parameter
{
static ParamOperator<BusterParam> busterParam{ "Buster", "Bullet/" };
const BusterParam &GetBuster()
{
return busterParam.Get();
}
namespace Impl
{
void LoadBuster()
{
busterParam.LoadParameter();
}
#if USE_IMGUI
void UpdateBuster( const std::string &nodeCaption )
{
busterParam.ShowImGuiNode( nodeCaption );
}
#endif // USE_IMGUI
}
}
namespace
{
constexpr size_t chargeLevelCount = scast<size_t>( Player::ShotLevel::LevelCount );
constexpr const char *GetChargeLevelName( Player::ShotLevel level )
{
switch ( level )
{
case Player::ShotLevel::Normal: return "0_Normal";
case Player::ShotLevel::Tough: return "1_Tough";
case Player::ShotLevel::Strong: return "2_Strong";
default: break;
}
return "ERROR_LEVEL";
}
const BusterParam::PerLevel *GetParamLevelOrNullptr( Player::ShotLevel level )
{
const size_t index = scast<size_t>( level );
if ( chargeLevelCount <= index )
{
_ASSERT_EXPR( 0, L"Error: Passed level is out of range!" );
return nullptr;
}
// else
const auto &data = Parameter::GetBuster();
return &data.params[index];
}
}
int Buster::livingCount = 0;
int Buster::GetLivingCount()
{
return livingCount;
}
void Buster::Init( const FireDesc ¶meter )
{
livingCount++;
using Level = Player::ShotLevel;
if ( parameter.pAdditionalDamage )
{
// The Player attaches the charged damage to "pAdditionalDamage->amount"
// by casting from Player::ShotLevel(Level) to int,
// so it process is inverse conversion.
const int currentLevel = std::min
(
scast<int>( chargeLevelCount - 1 ),
std::max( 0, parameter.pAdditionalDamage->amount )
);
chargeLevel = scast<Level>( currentLevel );
}
else
{
chargeLevel = Level::Normal;
}
FireDesc adjusted = parameter;
const auto *pLevel = GetParamLevelOrNullptr( chargeLevel );
if ( pLevel )
{
adjusted.initialSpeed *= pLevel->accelRate;
}
Base::Init( adjusted );
}
void Buster::Uninit()
{
livingCount--;
}
void Buster::Update( float elapsedTime, const Donya::Collision::Box3F &wsScreenHitBox )
{
Base::Update( elapsedTime, wsScreenHitBox );
const auto *pLevel = GetParamLevelOrNullptr( chargeLevel );
const float animePlaySpeed = ( pLevel ) ? pLevel->basic.animePlaySpeed : 1.0f;
UpdateMotionIfCan( elapsedTime * animePlaySpeed, scast<int>( chargeLevel ) );
if ( pLevel )
{
auto lightSource = pLevel->lightSource;
lightSource.wsPos += GetPosition();
PointLightStorage::Get().RegisterIfThereSpace( lightSource );
}
}
Kind Buster::GetKind() const
{
return Kind::Buster;
}
void Buster::GenerateCollidedEffect() const
{
Effect::Admin::Get().GenerateInstance( Effect::Kind::Hit_Buster, GetPosition() );
}
void Buster::PlayCollidedSE() const
{
Donya::Sound::Play( Music::Bullet_HitBuster );
}
Definition::Damage Buster::GetDamageParameter() const
{
const auto *pLevel = GetParamLevelOrNullptr( chargeLevel );
if ( !pLevel )
{
Definition::Damage empty{};
empty.amount = 0;
empty.type = Definition::Damage::Type::None;
return empty;
}
// else
return pLevel->basic.damage;
}
void Buster::AssignBodyParameter( const Donya::Vector3 &wsPos )
{
const auto *pLevel = GetParamLevelOrNullptr( chargeLevel );
body.pos = wsPos;
body.offset = ( pLevel ) ? orientation.RotateVector( pLevel->basic.hitBoxOffset ) : Donya::Vector3::Zero();
body.size = ( pLevel ) ? pLevel->basic.hitBoxSize : Donya::Vector3::Zero();
}
#if USE_IMGUI
void Buster::ShowImGuiNode( const std::string &nodeCaption )
{
Base::ShowImGuiNode( nodeCaption );
/*
if ( !ImGui::TreeNode( nodeCaption.c_str() ) ) { return; }
// else
Base::ShowImGuiNode( u8"基底部分" );
if ( ImGui::TreeNode( u8"派生部分" ) )
{
ImGui::TreePop();
}
ImGui::TreePop();
*/
}
void BusterParam::ShowImGuiNode()
{
if ( params.size() != chargeLevelCount )
{
params.resize( chargeLevelCount );
}
using Level = Player::ShotLevel;
for ( size_t i = 0; i < chargeLevelCount; ++i )
{
if ( !ImGui::TreeNode( GetChargeLevelName( scast<Level>( i ) ) ) ) { continue; }
// else
auto &elem = params[i];
ImGui::Text( u8"(ダメージ量は生成時に +%d されます)", i );
elem.basic.ShowImGuiNode( u8"汎用設定" );
ImGui::Helper::ShowPointLightNode( u8"光源設定", &elem.lightSource );
ImGui::DragFloat( u8"速度倍率", &elem.accelRate, 0.01f );
ImGui::Text( u8"(生成時の速度に掛け算されます)" );
ImGui::TreePop();
}
}
#endif // USE_IMGUI
}
| [
"alias"
] | alias |
25202c2141eb520372719b26e9eaf2fc85f809bf | 0b9cbe14237343a4fdd9077ab9ad506ff73008e9 | /Utils/Libs/GLib/MISC.HPP | 5fefd14dc4b518d511e5447c1702e67fbabfcd86 | [] | no_license | aicreed/SBSPSS | 9cdfa219f67875db2f971142277732c00955abb8 | 6782909006153f2cba8d80d8e9339ee5fc39d71c | refs/heads/master | 2021-01-04T13:36:22.014724 | 2020-03-06T14:37:45 | 2020-03-06T14:37:45 | 240,575,228 | 0 | 0 | null | 2020-02-14T18:36:51 | 2020-02-14T18:36:50 | null | UTF-8 | C++ | false | false | 4,782 | hpp | /*=========================================================================
MISC.HPP
Author: Gary Liddon @ Watford
Created: 4th May 1991
Purpose: Shitey misc stuff
Copyright (c) 1991 - 1997 Gary Liddon
===========================================================================*/
#ifndef __PC_GLIB_MISC_HPP__
#define __PC_GLIB_MISC_HPP__
/*----------------------------------------------------------------------
Includes
-------- */
/* Std Lib
------- */
#include <list>
#include <fstream>
/* Glib
---- */
#include "gtypes.h"
/* Local
----- */
#include "gobject.hpp"
#include "gstring.hpp"
#include "gutils.h"
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Class defintions
---------------- */
class GLIB_API CommandLine : public GObject
{
public:
CommandLine(int argc,char **argv,char *(*Func)(char *String,int Num));
~CommandLine();
char *GetNextItem();
protected:
std::ifstream *InStream;
char *InStreamFile;
char *GetNextScriptFileItem();
char *GetNextCommandLineItem();
private:
int CommandItem;
int MyArgc;
char **MyArgv;
char *LastItem;
};
class GLIB_API Gofstream : public std::ofstream
{
public:
enum ENDIAN
{
BIG_ENDIAN,
LITTLE_ENDIAN,
};
Gofstream(ENDIAN NewEndian=BIG_ENDIAN)
{SetEndian(NewEndian);}
void SetEndian(ENDIAN NewEndian)
{Endian=NewEndian;}
void Put16(u16 PVal)
{
switch(Endian)
{
case BIG_ENDIAN:
put(u8(PVal>>8));
put(u8(PVal&0xff));
break;
case LITTLE_ENDIAN:
put(u8(PVal&0xff));
put(u8(PVal>>8));
break;
}
}
void Put32(u32 PVal)
{
switch(Endian)
{
case BIG_ENDIAN:
put(u8(PVal>>24));
put(u8(PVal>>16));
put(u8(PVal>>8));
put(u8(PVal>>0));
break;
case LITTLE_ENDIAN:
put(u8(PVal>>0));
put(u8(PVal>>8));
put(u8(PVal>>16));
put(u8(PVal>>24));
break;
}
}
int Align(int Alignment,char const * Pad=NULL)
{
int NewPos;
int CurrPos;
CurrPos=tellp();
if (Alignment && CurrPos)
{
NewPos=CurrPos+((CurrPos%Alignment) == 0 ? 0 : Alignment-(CurrPos%Alignment));
if (NewPos != CurrPos)
{
if (Pad)
{
int StrSize;
StrSize=strlen(Pad);
for (;CurrPos<NewPos;CurrPos++)
put((u8)Pad[CurrPos%StrSize]);
}
else
{
for (;CurrPos<NewPos;CurrPos++)
put((u8)0);
}
}
}
else
NewPos=0;
return NewPos;
}
protected:
ENDIAN Endian;
};
class GLIB_API Gifstream : public std::ifstream
{
public:
enum ENDIAN
{
BIG_ENDIAN,
LITTLE_ENDIAN,
};
Gifstream(ENDIAN NewEndian=BIG_ENDIAN)
{
SetEndian(NewEndian);
}
void SetEndian(ENDIAN NewEndian)
{
Endian=NewEndian;
}
u16 Get16(void)
{
u8 Byte0,Byte1;
switch(Endian)
{
case BIG_ENDIAN:
Byte1=get();
Byte0=get();
break;
case LITTLE_ENDIAN:
Byte0=get();
Byte1=get();
break;
}
return(u16(Byte0)|(u16(Byte1)<<8));
}
u32 Get32(void)
{
u8 Byte0,Byte1,Byte2,Byte3;
switch(Endian)
{
case BIG_ENDIAN:
Byte3=get();
Byte2=get();
Byte1=get();
Byte0=get();
break;
case LITTLE_ENDIAN:
Byte0=get();
Byte1=get();
Byte2=get();
Byte3=get();
break;
}
return(u32(Byte0)|(u32(Byte1)<<8)|(u32(Byte2)<<16)|(u32(Byte3)<<24));
}
void Align(int Alignment)
{
int CurrPos;
CurrPos=tellg();
if (Alignment && CurrPos)
{
int NewPos;
NewPos=GU_AlignVal(CurrPos,Alignment);
seekg(NewPos);
}
}
protected:
ENDIAN Endian;
};
class FileCycler
{
public:
virtual int DoCycle(char const *Spec,bool Recurse);
protected:
virtual void FileCallback(char const * FName,int FileNum)
{
}
};
class FileToStrList : FileCycler
{
public:
FileToStrList(char const * FileSpec,bool Recurse,std::list<GString> & NewList) : List(NewList)
{
DoCycle(FileSpec,Recurse);
}
protected:
virtual void FileCallback(char const * FName,int FileNum)
{
List.push_front(FName);
}
std::list<GString> & List;
};
/*----------------------------------------------------------------------
Globals
------- */
/* Vars
---- */
/* Data
---- */
/* Functions
--------- */
GLIB_API int CycleFiles(char const *Spec,void (*Func)(char const *Fname,int Num),BOOL Recurse);
GLIB_API BOOL SwitchInfo(char *String);
GLIB_API bool FileExists(const char *String);
GLIB_API int FileSize(const char *String);
GLIB_API bool copyFile(char const * Dest,char const * Source,bool Overwrite = false);
/*---------------------------------------------------------------------- */
#endif /* __PC_GLIB_MISC_HPP__ */
/*===========================================================================
end */
| [
"daveo@localhost"
] | daveo@localhost |
462c7b4b062cf63dd8ca33399639b316d6b4786d | a748a7f23978a51eb12bb95d8ac153468dd0c7bc | /PlistTest/Classes/CCScrollMenu.cpp | 925870fd20acbe0823ba3864169f57a48d4e2f0d | [] | no_license | xdscode/MyProject | 165b77492bffb830b3d32ce4ebc4ed52f90a4a82 | 946eeff0f8220a235129a018a424325281ddbacd | refs/heads/master | 2020-05-20T08:27:17.008232 | 2015-06-09T07:34:08 | 2015-06-09T07:34:08 | 37,116,682 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,921 | cpp | //
// CCScrollMenu.cpp
// FoxUGame
// 主要处理cctouchBegin时的开始point点的记录,cctouchMoved时的距离判定并取消menuitem的选中状态,在注册触摸监听的时候,让menu允许事件穿透。
// Created by gaodan on 12-8-20.
// Copyright (c) 2012年 FoxUGame. All rights reserved.
//
#include "CCScrollMenu.h"
// 判断是否是点击事件(可拖动)的距离阀值
const int OFFSET_VALUE_THRESHOLD = 5;
bool CCScrollMenu::m_isMoved = true;
void CCScrollMenu::setIsMoved(bool flag)
{
m_isMoved = flag;
}
bool CCScrollMenu::isMoved()
{
return m_isMoved;
}
CCScrollMenu::CCScrollMenu(void)
: m_bIsRevertTouchPriority(false),m_touchListener(NULL)
{
m_iHandlePriority = 0;
m_uDisable_direction = SCROLL_MENU_DIRECTION_BOTH;
}
CCScrollMenu::~CCScrollMenu(void)
{
}
CCScrollMenu* CCScrollMenu::create()
{
return CCScrollMenu::create(NULL, NULL);
}
CCScrollMenu* CCScrollMenu::create(MenuItem* item, ...)
{
va_list args;
va_start(args, item);
CCScrollMenu* pRet = new CCScrollMenu();
Vector<MenuItem*> arrayItems;
if(item)
{
arrayItems.pushBack(item);
MenuItem* i = va_arg(args, MenuItem*);
while(i)
{
arrayItems.pushBack(i);
i = va_arg(args, MenuItem*);
}
}
if (pRet && pRet->initWithArray(arrayItems))
{
pRet->autorelease();
va_end(args);
return pRet;
}
va_end(args);
CC_SAFE_DELETE(pRet);
return NULL;
}
CCScrollMenu* CCScrollMenu::create(Menu* menu)
{
CCScrollMenu* pRet = new CCScrollMenu();
Vector<MenuItem*> arrayItems;
for(auto item:menu->getChildren())
{
MenuItem* temp=dynamic_cast<MenuItem*>(item);
if(temp)
{
arrayItems.pushBack(temp);
}
}
for(auto item:arrayItems)
{
item->removeFromParent();
}
if (pRet && pRet->initWithArray(arrayItems))
{
pRet->setPosition(menu->getPosition());
pRet->setAnchorPoint(menu->getAnchorPoint());
pRet->setTag(menu->getTag());
pRet->setContentSize(menu->getContentSize());
pRet->setScale(menu->getScaleX(), menu->getScaleY());
pRet->autorelease();
return pRet;
}
return NULL;
}
void CCScrollMenu::replaceMenu(Node* node)
{
for(auto item:node->getChildren())
{
Menu *temp=dynamic_cast<Menu*>(item);
if(temp)
{
CC_SAFE_RETAIN(temp);
Node* par=temp->getParent();
temp->removeFromParent();
CCScrollMenu *mm=CCScrollMenu::create(temp);
par->addChild(mm,-1);
CC_SAFE_RELEASE(temp);
}
{
replaceMenu(item);
}
}
}
CCScrollMenu* CCScrollMenu::createWithArray(const Vector<MenuItem*>& arrayItems)
{
CCScrollMenu* pRet = new CCScrollMenu();
if (pRet && pRet->initWithArray(arrayItems))
{
pRet->autorelease();
}
else
{
CC_SAFE_DELETE(pRet);
}
return pRet;
}
CCScrollMenu* CCScrollMenu::createWithItem(MenuItem* item)
{
return CCScrollMenu::create(item, NULL);
}
CCScrollMenu* CCScrollMenu::createWithItems(MenuItem* item, va_list args)
{
Vector<MenuItem*> items;
if( item )
{
items.pushBack(item);
MenuItem *i = va_arg(args, MenuItem*);
while(i)
{
items.pushBack(i);
i = va_arg(args, MenuItem*);
}
}
return CCScrollMenu::createWithArray(items);
}
bool CCScrollMenu::initWithArray(const Vector<MenuItem*>& arrayOfItems)
{
if (Layer::init())
{
_enabled = true;
// menu in the center of the screen
Size s = Director::getInstance()->getWinSize();
this->ignoreAnchorPointForPosition(true);
setAnchorPoint(Vec2(0.5f, 0.5f));
this->setContentSize(s);
setPosition(Vec2(s.width/2, s.height/2));
int z=0;
for (auto& item : arrayOfItems)
{
this->addChild(item, z);
z++;
}
_selectedItem = nullptr;
_state = Menu::State::WAITING;
// enable cascade color and opacity on menus
setCascadeColorEnabled(true);
setCascadeOpacityEnabled(true);
m_touchListener = EventListenerTouchOneByOne::create();
m_touchListener->setSwallowTouches(false);
m_touchListener->onTouchBegan = CC_CALLBACK_2(CCScrollMenu::onTouchBegan, this);
m_touchListener->onTouchMoved = CC_CALLBACK_2(CCScrollMenu::onTouchMoved, this);
m_touchListener->onTouchEnded = CC_CALLBACK_2(CCScrollMenu::onTouchEnded, this);
m_touchListener->onTouchCancelled = CC_CALLBACK_2(CCScrollMenu::onTouchCancelled, this);
// m_touchListener->targetPaused = CC_CALLBACK_0(Menu::targetPaused, this);
_eventDispatcher->addEventListenerWithSceneGraphPriority(m_touchListener, this);
return true;
}
return false;
}
bool CCScrollMenu::onTouchBegan(Touch* touch, Event* event)
{
Point touchLocation = touch->getLocationInView();
Point point= Director::getInstance()->convertToGL(touchLocation);
m_TouchPoint.setPoint(point.x, point.y);
return Menu::onTouchBegan(touch, event);
}
void CCScrollMenu::onTouchMoved(Touch* touch, Event* event)
{
if(!m_isMoved)
{
Menu::onTouchMoved(touch, event);
return;
}
Point touchLocation = touch->getLocationInView();
Point point = Director::getInstance()->convertToGL(touchLocation);
if(_selectedItem)
{
Rect rect = _selectedItem->rect();
rect.origin.x = 0;
rect.origin.y = 0;
if(!rect.containsPoint(_selectedItem->convertToNodeSpace(point)))// 超出按钮范围就取消按钮选中状态
{
_selectedItem->unselected();
_selectedItem = NULL;
return;
}
}
float offsetX = fabsf(point.x - m_TouchPoint.x);
float offsetY = fabsf(point.y - m_TouchPoint.y);
if((m_uDisable_direction == SCROLL_MENU_DIRECTION_BOTH && (offsetX > OFFSET_VALUE_THRESHOLD || offsetY > OFFSET_VALUE_THRESHOLD)) ||
(m_uDisable_direction == SCROLL_MENU_DIRECTION_H && (offsetX > OFFSET_VALUE_THRESHOLD)) ||
(m_uDisable_direction == SCROLL_MENU_DIRECTION_V && (offsetY > OFFSET_VALUE_THRESHOLD)))// 如果横向或者纵向的移动距离大于offset_value阀值就取消menu菜单响应
{
if (_selectedItem)
{
_selectedItem->unselected();
_selectedItem = NULL;
}
}
}
void CCScrollMenu::onTouchEnded(Touch* touch, Event* event)
{
Menu::onTouchEnded(touch, event);
}
void CCScrollMenu::onTouchCancelled(Touch* touch, Event* event)
{
Menu::onTouchCancelled(touch, event);
}
void CCScrollMenu::setSwallowTouches(bool isSwallow)
{
if(m_touchListener)
{
m_touchListener->setSwallowTouches(isSwallow);
}
}
MenuItem* CCScrollMenu::itemForTouch(Touch *touch)
{
if(!m_bIsRevertTouchPriority)
{
return Menu::getItemForTouch(touch);
}
Point touchLocation = touch->getLocation();
if (_children.size() > 0)
{
auto nodeIter = _children.begin();
while (nodeIter != _children.end())
{
MenuItem* pChild = dynamic_cast<MenuItem*>(*nodeIter);
if (pChild && pChild->isVisible() && pChild->isEnabled())
{
Point local = pChild->convertToNodeSpace(touchLocation);
Rect r = pChild->rect();
r.origin = Vec2(0,0);
if (r.containsPoint(local))
{
return pChild;
}
}
}
}
return NULL;
}
| [
"233@22.com"
] | 233@22.com |
b050538a4531e7496705e659a71b1ebe42c9fc56 | 2de8f5ba729a846f8ad5630272dd5b1f3b7b6e44 | /src/server/gameserver/skill/PlasmaRocketLauncher.cpp | b82cba07771561a68fc0a435a76968399b8fafdd | [] | no_license | najosky/darkeden-v2-serverfiles | dc0f90381404953e3716bf71320a619eb10c3825 | 6e0015f5b8b658697228128543ea145a1fc4c559 | refs/heads/master | 2021-10-09T13:01:42.843224 | 2018-12-24T15:01:52 | 2018-12-24T15:01:52 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 6,869 | cpp | //////////////////////////////////////////////////////////////////////////////
// Filename : PlasmaRocketLauncher.cpp
// Written by : excel96
// Description :
//////////////////////////////////////////////////////////////////////////////
#include "PlasmaRocketLauncher.h"
#include "EffectPlasmaRocketLauncher.h"
#include "ItemUtil.h"
#include "Gpackets/GCSkillToObjectOK1.h"
#include "Gpackets/GCSkillToObjectOK2.h"
#include "Gpackets/GCSkillToObjectOK5.h"
#include "Gpackets/GCSkillToSelfOK1.h"
#include "Gpackets/GCSkillToSelfOK2.h"
#include "Gpackets/GCAddEffect.h"
//////////////////////////////////////////////////////////////////////////////
// 슬레이어 오브젝트 핸들러
//////////////////////////////////////////////////////////////////////////////
void PlasmaRocketLauncher::execute(Slayer* pSlayer, ObjectID_t TargetObjectID, SkillSlot* pSkillSlot, CEffectID_t CEffectID)
throw(Error)
{
__BEGIN_TRY
//cout << "TID[" << Thread::self() << "]" << getSkillHandlerName() << "begin " << endl;
Assert(pSlayer != NULL);
Assert(pSkillSlot != NULL);
try
{
Player* pPlayer = pSlayer->getPlayer();
Zone* pZone = pSlayer->getZone();
Assert(pPlayer != NULL);
Assert(pZone != NULL);
Creature* pTargetCreature = pZone->getCreature(TargetObjectID);
//Assert(pTargetCreature != NULL);
// NoSuch제거. by sigi. 2002.5.2
if (pTargetCreature==NULL
|| !canAttack( pSlayer, pTargetCreature )
)
{
executeSkillFailException(pSlayer, getSkillType());
//cout << "TID[" << Thread::self() << "]" << getSkillHandlerName() << " end " << endl;
return;
}
// 이펙트의 효과와 지속시간을 계산한다.
SkillInput input(pSlayer, pSkillSlot);
SkillOutput output;
input.Range = getDistance(pSlayer->getX(), pSlayer->getY(), pTargetCreature->getX(), pTargetCreature->getY());
computeOutput(input, output);
Item* pWeapon = pSlayer->getWearItem(Slayer::WEAR_RIGHTHAND);
if( pWeapon == NULL || isArmsWeapon(pWeapon) == false)
{
executeSkillFailException(pSlayer, getSkillType());
return;
}
GCSkillToObjectOK1 _GCSkillToObjectOK1;
GCSkillToObjectOK2 _GCSkillToObjectOK2;
GCSkillToObjectOK5 _GCSkillToObjectOK5;
SkillType_t SkillType = pSkillSlot->getSkillType();
SkillInfo* pSkillInfo = g_pSkillInfoManager->getSkillInfo(SkillType);
SkillDomainType_t DomainType = pSkillInfo->getDomainType();
// 페널티 값을 계산한다.
int ToHitPenalty = getPercentValue(pSlayer->getToHit(), output.ToHit);
bool bIncreaseDomainExp = pSlayer->isRealWearingEx(Slayer::WEAR_RIGHTHAND);
int RequiredMP = (int)pSkillInfo->getConsumeMP();
bool bManaCheck = hasEnoughMana(pSlayer, RequiredMP);
bool bTimeCheck = verifyRunTime(pSkillSlot);
bool bRangeCheck = verifyDistance(pSlayer, pTargetCreature, pSkillInfo->getRange());
bool bHitRoll = HitRoll::isSuccess(pSlayer, pTargetCreature, ToHitPenalty);
bool bEffected = false; //pTargetCreature->isFlag(Effect::EFFECT_CLASS_PLASMA_ROCKET_LAUNCHER);
bool bPK = verifyPK(pSlayer, pTargetCreature);
bool bBulletCheck = (getRemainBullet(pWeapon) > 0) ? true : false;
printf("remp : %d, bMcheck : %d, bTimeCheck : %d, bRangeCheck : %d, bHitroll : %d, bEffect : %d, bPK : %d\n",
RequiredMP, bManaCheck, bTimeCheck, bRangeCheck, bHitRoll, bEffected, bPK);
if (bManaCheck && bTimeCheck && bRangeCheck && bHitRoll && !bEffected && bPK && bBulletCheck)
{
printf("check OK\n");
// 마나를 줄인다.
decreaseMana(pSlayer, RequiredMP, _GCSkillToObjectOK1);
Bullet_t RemainBullet = 0;
decreaseBullet(pWeapon);
// 한발쓸때마다 저장할 필요 없다. by sigi. 2002.5.9
//pWeapon->save(pSlayer->getName(), STORAGE_GEAR, 0, Slayer::WEAR_RIGHTHAND, 0);
RemainBullet = getRemainBullet(pWeapon);
if (!pTargetCreature->isSlayer())
{
// 경험치를 올려준다.
//SkillGrade Grade = g_pSkillInfoManager->getGradeByDomainLevel(pSlayer->getSkillDomainLevel(DomainType));
//Exp_t ExpUp = 10* (Grade + 1);
//shareAttrExp(pSlayer, ExpUp, 1, 1, 8, _GCSkillToObjectOK1);
//
if ( bIncreaseDomainExp )
{
increaseDomainExp(pSlayer, DomainType, pSkillInfo->getPoint(), _GCSkillToObjectOK1, pTargetCreature->getLevel());
}
increaseSkillExp(pSlayer, DomainType, pSkillSlot, pSkillInfo, _GCSkillToObjectOK1);
}
// 이펙트를 생성해서 붙인다.
EffectPlasmaRocketLauncher* pEffect = new EffectPlasmaRocketLauncher(pTargetCreature);
Assert(pEffect != NULL);
pEffect->setNextTime(output.Duration);
pEffect->setPoint(output.Damage);
pEffect->setUserObjectID( pSlayer->getObjectID() );
pTargetCreature->addEffect(pEffect);
pTargetCreature->setFlag(Effect::EFFECT_CLASS_PLASMA_ROCKET_LAUNCHER);
// 패킷을 준비해서 보낸다.
_GCSkillToObjectOK1.setSkillType(SkillType);
_GCSkillToObjectOK1.setCEffectID(CEffectID);
_GCSkillToObjectOK1.setTargetObjectID(TargetObjectID);
_GCSkillToObjectOK1.setDuration(output.Duration);
_GCSkillToObjectOK2.setObjectID(pSlayer->getObjectID());
_GCSkillToObjectOK2.setSkillType(SkillType);
_GCSkillToObjectOK2.setDuration (output.Duration);
_GCSkillToObjectOK5.setObjectID(pSlayer->getObjectID());
_GCSkillToObjectOK5.setSkillType(SkillType);
_GCSkillToObjectOK5.setTargetObjectID (TargetObjectID);
_GCSkillToObjectOK5.setDuration (output.Duration);
// Send Packet
pPlayer->sendPacket(&_GCSkillToObjectOK1);
if (pSlayer != pTargetCreature && pTargetCreature->isPC())
{
Player* pTargetPlayer = pTargetCreature->getPlayer();
Assert(pTargetPlayer != NULL);
pTargetPlayer->sendPacket(&_GCSkillToObjectOK2);
}
else if ( pTargetCreature->isMonster() )
{
Monster* pMonster = dynamic_cast<Monster*>(pTargetCreature);
if ( pMonster != NULL ) pMonster->addEnemy(pSlayer);
}
list<Creature*> cList;
cList.push_back(pSlayer);
cList.push_back(pTargetCreature);
pZone->broadcastPacket(pSlayer->getX(), pSlayer->getY(), &_GCSkillToObjectOK5 , cList);
// // 이펙트가 붙었다고 알려준다.
// GCAddEffect gcAddEffect;
// gcAddEffect.setObjectID(pTargetCreature->getObjectID());
// gcAddEffect.setEffectID(Effect::EFFECT_CLASS_PLASMA_ROCKET_LAUNCHER);
// gcAddEffect.setDuration(output.Duration);
// pZone->broadcastPacket(pTargetCreature->getX(), pTargetCreature->getY(), &gcAddEffect, pTargetCreature);
//
pSkillSlot->setRunTime(output.Delay);
}
else
{
printf("nonono~1\n");
executeSkillFailNormal(pSlayer, getSkillType(), pTargetCreature);
}
}
catch (Throwable & t)
{
printf("skill exception!!~1\n");
executeSkillFailException(pSlayer, getSkillType());
}
//cout << "TID[" << Thread::self() << "]" << getSkillHandlerName() << " end " << endl;
__END_CATCH
}
PlasmaRocketLauncher g_PlasmaRocketLauncher;
| [
"paulomatew@gmail.com"
] | paulomatew@gmail.com |
1515b419f2e4f4ad0870950934c96814b66ed167 | b9a2f019733091409bd5c1e1f7e9383666f767bc | /HackerRank/Customized Chess Board.cpp | cd5356cca98ac698369638bfa120e0607adeb500 | [] | no_license | dipty13/Competitive-Programming-Codes | 0f00da0fc9fc1ea13fe0d483f88d7311f0997517 | 3182305d9d7901dc72acf2e7d94eb8baaf201fdc | refs/heads/master | 2022-11-24T08:42:22.890428 | 2022-11-11T21:06:20 | 2022-11-11T21:06:20 | 120,195,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,498 | cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t,n,c=0,i,j;
cin>>t;
while(t--)
{
char s[105][1055];
cin>>n;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
cin>>s[i][j];
}
}
c = 0;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
if(i-1>=0&&s[i][j]!=s[i-1][j])
{
}else if(i-1<0)
{
}else{
c = 1;
break;
}
if(j-1>=0&&s[i][j]!=s[i][j-1])
{
}
else if(j-1<0)
{
}else{
c = 1;
break;
}
if(i+1<n&&s[i][j]!=s[i+1][j])
{
}
else if(i+1>=n)
{
}else{
c = 1;
break;
}
if(j+1<n&&s[i][j]!=s[i][j+1])
{
}else if(j+1>=n)
{
}else{
c = 1;
break;
}
}
if(c==1)
{
break;
}
}
if(c)
{
cout<<"No\n";
}
else{
cout<<"Yes\n";
}
}
return 0;
}
| [
"13dipty@gmail.com"
] | 13dipty@gmail.com |
492bfa8b90242e050382ef63db7f481ba05dbd33 | e51d009c6c6a1633c2c11ea4e89f289ea294ec7e | /xr2-dsgn/sources/WildMagic/LibPhysics/Intersection/Wm4ExtremalQuery3PRJ.h | 59cbf304f4f860855881e70a010cb8eb5a99b052 | [] | no_license | avmal0-Cor/xr2-dsgn | a0c726a4d54a2ac8147a36549bc79620fead0090 | 14e9203ee26be7a3cb5ca5da7056ecb53c558c72 | refs/heads/master | 2023-07-03T02:05:00.566892 | 2021-08-06T03:10:53 | 2021-08-06T03:10:53 | 389,939,196 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,409 | h | // Wild Magic Source Code
// David Eberly
// http://www.geometrictools.com
// Copyright (c) 1998-2009
//
// 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. The license is available for reading at
// either of the locations:
// http://www.gnu.org/copyleft/lgpl.html
// http://www.geometrictools.com/License/WildMagicLicense.pdf
//
// Version: 4.0.1 (2007/05/06)
#ifndef WM4EXTREMALQUERY3PRJ_H
#define WM4EXTREMALQUERY3PRJ_H
#include "Wm4PhysicsLIB.h"
#include "Wm4ExtremalQuery3.h"
namespace Wm4
{
template <class Real>
class WM4_PHYSICS_ITEM ExtremalQuery3PRJ : public ExtremalQuery3<Real>
{
public:
ExtremalQuery3PRJ (const ConvexPolyhedron3<Real>& rkPolytope);
virtual ~ExtremalQuery3PRJ ();
// Compute the extreme vertices in the specified direction and return the
// indices of the vertices in the polyhedron vertex array.
virtual void GetExtremeVertices (const Vector3<Real>& rkDirection,
int& riPositiveDirection, int& riNegativeDirection);
private:
using ExtremalQuery3<Real>::m_pkPolytope;
Vector3<Real> m_kCentroid;
};
typedef ExtremalQuery3PRJ<float> ExtremalQuery3PRJf;
typedef ExtremalQuery3PRJ<double> ExtremalQuery3PRJd;
}
#endif
| [
"youalexandrov@icloud.com"
] | youalexandrov@icloud.com |
5ebf37032ea0e8150ba2de79d07d55759d81adb0 | 1ffbfd6023def64b250b7905c16b76d97f20d914 | /Source/Novah.Tracer.Client/Network.h | ff1c55db7cab5a54e2a59ba92563820fc14992a4 | [
"MIT"
] | permissive | jorgy343/NovahTracer | 63606a597c16785214943a32b8daf84e04d27c52 | d430d8ff4871bd838dafd7beef9d745193206fa7 | refs/heads/master | 2022-06-08T15:56:59.439003 | 2020-05-07T01:19:00 | 2020-05-07T01:19:00 | 261,916,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 926 | h | #pragma once
#include "NovahTracerEngine.h"
#include <winsock2.h>
#include <ws2tcpip.h>
#include <memory>
#define GetMessage GetMessage // The Windows headers define "GetMessage" as "GetMessageW". Undo that.
enum class NetworkState
{
Initialize,
MessageReady,
ReadingMessageType,
ReadingMessageSize,
ReadingMessage
};
class Network
{
private:
WSADATA _wsaData;
addrinfo* _addressInfoResult;
SOCKET _connectedSocket;
NetworkState _state;
int _messageType;
int _messageTypeRead;
int _messageSize;
int _messageSizeRead;
std::unique_ptr<const char[]> _message;
int _messageRead;
void Read();
bool IsMessageReady() const;
public:
Network(const char* ip, const char* port);
~Network();
int Send(const char* buffer, int bufferSizeInBytes) const;
void SendChunkRequestedMessage() const;
std::unique_ptr<const char[]> GetMessage();
}; | [
"jorgy343@gmail.com"
] | jorgy343@gmail.com |
4a1c6b6bb976fb0b1e32f37407c59f2b48309735 | 6b22c2f1a8038c62f5df54c6bd26b9966f0abcd1 | /ICE/externals/ParticleUniverse/ParticleAffectors/ParticleUniverseLinearForceAffector.h | a1892bdf00e118d489c27b0f8ac4a3579932a76f | [] | no_license | serch1982/ICE | c28987e6fb4fc6bc1e8e18bc30c6f37259eb85aa | 740d337c46569b0be5a302ee9fdc7e2b8731efe3 | refs/heads/master | 2020-03-31T17:05:02.029241 | 2018-10-14T15:57:40 | 2018-10-14T15:57:40 | 152,405,022 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,311 | h | /*
-----------------------------------------------------------------------------------------------
This source file is part of the Particle Universe product.
Copyright (c) 2010 Henry van Merode
Usage of this program is licensed under the terms of the Particle Universe Commercial License.
You can find a copy of the Commercial License in the Particle Universe package.
-----------------------------------------------------------------------------------------------
*/
#ifndef __PU_LINEAR_FORCE_AFFECTOR_H__
#define __PU_LINEAR_FORCE_AFFECTOR_H__
#include "ParticleUniversePrerequisites.h"
#include "ParticleUniverseBaseForceAffector.h"
namespace ParticleUniverse
{
/** Adds a force to particles.
*/
class _ParticleUniverseExport LinearForceAffector : public BaseForceAffector
{
public:
LinearForceAffector(void) :
BaseForceAffector()
{
};
virtual ~LinearForceAffector(void) {};
/**
*/
virtual void copyAttributesTo (ParticleAffector* affector);
/**
*/
virtual void _preProcessParticles(ParticleTechnique* particleTechnique, Real timeElapsed);
/**
*/
virtual void _affect(ParticleTechnique* particleTechnique, Particle* particle, Real timeElapsed);
protected:
};
}
#endif
| [
"frank4@a7c3e893-904f-42d6-832b-39a831b3ea3e"
] | frank4@a7c3e893-904f-42d6-832b-39a831b3ea3e |
7f1ae31890bc92ede9ee9f0fcf78b1feda19ae1c | ea12bf758aee26a51dfa02fba852579158e25567 | /02/src/main.cc | 421c39386563acf015b47574cc083231f85b1f4e | [] | no_license | m3m0ry/NuSiF | 3e97e5738ac8735ac1078dea92ac940bf8f89007 | ba26ff4e13f467dfa2ad5e80055be03f9ed2c921 | refs/heads/master | 2021-01-10T07:44:25.321497 | 2016-02-28T22:57:24 | 2016-02-28T22:57:24 | 44,522,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,233 | cc | #include <iostream>
#include <ostream>
#include <random>
#include "Array.hh"
#include "FileReader.hh"
#include "SORSolver.hh"
#include "StaggeredGrid.hh"
#include "Debug.hh"
int main( int argc, char** argv )
{
if(argc < 2)
{
std::cerr << "No configuration file given" << std::endl;
std::cerr << "Usage: " << argv[0] << "<config_file>" << std::endl;
return -1;
}
internal::progress("Starting to process file:", 0, 10);
auto filereader = new FileReader();
filereader->readFile(argv[1]);
filereader->printParameters();
internal::progress("File read", 200,200);
auto grid = new StaggeredGrid( *filereader );
grid->initGridSetup2();
Array & p = grid->p();
std::default_random_engine generator;
std::uniform_real_distribution<double> distribution(0.0, 1.0);
for(size_t j = 0; j < p.getSize(1); ++j)
{
for(size_t i = 0; i < p.getSize(0); ++i)
p(i,j) = distribution(generator);
}
p.print();
Array & rhs = grid->rhs();
rhs.print();
auto solver = new SORSolver( *filereader );
internal::progress("Start solving", 0,200);
if(solver->solve(*grid))
std::cout << "yeah" << std::endl;
internal::progress("Solved", 200,200);
p.print();
delete filereader;
delete grid;
delete solver;
return 0;
}
| [
"hrominium@gmail.com"
] | hrominium@gmail.com |
cdca0b9af8b94788c41d20d16b82cf27982380d7 | d1516031c43d9887f6d45a0195a6008dfd84b22e | /openresty-nginx/bin/Debug/proto_pb/output/sg/cc/DB/StoredProcGameAssets.pb.h | c23bb7453705fe7b8b6dfbebe73018320e129d50 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-ssleay",
"MIT",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"LicenseRef-scancode-pcre",
"LicenseRef-scancode-public-domain",
"Zlib"
] | permissive | nneesshh/openresty-win32-build-bak | f27441755a3586f11cd8dc946641743000299f95 | b77a8e2762b76de478668fd346d886642fa8698f | refs/heads/master | 2020-03-19T03:09:47.695573 | 2019-03-02T12:54:02 | 2019-03-02T12:54:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 261,491 | h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: StoredProcGameAssets.proto
#ifndef PROTOBUF_INCLUDED_StoredProcGameAssets_2eproto
#define PROTOBUF_INCLUDED_StoredProcGameAssets_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include "UserDef.pb.h"
// @@protoc_insertion_point(includes)
#define PROTOBUF_INTERNAL_EXPORT_protobuf_StoredProcGameAssets_2eproto
namespace protobuf_StoredProcGameAssets_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[21];
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
} // namespace protobuf_StoredProcGameAssets_2eproto
namespace db {
class ConfigGameServer;
class ConfigGameServerDefaultTypeInternal;
extern ConfigGameServerDefaultTypeInternal _ConfigGameServer_default_instance_;
class GameAnnouncement;
class GameAnnouncementDefaultTypeInternal;
extern GameAnnouncementDefaultTypeInternal _GameAnnouncement_default_instance_;
class GameRanking;
class GameRankingDefaultTypeInternal;
extern GameRankingDefaultTypeInternal _GameRanking_default_instance_;
class GameRobot;
class GameRobotDefaultTypeInternal;
extern GameRobotDefaultTypeInternal _GameRobot_default_instance_;
class GameState;
class GameStateDefaultTypeInternal;
extern GameStateDefaultTypeInternal _GameState_default_instance_;
class IslandBattleData;
class IslandBattleDataDefaultTypeInternal;
extern IslandBattleDataDefaultTypeInternal _IslandBattleData_default_instance_;
class UserCommonData;
class UserCommonDataDefaultTypeInternal;
extern UserCommonDataDefaultTypeInternal _UserCommonData_default_instance_;
class UserRankingData;
class UserRankingDataDefaultTypeInternal;
extern UserRankingDataDefaultTypeInternal _UserRankingData_default_instance_;
class proc_i_load_user_common_data;
class proc_i_load_user_common_dataDefaultTypeInternal;
extern proc_i_load_user_common_dataDefaultTypeInternal _proc_i_load_user_common_data_default_instance_;
class proc_i_load_user_common_data_Parameter;
class proc_i_load_user_common_data_ParameterDefaultTypeInternal;
extern proc_i_load_user_common_data_ParameterDefaultTypeInternal _proc_i_load_user_common_data_Parameter_default_instance_;
class proc_i_load_user_common_data_ReturnRecord;
class proc_i_load_user_common_data_ReturnRecordDefaultTypeInternal;
extern proc_i_load_user_common_data_ReturnRecordDefaultTypeInternal _proc_i_load_user_common_data_ReturnRecord_default_instance_;
class proc_i_load_user_ranking_data;
class proc_i_load_user_ranking_dataDefaultTypeInternal;
extern proc_i_load_user_ranking_dataDefaultTypeInternal _proc_i_load_user_ranking_data_default_instance_;
class proc_i_load_user_ranking_data_Parameter;
class proc_i_load_user_ranking_data_ParameterDefaultTypeInternal;
extern proc_i_load_user_ranking_data_ParameterDefaultTypeInternal _proc_i_load_user_ranking_data_Parameter_default_instance_;
class proc_i_load_user_ranking_data_ReturnRecord;
class proc_i_load_user_ranking_data_ReturnRecordDefaultTypeInternal;
extern proc_i_load_user_ranking_data_ReturnRecordDefaultTypeInternal _proc_i_load_user_ranking_data_ReturnRecord_default_instance_;
class proc_i_save_user_common_data;
class proc_i_save_user_common_dataDefaultTypeInternal;
extern proc_i_save_user_common_dataDefaultTypeInternal _proc_i_save_user_common_data_default_instance_;
class proc_i_save_user_common_data_Parameter;
class proc_i_save_user_common_data_ParameterDefaultTypeInternal;
extern proc_i_save_user_common_data_ParameterDefaultTypeInternal _proc_i_save_user_common_data_Parameter_default_instance_;
class proc_i_save_user_ranking_data;
class proc_i_save_user_ranking_dataDefaultTypeInternal;
extern proc_i_save_user_ranking_dataDefaultTypeInternal _proc_i_save_user_ranking_data_default_instance_;
class proc_i_save_user_ranking_data_Parameter;
class proc_i_save_user_ranking_data_ParameterDefaultTypeInternal;
extern proc_i_save_user_ranking_data_ParameterDefaultTypeInternal _proc_i_save_user_ranking_data_Parameter_default_instance_;
class proc_load_all_users;
class proc_load_all_usersDefaultTypeInternal;
extern proc_load_all_usersDefaultTypeInternal _proc_load_all_users_default_instance_;
class proc_load_all_users_Parameter;
class proc_load_all_users_ParameterDefaultTypeInternal;
extern proc_load_all_users_ParameterDefaultTypeInternal _proc_load_all_users_Parameter_default_instance_;
class proc_load_all_users_ReturnRecord;
class proc_load_all_users_ReturnRecordDefaultTypeInternal;
extern proc_load_all_users_ReturnRecordDefaultTypeInternal _proc_load_all_users_ReturnRecord_default_instance_;
} // namespace db
namespace google {
namespace protobuf {
template<> ::db::ConfigGameServer* Arena::CreateMaybeMessage<::db::ConfigGameServer>(Arena*);
template<> ::db::GameAnnouncement* Arena::CreateMaybeMessage<::db::GameAnnouncement>(Arena*);
template<> ::db::GameRanking* Arena::CreateMaybeMessage<::db::GameRanking>(Arena*);
template<> ::db::GameRobot* Arena::CreateMaybeMessage<::db::GameRobot>(Arena*);
template<> ::db::GameState* Arena::CreateMaybeMessage<::db::GameState>(Arena*);
template<> ::db::IslandBattleData* Arena::CreateMaybeMessage<::db::IslandBattleData>(Arena*);
template<> ::db::UserCommonData* Arena::CreateMaybeMessage<::db::UserCommonData>(Arena*);
template<> ::db::UserRankingData* Arena::CreateMaybeMessage<::db::UserRankingData>(Arena*);
template<> ::db::proc_i_load_user_common_data* Arena::CreateMaybeMessage<::db::proc_i_load_user_common_data>(Arena*);
template<> ::db::proc_i_load_user_common_data_Parameter* Arena::CreateMaybeMessage<::db::proc_i_load_user_common_data_Parameter>(Arena*);
template<> ::db::proc_i_load_user_common_data_ReturnRecord* Arena::CreateMaybeMessage<::db::proc_i_load_user_common_data_ReturnRecord>(Arena*);
template<> ::db::proc_i_load_user_ranking_data* Arena::CreateMaybeMessage<::db::proc_i_load_user_ranking_data>(Arena*);
template<> ::db::proc_i_load_user_ranking_data_Parameter* Arena::CreateMaybeMessage<::db::proc_i_load_user_ranking_data_Parameter>(Arena*);
template<> ::db::proc_i_load_user_ranking_data_ReturnRecord* Arena::CreateMaybeMessage<::db::proc_i_load_user_ranking_data_ReturnRecord>(Arena*);
template<> ::db::proc_i_save_user_common_data* Arena::CreateMaybeMessage<::db::proc_i_save_user_common_data>(Arena*);
template<> ::db::proc_i_save_user_common_data_Parameter* Arena::CreateMaybeMessage<::db::proc_i_save_user_common_data_Parameter>(Arena*);
template<> ::db::proc_i_save_user_ranking_data* Arena::CreateMaybeMessage<::db::proc_i_save_user_ranking_data>(Arena*);
template<> ::db::proc_i_save_user_ranking_data_Parameter* Arena::CreateMaybeMessage<::db::proc_i_save_user_ranking_data_Parameter>(Arena*);
template<> ::db::proc_load_all_users* Arena::CreateMaybeMessage<::db::proc_load_all_users>(Arena*);
template<> ::db::proc_load_all_users_Parameter* Arena::CreateMaybeMessage<::db::proc_load_all_users_Parameter>(Arena*);
template<> ::db::proc_load_all_users_ReturnRecord* Arena::CreateMaybeMessage<::db::proc_load_all_users_ReturnRecord>(Arena*);
} // namespace protobuf
} // namespace google
namespace db {
// ===================================================================
class proc_load_all_users_Parameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_load_all_users.Parameter) */ {
public:
proc_load_all_users_Parameter();
virtual ~proc_load_all_users_Parameter();
proc_load_all_users_Parameter(const proc_load_all_users_Parameter& from);
inline proc_load_all_users_Parameter& operator=(const proc_load_all_users_Parameter& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_load_all_users_Parameter(proc_load_all_users_Parameter&& from) noexcept
: proc_load_all_users_Parameter() {
*this = ::std::move(from);
}
inline proc_load_all_users_Parameter& operator=(proc_load_all_users_Parameter&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_load_all_users_Parameter& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_load_all_users_Parameter* internal_default_instance() {
return reinterpret_cast<const proc_load_all_users_Parameter*>(
&_proc_load_all_users_Parameter_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
void UnsafeArenaSwap(proc_load_all_users_Parameter* other);
void Swap(proc_load_all_users_Parameter* other);
friend void swap(proc_load_all_users_Parameter& a, proc_load_all_users_Parameter& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_load_all_users_Parameter* New() const final {
return CreateMaybeMessage<proc_load_all_users_Parameter>(NULL);
}
proc_load_all_users_Parameter* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_load_all_users_Parameter>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_load_all_users_Parameter& from);
void MergeFrom(const proc_load_all_users_Parameter& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_load_all_users_Parameter* other);
protected:
explicit proc_load_all_users_Parameter(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// @@protoc_insertion_point(class_scope:db.proc_load_all_users.Parameter)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_load_all_users_ReturnRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_load_all_users.ReturnRecord) */ {
public:
proc_load_all_users_ReturnRecord();
virtual ~proc_load_all_users_ReturnRecord();
proc_load_all_users_ReturnRecord(const proc_load_all_users_ReturnRecord& from);
inline proc_load_all_users_ReturnRecord& operator=(const proc_load_all_users_ReturnRecord& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_load_all_users_ReturnRecord(proc_load_all_users_ReturnRecord&& from) noexcept
: proc_load_all_users_ReturnRecord() {
*this = ::std::move(from);
}
inline proc_load_all_users_ReturnRecord& operator=(proc_load_all_users_ReturnRecord&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_load_all_users_ReturnRecord& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_load_all_users_ReturnRecord* internal_default_instance() {
return reinterpret_cast<const proc_load_all_users_ReturnRecord*>(
&_proc_load_all_users_ReturnRecord_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
void UnsafeArenaSwap(proc_load_all_users_ReturnRecord* other);
void Swap(proc_load_all_users_ReturnRecord* other);
friend void swap(proc_load_all_users_ReturnRecord& a, proc_load_all_users_ReturnRecord& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_load_all_users_ReturnRecord* New() const final {
return CreateMaybeMessage<proc_load_all_users_ReturnRecord>(NULL);
}
proc_load_all_users_ReturnRecord* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_load_all_users_ReturnRecord>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_load_all_users_ReturnRecord& from);
void MergeFrom(const proc_load_all_users_ReturnRecord& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_load_all_users_ReturnRecord* other);
protected:
explicit proc_load_all_users_ReturnRecord(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required .db.UserAttribute attr = 1;
bool has_attr() const;
void clear_attr();
static const int kAttrFieldNumber = 1;
private:
const ::db::UserAttribute& _internal_attr() const;
public:
const ::db::UserAttribute& attr() const;
::db::UserAttribute* release_attr();
::db::UserAttribute* mutable_attr();
void set_allocated_attr(::db::UserAttribute* attr);
void unsafe_arena_set_allocated_attr(
::db::UserAttribute* attr);
::db::UserAttribute* unsafe_arena_release_attr();
// @@protoc_insertion_point(class_scope:db.proc_load_all_users.ReturnRecord)
private:
void set_has_attr();
void clear_has_attr();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::db::UserAttribute* attr_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_load_all_users : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_load_all_users) */ {
public:
proc_load_all_users();
virtual ~proc_load_all_users();
proc_load_all_users(const proc_load_all_users& from);
inline proc_load_all_users& operator=(const proc_load_all_users& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_load_all_users(proc_load_all_users&& from) noexcept
: proc_load_all_users() {
*this = ::std::move(from);
}
inline proc_load_all_users& operator=(proc_load_all_users&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_load_all_users& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_load_all_users* internal_default_instance() {
return reinterpret_cast<const proc_load_all_users*>(
&_proc_load_all_users_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
void UnsafeArenaSwap(proc_load_all_users* other);
void Swap(proc_load_all_users* other);
friend void swap(proc_load_all_users& a, proc_load_all_users& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_load_all_users* New() const final {
return CreateMaybeMessage<proc_load_all_users>(NULL);
}
proc_load_all_users* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_load_all_users>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_load_all_users& from);
void MergeFrom(const proc_load_all_users& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_load_all_users* other);
protected:
explicit proc_load_all_users(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef proc_load_all_users_Parameter Parameter;
typedef proc_load_all_users_ReturnRecord ReturnRecord;
// accessors -------------------------------------------------------
// repeated .db.proc_load_all_users.ReturnRecord return_record_list = 2;
int return_record_list_size() const;
void clear_return_record_list();
static const int kReturnRecordListFieldNumber = 2;
::db::proc_load_all_users_ReturnRecord* mutable_return_record_list(int index);
::google::protobuf::RepeatedPtrField< ::db::proc_load_all_users_ReturnRecord >*
mutable_return_record_list();
const ::db::proc_load_all_users_ReturnRecord& return_record_list(int index) const;
::db::proc_load_all_users_ReturnRecord* add_return_record_list();
const ::google::protobuf::RepeatedPtrField< ::db::proc_load_all_users_ReturnRecord >&
return_record_list() const;
// optional .db.proc_load_all_users.Parameter param = 1;
bool has_param() const;
void clear_param();
static const int kParamFieldNumber = 1;
private:
const ::db::proc_load_all_users_Parameter& _internal_param() const;
public:
const ::db::proc_load_all_users_Parameter& param() const;
::db::proc_load_all_users_Parameter* release_param();
::db::proc_load_all_users_Parameter* mutable_param();
void set_allocated_param(::db::proc_load_all_users_Parameter* param);
void unsafe_arena_set_allocated_param(
::db::proc_load_all_users_Parameter* param);
::db::proc_load_all_users_Parameter* unsafe_arena_release_param();
// @@protoc_insertion_point(class_scope:db.proc_load_all_users)
private:
void set_has_param();
void clear_has_param();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::db::proc_load_all_users_ReturnRecord > return_record_list_;
::db::proc_load_all_users_Parameter* param_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class GameState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.GameState) */ {
public:
GameState();
virtual ~GameState();
GameState(const GameState& from);
inline GameState& operator=(const GameState& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
GameState(GameState&& from) noexcept
: GameState() {
*this = ::std::move(from);
}
inline GameState& operator=(GameState&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GameState& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const GameState* internal_default_instance() {
return reinterpret_cast<const GameState*>(
&_GameState_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
void UnsafeArenaSwap(GameState* other);
void Swap(GameState* other);
friend void swap(GameState& a, GameState& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline GameState* New() const final {
return CreateMaybeMessage<GameState>(NULL);
}
GameState* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<GameState>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GameState& from);
void MergeFrom(const GameState& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(GameState* other);
protected:
explicit GameState(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required int32 id = 1;
bool has_id() const;
void clear_id();
static const int kIdFieldNumber = 1;
::google::protobuf::int32 id() const;
void set_id(::google::protobuf::int32 value);
// required int32 daily_gift_id = 2;
bool has_daily_gift_id() const;
void clear_daily_gift_id();
static const int kDailyGiftIdFieldNumber = 2;
::google::protobuf::int32 daily_gift_id() const;
void set_daily_gift_id(::google::protobuf::int32 value);
// optional sfixed64 daily_gift_refresh_time = 4;
bool has_daily_gift_refresh_time() const;
void clear_daily_gift_refresh_time();
static const int kDailyGiftRefreshTimeFieldNumber = 4;
::google::protobuf::int64 daily_gift_refresh_time() const;
void set_daily_gift_refresh_time(::google::protobuf::int64 value);
// optional sfixed64 weekly_gift_refresh_time = 5;
bool has_weekly_gift_refresh_time() const;
void clear_weekly_gift_refresh_time();
static const int kWeeklyGiftRefreshTimeFieldNumber = 5;
::google::protobuf::int64 weekly_gift_refresh_time() const;
void set_weekly_gift_refresh_time(::google::protobuf::int64 value);
// optional sfixed64 daily_pvp_reward_send_time = 6;
bool has_daily_pvp_reward_send_time() const;
void clear_daily_pvp_reward_send_time();
static const int kDailyPvpRewardSendTimeFieldNumber = 6;
::google::protobuf::int64 daily_pvp_reward_send_time() const;
void set_daily_pvp_reward_send_time(::google::protobuf::int64 value);
// optional sfixed64 weekly_pvp_reward_send_time = 7;
bool has_weekly_pvp_reward_send_time() const;
void clear_weekly_pvp_reward_send_time();
static const int kWeeklyPvpRewardSendTimeFieldNumber = 7;
::google::protobuf::int64 weekly_pvp_reward_send_time() const;
void set_weekly_pvp_reward_send_time(::google::protobuf::int64 value);
// optional sfixed64 monthly_pvp_reward_send_time = 8;
bool has_monthly_pvp_reward_send_time() const;
void clear_monthly_pvp_reward_send_time();
static const int kMonthlyPvpRewardSendTimeFieldNumber = 8;
::google::protobuf::int64 monthly_pvp_reward_send_time() const;
void set_monthly_pvp_reward_send_time(::google::protobuf::int64 value);
// required int32 weekly_gift_id = 3;
bool has_weekly_gift_id() const;
void clear_weekly_gift_id();
static const int kWeeklyGiftIdFieldNumber = 3;
::google::protobuf::int32 weekly_gift_id() const;
void set_weekly_gift_id(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:db.GameState)
private:
void set_has_id();
void clear_has_id();
void set_has_daily_gift_id();
void clear_has_daily_gift_id();
void set_has_weekly_gift_id();
void clear_has_weekly_gift_id();
void set_has_daily_gift_refresh_time();
void clear_has_daily_gift_refresh_time();
void set_has_weekly_gift_refresh_time();
void clear_has_weekly_gift_refresh_time();
void set_has_daily_pvp_reward_send_time();
void clear_has_daily_pvp_reward_send_time();
void set_has_weekly_pvp_reward_send_time();
void clear_has_weekly_pvp_reward_send_time();
void set_has_monthly_pvp_reward_send_time();
void clear_has_monthly_pvp_reward_send_time();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::int32 id_;
::google::protobuf::int32 daily_gift_id_;
::google::protobuf::int64 daily_gift_refresh_time_;
::google::protobuf::int64 weekly_gift_refresh_time_;
::google::protobuf::int64 daily_pvp_reward_send_time_;
::google::protobuf::int64 weekly_pvp_reward_send_time_;
::google::protobuf::int64 monthly_pvp_reward_send_time_;
::google::protobuf::int32 weekly_gift_id_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class IslandBattleData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.IslandBattleData) */ {
public:
IslandBattleData();
virtual ~IslandBattleData();
IslandBattleData(const IslandBattleData& from);
inline IslandBattleData& operator=(const IslandBattleData& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
IslandBattleData(IslandBattleData&& from) noexcept
: IslandBattleData() {
*this = ::std::move(from);
}
inline IslandBattleData& operator=(IslandBattleData&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const IslandBattleData& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const IslandBattleData* internal_default_instance() {
return reinterpret_cast<const IslandBattleData*>(
&_IslandBattleData_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
void UnsafeArenaSwap(IslandBattleData* other);
void Swap(IslandBattleData* other);
friend void swap(IslandBattleData& a, IslandBattleData& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline IslandBattleData* New() const final {
return CreateMaybeMessage<IslandBattleData>(NULL);
}
IslandBattleData* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<IslandBattleData>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const IslandBattleData& from);
void MergeFrom(const IslandBattleData& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(IslandBattleData* other);
protected:
explicit IslandBattleData(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required bytes defender = 3;
bool has_defender() const;
void clear_defender();
static const int kDefenderFieldNumber = 3;
const ::std::string& defender() const;
void set_defender(const ::std::string& value);
#if LANG_CXX11
void set_defender(::std::string&& value);
#endif
void set_defender(const char* value);
void set_defender(const void* value, size_t size);
::std::string* mutable_defender();
::std::string* release_defender();
void set_allocated_defender(::std::string* defender);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_defender();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_defender(
::std::string* defender);
// required bytes defend_team = 4;
bool has_defend_team() const;
void clear_defend_team();
static const int kDefendTeamFieldNumber = 4;
const ::std::string& defend_team() const;
void set_defend_team(const ::std::string& value);
#if LANG_CXX11
void set_defend_team(::std::string&& value);
#endif
void set_defend_team(const char* value);
void set_defend_team(const void* value, size_t size);
::std::string* mutable_defend_team();
::std::string* release_defend_team();
void set_allocated_defend_team(::std::string* defend_team);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_defend_team();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_defend_team(
::std::string* defend_team);
// required bytes pve_map = 5;
bool has_pve_map() const;
void clear_pve_map();
static const int kPveMapFieldNumber = 5;
const ::std::string& pve_map() const;
void set_pve_map(const ::std::string& value);
#if LANG_CXX11
void set_pve_map(::std::string&& value);
#endif
void set_pve_map(const char* value);
void set_pve_map(const void* value, size_t size);
::std::string* mutable_pve_map();
::std::string* release_pve_map();
void set_allocated_pve_map(::std::string* pve_map);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_pve_map();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_pve_map(
::std::string* pve_map);
// required uint64 id = 1;
bool has_id() const;
void clear_id();
static const int kIdFieldNumber = 1;
::google::protobuf::uint64 id() const;
void set_id(::google::protobuf::uint64 value);
// required int32 type = 2;
bool has_type() const;
void clear_type();
static const int kTypeFieldNumber = 2;
::google::protobuf::int32 type() const;
void set_type(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:db.IslandBattleData)
private:
void set_has_id();
void clear_has_id();
void set_has_type();
void clear_has_type();
void set_has_defender();
void clear_has_defender();
void set_has_defend_team();
void clear_has_defend_team();
void set_has_pve_map();
void clear_has_pve_map();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr defender_;
::google::protobuf::internal::ArenaStringPtr defend_team_;
::google::protobuf::internal::ArenaStringPtr pve_map_;
::google::protobuf::uint64 id_;
::google::protobuf::int32 type_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class GameRanking : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.GameRanking) */ {
public:
GameRanking();
virtual ~GameRanking();
GameRanking(const GameRanking& from);
inline GameRanking& operator=(const GameRanking& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
GameRanking(GameRanking&& from) noexcept
: GameRanking() {
*this = ::std::move(from);
}
inline GameRanking& operator=(GameRanking&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GameRanking& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const GameRanking* internal_default_instance() {
return reinterpret_cast<const GameRanking*>(
&_GameRanking_default_instance_);
}
static constexpr int kIndexInFileMessages =
5;
void UnsafeArenaSwap(GameRanking* other);
void Swap(GameRanking* other);
friend void swap(GameRanking& a, GameRanking& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline GameRanking* New() const final {
return CreateMaybeMessage<GameRanking>(NULL);
}
GameRanking* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<GameRanking>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GameRanking& from);
void MergeFrom(const GameRanking& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(GameRanking* other);
protected:
explicit GameRanking(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required int32 ranking = 1;
bool has_ranking() const;
void clear_ranking();
static const int kRankingFieldNumber = 1;
::google::protobuf::int32 ranking() const;
void set_ranking(::google::protobuf::int32 value);
// required int32 ticketid = 2;
bool has_ticketid() const;
void clear_ticketid();
static const int kTicketidFieldNumber = 2;
::google::protobuf::int32 ticketid() const;
void set_ticketid(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:db.GameRanking)
private:
void set_has_ranking();
void clear_has_ranking();
void set_has_ticketid();
void clear_has_ticketid();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::int32 ranking_;
::google::protobuf::int32 ticketid_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class UserCommonData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.UserCommonData) */ {
public:
UserCommonData();
virtual ~UserCommonData();
UserCommonData(const UserCommonData& from);
inline UserCommonData& operator=(const UserCommonData& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
UserCommonData(UserCommonData&& from) noexcept
: UserCommonData() {
*this = ::std::move(from);
}
inline UserCommonData& operator=(UserCommonData&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const UserCommonData& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const UserCommonData* internal_default_instance() {
return reinterpret_cast<const UserCommonData*>(
&_UserCommonData_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
void UnsafeArenaSwap(UserCommonData* other);
void Swap(UserCommonData* other);
friend void swap(UserCommonData& a, UserCommonData& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline UserCommonData* New() const final {
return CreateMaybeMessage<UserCommonData>(NULL);
}
UserCommonData* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<UserCommonData>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const UserCommonData& from);
void MergeFrom(const UserCommonData& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(UserCommonData* other);
protected:
explicit UserCommonData(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required bytes userid = 1;
bool has_userid() const;
void clear_userid();
static const int kUseridFieldNumber = 1;
const ::std::string& userid() const;
void set_userid(const ::std::string& value);
#if LANG_CXX11
void set_userid(::std::string&& value);
#endif
void set_userid(const char* value);
void set_userid(const void* value, size_t size);
::std::string* mutable_userid();
::std::string* release_userid();
void set_allocated_userid(::std::string* userid);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_userid();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_userid(
::std::string* userid);
// required uint64 event_record_count = 2;
bool has_event_record_count() const;
void clear_event_record_count();
static const int kEventRecordCountFieldNumber = 2;
::google::protobuf::uint64 event_record_count() const;
void set_event_record_count(::google::protobuf::uint64 value);
// @@protoc_insertion_point(class_scope:db.UserCommonData)
private:
void set_has_userid();
void clear_has_userid();
void set_has_event_record_count();
void clear_has_event_record_count();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr userid_;
::google::protobuf::uint64 event_record_count_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_i_load_user_common_data_Parameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_i_load_user_common_data.Parameter) */ {
public:
proc_i_load_user_common_data_Parameter();
virtual ~proc_i_load_user_common_data_Parameter();
proc_i_load_user_common_data_Parameter(const proc_i_load_user_common_data_Parameter& from);
inline proc_i_load_user_common_data_Parameter& operator=(const proc_i_load_user_common_data_Parameter& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_i_load_user_common_data_Parameter(proc_i_load_user_common_data_Parameter&& from) noexcept
: proc_i_load_user_common_data_Parameter() {
*this = ::std::move(from);
}
inline proc_i_load_user_common_data_Parameter& operator=(proc_i_load_user_common_data_Parameter&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_i_load_user_common_data_Parameter& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_i_load_user_common_data_Parameter* internal_default_instance() {
return reinterpret_cast<const proc_i_load_user_common_data_Parameter*>(
&_proc_i_load_user_common_data_Parameter_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
void UnsafeArenaSwap(proc_i_load_user_common_data_Parameter* other);
void Swap(proc_i_load_user_common_data_Parameter* other);
friend void swap(proc_i_load_user_common_data_Parameter& a, proc_i_load_user_common_data_Parameter& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_i_load_user_common_data_Parameter* New() const final {
return CreateMaybeMessage<proc_i_load_user_common_data_Parameter>(NULL);
}
proc_i_load_user_common_data_Parameter* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_i_load_user_common_data_Parameter>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_i_load_user_common_data_Parameter& from);
void MergeFrom(const proc_i_load_user_common_data_Parameter& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_i_load_user_common_data_Parameter* other);
protected:
explicit proc_i_load_user_common_data_Parameter(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// @@protoc_insertion_point(class_scope:db.proc_i_load_user_common_data.Parameter)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_i_load_user_common_data_ReturnRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_i_load_user_common_data.ReturnRecord) */ {
public:
proc_i_load_user_common_data_ReturnRecord();
virtual ~proc_i_load_user_common_data_ReturnRecord();
proc_i_load_user_common_data_ReturnRecord(const proc_i_load_user_common_data_ReturnRecord& from);
inline proc_i_load_user_common_data_ReturnRecord& operator=(const proc_i_load_user_common_data_ReturnRecord& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_i_load_user_common_data_ReturnRecord(proc_i_load_user_common_data_ReturnRecord&& from) noexcept
: proc_i_load_user_common_data_ReturnRecord() {
*this = ::std::move(from);
}
inline proc_i_load_user_common_data_ReturnRecord& operator=(proc_i_load_user_common_data_ReturnRecord&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_i_load_user_common_data_ReturnRecord& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_i_load_user_common_data_ReturnRecord* internal_default_instance() {
return reinterpret_cast<const proc_i_load_user_common_data_ReturnRecord*>(
&_proc_i_load_user_common_data_ReturnRecord_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
void UnsafeArenaSwap(proc_i_load_user_common_data_ReturnRecord* other);
void Swap(proc_i_load_user_common_data_ReturnRecord* other);
friend void swap(proc_i_load_user_common_data_ReturnRecord& a, proc_i_load_user_common_data_ReturnRecord& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_i_load_user_common_data_ReturnRecord* New() const final {
return CreateMaybeMessage<proc_i_load_user_common_data_ReturnRecord>(NULL);
}
proc_i_load_user_common_data_ReturnRecord* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_i_load_user_common_data_ReturnRecord>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_i_load_user_common_data_ReturnRecord& from);
void MergeFrom(const proc_i_load_user_common_data_ReturnRecord& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_i_load_user_common_data_ReturnRecord* other);
protected:
explicit proc_i_load_user_common_data_ReturnRecord(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required .db.UserCommonData data = 1;
bool has_data() const;
void clear_data();
static const int kDataFieldNumber = 1;
private:
const ::db::UserCommonData& _internal_data() const;
public:
const ::db::UserCommonData& data() const;
::db::UserCommonData* release_data();
::db::UserCommonData* mutable_data();
void set_allocated_data(::db::UserCommonData* data);
void unsafe_arena_set_allocated_data(
::db::UserCommonData* data);
::db::UserCommonData* unsafe_arena_release_data();
// @@protoc_insertion_point(class_scope:db.proc_i_load_user_common_data.ReturnRecord)
private:
void set_has_data();
void clear_has_data();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::db::UserCommonData* data_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_i_load_user_common_data : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_i_load_user_common_data) */ {
public:
proc_i_load_user_common_data();
virtual ~proc_i_load_user_common_data();
proc_i_load_user_common_data(const proc_i_load_user_common_data& from);
inline proc_i_load_user_common_data& operator=(const proc_i_load_user_common_data& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_i_load_user_common_data(proc_i_load_user_common_data&& from) noexcept
: proc_i_load_user_common_data() {
*this = ::std::move(from);
}
inline proc_i_load_user_common_data& operator=(proc_i_load_user_common_data&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_i_load_user_common_data& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_i_load_user_common_data* internal_default_instance() {
return reinterpret_cast<const proc_i_load_user_common_data*>(
&_proc_i_load_user_common_data_default_instance_);
}
static constexpr int kIndexInFileMessages =
9;
void UnsafeArenaSwap(proc_i_load_user_common_data* other);
void Swap(proc_i_load_user_common_data* other);
friend void swap(proc_i_load_user_common_data& a, proc_i_load_user_common_data& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_i_load_user_common_data* New() const final {
return CreateMaybeMessage<proc_i_load_user_common_data>(NULL);
}
proc_i_load_user_common_data* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_i_load_user_common_data>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_i_load_user_common_data& from);
void MergeFrom(const proc_i_load_user_common_data& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_i_load_user_common_data* other);
protected:
explicit proc_i_load_user_common_data(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef proc_i_load_user_common_data_Parameter Parameter;
typedef proc_i_load_user_common_data_ReturnRecord ReturnRecord;
// accessors -------------------------------------------------------
// repeated .db.proc_i_load_user_common_data.ReturnRecord return_record_list = 2;
int return_record_list_size() const;
void clear_return_record_list();
static const int kReturnRecordListFieldNumber = 2;
::db::proc_i_load_user_common_data_ReturnRecord* mutable_return_record_list(int index);
::google::protobuf::RepeatedPtrField< ::db::proc_i_load_user_common_data_ReturnRecord >*
mutable_return_record_list();
const ::db::proc_i_load_user_common_data_ReturnRecord& return_record_list(int index) const;
::db::proc_i_load_user_common_data_ReturnRecord* add_return_record_list();
const ::google::protobuf::RepeatedPtrField< ::db::proc_i_load_user_common_data_ReturnRecord >&
return_record_list() const;
// optional .db.proc_i_load_user_common_data.Parameter param = 1;
bool has_param() const;
void clear_param();
static const int kParamFieldNumber = 1;
private:
const ::db::proc_i_load_user_common_data_Parameter& _internal_param() const;
public:
const ::db::proc_i_load_user_common_data_Parameter& param() const;
::db::proc_i_load_user_common_data_Parameter* release_param();
::db::proc_i_load_user_common_data_Parameter* mutable_param();
void set_allocated_param(::db::proc_i_load_user_common_data_Parameter* param);
void unsafe_arena_set_allocated_param(
::db::proc_i_load_user_common_data_Parameter* param);
::db::proc_i_load_user_common_data_Parameter* unsafe_arena_release_param();
// @@protoc_insertion_point(class_scope:db.proc_i_load_user_common_data)
private:
void set_has_param();
void clear_has_param();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::db::proc_i_load_user_common_data_ReturnRecord > return_record_list_;
::db::proc_i_load_user_common_data_Parameter* param_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_i_save_user_common_data_Parameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_i_save_user_common_data.Parameter) */ {
public:
proc_i_save_user_common_data_Parameter();
virtual ~proc_i_save_user_common_data_Parameter();
proc_i_save_user_common_data_Parameter(const proc_i_save_user_common_data_Parameter& from);
inline proc_i_save_user_common_data_Parameter& operator=(const proc_i_save_user_common_data_Parameter& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_i_save_user_common_data_Parameter(proc_i_save_user_common_data_Parameter&& from) noexcept
: proc_i_save_user_common_data_Parameter() {
*this = ::std::move(from);
}
inline proc_i_save_user_common_data_Parameter& operator=(proc_i_save_user_common_data_Parameter&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_i_save_user_common_data_Parameter& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_i_save_user_common_data_Parameter* internal_default_instance() {
return reinterpret_cast<const proc_i_save_user_common_data_Parameter*>(
&_proc_i_save_user_common_data_Parameter_default_instance_);
}
static constexpr int kIndexInFileMessages =
10;
void UnsafeArenaSwap(proc_i_save_user_common_data_Parameter* other);
void Swap(proc_i_save_user_common_data_Parameter* other);
friend void swap(proc_i_save_user_common_data_Parameter& a, proc_i_save_user_common_data_Parameter& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_i_save_user_common_data_Parameter* New() const final {
return CreateMaybeMessage<proc_i_save_user_common_data_Parameter>(NULL);
}
proc_i_save_user_common_data_Parameter* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_i_save_user_common_data_Parameter>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_i_save_user_common_data_Parameter& from);
void MergeFrom(const proc_i_save_user_common_data_Parameter& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_i_save_user_common_data_Parameter* other);
protected:
explicit proc_i_save_user_common_data_Parameter(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required .db.UserCommonData p_data = 1;
bool has_p_data() const;
void clear_p_data();
static const int kPDataFieldNumber = 1;
private:
const ::db::UserCommonData& _internal_p_data() const;
public:
const ::db::UserCommonData& p_data() const;
::db::UserCommonData* release_p_data();
::db::UserCommonData* mutable_p_data();
void set_allocated_p_data(::db::UserCommonData* p_data);
void unsafe_arena_set_allocated_p_data(
::db::UserCommonData* p_data);
::db::UserCommonData* unsafe_arena_release_p_data();
// @@protoc_insertion_point(class_scope:db.proc_i_save_user_common_data.Parameter)
private:
void set_has_p_data();
void clear_has_p_data();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::db::UserCommonData* p_data_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_i_save_user_common_data : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_i_save_user_common_data) */ {
public:
proc_i_save_user_common_data();
virtual ~proc_i_save_user_common_data();
proc_i_save_user_common_data(const proc_i_save_user_common_data& from);
inline proc_i_save_user_common_data& operator=(const proc_i_save_user_common_data& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_i_save_user_common_data(proc_i_save_user_common_data&& from) noexcept
: proc_i_save_user_common_data() {
*this = ::std::move(from);
}
inline proc_i_save_user_common_data& operator=(proc_i_save_user_common_data&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_i_save_user_common_data& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_i_save_user_common_data* internal_default_instance() {
return reinterpret_cast<const proc_i_save_user_common_data*>(
&_proc_i_save_user_common_data_default_instance_);
}
static constexpr int kIndexInFileMessages =
11;
void UnsafeArenaSwap(proc_i_save_user_common_data* other);
void Swap(proc_i_save_user_common_data* other);
friend void swap(proc_i_save_user_common_data& a, proc_i_save_user_common_data& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_i_save_user_common_data* New() const final {
return CreateMaybeMessage<proc_i_save_user_common_data>(NULL);
}
proc_i_save_user_common_data* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_i_save_user_common_data>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_i_save_user_common_data& from);
void MergeFrom(const proc_i_save_user_common_data& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_i_save_user_common_data* other);
protected:
explicit proc_i_save_user_common_data(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef proc_i_save_user_common_data_Parameter Parameter;
// accessors -------------------------------------------------------
// optional .db.proc_i_save_user_common_data.Parameter param = 1;
bool has_param() const;
void clear_param();
static const int kParamFieldNumber = 1;
private:
const ::db::proc_i_save_user_common_data_Parameter& _internal_param() const;
public:
const ::db::proc_i_save_user_common_data_Parameter& param() const;
::db::proc_i_save_user_common_data_Parameter* release_param();
::db::proc_i_save_user_common_data_Parameter* mutable_param();
void set_allocated_param(::db::proc_i_save_user_common_data_Parameter* param);
void unsafe_arena_set_allocated_param(
::db::proc_i_save_user_common_data_Parameter* param);
::db::proc_i_save_user_common_data_Parameter* unsafe_arena_release_param();
// @@protoc_insertion_point(class_scope:db.proc_i_save_user_common_data)
private:
void set_has_param();
void clear_has_param();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::db::proc_i_save_user_common_data_Parameter* param_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class UserRankingData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.UserRankingData) */ {
public:
UserRankingData();
virtual ~UserRankingData();
UserRankingData(const UserRankingData& from);
inline UserRankingData& operator=(const UserRankingData& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
UserRankingData(UserRankingData&& from) noexcept
: UserRankingData() {
*this = ::std::move(from);
}
inline UserRankingData& operator=(UserRankingData&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const UserRankingData& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const UserRankingData* internal_default_instance() {
return reinterpret_cast<const UserRankingData*>(
&_UserRankingData_default_instance_);
}
static constexpr int kIndexInFileMessages =
12;
void UnsafeArenaSwap(UserRankingData* other);
void Swap(UserRankingData* other);
friend void swap(UserRankingData& a, UserRankingData& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline UserRankingData* New() const final {
return CreateMaybeMessage<UserRankingData>(NULL);
}
UserRankingData* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<UserRankingData>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const UserRankingData& from);
void MergeFrom(const UserRankingData& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(UserRankingData* other);
protected:
explicit UserRankingData(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required bytes team = 6;
bool has_team() const;
void clear_team();
static const int kTeamFieldNumber = 6;
const ::std::string& team() const;
void set_team(const ::std::string& value);
#if LANG_CXX11
void set_team(::std::string&& value);
#endif
void set_team(const char* value);
void set_team(const void* value, size_t size);
::std::string* mutable_team();
::std::string* release_team();
void set_allocated_team(::std::string* team);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_team();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_team(
::std::string* team);
// required int32 ticketid = 1;
bool has_ticketid() const;
void clear_ticketid();
static const int kTicketidFieldNumber = 1;
::google::protobuf::int32 ticketid() const;
void set_ticketid(::google::protobuf::int32 value);
// required int32 ranking_score = 2;
bool has_ranking_score() const;
void clear_ranking_score();
static const int kRankingScoreFieldNumber = 2;
::google::protobuf::int32 ranking_score() const;
void set_ranking_score(::google::protobuf::int32 value);
// required int32 win = 3;
bool has_win() const;
void clear_win();
static const int kWinFieldNumber = 3;
::google::protobuf::int32 win() const;
void set_win(::google::protobuf::int32 value);
// required int32 lose = 4;
bool has_lose() const;
void clear_lose();
static const int kLoseFieldNumber = 4;
::google::protobuf::int32 lose() const;
void set_lose(::google::protobuf::int32 value);
// required sfixed64 timestamp = 5;
bool has_timestamp() const;
void clear_timestamp();
static const int kTimestampFieldNumber = 5;
::google::protobuf::int64 timestamp() const;
void set_timestamp(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:db.UserRankingData)
private:
void set_has_ticketid();
void clear_has_ticketid();
void set_has_ranking_score();
void clear_has_ranking_score();
void set_has_win();
void clear_has_win();
void set_has_lose();
void clear_has_lose();
void set_has_timestamp();
void clear_has_timestamp();
void set_has_team();
void clear_has_team();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr team_;
::google::protobuf::int32 ticketid_;
::google::protobuf::int32 ranking_score_;
::google::protobuf::int32 win_;
::google::protobuf::int32 lose_;
::google::protobuf::int64 timestamp_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_i_load_user_ranking_data_Parameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_i_load_user_ranking_data.Parameter) */ {
public:
proc_i_load_user_ranking_data_Parameter();
virtual ~proc_i_load_user_ranking_data_Parameter();
proc_i_load_user_ranking_data_Parameter(const proc_i_load_user_ranking_data_Parameter& from);
inline proc_i_load_user_ranking_data_Parameter& operator=(const proc_i_load_user_ranking_data_Parameter& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_i_load_user_ranking_data_Parameter(proc_i_load_user_ranking_data_Parameter&& from) noexcept
: proc_i_load_user_ranking_data_Parameter() {
*this = ::std::move(from);
}
inline proc_i_load_user_ranking_data_Parameter& operator=(proc_i_load_user_ranking_data_Parameter&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_i_load_user_ranking_data_Parameter& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_i_load_user_ranking_data_Parameter* internal_default_instance() {
return reinterpret_cast<const proc_i_load_user_ranking_data_Parameter*>(
&_proc_i_load_user_ranking_data_Parameter_default_instance_);
}
static constexpr int kIndexInFileMessages =
13;
void UnsafeArenaSwap(proc_i_load_user_ranking_data_Parameter* other);
void Swap(proc_i_load_user_ranking_data_Parameter* other);
friend void swap(proc_i_load_user_ranking_data_Parameter& a, proc_i_load_user_ranking_data_Parameter& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_i_load_user_ranking_data_Parameter* New() const final {
return CreateMaybeMessage<proc_i_load_user_ranking_data_Parameter>(NULL);
}
proc_i_load_user_ranking_data_Parameter* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_i_load_user_ranking_data_Parameter>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_i_load_user_ranking_data_Parameter& from);
void MergeFrom(const proc_i_load_user_ranking_data_Parameter& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_i_load_user_ranking_data_Parameter* other);
protected:
explicit proc_i_load_user_ranking_data_Parameter(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// @@protoc_insertion_point(class_scope:db.proc_i_load_user_ranking_data.Parameter)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_i_load_user_ranking_data_ReturnRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_i_load_user_ranking_data.ReturnRecord) */ {
public:
proc_i_load_user_ranking_data_ReturnRecord();
virtual ~proc_i_load_user_ranking_data_ReturnRecord();
proc_i_load_user_ranking_data_ReturnRecord(const proc_i_load_user_ranking_data_ReturnRecord& from);
inline proc_i_load_user_ranking_data_ReturnRecord& operator=(const proc_i_load_user_ranking_data_ReturnRecord& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_i_load_user_ranking_data_ReturnRecord(proc_i_load_user_ranking_data_ReturnRecord&& from) noexcept
: proc_i_load_user_ranking_data_ReturnRecord() {
*this = ::std::move(from);
}
inline proc_i_load_user_ranking_data_ReturnRecord& operator=(proc_i_load_user_ranking_data_ReturnRecord&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_i_load_user_ranking_data_ReturnRecord& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_i_load_user_ranking_data_ReturnRecord* internal_default_instance() {
return reinterpret_cast<const proc_i_load_user_ranking_data_ReturnRecord*>(
&_proc_i_load_user_ranking_data_ReturnRecord_default_instance_);
}
static constexpr int kIndexInFileMessages =
14;
void UnsafeArenaSwap(proc_i_load_user_ranking_data_ReturnRecord* other);
void Swap(proc_i_load_user_ranking_data_ReturnRecord* other);
friend void swap(proc_i_load_user_ranking_data_ReturnRecord& a, proc_i_load_user_ranking_data_ReturnRecord& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_i_load_user_ranking_data_ReturnRecord* New() const final {
return CreateMaybeMessage<proc_i_load_user_ranking_data_ReturnRecord>(NULL);
}
proc_i_load_user_ranking_data_ReturnRecord* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_i_load_user_ranking_data_ReturnRecord>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_i_load_user_ranking_data_ReturnRecord& from);
void MergeFrom(const proc_i_load_user_ranking_data_ReturnRecord& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_i_load_user_ranking_data_ReturnRecord* other);
protected:
explicit proc_i_load_user_ranking_data_ReturnRecord(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required .db.UserRankingData data = 1;
bool has_data() const;
void clear_data();
static const int kDataFieldNumber = 1;
private:
const ::db::UserRankingData& _internal_data() const;
public:
const ::db::UserRankingData& data() const;
::db::UserRankingData* release_data();
::db::UserRankingData* mutable_data();
void set_allocated_data(::db::UserRankingData* data);
void unsafe_arena_set_allocated_data(
::db::UserRankingData* data);
::db::UserRankingData* unsafe_arena_release_data();
// @@protoc_insertion_point(class_scope:db.proc_i_load_user_ranking_data.ReturnRecord)
private:
void set_has_data();
void clear_has_data();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::db::UserRankingData* data_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_i_load_user_ranking_data : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_i_load_user_ranking_data) */ {
public:
proc_i_load_user_ranking_data();
virtual ~proc_i_load_user_ranking_data();
proc_i_load_user_ranking_data(const proc_i_load_user_ranking_data& from);
inline proc_i_load_user_ranking_data& operator=(const proc_i_load_user_ranking_data& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_i_load_user_ranking_data(proc_i_load_user_ranking_data&& from) noexcept
: proc_i_load_user_ranking_data() {
*this = ::std::move(from);
}
inline proc_i_load_user_ranking_data& operator=(proc_i_load_user_ranking_data&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_i_load_user_ranking_data& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_i_load_user_ranking_data* internal_default_instance() {
return reinterpret_cast<const proc_i_load_user_ranking_data*>(
&_proc_i_load_user_ranking_data_default_instance_);
}
static constexpr int kIndexInFileMessages =
15;
void UnsafeArenaSwap(proc_i_load_user_ranking_data* other);
void Swap(proc_i_load_user_ranking_data* other);
friend void swap(proc_i_load_user_ranking_data& a, proc_i_load_user_ranking_data& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_i_load_user_ranking_data* New() const final {
return CreateMaybeMessage<proc_i_load_user_ranking_data>(NULL);
}
proc_i_load_user_ranking_data* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_i_load_user_ranking_data>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_i_load_user_ranking_data& from);
void MergeFrom(const proc_i_load_user_ranking_data& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_i_load_user_ranking_data* other);
protected:
explicit proc_i_load_user_ranking_data(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef proc_i_load_user_ranking_data_Parameter Parameter;
typedef proc_i_load_user_ranking_data_ReturnRecord ReturnRecord;
// accessors -------------------------------------------------------
// repeated .db.proc_i_load_user_ranking_data.ReturnRecord return_record_list = 2;
int return_record_list_size() const;
void clear_return_record_list();
static const int kReturnRecordListFieldNumber = 2;
::db::proc_i_load_user_ranking_data_ReturnRecord* mutable_return_record_list(int index);
::google::protobuf::RepeatedPtrField< ::db::proc_i_load_user_ranking_data_ReturnRecord >*
mutable_return_record_list();
const ::db::proc_i_load_user_ranking_data_ReturnRecord& return_record_list(int index) const;
::db::proc_i_load_user_ranking_data_ReturnRecord* add_return_record_list();
const ::google::protobuf::RepeatedPtrField< ::db::proc_i_load_user_ranking_data_ReturnRecord >&
return_record_list() const;
// optional .db.proc_i_load_user_ranking_data.Parameter param = 1;
bool has_param() const;
void clear_param();
static const int kParamFieldNumber = 1;
private:
const ::db::proc_i_load_user_ranking_data_Parameter& _internal_param() const;
public:
const ::db::proc_i_load_user_ranking_data_Parameter& param() const;
::db::proc_i_load_user_ranking_data_Parameter* release_param();
::db::proc_i_load_user_ranking_data_Parameter* mutable_param();
void set_allocated_param(::db::proc_i_load_user_ranking_data_Parameter* param);
void unsafe_arena_set_allocated_param(
::db::proc_i_load_user_ranking_data_Parameter* param);
::db::proc_i_load_user_ranking_data_Parameter* unsafe_arena_release_param();
// @@protoc_insertion_point(class_scope:db.proc_i_load_user_ranking_data)
private:
void set_has_param();
void clear_has_param();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::db::proc_i_load_user_ranking_data_ReturnRecord > return_record_list_;
::db::proc_i_load_user_ranking_data_Parameter* param_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_i_save_user_ranking_data_Parameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_i_save_user_ranking_data.Parameter) */ {
public:
proc_i_save_user_ranking_data_Parameter();
virtual ~proc_i_save_user_ranking_data_Parameter();
proc_i_save_user_ranking_data_Parameter(const proc_i_save_user_ranking_data_Parameter& from);
inline proc_i_save_user_ranking_data_Parameter& operator=(const proc_i_save_user_ranking_data_Parameter& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_i_save_user_ranking_data_Parameter(proc_i_save_user_ranking_data_Parameter&& from) noexcept
: proc_i_save_user_ranking_data_Parameter() {
*this = ::std::move(from);
}
inline proc_i_save_user_ranking_data_Parameter& operator=(proc_i_save_user_ranking_data_Parameter&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_i_save_user_ranking_data_Parameter& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_i_save_user_ranking_data_Parameter* internal_default_instance() {
return reinterpret_cast<const proc_i_save_user_ranking_data_Parameter*>(
&_proc_i_save_user_ranking_data_Parameter_default_instance_);
}
static constexpr int kIndexInFileMessages =
16;
void UnsafeArenaSwap(proc_i_save_user_ranking_data_Parameter* other);
void Swap(proc_i_save_user_ranking_data_Parameter* other);
friend void swap(proc_i_save_user_ranking_data_Parameter& a, proc_i_save_user_ranking_data_Parameter& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_i_save_user_ranking_data_Parameter* New() const final {
return CreateMaybeMessage<proc_i_save_user_ranking_data_Parameter>(NULL);
}
proc_i_save_user_ranking_data_Parameter* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_i_save_user_ranking_data_Parameter>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_i_save_user_ranking_data_Parameter& from);
void MergeFrom(const proc_i_save_user_ranking_data_Parameter& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_i_save_user_ranking_data_Parameter* other);
protected:
explicit proc_i_save_user_ranking_data_Parameter(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required .db.UserRankingData p_data = 1;
bool has_p_data() const;
void clear_p_data();
static const int kPDataFieldNumber = 1;
private:
const ::db::UserRankingData& _internal_p_data() const;
public:
const ::db::UserRankingData& p_data() const;
::db::UserRankingData* release_p_data();
::db::UserRankingData* mutable_p_data();
void set_allocated_p_data(::db::UserRankingData* p_data);
void unsafe_arena_set_allocated_p_data(
::db::UserRankingData* p_data);
::db::UserRankingData* unsafe_arena_release_p_data();
// @@protoc_insertion_point(class_scope:db.proc_i_save_user_ranking_data.Parameter)
private:
void set_has_p_data();
void clear_has_p_data();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::db::UserRankingData* p_data_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class proc_i_save_user_ranking_data : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.proc_i_save_user_ranking_data) */ {
public:
proc_i_save_user_ranking_data();
virtual ~proc_i_save_user_ranking_data();
proc_i_save_user_ranking_data(const proc_i_save_user_ranking_data& from);
inline proc_i_save_user_ranking_data& operator=(const proc_i_save_user_ranking_data& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
proc_i_save_user_ranking_data(proc_i_save_user_ranking_data&& from) noexcept
: proc_i_save_user_ranking_data() {
*this = ::std::move(from);
}
inline proc_i_save_user_ranking_data& operator=(proc_i_save_user_ranking_data&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const proc_i_save_user_ranking_data& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const proc_i_save_user_ranking_data* internal_default_instance() {
return reinterpret_cast<const proc_i_save_user_ranking_data*>(
&_proc_i_save_user_ranking_data_default_instance_);
}
static constexpr int kIndexInFileMessages =
17;
void UnsafeArenaSwap(proc_i_save_user_ranking_data* other);
void Swap(proc_i_save_user_ranking_data* other);
friend void swap(proc_i_save_user_ranking_data& a, proc_i_save_user_ranking_data& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline proc_i_save_user_ranking_data* New() const final {
return CreateMaybeMessage<proc_i_save_user_ranking_data>(NULL);
}
proc_i_save_user_ranking_data* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<proc_i_save_user_ranking_data>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const proc_i_save_user_ranking_data& from);
void MergeFrom(const proc_i_save_user_ranking_data& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(proc_i_save_user_ranking_data* other);
protected:
explicit proc_i_save_user_ranking_data(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef proc_i_save_user_ranking_data_Parameter Parameter;
// accessors -------------------------------------------------------
// optional .db.proc_i_save_user_ranking_data.Parameter param = 1;
bool has_param() const;
void clear_param();
static const int kParamFieldNumber = 1;
private:
const ::db::proc_i_save_user_ranking_data_Parameter& _internal_param() const;
public:
const ::db::proc_i_save_user_ranking_data_Parameter& param() const;
::db::proc_i_save_user_ranking_data_Parameter* release_param();
::db::proc_i_save_user_ranking_data_Parameter* mutable_param();
void set_allocated_param(::db::proc_i_save_user_ranking_data_Parameter* param);
void unsafe_arena_set_allocated_param(
::db::proc_i_save_user_ranking_data_Parameter* param);
::db::proc_i_save_user_ranking_data_Parameter* unsafe_arena_release_param();
// @@protoc_insertion_point(class_scope:db.proc_i_save_user_ranking_data)
private:
void set_has_param();
void clear_has_param();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::db::proc_i_save_user_ranking_data_Parameter* param_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class ConfigGameServer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.ConfigGameServer) */ {
public:
ConfigGameServer();
virtual ~ConfigGameServer();
ConfigGameServer(const ConfigGameServer& from);
inline ConfigGameServer& operator=(const ConfigGameServer& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
ConfigGameServer(ConfigGameServer&& from) noexcept
: ConfigGameServer() {
*this = ::std::move(from);
}
inline ConfigGameServer& operator=(ConfigGameServer&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ConfigGameServer& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const ConfigGameServer* internal_default_instance() {
return reinterpret_cast<const ConfigGameServer*>(
&_ConfigGameServer_default_instance_);
}
static constexpr int kIndexInFileMessages =
18;
void UnsafeArenaSwap(ConfigGameServer* other);
void Swap(ConfigGameServer* other);
friend void swap(ConfigGameServer& a, ConfigGameServer& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline ConfigGameServer* New() const final {
return CreateMaybeMessage<ConfigGameServer>(NULL);
}
ConfigGameServer* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<ConfigGameServer>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ConfigGameServer& from);
void MergeFrom(const ConfigGameServer& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ConfigGameServer* other);
protected:
explicit ConfigGameServer(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required bytes ghost_ship_reset_cost = 8;
bool has_ghost_ship_reset_cost() const;
void clear_ghost_ship_reset_cost();
static const int kGhostShipResetCostFieldNumber = 8;
const ::std::string& ghost_ship_reset_cost() const;
void set_ghost_ship_reset_cost(const ::std::string& value);
#if LANG_CXX11
void set_ghost_ship_reset_cost(::std::string&& value);
#endif
void set_ghost_ship_reset_cost(const char* value);
void set_ghost_ship_reset_cost(const void* value, size_t size);
::std::string* mutable_ghost_ship_reset_cost();
::std::string* release_ghost_ship_reset_cost();
void set_allocated_ghost_ship_reset_cost(::std::string* ghost_ship_reset_cost);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_ghost_ship_reset_cost();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_ghost_ship_reset_cost(
::std::string* ghost_ship_reset_cost);
// required bytes jjc_daily_mail_title = 11;
bool has_jjc_daily_mail_title() const;
void clear_jjc_daily_mail_title();
static const int kJjcDailyMailTitleFieldNumber = 11;
const ::std::string& jjc_daily_mail_title() const;
void set_jjc_daily_mail_title(const ::std::string& value);
#if LANG_CXX11
void set_jjc_daily_mail_title(::std::string&& value);
#endif
void set_jjc_daily_mail_title(const char* value);
void set_jjc_daily_mail_title(const void* value, size_t size);
::std::string* mutable_jjc_daily_mail_title();
::std::string* release_jjc_daily_mail_title();
void set_allocated_jjc_daily_mail_title(::std::string* jjc_daily_mail_title);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_jjc_daily_mail_title();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_jjc_daily_mail_title(
::std::string* jjc_daily_mail_title);
// required bytes jjc_daily_mail_content = 12;
bool has_jjc_daily_mail_content() const;
void clear_jjc_daily_mail_content();
static const int kJjcDailyMailContentFieldNumber = 12;
const ::std::string& jjc_daily_mail_content() const;
void set_jjc_daily_mail_content(const ::std::string& value);
#if LANG_CXX11
void set_jjc_daily_mail_content(::std::string&& value);
#endif
void set_jjc_daily_mail_content(const char* value);
void set_jjc_daily_mail_content(const void* value, size_t size);
::std::string* mutable_jjc_daily_mail_content();
::std::string* release_jjc_daily_mail_content();
void set_allocated_jjc_daily_mail_content(::std::string* jjc_daily_mail_content);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_jjc_daily_mail_content();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_jjc_daily_mail_content(
::std::string* jjc_daily_mail_content);
// required bytes jjc_weekly_mail_title = 13;
bool has_jjc_weekly_mail_title() const;
void clear_jjc_weekly_mail_title();
static const int kJjcWeeklyMailTitleFieldNumber = 13;
const ::std::string& jjc_weekly_mail_title() const;
void set_jjc_weekly_mail_title(const ::std::string& value);
#if LANG_CXX11
void set_jjc_weekly_mail_title(::std::string&& value);
#endif
void set_jjc_weekly_mail_title(const char* value);
void set_jjc_weekly_mail_title(const void* value, size_t size);
::std::string* mutable_jjc_weekly_mail_title();
::std::string* release_jjc_weekly_mail_title();
void set_allocated_jjc_weekly_mail_title(::std::string* jjc_weekly_mail_title);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_jjc_weekly_mail_title();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_jjc_weekly_mail_title(
::std::string* jjc_weekly_mail_title);
// required bytes jjc_weekly_mail_content = 14;
bool has_jjc_weekly_mail_content() const;
void clear_jjc_weekly_mail_content();
static const int kJjcWeeklyMailContentFieldNumber = 14;
const ::std::string& jjc_weekly_mail_content() const;
void set_jjc_weekly_mail_content(const ::std::string& value);
#if LANG_CXX11
void set_jjc_weekly_mail_content(::std::string&& value);
#endif
void set_jjc_weekly_mail_content(const char* value);
void set_jjc_weekly_mail_content(const void* value, size_t size);
::std::string* mutable_jjc_weekly_mail_content();
::std::string* release_jjc_weekly_mail_content();
void set_allocated_jjc_weekly_mail_content(::std::string* jjc_weekly_mail_content);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_jjc_weekly_mail_content();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_jjc_weekly_mail_content(
::std::string* jjc_weekly_mail_content);
// required bytes jjc_monthly_mail_title = 15;
bool has_jjc_monthly_mail_title() const;
void clear_jjc_monthly_mail_title();
static const int kJjcMonthlyMailTitleFieldNumber = 15;
const ::std::string& jjc_monthly_mail_title() const;
void set_jjc_monthly_mail_title(const ::std::string& value);
#if LANG_CXX11
void set_jjc_monthly_mail_title(::std::string&& value);
#endif
void set_jjc_monthly_mail_title(const char* value);
void set_jjc_monthly_mail_title(const void* value, size_t size);
::std::string* mutable_jjc_monthly_mail_title();
::std::string* release_jjc_monthly_mail_title();
void set_allocated_jjc_monthly_mail_title(::std::string* jjc_monthly_mail_title);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_jjc_monthly_mail_title();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_jjc_monthly_mail_title(
::std::string* jjc_monthly_mail_title);
// required bytes jjc_monthly_mail_content = 16;
bool has_jjc_monthly_mail_content() const;
void clear_jjc_monthly_mail_content();
static const int kJjcMonthlyMailContentFieldNumber = 16;
const ::std::string& jjc_monthly_mail_content() const;
void set_jjc_monthly_mail_content(const ::std::string& value);
#if LANG_CXX11
void set_jjc_monthly_mail_content(::std::string&& value);
#endif
void set_jjc_monthly_mail_content(const char* value);
void set_jjc_monthly_mail_content(const void* value, size_t size);
::std::string* mutable_jjc_monthly_mail_content();
::std::string* release_jjc_monthly_mail_content();
void set_allocated_jjc_monthly_mail_content(::std::string* jjc_monthly_mail_content);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_jjc_monthly_mail_content();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_jjc_monthly_mail_content(
::std::string* jjc_monthly_mail_content);
// required int32 first_gold_lottery_id_once = 1;
bool has_first_gold_lottery_id_once() const;
void clear_first_gold_lottery_id_once();
static const int kFirstGoldLotteryIdOnceFieldNumber = 1;
::google::protobuf::int32 first_gold_lottery_id_once() const;
void set_first_gold_lottery_id_once(::google::protobuf::int32 value);
// required int32 first_diamond_lottery_id_ten = 2;
bool has_first_diamond_lottery_id_ten() const;
void clear_first_diamond_lottery_id_ten();
static const int kFirstDiamondLotteryIdTenFieldNumber = 2;
::google::protobuf::int32 first_diamond_lottery_id_ten() const;
void set_first_diamond_lottery_id_ten(::google::protobuf::int32 value);
// required int32 max_daily_system_task_num = 3;
bool has_max_daily_system_task_num() const;
void clear_max_daily_system_task_num();
static const int kMaxDailySystemTaskNumFieldNumber = 3;
::google::protobuf::int32 max_daily_system_task_num() const;
void set_max_daily_system_task_num(::google::protobuf::int32 value);
// required int32 max_occupy_monster_ship_times = 4;
bool has_max_occupy_monster_ship_times() const;
void clear_max_occupy_monster_ship_times();
static const int kMaxOccupyMonsterShipTimesFieldNumber = 4;
::google::protobuf::int32 max_occupy_monster_ship_times() const;
void set_max_occupy_monster_ship_times(::google::protobuf::int32 value);
// required int32 max_occupy_player_ship_times = 5;
bool has_max_occupy_player_ship_times() const;
void clear_max_occupy_player_ship_times();
static const int kMaxOccupyPlayerShipTimesFieldNumber = 5;
::google::protobuf::int32 max_occupy_player_ship_times() const;
void set_max_occupy_player_ship_times(::google::protobuf::int32 value);
// required int32 max_occupy_special_ship_times = 6;
bool has_max_occupy_special_ship_times() const;
void clear_max_occupy_special_ship_times();
static const int kMaxOccupySpecialShipTimesFieldNumber = 6;
::google::protobuf::int32 max_occupy_special_ship_times() const;
void set_max_occupy_special_ship_times(::google::protobuf::int32 value);
// required int32 max_ghost_ship_reset_times = 7;
bool has_max_ghost_ship_reset_times() const;
void clear_max_ghost_ship_reset_times();
static const int kMaxGhostShipResetTimesFieldNumber = 7;
::google::protobuf::int32 max_ghost_ship_reset_times() const;
void set_max_ghost_ship_reset_times(::google::protobuf::int32 value);
// required int32 max_fast_reach_ticket_num = 9;
bool has_max_fast_reach_ticket_num() const;
void clear_max_fast_reach_ticket_num();
static const int kMaxFastReachTicketNumFieldNumber = 9;
::google::protobuf::int32 max_fast_reach_ticket_num() const;
void set_max_fast_reach_ticket_num(::google::protobuf::int32 value);
// required int32 fast_reach_ticket_cd = 10;
bool has_fast_reach_ticket_cd() const;
void clear_fast_reach_ticket_cd();
static const int kFastReachTicketCdFieldNumber = 10;
::google::protobuf::int32 fast_reach_ticket_cd() const;
void set_fast_reach_ticket_cd(::google::protobuf::int32 value);
// required int32 repeat_task_refresh_times = 17;
bool has_repeat_task_refresh_times() const;
void clear_repeat_task_refresh_times();
static const int kRepeatTaskRefreshTimesFieldNumber = 17;
::google::protobuf::int32 repeat_task_refresh_times() const;
void set_repeat_task_refresh_times(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:db.ConfigGameServer)
private:
void set_has_first_gold_lottery_id_once();
void clear_has_first_gold_lottery_id_once();
void set_has_first_diamond_lottery_id_ten();
void clear_has_first_diamond_lottery_id_ten();
void set_has_max_daily_system_task_num();
void clear_has_max_daily_system_task_num();
void set_has_max_occupy_monster_ship_times();
void clear_has_max_occupy_monster_ship_times();
void set_has_max_occupy_player_ship_times();
void clear_has_max_occupy_player_ship_times();
void set_has_max_occupy_special_ship_times();
void clear_has_max_occupy_special_ship_times();
void set_has_max_ghost_ship_reset_times();
void clear_has_max_ghost_ship_reset_times();
void set_has_ghost_ship_reset_cost();
void clear_has_ghost_ship_reset_cost();
void set_has_max_fast_reach_ticket_num();
void clear_has_max_fast_reach_ticket_num();
void set_has_fast_reach_ticket_cd();
void clear_has_fast_reach_ticket_cd();
void set_has_jjc_daily_mail_title();
void clear_has_jjc_daily_mail_title();
void set_has_jjc_daily_mail_content();
void clear_has_jjc_daily_mail_content();
void set_has_jjc_weekly_mail_title();
void clear_has_jjc_weekly_mail_title();
void set_has_jjc_weekly_mail_content();
void clear_has_jjc_weekly_mail_content();
void set_has_jjc_monthly_mail_title();
void clear_has_jjc_monthly_mail_title();
void set_has_jjc_monthly_mail_content();
void clear_has_jjc_monthly_mail_content();
void set_has_repeat_task_refresh_times();
void clear_has_repeat_task_refresh_times();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr ghost_ship_reset_cost_;
::google::protobuf::internal::ArenaStringPtr jjc_daily_mail_title_;
::google::protobuf::internal::ArenaStringPtr jjc_daily_mail_content_;
::google::protobuf::internal::ArenaStringPtr jjc_weekly_mail_title_;
::google::protobuf::internal::ArenaStringPtr jjc_weekly_mail_content_;
::google::protobuf::internal::ArenaStringPtr jjc_monthly_mail_title_;
::google::protobuf::internal::ArenaStringPtr jjc_monthly_mail_content_;
::google::protobuf::int32 first_gold_lottery_id_once_;
::google::protobuf::int32 first_diamond_lottery_id_ten_;
::google::protobuf::int32 max_daily_system_task_num_;
::google::protobuf::int32 max_occupy_monster_ship_times_;
::google::protobuf::int32 max_occupy_player_ship_times_;
::google::protobuf::int32 max_occupy_special_ship_times_;
::google::protobuf::int32 max_ghost_ship_reset_times_;
::google::protobuf::int32 max_fast_reach_ticket_num_;
::google::protobuf::int32 fast_reach_ticket_cd_;
::google::protobuf::int32 repeat_task_refresh_times_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class GameRobot : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.GameRobot) */ {
public:
GameRobot();
virtual ~GameRobot();
GameRobot(const GameRobot& from);
inline GameRobot& operator=(const GameRobot& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
GameRobot(GameRobot&& from) noexcept
: GameRobot() {
*this = ::std::move(from);
}
inline GameRobot& operator=(GameRobot&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GameRobot& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const GameRobot* internal_default_instance() {
return reinterpret_cast<const GameRobot*>(
&_GameRobot_default_instance_);
}
static constexpr int kIndexInFileMessages =
19;
void UnsafeArenaSwap(GameRobot* other);
void Swap(GameRobot* other);
friend void swap(GameRobot& a, GameRobot& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline GameRobot* New() const final {
return CreateMaybeMessage<GameRobot>(NULL);
}
GameRobot* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<GameRobot>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GameRobot& from);
void MergeFrom(const GameRobot& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(GameRobot* other);
protected:
explicit GameRobot(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required int32 id = 1;
bool has_id() const;
void clear_id();
static const int kIdFieldNumber = 1;
::google::protobuf::int32 id() const;
void set_id(::google::protobuf::int32 value);
// required int32 ticketid = 2;
bool has_ticketid() const;
void clear_ticketid();
static const int kTicketidFieldNumber = 2;
::google::protobuf::int32 ticketid() const;
void set_ticketid(::google::protobuf::int32 value);
// required int32 init_level = 3;
bool has_init_level() const;
void clear_init_level();
static const int kInitLevelFieldNumber = 3;
::google::protobuf::int32 init_level() const;
void set_init_level(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:db.GameRobot)
private:
void set_has_id();
void clear_has_id();
void set_has_ticketid();
void clear_has_ticketid();
void set_has_init_level();
void clear_has_init_level();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::int32 id_;
::google::protobuf::int32 ticketid_;
::google::protobuf::int32 init_level_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class GameAnnouncement : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:db.GameAnnouncement) */ {
public:
GameAnnouncement();
virtual ~GameAnnouncement();
GameAnnouncement(const GameAnnouncement& from);
inline GameAnnouncement& operator=(const GameAnnouncement& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
GameAnnouncement(GameAnnouncement&& from) noexcept
: GameAnnouncement() {
*this = ::std::move(from);
}
inline GameAnnouncement& operator=(GameAnnouncement&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GameAnnouncement& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const GameAnnouncement* internal_default_instance() {
return reinterpret_cast<const GameAnnouncement*>(
&_GameAnnouncement_default_instance_);
}
static constexpr int kIndexInFileMessages =
20;
void UnsafeArenaSwap(GameAnnouncement* other);
void Swap(GameAnnouncement* other);
friend void swap(GameAnnouncement& a, GameAnnouncement& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline GameAnnouncement* New() const final {
return CreateMaybeMessage<GameAnnouncement>(NULL);
}
GameAnnouncement* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<GameAnnouncement>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GameAnnouncement& from);
void MergeFrom(const GameAnnouncement& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(GameAnnouncement* other);
protected:
explicit GameAnnouncement(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required bytes data = 6;
bool has_data() const;
void clear_data();
static const int kDataFieldNumber = 6;
const ::std::string& data() const;
void set_data(const ::std::string& value);
#if LANG_CXX11
void set_data(::std::string&& value);
#endif
void set_data(const char* value);
void set_data(const void* value, size_t size);
::std::string* mutable_data();
::std::string* release_data();
void set_allocated_data(::std::string* data);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_data();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_data(
::std::string* data);
// required int32 id = 1;
bool has_id() const;
void clear_id();
static const int kIdFieldNumber = 1;
::google::protobuf::int32 id() const;
void set_id(::google::protobuf::int32 value);
// required int32 type = 2;
bool has_type() const;
void clear_type();
static const int kTypeFieldNumber = 2;
::google::protobuf::int32 type() const;
void set_type(::google::protobuf::int32 value);
// required sfixed64 timestamp = 3;
bool has_timestamp() const;
void clear_timestamp();
static const int kTimestampFieldNumber = 3;
::google::protobuf::int64 timestamp() const;
void set_timestamp(::google::protobuf::int64 value);
// required int32 circle_seconds = 4;
bool has_circle_seconds() const;
void clear_circle_seconds();
static const int kCircleSecondsFieldNumber = 4;
::google::protobuf::int32 circle_seconds() const;
void set_circle_seconds(::google::protobuf::int32 value);
// required bool read = 5;
bool has_read() const;
void clear_read();
static const int kReadFieldNumber = 5;
bool read() const;
void set_read(bool value);
// @@protoc_insertion_point(class_scope:db.GameAnnouncement)
private:
void set_has_id();
void clear_has_id();
void set_has_type();
void clear_has_type();
void set_has_timestamp();
void clear_has_timestamp();
void set_has_circle_seconds();
void clear_has_circle_seconds();
void set_has_read();
void clear_has_read();
void set_has_data();
void clear_has_data();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr data_;
::google::protobuf::int32 id_;
::google::protobuf::int32 type_;
::google::protobuf::int64 timestamp_;
::google::protobuf::int32 circle_seconds_;
bool read_;
friend struct ::protobuf_StoredProcGameAssets_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// proc_load_all_users_Parameter
// -------------------------------------------------------------------
// proc_load_all_users_ReturnRecord
// required .db.UserAttribute attr = 1;
inline bool proc_load_all_users_ReturnRecord::has_attr() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void proc_load_all_users_ReturnRecord::set_has_attr() {
_has_bits_[0] |= 0x00000001u;
}
inline void proc_load_all_users_ReturnRecord::clear_has_attr() {
_has_bits_[0] &= ~0x00000001u;
}
inline const ::db::UserAttribute& proc_load_all_users_ReturnRecord::_internal_attr() const {
return *attr_;
}
inline const ::db::UserAttribute& proc_load_all_users_ReturnRecord::attr() const {
const ::db::UserAttribute* p = attr_;
// @@protoc_insertion_point(field_get:db.proc_load_all_users.ReturnRecord.attr)
return p != NULL ? *p : *reinterpret_cast<const ::db::UserAttribute*>(
&::db::_UserAttribute_default_instance_);
}
inline ::db::UserAttribute* proc_load_all_users_ReturnRecord::release_attr() {
// @@protoc_insertion_point(field_release:db.proc_load_all_users.ReturnRecord.attr)
clear_has_attr();
::db::UserAttribute* temp = attr_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
attr_ = NULL;
return temp;
}
inline ::db::UserAttribute* proc_load_all_users_ReturnRecord::unsafe_arena_release_attr() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.proc_load_all_users.ReturnRecord.attr)
clear_has_attr();
::db::UserAttribute* temp = attr_;
attr_ = NULL;
return temp;
}
inline ::db::UserAttribute* proc_load_all_users_ReturnRecord::mutable_attr() {
set_has_attr();
if (attr_ == NULL) {
auto* p = CreateMaybeMessage<::db::UserAttribute>(GetArenaNoVirtual());
attr_ = p;
}
// @@protoc_insertion_point(field_mutable:db.proc_load_all_users.ReturnRecord.attr)
return attr_;
}
inline void proc_load_all_users_ReturnRecord::set_allocated_attr(::db::UserAttribute* attr) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(attr_);
}
if (attr) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(attr)->GetArena();
if (message_arena != submessage_arena) {
attr = ::google::protobuf::internal::GetOwnedMessage(
message_arena, attr, submessage_arena);
}
set_has_attr();
} else {
clear_has_attr();
}
attr_ = attr;
// @@protoc_insertion_point(field_set_allocated:db.proc_load_all_users.ReturnRecord.attr)
}
// -------------------------------------------------------------------
// proc_load_all_users
// optional .db.proc_load_all_users.Parameter param = 1;
inline bool proc_load_all_users::has_param() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void proc_load_all_users::set_has_param() {
_has_bits_[0] |= 0x00000001u;
}
inline void proc_load_all_users::clear_has_param() {
_has_bits_[0] &= ~0x00000001u;
}
inline void proc_load_all_users::clear_param() {
if (param_ != NULL) param_->Clear();
clear_has_param();
}
inline const ::db::proc_load_all_users_Parameter& proc_load_all_users::_internal_param() const {
return *param_;
}
inline const ::db::proc_load_all_users_Parameter& proc_load_all_users::param() const {
const ::db::proc_load_all_users_Parameter* p = param_;
// @@protoc_insertion_point(field_get:db.proc_load_all_users.param)
return p != NULL ? *p : *reinterpret_cast<const ::db::proc_load_all_users_Parameter*>(
&::db::_proc_load_all_users_Parameter_default_instance_);
}
inline ::db::proc_load_all_users_Parameter* proc_load_all_users::release_param() {
// @@protoc_insertion_point(field_release:db.proc_load_all_users.param)
clear_has_param();
::db::proc_load_all_users_Parameter* temp = param_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
param_ = NULL;
return temp;
}
inline ::db::proc_load_all_users_Parameter* proc_load_all_users::unsafe_arena_release_param() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.proc_load_all_users.param)
clear_has_param();
::db::proc_load_all_users_Parameter* temp = param_;
param_ = NULL;
return temp;
}
inline ::db::proc_load_all_users_Parameter* proc_load_all_users::mutable_param() {
set_has_param();
if (param_ == NULL) {
auto* p = CreateMaybeMessage<::db::proc_load_all_users_Parameter>(GetArenaNoVirtual());
param_ = p;
}
// @@protoc_insertion_point(field_mutable:db.proc_load_all_users.param)
return param_;
}
inline void proc_load_all_users::set_allocated_param(::db::proc_load_all_users_Parameter* param) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete param_;
}
if (param) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(param);
if (message_arena != submessage_arena) {
param = ::google::protobuf::internal::GetOwnedMessage(
message_arena, param, submessage_arena);
}
set_has_param();
} else {
clear_has_param();
}
param_ = param;
// @@protoc_insertion_point(field_set_allocated:db.proc_load_all_users.param)
}
// repeated .db.proc_load_all_users.ReturnRecord return_record_list = 2;
inline int proc_load_all_users::return_record_list_size() const {
return return_record_list_.size();
}
inline void proc_load_all_users::clear_return_record_list() {
return_record_list_.Clear();
}
inline ::db::proc_load_all_users_ReturnRecord* proc_load_all_users::mutable_return_record_list(int index) {
// @@protoc_insertion_point(field_mutable:db.proc_load_all_users.return_record_list)
return return_record_list_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::db::proc_load_all_users_ReturnRecord >*
proc_load_all_users::mutable_return_record_list() {
// @@protoc_insertion_point(field_mutable_list:db.proc_load_all_users.return_record_list)
return &return_record_list_;
}
inline const ::db::proc_load_all_users_ReturnRecord& proc_load_all_users::return_record_list(int index) const {
// @@protoc_insertion_point(field_get:db.proc_load_all_users.return_record_list)
return return_record_list_.Get(index);
}
inline ::db::proc_load_all_users_ReturnRecord* proc_load_all_users::add_return_record_list() {
// @@protoc_insertion_point(field_add:db.proc_load_all_users.return_record_list)
return return_record_list_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::db::proc_load_all_users_ReturnRecord >&
proc_load_all_users::return_record_list() const {
// @@protoc_insertion_point(field_list:db.proc_load_all_users.return_record_list)
return return_record_list_;
}
// -------------------------------------------------------------------
// GameState
// required int32 id = 1;
inline bool GameState::has_id() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void GameState::set_has_id() {
_has_bits_[0] |= 0x00000001u;
}
inline void GameState::clear_has_id() {
_has_bits_[0] &= ~0x00000001u;
}
inline void GameState::clear_id() {
id_ = 0;
clear_has_id();
}
inline ::google::protobuf::int32 GameState::id() const {
// @@protoc_insertion_point(field_get:db.GameState.id)
return id_;
}
inline void GameState::set_id(::google::protobuf::int32 value) {
set_has_id();
id_ = value;
// @@protoc_insertion_point(field_set:db.GameState.id)
}
// required int32 daily_gift_id = 2;
inline bool GameState::has_daily_gift_id() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void GameState::set_has_daily_gift_id() {
_has_bits_[0] |= 0x00000002u;
}
inline void GameState::clear_has_daily_gift_id() {
_has_bits_[0] &= ~0x00000002u;
}
inline void GameState::clear_daily_gift_id() {
daily_gift_id_ = 0;
clear_has_daily_gift_id();
}
inline ::google::protobuf::int32 GameState::daily_gift_id() const {
// @@protoc_insertion_point(field_get:db.GameState.daily_gift_id)
return daily_gift_id_;
}
inline void GameState::set_daily_gift_id(::google::protobuf::int32 value) {
set_has_daily_gift_id();
daily_gift_id_ = value;
// @@protoc_insertion_point(field_set:db.GameState.daily_gift_id)
}
// required int32 weekly_gift_id = 3;
inline bool GameState::has_weekly_gift_id() const {
return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void GameState::set_has_weekly_gift_id() {
_has_bits_[0] |= 0x00000080u;
}
inline void GameState::clear_has_weekly_gift_id() {
_has_bits_[0] &= ~0x00000080u;
}
inline void GameState::clear_weekly_gift_id() {
weekly_gift_id_ = 0;
clear_has_weekly_gift_id();
}
inline ::google::protobuf::int32 GameState::weekly_gift_id() const {
// @@protoc_insertion_point(field_get:db.GameState.weekly_gift_id)
return weekly_gift_id_;
}
inline void GameState::set_weekly_gift_id(::google::protobuf::int32 value) {
set_has_weekly_gift_id();
weekly_gift_id_ = value;
// @@protoc_insertion_point(field_set:db.GameState.weekly_gift_id)
}
// optional sfixed64 daily_gift_refresh_time = 4;
inline bool GameState::has_daily_gift_refresh_time() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void GameState::set_has_daily_gift_refresh_time() {
_has_bits_[0] |= 0x00000004u;
}
inline void GameState::clear_has_daily_gift_refresh_time() {
_has_bits_[0] &= ~0x00000004u;
}
inline void GameState::clear_daily_gift_refresh_time() {
daily_gift_refresh_time_ = GOOGLE_LONGLONG(0);
clear_has_daily_gift_refresh_time();
}
inline ::google::protobuf::int64 GameState::daily_gift_refresh_time() const {
// @@protoc_insertion_point(field_get:db.GameState.daily_gift_refresh_time)
return daily_gift_refresh_time_;
}
inline void GameState::set_daily_gift_refresh_time(::google::protobuf::int64 value) {
set_has_daily_gift_refresh_time();
daily_gift_refresh_time_ = value;
// @@protoc_insertion_point(field_set:db.GameState.daily_gift_refresh_time)
}
// optional sfixed64 weekly_gift_refresh_time = 5;
inline bool GameState::has_weekly_gift_refresh_time() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void GameState::set_has_weekly_gift_refresh_time() {
_has_bits_[0] |= 0x00000008u;
}
inline void GameState::clear_has_weekly_gift_refresh_time() {
_has_bits_[0] &= ~0x00000008u;
}
inline void GameState::clear_weekly_gift_refresh_time() {
weekly_gift_refresh_time_ = GOOGLE_LONGLONG(0);
clear_has_weekly_gift_refresh_time();
}
inline ::google::protobuf::int64 GameState::weekly_gift_refresh_time() const {
// @@protoc_insertion_point(field_get:db.GameState.weekly_gift_refresh_time)
return weekly_gift_refresh_time_;
}
inline void GameState::set_weekly_gift_refresh_time(::google::protobuf::int64 value) {
set_has_weekly_gift_refresh_time();
weekly_gift_refresh_time_ = value;
// @@protoc_insertion_point(field_set:db.GameState.weekly_gift_refresh_time)
}
// optional sfixed64 daily_pvp_reward_send_time = 6;
inline bool GameState::has_daily_pvp_reward_send_time() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void GameState::set_has_daily_pvp_reward_send_time() {
_has_bits_[0] |= 0x00000010u;
}
inline void GameState::clear_has_daily_pvp_reward_send_time() {
_has_bits_[0] &= ~0x00000010u;
}
inline void GameState::clear_daily_pvp_reward_send_time() {
daily_pvp_reward_send_time_ = GOOGLE_LONGLONG(0);
clear_has_daily_pvp_reward_send_time();
}
inline ::google::protobuf::int64 GameState::daily_pvp_reward_send_time() const {
// @@protoc_insertion_point(field_get:db.GameState.daily_pvp_reward_send_time)
return daily_pvp_reward_send_time_;
}
inline void GameState::set_daily_pvp_reward_send_time(::google::protobuf::int64 value) {
set_has_daily_pvp_reward_send_time();
daily_pvp_reward_send_time_ = value;
// @@protoc_insertion_point(field_set:db.GameState.daily_pvp_reward_send_time)
}
// optional sfixed64 weekly_pvp_reward_send_time = 7;
inline bool GameState::has_weekly_pvp_reward_send_time() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void GameState::set_has_weekly_pvp_reward_send_time() {
_has_bits_[0] |= 0x00000020u;
}
inline void GameState::clear_has_weekly_pvp_reward_send_time() {
_has_bits_[0] &= ~0x00000020u;
}
inline void GameState::clear_weekly_pvp_reward_send_time() {
weekly_pvp_reward_send_time_ = GOOGLE_LONGLONG(0);
clear_has_weekly_pvp_reward_send_time();
}
inline ::google::protobuf::int64 GameState::weekly_pvp_reward_send_time() const {
// @@protoc_insertion_point(field_get:db.GameState.weekly_pvp_reward_send_time)
return weekly_pvp_reward_send_time_;
}
inline void GameState::set_weekly_pvp_reward_send_time(::google::protobuf::int64 value) {
set_has_weekly_pvp_reward_send_time();
weekly_pvp_reward_send_time_ = value;
// @@protoc_insertion_point(field_set:db.GameState.weekly_pvp_reward_send_time)
}
// optional sfixed64 monthly_pvp_reward_send_time = 8;
inline bool GameState::has_monthly_pvp_reward_send_time() const {
return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void GameState::set_has_monthly_pvp_reward_send_time() {
_has_bits_[0] |= 0x00000040u;
}
inline void GameState::clear_has_monthly_pvp_reward_send_time() {
_has_bits_[0] &= ~0x00000040u;
}
inline void GameState::clear_monthly_pvp_reward_send_time() {
monthly_pvp_reward_send_time_ = GOOGLE_LONGLONG(0);
clear_has_monthly_pvp_reward_send_time();
}
inline ::google::protobuf::int64 GameState::monthly_pvp_reward_send_time() const {
// @@protoc_insertion_point(field_get:db.GameState.monthly_pvp_reward_send_time)
return monthly_pvp_reward_send_time_;
}
inline void GameState::set_monthly_pvp_reward_send_time(::google::protobuf::int64 value) {
set_has_monthly_pvp_reward_send_time();
monthly_pvp_reward_send_time_ = value;
// @@protoc_insertion_point(field_set:db.GameState.monthly_pvp_reward_send_time)
}
// -------------------------------------------------------------------
// IslandBattleData
// required uint64 id = 1;
inline bool IslandBattleData::has_id() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void IslandBattleData::set_has_id() {
_has_bits_[0] |= 0x00000008u;
}
inline void IslandBattleData::clear_has_id() {
_has_bits_[0] &= ~0x00000008u;
}
inline void IslandBattleData::clear_id() {
id_ = GOOGLE_ULONGLONG(0);
clear_has_id();
}
inline ::google::protobuf::uint64 IslandBattleData::id() const {
// @@protoc_insertion_point(field_get:db.IslandBattleData.id)
return id_;
}
inline void IslandBattleData::set_id(::google::protobuf::uint64 value) {
set_has_id();
id_ = value;
// @@protoc_insertion_point(field_set:db.IslandBattleData.id)
}
// required int32 type = 2;
inline bool IslandBattleData::has_type() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void IslandBattleData::set_has_type() {
_has_bits_[0] |= 0x00000010u;
}
inline void IslandBattleData::clear_has_type() {
_has_bits_[0] &= ~0x00000010u;
}
inline void IslandBattleData::clear_type() {
type_ = 0;
clear_has_type();
}
inline ::google::protobuf::int32 IslandBattleData::type() const {
// @@protoc_insertion_point(field_get:db.IslandBattleData.type)
return type_;
}
inline void IslandBattleData::set_type(::google::protobuf::int32 value) {
set_has_type();
type_ = value;
// @@protoc_insertion_point(field_set:db.IslandBattleData.type)
}
// required bytes defender = 3;
inline bool IslandBattleData::has_defender() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void IslandBattleData::set_has_defender() {
_has_bits_[0] |= 0x00000001u;
}
inline void IslandBattleData::clear_has_defender() {
_has_bits_[0] &= ~0x00000001u;
}
inline void IslandBattleData::clear_defender() {
defender_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_defender();
}
inline const ::std::string& IslandBattleData::defender() const {
// @@protoc_insertion_point(field_get:db.IslandBattleData.defender)
return defender_.Get();
}
inline void IslandBattleData::set_defender(const ::std::string& value) {
set_has_defender();
defender_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.IslandBattleData.defender)
}
#if LANG_CXX11
inline void IslandBattleData::set_defender(::std::string&& value) {
set_has_defender();
defender_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.IslandBattleData.defender)
}
#endif
inline void IslandBattleData::set_defender(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_defender();
defender_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.IslandBattleData.defender)
}
inline void IslandBattleData::set_defender(const void* value,
size_t size) {
set_has_defender();
defender_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.IslandBattleData.defender)
}
inline ::std::string* IslandBattleData::mutable_defender() {
set_has_defender();
// @@protoc_insertion_point(field_mutable:db.IslandBattleData.defender)
return defender_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* IslandBattleData::release_defender() {
// @@protoc_insertion_point(field_release:db.IslandBattleData.defender)
if (!has_defender()) {
return NULL;
}
clear_has_defender();
return defender_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void IslandBattleData::set_allocated_defender(::std::string* defender) {
if (defender != NULL) {
set_has_defender();
} else {
clear_has_defender();
}
defender_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), defender,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.IslandBattleData.defender)
}
inline ::std::string* IslandBattleData::unsafe_arena_release_defender() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.IslandBattleData.defender)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_defender();
return defender_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void IslandBattleData::unsafe_arena_set_allocated_defender(
::std::string* defender) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (defender != NULL) {
set_has_defender();
} else {
clear_has_defender();
}
defender_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
defender, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.IslandBattleData.defender)
}
// required bytes defend_team = 4;
inline bool IslandBattleData::has_defend_team() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void IslandBattleData::set_has_defend_team() {
_has_bits_[0] |= 0x00000002u;
}
inline void IslandBattleData::clear_has_defend_team() {
_has_bits_[0] &= ~0x00000002u;
}
inline void IslandBattleData::clear_defend_team() {
defend_team_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_defend_team();
}
inline const ::std::string& IslandBattleData::defend_team() const {
// @@protoc_insertion_point(field_get:db.IslandBattleData.defend_team)
return defend_team_.Get();
}
inline void IslandBattleData::set_defend_team(const ::std::string& value) {
set_has_defend_team();
defend_team_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.IslandBattleData.defend_team)
}
#if LANG_CXX11
inline void IslandBattleData::set_defend_team(::std::string&& value) {
set_has_defend_team();
defend_team_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.IslandBattleData.defend_team)
}
#endif
inline void IslandBattleData::set_defend_team(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_defend_team();
defend_team_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.IslandBattleData.defend_team)
}
inline void IslandBattleData::set_defend_team(const void* value,
size_t size) {
set_has_defend_team();
defend_team_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.IslandBattleData.defend_team)
}
inline ::std::string* IslandBattleData::mutable_defend_team() {
set_has_defend_team();
// @@protoc_insertion_point(field_mutable:db.IslandBattleData.defend_team)
return defend_team_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* IslandBattleData::release_defend_team() {
// @@protoc_insertion_point(field_release:db.IslandBattleData.defend_team)
if (!has_defend_team()) {
return NULL;
}
clear_has_defend_team();
return defend_team_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void IslandBattleData::set_allocated_defend_team(::std::string* defend_team) {
if (defend_team != NULL) {
set_has_defend_team();
} else {
clear_has_defend_team();
}
defend_team_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), defend_team,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.IslandBattleData.defend_team)
}
inline ::std::string* IslandBattleData::unsafe_arena_release_defend_team() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.IslandBattleData.defend_team)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_defend_team();
return defend_team_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void IslandBattleData::unsafe_arena_set_allocated_defend_team(
::std::string* defend_team) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (defend_team != NULL) {
set_has_defend_team();
} else {
clear_has_defend_team();
}
defend_team_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
defend_team, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.IslandBattleData.defend_team)
}
// required bytes pve_map = 5;
inline bool IslandBattleData::has_pve_map() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void IslandBattleData::set_has_pve_map() {
_has_bits_[0] |= 0x00000004u;
}
inline void IslandBattleData::clear_has_pve_map() {
_has_bits_[0] &= ~0x00000004u;
}
inline void IslandBattleData::clear_pve_map() {
pve_map_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_pve_map();
}
inline const ::std::string& IslandBattleData::pve_map() const {
// @@protoc_insertion_point(field_get:db.IslandBattleData.pve_map)
return pve_map_.Get();
}
inline void IslandBattleData::set_pve_map(const ::std::string& value) {
set_has_pve_map();
pve_map_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.IslandBattleData.pve_map)
}
#if LANG_CXX11
inline void IslandBattleData::set_pve_map(::std::string&& value) {
set_has_pve_map();
pve_map_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.IslandBattleData.pve_map)
}
#endif
inline void IslandBattleData::set_pve_map(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_pve_map();
pve_map_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.IslandBattleData.pve_map)
}
inline void IslandBattleData::set_pve_map(const void* value,
size_t size) {
set_has_pve_map();
pve_map_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.IslandBattleData.pve_map)
}
inline ::std::string* IslandBattleData::mutable_pve_map() {
set_has_pve_map();
// @@protoc_insertion_point(field_mutable:db.IslandBattleData.pve_map)
return pve_map_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* IslandBattleData::release_pve_map() {
// @@protoc_insertion_point(field_release:db.IslandBattleData.pve_map)
if (!has_pve_map()) {
return NULL;
}
clear_has_pve_map();
return pve_map_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void IslandBattleData::set_allocated_pve_map(::std::string* pve_map) {
if (pve_map != NULL) {
set_has_pve_map();
} else {
clear_has_pve_map();
}
pve_map_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pve_map,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.IslandBattleData.pve_map)
}
inline ::std::string* IslandBattleData::unsafe_arena_release_pve_map() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.IslandBattleData.pve_map)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_pve_map();
return pve_map_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void IslandBattleData::unsafe_arena_set_allocated_pve_map(
::std::string* pve_map) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (pve_map != NULL) {
set_has_pve_map();
} else {
clear_has_pve_map();
}
pve_map_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
pve_map, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.IslandBattleData.pve_map)
}
// -------------------------------------------------------------------
// GameRanking
// required int32 ranking = 1;
inline bool GameRanking::has_ranking() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void GameRanking::set_has_ranking() {
_has_bits_[0] |= 0x00000001u;
}
inline void GameRanking::clear_has_ranking() {
_has_bits_[0] &= ~0x00000001u;
}
inline void GameRanking::clear_ranking() {
ranking_ = 0;
clear_has_ranking();
}
inline ::google::protobuf::int32 GameRanking::ranking() const {
// @@protoc_insertion_point(field_get:db.GameRanking.ranking)
return ranking_;
}
inline void GameRanking::set_ranking(::google::protobuf::int32 value) {
set_has_ranking();
ranking_ = value;
// @@protoc_insertion_point(field_set:db.GameRanking.ranking)
}
// required int32 ticketid = 2;
inline bool GameRanking::has_ticketid() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void GameRanking::set_has_ticketid() {
_has_bits_[0] |= 0x00000002u;
}
inline void GameRanking::clear_has_ticketid() {
_has_bits_[0] &= ~0x00000002u;
}
inline void GameRanking::clear_ticketid() {
ticketid_ = 0;
clear_has_ticketid();
}
inline ::google::protobuf::int32 GameRanking::ticketid() const {
// @@protoc_insertion_point(field_get:db.GameRanking.ticketid)
return ticketid_;
}
inline void GameRanking::set_ticketid(::google::protobuf::int32 value) {
set_has_ticketid();
ticketid_ = value;
// @@protoc_insertion_point(field_set:db.GameRanking.ticketid)
}
// -------------------------------------------------------------------
// UserCommonData
// required bytes userid = 1;
inline bool UserCommonData::has_userid() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void UserCommonData::set_has_userid() {
_has_bits_[0] |= 0x00000001u;
}
inline void UserCommonData::clear_has_userid() {
_has_bits_[0] &= ~0x00000001u;
}
inline void UserCommonData::clear_userid() {
userid_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_userid();
}
inline const ::std::string& UserCommonData::userid() const {
// @@protoc_insertion_point(field_get:db.UserCommonData.userid)
return userid_.Get();
}
inline void UserCommonData::set_userid(const ::std::string& value) {
set_has_userid();
userid_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.UserCommonData.userid)
}
#if LANG_CXX11
inline void UserCommonData::set_userid(::std::string&& value) {
set_has_userid();
userid_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.UserCommonData.userid)
}
#endif
inline void UserCommonData::set_userid(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_userid();
userid_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.UserCommonData.userid)
}
inline void UserCommonData::set_userid(const void* value,
size_t size) {
set_has_userid();
userid_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.UserCommonData.userid)
}
inline ::std::string* UserCommonData::mutable_userid() {
set_has_userid();
// @@protoc_insertion_point(field_mutable:db.UserCommonData.userid)
return userid_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* UserCommonData::release_userid() {
// @@protoc_insertion_point(field_release:db.UserCommonData.userid)
if (!has_userid()) {
return NULL;
}
clear_has_userid();
return userid_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void UserCommonData::set_allocated_userid(::std::string* userid) {
if (userid != NULL) {
set_has_userid();
} else {
clear_has_userid();
}
userid_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), userid,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.UserCommonData.userid)
}
inline ::std::string* UserCommonData::unsafe_arena_release_userid() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.UserCommonData.userid)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_userid();
return userid_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void UserCommonData::unsafe_arena_set_allocated_userid(
::std::string* userid) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (userid != NULL) {
set_has_userid();
} else {
clear_has_userid();
}
userid_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
userid, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.UserCommonData.userid)
}
// required uint64 event_record_count = 2;
inline bool UserCommonData::has_event_record_count() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void UserCommonData::set_has_event_record_count() {
_has_bits_[0] |= 0x00000002u;
}
inline void UserCommonData::clear_has_event_record_count() {
_has_bits_[0] &= ~0x00000002u;
}
inline void UserCommonData::clear_event_record_count() {
event_record_count_ = GOOGLE_ULONGLONG(0);
clear_has_event_record_count();
}
inline ::google::protobuf::uint64 UserCommonData::event_record_count() const {
// @@protoc_insertion_point(field_get:db.UserCommonData.event_record_count)
return event_record_count_;
}
inline void UserCommonData::set_event_record_count(::google::protobuf::uint64 value) {
set_has_event_record_count();
event_record_count_ = value;
// @@protoc_insertion_point(field_set:db.UserCommonData.event_record_count)
}
// -------------------------------------------------------------------
// proc_i_load_user_common_data_Parameter
// -------------------------------------------------------------------
// proc_i_load_user_common_data_ReturnRecord
// required .db.UserCommonData data = 1;
inline bool proc_i_load_user_common_data_ReturnRecord::has_data() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void proc_i_load_user_common_data_ReturnRecord::set_has_data() {
_has_bits_[0] |= 0x00000001u;
}
inline void proc_i_load_user_common_data_ReturnRecord::clear_has_data() {
_has_bits_[0] &= ~0x00000001u;
}
inline void proc_i_load_user_common_data_ReturnRecord::clear_data() {
if (data_ != NULL) data_->Clear();
clear_has_data();
}
inline const ::db::UserCommonData& proc_i_load_user_common_data_ReturnRecord::_internal_data() const {
return *data_;
}
inline const ::db::UserCommonData& proc_i_load_user_common_data_ReturnRecord::data() const {
const ::db::UserCommonData* p = data_;
// @@protoc_insertion_point(field_get:db.proc_i_load_user_common_data.ReturnRecord.data)
return p != NULL ? *p : *reinterpret_cast<const ::db::UserCommonData*>(
&::db::_UserCommonData_default_instance_);
}
inline ::db::UserCommonData* proc_i_load_user_common_data_ReturnRecord::release_data() {
// @@protoc_insertion_point(field_release:db.proc_i_load_user_common_data.ReturnRecord.data)
clear_has_data();
::db::UserCommonData* temp = data_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
data_ = NULL;
return temp;
}
inline ::db::UserCommonData* proc_i_load_user_common_data_ReturnRecord::unsafe_arena_release_data() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.proc_i_load_user_common_data.ReturnRecord.data)
clear_has_data();
::db::UserCommonData* temp = data_;
data_ = NULL;
return temp;
}
inline ::db::UserCommonData* proc_i_load_user_common_data_ReturnRecord::mutable_data() {
set_has_data();
if (data_ == NULL) {
auto* p = CreateMaybeMessage<::db::UserCommonData>(GetArenaNoVirtual());
data_ = p;
}
// @@protoc_insertion_point(field_mutable:db.proc_i_load_user_common_data.ReturnRecord.data)
return data_;
}
inline void proc_i_load_user_common_data_ReturnRecord::set_allocated_data(::db::UserCommonData* data) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete data_;
}
if (data) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(data);
if (message_arena != submessage_arena) {
data = ::google::protobuf::internal::GetOwnedMessage(
message_arena, data, submessage_arena);
}
set_has_data();
} else {
clear_has_data();
}
data_ = data;
// @@protoc_insertion_point(field_set_allocated:db.proc_i_load_user_common_data.ReturnRecord.data)
}
// -------------------------------------------------------------------
// proc_i_load_user_common_data
// optional .db.proc_i_load_user_common_data.Parameter param = 1;
inline bool proc_i_load_user_common_data::has_param() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void proc_i_load_user_common_data::set_has_param() {
_has_bits_[0] |= 0x00000001u;
}
inline void proc_i_load_user_common_data::clear_has_param() {
_has_bits_[0] &= ~0x00000001u;
}
inline void proc_i_load_user_common_data::clear_param() {
if (param_ != NULL) param_->Clear();
clear_has_param();
}
inline const ::db::proc_i_load_user_common_data_Parameter& proc_i_load_user_common_data::_internal_param() const {
return *param_;
}
inline const ::db::proc_i_load_user_common_data_Parameter& proc_i_load_user_common_data::param() const {
const ::db::proc_i_load_user_common_data_Parameter* p = param_;
// @@protoc_insertion_point(field_get:db.proc_i_load_user_common_data.param)
return p != NULL ? *p : *reinterpret_cast<const ::db::proc_i_load_user_common_data_Parameter*>(
&::db::_proc_i_load_user_common_data_Parameter_default_instance_);
}
inline ::db::proc_i_load_user_common_data_Parameter* proc_i_load_user_common_data::release_param() {
// @@protoc_insertion_point(field_release:db.proc_i_load_user_common_data.param)
clear_has_param();
::db::proc_i_load_user_common_data_Parameter* temp = param_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
param_ = NULL;
return temp;
}
inline ::db::proc_i_load_user_common_data_Parameter* proc_i_load_user_common_data::unsafe_arena_release_param() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.proc_i_load_user_common_data.param)
clear_has_param();
::db::proc_i_load_user_common_data_Parameter* temp = param_;
param_ = NULL;
return temp;
}
inline ::db::proc_i_load_user_common_data_Parameter* proc_i_load_user_common_data::mutable_param() {
set_has_param();
if (param_ == NULL) {
auto* p = CreateMaybeMessage<::db::proc_i_load_user_common_data_Parameter>(GetArenaNoVirtual());
param_ = p;
}
// @@protoc_insertion_point(field_mutable:db.proc_i_load_user_common_data.param)
return param_;
}
inline void proc_i_load_user_common_data::set_allocated_param(::db::proc_i_load_user_common_data_Parameter* param) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete param_;
}
if (param) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(param);
if (message_arena != submessage_arena) {
param = ::google::protobuf::internal::GetOwnedMessage(
message_arena, param, submessage_arena);
}
set_has_param();
} else {
clear_has_param();
}
param_ = param;
// @@protoc_insertion_point(field_set_allocated:db.proc_i_load_user_common_data.param)
}
// repeated .db.proc_i_load_user_common_data.ReturnRecord return_record_list = 2;
inline int proc_i_load_user_common_data::return_record_list_size() const {
return return_record_list_.size();
}
inline void proc_i_load_user_common_data::clear_return_record_list() {
return_record_list_.Clear();
}
inline ::db::proc_i_load_user_common_data_ReturnRecord* proc_i_load_user_common_data::mutable_return_record_list(int index) {
// @@protoc_insertion_point(field_mutable:db.proc_i_load_user_common_data.return_record_list)
return return_record_list_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::db::proc_i_load_user_common_data_ReturnRecord >*
proc_i_load_user_common_data::mutable_return_record_list() {
// @@protoc_insertion_point(field_mutable_list:db.proc_i_load_user_common_data.return_record_list)
return &return_record_list_;
}
inline const ::db::proc_i_load_user_common_data_ReturnRecord& proc_i_load_user_common_data::return_record_list(int index) const {
// @@protoc_insertion_point(field_get:db.proc_i_load_user_common_data.return_record_list)
return return_record_list_.Get(index);
}
inline ::db::proc_i_load_user_common_data_ReturnRecord* proc_i_load_user_common_data::add_return_record_list() {
// @@protoc_insertion_point(field_add:db.proc_i_load_user_common_data.return_record_list)
return return_record_list_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::db::proc_i_load_user_common_data_ReturnRecord >&
proc_i_load_user_common_data::return_record_list() const {
// @@protoc_insertion_point(field_list:db.proc_i_load_user_common_data.return_record_list)
return return_record_list_;
}
// -------------------------------------------------------------------
// proc_i_save_user_common_data_Parameter
// required .db.UserCommonData p_data = 1;
inline bool proc_i_save_user_common_data_Parameter::has_p_data() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void proc_i_save_user_common_data_Parameter::set_has_p_data() {
_has_bits_[0] |= 0x00000001u;
}
inline void proc_i_save_user_common_data_Parameter::clear_has_p_data() {
_has_bits_[0] &= ~0x00000001u;
}
inline void proc_i_save_user_common_data_Parameter::clear_p_data() {
if (p_data_ != NULL) p_data_->Clear();
clear_has_p_data();
}
inline const ::db::UserCommonData& proc_i_save_user_common_data_Parameter::_internal_p_data() const {
return *p_data_;
}
inline const ::db::UserCommonData& proc_i_save_user_common_data_Parameter::p_data() const {
const ::db::UserCommonData* p = p_data_;
// @@protoc_insertion_point(field_get:db.proc_i_save_user_common_data.Parameter.p_data)
return p != NULL ? *p : *reinterpret_cast<const ::db::UserCommonData*>(
&::db::_UserCommonData_default_instance_);
}
inline ::db::UserCommonData* proc_i_save_user_common_data_Parameter::release_p_data() {
// @@protoc_insertion_point(field_release:db.proc_i_save_user_common_data.Parameter.p_data)
clear_has_p_data();
::db::UserCommonData* temp = p_data_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
p_data_ = NULL;
return temp;
}
inline ::db::UserCommonData* proc_i_save_user_common_data_Parameter::unsafe_arena_release_p_data() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.proc_i_save_user_common_data.Parameter.p_data)
clear_has_p_data();
::db::UserCommonData* temp = p_data_;
p_data_ = NULL;
return temp;
}
inline ::db::UserCommonData* proc_i_save_user_common_data_Parameter::mutable_p_data() {
set_has_p_data();
if (p_data_ == NULL) {
auto* p = CreateMaybeMessage<::db::UserCommonData>(GetArenaNoVirtual());
p_data_ = p;
}
// @@protoc_insertion_point(field_mutable:db.proc_i_save_user_common_data.Parameter.p_data)
return p_data_;
}
inline void proc_i_save_user_common_data_Parameter::set_allocated_p_data(::db::UserCommonData* p_data) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete p_data_;
}
if (p_data) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(p_data);
if (message_arena != submessage_arena) {
p_data = ::google::protobuf::internal::GetOwnedMessage(
message_arena, p_data, submessage_arena);
}
set_has_p_data();
} else {
clear_has_p_data();
}
p_data_ = p_data;
// @@protoc_insertion_point(field_set_allocated:db.proc_i_save_user_common_data.Parameter.p_data)
}
// -------------------------------------------------------------------
// proc_i_save_user_common_data
// optional .db.proc_i_save_user_common_data.Parameter param = 1;
inline bool proc_i_save_user_common_data::has_param() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void proc_i_save_user_common_data::set_has_param() {
_has_bits_[0] |= 0x00000001u;
}
inline void proc_i_save_user_common_data::clear_has_param() {
_has_bits_[0] &= ~0x00000001u;
}
inline void proc_i_save_user_common_data::clear_param() {
if (param_ != NULL) param_->Clear();
clear_has_param();
}
inline const ::db::proc_i_save_user_common_data_Parameter& proc_i_save_user_common_data::_internal_param() const {
return *param_;
}
inline const ::db::proc_i_save_user_common_data_Parameter& proc_i_save_user_common_data::param() const {
const ::db::proc_i_save_user_common_data_Parameter* p = param_;
// @@protoc_insertion_point(field_get:db.proc_i_save_user_common_data.param)
return p != NULL ? *p : *reinterpret_cast<const ::db::proc_i_save_user_common_data_Parameter*>(
&::db::_proc_i_save_user_common_data_Parameter_default_instance_);
}
inline ::db::proc_i_save_user_common_data_Parameter* proc_i_save_user_common_data::release_param() {
// @@protoc_insertion_point(field_release:db.proc_i_save_user_common_data.param)
clear_has_param();
::db::proc_i_save_user_common_data_Parameter* temp = param_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
param_ = NULL;
return temp;
}
inline ::db::proc_i_save_user_common_data_Parameter* proc_i_save_user_common_data::unsafe_arena_release_param() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.proc_i_save_user_common_data.param)
clear_has_param();
::db::proc_i_save_user_common_data_Parameter* temp = param_;
param_ = NULL;
return temp;
}
inline ::db::proc_i_save_user_common_data_Parameter* proc_i_save_user_common_data::mutable_param() {
set_has_param();
if (param_ == NULL) {
auto* p = CreateMaybeMessage<::db::proc_i_save_user_common_data_Parameter>(GetArenaNoVirtual());
param_ = p;
}
// @@protoc_insertion_point(field_mutable:db.proc_i_save_user_common_data.param)
return param_;
}
inline void proc_i_save_user_common_data::set_allocated_param(::db::proc_i_save_user_common_data_Parameter* param) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete param_;
}
if (param) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(param);
if (message_arena != submessage_arena) {
param = ::google::protobuf::internal::GetOwnedMessage(
message_arena, param, submessage_arena);
}
set_has_param();
} else {
clear_has_param();
}
param_ = param;
// @@protoc_insertion_point(field_set_allocated:db.proc_i_save_user_common_data.param)
}
// -------------------------------------------------------------------
// UserRankingData
// required int32 ticketid = 1;
inline bool UserRankingData::has_ticketid() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void UserRankingData::set_has_ticketid() {
_has_bits_[0] |= 0x00000002u;
}
inline void UserRankingData::clear_has_ticketid() {
_has_bits_[0] &= ~0x00000002u;
}
inline void UserRankingData::clear_ticketid() {
ticketid_ = 0;
clear_has_ticketid();
}
inline ::google::protobuf::int32 UserRankingData::ticketid() const {
// @@protoc_insertion_point(field_get:db.UserRankingData.ticketid)
return ticketid_;
}
inline void UserRankingData::set_ticketid(::google::protobuf::int32 value) {
set_has_ticketid();
ticketid_ = value;
// @@protoc_insertion_point(field_set:db.UserRankingData.ticketid)
}
// required int32 ranking_score = 2;
inline bool UserRankingData::has_ranking_score() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void UserRankingData::set_has_ranking_score() {
_has_bits_[0] |= 0x00000004u;
}
inline void UserRankingData::clear_has_ranking_score() {
_has_bits_[0] &= ~0x00000004u;
}
inline void UserRankingData::clear_ranking_score() {
ranking_score_ = 0;
clear_has_ranking_score();
}
inline ::google::protobuf::int32 UserRankingData::ranking_score() const {
// @@protoc_insertion_point(field_get:db.UserRankingData.ranking_score)
return ranking_score_;
}
inline void UserRankingData::set_ranking_score(::google::protobuf::int32 value) {
set_has_ranking_score();
ranking_score_ = value;
// @@protoc_insertion_point(field_set:db.UserRankingData.ranking_score)
}
// required int32 win = 3;
inline bool UserRankingData::has_win() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void UserRankingData::set_has_win() {
_has_bits_[0] |= 0x00000008u;
}
inline void UserRankingData::clear_has_win() {
_has_bits_[0] &= ~0x00000008u;
}
inline void UserRankingData::clear_win() {
win_ = 0;
clear_has_win();
}
inline ::google::protobuf::int32 UserRankingData::win() const {
// @@protoc_insertion_point(field_get:db.UserRankingData.win)
return win_;
}
inline void UserRankingData::set_win(::google::protobuf::int32 value) {
set_has_win();
win_ = value;
// @@protoc_insertion_point(field_set:db.UserRankingData.win)
}
// required int32 lose = 4;
inline bool UserRankingData::has_lose() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void UserRankingData::set_has_lose() {
_has_bits_[0] |= 0x00000010u;
}
inline void UserRankingData::clear_has_lose() {
_has_bits_[0] &= ~0x00000010u;
}
inline void UserRankingData::clear_lose() {
lose_ = 0;
clear_has_lose();
}
inline ::google::protobuf::int32 UserRankingData::lose() const {
// @@protoc_insertion_point(field_get:db.UserRankingData.lose)
return lose_;
}
inline void UserRankingData::set_lose(::google::protobuf::int32 value) {
set_has_lose();
lose_ = value;
// @@protoc_insertion_point(field_set:db.UserRankingData.lose)
}
// required sfixed64 timestamp = 5;
inline bool UserRankingData::has_timestamp() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void UserRankingData::set_has_timestamp() {
_has_bits_[0] |= 0x00000020u;
}
inline void UserRankingData::clear_has_timestamp() {
_has_bits_[0] &= ~0x00000020u;
}
inline void UserRankingData::clear_timestamp() {
timestamp_ = GOOGLE_LONGLONG(0);
clear_has_timestamp();
}
inline ::google::protobuf::int64 UserRankingData::timestamp() const {
// @@protoc_insertion_point(field_get:db.UserRankingData.timestamp)
return timestamp_;
}
inline void UserRankingData::set_timestamp(::google::protobuf::int64 value) {
set_has_timestamp();
timestamp_ = value;
// @@protoc_insertion_point(field_set:db.UserRankingData.timestamp)
}
// required bytes team = 6;
inline bool UserRankingData::has_team() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void UserRankingData::set_has_team() {
_has_bits_[0] |= 0x00000001u;
}
inline void UserRankingData::clear_has_team() {
_has_bits_[0] &= ~0x00000001u;
}
inline void UserRankingData::clear_team() {
team_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_team();
}
inline const ::std::string& UserRankingData::team() const {
// @@protoc_insertion_point(field_get:db.UserRankingData.team)
return team_.Get();
}
inline void UserRankingData::set_team(const ::std::string& value) {
set_has_team();
team_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.UserRankingData.team)
}
#if LANG_CXX11
inline void UserRankingData::set_team(::std::string&& value) {
set_has_team();
team_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.UserRankingData.team)
}
#endif
inline void UserRankingData::set_team(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_team();
team_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.UserRankingData.team)
}
inline void UserRankingData::set_team(const void* value,
size_t size) {
set_has_team();
team_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.UserRankingData.team)
}
inline ::std::string* UserRankingData::mutable_team() {
set_has_team();
// @@protoc_insertion_point(field_mutable:db.UserRankingData.team)
return team_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* UserRankingData::release_team() {
// @@protoc_insertion_point(field_release:db.UserRankingData.team)
if (!has_team()) {
return NULL;
}
clear_has_team();
return team_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void UserRankingData::set_allocated_team(::std::string* team) {
if (team != NULL) {
set_has_team();
} else {
clear_has_team();
}
team_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), team,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.UserRankingData.team)
}
inline ::std::string* UserRankingData::unsafe_arena_release_team() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.UserRankingData.team)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_team();
return team_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void UserRankingData::unsafe_arena_set_allocated_team(
::std::string* team) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (team != NULL) {
set_has_team();
} else {
clear_has_team();
}
team_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
team, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.UserRankingData.team)
}
// -------------------------------------------------------------------
// proc_i_load_user_ranking_data_Parameter
// -------------------------------------------------------------------
// proc_i_load_user_ranking_data_ReturnRecord
// required .db.UserRankingData data = 1;
inline bool proc_i_load_user_ranking_data_ReturnRecord::has_data() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void proc_i_load_user_ranking_data_ReturnRecord::set_has_data() {
_has_bits_[0] |= 0x00000001u;
}
inline void proc_i_load_user_ranking_data_ReturnRecord::clear_has_data() {
_has_bits_[0] &= ~0x00000001u;
}
inline void proc_i_load_user_ranking_data_ReturnRecord::clear_data() {
if (data_ != NULL) data_->Clear();
clear_has_data();
}
inline const ::db::UserRankingData& proc_i_load_user_ranking_data_ReturnRecord::_internal_data() const {
return *data_;
}
inline const ::db::UserRankingData& proc_i_load_user_ranking_data_ReturnRecord::data() const {
const ::db::UserRankingData* p = data_;
// @@protoc_insertion_point(field_get:db.proc_i_load_user_ranking_data.ReturnRecord.data)
return p != NULL ? *p : *reinterpret_cast<const ::db::UserRankingData*>(
&::db::_UserRankingData_default_instance_);
}
inline ::db::UserRankingData* proc_i_load_user_ranking_data_ReturnRecord::release_data() {
// @@protoc_insertion_point(field_release:db.proc_i_load_user_ranking_data.ReturnRecord.data)
clear_has_data();
::db::UserRankingData* temp = data_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
data_ = NULL;
return temp;
}
inline ::db::UserRankingData* proc_i_load_user_ranking_data_ReturnRecord::unsafe_arena_release_data() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.proc_i_load_user_ranking_data.ReturnRecord.data)
clear_has_data();
::db::UserRankingData* temp = data_;
data_ = NULL;
return temp;
}
inline ::db::UserRankingData* proc_i_load_user_ranking_data_ReturnRecord::mutable_data() {
set_has_data();
if (data_ == NULL) {
auto* p = CreateMaybeMessage<::db::UserRankingData>(GetArenaNoVirtual());
data_ = p;
}
// @@protoc_insertion_point(field_mutable:db.proc_i_load_user_ranking_data.ReturnRecord.data)
return data_;
}
inline void proc_i_load_user_ranking_data_ReturnRecord::set_allocated_data(::db::UserRankingData* data) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete data_;
}
if (data) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(data);
if (message_arena != submessage_arena) {
data = ::google::protobuf::internal::GetOwnedMessage(
message_arena, data, submessage_arena);
}
set_has_data();
} else {
clear_has_data();
}
data_ = data;
// @@protoc_insertion_point(field_set_allocated:db.proc_i_load_user_ranking_data.ReturnRecord.data)
}
// -------------------------------------------------------------------
// proc_i_load_user_ranking_data
// optional .db.proc_i_load_user_ranking_data.Parameter param = 1;
inline bool proc_i_load_user_ranking_data::has_param() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void proc_i_load_user_ranking_data::set_has_param() {
_has_bits_[0] |= 0x00000001u;
}
inline void proc_i_load_user_ranking_data::clear_has_param() {
_has_bits_[0] &= ~0x00000001u;
}
inline void proc_i_load_user_ranking_data::clear_param() {
if (param_ != NULL) param_->Clear();
clear_has_param();
}
inline const ::db::proc_i_load_user_ranking_data_Parameter& proc_i_load_user_ranking_data::_internal_param() const {
return *param_;
}
inline const ::db::proc_i_load_user_ranking_data_Parameter& proc_i_load_user_ranking_data::param() const {
const ::db::proc_i_load_user_ranking_data_Parameter* p = param_;
// @@protoc_insertion_point(field_get:db.proc_i_load_user_ranking_data.param)
return p != NULL ? *p : *reinterpret_cast<const ::db::proc_i_load_user_ranking_data_Parameter*>(
&::db::_proc_i_load_user_ranking_data_Parameter_default_instance_);
}
inline ::db::proc_i_load_user_ranking_data_Parameter* proc_i_load_user_ranking_data::release_param() {
// @@protoc_insertion_point(field_release:db.proc_i_load_user_ranking_data.param)
clear_has_param();
::db::proc_i_load_user_ranking_data_Parameter* temp = param_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
param_ = NULL;
return temp;
}
inline ::db::proc_i_load_user_ranking_data_Parameter* proc_i_load_user_ranking_data::unsafe_arena_release_param() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.proc_i_load_user_ranking_data.param)
clear_has_param();
::db::proc_i_load_user_ranking_data_Parameter* temp = param_;
param_ = NULL;
return temp;
}
inline ::db::proc_i_load_user_ranking_data_Parameter* proc_i_load_user_ranking_data::mutable_param() {
set_has_param();
if (param_ == NULL) {
auto* p = CreateMaybeMessage<::db::proc_i_load_user_ranking_data_Parameter>(GetArenaNoVirtual());
param_ = p;
}
// @@protoc_insertion_point(field_mutable:db.proc_i_load_user_ranking_data.param)
return param_;
}
inline void proc_i_load_user_ranking_data::set_allocated_param(::db::proc_i_load_user_ranking_data_Parameter* param) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete param_;
}
if (param) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(param);
if (message_arena != submessage_arena) {
param = ::google::protobuf::internal::GetOwnedMessage(
message_arena, param, submessage_arena);
}
set_has_param();
} else {
clear_has_param();
}
param_ = param;
// @@protoc_insertion_point(field_set_allocated:db.proc_i_load_user_ranking_data.param)
}
// repeated .db.proc_i_load_user_ranking_data.ReturnRecord return_record_list = 2;
inline int proc_i_load_user_ranking_data::return_record_list_size() const {
return return_record_list_.size();
}
inline void proc_i_load_user_ranking_data::clear_return_record_list() {
return_record_list_.Clear();
}
inline ::db::proc_i_load_user_ranking_data_ReturnRecord* proc_i_load_user_ranking_data::mutable_return_record_list(int index) {
// @@protoc_insertion_point(field_mutable:db.proc_i_load_user_ranking_data.return_record_list)
return return_record_list_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::db::proc_i_load_user_ranking_data_ReturnRecord >*
proc_i_load_user_ranking_data::mutable_return_record_list() {
// @@protoc_insertion_point(field_mutable_list:db.proc_i_load_user_ranking_data.return_record_list)
return &return_record_list_;
}
inline const ::db::proc_i_load_user_ranking_data_ReturnRecord& proc_i_load_user_ranking_data::return_record_list(int index) const {
// @@protoc_insertion_point(field_get:db.proc_i_load_user_ranking_data.return_record_list)
return return_record_list_.Get(index);
}
inline ::db::proc_i_load_user_ranking_data_ReturnRecord* proc_i_load_user_ranking_data::add_return_record_list() {
// @@protoc_insertion_point(field_add:db.proc_i_load_user_ranking_data.return_record_list)
return return_record_list_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::db::proc_i_load_user_ranking_data_ReturnRecord >&
proc_i_load_user_ranking_data::return_record_list() const {
// @@protoc_insertion_point(field_list:db.proc_i_load_user_ranking_data.return_record_list)
return return_record_list_;
}
// -------------------------------------------------------------------
// proc_i_save_user_ranking_data_Parameter
// required .db.UserRankingData p_data = 1;
inline bool proc_i_save_user_ranking_data_Parameter::has_p_data() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void proc_i_save_user_ranking_data_Parameter::set_has_p_data() {
_has_bits_[0] |= 0x00000001u;
}
inline void proc_i_save_user_ranking_data_Parameter::clear_has_p_data() {
_has_bits_[0] &= ~0x00000001u;
}
inline void proc_i_save_user_ranking_data_Parameter::clear_p_data() {
if (p_data_ != NULL) p_data_->Clear();
clear_has_p_data();
}
inline const ::db::UserRankingData& proc_i_save_user_ranking_data_Parameter::_internal_p_data() const {
return *p_data_;
}
inline const ::db::UserRankingData& proc_i_save_user_ranking_data_Parameter::p_data() const {
const ::db::UserRankingData* p = p_data_;
// @@protoc_insertion_point(field_get:db.proc_i_save_user_ranking_data.Parameter.p_data)
return p != NULL ? *p : *reinterpret_cast<const ::db::UserRankingData*>(
&::db::_UserRankingData_default_instance_);
}
inline ::db::UserRankingData* proc_i_save_user_ranking_data_Parameter::release_p_data() {
// @@protoc_insertion_point(field_release:db.proc_i_save_user_ranking_data.Parameter.p_data)
clear_has_p_data();
::db::UserRankingData* temp = p_data_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
p_data_ = NULL;
return temp;
}
inline ::db::UserRankingData* proc_i_save_user_ranking_data_Parameter::unsafe_arena_release_p_data() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.proc_i_save_user_ranking_data.Parameter.p_data)
clear_has_p_data();
::db::UserRankingData* temp = p_data_;
p_data_ = NULL;
return temp;
}
inline ::db::UserRankingData* proc_i_save_user_ranking_data_Parameter::mutable_p_data() {
set_has_p_data();
if (p_data_ == NULL) {
auto* p = CreateMaybeMessage<::db::UserRankingData>(GetArenaNoVirtual());
p_data_ = p;
}
// @@protoc_insertion_point(field_mutable:db.proc_i_save_user_ranking_data.Parameter.p_data)
return p_data_;
}
inline void proc_i_save_user_ranking_data_Parameter::set_allocated_p_data(::db::UserRankingData* p_data) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete p_data_;
}
if (p_data) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(p_data);
if (message_arena != submessage_arena) {
p_data = ::google::protobuf::internal::GetOwnedMessage(
message_arena, p_data, submessage_arena);
}
set_has_p_data();
} else {
clear_has_p_data();
}
p_data_ = p_data;
// @@protoc_insertion_point(field_set_allocated:db.proc_i_save_user_ranking_data.Parameter.p_data)
}
// -------------------------------------------------------------------
// proc_i_save_user_ranking_data
// optional .db.proc_i_save_user_ranking_data.Parameter param = 1;
inline bool proc_i_save_user_ranking_data::has_param() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void proc_i_save_user_ranking_data::set_has_param() {
_has_bits_[0] |= 0x00000001u;
}
inline void proc_i_save_user_ranking_data::clear_has_param() {
_has_bits_[0] &= ~0x00000001u;
}
inline void proc_i_save_user_ranking_data::clear_param() {
if (param_ != NULL) param_->Clear();
clear_has_param();
}
inline const ::db::proc_i_save_user_ranking_data_Parameter& proc_i_save_user_ranking_data::_internal_param() const {
return *param_;
}
inline const ::db::proc_i_save_user_ranking_data_Parameter& proc_i_save_user_ranking_data::param() const {
const ::db::proc_i_save_user_ranking_data_Parameter* p = param_;
// @@protoc_insertion_point(field_get:db.proc_i_save_user_ranking_data.param)
return p != NULL ? *p : *reinterpret_cast<const ::db::proc_i_save_user_ranking_data_Parameter*>(
&::db::_proc_i_save_user_ranking_data_Parameter_default_instance_);
}
inline ::db::proc_i_save_user_ranking_data_Parameter* proc_i_save_user_ranking_data::release_param() {
// @@protoc_insertion_point(field_release:db.proc_i_save_user_ranking_data.param)
clear_has_param();
::db::proc_i_save_user_ranking_data_Parameter* temp = param_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
param_ = NULL;
return temp;
}
inline ::db::proc_i_save_user_ranking_data_Parameter* proc_i_save_user_ranking_data::unsafe_arena_release_param() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.proc_i_save_user_ranking_data.param)
clear_has_param();
::db::proc_i_save_user_ranking_data_Parameter* temp = param_;
param_ = NULL;
return temp;
}
inline ::db::proc_i_save_user_ranking_data_Parameter* proc_i_save_user_ranking_data::mutable_param() {
set_has_param();
if (param_ == NULL) {
auto* p = CreateMaybeMessage<::db::proc_i_save_user_ranking_data_Parameter>(GetArenaNoVirtual());
param_ = p;
}
// @@protoc_insertion_point(field_mutable:db.proc_i_save_user_ranking_data.param)
return param_;
}
inline void proc_i_save_user_ranking_data::set_allocated_param(::db::proc_i_save_user_ranking_data_Parameter* param) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete param_;
}
if (param) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(param);
if (message_arena != submessage_arena) {
param = ::google::protobuf::internal::GetOwnedMessage(
message_arena, param, submessage_arena);
}
set_has_param();
} else {
clear_has_param();
}
param_ = param;
// @@protoc_insertion_point(field_set_allocated:db.proc_i_save_user_ranking_data.param)
}
// -------------------------------------------------------------------
// ConfigGameServer
// required int32 first_gold_lottery_id_once = 1;
inline bool ConfigGameServer::has_first_gold_lottery_id_once() const {
return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void ConfigGameServer::set_has_first_gold_lottery_id_once() {
_has_bits_[0] |= 0x00000080u;
}
inline void ConfigGameServer::clear_has_first_gold_lottery_id_once() {
_has_bits_[0] &= ~0x00000080u;
}
inline void ConfigGameServer::clear_first_gold_lottery_id_once() {
first_gold_lottery_id_once_ = 0;
clear_has_first_gold_lottery_id_once();
}
inline ::google::protobuf::int32 ConfigGameServer::first_gold_lottery_id_once() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.first_gold_lottery_id_once)
return first_gold_lottery_id_once_;
}
inline void ConfigGameServer::set_first_gold_lottery_id_once(::google::protobuf::int32 value) {
set_has_first_gold_lottery_id_once();
first_gold_lottery_id_once_ = value;
// @@protoc_insertion_point(field_set:db.ConfigGameServer.first_gold_lottery_id_once)
}
// required int32 first_diamond_lottery_id_ten = 2;
inline bool ConfigGameServer::has_first_diamond_lottery_id_ten() const {
return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void ConfigGameServer::set_has_first_diamond_lottery_id_ten() {
_has_bits_[0] |= 0x00000100u;
}
inline void ConfigGameServer::clear_has_first_diamond_lottery_id_ten() {
_has_bits_[0] &= ~0x00000100u;
}
inline void ConfigGameServer::clear_first_diamond_lottery_id_ten() {
first_diamond_lottery_id_ten_ = 0;
clear_has_first_diamond_lottery_id_ten();
}
inline ::google::protobuf::int32 ConfigGameServer::first_diamond_lottery_id_ten() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.first_diamond_lottery_id_ten)
return first_diamond_lottery_id_ten_;
}
inline void ConfigGameServer::set_first_diamond_lottery_id_ten(::google::protobuf::int32 value) {
set_has_first_diamond_lottery_id_ten();
first_diamond_lottery_id_ten_ = value;
// @@protoc_insertion_point(field_set:db.ConfigGameServer.first_diamond_lottery_id_ten)
}
// required int32 max_daily_system_task_num = 3;
inline bool ConfigGameServer::has_max_daily_system_task_num() const {
return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void ConfigGameServer::set_has_max_daily_system_task_num() {
_has_bits_[0] |= 0x00000200u;
}
inline void ConfigGameServer::clear_has_max_daily_system_task_num() {
_has_bits_[0] &= ~0x00000200u;
}
inline void ConfigGameServer::clear_max_daily_system_task_num() {
max_daily_system_task_num_ = 0;
clear_has_max_daily_system_task_num();
}
inline ::google::protobuf::int32 ConfigGameServer::max_daily_system_task_num() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.max_daily_system_task_num)
return max_daily_system_task_num_;
}
inline void ConfigGameServer::set_max_daily_system_task_num(::google::protobuf::int32 value) {
set_has_max_daily_system_task_num();
max_daily_system_task_num_ = value;
// @@protoc_insertion_point(field_set:db.ConfigGameServer.max_daily_system_task_num)
}
// required int32 max_occupy_monster_ship_times = 4;
inline bool ConfigGameServer::has_max_occupy_monster_ship_times() const {
return (_has_bits_[0] & 0x00000400u) != 0;
}
inline void ConfigGameServer::set_has_max_occupy_monster_ship_times() {
_has_bits_[0] |= 0x00000400u;
}
inline void ConfigGameServer::clear_has_max_occupy_monster_ship_times() {
_has_bits_[0] &= ~0x00000400u;
}
inline void ConfigGameServer::clear_max_occupy_monster_ship_times() {
max_occupy_monster_ship_times_ = 0;
clear_has_max_occupy_monster_ship_times();
}
inline ::google::protobuf::int32 ConfigGameServer::max_occupy_monster_ship_times() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.max_occupy_monster_ship_times)
return max_occupy_monster_ship_times_;
}
inline void ConfigGameServer::set_max_occupy_monster_ship_times(::google::protobuf::int32 value) {
set_has_max_occupy_monster_ship_times();
max_occupy_monster_ship_times_ = value;
// @@protoc_insertion_point(field_set:db.ConfigGameServer.max_occupy_monster_ship_times)
}
// required int32 max_occupy_player_ship_times = 5;
inline bool ConfigGameServer::has_max_occupy_player_ship_times() const {
return (_has_bits_[0] & 0x00000800u) != 0;
}
inline void ConfigGameServer::set_has_max_occupy_player_ship_times() {
_has_bits_[0] |= 0x00000800u;
}
inline void ConfigGameServer::clear_has_max_occupy_player_ship_times() {
_has_bits_[0] &= ~0x00000800u;
}
inline void ConfigGameServer::clear_max_occupy_player_ship_times() {
max_occupy_player_ship_times_ = 0;
clear_has_max_occupy_player_ship_times();
}
inline ::google::protobuf::int32 ConfigGameServer::max_occupy_player_ship_times() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.max_occupy_player_ship_times)
return max_occupy_player_ship_times_;
}
inline void ConfigGameServer::set_max_occupy_player_ship_times(::google::protobuf::int32 value) {
set_has_max_occupy_player_ship_times();
max_occupy_player_ship_times_ = value;
// @@protoc_insertion_point(field_set:db.ConfigGameServer.max_occupy_player_ship_times)
}
// required int32 max_occupy_special_ship_times = 6;
inline bool ConfigGameServer::has_max_occupy_special_ship_times() const {
return (_has_bits_[0] & 0x00001000u) != 0;
}
inline void ConfigGameServer::set_has_max_occupy_special_ship_times() {
_has_bits_[0] |= 0x00001000u;
}
inline void ConfigGameServer::clear_has_max_occupy_special_ship_times() {
_has_bits_[0] &= ~0x00001000u;
}
inline void ConfigGameServer::clear_max_occupy_special_ship_times() {
max_occupy_special_ship_times_ = 0;
clear_has_max_occupy_special_ship_times();
}
inline ::google::protobuf::int32 ConfigGameServer::max_occupy_special_ship_times() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.max_occupy_special_ship_times)
return max_occupy_special_ship_times_;
}
inline void ConfigGameServer::set_max_occupy_special_ship_times(::google::protobuf::int32 value) {
set_has_max_occupy_special_ship_times();
max_occupy_special_ship_times_ = value;
// @@protoc_insertion_point(field_set:db.ConfigGameServer.max_occupy_special_ship_times)
}
// required int32 max_ghost_ship_reset_times = 7;
inline bool ConfigGameServer::has_max_ghost_ship_reset_times() const {
return (_has_bits_[0] & 0x00002000u) != 0;
}
inline void ConfigGameServer::set_has_max_ghost_ship_reset_times() {
_has_bits_[0] |= 0x00002000u;
}
inline void ConfigGameServer::clear_has_max_ghost_ship_reset_times() {
_has_bits_[0] &= ~0x00002000u;
}
inline void ConfigGameServer::clear_max_ghost_ship_reset_times() {
max_ghost_ship_reset_times_ = 0;
clear_has_max_ghost_ship_reset_times();
}
inline ::google::protobuf::int32 ConfigGameServer::max_ghost_ship_reset_times() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.max_ghost_ship_reset_times)
return max_ghost_ship_reset_times_;
}
inline void ConfigGameServer::set_max_ghost_ship_reset_times(::google::protobuf::int32 value) {
set_has_max_ghost_ship_reset_times();
max_ghost_ship_reset_times_ = value;
// @@protoc_insertion_point(field_set:db.ConfigGameServer.max_ghost_ship_reset_times)
}
// required bytes ghost_ship_reset_cost = 8;
inline bool ConfigGameServer::has_ghost_ship_reset_cost() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void ConfigGameServer::set_has_ghost_ship_reset_cost() {
_has_bits_[0] |= 0x00000001u;
}
inline void ConfigGameServer::clear_has_ghost_ship_reset_cost() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ConfigGameServer::clear_ghost_ship_reset_cost() {
ghost_ship_reset_cost_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_ghost_ship_reset_cost();
}
inline const ::std::string& ConfigGameServer::ghost_ship_reset_cost() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.ghost_ship_reset_cost)
return ghost_ship_reset_cost_.Get();
}
inline void ConfigGameServer::set_ghost_ship_reset_cost(const ::std::string& value) {
set_has_ghost_ship_reset_cost();
ghost_ship_reset_cost_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.ConfigGameServer.ghost_ship_reset_cost)
}
#if LANG_CXX11
inline void ConfigGameServer::set_ghost_ship_reset_cost(::std::string&& value) {
set_has_ghost_ship_reset_cost();
ghost_ship_reset_cost_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.ConfigGameServer.ghost_ship_reset_cost)
}
#endif
inline void ConfigGameServer::set_ghost_ship_reset_cost(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_ghost_ship_reset_cost();
ghost_ship_reset_cost_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.ConfigGameServer.ghost_ship_reset_cost)
}
inline void ConfigGameServer::set_ghost_ship_reset_cost(const void* value,
size_t size) {
set_has_ghost_ship_reset_cost();
ghost_ship_reset_cost_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.ConfigGameServer.ghost_ship_reset_cost)
}
inline ::std::string* ConfigGameServer::mutable_ghost_ship_reset_cost() {
set_has_ghost_ship_reset_cost();
// @@protoc_insertion_point(field_mutable:db.ConfigGameServer.ghost_ship_reset_cost)
return ghost_ship_reset_cost_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* ConfigGameServer::release_ghost_ship_reset_cost() {
// @@protoc_insertion_point(field_release:db.ConfigGameServer.ghost_ship_reset_cost)
if (!has_ghost_ship_reset_cost()) {
return NULL;
}
clear_has_ghost_ship_reset_cost();
return ghost_ship_reset_cost_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void ConfigGameServer::set_allocated_ghost_ship_reset_cost(::std::string* ghost_ship_reset_cost) {
if (ghost_ship_reset_cost != NULL) {
set_has_ghost_ship_reset_cost();
} else {
clear_has_ghost_ship_reset_cost();
}
ghost_ship_reset_cost_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ghost_ship_reset_cost,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.ConfigGameServer.ghost_ship_reset_cost)
}
inline ::std::string* ConfigGameServer::unsafe_arena_release_ghost_ship_reset_cost() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.ConfigGameServer.ghost_ship_reset_cost)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_ghost_ship_reset_cost();
return ghost_ship_reset_cost_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void ConfigGameServer::unsafe_arena_set_allocated_ghost_ship_reset_cost(
::std::string* ghost_ship_reset_cost) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (ghost_ship_reset_cost != NULL) {
set_has_ghost_ship_reset_cost();
} else {
clear_has_ghost_ship_reset_cost();
}
ghost_ship_reset_cost_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
ghost_ship_reset_cost, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.ConfigGameServer.ghost_ship_reset_cost)
}
// required int32 max_fast_reach_ticket_num = 9;
inline bool ConfigGameServer::has_max_fast_reach_ticket_num() const {
return (_has_bits_[0] & 0x00004000u) != 0;
}
inline void ConfigGameServer::set_has_max_fast_reach_ticket_num() {
_has_bits_[0] |= 0x00004000u;
}
inline void ConfigGameServer::clear_has_max_fast_reach_ticket_num() {
_has_bits_[0] &= ~0x00004000u;
}
inline void ConfigGameServer::clear_max_fast_reach_ticket_num() {
max_fast_reach_ticket_num_ = 0;
clear_has_max_fast_reach_ticket_num();
}
inline ::google::protobuf::int32 ConfigGameServer::max_fast_reach_ticket_num() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.max_fast_reach_ticket_num)
return max_fast_reach_ticket_num_;
}
inline void ConfigGameServer::set_max_fast_reach_ticket_num(::google::protobuf::int32 value) {
set_has_max_fast_reach_ticket_num();
max_fast_reach_ticket_num_ = value;
// @@protoc_insertion_point(field_set:db.ConfigGameServer.max_fast_reach_ticket_num)
}
// required int32 fast_reach_ticket_cd = 10;
inline bool ConfigGameServer::has_fast_reach_ticket_cd() const {
return (_has_bits_[0] & 0x00008000u) != 0;
}
inline void ConfigGameServer::set_has_fast_reach_ticket_cd() {
_has_bits_[0] |= 0x00008000u;
}
inline void ConfigGameServer::clear_has_fast_reach_ticket_cd() {
_has_bits_[0] &= ~0x00008000u;
}
inline void ConfigGameServer::clear_fast_reach_ticket_cd() {
fast_reach_ticket_cd_ = 0;
clear_has_fast_reach_ticket_cd();
}
inline ::google::protobuf::int32 ConfigGameServer::fast_reach_ticket_cd() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.fast_reach_ticket_cd)
return fast_reach_ticket_cd_;
}
inline void ConfigGameServer::set_fast_reach_ticket_cd(::google::protobuf::int32 value) {
set_has_fast_reach_ticket_cd();
fast_reach_ticket_cd_ = value;
// @@protoc_insertion_point(field_set:db.ConfigGameServer.fast_reach_ticket_cd)
}
// required bytes jjc_daily_mail_title = 11;
inline bool ConfigGameServer::has_jjc_daily_mail_title() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void ConfigGameServer::set_has_jjc_daily_mail_title() {
_has_bits_[0] |= 0x00000002u;
}
inline void ConfigGameServer::clear_has_jjc_daily_mail_title() {
_has_bits_[0] &= ~0x00000002u;
}
inline void ConfigGameServer::clear_jjc_daily_mail_title() {
jjc_daily_mail_title_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_jjc_daily_mail_title();
}
inline const ::std::string& ConfigGameServer::jjc_daily_mail_title() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.jjc_daily_mail_title)
return jjc_daily_mail_title_.Get();
}
inline void ConfigGameServer::set_jjc_daily_mail_title(const ::std::string& value) {
set_has_jjc_daily_mail_title();
jjc_daily_mail_title_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.ConfigGameServer.jjc_daily_mail_title)
}
#if LANG_CXX11
inline void ConfigGameServer::set_jjc_daily_mail_title(::std::string&& value) {
set_has_jjc_daily_mail_title();
jjc_daily_mail_title_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.ConfigGameServer.jjc_daily_mail_title)
}
#endif
inline void ConfigGameServer::set_jjc_daily_mail_title(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_jjc_daily_mail_title();
jjc_daily_mail_title_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.ConfigGameServer.jjc_daily_mail_title)
}
inline void ConfigGameServer::set_jjc_daily_mail_title(const void* value,
size_t size) {
set_has_jjc_daily_mail_title();
jjc_daily_mail_title_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.ConfigGameServer.jjc_daily_mail_title)
}
inline ::std::string* ConfigGameServer::mutable_jjc_daily_mail_title() {
set_has_jjc_daily_mail_title();
// @@protoc_insertion_point(field_mutable:db.ConfigGameServer.jjc_daily_mail_title)
return jjc_daily_mail_title_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* ConfigGameServer::release_jjc_daily_mail_title() {
// @@protoc_insertion_point(field_release:db.ConfigGameServer.jjc_daily_mail_title)
if (!has_jjc_daily_mail_title()) {
return NULL;
}
clear_has_jjc_daily_mail_title();
return jjc_daily_mail_title_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void ConfigGameServer::set_allocated_jjc_daily_mail_title(::std::string* jjc_daily_mail_title) {
if (jjc_daily_mail_title != NULL) {
set_has_jjc_daily_mail_title();
} else {
clear_has_jjc_daily_mail_title();
}
jjc_daily_mail_title_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), jjc_daily_mail_title,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.ConfigGameServer.jjc_daily_mail_title)
}
inline ::std::string* ConfigGameServer::unsafe_arena_release_jjc_daily_mail_title() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.ConfigGameServer.jjc_daily_mail_title)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_jjc_daily_mail_title();
return jjc_daily_mail_title_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void ConfigGameServer::unsafe_arena_set_allocated_jjc_daily_mail_title(
::std::string* jjc_daily_mail_title) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (jjc_daily_mail_title != NULL) {
set_has_jjc_daily_mail_title();
} else {
clear_has_jjc_daily_mail_title();
}
jjc_daily_mail_title_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
jjc_daily_mail_title, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.ConfigGameServer.jjc_daily_mail_title)
}
// required bytes jjc_daily_mail_content = 12;
inline bool ConfigGameServer::has_jjc_daily_mail_content() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void ConfigGameServer::set_has_jjc_daily_mail_content() {
_has_bits_[0] |= 0x00000004u;
}
inline void ConfigGameServer::clear_has_jjc_daily_mail_content() {
_has_bits_[0] &= ~0x00000004u;
}
inline void ConfigGameServer::clear_jjc_daily_mail_content() {
jjc_daily_mail_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_jjc_daily_mail_content();
}
inline const ::std::string& ConfigGameServer::jjc_daily_mail_content() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.jjc_daily_mail_content)
return jjc_daily_mail_content_.Get();
}
inline void ConfigGameServer::set_jjc_daily_mail_content(const ::std::string& value) {
set_has_jjc_daily_mail_content();
jjc_daily_mail_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.ConfigGameServer.jjc_daily_mail_content)
}
#if LANG_CXX11
inline void ConfigGameServer::set_jjc_daily_mail_content(::std::string&& value) {
set_has_jjc_daily_mail_content();
jjc_daily_mail_content_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.ConfigGameServer.jjc_daily_mail_content)
}
#endif
inline void ConfigGameServer::set_jjc_daily_mail_content(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_jjc_daily_mail_content();
jjc_daily_mail_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.ConfigGameServer.jjc_daily_mail_content)
}
inline void ConfigGameServer::set_jjc_daily_mail_content(const void* value,
size_t size) {
set_has_jjc_daily_mail_content();
jjc_daily_mail_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.ConfigGameServer.jjc_daily_mail_content)
}
inline ::std::string* ConfigGameServer::mutable_jjc_daily_mail_content() {
set_has_jjc_daily_mail_content();
// @@protoc_insertion_point(field_mutable:db.ConfigGameServer.jjc_daily_mail_content)
return jjc_daily_mail_content_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* ConfigGameServer::release_jjc_daily_mail_content() {
// @@protoc_insertion_point(field_release:db.ConfigGameServer.jjc_daily_mail_content)
if (!has_jjc_daily_mail_content()) {
return NULL;
}
clear_has_jjc_daily_mail_content();
return jjc_daily_mail_content_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void ConfigGameServer::set_allocated_jjc_daily_mail_content(::std::string* jjc_daily_mail_content) {
if (jjc_daily_mail_content != NULL) {
set_has_jjc_daily_mail_content();
} else {
clear_has_jjc_daily_mail_content();
}
jjc_daily_mail_content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), jjc_daily_mail_content,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.ConfigGameServer.jjc_daily_mail_content)
}
inline ::std::string* ConfigGameServer::unsafe_arena_release_jjc_daily_mail_content() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.ConfigGameServer.jjc_daily_mail_content)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_jjc_daily_mail_content();
return jjc_daily_mail_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void ConfigGameServer::unsafe_arena_set_allocated_jjc_daily_mail_content(
::std::string* jjc_daily_mail_content) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (jjc_daily_mail_content != NULL) {
set_has_jjc_daily_mail_content();
} else {
clear_has_jjc_daily_mail_content();
}
jjc_daily_mail_content_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
jjc_daily_mail_content, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.ConfigGameServer.jjc_daily_mail_content)
}
// required bytes jjc_weekly_mail_title = 13;
inline bool ConfigGameServer::has_jjc_weekly_mail_title() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void ConfigGameServer::set_has_jjc_weekly_mail_title() {
_has_bits_[0] |= 0x00000008u;
}
inline void ConfigGameServer::clear_has_jjc_weekly_mail_title() {
_has_bits_[0] &= ~0x00000008u;
}
inline void ConfigGameServer::clear_jjc_weekly_mail_title() {
jjc_weekly_mail_title_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_jjc_weekly_mail_title();
}
inline const ::std::string& ConfigGameServer::jjc_weekly_mail_title() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.jjc_weekly_mail_title)
return jjc_weekly_mail_title_.Get();
}
inline void ConfigGameServer::set_jjc_weekly_mail_title(const ::std::string& value) {
set_has_jjc_weekly_mail_title();
jjc_weekly_mail_title_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.ConfigGameServer.jjc_weekly_mail_title)
}
#if LANG_CXX11
inline void ConfigGameServer::set_jjc_weekly_mail_title(::std::string&& value) {
set_has_jjc_weekly_mail_title();
jjc_weekly_mail_title_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.ConfigGameServer.jjc_weekly_mail_title)
}
#endif
inline void ConfigGameServer::set_jjc_weekly_mail_title(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_jjc_weekly_mail_title();
jjc_weekly_mail_title_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.ConfigGameServer.jjc_weekly_mail_title)
}
inline void ConfigGameServer::set_jjc_weekly_mail_title(const void* value,
size_t size) {
set_has_jjc_weekly_mail_title();
jjc_weekly_mail_title_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.ConfigGameServer.jjc_weekly_mail_title)
}
inline ::std::string* ConfigGameServer::mutable_jjc_weekly_mail_title() {
set_has_jjc_weekly_mail_title();
// @@protoc_insertion_point(field_mutable:db.ConfigGameServer.jjc_weekly_mail_title)
return jjc_weekly_mail_title_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* ConfigGameServer::release_jjc_weekly_mail_title() {
// @@protoc_insertion_point(field_release:db.ConfigGameServer.jjc_weekly_mail_title)
if (!has_jjc_weekly_mail_title()) {
return NULL;
}
clear_has_jjc_weekly_mail_title();
return jjc_weekly_mail_title_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void ConfigGameServer::set_allocated_jjc_weekly_mail_title(::std::string* jjc_weekly_mail_title) {
if (jjc_weekly_mail_title != NULL) {
set_has_jjc_weekly_mail_title();
} else {
clear_has_jjc_weekly_mail_title();
}
jjc_weekly_mail_title_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), jjc_weekly_mail_title,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.ConfigGameServer.jjc_weekly_mail_title)
}
inline ::std::string* ConfigGameServer::unsafe_arena_release_jjc_weekly_mail_title() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.ConfigGameServer.jjc_weekly_mail_title)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_jjc_weekly_mail_title();
return jjc_weekly_mail_title_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void ConfigGameServer::unsafe_arena_set_allocated_jjc_weekly_mail_title(
::std::string* jjc_weekly_mail_title) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (jjc_weekly_mail_title != NULL) {
set_has_jjc_weekly_mail_title();
} else {
clear_has_jjc_weekly_mail_title();
}
jjc_weekly_mail_title_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
jjc_weekly_mail_title, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.ConfigGameServer.jjc_weekly_mail_title)
}
// required bytes jjc_weekly_mail_content = 14;
inline bool ConfigGameServer::has_jjc_weekly_mail_content() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void ConfigGameServer::set_has_jjc_weekly_mail_content() {
_has_bits_[0] |= 0x00000010u;
}
inline void ConfigGameServer::clear_has_jjc_weekly_mail_content() {
_has_bits_[0] &= ~0x00000010u;
}
inline void ConfigGameServer::clear_jjc_weekly_mail_content() {
jjc_weekly_mail_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_jjc_weekly_mail_content();
}
inline const ::std::string& ConfigGameServer::jjc_weekly_mail_content() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.jjc_weekly_mail_content)
return jjc_weekly_mail_content_.Get();
}
inline void ConfigGameServer::set_jjc_weekly_mail_content(const ::std::string& value) {
set_has_jjc_weekly_mail_content();
jjc_weekly_mail_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.ConfigGameServer.jjc_weekly_mail_content)
}
#if LANG_CXX11
inline void ConfigGameServer::set_jjc_weekly_mail_content(::std::string&& value) {
set_has_jjc_weekly_mail_content();
jjc_weekly_mail_content_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.ConfigGameServer.jjc_weekly_mail_content)
}
#endif
inline void ConfigGameServer::set_jjc_weekly_mail_content(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_jjc_weekly_mail_content();
jjc_weekly_mail_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.ConfigGameServer.jjc_weekly_mail_content)
}
inline void ConfigGameServer::set_jjc_weekly_mail_content(const void* value,
size_t size) {
set_has_jjc_weekly_mail_content();
jjc_weekly_mail_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.ConfigGameServer.jjc_weekly_mail_content)
}
inline ::std::string* ConfigGameServer::mutable_jjc_weekly_mail_content() {
set_has_jjc_weekly_mail_content();
// @@protoc_insertion_point(field_mutable:db.ConfigGameServer.jjc_weekly_mail_content)
return jjc_weekly_mail_content_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* ConfigGameServer::release_jjc_weekly_mail_content() {
// @@protoc_insertion_point(field_release:db.ConfigGameServer.jjc_weekly_mail_content)
if (!has_jjc_weekly_mail_content()) {
return NULL;
}
clear_has_jjc_weekly_mail_content();
return jjc_weekly_mail_content_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void ConfigGameServer::set_allocated_jjc_weekly_mail_content(::std::string* jjc_weekly_mail_content) {
if (jjc_weekly_mail_content != NULL) {
set_has_jjc_weekly_mail_content();
} else {
clear_has_jjc_weekly_mail_content();
}
jjc_weekly_mail_content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), jjc_weekly_mail_content,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.ConfigGameServer.jjc_weekly_mail_content)
}
inline ::std::string* ConfigGameServer::unsafe_arena_release_jjc_weekly_mail_content() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.ConfigGameServer.jjc_weekly_mail_content)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_jjc_weekly_mail_content();
return jjc_weekly_mail_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void ConfigGameServer::unsafe_arena_set_allocated_jjc_weekly_mail_content(
::std::string* jjc_weekly_mail_content) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (jjc_weekly_mail_content != NULL) {
set_has_jjc_weekly_mail_content();
} else {
clear_has_jjc_weekly_mail_content();
}
jjc_weekly_mail_content_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
jjc_weekly_mail_content, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.ConfigGameServer.jjc_weekly_mail_content)
}
// required bytes jjc_monthly_mail_title = 15;
inline bool ConfigGameServer::has_jjc_monthly_mail_title() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void ConfigGameServer::set_has_jjc_monthly_mail_title() {
_has_bits_[0] |= 0x00000020u;
}
inline void ConfigGameServer::clear_has_jjc_monthly_mail_title() {
_has_bits_[0] &= ~0x00000020u;
}
inline void ConfigGameServer::clear_jjc_monthly_mail_title() {
jjc_monthly_mail_title_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_jjc_monthly_mail_title();
}
inline const ::std::string& ConfigGameServer::jjc_monthly_mail_title() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.jjc_monthly_mail_title)
return jjc_monthly_mail_title_.Get();
}
inline void ConfigGameServer::set_jjc_monthly_mail_title(const ::std::string& value) {
set_has_jjc_monthly_mail_title();
jjc_monthly_mail_title_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.ConfigGameServer.jjc_monthly_mail_title)
}
#if LANG_CXX11
inline void ConfigGameServer::set_jjc_monthly_mail_title(::std::string&& value) {
set_has_jjc_monthly_mail_title();
jjc_monthly_mail_title_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.ConfigGameServer.jjc_monthly_mail_title)
}
#endif
inline void ConfigGameServer::set_jjc_monthly_mail_title(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_jjc_monthly_mail_title();
jjc_monthly_mail_title_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.ConfigGameServer.jjc_monthly_mail_title)
}
inline void ConfigGameServer::set_jjc_monthly_mail_title(const void* value,
size_t size) {
set_has_jjc_monthly_mail_title();
jjc_monthly_mail_title_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.ConfigGameServer.jjc_monthly_mail_title)
}
inline ::std::string* ConfigGameServer::mutable_jjc_monthly_mail_title() {
set_has_jjc_monthly_mail_title();
// @@protoc_insertion_point(field_mutable:db.ConfigGameServer.jjc_monthly_mail_title)
return jjc_monthly_mail_title_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* ConfigGameServer::release_jjc_monthly_mail_title() {
// @@protoc_insertion_point(field_release:db.ConfigGameServer.jjc_monthly_mail_title)
if (!has_jjc_monthly_mail_title()) {
return NULL;
}
clear_has_jjc_monthly_mail_title();
return jjc_monthly_mail_title_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void ConfigGameServer::set_allocated_jjc_monthly_mail_title(::std::string* jjc_monthly_mail_title) {
if (jjc_monthly_mail_title != NULL) {
set_has_jjc_monthly_mail_title();
} else {
clear_has_jjc_monthly_mail_title();
}
jjc_monthly_mail_title_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), jjc_monthly_mail_title,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.ConfigGameServer.jjc_monthly_mail_title)
}
inline ::std::string* ConfigGameServer::unsafe_arena_release_jjc_monthly_mail_title() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.ConfigGameServer.jjc_monthly_mail_title)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_jjc_monthly_mail_title();
return jjc_monthly_mail_title_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void ConfigGameServer::unsafe_arena_set_allocated_jjc_monthly_mail_title(
::std::string* jjc_monthly_mail_title) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (jjc_monthly_mail_title != NULL) {
set_has_jjc_monthly_mail_title();
} else {
clear_has_jjc_monthly_mail_title();
}
jjc_monthly_mail_title_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
jjc_monthly_mail_title, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.ConfigGameServer.jjc_monthly_mail_title)
}
// required bytes jjc_monthly_mail_content = 16;
inline bool ConfigGameServer::has_jjc_monthly_mail_content() const {
return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void ConfigGameServer::set_has_jjc_monthly_mail_content() {
_has_bits_[0] |= 0x00000040u;
}
inline void ConfigGameServer::clear_has_jjc_monthly_mail_content() {
_has_bits_[0] &= ~0x00000040u;
}
inline void ConfigGameServer::clear_jjc_monthly_mail_content() {
jjc_monthly_mail_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_jjc_monthly_mail_content();
}
inline const ::std::string& ConfigGameServer::jjc_monthly_mail_content() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.jjc_monthly_mail_content)
return jjc_monthly_mail_content_.Get();
}
inline void ConfigGameServer::set_jjc_monthly_mail_content(const ::std::string& value) {
set_has_jjc_monthly_mail_content();
jjc_monthly_mail_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.ConfigGameServer.jjc_monthly_mail_content)
}
#if LANG_CXX11
inline void ConfigGameServer::set_jjc_monthly_mail_content(::std::string&& value) {
set_has_jjc_monthly_mail_content();
jjc_monthly_mail_content_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.ConfigGameServer.jjc_monthly_mail_content)
}
#endif
inline void ConfigGameServer::set_jjc_monthly_mail_content(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_jjc_monthly_mail_content();
jjc_monthly_mail_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.ConfigGameServer.jjc_monthly_mail_content)
}
inline void ConfigGameServer::set_jjc_monthly_mail_content(const void* value,
size_t size) {
set_has_jjc_monthly_mail_content();
jjc_monthly_mail_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.ConfigGameServer.jjc_monthly_mail_content)
}
inline ::std::string* ConfigGameServer::mutable_jjc_monthly_mail_content() {
set_has_jjc_monthly_mail_content();
// @@protoc_insertion_point(field_mutable:db.ConfigGameServer.jjc_monthly_mail_content)
return jjc_monthly_mail_content_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* ConfigGameServer::release_jjc_monthly_mail_content() {
// @@protoc_insertion_point(field_release:db.ConfigGameServer.jjc_monthly_mail_content)
if (!has_jjc_monthly_mail_content()) {
return NULL;
}
clear_has_jjc_monthly_mail_content();
return jjc_monthly_mail_content_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void ConfigGameServer::set_allocated_jjc_monthly_mail_content(::std::string* jjc_monthly_mail_content) {
if (jjc_monthly_mail_content != NULL) {
set_has_jjc_monthly_mail_content();
} else {
clear_has_jjc_monthly_mail_content();
}
jjc_monthly_mail_content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), jjc_monthly_mail_content,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.ConfigGameServer.jjc_monthly_mail_content)
}
inline ::std::string* ConfigGameServer::unsafe_arena_release_jjc_monthly_mail_content() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.ConfigGameServer.jjc_monthly_mail_content)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_jjc_monthly_mail_content();
return jjc_monthly_mail_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void ConfigGameServer::unsafe_arena_set_allocated_jjc_monthly_mail_content(
::std::string* jjc_monthly_mail_content) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (jjc_monthly_mail_content != NULL) {
set_has_jjc_monthly_mail_content();
} else {
clear_has_jjc_monthly_mail_content();
}
jjc_monthly_mail_content_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
jjc_monthly_mail_content, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.ConfigGameServer.jjc_monthly_mail_content)
}
// required int32 repeat_task_refresh_times = 17;
inline bool ConfigGameServer::has_repeat_task_refresh_times() const {
return (_has_bits_[0] & 0x00010000u) != 0;
}
inline void ConfigGameServer::set_has_repeat_task_refresh_times() {
_has_bits_[0] |= 0x00010000u;
}
inline void ConfigGameServer::clear_has_repeat_task_refresh_times() {
_has_bits_[0] &= ~0x00010000u;
}
inline void ConfigGameServer::clear_repeat_task_refresh_times() {
repeat_task_refresh_times_ = 0;
clear_has_repeat_task_refresh_times();
}
inline ::google::protobuf::int32 ConfigGameServer::repeat_task_refresh_times() const {
// @@protoc_insertion_point(field_get:db.ConfigGameServer.repeat_task_refresh_times)
return repeat_task_refresh_times_;
}
inline void ConfigGameServer::set_repeat_task_refresh_times(::google::protobuf::int32 value) {
set_has_repeat_task_refresh_times();
repeat_task_refresh_times_ = value;
// @@protoc_insertion_point(field_set:db.ConfigGameServer.repeat_task_refresh_times)
}
// -------------------------------------------------------------------
// GameRobot
// required int32 id = 1;
inline bool GameRobot::has_id() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void GameRobot::set_has_id() {
_has_bits_[0] |= 0x00000001u;
}
inline void GameRobot::clear_has_id() {
_has_bits_[0] &= ~0x00000001u;
}
inline void GameRobot::clear_id() {
id_ = 0;
clear_has_id();
}
inline ::google::protobuf::int32 GameRobot::id() const {
// @@protoc_insertion_point(field_get:db.GameRobot.id)
return id_;
}
inline void GameRobot::set_id(::google::protobuf::int32 value) {
set_has_id();
id_ = value;
// @@protoc_insertion_point(field_set:db.GameRobot.id)
}
// required int32 ticketid = 2;
inline bool GameRobot::has_ticketid() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void GameRobot::set_has_ticketid() {
_has_bits_[0] |= 0x00000002u;
}
inline void GameRobot::clear_has_ticketid() {
_has_bits_[0] &= ~0x00000002u;
}
inline void GameRobot::clear_ticketid() {
ticketid_ = 0;
clear_has_ticketid();
}
inline ::google::protobuf::int32 GameRobot::ticketid() const {
// @@protoc_insertion_point(field_get:db.GameRobot.ticketid)
return ticketid_;
}
inline void GameRobot::set_ticketid(::google::protobuf::int32 value) {
set_has_ticketid();
ticketid_ = value;
// @@protoc_insertion_point(field_set:db.GameRobot.ticketid)
}
// required int32 init_level = 3;
inline bool GameRobot::has_init_level() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void GameRobot::set_has_init_level() {
_has_bits_[0] |= 0x00000004u;
}
inline void GameRobot::clear_has_init_level() {
_has_bits_[0] &= ~0x00000004u;
}
inline void GameRobot::clear_init_level() {
init_level_ = 0;
clear_has_init_level();
}
inline ::google::protobuf::int32 GameRobot::init_level() const {
// @@protoc_insertion_point(field_get:db.GameRobot.init_level)
return init_level_;
}
inline void GameRobot::set_init_level(::google::protobuf::int32 value) {
set_has_init_level();
init_level_ = value;
// @@protoc_insertion_point(field_set:db.GameRobot.init_level)
}
// -------------------------------------------------------------------
// GameAnnouncement
// required int32 id = 1;
inline bool GameAnnouncement::has_id() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void GameAnnouncement::set_has_id() {
_has_bits_[0] |= 0x00000002u;
}
inline void GameAnnouncement::clear_has_id() {
_has_bits_[0] &= ~0x00000002u;
}
inline void GameAnnouncement::clear_id() {
id_ = 0;
clear_has_id();
}
inline ::google::protobuf::int32 GameAnnouncement::id() const {
// @@protoc_insertion_point(field_get:db.GameAnnouncement.id)
return id_;
}
inline void GameAnnouncement::set_id(::google::protobuf::int32 value) {
set_has_id();
id_ = value;
// @@protoc_insertion_point(field_set:db.GameAnnouncement.id)
}
// required int32 type = 2;
inline bool GameAnnouncement::has_type() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void GameAnnouncement::set_has_type() {
_has_bits_[0] |= 0x00000004u;
}
inline void GameAnnouncement::clear_has_type() {
_has_bits_[0] &= ~0x00000004u;
}
inline void GameAnnouncement::clear_type() {
type_ = 0;
clear_has_type();
}
inline ::google::protobuf::int32 GameAnnouncement::type() const {
// @@protoc_insertion_point(field_get:db.GameAnnouncement.type)
return type_;
}
inline void GameAnnouncement::set_type(::google::protobuf::int32 value) {
set_has_type();
type_ = value;
// @@protoc_insertion_point(field_set:db.GameAnnouncement.type)
}
// required sfixed64 timestamp = 3;
inline bool GameAnnouncement::has_timestamp() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void GameAnnouncement::set_has_timestamp() {
_has_bits_[0] |= 0x00000008u;
}
inline void GameAnnouncement::clear_has_timestamp() {
_has_bits_[0] &= ~0x00000008u;
}
inline void GameAnnouncement::clear_timestamp() {
timestamp_ = GOOGLE_LONGLONG(0);
clear_has_timestamp();
}
inline ::google::protobuf::int64 GameAnnouncement::timestamp() const {
// @@protoc_insertion_point(field_get:db.GameAnnouncement.timestamp)
return timestamp_;
}
inline void GameAnnouncement::set_timestamp(::google::protobuf::int64 value) {
set_has_timestamp();
timestamp_ = value;
// @@protoc_insertion_point(field_set:db.GameAnnouncement.timestamp)
}
// required int32 circle_seconds = 4;
inline bool GameAnnouncement::has_circle_seconds() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void GameAnnouncement::set_has_circle_seconds() {
_has_bits_[0] |= 0x00000010u;
}
inline void GameAnnouncement::clear_has_circle_seconds() {
_has_bits_[0] &= ~0x00000010u;
}
inline void GameAnnouncement::clear_circle_seconds() {
circle_seconds_ = 0;
clear_has_circle_seconds();
}
inline ::google::protobuf::int32 GameAnnouncement::circle_seconds() const {
// @@protoc_insertion_point(field_get:db.GameAnnouncement.circle_seconds)
return circle_seconds_;
}
inline void GameAnnouncement::set_circle_seconds(::google::protobuf::int32 value) {
set_has_circle_seconds();
circle_seconds_ = value;
// @@protoc_insertion_point(field_set:db.GameAnnouncement.circle_seconds)
}
// required bool read = 5;
inline bool GameAnnouncement::has_read() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void GameAnnouncement::set_has_read() {
_has_bits_[0] |= 0x00000020u;
}
inline void GameAnnouncement::clear_has_read() {
_has_bits_[0] &= ~0x00000020u;
}
inline void GameAnnouncement::clear_read() {
read_ = false;
clear_has_read();
}
inline bool GameAnnouncement::read() const {
// @@protoc_insertion_point(field_get:db.GameAnnouncement.read)
return read_;
}
inline void GameAnnouncement::set_read(bool value) {
set_has_read();
read_ = value;
// @@protoc_insertion_point(field_set:db.GameAnnouncement.read)
}
// required bytes data = 6;
inline bool GameAnnouncement::has_data() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void GameAnnouncement::set_has_data() {
_has_bits_[0] |= 0x00000001u;
}
inline void GameAnnouncement::clear_has_data() {
_has_bits_[0] &= ~0x00000001u;
}
inline void GameAnnouncement::clear_data() {
data_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_data();
}
inline const ::std::string& GameAnnouncement::data() const {
// @@protoc_insertion_point(field_get:db.GameAnnouncement.data)
return data_.Get();
}
inline void GameAnnouncement::set_data(const ::std::string& value) {
set_has_data();
data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:db.GameAnnouncement.data)
}
#if LANG_CXX11
inline void GameAnnouncement::set_data(::std::string&& value) {
set_has_data();
data_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:db.GameAnnouncement.data)
}
#endif
inline void GameAnnouncement::set_data(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_data();
data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:db.GameAnnouncement.data)
}
inline void GameAnnouncement::set_data(const void* value,
size_t size) {
set_has_data();
data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:db.GameAnnouncement.data)
}
inline ::std::string* GameAnnouncement::mutable_data() {
set_has_data();
// @@protoc_insertion_point(field_mutable:db.GameAnnouncement.data)
return data_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* GameAnnouncement::release_data() {
// @@protoc_insertion_point(field_release:db.GameAnnouncement.data)
if (!has_data()) {
return NULL;
}
clear_has_data();
return data_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void GameAnnouncement::set_allocated_data(::std::string* data) {
if (data != NULL) {
set_has_data();
} else {
clear_has_data();
}
data_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:db.GameAnnouncement.data)
}
inline ::std::string* GameAnnouncement::unsafe_arena_release_data() {
// @@protoc_insertion_point(field_unsafe_arena_release:db.GameAnnouncement.data)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_data();
return data_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void GameAnnouncement::unsafe_arena_set_allocated_data(
::std::string* data) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (data != NULL) {
set_has_data();
} else {
clear_has_data();
}
data_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
data, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:db.GameAnnouncement.data)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace db
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_INCLUDED_StoredProcGameAssets_2eproto
| [
"nneesshh@163.com"
] | nneesshh@163.com |
b19a2a7a31c3f690d2e4f403667498afeaad2d1d | 9b94c99757a2a6843190bf256625344fb3201b95 | /Game/Events/StartBuildEvent.cpp | 8063dfa4bbfa26513a580471ce0563fbed662bc8 | [] | no_license | TheDimin/AntDefence | c58f376685f12be94aa60b3f84fbb34c58e7db71 | 79b1b67a1e3cff65fbc72a22e62ec5bad19b82bc | refs/heads/master | 2023-04-28T01:11:02.667882 | 2021-05-14T19:52:06 | 2021-05-14T19:52:06 | 321,152,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29 | cpp | #include "StartBuildEvent.h"
| [
"d.p.hoorn@outlook.com"
] | d.p.hoorn@outlook.com |
adfd0aae18340398caa0b7b9379035043fcfb5b9 | 81e9adcb28394b5e19c1dbf561bd5b5bd6ec993f | /Leetcode/Dynamic_Programming/161_One_Edit_Distance.cpp | 4e44ec53a03fcae3345dac63ad0ede1eba9df1c9 | [] | no_license | poweihuang17/practice_leetcode_and_interview | eeb8d0091b56a5cc4ea566f1395dee1cfe021604 | 59c17c221ddc6e2a4dc95cf11fda34574611c832 | refs/heads/master | 2021-05-03T05:52:49.369265 | 2018-05-10T02:10:31 | 2018-05-10T02:10:31 | 120,585,290 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,291 | cpp | #include <string>
#include <iostream>
#include <algorithm>
#include <stdlib.h>
using namespace std;
class Solution {
public:
bool isOneEditDistance(string s, string t) {
int diff=s.size()-t.size();
if(abs(diff)==0)
{
bool one_distance=false;
for(int i=0;i<s.size();i++)
{
if(s[i]!=t[i])
{
if(one_distance==false)
one_distance=true;
else
return false;
}
}
return one_distance;
}
else if(abs( diff)==1)
{
bool one_distance=false;
int m=s.size();
int n=t.size();
int l=min(m,n);
for(int i=0;i<l;i++)
{
if(s[i]!=t[i])
{
if(one_distance) return false;
if(s.size()<t.size())
{
s.insert(i,1,t[i]);
one_distance=true;
}
else
{
t.insert(i,1,s[i]);
one_distance=true;
}
}
}
return one_distance==false || (one_distance==true && s.back()==t.back() );
}
else
return false;
}
};
int main()
{
string a="";
string b="A";
cout<<Solution().isOneEditDistance(a,b);
} | [
"poweihuang17@gmail.com"
] | poweihuang17@gmail.com |
d4f5924730dce86318b8d5fda6e7b3813f2ff467 | a9c7812475a00c38f882b5d759b2e11a8f9817c8 | /Module_01/ex05/Human.hpp | 66d69ce846bf6ce1bb6edeb3c21cb0bb0b6857ab | [] | no_license | Toka-toka/C_2plus_piscine | 03bbb849c6bde5affbc8846130e0edde88dae4b9 | 921798c3f0483d0a6b38abc1db83ed7300c00ea7 | refs/heads/master | 2023-05-09T07:10:09.309770 | 2021-06-06T15:44:43 | 2021-06-06T15:44:43 | 362,103,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202 | hpp | #ifndef HUMAN_HPP
# define HUMAN_HPP
#include "Brain.hpp"
class Human
{
const Brain _brain;
public:
Human();
const Brain &getBrain();
std::string identify();
};
#endif | [
"sedric@student.21-school.ru"
] | sedric@student.21-school.ru |
fb86ef7390d7dd045ce72900b113b98463309029 | cf79cb4c9c9e3bb620eef65de69cfd82621db0f4 | /timing/src/TimingHisto.cc | cc88d2a8686839fa7b17d2e8e53ddb581f7d7f27 | [] | no_license | crovelli/TimingPhysLab | 255f2ac4156cf175b00fd4dfc63eabdea3d9ba6f | 58d22cd5ef60ed7cca22c43428959a3615ae5199 | refs/heads/master | 2022-04-21T10:44:00.036927 | 2020-04-25T13:21:06 | 2020-04-25T13:21:06 | 258,453,752 | 0 | 2 | null | 2020-04-25T13:21:07 | 2020-04-24T08:33:44 | C++ | UTF-8 | C++ | false | false | 3,176 | cc | #include "TROOT.h"
#include "TApplication.h"
#include "TGClient.h"
#include "TCanvas.h"
#include "TSystem.h"
#include "TTree.h"
#include "TBranch.h"
#include "TFile.h"
#include "TH1D.h"
#include "TimingHisto.hh"
#include "G4ParticleTable.hh"
#include "G4Tokenizer.hh"
TimingHisto::TimingHisto()
:fHistName("Timing"), fHistType("root"),
fNHisto(0), fVerbose(0),
fDefaultAct(1)
{
fROOThisto.clear();
fActive.clear();
fBins.clear();
fXmin.clear();
fXmax.clear();
fIds.clear();
fTitles.clear();
}
TimingHisto::~TimingHisto()
{}
void TimingHisto::Book()
{
G4String fileNameROOT = fHistName + G4String(".root");
fHfileROOT = new TFile(fileNameROOT.c_str() ,"RECREATE","ROOT file for Timing");
G4cout << "Root file for histos: " << fileNameROOT << G4endl;
for(G4int i=0; i<fNHisto; i++) {
if(fActive[i]) {
G4String id = G4String("h")+fIds[i];
fROOThisto[i] = new TH1D(id, fTitles[i], fBins[i], fXmin[i], fXmax[i]);
G4cout << "ROOT Histo " << fIds[i] << " " << fTitles[i] << " booked " << G4endl;
}
}
}
void TimingHisto::Save()
{
G4cout << "ROOT: files writing..." << G4endl;
fHfileROOT->Write();
G4cout << "ROOT: files closing..." << G4endl;
fHfileROOT->Close();
delete fHfileROOT;
}
void TimingHisto::Add1D(const G4String& id, const G4String& name, G4int nb, G4double x1, G4double x2)
{
if(fVerbose > 0) {
G4cout << "New histogram will be booked: #" << id << " <" << name
<< " " << nb << " " << x1 << " " << x2 << G4endl;
}
fNHisto++;
fActive.push_back(fDefaultAct);
fBins.push_back(nb);
fXmin.push_back(x1);
fXmax.push_back(x2);
fIds.push_back(id);
fTitles.push_back(name);
fROOThisto.push_back(0);
}
void TimingHisto::SetHisto1D(G4int i, G4int nb, G4double x1, G4double x2, G4double u)
{
if(i>=0 && i<fNHisto) {
if(fVerbose > 0) {
G4cout << "Update histogram: #" << i
<< " " << nb << " " << x1 << " " << x2 << " " << u
<< G4endl;
}
fBins[i] = nb;
fXmin[i] = x1;
fXmax[i] = x2;
} else {
G4cout << "TimingHisto::setTimingHisto1D: WARNING! wrong histogram index "
<< i << G4endl;
}
}
void TimingHisto::FillHisto(G4int i, G4double x, G4double w)
{
if(fVerbose > 1) {
G4cout << "fill histogram: #" << i << " at x= " << x
<< " weight= " << w
<< G4endl;
}
if(i>=0 && i<fNHisto) {
fROOThisto[i]->Fill(x,w);
} else {
G4cout << "TimingHisto::fill: WARNING! wrong ROOT histogram index "
<< i << G4endl;
}
}
void TimingHisto::ScaleHisto(G4int i, G4double x)
{
if(fVerbose > 0) {
G4cout << "Scale histogram: #" << i << " by factor " << x << G4endl;
}
if(i>=0 && i<fNHisto) {
fROOThisto[i]->Scale(x);
} else {
G4cout << "TimingHisto::scale: WARNING! wrong ROOT histogram index "
<< i << G4endl;
}
}
void TimingHisto::SetFileName(const G4String& nam)
{
fHistName = nam;
}
const G4String& TimingHisto::GetFileName() const
{
return fHistName;
}
void TimingHisto::SetFileType(const G4String& nam)
{
fHistType = nam;
}
const G4String& TimingHisto::FileType() const
{
return fHistType;
}
| [
"crovelli@gmail.com"
] | crovelli@gmail.com |
9750a45a5bc4cecfb8e16ced87e680fd07cb3ab5 | db507912e598b291811a5a73db5f8ba33c8be2f9 | /server/stklib/Src/Minute.cpp | 57401d4fec88ba913fd83aa87195d422bfb87555 | [] | no_license | biniyu/k-line-print | ab3ee023876adaa9de8dd98b14dbd362a0b2810a | d1e033f79044d6ae62f86e6116cc902b6a7eeb83 | refs/heads/master | 2016-09-06T14:19:55.887544 | 2013-08-25T14:59:21 | 2013-08-25T14:59:21 | 40,391,671 | 2 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 12,566 | cpp | /*
Cross Platform Core Code.
Copyright(R) 2001-2002 Balang Software.
All rights reserved.
Using:
class CMinute;
*/
#include "StdAfx.h"
#include "../Include/Stock.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
/////////////////////////////////////////////////////////////////////////////
CMinute::CMinute()
{
m_pData = NULL;
m_nSize = m_nMaxSize = m_nGrowBy = 0;
}
CMinute::CMinute( const CMinute &src )
{
m_pData = NULL;
m_nSize = m_nMaxSize = m_nGrowBy = 0;
*this = src;
}
CMinute::~CMinute()
{
if( m_pData )
delete [] (BYTE*)m_pData;
}
void CMinute::SetSize(int nNewSize, int nGrowBy /* = -1 */)
{
SP_ASSERT(nNewSize >= 0);
if (nGrowBy != -1)
m_nGrowBy = nGrowBy; // set new size
if (nNewSize == 0)
{
// shrink to nothing
delete [] (BYTE*)m_pData;
m_pData = NULL;
m_nSize = m_nMaxSize = 0;
}
else if (m_pData == NULL)
{
// create one with exact size
#ifdef SIZE_T_MAX
SP_ASSERT((long)nNewSize * sizeof(MINUTE) <= SIZE_T_MAX); // no overflow
#endif
m_pData = (MINUTE*) new BYTE[nNewSize * sizeof(MINUTE)];
memset(m_pData, 0, nNewSize * sizeof(MINUTE)); // zero fill
m_nSize = m_nMaxSize = nNewSize;
}
else if (nNewSize <= m_nMaxSize)
{
// it fits
if (nNewSize > m_nSize)
{
// initialize the new elements
memset(&m_pData[m_nSize], 0, (nNewSize-m_nSize) * sizeof(MINUTE));
}
m_nSize = nNewSize;
}
else
{
// Otherwise grow array
int nNewMax;
if (nNewSize < m_nMaxSize + m_nGrowBy)
nNewMax = m_nMaxSize + m_nGrowBy; // granularity
else
nNewMax = nNewSize; // no slush
#ifdef SIZE_T_MAX
SP_ASSERT((long)nNewMax * sizeof(MINUTE) <= SIZE_T_MAX); // no overflow
#endif
MINUTE* pNewData = (MINUTE*) new BYTE[nNewMax * sizeof(MINUTE)];
// copy new data from old
memcpy(pNewData, m_pData, m_nSize * sizeof(MINUTE));
// construct remaining elements
SP_ASSERT(nNewSize > m_nSize);
memset(&pNewData[m_nSize], 0, (nNewSize-m_nSize) * sizeof(MINUTE));
// get rid of old stuff (note: no destructors called)
delete [] (BYTE*)m_pData;
m_pData = pNewData;
m_nSize = nNewSize;
m_nMaxSize = nNewMax;
}
}
void CMinute::FreeExtra()
{
if (m_nSize != m_nMaxSize)
{
// shrink to desired size
#ifdef SIZE_T_MAX
SP_ASSERT((long)m_nSize * sizeof(MINUTE) <= SIZE_T_MAX); // no overflow
#endif
MINUTE* pNewData = NULL;
if (m_nSize != 0)
{
pNewData = (MINUTE*) new BYTE[m_nSize * sizeof(MINUTE)];
// copy new data from old
memcpy(pNewData, m_pData, m_nSize * sizeof(MINUTE));
}
// get rid of old stuff (note: no destructors called)
delete [] (BYTE*)m_pData;
m_pData = pNewData;
m_nMaxSize = m_nSize;
}
}
/////////////////////////////////////////////////////////////////////////////
void CMinute::SetAtGrow(int nIndex, MINUTE newElement)
{
SP_ASSERT(nIndex >= 0);
if (nIndex >= m_nSize)
SetSize(nIndex+1);
m_pData[nIndex] = newElement;
}
void CMinute::InsertAt(int nIndex, MINUTE newElement, int nCount /*=1*/)
{
SP_ASSERT(nIndex >= 0); // will expand to meet need
SP_ASSERT(nCount > 0); // zero or negative size not allowed
if (nIndex >= m_nSize)
{
// adding after the end of the array
SetSize(nIndex + nCount); // grow so nIndex is valid
}
else
{
// inserting in the middle of the array
int nOldSize = m_nSize;
SetSize(m_nSize + nCount); // grow it to new size
// shift old data up to fill gap
memmove(&m_pData[nIndex+nCount], &m_pData[nIndex],
(nOldSize-nIndex) * sizeof(MINUTE));
// re-init slots we copied from
memset(&m_pData[nIndex], 0, nCount * sizeof(MINUTE));
}
// insert new value in the gap
SP_ASSERT(nIndex + nCount <= m_nSize);
while (nCount--)
m_pData[nIndex++] = newElement;
}
void CMinute::RemoveAt(int nIndex, int nCount /* = 1 */)
{
SP_ASSERT(nIndex >= 0);
SP_ASSERT(nCount >= 0);
SP_ASSERT(nIndex + nCount <= m_nSize);
// just remove a range
int nMoveCount = m_nSize - (nIndex + nCount);
if (nMoveCount)
memcpy(&m_pData[nIndex], &m_pData[nIndex + nCount],
nMoveCount * sizeof(MINUTE));
m_nSize -= nCount;
}
int CMinute::InsertMinuteSort( MINUTE newElement )
{
if( newElement.m_time <= 0 )
return -1;
else if( newElement.m_fNew < 1e-4 )
return -1;
else if( newElement.m_fVolume < 1e-4 )
return -1;
else if( !CSPTime::InTradeTime( newElement.m_time, 60 ) )
return -1;
time_t tmBegin = 0;
if( GetSize() > 0 )
{
time_t tmLatest = ElementAt(GetSize()-1).m_time;
CSPTime sptime(tmLatest);
CSPTime sptimeBegin(sptime.GetYear(),sptime.GetMonth(),sptime.GetDay(),0,0,0);
tmBegin = sptimeBegin.GetTime();
}
if( newElement.m_time <= tmBegin )
return -1;
for( int i=GetSize()-1; i>=0; i-- )
{
MINUTE & temp = ElementAt(i);
if( newElement.m_time == temp.m_time )
{
SetAt(i,newElement);
return i;
}
if( newElement.m_time > temp.m_time )
{
InsertAt(i+1,newElement);
return i+1;
}
}
InsertAt( 0, newElement );
return 0;
}
int SortMinute(const void *p1,const void *p2)
{
MINUTE *pTemp1 = (MINUTE *)p1;
MINUTE *pTemp2 = (MINUTE *)p2;
if( pTemp1 && pTemp2 && pTemp1->m_time < pTemp2->m_time )
return -1;
else if( pTemp1 && pTemp2 && pTemp1->m_time > pTemp2->m_time )
return 1;
return 0;
}
void CMinute::Sort( )
{
if( m_pData )
qsort( m_pData, GetSize(), sizeof(MINUTE), SortMinute );
}
void CMinute::RemoveDirty( )
{
time_t tmBegin = 0;
if( GetSize() > 0 )
{
time_t tmLatest = ElementAt(GetSize()-1).m_time;
CSPTime sptime(tmLatest);
CSPTime sptimeBegin(sptime.GetYear(),sptime.GetMonth(),sptime.GetDay(),0,0,0);
tmBegin = sptimeBegin.GetTime();
}
for( int i=GetSize()-1; i>=0; i-- )
{
if( ElementAt(i).m_time <= 0 )
RemoveAt(i);
else if( ElementAt(i).m_fNew < 1e-4 )
RemoveAt(i);
else if( ElementAt(i).m_fVolume < 1e-4 )
RemoveAt(i);
else if( !CSPTime::InTradeTime( ElementAt(i).m_time, 60 ) )
RemoveAt(i);
else if( ElementAt(i).m_time < tmBegin )
RemoveAt(i);
else if( i>1 && ElementAt(i).m_time == ElementAt(i-1).m_time )
RemoveAt(i);
}
}
void CMinute::InsertAt(int nStartIndex, CMinute* pNewArray)
{
SP_ASSERT(pNewArray != NULL);
SP_ASSERT(nStartIndex >= 0);
if (pNewArray->GetSize() > 0)
{
InsertAt(nStartIndex, pNewArray->GetAt(0), pNewArray->GetSize());
for (int i = 0; i < pNewArray->GetSize(); i++)
SetAt(nStartIndex + i, pNewArray->GetAt(i));
}
}
CMinute & CMinute::operator = ( const CMinute &src )
{
Copy( src );
return *this;
}
void CMinute::Copy( const CMinute &src )
{
SetSize( 0, src.GetSize()+5 );
for( int i=0; i<src.GetSize(); i++ )
{
Add( src.GetAt(i) );
}
}
BOOL CMinute::StatVolumeInfo( double *pdVolNow, double *pdVolOuter, double *pdVolInner )
{
time_t tmLatest = 0;
double dVolNow = 0, dVolOuter = 0, dVolInner = 0;
double dPriceLast = -1;
BOOL bRise = TRUE;
for( int k=0; k<GetSize(); k++ )
{
if( ElementAt(k).m_time > tmLatest )
{
tmLatest = ElementAt(k).m_time;
dVolNow = ElementAt(k).m_fVolume;
}
double dPrice = ElementAt(k).m_fNew;
if( 0 != k )
{
double dVolume = ElementAt(k).m_fVolume - ElementAt(k-1).m_fVolume;
if( dPrice - dPriceLast > 1e-4 )
bRise = TRUE;
if( dPrice - dPriceLast < -1e-4 )
bRise = FALSE;
if( bRise ) dVolOuter += dVolume;
else dVolInner += dVolume;
}
dPriceLast = dPrice;
}
if( pdVolNow )
*pdVolNow = dVolNow;
if( pdVolOuter )
*pdVolOuter = dVolOuter;
if( pdVolInner )
*pdVolInner = dVolInner;
return TRUE;
}
BOOL CMinute::StatDealInfo( CSPDWordArray & adwPrice, CSPDWordArray & adwVolume, double * pdMaxVolume )
{
adwPrice.RemoveAll();
adwVolume.RemoveAll();
int k;
for( k=0; k<GetSize(); k++ )
adwPrice.AddUnique( DWORD(ElementAt(k).m_fNew * 1000) );
adwPrice.Sort( );
adwVolume.SetSize( adwPrice.GetSize() );
for( k=0; k<GetSize(); k++ )
{
DWORD dwPrice = DWORD(ElementAt(k).m_fNew * 1000);
DWORD dwVolume = DWORD(ElementAt(k).m_fVolume);
if( k > 0 )
dwVolume = DWORD( ElementAt(k).m_fVolume - ElementAt(k-1).m_fVolume );
int i;
for( i=0; i<adwPrice.GetSize(); i++ )
{
if( adwPrice[i] == dwPrice )
break;
}
if( i >= adwPrice.GetSize() )
continue;
adwVolume[i] += dwVolume;
}
double dMaxVolume = 0;
for( k=0; k<adwVolume.GetSize(); k++ )
{
if( dMaxVolume < (double)adwVolume[k] )
dMaxVolume = (double)adwVolume[k];
}
if( pdMaxVolume )
*pdMaxVolume = dMaxVolume;
return adwPrice.GetSize() > 0;
}
BOOL CMinute::GetDiffPercentMin5( double * pValue )
{
if( GetSize( ) < 2 )
return FALSE;
MINUTE & minCurrent = ElementAt(GetSize()-1);
for( int i=GetSize()-2; i>=0; i-- )
{
LONG l = minCurrent.m_time - ElementAt(i).m_time;
if( l >= 200 && l <= 600 )
{
if( ElementAt(i).m_fNew > 1e-4 && minCurrent.m_fNew > 1e-4 )
{
if( pValue ) *pValue = 100*minCurrent.m_fNew / ElementAt(i).m_fNew - 100;
return TRUE;
}
break;
}
}
return FALSE;
}
BOOL CMinute::GetLBDKMinMaxInfo( double dVolAverage, double *pdMin, double *pdMax )
{
if( dVolAverage < 1e-4 )
return FALSE;
double dMulti = 1 / dVolAverage;
double dMin = 0, dMax = 1;
for( int i=0; i<GetSize(); i++ )
{
CSPTime sptime(ElementAt(i).m_time);
double dCurrent = dMulti * ElementAt(i).m_fVolume / CSPTime::GetTimeTradeRatioOfOneDay( sptime, sptime );
if( 0 == i )
{
dMin = dCurrent;
dMax = dCurrent;
}
if( dCurrent < dMin ) dMin = dCurrent;
if( dCurrent > dMax ) dMax = dCurrent;
}
if( dMax < 1e-4 ) // Êý¾ÝΪÁ㣬ȱʡdMax=1
dMax = 1;
if( pdMin ) *pdMin = dMin;
if( pdMax ) *pdMax = dMax;
return TRUE;
}
BOOL CMinute::GetIndexWave( double *pdWave, int nIndex )
{
double dWave = 0;
for( int k=nIndex-12; k<=nIndex; k++ )
{
if( k > 0 && k < GetSize() )
dWave += ElementAt(k).m_fNew - ElementAt(k-1).m_fNew;
}
if( pdWave )
*pdWave = dWave;
return TRUE;
}
int CMinute::ToKData( CKData & kdata )
{
// WILLCHECK
kdata.Clear();
if( GetSize() <= 0 )
return 0;
DWORD dwType = ElementAt(0).m_dwType;
if( 1 == dwType || 5 == dwType || 15 == dwType || 30 == dwType || 60 == dwType )
{
if( 1 == dwType )
kdata.SetKType(CKData::ktypeMin1);
if( 5 == dwType )
kdata.SetKType(CKData::ktypeMin5);
else if( dwType )
kdata.SetKType(CKData::ktypeMin15);
else if( 30 == dwType )
kdata.SetKType(CKData::ktypeMin30);
else if( 60 == dwType )
kdata.SetKType(CKData::ktypeMin60);
kdata.SetSize( 0, GetSize() + 1 );
for( int i=0; i<GetSize(); i++ )
{
MINUTE & min = ElementAt(i);
KDATA kd;
memset( &kd, 0, sizeof(kd) );
kd.m_dwMarket = min.m_dwMarket;
strncpy( kd.m_szCode, min.m_szCode, sizeof(kd.m_szCode)-1 );
kd.m_time = min.m_time;
CSPTime sptime(min.m_time);
kd.m_date = sptime.ToStockTimeMin();
kd.m_fOpen = (min.m_fHigh+min.m_fLow+min.m_fNew)/3;
kd.m_fHigh = min.m_fHigh;
kd.m_fLow = min.m_fLow;
kd.m_fClose = min.m_fNew;
kd.m_fVolume = min.m_fVolume;
kd.m_fAmount = min.m_fAmount;
kdata.Add( kd );
}
return kdata.GetSize();
}
kdata.SetKType(CKData::ktypeMin5);
kdata.SetSize( 0, GetSize() / 5 + 5 );
int nCount = 0;
KDATA kd;
for( int pos=0; pos<GetSize(); pos++ )
{
MINUTE & min = ElementAt( pos );
nCount ++;
if( 1 == nCount )
{
memset( &kd, 0, sizeof(kd) );
kd.m_dwMarket = min.m_dwMarket;
strncpy( kd.m_szCode, min.m_szCode, sizeof(kd.m_szCode)-1 );
kd.m_fOpen = min.m_fNew;
kd.m_fHigh = min.m_fHigh;
kd.m_fLow = min.m_fLow;
kd.m_fClose = min.m_fNew;
kd.m_fVolume = min.m_fVolume;
kd.m_fAmount = min.m_fAmount;
}
else
{
if( kd.m_fHigh < min.m_fHigh ) kd.m_fHigh = min.m_fHigh;
if( kd.m_fLow > min.m_fLow ) kd.m_fLow = min.m_fLow;
kd.m_fAmount += min.m_fAmount;
kd.m_fVolume += min.m_fVolume;
kd.m_fClose = min.m_fNew;
}
CSPTime sptime(min.m_time);
DWORD date = sptime.ToStockTimeMin();
if( !(date % 5) )
{
kd.m_time = min.m_time;
kd.m_date = date;
kdata.Add( kd );
nCount = 0;
}
}
return kdata.GetSize();
}
/////////////////////////////////////////////////////////////////////////////
| [
"osc_zju@163.com"
] | osc_zju@163.com |
7b3b901d52c05d41ac3372131c6a245a26946088 | 7052492ca36af4285aa8b2c295b30cfecbb1fa41 | /src/ofApp.h | d38836c8c98b31b8e2186aba28be60eb47477729 | [] | no_license | jonasfehr/CharucoCameraLaserCalibration | 967f14f61e05802275e72d1c7e2170480d0c89bc | 7d6ee7dd0f11f9bad396d97ca4b0e71ae80dd235 | refs/heads/master | 2020-03-27T01:57:10.389406 | 2018-08-29T21:18:06 | 2018-08-29T21:18:06 | 145,756,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,351 | h | #pragma once
#include "ofMain.h"
#include "ofxCv.h"
#include "ofxIpCamStreamer.h"
#include "ofxGui.h"
#include <opencv2/aruco/charuco.hpp>
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void mouseEntered(int x, int y);
void mouseExited(int x, int y);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);
ofxIpCamStreamer ipCam;
// Cam and Mat for Calibration
ofImage undistortedImg;
ofImage camImg;
Mat previous;
Mat diff;
Mat camMat;
Mat markersDetectedMat;
Mat cameraCalibratonMat;
float diffMean;
bool calibrateOldSchool();
float lastTime;
// ofxCv::Calibration calibration;
vector< vector< vector< Point2f > > > allCorners;
vector< vector< int > > allIds;
vector< Mat > allImgs;
cv::Size imgSize;
Ptr<aruco::CharucoBoard> charucoboard;
Ptr<aruco::Board> board;
Ptr<aruco::Dictionary> dictionary;
bool ready;
Mat cameraMatrixCamera;
Mat distCoeffsCamera;
Mat cameraMatrix;
Mat distCoeffs;
int xCount = 7;
int yCount = 5;
float squareSize = 0.039;
float markerSize = 0.0175;
bool arucoMarkersDetectCollect(Mat image, Mat & imageOut);
bool calibrateCamera(Mat & imageOut);
bool arucoBoardDetect(Mat image, Mat & imageOut);
bool updateDiffMean();
void saveCameraCalibration(const std::string& filename, bool absolute = false) const;
void loadCameraCalibration(const std::string& filename, bool absolute = false);
enum Status{
CALIBRATE_CAMERA,
CALIBRATE_PROJECTOR
} states;
// for board detection
float axisLength;
double totalTime;
int totalIterations;
ofxCv::Intrinsics distortedIntrinsics;
ofxCv::Intrinsics undistortedIntrinsics;
double repError;
void updateUndistortion();
std::vector<std::vector<cv::Point2f> > imagePoints;
std::vector<std::vector<cv::Point3f> > objectPoints;
cv::Mat undistortMapX, undistortMapY;
};
| [
"punkt@WandernderPunkt.local"
] | punkt@WandernderPunkt.local |
f7e8699f2e7c867993456687b0802aaee4c85c6f | e5ac2baffc5135a4e680ddd2a558dffa03f0e77d | /14.cpp | fd86367b2e093699c48a0199be735f196f8a5c57 | [] | no_license | Esiuede/C----Codes | 46e57bf0391ce0efd73315d27faab68610492f97 | dfc7ec58197559262f4d0697cce907e90818ca82 | refs/heads/main | 2023-08-30T21:34:22.933988 | 2021-09-15T13:35:02 | 2021-09-15T13:35:02 | 406,775,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cpp | #include<stdio.h>
#include<stdlib.h>
int main()
{
int n=100,i,raiz;
printf(" .: Exercicio 14.: \n\n");
for(i=1;i<=100;i++)
{
raiz=i*i;
printf("\t%.3d %.5d\n",i,raiz);
}
printf("\n\n");
system("pause");
return 0;
}
| [
"brunosued99@gmail.com"
] | brunosued99@gmail.com |
3e0bb5781d11efdc250b79f3d777b9986a514d80 | a6d5ddc331ed9aa58062f22effa596d35ef4c18c | /ex3.cpp | a467768accabfcd4365e6ecadd0789e8ff21a6c8 | [] | no_license | SamSamson987/LBYEC72-Practice | 5313a399429b42bd9d8724b96384b7d75074f993 | 22e66c0f4b8e5a2f7503002879d328c62beeddb0 | refs/heads/master | 2021-01-10T15:34:15.562706 | 2016-01-11T06:01:05 | 2016-01-11T06:01:05 | 49,403,664 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 211 | cpp | #include <stdio.h>
#include <stdlib.h>
#define Pi 3.1416
int main()
{
int r;
float A;
printf(“\nEnter the radius:” );
scanf("%d", &r);
A=Pi*r*r;
printf("The area: %5.2f \n", A);
system("PAUSE");
return 0;
}
| [
"student@V301PC11.manila.dlsu.edu.ph"
] | student@V301PC11.manila.dlsu.edu.ph |
da754ffa982d5417e5134552840ffb7a32e0dede | fca16f6b7838bd515de786cf6e8c01aee348c1f9 | /fps2015aels/testdisplay/GetPosition.cpp | 7f1f18a066994fa94e6333332334ad883a931499 | [] | no_license | antoinechene/FPS-openGL | 0de726658ffa278289fd89c1410c490b3dad7f54 | c7b3cbca8c6dc4f190dc92a273fe1b8ed74b7900 | refs/heads/master | 2020-04-06T07:01:17.983451 | 2012-09-06T14:06:25 | 2012-09-06T14:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,840 | cpp | #include <fbxsdk.h>
#include <math.h>
#include <fbxfilesdk/fbxfilesdk_nsuse.h>
#include "GetPosition.h"
KFbxXMatrix GetGlobalPosition(KFbxNode* pNode, KTime& pTime, KFbxXMatrix* pParentGlobalPosition)
{
return pNode->EvaluateGlobalTransform(pTime);
}
KFbxXMatrix GetGlobalPosition(KFbxNode* pNode, KTime& pTime, KFbxPose* pPose, KFbxXMatrix* pParentGlobalPosition)
{
KFbxXMatrix lGlobalPosition;
bool lPositionFound = false;
if (pPose)
{
int lNodeIndex = pPose->Find(pNode);
if (lNodeIndex > -1)
{
if (pPose->IsBindPose() || !pPose->IsLocalMatrix(lNodeIndex))
{
lGlobalPosition = GetPoseMatrix(pPose, lNodeIndex);
}
else
{
KFbxXMatrix lParentGlobalPosition;
if (pParentGlobalPosition)
{
lParentGlobalPosition = *pParentGlobalPosition;
}
else
{
if (pNode->GetParent())
{
lParentGlobalPosition = GetGlobalPosition(pNode->GetParent(), pTime, pPose);
}
}
KFbxXMatrix lLocalPosition = GetPoseMatrix(pPose, lNodeIndex);
lGlobalPosition = lParentGlobalPosition * lLocalPosition;
}
lPositionFound = true;
}
}
if (!lPositionFound)
{
lGlobalPosition = GetGlobalPosition(pNode, pTime, pParentGlobalPosition);
}
return lGlobalPosition;
}
KFbxXMatrix GetPoseMatrix(KFbxPose* pPose, int pNodeIndex)
{
KFbxXMatrix lPoseMatrix;
KFbxMatrix lMatrix = pPose->GetMatrix(pNodeIndex);
memcpy((double*)lPoseMatrix, (double*)lMatrix, sizeof(lMatrix.mData));
return lPoseMatrix;
}
KFbxXMatrix GetGeometry(KFbxNode* pNode) {
KFbxVector4 lT, lR, lS;
KFbxXMatrix lGeometry;
lT = pNode->GetGeometricTranslation(KFbxNode::eSOURCE_SET);
lR = pNode->GetGeometricRotation(KFbxNode::eSOURCE_SET);
lS = pNode->GetGeometricScaling(KFbxNode::eSOURCE_SET);
lGeometry.SetT(lT);
lGeometry.SetR(lR);
lGeometry.SetS(lS);
return lGeometry;
}
| [
"antoinechene@hotmail.fr"
] | antoinechene@hotmail.fr |
6817fb21c119b2220ed92904d6ed26b3cd42f5bc | 1791461e6740f81c2dd6704ae6a899a6707ee6b1 | /HSAHRBNUOJ/P45xx/P4539.cpp | 339e3ead8722c9208b97865b2a2e4057f0144e32 | [
"MIT"
] | permissive | HeRaNO/OI-ICPC-Codes | b12569caa94828c4bedda99d88303eb6344f5d6e | 4f542bb921914abd4e2ee7e17d8d93c1c91495e4 | refs/heads/master | 2023-08-06T10:46:32.714133 | 2023-07-26T08:10:44 | 2023-07-26T08:10:44 | 163,658,110 | 22 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 397 | cpp | #include <cstdio>
#include <cstring>
#define MAXN 100010
using namespace std;
char a[MAXN], sta[MAXN];
int n, top, ans;
int main()
{
scanf("%s", a + 1);
n = strlen(a + 1);
for (int i = 1; i <= n; i++)
{
if (a[i] == '(') sta[++top] = a[i];
else
{
if (top && a[i] == ')') top--;
else
{
sta[++top] = '(';
ans++;
}
}
}
printf("%d\n", ans + (top >> 1));
return 0;
} | [
"heran55@126.com"
] | heran55@126.com |
1b2060e07256cc449b1880d6c15f783559d3945c | 5e1f5f2090013041b13d1e280f747aa9f914caa4 | /src/developer/shell/mirror/server.h | f4f05618ef3b1467bcf17c77c0310333e08bb8f3 | [
"BSD-2-Clause"
] | permissive | mvanotti/fuchsia-mirror | 477b7d51ae6818e456d5803eea68df35d0d0af88 | 7fb60ae374573299dcb1cc73f950b4f5f981f95c | refs/heads/main | 2022-11-29T08:52:01.817638 | 2021-10-06T05:37:42 | 2021-10-06T05:37:42 | 224,297,435 | 0 | 1 | BSD-2-Clause | 2022-11-21T01:19:37 | 2019-11-26T22:28:11 | C++ | UTF-8 | C++ | false | false | 3,561 | h | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <arpa/inet.h>
#include <fcntl.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <set>
#include "src/developer/debug/shared/buffered_fd.h"
#include "src/developer/debug/shared/platform_message_loop.h"
#include "src/developer/shell/mirror/common.h"
#include "src/developer/shell/mirror/wire_format.h"
#ifndef SRC_DEVELOPER_SHELL_MIRROR_SERVER_H_
#define SRC_DEVELOPER_SHELL_MIRROR_SERVER_H_
namespace shell::mirror {
class SocketServer;
// Represents a instance of a connection "attempt" to a client.
class SocketConnection {
public:
explicit SocketConnection(SocketServer* server) : server_(server), id_(global_id_++) {}
~SocketConnection();
SocketConnection& operator=(SocketConnection&) = delete;
SocketConnection(SocketConnection&) = delete;
// |main_thread_loop| is used for posting a task that creates the debug agent after accepting a
// a connection. This is because the debug agent assumes it's running on the message loop's
// thread.
Err Accept(debug::MessageLoop* main_thread_loop, int server_fd);
struct SocketConnectionComparator {
bool operator()(const SocketConnection& one, const SocketConnection& two) {
return one.id_ < two.id_;
}
};
// Unregisters this socket connection from a given server. This has the effect
// of deleting the connection, so use with caution.
void UnregisterAndDestroy();
private:
static uint64_t global_id_;
SocketServer* server_;
std::unique_ptr<debug::BufferedFD> buffer_;
bool connected_ = false;
uint64_t id_;
};
// Represents a server.
class SocketServer {
public:
SocketServer() = default;
// A configuration object for the server.
struct ConnectionConfig {
debug::PlatformMessageLoop* message_loop = nullptr;
int port = 0;
std::optional<std::string> path;
};
// Runs the server with the given configuration.
void Run(ConnectionConfig config);
// Sets up loops in a sensible way (one loop to accept a connection, and one loop to respond to
// requests), and runs a server. Calls inited_fn when it is done initing.
Err RunInLoop(ConnectionConfig config, debug::FileLineFunction from_here, fit::closure inited_fn);
int GetPort() { return config_.port; }
std::string GetPath() { return *config_.path; }
void RemoveConnection(SocketConnection* connection) {
for (auto it = connections_.begin(); it != connections_.end(); ++it) {
if (it->get() == connection) {
connections_.erase(it);
return;
}
}
}
// IMPORTANT: All others can only be called on the main thread.
// Initialize the server.
// |port| is the port to use. If *port is 0, the function will try to assign one.
Err Init(uint16_t* port);
private:
fbl::unique_fd server_socket_;
std::set<std::unique_ptr<SocketConnection>> connections_;
debug::MessageLoop::WatchHandle connection_monitor_;
ConnectionConfig config_;
FXL_DISALLOW_COPY_AND_ASSIGN(SocketServer);
};
// Manages sending data along a given StreamBuffer.
class Update {
public:
Update(debug::StreamBuffer* stream, const std::string* path)
: stream_(stream), files_(*path), path_(*path) {}
// Sends the contents of |path| to |stream|.
Err SendUpdates();
private:
debug::StreamBuffer* stream_;
Files files_;
std::string path_;
};
} // namespace shell::mirror
#endif // SRC_DEVELOPER_SHELL_MIRROR_SERVER_H_
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
e3a5cfa3acbe297b0b657ec6bb4c60742d1bc768 | e763b855be527d69fb2e824dfb693d09e59cdacb | /aws-cpp-sdk-rekognition/source/model/VideoMetadata.cpp | 012ac39622344b65d20f2640e718f2f78dc7f11d | [
"MIT",
"Apache-2.0",
"JSON"
] | permissive | 34234344543255455465/aws-sdk-cpp | 47de2d7bde504273a43c99188b544e497f743850 | 1d04ff6389a0ca24361523c58671ad0b2cde56f5 | refs/heads/master | 2023-06-10T16:15:54.618966 | 2018-05-07T23:32:08 | 2018-05-07T23:32:08 | 132,632,360 | 1 | 0 | Apache-2.0 | 2023-06-01T23:20:47 | 2018-05-08T15:56:35 | C++ | UTF-8 | C++ | false | false | 3,117 | cpp | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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 <aws/rekognition/model/VideoMetadata.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Rekognition
{
namespace Model
{
VideoMetadata::VideoMetadata() :
m_codecHasBeenSet(false),
m_durationMillis(0),
m_durationMillisHasBeenSet(false),
m_formatHasBeenSet(false),
m_frameRate(0.0),
m_frameRateHasBeenSet(false),
m_frameHeight(0),
m_frameHeightHasBeenSet(false),
m_frameWidth(0),
m_frameWidthHasBeenSet(false)
{
}
VideoMetadata::VideoMetadata(const JsonValue& jsonValue) :
m_codecHasBeenSet(false),
m_durationMillis(0),
m_durationMillisHasBeenSet(false),
m_formatHasBeenSet(false),
m_frameRate(0.0),
m_frameRateHasBeenSet(false),
m_frameHeight(0),
m_frameHeightHasBeenSet(false),
m_frameWidth(0),
m_frameWidthHasBeenSet(false)
{
*this = jsonValue;
}
VideoMetadata& VideoMetadata::operator =(const JsonValue& jsonValue)
{
if(jsonValue.ValueExists("Codec"))
{
m_codec = jsonValue.GetString("Codec");
m_codecHasBeenSet = true;
}
if(jsonValue.ValueExists("DurationMillis"))
{
m_durationMillis = jsonValue.GetInt64("DurationMillis");
m_durationMillisHasBeenSet = true;
}
if(jsonValue.ValueExists("Format"))
{
m_format = jsonValue.GetString("Format");
m_formatHasBeenSet = true;
}
if(jsonValue.ValueExists("FrameRate"))
{
m_frameRate = jsonValue.GetDouble("FrameRate");
m_frameRateHasBeenSet = true;
}
if(jsonValue.ValueExists("FrameHeight"))
{
m_frameHeight = jsonValue.GetInt64("FrameHeight");
m_frameHeightHasBeenSet = true;
}
if(jsonValue.ValueExists("FrameWidth"))
{
m_frameWidth = jsonValue.GetInt64("FrameWidth");
m_frameWidthHasBeenSet = true;
}
return *this;
}
JsonValue VideoMetadata::Jsonize() const
{
JsonValue payload;
if(m_codecHasBeenSet)
{
payload.WithString("Codec", m_codec);
}
if(m_durationMillisHasBeenSet)
{
payload.WithInt64("DurationMillis", m_durationMillis);
}
if(m_formatHasBeenSet)
{
payload.WithString("Format", m_format);
}
if(m_frameRateHasBeenSet)
{
payload.WithDouble("FrameRate", m_frameRate);
}
if(m_frameHeightHasBeenSet)
{
payload.WithInt64("FrameHeight", m_frameHeight);
}
if(m_frameWidthHasBeenSet)
{
payload.WithInt64("FrameWidth", m_frameWidth);
}
return payload;
}
} // namespace Model
} // namespace Rekognition
} // namespace Aws
| [
"henso@amazon.com"
] | henso@amazon.com |
1b19ef1d26f3588b5ac90868151776ecb35b4fd1 | 11af49afdadbcfa3d5d140ff26faf72f64ae3d03 | /Classes/ResourceUpdateManagerScene.cpp | d9f3d960c8ac806a7c62ca91dadec679d7105b5f | [] | no_license | KuKuKanz/MyGame | 67ee2334a8e3e5287731ecbaeb1b64b0f3126473 | ceb515ec6c4ff1d3e3726c7324bdaa5b52e93d81 | refs/heads/master | 2020-07-01T14:16:16.208270 | 2016-11-29T10:48:28 | 2016-11-29T10:48:28 | 74,339,125 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,142 | cpp | //
// ResourceUpdateManagerScene.cpp
// MyGame
//
// Created by Dao Hoang Tung on 10/11/16.
//
//
#include "ResourceUpdateManagerScene.hpp"
#include "ResourceNew.h"
Scene* ResourceUpdateManagerScene::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = ResourceUpdateManagerScene::create();
// add layer as a child to scene
scene->addChild(layer);
// return the scene
return scene;
}
bool ResourceUpdateManagerScene::init()
{
//////////////////////////////
// 1. super init first
if ( !Layer::init() )
{
return false;
}
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(srcPLIST_dialog);
auto root = CSLoader::createNode("TempResource/Scene/DownloadMagScene.csb");
listView = root->getChildByName<ListView*>("imageList");
lblSpeed = root->getChildByName<Text*>("label_speed");
lblVersion = root->getChildByName<Text*>("lblVersion");
bar = root->getChildByName<LoadingBar*>("bar_speed");
bar->setVisible(true);
auto _but = root->getChildByName<Button*>("butReset");
_but->addTouchEventListener(CC_CALLBACK_2(ResourceUpdateManagerScene::resetCallback, this));
this->addChild(root);
assMag = ResourceUpdateManager::createResourceUpdateManager("project.manifest", "MyGame");
assMag->retain();
assMag->onFinish = CC_CALLBACK_0(ResourceUpdateManagerScene::onFinish, this);
assMag->onProgressing = CC_CALLBACK_2(ResourceUpdateManagerScene::onProgressing, this);
assMag->onFailed = CC_CALLBACK_1(ResourceUpdateManagerScene::onFailed, this);
lblVersion->setString(assMag->getCurrentVersion());
assMag->startUpdateResource();
return true;
}
void ResourceUpdateManagerScene::addString(std::string s){
auto _layout = Layout::create();
_layout->setContentSize(Size(listView->getContentSize().width,50));
auto _text = Label::createWithTTF(s, srcTFF_Roboto_Bold, 20);
_text->setMaxLineWidth(500);
_text->setPosition(_layout->getContentSize()/2);
_layout->addChild(_text);
listView->pushBackCustomItem(_layout);
listView->jumpToBottom();
}
void ResourceUpdateManagerScene::resetCallback(cocos2d::Ref *pSender, Widget::TouchEventType type){
switch (type) {
case cocos2d::ui::Widget::TouchEventType::ENDED:{
bar->setPercent(0);
lblSpeed->setString("Loading: ");
listView->removeAllItems();
assMag->resetUpdateReousrce();
break;
}
default:
break;
}
}
void ResourceUpdateManagerScene::onFinish(){
addString("Update Finish: " + assMag->getCurrentVersion());
lblVersion->setString(assMag->getCurrentVersion());
}
void ResourceUpdateManagerScene::onProgressing(std::string meg,float percent){
bar->setPercent(percent);
lblSpeed->setString(StringUtils::format("Loading: %.2f",percent) + "%");
addString(meg);
}
void ResourceUpdateManagerScene::onFailed(std::string message){
addString(message);
}
| [
"tung.coder1992@gmail.com"
] | tung.coder1992@gmail.com |
3234174f395d3fb3735788229b4c7b5f5944de34 | 5f2762a92f90ad66fc5c0788a5ce1dff1c28592c | /7333.cpp | b9d79e9b7bd4ae37a109957f2ab3a809d8ae7573 | [] | no_license | KIMJUHEEEEE/SWEA | 508a64ed11274c389c8ad5cf6d89875822c18866 | 40e6918a464bbf0217ec5c25a6598980caa2954a | refs/heads/master | 2020-07-11T00:44:39.511835 | 2020-05-09T06:03:31 | 2020-05-09T06:03:31 | 204,411,419 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 571 | cpp | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int t = 0;
cin >> t;
for (int tc = 1; tc <= t; tc++)
{
vector<int> v;
int n = 0;
cin >> n;
for (int i = 0; i < n; i++)
{
int a;
cin >> a;
v.push_back(a);
}
sort(v.begin(), v.end());
int bi = 0, ans = 0;
int box = 0;
for (int i = n - 1; i >= 0; i--)
{
box = v[i]; ans++;
for (; bi < i; bi++)
{
if (box >= 50) break;
box += v[i];
}
if (box < 50) ans--;
if (bi == i) break;
}
cout << '#' << tc << ' ' << ans << endl;
}
} | [
"jhwngml97@naver.com"
] | jhwngml97@naver.com |
9bfd8238d9b4d475e8c2088c74a9a2a83a1959c4 | 2502943d23a18cce4b2cb169288ca08e2243ca4f | /HDOJcode/3283 2013-08-16 16 15 16.cpp | 37b7d2e5f6b72517dd4e7e5bebcefb2a9b1368f4 | [] | no_license | townboy/acm-algorithm | 27745db88cf8e3f84836f98a6c2dfa4a76ee4227 | 4999e15efcd7574570065088b085db4a7c185a66 | refs/heads/master | 2021-01-01T16:20:50.099324 | 2014-11-29T06:13:49 | 2014-11-29T06:13:49 | 18,025,712 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 720 | cpp | ******************************
Author : townboy
Submit time : 2013-08-16 16:15:16
Judge Status : Accepted
HDOJ Runid : 8966036
Problem id : 3283
Exe.time : 15MS
Exe.memory : 288K
https://github.com/townboy
******************************
#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
string ret;
int main() {
int cas, t;
cin >> cas;
for(int i = 0; i < cas;i++) {
cin >> t;
cin >> ret;
cout << t << " " ;
if(true == next_permutation(ret.begin(),ret.end()))
cout << ret;
else
cout << "BIGGEST";
cout << endl;
}
return 0;
} | [
"564690377@qq.com"
] | 564690377@qq.com |
e9d52a72d2cd300d0dca17705eef66969d5f3a14 | 44557eca2a0e2896af5ba9f69d44834f8e176299 | /Elit3d/src/Tools/Map/MapLayer.cpp | e2416c716a4305e5c0beab791750b3abff8f1745 | [
"BSD-2-Clause"
] | permissive | almondlynx/Elit3D | 6743cd12360a69a032c4d85d180ea224c50d8847 | ddcf4d1bf331bb7c35dd5d114035faa04bec1f58 | refs/heads/main | 2023-05-21T10:58:16.831226 | 2021-06-07T18:51:31 | 2021-06-07T18:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,297 | cpp | #include "Tools/Map/MapLayer.h"
#include "Core/Application.h"
#include "Modules/m1Render3D.h"
#include "Resources/r1Shader.h"
#include "Modules/m1GUI.h"
#include "Resources/r1Tileset3d.h"
#include "Modules/m1Objects.h"
#include "Modules/m1Resources.h"
#include "Resources/r1Object.h"
#include "Resources/r1Texture.h"
#include "Resources/r1Model.h"
#include "Resources/r1Mesh.h"
#include "ExternalTools/MathGeoLib/include/Math/Quat.h"
#include "ExternalTools/ImGui/IconsFontAwesome5/IconsFontAwesome5.h"
#include "Objects/Object.h"
#include "Tools/OpenGL/OpenGLHelper.h"
#include "Tools/TypeVar.h"
#include "Tools/System/Profiler.h"
#include "ExternalTools/base64/base64.h"
#include "ExternalTools/zlib/zlib_strings.h"
#include "Resources/r1Map.h"
#include "ExternalTools/ImGui/imgui.h"
#include "ExternalTools/mmgr/mmgr.h"
OpenGLBuffers MapLayer::tile = OpenGLBuffers();
MapLayer::MapLayer(MapLayer::Type t, r1Map* m) : map(m), type(t)
{
if (tile.vertices.size == 0u)
tile.InitData();
strcpy_s(buf, 30, name.c_str());
}
void MapLayer::Resize(const int2& oldSize, const int2& newSize)
{
TILE_DATA_TYPE* new_data = new TILE_DATA_TYPE[newSize.x * newSize.y];
memset(new_data, 0, sizeof(TILE_DATA_TYPE) * newSize.x * newSize.y);
for (int i = 0; i < oldSize.x * oldSize.y; ++i) {
int2 colrow = int2(i % oldSize.x, (i / oldSize.x));
if (colrow.x < newSize.x && colrow.y < newSize.y) {
int new_index = (colrow.x + newSize.x * colrow.y);
int old_index = (colrow.x + oldSize.x * colrow.y);
new_data[new_index] = data[old_index];
}
}
delete[] data;
data = new_data;
}
void MapLayer::SelectBuffers()
{
oglh::BindBuffers(tile.VAO, tile.vertices.id, tile.indices.id);
}
void MapLayer::DrawTile(const int2& size)
{
static auto shader = App->render->GetShader("tilemap");
shader->SetMat4("model", float4x4::FromTRS(float3(0.f, 0.f, 0.f), Quat::identity, float3((float)size.x, 1.f, (float)size.y))/* height of layer */);
oglh::DrawElements(tile.indices.size);
}
bool MapLayer::HeightOrder(const MapLayer* l1, const MapLayer* l2)
{
return l1->height < l2->height;
}
void MapLayer::OnInspector()
{
if (ImGui::InputText("Name", buf, 30))
name.assign(buf);
ImGui::Text("Type: "); ImGui::SameLine(); ImGui::Text(MapLayer::TypeToString(type).c_str());
ImGui::Checkbox("Visible", &visible);
ImGui::Checkbox("Lock", &locked);
ImGui::SliderFloat("Opacity", &opacity, 0.f, 1.f);
ImGui::DragFloat("Height", &height, 0.1f);
ImGui::DragInt2("Displacement", displacement);
ImGui::Separator();
if (ImGui::CollapsingHeader("Custom Properties", ImGuiTreeNodeFlags_DefaultOpen)) {
properties.Display();
}
}
void MapLayer::Parse(pugi::xml_node& node, MapLayer::DataTypeExport t, bool exporting) const
{
properties.SaveProperties(node.append_child("properties"));
node.append_attribute("name").set_value(name.c_str());
node.append_attribute("visible").set_value(visible);
node.append_attribute("locked").set_value(locked);
node.append_attribute("height").set_value(height);
node.append_attribute("opacity").set_value(opacity);
node.append_attribute("displacementx").set_value(displacement[0]);
node.append_attribute("displacementy").set_value(displacement[1]);
auto ndata = node.append_child("data");
auto encoding = ndata.append_attribute("encoding");
encoding.set_value(MapLayer::DataTypeToString(t).c_str());
ndata.append_child(pugi::node_pcdata).set_value(SerializeData(t).c_str());
node.append_attribute("type").set_value(TypeToString(type).c_str());
}
void MapLayer::Parse(nlohmann::json& node, MapLayer::DataTypeExport t, bool exporting) const
{
properties.SaveProperties(node["properties"]);
node["name"] = name;
node["height"] = height;
node["opacity"] = opacity;
node["visible"] = visible;
node["locked"] = locked;
node["displacement"] = { displacement[0], displacement[1] };
node["encoding"] = DataTypeToString(t);
node["data"] = SerializeData(t);
node["type"] = TypeToString(type);
}
std::string MapLayer::SerializeData(MapLayer::DataTypeExport t) const
{
std::string ret;
if (t != MapLayer::DataTypeExport::CSV_NO_NEWLINE)
ret = '\n';
int2 size = map->GetSize();
for (int i = size.y - 1; i >= 0; --i) {
for (int j = 0; j < size.x; ++j) {
ret.append(std::to_string(data[i * size.x + j]) + ','); // TODO: encode 4 bytes array
}
if (i == 0)
ret.pop_back();
if (t != MapLayer::DataTypeExport::CSV_NO_NEWLINE)
ret += '\n';
}
if (t == MapLayer::DataTypeExport::BASE64_NO_COMPRESSION)
ret = base64_encode(ret);
else if (t == MapLayer::DataTypeExport::BASE64_ZLIB)
ret = base64_encode(compress_string(ret));
return ret;
}
void MapLayer::DeserializeData(const std::string& strdata, MapLayer::DataTypeExport t) const
{
std::string rawdata;
switch (t)
{
case MapLayer::DataTypeExport::CSV:
case MapLayer::DataTypeExport::CSV_NO_NEWLINE:
rawdata = strdata;
break;
case MapLayer::DataTypeExport::BASE64_NO_COMPRESSION:
rawdata = base64_decode(strdata);
break;
case MapLayer::DataTypeExport::BASE64_ZLIB:
rawdata = decompress_string(base64_decode(strdata));
break;
}
auto i = rawdata.begin();
int2 size = map->GetSize();
if (*i == '\n')
++i;
int x = 0;
int y = size.y - 1;
while (i != rawdata.end()) {
std::string n;
while (i != rawdata.end() && *i != ',') {
if (*i == '\n' && (i + 1) != rawdata.end()) { // Weird way to load cause the origin on textures is Bottom-Left and not Top-Left. TODO?
x = 0;
--y;
break;
}
n += *i;
i++;
}
if (!n.empty()) {
data[size.x * y + x] = (TILE_DATA_TYPE)std::stoul(n);
++x;
}
if (i != rawdata.end())
i++;
}
}
void MapLayer::Unparse(const pugi::xml_node& node)
{
}
void MapLayer::Unparse(const nlohmann::json& node)
{
name = node.value("name", "Layer");
height = node.value("height", 0.f);
opacity = node.value("opacity", 1.f);
visible = node.value("visible", true);
locked = node.value("locked", false);
if (node.find("displacement") != node.end()) {
displacement[0] = node["displacement"][0];
displacement[1] = node["displacement"][1];
}
properties.LoadProperties(node["properties"]);
DeserializeData(node.value("data", ""), MapLayer::StringToDataType(node.value("encoding", "")));
}
const char* MapLayer::GetName() const
{
return name.c_str();
}
void MapLayer::SetName(const char* n)
{
name.assign(n);
strcpy_s(buf, 30, n);
}
MapLayer::Type MapLayer::GetType() const
{
return type;
}
std::string MapLayer::TypeToString(Type t)
{
switch (t)
{
case MapLayer::Type::TILE:
return std::string("tile");
case MapLayer::Type::OBJECT:
return std::string("object");
}
return std::string("NONE");
}
std::string MapLayer::ToString() const
{
switch (type)
{
case MapLayer::Type::TILE:
return "tile";
case MapLayer::Type::OBJECT:
return "object";
}
return std::string("NONE");
}
MapLayer::Type MapLayer::StringToType(const std::string& s)
{
if (s.compare("tile") == 0) {
return MapLayer::Type::TILE;
}
else if (s.compare("object") == 0) {
return MapLayer::Type::OBJECT;
}
return MapLayer::Type::NONE;
}
std::string MapLayer::DataTypeToString(DataTypeExport t)
{
switch (t)
{
case MapLayer::DataTypeExport::CSV:
case MapLayer::DataTypeExport::CSV_NO_NEWLINE:
return "csv";
case MapLayer::DataTypeExport::BASE64_NO_COMPRESSION:
return "base64";
case MapLayer::DataTypeExport::BASE64_ZLIB:
return "base64-zlib";
}
return "none";
}
MapLayer::DataTypeExport MapLayer::StringToDataType(const std::string& s)
{
if (s.compare("csv") == 0) {
return MapLayer::DataTypeExport::CSV;
}
if (s.compare("base64") == 0) {
return MapLayer::DataTypeExport::BASE64_NO_COMPRESSION;
}
if (s.compare("base64-zlib") == 0) {
return MapLayer::DataTypeExport::BASE64_ZLIB;
}
return MapLayer::DataTypeExport::NONE;
}
OpenGLBuffers::~OpenGLBuffers()
{
oglh::DeleteBuffer(vertices.id);
oglh::DeleteBuffer(indices.id);
oglh::DeleteBuffer(texture.id);
delete[] vertices.data;
delete[] indices.data;
delete[] texture.data;
}
void OpenGLBuffers::InitData()
{
vertices.size = 4;
vertices.data = new float[vertices.size * 3];
vertices.data[0] = 0.f; vertices.data[1 ] = 0.f; vertices.data[2 ] = 0.f;
vertices.data[3] = 1.f; vertices.data[4 ] = 0.f; vertices.data[5 ] = 0.f;
vertices.data[6] = 1.f; vertices.data[7 ] = 0.f; vertices.data[8 ] = 1.f;
vertices.data[9] = 0.f; vertices.data[10] = 0.f; vertices.data[11] = 1.f;
indices.size = 6;
indices.data = new unsigned int[indices.size];
indices.data[0] = 0u; indices.data[1] = 2u; indices.data[2] = 1u;
indices.data[3] = 0u; indices.data[4] = 3u; indices.data[5] = 2u;
texture.size = 4;
texture.data = new float[texture.size * 2];
memset(texture.data, 0, texture.size * 2 * sizeof(float));
texture.data[0] = 0.f; texture.data[1] = 0.f;
texture.data[2] = 1.f; texture.data[3] = 0.f;
texture.data[4] = 1.f; texture.data[5] = 1.f;
texture.data[6] = 0.f; texture.data[7] = 1.f;
// VERTEX ARRAY OBJECT
oglh::GenVAO(VAO);
// VERTICES BUFFER
oglh::GenArrayBuffer(vertices.id, vertices.size, sizeof(float), 3, vertices.data, 0, 3);
// TEXTURE COORDS BUFFER
oglh::GenArrayBuffer(texture.id, texture.size, sizeof(float), 2, texture.data, 1, 2);
// INDICES BUFFER
oglh::GenElementBuffer(indices.id, indices.size, indices.data);
oglh::UnBindBuffers();
}
| [
"36189169+christt105@users.noreply.github.com"
] | 36189169+christt105@users.noreply.github.com |
ec32567b629820212447430d2bdcbf0b341aadae | 781b703672fee74cb943188f5aee9d7af1929587 | /src/Media/WaveOutEffect.h | 2b7d035d7dc6e7c694df7b9900d3b69436236eca | [] | no_license | tomwillow/SagittariusIII | 098ac436aba4ef2067c1f2855900058df3a4d3a8 | 28bbd17a44323654294ed063655ec52fc2df2af5 | refs/heads/master | 2023-05-21T21:43:12.887588 | 2021-06-11T03:52:34 | 2021-06-11T03:52:34 | 322,238,947 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | h | #pragma once
#include <Windows.h>
#include <mmsystem.h>
class WaveOutEffect
{
public:
WaveOutEffect(PWAVEFORMATEX pWaveformat, int buf_ms = 80);
~WaveOutEffect();
void PlayAudio(char* in_buf, unsigned int in_bufsize);
private:
char* buf;
unsigned int buf_size;
WAVEFORMATEX m_Waveformat;
WAVEHDR wavehdr;
HWAVEOUT m_hWaveOut;
MMRESULT mRet;
void Open();
void Reset();
};
| [
"tomwillow@qq.com"
] | tomwillow@qq.com |
7544d838438d53bc4e62506e76193e02f786aa46 | 2ad1231228fc2046a9d2be5a279a6981e97e0fc4 | /PR/Plate.h | e03d03c104b9f03195fee1b81cf48119ba367a5a | [] | no_license | anqin2017/PR | efc709003c774340360063ebdb59897ec93f7ba6 | 6eabfc5ddff513e33d1a685c682109b5a16631f0 | refs/heads/master | 2020-03-09T18:44:49.744355 | 2018-04-10T13:48:52 | 2018-04-10T13:48:52 | 128,939,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | h | #pragma once
#include <opencv2\opencv.hpp>
#include <iostream>
#include "config.h"
using namespace std;
using namespace cv;
namespace PR
{
class CPlate
{
public:
CPlate();
~CPlate();
inline void setPlateMat(Mat param) { m_plateMat = param; }
inline Mat getPlateMat() const { return m_plateMat; }
inline void setChinesePlateMat(Mat param) { m_chinesePlateMat = param; }
inline Mat getChinesePlateMat(Mat param) { return m_chinesePlateMat; }
private:
// plate mat
Mat m_plateMat;
// plate rect
Mat m_platePos;
// chinese plate mat
Mat m_chinesePlateMat;
// chinese plate rect
Mat m_chinesePlateRect;
};
}
| [
"aqyao.@prevt.com"
] | aqyao.@prevt.com |
456d15a2337b6e2263acf661ef3acd36dddf1ce7 | 4c266ce7b4514a1739f3d7bf808be07d85f8cd6e | /src/Utilities/Utilities/Memory/AllocationInfo.h | ad3bf741ab7dc71236a1cb5b411cf23424f5477d | [] | no_license | madrenegade/PGameStudio | 38a52ca845464a3ac19909535678a6d88b1b9f6a | 76d4339128b058db8c9861b420a4decf08516498 | refs/heads/master | 2020-05-26T19:06:07.822343 | 2011-10-05T08:40:47 | 2011-10-05T08:40:47 | 2,300,398 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 800 | h | #ifndef UTILITIES_MEMORY_ALLOCATIONINFO_H
#define UTILITIES_MEMORY_ALLOCATIONINFO_H
#include <typeinfo>
#include <string>
#include "Utilities/Memory/typedefs.h"
namespace Utilities
{
namespace Memory
{
class AllocationInfo
{
public:
AllocationInfo();
AllocationInfo(const char* const pool, const_byte_pointer ptr, const size_t bytes, const std::type_info& type);
const char* getPool() const;
const_byte_pointer getPointer() const;
size_t getSize() const;
std::string getType() const;
private:
const char* pool;
const_byte_pointer ptr;
size_t bytes;
std::string type;
};
}
}
#endif // UTILITIES_MEMORY_ALLOCATIONINFO_H
| [
"madrenegade@gmx.de"
] | madrenegade@gmx.de |
fb6af472d115f9c1f51852ec9c14ca0d05b30908 | 33ddc6f300121b2d5f065c96941c9fcaed09025f | /test-case/10/test10.cpp | f930bb434bfb67bc949ce88a8bda3e8bc1351b42 | [] | no_license | liangshuixitou/Complier | fd4f7f4b1f713c6b78ccb50a887f4e6717311356 | 026e91deb709f3b41a54421832d8773c51f60f61 | refs/heads/master | 2023-03-04T09:55:30.441514 | 2021-02-19T13:35:33 | 2021-02-19T13:35:33 | 340,378,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | int div(int x)
{
int factor;
factor = 10;
return (x / factor);
}
int rem(int x, int y)
{
int factor;
factor = 10;
return (y - (factor * x));
}
int digitize(int x)
{
int dx;
int rx;
while (x > 0)
{
dx = div(x);
rx = rem(dx, x);
x = dx;
}
return 0;
}
int Fibonacci(int xx)
{
int val;
if (xx == 1)
{
val = 1;
}
if (xx == 2)
{
val = 1;
}
if (xx > 2)
{
val = Fibonacci(xx - 2) + Fibonacci(xx - 1);
}
digitize(val);
return val;
}
int main()
{
int x;
int result;
result = Fibonacci(x);
return 0;
} | [
"1151824226@qq.com"
] | 1151824226@qq.com |
5d908c87a9d75860bd4e418d9e53de29b9b436c8 | 2770af9aa3948c451bbf7fb350f33cb104031776 | /examples/ula/simple/test/ula_simples_final/solution1/.autopilot/db/ula.scpp.0.cpp.line_pre.CXX | 6322f444aa57a8c7740e41a5eb85bbdae25e7e5d | [] | no_license | shirishbahirat/systemC | 44939850641bd2df7fb523f3ca578a499d24e74a | 96de66a7a72f13320e809a5a4a9599f4ec2d457a | refs/heads/master | 2020-04-24T23:48:30.654958 | 2017-12-14T20:06:19 | 2017-12-14T20:06:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 144,164 | cxx | #pragma line 1 "ula.cpp" ::: 0
#pragma line 1 "ula.cpp" 1 ::: 1
#pragma line 1 "<built-in>" 1 ::: 2
#pragma line 1 "<built-in>" 3 ::: 3
#pragma line 155 "<built-in>" 3 ::: 4
#pragma line 1 "<command line>" 1 ::: 5
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/etc/autopilot_ssdm_op.h" 1 ::: 12
#pragma line 156 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/etc/autopilot_ssdm_op.h" ::: 13
#pragma line 8 "<command line>" 2 ::: 143
#pragma line 1 "<built-in>" 2 ::: 144
#pragma line 1 "ula.cpp" 2 ::: 145
#pragma line 1 "./ula.h" 1 ::: 146
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/systemc.h" 1 ::: 150
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" 1 ::: 151
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iostream" 1 3 ::: 166
#pragma line 37 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iostream" 3 ::: 167
#pragma line 37 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iostream" 3 ::: 168
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++config.h" 1 3 ::: 170
#pragma line 153 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++config.h" 3 ::: 171
#pragma line 393 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++config.h" 3 ::: 181
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/os_defines.h" 1 3 ::: 182
#pragma line 40 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/os_defines.h" 3 ::: 183
#pragma line 1 "/usr/include/features.h" 1 3 4 ::: 184
#pragma line 345 "/usr/include/features.h" 3 4 ::: 185
#pragma line 1 "/usr/include/stdc-predef.h" 1 3 4 ::: 186
#pragma line 346 "/usr/include/features.h" 2 3 4 ::: 187
#pragma line 375 "/usr/include/features.h" 3 4 ::: 188
#pragma line 1 "/usr/include/sys/cdefs.h" 1 3 4 ::: 189
#pragma line 392 "/usr/include/sys/cdefs.h" 3 4 ::: 190
#pragma line 1 "/usr/include/bits/wordsize.h" 1 3 4 ::: 191
#pragma line 393 "/usr/include/sys/cdefs.h" 2 3 4 ::: 192
#pragma line 376 "/usr/include/features.h" 2 3 4 ::: 193
#pragma line 399 "/usr/include/features.h" 3 4 ::: 194
#pragma line 1 "/usr/include/gnu/stubs.h" 1 3 4 ::: 195
#pragma line 10 "/usr/include/gnu/stubs.h" 3 4 ::: 196
#pragma line 1 "/usr/include/gnu/stubs-64.h" 1 3 4 ::: 197
#pragma line 11 "/usr/include/gnu/stubs.h" 2 3 4 ::: 198
#pragma line 400 "/usr/include/features.h" 2 3 4 ::: 199
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/os_defines.h" 2 3 ::: 200
#pragma line 394 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++config.h" 2 3 ::: 201
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h" 1 3 ::: 204
#pragma line 397 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++config.h" 2 3 ::: 205
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iostream" 2 3 ::: 206
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 1 3 ::: 207
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 208
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 209
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios" 1 3 ::: 211
#pragma line 37 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios" 3 ::: 212
#pragma line 37 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios" 3 ::: 213
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iosfwd" 1 3 ::: 215
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iosfwd" 3 ::: 216
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iosfwd" 3 ::: 217
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stringfwd.h" 1 3 ::: 220
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stringfwd.h" 3 ::: 221
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stringfwd.h" 3 ::: 222
#pragma line 85 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stringfwd.h" 3 ::: 254
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iosfwd" 2 3 ::: 256
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h" 1 3 ::: 257
#pragma line 40 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h" 3 ::: 258
#pragma line 40 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h" 3 ::: 259
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 1 3 ::: 261
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 3 ::: 262
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 3 ::: 263
#pragma line 1 "/usr/include/wchar.h" 1 3 4 ::: 268
#pragma line 36 "/usr/include/wchar.h" 3 4 ::: 269
#pragma line 1 "/usr/include/stdio.h" 1 3 4 ::: 270
#pragma line 44 "/usr/include/stdio.h" 3 4 ::: 271
#pragma line 64 "/usr/include/stdio.h" 3 4 ::: 277
#pragma line 37 "/usr/include/wchar.h" 2 3 4 ::: 279
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stdarg.h" 1 3 4 ::: 282
#pragma line 30 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stdarg.h" 3 4 ::: 283
#pragma line 48 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stdarg.h" 3 4 ::: 285
#pragma line 40 "/usr/include/wchar.h" 2 3 4 ::: 287
#pragma line 1 "/usr/include/bits/wchar.h" 1 3 4 ::: 289
#pragma line 22 "/usr/include/bits/wchar.h" 3 4 ::: 290
#pragma line 1 "/usr/include/bits/wordsize.h" 1 3 4 ::: 291
#pragma line 23 "/usr/include/bits/wchar.h" 2 3 4 ::: 292
#pragma line 42 "/usr/include/wchar.h" 2 3 4 ::: 293
#pragma line 51 "/usr/include/wchar.h" 3 4 ::: 294
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stddef.h" 1 3 4 ::: 295
#pragma line 31 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stddef.h" 3 4 ::: 296
#pragma line 61 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stddef.h" 3 4 ::: 302
#pragma line 52 "/usr/include/wchar.h" 2 3 4 ::: 304
#pragma line 82 "/usr/include/wchar.h" 3 4 ::: 305
#pragma line 106 "/usr/include/wchar.h" 3 4 ::: 319
#pragma line 132 "/usr/include/wchar.h" 3 4 ::: 321
#pragma line 147 "/usr/include/wchar.h" 3 4 ::: 328
#pragma line 1 "/usr/include/xlocale.h" 1 3 4 ::: 363
#pragma line 27 "/usr/include/xlocale.h" 3 4 ::: 364
#pragma line 39 "/usr/include/xlocale.h" ::: 380
#pragma line 181 "/usr/include/wchar.h" 2 3 4 ::: 385
#pragma line 206 "/usr/include/wchar.h" 3 4 ::: 403
#pragma line 227 "/usr/include/wchar.h" 3 4 ::: 415
#pragma line 237 "/usr/include/wchar.h" 3 4 ::: 418
#pragma line 266 "/usr/include/wchar.h" 3 4 ::: 440
#pragma line 277 "/usr/include/wchar.h" 3 4 ::: 443
#pragma line 299 "/usr/include/wchar.h" 3 4 ::: 455
#pragma line 320 "/usr/include/wchar.h" 3 4 ::: 465
#pragma line 408 "/usr/include/wchar.h" 3 4 ::: 524
#pragma line 530 "/usr/include/wchar.h" 3 4 ::: 627
#pragma line 689 "/usr/include/wchar.h" 3 4 ::: 746
#pragma line 745 "/usr/include/wchar.h" 3 4 ::: 763
#pragma line 801 "/usr/include/wchar.h" 3 4 ::: 809
#pragma line 827 "/usr/include/wchar.h" 3 4 ::: 828
#pragma line 837 "/usr/include/wchar.h" 3 4 ::: 831
#pragma line 891 "/usr/include/wchar.h" 3 4 ::: 864
#pragma line 46 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 2 3 ::: 866
#pragma line 63 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 3 ::: 867
#pragma line 136 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 3 ::: 872
#pragma line 258 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 3 ::: 987
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h" 2 3 ::: 999
#pragma line 69 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h" 3 ::: 1000
#pragma line 89 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h" 3 ::: 1003
#pragma line 99 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h" 3 ::: 1005
#pragma line 112 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h" 3 ::: 1007
#pragma line 134 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h" 3 ::: 1022
#pragma line 241 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h" 3 ::: 1121
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iosfwd" 2 3 ::: 1123
#pragma line 75 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iosfwd" 3 ::: 1127
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios" 2 3 ::: 1263
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/exception" 1 3 ::: 1264
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/exception" 3 ::: 1265
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/exception" 3 ::: 1266
#pragma line 60 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/exception" 3 ::: 1276
#pragma line 117 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/exception" 3 ::: 1322
#pragma line 142 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/exception" 3 ::: 1330
#pragma line 40 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios" 2 3 ::: 1339
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/char_traits.h" 1 3 ::: 1340
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/char_traits.h" 3 ::: 1341
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/char_traits.h" 3 ::: 1342
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 1 3 ::: 1344
#pragma line 61 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 1345
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/functexcept.h" 1 3 ::: 1346
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/functexcept.h" 3 ::: 1347
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/exception_defines.h" 1 3 ::: 1348
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/functexcept.h" 2 3 ::: 1349
#pragma line 62 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 2 3 ::: 1414
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cpp_type_traits.h" 1 3 ::: 1415
#pragma line 36 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cpp_type_traits.h" 3 ::: 1416
#pragma line 36 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cpp_type_traits.h" 3 ::: 1417
#pragma line 68 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cpp_type_traits.h" 3 ::: 1418
#pragma line 198 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cpp_type_traits.h" 3 ::: 1531
#pragma line 422 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cpp_type_traits.h" 3 ::: 1742
#pragma line 63 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 2 3 ::: 1744
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/type_traits.h" 1 3 ::: 1745
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/type_traits.h" 3 ::: 1746
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/type_traits.h" 3 ::: 1747
#pragma line 64 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 2 3 ::: 1927
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/numeric_traits.h" 1 3 ::: 1928
#pragma line 32 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/numeric_traits.h" 3 ::: 1929
#pragma line 32 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/numeric_traits.h" 3 ::: 1930
#pragma line 53 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/numeric_traits.h" 3 ::: 1937
#pragma line 98 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/numeric_traits.h" 3 ::: 1962
#pragma line 65 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 2 3 ::: 1996
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_pair.h" 1 3 ::: 1997
#pragma line 60 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_pair.h" 3 ::: 1998
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/move.h" 1 3 ::: 1999
#pragma line 34 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/move.h" 3 ::: 2000
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/concept_check.h" 1 3 ::: 2001
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/concept_check.h" 3 ::: 2002
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/concept_check.h" 3 ::: 2003
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/move.h" 2 3 ::: 2004
#pragma line 109 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/move.h" 3 ::: 2021
#pragma line 120 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/move.h" 3 ::: 2024
#pragma line 61 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_pair.h" 2 3 ::: 2049
#pragma line 86 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_pair.h" 3 ::: 2057
#pragma line 196 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_pair.h" 3 ::: 2082
#pragma line 270 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_pair.h" 3 ::: 2121
#pragma line 66 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 2 3 ::: 2130
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_types.h" 1 3 ::: 2131
#pragma line 63 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_types.h" 3 ::: 2132
#pragma line 63 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_types.h" 3 ::: 2133
#pragma line 89 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_types.h" 3 ::: 2143
#pragma line 116 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_types.h" 3 ::: 2159
#pragma line 162 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_types.h" 3 ::: 2175
#pragma line 67 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 2 3 ::: 2240
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_funcs.h" 1 3 ::: 2241
#pragma line 63 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_funcs.h" 3 ::: 2242
#pragma line 63 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_funcs.h" 3 ::: 2243
#pragma line 110 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_funcs.h" 3 ::: 2278
#pragma line 168 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_funcs.h" 3 ::: 2324
#pragma line 200 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_funcs.h" 3 ::: 2333
#pragma line 68 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 2 3 ::: 2335
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 1 3 ::: 2336
#pragma line 68 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2337
#pragma line 96 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2340
#pragma line 283 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2517
#pragma line 395 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2617
#pragma line 422 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2632
#pragma line 445 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2639
#pragma line 471 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2654
#pragma line 486 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2659
#pragma line 512 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2673
#pragma line 535 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2680
#pragma line 561 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2695
#pragma line 580 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2700
#pragma line 623 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2719
#pragma line 649 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2727
#pragma line 675 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2742
#pragma line 699 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2758
#pragma line 797 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h" 3 ::: 2847
#pragma line 69 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 2 3 ::: 2953
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/debug/debug.h" 1 3 ::: 2955
#pragma line 47 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/debug/debug.h" 3 ::: 2956
#pragma line 71 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 2 3 ::: 2969
#pragma line 116 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3004
#pragma line 135 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3013
#pragma line 157 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3023
#pragma line 185 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3040
#pragma line 208 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3052
#pragma line 231 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3064
#pragma line 252 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3074
#pragma line 319 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3126
#pragma line 357 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3144
#pragma line 442 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3212
#pragma line 494 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3227
#pragma line 522 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3240
#pragma line 552 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3254
#pragma line 611 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3295
#pragma line 669 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3312
#pragma line 713 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3344
#pragma line 773 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3389
#pragma line 934 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3539
#pragma line 1008 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3597
#pragma line 1040 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3614
#pragma line 1071 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3630
#pragma line 1105 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3651
#pragma line 1145 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3678
#pragma line 1182 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h" 3 ::: 3699
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/char_traits.h" 2 3 ::: 3721
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 1 3 ::: 3723
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 3 ::: 3724
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 3 ::: 3725
#pragma line 1 "/usr/include/wchar.h" 1 3 4 ::: 3730
#pragma line 46 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar" 2 3 ::: 3731
#pragma line 43 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/char_traits.h" 2 3 ::: 3732
#pragma line 58 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/char_traits.h" 3 ::: 3736
#pragma line 83 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/char_traits.h" 3 ::: 3745
#pragma line 227 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/char_traits.h" 3 ::: 3875
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios" 2 3 ::: 4022
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/localefwd.h" 1 3 ::: 4023
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/localefwd.h" 3 ::: 4024
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/localefwd.h" 3 ::: 4025
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++locale.h" 1 3 ::: 4028
#pragma line 40 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++locale.h" 3 ::: 4029
#pragma line 40 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++locale.h" 3 ::: 4030
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/clocale" 1 3 ::: 4032
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/clocale" 3 ::: 4033
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/clocale" 3 ::: 4034
#pragma line 1 "/usr/include/locale.h" 1 3 4 ::: 4037
#pragma line 29 "/usr/include/locale.h" 3 4 ::: 4038
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stddef.h" 1 3 4 ::: 4039
#pragma line 30 "/usr/include/locale.h" 2 3 4 ::: 4040
#pragma line 1 "/usr/include/bits/locale.h" 1 3 4 ::: 4041
#pragma line 31 "/usr/include/locale.h" 2 3 4 ::: 4042
#pragma line 54 "/usr/include/locale.h" 3 4 ::: 4045
#pragma line 121 "/usr/include/locale.h" 3 4 ::: 4105
#pragma line 152 "/usr/include/locale.h" 3 4 ::: 4114
#pragma line 187 "/usr/include/locale.h" 3 4 ::: 4117
#pragma line 44 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/clocale" 2 3 ::: 4138
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++locale.h" 2 3 ::: 4153
#pragma line 88 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++locale.h" 3 ::: 4188
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/localefwd.h" 2 3 ::: 4214
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cctype" 1 3 ::: 4216
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cctype" 3 ::: 4217
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cctype" 3 ::: 4218
#pragma line 1 "/usr/include/ctype.h" 1 3 4 ::: 4221
#pragma line 27 "/usr/include/ctype.h" 3 4 ::: 4222
#pragma line 1 "/usr/include/bits/types.h" 1 3 4 ::: 4223
#pragma line 27 "/usr/include/bits/types.h" 3 4 ::: 4224
#pragma line 1 "/usr/include/bits/wordsize.h" 1 3 4 ::: 4225
#pragma line 28 "/usr/include/bits/types.h" 2 3 4 ::: 4226
#pragma line 130 "/usr/include/bits/types.h" 3 4 ::: 4253
#pragma line 1 "/usr/include/bits/typesizes.h" 1 3 4 ::: 4254
#pragma line 131 "/usr/include/bits/types.h" 2 3 4 ::: 4255
#pragma line 28 "/usr/include/ctype.h" 2 3 4 ::: 4324
#pragma line 40 "/usr/include/ctype.h" 3 4 ::: 4327
#pragma line 1 "/usr/include/endian.h" 1 3 4 ::: 4328
#pragma line 36 "/usr/include/endian.h" 3 4 ::: 4329
#pragma line 1 "/usr/include/bits/endian.h" 1 3 4 ::: 4330
#pragma line 37 "/usr/include/endian.h" 2 3 4 ::: 4331
#pragma line 60 "/usr/include/endian.h" 3 4 ::: 4332
#pragma line 1 "/usr/include/bits/byteswap.h" 1 3 4 ::: 4333
#pragma line 28 "/usr/include/bits/byteswap.h" 3 4 ::: 4334
#pragma line 1 "/usr/include/bits/wordsize.h" 1 3 4 ::: 4335
#pragma line 29 "/usr/include/bits/byteswap.h" 2 3 4 ::: 4336
#pragma line 1 "/usr/include/bits/byteswap-16.h" 1 3 4 ::: 4343
#pragma line 36 "/usr/include/bits/byteswap.h" 2 3 4 ::: 4344
#pragma line 61 "/usr/include/endian.h" 2 3 4 ::: 4345
#pragma line 41 "/usr/include/ctype.h" 2 3 4 ::: 4346
#pragma line 80 "/usr/include/ctype.h" 3 4 ::: 4368
#pragma line 111 "/usr/include/ctype.h" 3 4 ::: 4375
#pragma line 137 "/usr/include/ctype.h" 3 4 ::: 4394
#pragma line 272 "/usr/include/ctype.h" 3 4 ::: 4419
#pragma line 348 "/usr/include/ctype.h" 3 4 ::: 4442
#pragma line 44 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cctype" 2 3 ::: 4444
#pragma line 63 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cctype" 3 ::: 4445
#pragma line 44 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/localefwd.h" 2 3 ::: 4462
#pragma line 56 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/localefwd.h" 3 ::: 4466
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios" 2 3 ::: 4601
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 1 3 ::: 4602
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 4603
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 4604
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/atomicity.h" 1 3 ::: 4606
#pragma line 34 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/atomicity.h" 3 ::: 4607
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr.h" 1 3 ::: 4608
#pragma line 30 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr.h" 3 ::: 4609
#pragma line 170 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr.h" 3 ::: 4611
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr-default.h" 1 3 ::: 4612
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr-default.h" 3 ::: 4613
#pragma line 1 "/usr/include/pthread.h" 1 3 4 ::: 4614
#pragma line 23 "/usr/include/pthread.h" 3 4 ::: 4615
#pragma line 1 "/usr/include/sched.h" 1 3 4 ::: 4616
#pragma line 29 "/usr/include/sched.h" 3 4 ::: 4617
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stddef.h" 1 3 4 ::: 4618
#pragma line 30 "/usr/include/sched.h" 2 3 4 ::: 4619
#pragma line 1 "/usr/include/time.h" 1 3 4 ::: 4623
#pragma line 75 "/usr/include/time.h" 3 4 ::: 4624
#pragma line 120 "/usr/include/time.h" 3 4 ::: 4626
#pragma line 34 "/usr/include/sched.h" 2 3 4 ::: 4632
#pragma line 1 "/usr/include/bits/sched.h" 1 3 4 ::: 4642
#pragma line 73 "/usr/include/bits/sched.h" 3 4 ::: 4643
#pragma line 119 "/usr/include/bits/sched.h" 3 4 ::: 4679
#pragma line 202 "/usr/include/bits/sched.h" 3 4 ::: 4691
#pragma line 43 "/usr/include/sched.h" 2 3 4 ::: 4700
#pragma line 117 "/usr/include/sched.h" 3 4 ::: 4732
#pragma line 24 "/usr/include/pthread.h" 2 3 4 ::: 4742
#pragma line 1 "/usr/include/time.h" 1 3 4 ::: 4743
#pragma line 29 "/usr/include/time.h" 3 4 ::: 4744
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stddef.h" 1 3 4 ::: 4754
#pragma line 38 "/usr/include/time.h" 2 3 4 ::: 4755
#pragma line 1 "/usr/include/bits/time.h" 1 3 4 ::: 4759
#pragma line 30 "/usr/include/bits/time.h" 3 4 ::: 4760
#pragma line 86 "/usr/include/bits/time.h" 3 4 ::: 4766
#pragma line 1 "/usr/include/bits/timex.h" 1 3 4 ::: 4767
#pragma line 25 "/usr/include/bits/timex.h" 3 4 ::: 4768
#pragma line 87 "/usr/include/bits/time.h" 2 3 4 ::: 4798
#pragma line 42 "/usr/include/time.h" 2 3 4 ::: 4806
#pragma line 59 "/usr/include/time.h" 3 4 ::: 4807
#pragma line 91 "/usr/include/time.h" 3 4 ::: 4809
#pragma line 103 "/usr/include/time.h" 3 4 ::: 4811
#pragma line 133 "/usr/include/time.h" 3 4 ::: 4813
#pragma line 161 "/usr/include/time.h" 3 4 ::: 4834
#pragma line 189 "/usr/include/time.h" 3 4 ::: 4843
#pragma line 319 "/usr/include/time.h" 3 4 ::: 4960
#pragma line 334 "/usr/include/time.h" 3 4 ::: 4968
#pragma line 403 "/usr/include/time.h" 3 4 ::: 5023
#pragma line 412 "/usr/include/time.h" 3 4 ::: 5025
#pragma line 426 "/usr/include/time.h" 3 4 ::: 5027
#pragma line 25 "/usr/include/pthread.h" 2 3 4 ::: 5033
#pragma line 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 ::: 5035
#pragma line 21 "/usr/include/bits/pthreadtypes.h" 3 4 ::: 5036
#pragma line 1 "/usr/include/bits/wordsize.h" 1 3 4 ::: 5037
#pragma line 22 "/usr/include/bits/pthreadtypes.h" 2 3 4 ::: 5038
#pragma line 60 "/usr/include/bits/pthreadtypes.h" 3 4 ::: 5039
#pragma line 90 "/usr/include/bits/pthreadtypes.h" 3 4 ::: 5060
#pragma line 124 "/usr/include/bits/pthreadtypes.h" 3 4 ::: 5078
#pragma line 211 "/usr/include/bits/pthreadtypes.h" 3 4 ::: 5148
#pragma line 27 "/usr/include/pthread.h" 2 3 4 ::: 5179
#pragma line 1 "/usr/include/bits/setjmp.h" 1 3 4 ::: 5180
#pragma line 26 "/usr/include/bits/setjmp.h" 3 4 ::: 5181
#pragma line 1 "/usr/include/bits/wordsize.h" 1 3 4 ::: 5182
#pragma line 27 "/usr/include/bits/setjmp.h" 2 3 4 ::: 5183
#pragma line 28 "/usr/include/pthread.h" 2 3 4 ::: 5189
#pragma line 1 "/usr/include/bits/wordsize.h" 1 3 4 ::: 5190
#pragma line 29 "/usr/include/pthread.h" 2 3 4 ::: 5191
#pragma line 125 "/usr/include/pthread.h" 3 4 ::: 5245
#pragma line 166 "/usr/include/pthread.h" 3 4 ::: 5253
#pragma line 201 "/usr/include/pthread.h" 3 4 ::: 5281
#pragma line 239 "/usr/include/pthread.h" 3 4 ::: 5305
#pragma line 497 "/usr/include/pthread.h" 3 4 ::: 5552
#pragma line 509 "/usr/include/pthread.h" 3 4 ::: 5555
#pragma line 543 "/usr/include/pthread.h" 3 4 ::: 5582
#pragma line 683 "/usr/include/pthread.h" 3 4 ::: 5590
#pragma line 695 "/usr/include/pthread.h" 3 4 ::: 5593
#pragma line 718 "/usr/include/pthread.h" 3 4 ::: 5596
#pragma line 731 "/usr/include/pthread.h" 3 4 ::: 5599
#pragma line 809 "/usr/include/pthread.h" 3 4 ::: 5670
#pragma line 891 "/usr/include/pthread.h" 3 4 ::: 5744
#pragma line 1003 "/usr/include/pthread.h" 3 4 ::: 5849
#pragma line 1047 "/usr/include/pthread.h" 3 4 ::: 5886
#pragma line 1114 "/usr/include/pthread.h" 3 4 ::: 5943
#pragma line 1148 "/usr/include/pthread.h" 3 4 ::: 5964
#pragma line 1162 "/usr/include/pthread.h" 3 4 ::: 5968
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr-default.h" 2 3 ::: 5970
#pragma line 1 "/usr/include/unistd.h" 1 3 4 ::: 5971
#pragma line 27 "/usr/include/unistd.h" 3 4 ::: 5972
#pragma line 202 "/usr/include/unistd.h" 3 4 ::: 5974
#pragma line 1 "/usr/include/bits/posix_opt.h" 1 3 4 ::: 5975
#pragma line 203 "/usr/include/unistd.h" 2 3 4 ::: 5976
#pragma line 1 "/usr/include/bits/environments.h" 1 3 4 ::: 5980
#pragma line 22 "/usr/include/bits/environments.h" 3 4 ::: 5981
#pragma line 1 "/usr/include/bits/wordsize.h" 1 3 4 ::: 5982
#pragma line 23 "/usr/include/bits/environments.h" 2 3 4 ::: 5983
#pragma line 207 "/usr/include/unistd.h" 2 3 4 ::: 5984
#pragma line 220 "/usr/include/unistd.h" 3 4 ::: 5985
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stddef.h" 1 3 4 ::: 5993
#pragma line 227 "/usr/include/unistd.h" 2 3 4 ::: 5994
#pragma line 267 "/usr/include/unistd.h" 3 4 ::: 6024
#pragma line 287 "/usr/include/unistd.h" 3 4 ::: 6033
#pragma line 334 "/usr/include/unistd.h" 3 4 ::: 6053
#pragma line 345 "/usr/include/unistd.h" 3 4 ::: 6055
#pragma line 376 "/usr/include/unistd.h" 3 4 ::: 6078
#pragma line 404 "/usr/include/unistd.h" 3 4 ::: 6089
#pragma line 432 "/usr/include/unistd.h" 3 4 ::: 6109
#pragma line 444 "/usr/include/unistd.h" 3 4 ::: 6111
#pragma line 469 "/usr/include/unistd.h" 3 4 ::: 6129
#pragma line 511 "/usr/include/unistd.h" 3 4 ::: 6163
#pragma line 1 "/usr/include/bits/confname.h" 1 3 4 ::: 6263
#pragma line 25 "/usr/include/bits/confname.h" 3 4 ::: 6264
#pragma line 610 "/usr/include/unistd.h" 2 3 4 ::: 6917
#pragma line 646 "/usr/include/unistd.h" 3 4 ::: 6945
#pragma line 672 "/usr/include/unistd.h" 3 4 ::: 6956
#pragma line 689 "/usr/include/unistd.h" 3 4 ::: 6958
#pragma line 893 "/usr/include/unistd.h" 3 4 ::: 7155
#pragma line 1 "/usr/include/getopt.h" 1 3 4 ::: 7156
#pragma line 49 "/usr/include/getopt.h" 3 4 ::: 7157
#pragma line 58 "/usr/include/getopt.h" 3 4 ::: 7159
#pragma line 72 "/usr/include/getopt.h" 3 4 ::: 7161
#pragma line 151 "/usr/include/getopt.h" 3 4 ::: 7172
#pragma line 186 "/usr/include/getopt.h" 3 4 ::: 7175
#pragma line 894 "/usr/include/unistd.h" 2 3 4 ::: 7177
#pragma line 1015 "/usr/include/unistd.h" 3 4 ::: 7290
#pragma line 1027 "/usr/include/unistd.h" 3 4 ::: 7293
#pragma line 1038 "/usr/include/unistd.h" 3 4 ::: 7296
#pragma line 1048 "/usr/include/unistd.h" 3 4 ::: 7298
#pragma line 1059 "/usr/include/unistd.h" 3 4 ::: 7300
#pragma line 1080 "/usr/include/unistd.h" 3 4 ::: 7308
#pragma line 1103 "/usr/include/unistd.h" 3 4 ::: 7310
#pragma line 1113 "/usr/include/unistd.h" 3 4 ::: 7312
#pragma line 1134 "/usr/include/unistd.h" 3 4 ::: 7314
#pragma line 1172 "/usr/include/unistd.h" 3 4 ::: 7337
#pragma line 43 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr-default.h" 2 3 ::: 7339
#pragma line 118 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr-default.h" 3 ::: 7348
#pragma line 239 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr-default.h" 3 ::: 7386
#pragma line 657 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr-default.h" 3 ::: 7400
#pragma line 800 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr-default.h" 3 ::: 7520
#pragma line 171 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr.h" 2 3 ::: 7595
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/atomicity.h" 2 3 ::: 7604
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/atomic_word.h" 1 3 ::: 7605
#pragma line 32 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/atomic_word.h" 3 ::: 7606
#pragma line 36 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/atomicity.h" 2 3 ::: 7608
#pragma line 63 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/atomicity.h" 3 ::: 7626
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 2 3 ::: 7669
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 1 3 ::: 7671
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 7672
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 7673
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/string" 1 3 ::: 7676
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/string" 3 ::: 7677
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/string" 3 ::: 7678
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/allocator.h" 1 3 ::: 7683
#pragma line 48 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/allocator.h" 3 ::: 7684
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++allocator.h" 1 3 ::: 7685
#pragma line 34 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++allocator.h" 3 ::: 7686
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/new_allocator.h" 1 3 ::: 7687
#pragma line 34 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/new_allocator.h" 3 ::: 7688
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/new" 1 3 ::: 7689
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/new" 3 ::: 7690
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/new" 3 ::: 7691
#pragma line 92 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/new" 3 ::: 7733
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/new_allocator.h" 2 3 ::: 7754
#pragma line 53 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/new_allocator.h" 3 ::: 7764
#pragma line 117 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/new_allocator.h" 3 ::: 7821
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++allocator.h" 2 3 ::: 7838
#pragma line 49 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/allocator.h" 2 3 ::: 7839
#pragma line 65 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/allocator.h" 3 ::: 7847
#pragma line 91 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/allocator.h" 3 ::: 7866
#pragma line 237 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/allocator.h" 3 ::: 7959
#pragma line 43 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/string" 2 3 ::: 7961
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ostream_insert.h" 1 3 ::: 7964
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ostream_insert.h" 3 ::: 7965
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ostream_insert.h" 3 ::: 7966
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cxxabi_forced.h" 1 3 ::: 7969
#pragma line 34 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cxxabi_forced.h" 3 ::: 7970
#pragma line 34 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cxxabi_forced.h" 3 ::: 7971
#pragma line 47 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cxxabi_forced.h" ::: 7987
#pragma line 52 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cxxabi_forced.h" ::: 7995
#pragma line 53 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cxxabi_forced.h" ::: 7999
#pragma line 54 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cxxabi_forced.h" ::: 8002
#pragma line 36 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ostream_insert.h" 2 3 ::: 8008
#pragma line 46 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/string" 2 3 ::: 8100
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 1 3 ::: 8104
#pragma line 60 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 3 ::: 8105
#pragma line 101 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 3 ::: 8108
#pragma line 140 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 3 ::: 8134
#pragma line 204 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 3 ::: 8187
#pragma line 268 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 3 ::: 8240
#pragma line 351 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 3 ::: 8293
#pragma line 422 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 3 ::: 8340
#pragma line 508 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 3 ::: 8415
#pragma line 541 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 3 ::: 8430
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/backward/binders.h" 1 3 ::: 8622
#pragma line 60 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/backward/binders.h" 3 ::: 8623
#pragma line 99 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/backward/binders.h" 3 ::: 8626
#pragma line 732 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h" 2 3 ::: 8699
#pragma line 50 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/string" 2 3 ::: 8700
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/range_access.h" 1 3 ::: 8703
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/range_access.h" 3 ::: 8704
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/range_access.h" 3 ::: 8705
#pragma line 53 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/string" 2 3 ::: 8706
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 1 3 ::: 8707
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 8708
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 8709
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/initializer_list" 1 3 ::: 8713
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/initializer_list" 3 ::: 8714
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/initializer_list" 3 ::: 8715
#pragma line 43 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 2 3 ::: 8716
#pragma line 105 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 8720
#pragma line 142 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 8744
#pragma line 167 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 8756
#pragma line 477 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9057
#pragma line 525 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9073
#pragma line 558 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9099
#pragma line 598 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9106
#pragma line 704 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9176
#pragma line 733 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9195
#pragma line 746 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9198
#pragma line 766 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9202
#pragma line 787 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9206
#pragma line 816 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9224
#pragma line 833 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9231
#pragma line 854 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9242
#pragma line 907 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9250
#pragma line 963 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9290
#pragma line 978 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9293
#pragma line 1010 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9317
#pragma line 1032 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9320
#pragma line 1088 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9347
#pragma line 1104 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9353
#pragma line 1116 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9356
#pragma line 1132 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9363
#pragma line 1144 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9367
#pragma line 1172 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9372
#pragma line 1187 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9376
#pragma line 1218 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9381
#pragma line 1240 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9385
#pragma line 1263 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9392
#pragma line 1281 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9395
#pragma line 1304 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9402
#pragma line 1321 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9407
#pragma line 1345 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9417
#pragma line 1361 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9425
#pragma line 1381 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9436
#pragma line 1400 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9439
#pragma line 1422 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9443
#pragma line 1446 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9450
#pragma line 1465 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9454
#pragma line 1488 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9461
#pragma line 1506 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9466
#pragma line 1524 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9470
#pragma line 1545 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9478
#pragma line 1566 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9485
#pragma line 1588 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9493
#pragma line 1663 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9549
#pragma line 1744 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9619
#pragma line 1754 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9622
#pragma line 1764 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9625
#pragma line 1796 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9646
#pragma line 1809 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9649
#pragma line 1823 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9653
#pragma line 1840 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9660
#pragma line 1853 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9663
#pragma line 1868 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9667
#pragma line 1881 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9670
#pragma line 1898 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9677
#pragma line 1911 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9680
#pragma line 1926 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9684
#pragma line 1939 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9687
#pragma line 1958 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9694
#pragma line 1972 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9698
#pragma line 1987 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9702
#pragma line 2000 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9705
#pragma line 2019 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9712
#pragma line 2033 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9716
#pragma line 2048 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9720
#pragma line 2062 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9724
#pragma line 2079 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9731
#pragma line 2092 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9734
#pragma line 2108 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9738
#pragma line 2121 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9742
#pragma line 2138 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9749
#pragma line 2153 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9752
#pragma line 2171 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9757
#pragma line 2201 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9770
#pragma line 2225 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9773
#pragma line 2243 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9777
#pragma line 2266 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9780
#pragma line 2291 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9783
#pragma line 2303 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9788
#pragma line 2424 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9852
#pragma line 2470 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9891
#pragma line 2507 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9921
#pragma line 2544 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9951
#pragma line 2581 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 9981
#pragma line 2618 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 10011
#pragma line 2655 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 10041
#pragma line 2672 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 10047
#pragma line 2690 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 10056
#pragma line 2713 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 10066
#pragma line 2731 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h" 3 ::: 10071
#pragma line 54 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/string" 2 3 ::: 10092
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.tcc" 1 3 ::: 10093
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.tcc" 3 ::: 10094
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.tcc" 3 ::: 10095
#pragma line 241 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.tcc" 3 ::: 10286
#pragma line 578 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.tcc" 3 ::: 10600
#pragma line 55 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/string" 2 3 ::: 11189
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 2 3 ::: 11190
#pragma line 63 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11195
#pragma line 99 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11221
#pragma line 118 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11231
#pragma line 127 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11233
#pragma line 137 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11235
#pragma line 152 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11238
#pragma line 165 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11240
#pragma line 177 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11242
#pragma line 191 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11248
#pragma line 206 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11251
#pragma line 225 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11263
#pragma line 253 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11276
#pragma line 269 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11281
#pragma line 304 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11306
#pragma line 338 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11328
#pragma line 369 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11351
#pragma line 436 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11406
#pragma line 582 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11540
#pragma line 599 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11544
#pragma line 616 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11548
#pragma line 643 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11568
#pragma line 657 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11573
#pragma line 674 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11578
#pragma line 693 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11583
#pragma line 707 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11587
#pragma line 736 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11604
#pragma line 752 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11608
#pragma line 765 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 3 ::: 11611
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.tcc" 1 3 ::: 11670
#pragma line 37 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.tcc" 3 ::: 11671
#pragma line 37 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.tcc" 3 ::: 11672
#pragma line 823 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h" 2 3 ::: 11907
#pragma line 43 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 2 3 ::: 11908
#pragma line 200 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12055
#pragma line 256 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12085
#pragma line 331 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12148
#pragma line 362 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12165
#pragma line 394 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12187
#pragma line 420 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12206
#pragma line 437 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12213
#pragma line 449 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12215
#pragma line 562 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12321
#pragma line 578 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12329
#pragma line 595 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12337
#pragma line 621 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12356
#pragma line 672 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12396
#pragma line 684 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12399
#pragma line 695 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12402
#pragma line 706 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12406
#pragma line 725 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12410
#pragma line 741 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12413
#pragma line 762 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12421
#pragma line 779 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h" 3 ::: 12429
#pragma line 43 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios" 2 3 ::: 12626
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 1 3 ::: 12627
#pragma line 37 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12628
#pragma line 37 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12629
#pragma line 115 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12646
#pragma line 181 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12705
#pragma line 205 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12721
#pragma line 222 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12730
#pragma line 235 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12734
#pragma line 262 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12751
#pragma line 276 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12758
#pragma line 294 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12768
#pragma line 316 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12782
#pragma line 335 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12793
#pragma line 350 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12797
#pragma line 375 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12813
#pragma line 402 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12827
#pragma line 428 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12842
#pragma line 442 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12848
#pragma line 460 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12854
#pragma line 476 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12863
#pragma line 487 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12866
#pragma line 507 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12874
#pragma line 523 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12883
#pragma line 533 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12886
#pragma line 554 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12893
#pragma line 569 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12897
#pragma line 580 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12901
#pragma line 592 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12906
#pragma line 605 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12911
#pragma line 627 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12914
#pragma line 643 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12917
#pragma line 665 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12920
#pragma line 678 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12924
#pragma line 702 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12938
#pragma line 720 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12942
#pragma line 746 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12945
#pragma line 761 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 3 ::: 12953
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/streambuf.tcc" 1 3 ::: 13001
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/streambuf.tcc" 3 ::: 13002
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/streambuf.tcc" 3 ::: 13003
#pragma line 808 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf" 2 3 ::: 13140
#pragma line 44 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios" 2 3 ::: 13141
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 1 3 ::: 13142
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 13143
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 13144
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 1 3 ::: 13148
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13149
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13150
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwctype" 1 3 ::: 13152
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwctype" 3 ::: 13153
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwctype" 3 ::: 13154
#pragma line 51 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwctype" 3 ::: 13155
#pragma line 1 "/usr/include/wctype.h" 1 3 4 ::: 13156
#pragma line 33 "/usr/include/wctype.h" 3 4 ::: 13157
#pragma line 1 "/usr/include/wchar.h" 1 3 4 ::: 13158
#pragma line 34 "/usr/include/wctype.h" 2 3 4 ::: 13159
#pragma line 52 "/usr/include/wctype.h" 3 4 ::: 13160
#pragma line 71 "/usr/include/wctype.h" 3 4 ::: 13162
#pragma line 111 "/usr/include/wctype.h" 3 4 ::: 13195
#pragma line 171 "/usr/include/wctype.h" 3 4 ::: 13248
#pragma line 186 "/usr/include/wctype.h" 3 4 ::: 13254
#pragma line 213 "/usr/include/wctype.h" 3 4 ::: 13270
#pragma line 230 "/usr/include/wctype.h" 3 4 ::: 13280
#pragma line 52 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwctype" 2 3 ::: 13366
#pragma line 81 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwctype" 3 ::: 13367
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 2 3 ::: 13395
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cctype" 1 3 ::: 13396
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cctype" 3 ::: 13397
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cctype" 3 ::: 13398
#pragma line 42 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 2 3 ::: 13399
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/ctype_base.h" 1 3 ::: 13400
#pragma line 37 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/ctype_base.h" 3 ::: 13401
#pragma line 43 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 2 3 ::: 13430
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/streambuf_iterator.h" 1 3 ::: 13437
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/streambuf_iterator.h" 3 ::: 13438
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/streambuf_iterator.h" 3 ::: 13439
#pragma line 50 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/streambuf_iterator.h" 3 ::: 13446
#pragma line 50 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 2 3 ::: 13797
#pragma line 65 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13801
#pragma line 143 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13866
#pragma line 161 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13874
#pragma line 178 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13878
#pragma line 194 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13882
#pragma line 210 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13886
#pragma line 224 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13890
#pragma line 239 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13894
#pragma line 253 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13898
#pragma line 268 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13902
#pragma line 285 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13906
#pragma line 304 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13910
#pragma line 323 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13914
#pragma line 345 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13918
#pragma line 370 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13930
#pragma line 389 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13933
#pragma line 408 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13937
#pragma line 427 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13941
#pragma line 445 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13945
#pragma line 462 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13948
#pragma line 478 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13951
#pragma line 495 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13954
#pragma line 514 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13957
#pragma line 535 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13960
#pragma line 557 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13964
#pragma line 581 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13967
#pragma line 604 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 13972
#pragma line 673 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14032
#pragma line 710 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14059
#pragma line 723 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14062
#pragma line 736 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14066
#pragma line 751 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14069
#pragma line 765 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14072
#pragma line 779 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14075
#pragma line 794 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14078
#pragma line 811 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14082
#pragma line 827 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14086
#pragma line 844 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14090
#pragma line 864 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14094
#pragma line 891 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14103
#pragma line 922 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14116
#pragma line 955 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14127
#pragma line 1004 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14163
#pragma line 1021 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14166
#pragma line 1037 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14169
#pragma line 1054 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14172
#pragma line 1074 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14175
#pragma line 1097 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14179
#pragma line 1123 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14186
#pragma line 1149 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14190
#pragma line 1174 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14203
#pragma line 1207 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14229
#pragma line 1218 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14232
#pragma line 1242 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14243
#pragma line 1261 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14246
#pragma line 1279 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14249
#pragma line 1297 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14252
#pragma line 1314 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14256
#pragma line 1331 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14259
#pragma line 1347 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14262
#pragma line 1364 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14265
#pragma line 1384 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14268
#pragma line 1406 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14271
#pragma line 1429 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14274
#pragma line 1455 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14277
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h" 1 3 ::: 14335
#pragma line 37 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h" 3 ::: 14336
#pragma line 1512 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 2 3 ::: 14377
#pragma line 1640 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14491
#pragma line 1678 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14520
#pragma line 1692 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14525
#pragma line 1706 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14530
#pragma line 1719 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14534
#pragma line 1750 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14538
#pragma line 1763 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14542
#pragma line 1776 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14546
#pragma line 1793 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14555
#pragma line 1805 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14559
#pragma line 1818 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14563
#pragma line 1831 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14567
#pragma line 1844 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14571
#pragma line 1914 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14626
#pragma line 1935 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14640
#pragma line 1961 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14643
#pragma line 1997 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14648
#pragma line 2056 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14679
#pragma line 2098 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14694
#pragma line 2169 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14750
#pragma line 2234 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14808
#pragma line 2252 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14813
#pragma line 2273 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14827
#pragma line 2291 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14830
#pragma line 2333 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14834
#pragma line 2396 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14853
#pragma line 2421 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14862
#pragma line 2469 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14896
#pragma line 2527 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 3 ::: 14946
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.tcc" 1 3 ::: 15028
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.tcc" 3 ::: 15029
#pragma line 35 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.tcc" 3 ::: 15030
#pragma line 137 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.tcc" 3 ::: 15124
#pragma line 731 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.tcc" 3 ::: 15701
#pragma line 967 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.tcc" 3 ::: 15927
#pragma line 1028 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.tcc" 3 ::: 15968
#pragma line 1153 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.tcc" 3 ::: 16085
#pragma line 1190 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.tcc" 3 ::: 16113
#pragma line 2608 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h" 2 3 ::: 16284
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 2 3 ::: 16285
#pragma line 62 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16300
#pragma line 127 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16357
#pragma line 138 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16361
#pragma line 191 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16407
#pragma line 212 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16421
#pragma line 247 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16425
#pragma line 285 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16453
#pragma line 297 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16457
#pragma line 337 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16475
#pragma line 351 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16478
#pragma line 380 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16498
#pragma line 400 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16506
#pragma line 420 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16509
#pragma line 439 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 3 ::: 16513
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.tcc" 1 3 ::: 16548
#pragma line 34 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.tcc" 3 ::: 16549
#pragma line 34 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.tcc" 3 ::: 16550
#pragma line 146 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.tcc" 3 ::: 16650
#pragma line 473 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h" 2 3 ::: 16692
#pragma line 45 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios" 2 3 ::: 16693
#pragma line 40 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 2 3 ::: 16694
#pragma line 55 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16699
#pragma line 82 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16718
#pragma line 108 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16734
#pragma line 165 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16763
#pragma line 250 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16827
#pragma line 283 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16830
#pragma line 311 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16842
#pragma line 324 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16845
#pragma line 335 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16848
#pragma line 346 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16851
#pragma line 358 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16854
#pragma line 377 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16866
#pragma line 396 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16875
#pragma line 406 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16878
#pragma line 427 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16889
#pragma line 448 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16893
#pragma line 490 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16920
#pragma line 540 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16960
#pragma line 585 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 3 ::: 16986
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ostream.tcc" 1 3 ::: 16990
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ostream.tcc" 3 ::: 16991
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ostream.tcc" 3 ::: 16992
#pragma line 588 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream" 2 3 ::: 17361
#pragma line 40 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iostream" 2 3 ::: 17362
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 1 3 ::: 17363
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17364
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17365
#pragma line 55 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17372
#pragma line 91 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17401
#pragma line 120 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17419
#pragma line 167 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17437
#pragma line 239 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17489
#pragma line 249 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17492
#pragma line 281 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17496
#pragma line 295 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17499
#pragma line 322 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17502
#pragma line 333 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17505
#pragma line 356 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17509
#pragma line 366 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17512
#pragma line 395 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17516
#pragma line 406 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17519
#pragma line 430 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17523
#pragma line 447 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17532
#pragma line 465 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17535
#pragma line 484 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17538
#pragma line 501 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17541
#pragma line 517 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17544
#pragma line 535 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17547
#pragma line 550 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17550
#pragma line 565 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17553
#pragma line 581 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17556
#pragma line 636 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17602
#pragma line 672 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17616
#pragma line 685 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17619
#pragma line 702 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17623
#pragma line 744 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17637
#pragma line 772 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17656
#pragma line 833 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17696
#pragma line 856 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 3 ::: 17700
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/istream.tcc" 1 3 ::: 17704
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/istream.tcc" 3 ::: 17705
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/istream.tcc" 3 ::: 17706
#pragma line 514 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/istream.tcc" 3 ::: 18174
#pragma line 859 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream" 2 3 ::: 18753
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iostream" 2 3 ::: 18754
#pragma line 60 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iostream" 3 ::: 18758
#pragma line 15 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" 2 ::: 18777
#pragma line 1 "/usr/include/string.h" 1 3 4 ::: 18792
#pragma line 27 "/usr/include/string.h" 3 4 ::: 18793
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stddef.h" 1 3 4 ::: 18800
#pragma line 33 "/usr/include/string.h" 2 3 4 ::: 18801
#pragma line 42 "/usr/include/string.h" 3 4 ::: 18802
#pragma line 92 "/usr/include/string.h" 3 4 ::: 18828
#pragma line 106 "/usr/include/string.h" 3 4 ::: 18831
#pragma line 117 "/usr/include/string.h" 3 4 ::: 18834
#pragma line 162 "/usr/include/string.h" 3 4 ::: 18871
#pragma line 232 "/usr/include/string.h" 3 4 ::: 18892
#pragma line 259 "/usr/include/string.h" 3 4 ::: 18895
#pragma line 273 "/usr/include/string.h" 3 4 ::: 18898
#pragma line 311 "/usr/include/string.h" 3 4 ::: 18913
#pragma line 338 "/usr/include/string.h" 3 4 ::: 18916
#pragma line 369 "/usr/include/string.h" 3 4 ::: 18937
#pragma line 434 "/usr/include/string.h" 3 4 ::: 18979
#pragma line 485 "/usr/include/string.h" 3 4 ::: 19006
#pragma line 513 "/usr/include/string.h" 3 4 ::: 19009
#pragma line 602 "/usr/include/string.h" 3 4 ::: 19087
#pragma line 642 "/usr/include/string.h" 3 4 ::: 19089
#pragma line 29 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" 2 ::: 19091
#pragma line 1 "/usr/include/stdio.h" 1 3 4 ::: 19092
#pragma line 29 "/usr/include/stdio.h" 3 4 ::: 19093
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stddef.h" 1 3 4 ::: 19099
#pragma line 34 "/usr/include/stdio.h" 2 3 4 ::: 19100
#pragma line 74 "/usr/include/stdio.h" 3 4 ::: 19101
#pragma line 1 "/usr/include/libio.h" 1 3 4 ::: 19102
#pragma line 32 "/usr/include/libio.h" 3 4 ::: 19103
#pragma line 1 "/usr/include/_G_config.h" 1 3 4 ::: 19104
#pragma line 15 "/usr/include/_G_config.h" 3 4 ::: 19105
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/stddef.h" 1 3 4 ::: 19106
#pragma line 16 "/usr/include/_G_config.h" 2 3 4 ::: 19107
#pragma line 1 "/usr/include/wchar.h" 1 3 4 ::: 19112
#pragma line 21 "/usr/include/_G_config.h" 2 3 4 ::: 19113
#pragma line 33 "/usr/include/libio.h" 2 3 4 ::: 19124
#pragma line 145 "/usr/include/libio.h" 3 4 ::: 19125
#pragma line 155 "/usr/include/libio.h" 3 4 ::: 19127
#pragma line 178 "/usr/include/libio.h" 3 4 ::: 19141
#pragma line 246 "/usr/include/libio.h" 3 4 ::: 19152
#pragma line 294 "/usr/include/libio.h" 3 4 ::: 19193
#pragma line 303 "/usr/include/libio.h" 3 4 ::: 19195
#pragma line 339 "/usr/include/libio.h" 3 4 ::: 19217
#pragma line 435 "/usr/include/libio.h" 3 4 ::: 19273
#pragma line 465 "/usr/include/libio.h" 3 4 ::: 19288
#pragma line 527 "/usr/include/libio.h" 3 4 ::: 19300
#pragma line 75 "/usr/include/stdio.h" 2 3 4 ::: 19302
#pragma line 110 "/usr/include/stdio.h" 3 4 ::: 19308
#pragma line 164 "/usr/include/stdio.h" 3 4 ::: 19316
#pragma line 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ::: 19317
#pragma line 165 "/usr/include/stdio.h" 2 3 4 ::: 19318
#pragma line 195 "/usr/include/stdio.h" 3 4 ::: 19341
#pragma line 205 "/usr/include/stdio.h" 3 4 ::: 19343
#pragma line 227 "/usr/include/stdio.h" 3 4 ::: 19355
#pragma line 237 "/usr/include/stdio.h" 3 4 ::: 19358
#pragma line 252 "/usr/include/stdio.h" 3 4 ::: 19365
#pragma line 262 "/usr/include/stdio.h" 3 4 ::: 19367
#pragma line 272 "/usr/include/stdio.h" 3 4 ::: 19369
#pragma line 297 "/usr/include/stdio.h" 3 4 ::: 19379
#pragma line 356 "/usr/include/stdio.h" 3 4 ::: 19431
#pragma line 425 "/usr/include/stdio.h" 3 4 ::: 19493
#pragma line 471 "/usr/include/stdio.h" 3 4 ::: 19504
#pragma line 531 "/usr/include/stdio.h" 3 4 ::: 19520
#pragma line 550 "/usr/include/stdio.h" 3 4 ::: 19529
#pragma line 561 "/usr/include/stdio.h" 3 4 ::: 19532
#pragma line 573 "/usr/include/stdio.h" 3 4 ::: 19534
#pragma line 594 "/usr/include/stdio.h" 3 4 ::: 19543
#pragma line 622 "/usr/include/stdio.h" 3 4 ::: 19564
#pragma line 638 "/usr/include/stdio.h" 3 4 ::: 19567
#pragma line 649 "/usr/include/stdio.h" 3 4 ::: 19569
#pragma line 665 "/usr/include/stdio.h" 3 4 ::: 19572
#pragma line 689 "/usr/include/stdio.h" 3 4 ::: 19589
#pragma line 726 "/usr/include/stdio.h" 3 4 ::: 19618
#pragma line 737 "/usr/include/stdio.h" 3 4 ::: 19621
#pragma line 749 "/usr/include/stdio.h" 3 4 ::: 19626
#pragma line 773 "/usr/include/stdio.h" 3 4 ::: 19638
#pragma line 798 "/usr/include/stdio.h" 3 4 ::: 19645
#pragma line 818 "/usr/include/stdio.h" 3 4 ::: 19652
#pragma line 846 "/usr/include/stdio.h" 3 4 ::: 19673
#pragma line 1 "/usr/include/bits/sys_errlist.h" 1 3 4 ::: 19682
#pragma line 26 "/usr/include/bits/sys_errlist.h" 3 4 ::: 19683
#pragma line 854 "/usr/include/stdio.h" 2 3 4 ::: 19690
#pragma line 873 "/usr/include/stdio.h" 3 4 ::: 19701
#pragma line 943 "/usr/include/stdio.h" 3 4 ::: 19750
#pragma line 30 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" 2 ::: 19752
#pragma line 1 "/usr/include/math.h" 1 3 4 ::: 19754
#pragma line 29 "/usr/include/math.h" 3 4 ::: 19755
#pragma line 1 "/usr/include/bits/huge_val.h" 1 3 4 ::: 19761
#pragma line 34 "/usr/include/math.h" 2 3 4 ::: 19762
#pragma line 1 "/usr/include/bits/huge_valf.h" 1 3 4 ::: 19764
#pragma line 36 "/usr/include/math.h" 2 3 4 ::: 19765
#pragma line 1 "/usr/include/bits/huge_vall.h" 1 3 4 ::: 19766
#pragma line 37 "/usr/include/math.h" 2 3 4 ::: 19767
#pragma line 1 "/usr/include/bits/inf.h" 1 3 4 ::: 19770
#pragma line 40 "/usr/include/math.h" 2 3 4 ::: 19771
#pragma line 1 "/usr/include/bits/nan.h" 1 3 4 ::: 19774
#pragma line 43 "/usr/include/math.h" 2 3 4 ::: 19775
#pragma line 1 "/usr/include/bits/mathdef.h" 1 3 4 ::: 19779
#pragma line 28 "/usr/include/bits/mathdef.h" 3 4 ::: 19780
#pragma line 47 "/usr/include/math.h" 2 3 4 ::: 19783
#pragma line 70 "/usr/include/math.h" 3 4 ::: 19784
#pragma line 1 "/usr/include/bits/mathcalls.h" 1 3 4 ::: 19785
#pragma line 54 "/usr/include/bits/mathcalls.h" 3 4 ::: 19786
#pragma line 154 "/usr/include/bits/mathcalls.h" 3 4 ::: 19879
#pragma line 179 "/usr/include/bits/mathcalls.h" 3 4 ::: 19897
#pragma line 364 "/usr/include/bits/mathcalls.h" 3 4 ::: 20075
#pragma line 71 "/usr/include/math.h" 2 3 4 ::: 20077
#pragma line 89 "/usr/include/math.h" 3 4 ::: 20078
#pragma line 1 "/usr/include/bits/mathcalls.h" 1 3 4 ::: 20079
#pragma line 54 "/usr/include/bits/mathcalls.h" 3 4 ::: 20080
#pragma line 154 "/usr/include/bits/mathcalls.h" 3 4 ::: 20173
#pragma line 179 "/usr/include/bits/mathcalls.h" 3 4 ::: 20191
#pragma line 364 "/usr/include/bits/mathcalls.h" 3 4 ::: 20369
#pragma line 90 "/usr/include/math.h" 2 3 4 ::: 20371
#pragma line 133 "/usr/include/math.h" 3 4 ::: 20372
#pragma line 1 "/usr/include/bits/mathcalls.h" 1 3 4 ::: 20373
#pragma line 54 "/usr/include/bits/mathcalls.h" 3 4 ::: 20374
#pragma line 154 "/usr/include/bits/mathcalls.h" 3 4 ::: 20467
#pragma line 179 "/usr/include/bits/mathcalls.h" 3 4 ::: 20485
#pragma line 364 "/usr/include/bits/mathcalls.h" 3 4 ::: 20663
#pragma line 134 "/usr/include/math.h" 2 3 4 ::: 20665
#pragma line 149 "/usr/include/math.h" 3 4 ::: 20666
#pragma line 190 "/usr/include/math.h" 3 4 ::: 20668
#pragma line 288 "/usr/include/math.h" 3 4 ::: 20687
#pragma line 311 "/usr/include/math.h" 3 4 ::: 20701
#pragma line 475 "/usr/include/math.h" 3 4 ::: 20716
#pragma line 31 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" 2 ::: 20718
#pragma line 31 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" ::: 20720
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/etc/autopilot_enum.h" 1 ::: 20722
#pragma line 58 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/etc/autopilot_enum.h" ::: 20723
#pragma line 32 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" 2 ::: 20796
#pragma line 50 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" ::: 20797
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" 1 ::: 20798
#pragma line 57 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 20799
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" 1 ::: 20805
#pragma line 73 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 20806
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/limits.h" 1 3 ::: 20807
#pragma line 38 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/limits.h" 3 ::: 20808
#pragma line 1 "/usr/include/limits.h" 1 3 4 ::: 20809
#pragma line 144 "/usr/include/limits.h" 3 4 ::: 20810
#pragma line 1 "/usr/include/bits/posix1_lim.h" 1 3 4 ::: 20811
#pragma line 160 "/usr/include/bits/posix1_lim.h" 3 4 ::: 20812
#pragma line 1 "/usr/include/bits/local_lim.h" 1 3 4 ::: 20813
#pragma line 38 "/usr/include/bits/local_lim.h" 3 4 ::: 20814
#pragma line 1 "/usr/include/linux/limits.h" 1 3 4 ::: 20815
#pragma line 39 "/usr/include/bits/local_lim.h" 2 3 4 ::: 20816
#pragma line 161 "/usr/include/bits/posix1_lim.h" 2 3 4 ::: 20817
#pragma line 145 "/usr/include/limits.h" 2 3 4 ::: 20818
#pragma line 1 "/usr/include/bits/posix2_lim.h" 1 3 4 ::: 20822
#pragma line 149 "/usr/include/limits.h" 2 3 4 ::: 20823
#pragma line 1 "/usr/include/bits/xopen_lim.h" 1 3 4 ::: 20827
#pragma line 33 "/usr/include/bits/xopen_lim.h" 3 4 ::: 20828
#pragma line 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ::: 20829
#pragma line 34 "/usr/include/bits/xopen_lim.h" 2 3 4 ::: 20830
#pragma line 153 "/usr/include/limits.h" 2 3 4 ::: 20831
#pragma line 39 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/clang/bin/../lib/clang/3.1/include/limits.h" 2 3 ::: 20832
#pragma line 74 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" 2 ::: 20833
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/hls_half.h" 1 ::: 20834
#pragma line 32 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/hls_half.h" ::: 20835
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cmath" 1 3 ::: 20836
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cmath" 3 ::: 20837
#pragma line 41 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cmath" 3 ::: 20838
#pragma line 76 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cmath" 3 ::: 20839
#pragma line 480 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cmath" 3 ::: 21226
#pragma line 730 "/opt/Xilinx/Vivado/2017.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cmath" 3 ::: 21229
#pragma line 33 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/hls_half.h" 2 ::: 21343
#pragma line 3274 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/hls_half.h" ::: 21366
#pragma line 75 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" 2 ::: 21438
#pragma line 111 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 21439
#pragma line 147 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 21442
#pragma line 158 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 21444
#pragma line 184 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 21446
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/etc/autopilot_dt.def" 1 ::: 21447
#pragma line 185 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" 2 ::: 22486
#pragma line 603 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 22487
#pragma line 646 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 22489
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/etc/autopilot_ssdm_bits.h" 1 ::: 22490
#pragma line 647 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" 2 ::: 22491
#pragma line 882 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 22718
#pragma line 924 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 22747
#pragma line 1622 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 23438
#pragma line 1741 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 23545
#pragma line 1878 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 23671
#pragma line 2099 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 23877
#pragma line 2162 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 23932
#pragma line 2383 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 24142
#pragma line 2564 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 24316
#pragma line 2683 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 24424
#pragma line 2820 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 24550
#pragma line 3046 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 24760
#pragma line 3109 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 24815
#pragma line 3330 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25025
#pragma line 3354 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25040
#pragma line 3423 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25078
#pragma line 3458 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25091
#pragma line 3483 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25094
#pragma line 3517 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25098
#pragma line 3553 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25116
#pragma line 3589 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25134
#pragma line 3629 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25152
#pragma line 3683 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25170
#pragma line 3739 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25199
#pragma line 3793 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25228
#pragma line 3853 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25269
#pragma line 3878 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25287
#pragma line 3903 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25305
#pragma line 3948 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25316
#pragma line 4103 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25327
#pragma line 4129 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_int_syn.h" ::: 25345
#pragma line 62 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" 2 ::: 25356
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" 1 ::: 25357
#pragma line 87 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" ::: 25358
#pragma line 1330 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" ::: 26540
#pragma line 1406 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" ::: 26603
#pragma line 1424 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" ::: 26609
#pragma line 1959 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" ::: 27128
#pragma line 2232 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" ::: 27392
#pragma line 2350 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" ::: 27437
#pragma line 2400 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" ::: 27455
#pragma line 2485 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" ::: 27510
#pragma line 2525 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_fixed_syn.h" ::: 27528
#pragma line 63 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" 2 ::: 27535
#pragma line 224 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 27685
#pragma line 249 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 27703
#pragma line 364 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 27806
#pragma line 389 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 27824
#pragma line 490 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 27914
#pragma line 515 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 27932
#pragma line 627 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 28032
#pragma line 652 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 28050
#pragma line 752 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 28138
#pragma line 777 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 28156
#pragma line 846 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 28213
#pragma line 869 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 28229
#pragma line 975 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 28323
#pragma line 1000 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_dt.h" ::: 28341
#pragma line 51 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" 2 ::: 28430
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_core.h" 1 ::: 28431
#pragma line 60 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_core.h" ::: 28432
#pragma line 98 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_core.h" ::: 28441
#pragma line 125 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_core.h" ::: 28459
#pragma line 211 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_core.h" ::: 28538
#pragma line 799 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_core.h" ::: 29039
#pragma line 833 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_core.h" ::: 29059
#pragma line 52 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" 2 ::: 29093
#pragma line 1 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_extras.h" 1 ::: 29095
#pragma line 60 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_extras.h" ::: 29096
#pragma line 164 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_extras.h" ::: 29193
#pragma line 186 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_sc_extras.h" ::: 29207
#pragma line 54 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" 2 ::: 29261
#pragma line 191 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" ::: 29262
#pragma line 293 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/ap_systemc.h" ::: 29266
#pragma line 2 "/opt/Xilinx/Vivado/2017.3/common/technology/autopilot/ap_sysc/systemc.h" 2 ::: 29269
#pragma line 5 "./ula.h" 2 ::: 29270
#pragma line 2 "ula.cpp" 2 ::: 29287
| [
"jpalexandroni@hotmail.com"
] | jpalexandroni@hotmail.com |
9505de1d413cf3080801bba32c71d34834765bb6 | f3a9174535cd7e76d1c1e0f0fa1a3929751fb48d | /SDK/PVR_SCombatShotgun_AnimBlueprint_classes.hpp | b7cafbc30ca5f6f7ba59c3251789a143159b8524 | [] | no_license | hinnie123/PavlovVRSDK | 9fcdf97e7ed2ad6c5cb485af16652a4c83266a2b | 503f8d9a6770046cc23f935f2df1f1dede4022a8 | refs/heads/master | 2020-03-31T05:30:40.125042 | 2020-01-28T20:16:11 | 2020-01-28T20:16:11 | 151,949,019 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,877 | hpp | #pragma once
// PavlovVR (Dumped by Hinnie) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// AnimBlueprintGeneratedClass SCombatShotgun_AnimBlueprint.SCombatShotgun_AnimBlueprint_C
// 0x0710 (0x0B50 - 0x0440)
class USCombatShotgun_AnimBlueprint_C : public UVRGunAnimInstance
{
public:
struct FPointerToUberGraphFrame UberGraphFrame; // 0x0440(0x0008) (ZeroConstructor, Transient, DuplicateTransient)
struct FAnimNode_Root AnimGraphNode_Root_1B30AB1C48751080502F81A4B20CF911; // 0x0448(0x0040)
struct FAnimNode_ConvertLocalToComponentSpace AnimGraphNode_LocalToComponentSpace_DDC51B534BDC3EF5FF0E91BFBA86333A;// 0x0488(0x0040)
struct FAnimNode_ModifyBone AnimGraphNode_ModifyBone_5E6103A84D7873C1620A73A4F77D6C89;// 0x04C8(0x0138)
struct FAnimNode_ConvertComponentToLocalSpace AnimGraphNode_ComponentToLocalSpace_83A7FD31446474E414421FA159913E4F;// 0x0600(0x0040)
struct FAnimNode_ModifyBone AnimGraphNode_ModifyBone_51060FDC45F89CC2059D84B310BE0204;// 0x0640(0x0138)
struct FAnimNode_RefPose AnimGraphNode_LocalRefPose_4359D1B345D98555C409CD88158E1DED;// 0x0778(0x0038)
struct FAnimNode_ModifyBone AnimGraphNode_ModifyBone_524E8AF24326AD9BF52245BC5C57BF2C;// 0x07B0(0x0138)
struct FAnimNode_SequenceEvaluator AnimGraphNode_SequenceEvaluator_686A1E204F7BBD5BA63CAE8EF89E8716;// 0x08E8(0x0070)
struct FAnimNode_BlendListByBool AnimGraphNode_BlendListByBool_4228B7AC42D8A3305838FFBDC3FC980B;// 0x0958(0x00D0)
struct FAnimNode_ApplyAdditive AnimGraphNode_ApplyAdditive_B2DD6EF84524DE648A69B69B44DBE0FE;// 0x0A28(0x00F0)
struct FAnimNode_RefPose AnimGraphNode_LocalRefPose_75F40A0548201E2D79259894459E4B78;// 0x0B18(0x0038)
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("AnimBlueprintGeneratedClass SCombatShotgun_AnimBlueprint.SCombatShotgun_AnimBlueprint_C");
return ptr;
}
void EvaluateGraphExposedInputs_ExecuteUbergraph_SCombatShotgun_AnimBlueprint_AnimGraphNode_ModifyBone_51060FDC45F89CC2059D84B310BE0204();
void EvaluateGraphExposedInputs_ExecuteUbergraph_SCombatShotgun_AnimBlueprint_AnimGraphNode_ModifyBone_5E6103A84D7873C1620A73A4F77D6C89();
void EvaluateGraphExposedInputs_ExecuteUbergraph_SCombatShotgun_AnimBlueprint_AnimGraphNode_ModifyBone_524E8AF24326AD9BF52245BC5C57BF2C();
void ExecuteUbergraph_SCombatShotgun_AnimBlueprint(int EntryPoint);
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"hsibma02@gmail.com"
] | hsibma02@gmail.com |
e1ba6cfe5043add26a3b20c945ca463d753c3d66 | 1f0d9fb09aec9d0a0d41dee5bf895c323bbc6caa | /algorithm/leetcode/populating-next-right-pointers-in-each-node-ii.cc | d2fa1243a6bf215ed6e52f18e09fcdb7017f87d5 | [] | no_license | LiangH011/KM | f0dee02c6bb890587e0d84a1e6ad907ac8d83337 | 5878830ad978b56e5559c6b59872464a400514c5 | refs/heads/master | 2020-05-20T20:53:18.568213 | 2014-09-26T01:47:02 | 2014-09-26T01:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,457 | cc | // URL: http://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/
#include <iostream>
using namespace std;
struct TreeLinkNode {
int val;
TreeLinkNode *left, *right, *next;
TreeLinkNode(int x) : val(x), left(NULL), right(NULL), next(NULL) {}
};
// You can also used BFS, but there is a "queue".
class RecursiveSolution {
public:
void connect(TreeLinkNode* root) {
if (!root)
return;
TreeLinkNode* t = NULL;
if (root->left && root->right) {
root->left->next = root->right;
t = root->right;
} else if (root->left) {
t = root->left;
} else if (root->right) {
t = root->right;
}
TreeLinkNode* temp = root->next;
if (t) {
TreeLinkNode* next = NULL;
while (temp) {
if (temp->left) {
next = temp->left;
break;
} else if (temp->right) {
next = temp->right;
break;
}
temp = temp->next;
}
t->next = next;
}
// Note the sequence, right -> left, due to case like:
// 1
// 2 3
// 4 5 6 7
// 8 15
connect(root->right);
connect(root->left);
}
};
class Solution {
public:
void connect(TreeLinkNode* root) {
while (root) {
TreeLinkNode* prev = NULL;
TreeLinkNode* next = NULL;
while (root) {
if (!next)
next = root->left ? root->left : root->right;
if (root->left) {
if (prev) {
prev->next = root->left;
prev = prev->next;
} else {
prev = root->left;
}
}
if (root->right) {
if (prev) {
prev->next = root->right;
prev = prev->next;
} else {
prev = root->right;
}
}
root = root->next;
}
root = next;
}
}
};
int main() {
TreeLinkNode root(1);
TreeLinkNode l(2);
TreeLinkNode r(3);
TreeLinkNode ll(4);
TreeLinkNode lr(5);
TreeLinkNode rl(6);
TreeLinkNode rr(7);
TreeLinkNode lll(8);
TreeLinkNode rrr(15);
root.left = &l;
root.right = &r;
l.left = ≪
l.right = &lr;
r.left = &rl;
r.right = &rr;
ll.left = &lll;
rr.left = &rrr;
Solution s;
s.connect(&root);
TreeLinkNode* p = &l;
while (p) {
cout << p->val << " ";
p = p->next;
}
cout << endl;
p = &lll;
while (p) {
cout << p->val << " ";
p = p->next;
}
return 0;
}
| [
"zhchbin@gmail.com"
] | zhchbin@gmail.com |
f75344b69dd4b20c7026705b87daf9398a95374c | 7e4fb531f92fd2c9483ab67c42c93612a9b9f9b5 | /epoll/thread_finish/include/lock_lazy_singleton.h | 7fdab086b9bae40d14fe0ecbea198a606009ec25 | [] | no_license | MATACE/study_cpp | 5f6759bf5aa3310df444d684df1e467a8301dda7 | b85be05574d8f72a20496654f70b9ddd2a6d72c8 | refs/heads/master | 2020-12-13T14:32:33.882001 | 2020-09-18T09:04:44 | 2020-09-18T09:04:44 | 234,444,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 798 | h | #ifndef LOCK_LAZY_SINGLETON_H
#define LOCK_LAZY_SINGLETON_H
#include <iostream>
#include <mutex>
using namespace std;
class LockLazySingleton
{
public:
// Static Get myself instace point api.
static LockLazySingleton* GetInstance();
// The singleton variable.
string host_;
int port_;
bool heartbeat_;
private:
// Private constructor and destructor.
LockLazySingleton();
virtual ~LockLazySingleton();
// Private copy constructor and assignment operator.
LockLazySingleton(const LockLazySingleton&);
LockLazySingleton& operator=(const LockLazySingleton&);
// Static myself instance point.
static LockLazySingleton *m_instanceSingleton;
// Static lock to protect the object.
static std::mutex mtx;
};
#endif // LAZY_SINGLETON_H | [
"huangxinquan@flexem.cn"
] | huangxinquan@flexem.cn |
497c3c04ea89021b42184ab9e0144bfd59db8fb7 | d616b804e43ad90e689d404e519d530ea29d863d | /Project/Project2/Project2_Vers2/FILETMP.h | d6069dfb78a5dbec2ae1ff8f4aa9c44f98d0908c | [] | no_license | HallerJohn/HallerJohn_CSC17_Fall2018 | f45e23391a66f00213786962dbd5629759edd6d3 | a45607a0f4c6addec2d402a2cee9b6b912ecb444 | refs/heads/master | 2020-03-27T14:12:41.761079 | 2019-03-19T09:08:37 | 2019-03-19T09:08:37 | 146,650,142 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | h | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: FILETMP.h
* Author: John Haller
*
* Created on December 7, 2018, 9:39 PM
*/
#include <iomanip>
#include <fstream>
using namespace std;
#ifndef FILETMP_H
#define FILETMP_H
template <class T>
T fileOut(T n){
ofstream out;
out.open("Moves.txt",ios::app);
out<<n;
out.close();
}
#endif /* FILETMP_H */
| [
"4jfhaller@gmail.com"
] | 4jfhaller@gmail.com |
59a5c077ed5c988c5bfca8d1cc8cdd64f5bdb152 | 69a6fda6ff3f9dc000c0662c293a11d08a93280c | /05MyDraw/MainFrm.cpp | 377112f956dea658662b5f6f4ebef78971eff6e7 | [] | no_license | luowei/vc-textbook-samples | 13bec08d39cba1d33fdd56881de952c9cc9ac3fb | 8632deec3241e6162f6594720c3d2ec84ed1b41c | refs/heads/master | 2021-01-10T20:00:07.618904 | 2013-11-27T09:42:24 | 2013-11-27T09:42:24 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,696 | cpp | // MainFrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "MyDraw.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
ON_WM_CREATE()
ON_WM_CONTEXTMENU()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR, // status line indicator
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
/////////////////////////////////////////////////////////////////////////////
// CMainFrame construction/destruction
CMainFrame::CMainFrame()
{
// TODO: add member initialization code here
}
CMainFrame::~CMainFrame()
{
}
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("Failed to create status bar\n");
return -1; // fail to create
}
// TODO: Delete these three lines if you don't want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMainFrame diagnostics
#ifdef _DEBUG
void CMainFrame::AssertValid() const
{
CFrameWnd::AssertValid();
}
void CMainFrame::Dump(CDumpContext& dc) const
{
CFrameWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainFrame message handlers
void CMainFrame::OnContextMenu(CWnd* pWnd, CPoint point)
{
//用于显示快捷菜单的消息处理程序
CMenu menu;
if(menu.LoadMenu(IDR_POPUP_MENU))//加载快捷菜单资源
{
CMenu* pPopup=menu.GetSubMenu(0);
pPopup->TrackPopupMenu(TPM_LEFTALIGN|
TPM_RIGHTBUTTON,point.x,point.y,this);
//TPM_LEFTALIGN快捷菜单的左边位于point.x
//TPM_LEFTBUTTON快捷菜单跟踪鼠标右键
}
}
| [
"luowei505050@126.com"
] | luowei505050@126.com |
0e46e99ecf5d80a6ab75596956b80fcf7422c8cb | efbbeb045250b329636ee7512f605416633c6f26 | /src/config.cc | 1390c40640e1c95e26eb4c97f9abbf18b67655f6 | [] | no_license | ahf/visus | 6c10d49fd9eb3a2f13660be6647d076a2a96054c | c3e6a04c612736d8f2a86c482f6e47bcd7c72497 | refs/heads/master | 2021-01-19T17:48:14.267499 | 2013-05-26T21:10:51 | 2013-05-26T21:10:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,491 | cc | /* vim: set sw=4 sts=4 et foldmethod=syntax : */
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include "config.hh"
namespace pt = boost::property_tree;
using namespace visus;
std::tr1::shared_ptr<Config> Config::from_file(const std::string & filename)
{
pt::ptree tree;
pt::json_parser::read_json(filename, tree);
std::tr1::shared_ptr<Config> r(new Config);
// Detector.
r->set_detector_hessian_threshold(tree.get<double>("detector.hessian_threshold", 400.0));
r->set_detector_octaves(tree.get<int>("detector.octaves", 3));
r->set_detector_octave_layers(tree.get<int>("detector.octave_layers", 4));
// Cache.
r->set_cache_directory(tree.get<std::string>("cache.directory", "cache/"));
return r;
}
double Config::detector_hessian_threshold() const
{
return _detector_hessian_threshold;
}
void Config::set_detector_hessian_threshold(double value)
{
_detector_hessian_threshold = value;
}
int Config::detector_octaves() const
{
return _detector_octaves;
}
void Config::set_detector_octaves(int value)
{
_detector_octaves = value;
}
int Config::detector_octave_layers() const
{
return _detector_octave_layers;
}
void Config::set_detector_octave_layers(int value)
{
_detector_octave_layers = value;
}
std::string Config::cache_directory() const
{
return _cache_directory;
}
void Config::set_cache_directory(const std::string & value)
{
_cache_directory = value;
}
| [
"ahf@0x90.dk"
] | ahf@0x90.dk |
10d5a2c9d553f6d29d42c7f536545086e6da38eb | cb4b5a26e7dcfe18bf4fb2dea3e4a5aee9dbcd4c | /project_2/closest_pair.cc | d2170483537e029766e1b262f80b9055180e689d | [] | no_license | huinsysu/algorithm_homework | 80d2218249358576814c29661bfdc19ff70fd80d | c6e8629e78d50c54c5fdbdf356e30486f2de7c5e | refs/heads/master | 2021-06-10T10:54:05.734477 | 2016-12-05T16:15:26 | 2016-12-05T16:15:26 | 72,656,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,301 | cc | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <string>
using namespace std;
#define PI 3.1415926535
typedef struct closest_pair{
int obj1, obj2;
double distance;
}CP;
typedef struct projection_vector {
int index;
double value;
}PV;
int object_num;
int dimension;
int projection_num = 100;
int **object_list;
PV** random_projections;
void get_random_projection() {
srand(time(NULL));
double** vector_list = new double*[projection_num];
for (int i = 0; i < projection_num; i++) {
vector_list[i] = new double[dimension];
for (int j = 0 ; j < dimension; j++) {
double random1 = (rand() * 1.0) / (RAND_MAX * 1.0);
double random2 = (rand() * 1.0) / (RAND_MAX * 1.0);
if (j % 2 == 0) {
vector_list[i][j] = sqrt((-2) * log(random1)) * cos(2 * PI * random2);
} else {
vector_list[i][j] = sqrt((-2) * log(random1)) * sin(2 * PI * random2);
}
}
}
for (int i = 0; i < object_num; i++) {
for (int j = 0; j < projection_num; j++) {
PV projectionItem;
projectionItem.index = i;
double value = 0;
for (int k = 0; k < dimension; k++) {
value += double(object_list[i][k]) * vector_list[j][k];
}
projectionItem.value = value;
random_projections[j][i] = projectionItem;
}
}
for (int i = 0; i < projection_num; i++) delete [] vector_list[i];
delete [] vector_list;
}
void swap_projection(PV* projection, int first, int second) {
PV temp = projection[first];
projection[first] = projection[second];
projection[second] = temp;
}
int get_median_index(PV* projection, int low, int high, int excepted_num) {
int last_small = low;
int swap_index = rand() % (high - low + 1) + low;
PV pivot = projection[swap_index];
swap_projection(projection, low, swap_index);
for (int i = low + 1; i <= high; i++) {
if (projection[i].value < pivot.value) {
last_small++;
swap_projection(projection, last_small, i);
}
}
swap_projection(projection, low, last_small);
int return_index;
if (last_small - low == excepted_num - 1) {
return_index = last_small;
} else if (last_small - low >= excepted_num) {
return_index = get_median_index(projection, low, last_small - 1, excepted_num);
} else {
return_index = get_median_index(projection, last_small + 1, high, excepted_num - 1 - (last_small - low));
}
return return_index;
}
CP get_closest_pair_median(PV* projection, int low, int high) {
CP cur_result;
if (low == high) {
cur_result.distance = 1000000;
} else if (high == low + 1) {
if (projection[low].value > projection[high].value) {
swap_projection(projection, low, high);
}
cur_result.obj1 = projection[low].index;
cur_result.obj2 = projection[high].index;
cur_result.distance = projection[high].value - projection[low].value;
} else {
CP low_result, middle_result, high_result;
int median_index = get_median_index(projection, low, high, (high - low) / 2 + 1);
low_result = get_closest_pair_median(projection, low, median_index);
high_result = get_closest_pair_median(projection, median_index + 1, high);
middle_result.obj1 = projection[median_index].index;
middle_result.obj2 = projection[median_index + 1].index;
middle_result.distance = projection[median_index + 1].value - projection[median_index].value;
cur_result.distance = 1000000;
if (low_result.distance < cur_result.distance) {
cur_result = low_result;
}
if (middle_result.distance < cur_result.distance) {
cur_result = middle_result;
}
if (high_result.distance < cur_result.distance) {
cur_result = high_result;
}
}
return cur_result;
}
CP get_closest_pair_pivot(PV* projection, int low, int high) {
CP cur_result;
if (low == high) {
cur_result.distance = 1000000;
} else if (high == low + 1) {
if (projection[low].value > projection[high].value) {
swap_projection(projection, low, high);
}
cur_result.obj1 = projection[low].index;
cur_result.obj2 = projection[high].index;
cur_result.distance = projection[high].value - projection[low].value;
} else {
int last_small = low;
int swap_index = rand() % (high - low + 1) + low;
PV pivot = projection[swap_index];
swap_projection(projection, low, swap_index);
for (int i = low + 1; i <= high; i++) {
if (projection[i].value < pivot.value) {
last_small++;
swap_projection(projection, last_small, i);
}
}
swap_projection(projection, low, last_small);
CP low_result, middle_result, high_result;
if (last_small == high) {
low_result = get_closest_pair_pivot(projection, low, last_small - 1);
high_result = get_closest_pair_pivot(projection, last_small, high);
middle_result.obj1 = projection[last_small - 1].index;
middle_result.obj2= projection[last_small].index;
middle_result.distance = projection[last_small].value - projection[last_small - 1].value;
} else {
low_result = get_closest_pair_pivot(projection, low, last_small);
high_result = get_closest_pair_pivot(projection, last_small + 1, high);
middle_result.obj1 = projection[last_small].index;
middle_result.obj2= projection[last_small + 1].index;
middle_result.distance = projection[last_small + 1].value - projection[last_small].value;
}
cur_result.distance = 1000000;
if (low_result.distance < cur_result.distance) {
cur_result = low_result;
}
if (middle_result.distance < cur_result.distance) {
cur_result = middle_result;
}
if (high_result.distance < cur_result.distance) {
cur_result = high_result;
}
}
return cur_result;
}
CP get_line_closest_pair(PV* projection) {
CP result;
result = get_closest_pair_pivot(projection, 0, object_num - 1);
//result = get_closest_pair_median(projection, 0, object_num - 1);
return result;
}
double calculate_distance(CP closest_pair) {
double dist = 0;
int* obj1 = object_list[closest_pair.obj1];
int* obj2 = object_list[closest_pair.obj2];
for (int i = 0; i < dimension; i++) {
dist += pow(obj1[i] - obj2[i], 2);
}
return sqrt(dist);
}
CP get_closest_pair() {
random_projections = new PV*[projection_num];
for (int i = 0; i < projection_num; i++) {
random_projections[i] = new PV[object_num];
}
get_random_projection();
double min = 1000000.0;
CP result;
for (int i = 0; i < projection_num; i++) {
CP temp;
double temp_dist;
temp = get_line_closest_pair(random_projections[i]);
temp_dist = calculate_distance(temp);
if (temp_dist < min) {
min = temp_dist;
result = temp;
result.distance = temp_dist;
}
}
for (int i = 0; i < projection_num; i++) {
delete [] random_projections[i];
}
delete [] random_projections;
return result;
}
void read_from_file(char* filename) {
FILE *file = fopen(filename, "rb");
if (file == NULL) {
cout << "The file is empty!" << endl;
abort();
}
int magic, numImages, rows, cols;
fread(&magic, sizeof(int), 1, file);
fread(&numImages, sizeof(int), 1, file);
fread(&rows, sizeof(int), 1, file);
fread(&cols, sizeof(int), 1, file);
for (int i = 0 ; i < object_num; i++) {
for (int j = 0 ; j < dimension; j++) {
unsigned char temp;
fread(&temp, sizeof(unsigned char), 1, file);
object_list[i][j] = int(temp);
}
}
fclose(file);
}
int main(int argc, char* argv[]) {
object_num = atoi(argv[2]);
dimension = atoi(argv[4]);
char* filename = argv[6];
clock_t start, finish;
object_list = new int*[object_num];
for (int i = 0; i < object_num; i++) {
object_list[i] = new int [dimension];
}
read_from_file(filename);
start = clock();
CP result = get_closest_pair();
finish = clock();
cout << "使用算法1找最近对需要的时间为:" << double(finish - start) << endl;
cout << result.obj1 << " " << result.obj2 << endl;
for (int i = 0; i < dimension; i++) {
if (i != 0 && i % 28 == 0) cout << endl;
if (object_list[result.obj1][i] > 0) cout << " ";
else cout << "*";
}
cout << endl << endl;
for (int i = 0; i < dimension; i++) {
if (i != 0 && i % 28 == 0) cout << endl;
if (object_list[result.obj2][i] > 0) cout << " ";
else cout << "*";
}
cout << endl;
for (int i = 0; i < object_num; i++) {
delete [] object_list[i];
}
delete [] object_list;
return 0;
}
| [
"18819253799@163.com"
] | 18819253799@163.com |
db9a7b64ee1eaca749c3dab674723b96027ee761 | 06358695e09d88e3f745e69086557aa34af00cc5 | /Embedded_System/arduino/SPI_test_2/SPI_test_2.ino | 8349680099c14e9d3c726376b00610c758eb8af9 | [] | no_license | hongpan0507/Programming | 961a883e621bbe88de4c5ad830110ddd14bb603a | 4afabae66be6296991934bd0edfd532537f1fd13 | refs/heads/master | 2021-05-04T11:43:31.045278 | 2020-04-28T04:31:40 | 2020-04-28T04:31:40 | 36,273,330 | 0 | 0 | null | 2017-05-22T15:32:53 | 2015-05-26T05:06:05 | Java | UTF-8 | C++ | false | false | 2,589 | ino | #include <SPI.h>
#include <stdlib.h>
using namespace std;
int SPI_CS = 400000; //400kHz //SPI clock speed; DW1000 datasheet p23;
const int ss_pin = 10; //SPI slave select
char cmd_char[2];
String cmd_rec = "";
String cmd_buff = "";
int cmd_hex;
long SPI_return = 0; //store the data returned from decawave
boolean new_data = false;
boolean new_cmd = false;
boolean cmd_start = false;
boolean cmd_end = false;
boolean msg_start = false;
void setup() {
Serial.begin(9600);
SPI.begin();
pinMode(ss_pin, OUTPUT);
digitalWrite(ss_pin,LOW);
SPI.beginTransaction(SPISettings(SPI_CS, MSBFIRST, SPI_MODE3));
deca_wave_reg_write("09E608F0"); //set GPIO as output
deca_wave_reg_write("09E60CFF"); //set GPIO pin high
SPI.endTransaction();
}
void loop() {
while(Serial.available()){
Serial.readBytes(cmd_char,2); //read from serial monitor or serial port
cmd_rec = (String)cmd_char; //convert to string
Serial.println(cmd_rec); //debug
if(cmd_rec == "XX" && msg_start == false){ //XX==the start of a group of commands
cmd_start = true;
}else if(cmd_rec == "SS" && cmd_start == false){ //SS==the start of a group of message
msg_start = true;
}else if(cmd_rec == "YY"){ //YY==the end of a group of commands
cmd_start = false;
deca_wave_reg_write(cmd_buff);
cmd_buff = "";
}else if(cmd_start == true){ //use "else if" to prevent taking "XX" as a SPI command
cmd_buff = cmd_buff + cmd_rec;
}
}
deca_wave_reg_write("09E60CFF");
delay(1000);
}
void deca_wave_reg_write(String reg_write_cmd_str){ //take in raw spi commands and configure DecaWave
int reg_write_cmd = 0;
if((reg_write_cmd_str.length() % 2) == 0){ //check if a command has even size
SPI.beginTransaction(SPISettings(40000, MSBFIRST, SPI_MODE3));
for(int i = 0; i < reg_write_cmd_str.length(); i+=2){ //break a string into 2 chars
reg_write_cmd = strtol(reg_write_cmd_str.substring(i,i+2).c_str(), NULL, 16);
SPI.transfer(reg_write_cmd);
}
SPI.endTransaction();
} else {
Serial.println("Odd command size");
Serial.println("Command not excuted");
}
}
/*
#include <SPI.h>
int buff = 3;
void setup() {
// set the slaveSelectPin as an output:
Serial.begin(9600);
pinMode(10,OUTPUT);
digitalWrite(10,LOW);
SPI.begin();
}
void loop() {
SPI.beginTransaction(SPISettings(40000, MSBFIRST, SPI_MODE3));
buff = SPI.transfer(0x09);
SPI.endTransaction();
Serial.println(buff,HEX);
delay(1000);
}
*/
| [
"hongpan0507@gmail.com"
] | hongpan0507@gmail.com |
bdc836866f33096044cf841e84fe7ce7d94419b7 | 3991851db3a7fea03a0d73d534d8cfd21032aaa0 | /lab3/src/queue_writer.cpp | fd6fcaec05ad77e96fb462e777b806a2c055fb45 | [] | no_license | stryitg/distributed-systems-labs | 73c7d6d568bd73be8f5882e1eb27d79280477e48 | 1e77b6de745fcdc7ca1a76c7fe551036f6044bec | refs/heads/master | 2022-07-25T22:12:53.534285 | 2020-05-22T19:35:31 | 2020-05-22T19:35:31 | 266,179,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,080 | cpp | #include <hazelcast/client/HazelcastClient.h>
#include <chrono>
#include <string>
#include <iostream>
std::string get_queue_name(const std::string& argv) {
if(argv == "blocking") {
return "my-blocking-queue";
} else {
return "my-distributed-queue";
}
}
int main(int argc, char** argv) {
hazelcast::client::ClientConfig config;
hazelcast::client::HazelcastClient hz(config);
auto queue = hz.getQueue<int>(get_queue_name(argv[1]));
for(size_t i = 0; i < 20; ++i) {
std::cout << "Putting: " << std::to_string(i) << std::endl;
queue.put(i);
std::this_thread::sleep_for(std::chrono::seconds(1));
}
queue.put(-1);
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << " Finished" << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
return 0;
} | [
"stryitg@gmail.com"
] | stryitg@gmail.com |
b612f626e38ea0a637240a5d0ffe571d5a43cab7 | ed758cd887fefa3b8ca80186ab705ee35a23ee6b | /DailyCode_Feb21/DailyCode_Feb21/main.cpp | 14b16293fc8afcdf8ea6e7406c4618bd32ee7cc9 | [] | no_license | DovahCourier117/Alex_Feb_DailyCode | bb46e5393dee3e7506a29d8fc0729e3e6aa621c5 | 98b53c90c5ad032ea868ed5cb3aa7985b89cf531 | refs/heads/master | 2021-01-25T05:43:18.823018 | 2017-03-22T18:56:04 | 2017-03-22T18:56:04 | 80,658,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
char input;
cout << "Hello! What cookie do you want? chocolate chip (c), macadamia/white chocolate (m), peanut butter (p), Cthulhu (C)" << endl;
cin >> input;
switch (input) {
case 'c':
cout << "Here is your chocolate chip cookie." << endl;
break;
case 'm':
cout << "You have great taste. I will spare you." << endl;
break;
case 'p':
cout << "Interesting choice." << endl;
break;
case 'C':
cout << "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!" << endl;
break;
default:
cout << "INVALID DATA" << endl;
}
} | [
"game110pm@605-110-STU18"
] | game110pm@605-110-STU18 |
e1f62c0984120b249151b5641cfd8ed215aa8192 | 4ccc93c43061a18de9064569020eb50509e75541 | /components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc | 1b28625c524404a37278654c276bc62f635c7c59 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | SaschaMester/delicium | f2bdab35d51434ac6626db6d0e60ee01911797d7 | b7bc83c3b107b30453998daadaeee618e417db5a | refs/heads/master | 2021-01-13T02:06:38.740273 | 2015-07-06T00:22:53 | 2015-07-06T00:22:53 | 38,457,128 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,939 | cc | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h"
#include "base/bind.h"
#include "base/location.h"
#include "base/metrics/histogram_macros.h"
#include "base/prefs/pref_service.h"
#include "base/sequenced_task_runner.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service_observer.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
namespace data_reduction_proxy {
DataReductionProxyService::DataReductionProxyService(
scoped_ptr<DataReductionProxyCompressionStats> compression_stats,
DataReductionProxySettings* settings,
PrefService* prefs,
net::URLRequestContextGetter* request_context_getter,
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner)
: url_request_context_getter_(request_context_getter),
settings_(settings),
prefs_(prefs),
io_task_runner_(io_task_runner),
initialized_(false),
weak_factory_(this) {
DCHECK(settings);
compression_stats_ = compression_stats.Pass();
event_store_.reset(new DataReductionProxyEventStore());
}
DataReductionProxyService::~DataReductionProxyService() {
}
void DataReductionProxyService::SetIOData(
base::WeakPtr<DataReductionProxyIOData> io_data) {
DCHECK(CalledOnValidThread());
io_data_ = io_data;
initialized_ = true;
FOR_EACH_OBSERVER(DataReductionProxyServiceObserver,
observer_list_, OnServiceInitialized());
// Load the Data Reduction Proxy configuration from |prefs_| and apply it.
if (prefs_) {
std::string config_value =
prefs_->GetString(prefs::kDataReductionProxyConfig);
if (!config_value.empty()) {
io_task_runner_->PostTask(
FROM_HERE,
base::Bind(
&DataReductionProxyIOData::SetDataReductionProxyConfiguration,
io_data_, config_value));
}
}
InitializeLoFiPrefs();
}
void DataReductionProxyService::Shutdown() {
DCHECK(CalledOnValidThread());
weak_factory_.InvalidateWeakPtrs();
}
void DataReductionProxyService::EnableCompressionStatisticsLogging(
PrefService* prefs,
scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
const base::TimeDelta& commit_delay) {
DCHECK(CalledOnValidThread());
DCHECK(!compression_stats_);
DCHECK(!prefs_);
prefs_ = prefs;
compression_stats_.reset(new DataReductionProxyCompressionStats(
prefs_, ui_task_runner, commit_delay));
}
void DataReductionProxyService::UpdateContentLengths(
int64 received_content_length,
int64 original_content_length,
bool data_reduction_proxy_enabled,
DataReductionProxyRequestType request_type) {
DCHECK(CalledOnValidThread());
if (compression_stats_) {
compression_stats_->UpdateContentLengths(
received_content_length, original_content_length,
data_reduction_proxy_enabled, request_type);
}
}
void DataReductionProxyService::AddEvent(scoped_ptr<base::Value> event) {
DCHECK(CalledOnValidThread());
event_store_->AddEvent(event.Pass());
}
void DataReductionProxyService::AddEnabledEvent(scoped_ptr<base::Value> event,
bool enabled) {
DCHECK(CalledOnValidThread());
event_store_->AddEnabledEvent(event.Pass(), enabled);
}
void DataReductionProxyService::AddEventAndSecureProxyCheckState(
scoped_ptr<base::Value> event,
SecureProxyCheckState state) {
DCHECK(CalledOnValidThread());
event_store_->AddEventAndSecureProxyCheckState(event.Pass(), state);
}
void DataReductionProxyService::AddAndSetLastBypassEvent(
scoped_ptr<base::Value> event,
int64 expiration_ticks) {
DCHECK(CalledOnValidThread());
event_store_->AddAndSetLastBypassEvent(event.Pass(), expiration_ticks);
}
void DataReductionProxyService::SetUnreachable(bool unreachable) {
DCHECK(CalledOnValidThread());
settings_->SetUnreachable(unreachable);
}
void DataReductionProxyService::SetLoFiModeActiveOnMainFrame(
bool lo_fi_mode_active) {
DCHECK(CalledOnValidThread());
settings_->SetLoFiModeActiveOnMainFrame(lo_fi_mode_active);
}
void DataReductionProxyService::SetLoFiModeOff() {
DCHECK(CalledOnValidThread());
if (io_task_runner_->BelongsToCurrentThread()) {
io_task_runner_->PostTask(
FROM_HERE,
base::Bind(&DataReductionProxyIOData::SetLoFiModeOff, io_data_));
return;
}
io_task_runner_->PostTask(
FROM_HERE,
base::Bind(&DataReductionProxyIOData::SetLoFiModeOff, io_data_));
}
void DataReductionProxyService::InitializeLoFiPrefs() {
DCHECK(CalledOnValidThread());
if (prefs_) {
int lo_fi_user_requests_for_images_per_session =
params::GetFieldTrialParameterAsInteger(
params::GetLoFiFieldTrialName(), "load_images_requests_per_session",
3, 0);
int lo_fi_implicit_opt_out_epoch = params::GetFieldTrialParameterAsInteger(
params::GetLoFiFieldTrialName(), "implicit_opt_out_epoch", 0, 0);
int lo_fi_consecutive_session_disables =
params::GetFieldTrialParameterAsInteger(params::GetLoFiFieldTrialName(),
"consecutive_session_disables",
3, 0);
// Record if Lo-Fi was used during the last session. Do not record if Lo-Fi
// was enabled as a result of a command-line flag.
if (params::IsLoFiAlwaysOnViaFlags() ||
params::IsLoFiCellularOnlyViaFlags() ||
params::IsLoFiDisabledViaFlags()) {
// Don't record the session state.
} else if (prefs_->GetBoolean(prefs::kLoFiWasUsedThisSession)) {
RecordLoFiSessionState(LO_FI_SESSION_STATE_USED);
} else if (prefs_->GetInteger(prefs::kLoFiConsecutiveSessionDisables) >=
lo_fi_consecutive_session_disables) {
RecordLoFiSessionState(LO_FI_SESSION_STATE_OPTED_OUT);
} else {
RecordLoFiSessionState(LO_FI_SESSION_STATE_NOT_USED);
}
if (prefs_->GetInteger(prefs::kLoFiImplicitOptOutEpoch) <
lo_fi_implicit_opt_out_epoch) {
// We have a new implicit opt out epoch, reset the consecutive session
// disables count so that Lo-Fi can be enabled again.
prefs_->SetInteger(prefs::kLoFiConsecutiveSessionDisables, 0);
prefs_->SetInteger(prefs::kLoFiImplicitOptOutEpoch,
lo_fi_implicit_opt_out_epoch);
settings_->RecordLoFiImplicitOptOutAction(
LO_FI_OPT_OUT_ACTION_NEXT_EPOCH);
} else if (!params::IsLoFiAlwaysOnViaFlags() &&
(prefs_->GetInteger(prefs::kLoFiConsecutiveSessionDisables) >=
lo_fi_consecutive_session_disables)) {
// If Lo-Fi isn't always on and and the number of
// |consecutive_session_disables| has been met, turn Lo-Fi off for this
// session.
SetLoFiModeOff();
} else if (prefs_->GetInteger(prefs::kLoFiLoadImagesPerSession) <
lo_fi_user_requests_for_images_per_session) {
// If the last session didn't have
// |lo_fi_user_requests_for_images_per_session| and the number of
// |consecutive_session_disables| hasn't been met, reset the consecutive
// sessions count.
prefs_->SetInteger(prefs::kLoFiConsecutiveSessionDisables, 0);
}
prefs_->SetInteger(prefs::kLoFiLoadImagesPerSession, 0);
prefs_->SetBoolean(prefs::kLoFiWasUsedThisSession, false);
}
}
void DataReductionProxyService::RecordLoFiSessionState(LoFiSessionState state) {
UMA_HISTOGRAM_ENUMERATION("DataReductionProxy.LoFi.SessionState", state,
LO_FI_SESSION_STATE_INDEX_BOUNDARY);
}
void DataReductionProxyService::SetInt64Pref(const std::string& pref_path,
int64 value) {
if (prefs_)
prefs_->SetInt64(pref_path, value);
}
void DataReductionProxyService::SetStringPref(const std::string& pref_path,
const std::string& value) {
if (prefs_)
prefs_->SetString(pref_path, value);
}
void DataReductionProxyService::SetProxyPrefs(bool enabled, bool at_startup) {
DCHECK(CalledOnValidThread());
if (io_task_runner_->BelongsToCurrentThread()) {
io_data_->SetProxyPrefs(enabled, at_startup);
return;
}
io_task_runner_->PostTask(
FROM_HERE, base::Bind(&DataReductionProxyIOData::SetProxyPrefs, io_data_,
enabled, at_startup));
}
void DataReductionProxyService::RetrieveConfig() {
DCHECK(CalledOnValidThread());
if (io_task_runner_->BelongsToCurrentThread()) {
io_data_->RetrieveConfig();
return;
}
io_task_runner_->PostTask(
FROM_HERE,
base::Bind(&DataReductionProxyIOData::RetrieveConfig, io_data_));
}
void DataReductionProxyService::AddObserver(
DataReductionProxyServiceObserver* observer) {
DCHECK(CalledOnValidThread());
observer_list_.AddObserver(observer);
}
void DataReductionProxyService::RemoveObserver(
DataReductionProxyServiceObserver* observer) {
DCHECK(CalledOnValidThread());
observer_list_.RemoveObserver(observer);
}
bool DataReductionProxyService::Initialized() const {
DCHECK(CalledOnValidThread());
return initialized_;
}
base::WeakPtr<DataReductionProxyService>
DataReductionProxyService::GetWeakPtr() {
DCHECK(CalledOnValidThread());
return weak_factory_.GetWeakPtr();
}
} // namespace data_reduction_proxy
| [
"g4jc@github.com"
] | g4jc@github.com |
ba666b2f60f9230990bece7dc7a033b5fd650559 | a21ddb4f233d918780d85b3642fbe1150c623ad8 | /client/src/scene/room_list/event.hpp | 1b71c8d9b7b1c320b746ebb6d561cb3395062a5b | [] | no_license | Alsaka-No-One/R-Type | fbecf210684bd18af6753630c33ff02e8adfa60d | c9c5af1bf44e9a840b1fa2266e5be49fb15bb2c4 | refs/heads/master | 2023-04-08T03:05:58.385616 | 2021-04-13T17:14:11 | 2021-04-13T17:14:11 | 357,625,046 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 821 | hpp | /*
** EPITECH PROJECT, 2020
** B-CPP-501-PAR-5-1-rtype-gaetan.depin
** File description:
** event
*/
#ifndef EVENTROOMLIST_HPP_
#define EVENTROOMLIST_HPP_
#include "ecs/Coordinator.hpp"
#include "mediator/IEvent.hpp"
namespace room_list {
/** @brief The callback function to go back to menu */
void receive_backward_event(void *obj, ecs::Coordinator &coord, const mediator::IEvent &evt);
/** @brief The callback function when clicking on a room */
void receive_room_click_event(void *obj, ecs::Coordinator &coord, mediator::IEvent &evt);
/** @brief The callback function to create a room */
void receive_create_room_event(void *obj, ecs::Coordinator &coord, const mediator::IEvent &evt);
void receive_room_receive_event(void *obj, ecs::Coordinator &coord, const mediator::IEvent &evt);
}
#endif /* !EVENT_HPP_ */
| [
"alain1.nguyen@epitech.eu"
] | alain1.nguyen@epitech.eu |
b8edf60021cca72ec1793b3b195a8f38b6cecb21 | 19194c2f2c07ab3537f994acfbf6b34ea9b55ae7 | /android-28/android/os/Build_VERSION_CODES.hpp | 8cf0baace8b0c4c5960e39111c6bbdcee6855aa5 | [
"GPL-3.0-only"
] | permissive | YJBeetle/QtAndroidAPI | e372609e9db0f96602da31b8417c9f5972315cae | ace3f0ea2678967393b5eb8e4edba7fa2ca6a50c | refs/heads/Qt6 | 2023-08-05T03:14:11.842336 | 2023-07-24T08:35:31 | 2023-07-24T08:35:31 | 249,539,770 | 19 | 4 | Apache-2.0 | 2022-03-14T12:15:32 | 2020-03-23T20:42:54 | C++ | UTF-8 | C++ | false | false | 4,418 | hpp | #pragma once
#include "./Build_VERSION_CODES.def.hpp"
namespace android::os
{
// Fields
inline jint Build_VERSION_CODES::BASE()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"BASE"
);
}
inline jint Build_VERSION_CODES::BASE_1_1()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"BASE_1_1"
);
}
inline jint Build_VERSION_CODES::CUPCAKE()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"CUPCAKE"
);
}
inline jint Build_VERSION_CODES::CUR_DEVELOPMENT()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"CUR_DEVELOPMENT"
);
}
inline jint Build_VERSION_CODES::DONUT()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"DONUT"
);
}
inline jint Build_VERSION_CODES::ECLAIR()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"ECLAIR"
);
}
inline jint Build_VERSION_CODES::ECLAIR_0_1()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"ECLAIR_0_1"
);
}
inline jint Build_VERSION_CODES::ECLAIR_MR1()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"ECLAIR_MR1"
);
}
inline jint Build_VERSION_CODES::FROYO()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"FROYO"
);
}
inline jint Build_VERSION_CODES::GINGERBREAD()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"GINGERBREAD"
);
}
inline jint Build_VERSION_CODES::GINGERBREAD_MR1()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"GINGERBREAD_MR1"
);
}
inline jint Build_VERSION_CODES::HONEYCOMB()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"HONEYCOMB"
);
}
inline jint Build_VERSION_CODES::HONEYCOMB_MR1()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"HONEYCOMB_MR1"
);
}
inline jint Build_VERSION_CODES::HONEYCOMB_MR2()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"HONEYCOMB_MR2"
);
}
inline jint Build_VERSION_CODES::ICE_CREAM_SANDWICH()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"ICE_CREAM_SANDWICH"
);
}
inline jint Build_VERSION_CODES::ICE_CREAM_SANDWICH_MR1()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"ICE_CREAM_SANDWICH_MR1"
);
}
inline jint Build_VERSION_CODES::JELLY_BEAN()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"JELLY_BEAN"
);
}
inline jint Build_VERSION_CODES::JELLY_BEAN_MR1()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"JELLY_BEAN_MR1"
);
}
inline jint Build_VERSION_CODES::JELLY_BEAN_MR2()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"JELLY_BEAN_MR2"
);
}
inline jint Build_VERSION_CODES::KITKAT()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"KITKAT"
);
}
inline jint Build_VERSION_CODES::KITKAT_WATCH()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"KITKAT_WATCH"
);
}
inline jint Build_VERSION_CODES::LOLLIPOP()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"LOLLIPOP"
);
}
inline jint Build_VERSION_CODES::LOLLIPOP_MR1()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"LOLLIPOP_MR1"
);
}
inline jint Build_VERSION_CODES::M()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"M"
);
}
inline jint Build_VERSION_CODES::N()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"N"
);
}
inline jint Build_VERSION_CODES::N_MR1()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"N_MR1"
);
}
inline jint Build_VERSION_CODES::O()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"O"
);
}
inline jint Build_VERSION_CODES::O_MR1()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"O_MR1"
);
}
inline jint Build_VERSION_CODES::P()
{
return getStaticField<jint>(
"android.os.Build$VERSION_CODES",
"P"
);
}
// Constructors
inline Build_VERSION_CODES::Build_VERSION_CODES()
: JObject(
"android.os.Build$VERSION_CODES",
"()V"
) {}
// Methods
} // namespace android::os
// Base class headers
#ifdef QT_ANDROID_API_AUTOUSE
using namespace android::os;
#endif
| [
"yjbeetle@gmail.com"
] | yjbeetle@gmail.com |
a40b213002ae1eecb98b2f0dc9e496e99e69fd12 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/content/browser/compositor/surface_utils.h | 92bfe5786d5574a4caead4c2ac88d23f2523f6bb | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | C++ | false | false | 1,036 | h | // Copyright 2015 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 CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_
#define CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_
#include <memory>
#include "content/common/content_export.h"
#include "content/public/browser/readback_types.h"
#include "third_party/skia/include/core/SkImageInfo.h"
#include "ui/gfx/geometry/size.h"
namespace cc {
class CopyOutputResult;
class SurfaceIdAllocator;
class SurfaceManager;
} // namespace cc
namespace content {
CONTENT_EXPORT
std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator();
CONTENT_EXPORT
cc::SurfaceManager* GetSurfaceManager();
void CopyFromCompositingSurfaceHasResult(
const gfx::Size& dst_size_in_pixel,
const SkColorType color_type,
const ReadbackRequestCallback& callback,
std::unique_ptr<cc::CopyOutputResult> result);
} // namespace content
#endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_
| [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
25937088d12a5c5e2d4236cb5b0658b580268830 | eca3cf99181cc3eb9f0fb64b386c93ec6f0b9c30 | /lab1/lab1/Task.h | 98a524ea754e16d19d792a20d13f4414fe1a9fd6 | [] | no_license | apel13/optimization-methods | 0d4f1389f0d7d6fecbe0c8dd8db69f496a19c162 | 2ea76f3224a8e2a0bc049d5f09b0cadb9f560107 | refs/heads/master | 2021-09-24T00:31:03.393060 | 2018-09-30T17:40:15 | 2018-09-30T17:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,762 | h | #pragma once
#include <functional>
#include <cmath>
#include "Point.h"
template<class RT, class ...Args>
struct Task
{
public:
static double eps;
Task() = delete;
constexpr explicit Task(std::function<RT(Args...)> function)
:_func(function) {}
constexpr RT f(Args... args) const noexcept {
return _func(std::forward<Args>(args)...);
}
constexpr RT f(const std::tuple<Args...> &tpl) const noexcept {
return _f_helper(tpl, std::make_index_sequence<sizeof...(Args)>{});
//return _f_helper(t, std::index_sequence_for<Args...>);
}
constexpr RT f(const Point<sizeof...(Args)> &point) const noexcept {
return _f_helper(point, std::make_index_sequence<sizeof...(Args)>{});;
}
constexpr RT f(const std::array<RT, sizeof...(Args)> &arr) const noexcept {
return _f_helper(arr, std::make_index_sequence<sizeof...(Args)>{});
}
constexpr RT df_x(const Point<sizeof...(Args)> &point, size_t idx = 0, double h = 1e-5) const noexcept {
Point<sizeof...(Args)> point_h;
point_h[idx] = h;
return (f(point + point_h) - f(point - point_h)) / (2 * h);
}
private:
std::function<RT(Args...)> _func;
template<class CTC, std::size_t... Is>
constexpr RT _f_helper(const CTC &compile_time_container, std::index_sequence<Is...>) const noexcept {
return f(std::get<Is>(compile_time_container)...);
}
};
template<class RT, class ...Args>
struct TaskHelper {
public:
TaskHelper() = delete;
constexpr explicit TaskHelper(std::function<RT(Args...)> function,
double a,
double b)
:task(Task<RT, Args...>(function)), a(make_point(a)), b(make_point(b)) {}
auto getTask() { return task; };
auto get_a() { return a; };
auto get_b() { return b; };
private:
Task<RT, Args...> task;
Point<sizeof...(Args)> a;
Point<sizeof...(Args)> b;
};
| [
"Osipov.13.Vadim@gmail.com"
] | Osipov.13.Vadim@gmail.com |
ddee2d6067de9b119b4a669846af15621d059862 | 3eed5827b3eb9b7bf5e0b51fdd5fe6b90fd08366 | /snp_calling/call_diploid_snp.cpp | 1ef209a995e8c62778c7d7e4ba829404ec948b19 | [] | no_license | fanagislab/Probing_Meiotic_Recombination | c703486179a00c269836031a876fdab2bbe72e37 | 62d2635a0870571decac2bd56e1e38613fe9d48c | refs/heads/master | 2020-07-08T18:55:06.581150 | 2019-08-22T12:57:08 | 2019-08-22T12:57:08 | 203,749,100 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 20,193 | cpp | //本程序根据参考序列上mapped的reads来计算测序样本的genotype, 读取bwa mpielup格式输入文件
//依据bayes theory,以sample出现纯合和杂合SNP的概率和测序错误分值模型为先验概率,计算观测数据下每一种genotype的后验概率。
//测序错误分值模型,与模拟reads所用的模型相同,由分析重测序数据而得。它是一个四维矩阵:ref_base x cycle x seq_base x quality。
//解释:我们实际想得到的是P(D|genotype), 此处ref_base即为geotype, 而D包含三个属性(cycle,seq_base,quality)。
//我们想得到是P(cycle,seq_base,quality|ref_base), 而它又等价于P(cycle|ref_base) * P(seq_base,quality|cycle,ref_base)。
//因为P(cycle|ref_base)可以认为是一个常数,在整个bayes公式的计算中不起作用,因此我们把它忽略。
//这样可以将P(seq_base,quality|cycle,ref_base)直接用于bayes公式,也就形成了ref_base*cycle作为列,seq_base*quality作为行的二维matrix文件。
//本程序采用long double (128bit浮点数),来高精度的表示概率。
//coverage depth最大允许值为400,以防计算过程中数值指数部分超过long double界限。超过400的部分将被忽略,程序不报错不中止。
//选取概率最大的genotype作为最终结果,并将其错误率转换为phred quality score, 并设上限为100。
//pirs和soapsnp的matrix是等效的,为保持一致,此程序采用soapsnp格式的matrix, P(base|ref,qual,cycle)
//Author: Fan Wei, fanweisz09@gmail.com
//Date: 2012/6/4
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <cmath>
#include <inttypes.h>
#include<zlib.h>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include "gzstream.h"
using namespace std;
typedef long double rate_t;
rate_t PTi[4][10]; //store the prior probability for each substitutions
rate_t *PdTi; //store the distribution of error and quality
int Ref_Base_num;
int Cycle_num;
int Seq_Base_num;
int Quality_num;
int Qual_add_val;
int Cycle_add_val;
int Ref_add_val;
int Ref_Cyc_base_qual;
string Error_profile_file;
string Out_prefix = "output";
float Trans_Tranv_ratio = 2.0;
float Hom_SNP_rate = 0.0005;
float Het_SNP_rate = 0.0005;
int SNP_prior_mode = 1;
int Ascii_Qual_Start = 33;
int Only_output_snp = 1;
//由0123 4到ACGT N
char Bases[5] ={
'A', 'C', 'G', 'T', 'N'
};
//用0,1,2,3,分别代表A,C,G,T
int DipGeno[10][2] = {0,0, 1,1, 2,2, 3,3, 0,1, 0,2, 0,3, 1,2, 1,3, 2,3};
map<int,char> TwoBases;
map<int, int> TransSubs;
void define_TransSubs()
{
TransSubs[0] = 2; TransSubs[2] = 0;
TransSubs[1] = 3; TransSubs[3] = 1;
}
void define_two_bases_markers()
{
TwoBases[0] = 'A'; TwoBases[1] = 'C'; TwoBases[2] = 'G'; TwoBases[3] = 'T';
TwoBases[4] = 'M'; TwoBases[5] = 'R'; TwoBases[6] = 'W';
TwoBases[7] = 'S'; TwoBases[8] = 'Y'; TwoBases[9] = 'K';
}
void usage()
{ cout << "diploidsnp <*.mpileup>" << endl;
cout << " version 1.0" << endl;
cout << " -r <float> homozygous SNP prior rate, default=" << Hom_SNP_rate << endl;
cout << " -e <float> heterozygous SNP prior rate, default=" << Het_SNP_rate << endl;
cout << " -t <float> transition vs transversion prior ratio, default=" << Trans_Tranv_ratio << endl;
cout << " -d <int> set the prior mode, 0: no prior; 1: with prior; default="<< SNP_prior_mode << endl;
cout << " -m <file> matrix file of error and quality distributions, default=exe_path/illumina.bloodDNA.soapsnp.matrix" << endl;
cout << " -q <int> ASCII chracter standing for quality==0, default=" << Ascii_Qual_Start << endl;
cout << " -o <string> prefix for the output files" << endl;
cout << " -s <int> two output mode, 1, only snp; 0, cns; default=" << Only_output_snp << endl;
cout << " -h get help information" << endl;
exit(0);
}
//由ACGT N得到0123 4
int get_base (char refBase)
{
int refBaseId;
switch (refBase)
{
case 'A': refBaseId = 0; break;
case 'C': refBaseId = 1; break;
case 'G': refBaseId = 2; break;
case 'T': refBaseId = 3; break;
case 'a': refBaseId = 0; break;
case 'c': refBaseId = 1; break;
case 'g': refBaseId = 2; break;
case 't': refBaseId = 3; break;
default: refBaseId = 4;
}
return refBaseId;
}
//限定freq_rate在1到1e-9之间,统计样本量级1G
void load_soapsnp_error_profile (string &matrix_file)
{
igzstream infile;
infile.open(matrix_file.c_str());
if ( ! infile )
{ cerr << "fail to open input file" << matrix_file << endl;
exit(0);
}
int pi = 0; //PdTi的循环变量
int line_field_number = 18;
vector<string> textlines;
string lineStr;
while (getline( infile, lineStr, '\n' ))
{ if (lineStr[0] == '#')
{ continue;
}
vector<string> lineVec;
boost::split(lineVec,lineStr, boost::is_any_of(" \t\n"), boost::token_compress_on);
if (lineVec.size() != line_field_number)
{ continue;
}
Quality_num = boost::lexical_cast<int>(lineVec[0]) + 1;
Cycle_num = boost::lexical_cast<int>(lineVec[1]) + 1;
textlines.push_back(lineStr);
}
Ref_Base_num = 4;
Seq_Base_num = 4;
Ref_Cyc_base_qual = Ref_Base_num * Seq_Base_num * Quality_num * Cycle_num;
Qual_add_val = Ref_Base_num * Seq_Base_num * Cycle_num;
Cycle_add_val = Ref_Base_num * Seq_Base_num;
Ref_add_val = Seq_Base_num;
PdTi = new rate_t[Ref_Cyc_base_qual];
for (int j=0; j<textlines.size(); j++)
{
vector<string> lineVec;
boost::split(lineVec,textlines[j], boost::is_any_of(" \t\n"), boost::token_compress_on);
int this_qual = boost::lexical_cast<int>(lineVec[0]);
int this_cycl = boost::lexical_cast<int>(lineVec[1]);
for (int i=2; i<line_field_number; i++)
{ int k = i - 2;
int this_ref = k / Seq_Base_num;
int this_base = k % Seq_Base_num;
pi = this_qual*Qual_add_val + this_cycl*Cycle_add_val + this_ref*Ref_add_val + this_base;
rate_t freq_rate = boost::lexical_cast<rate_t>(lineVec[i]);
if (pi < Ref_Cyc_base_qual)
{ PdTi[pi] = (freq_rate > 1e-9L) ? freq_rate : 1e-9L;
}else{
cerr << "pi exceeds its range " << Ref_Cyc_base_qual << endl;
exit(0);
}
}
}
}
//根据Trans_Tranv_ratio,Hom_SNP_rate,Het_SNP_rate,SNP_prior_mode来计算genotype的prior probability
void assign_PTi_rates ()
{
double TsTvR = Trans_Tranv_ratio;
double NonSnpRate = 1 - Hom_SNP_rate - Het_SNP_rate;
double hom_trans_rate = Hom_SNP_rate * TsTvR*2 / (TsTvR*2 + 1 + 1);
double hom_tranv_rate = Hom_SNP_rate * 1 / (TsTvR*2 + 1 + 1);
double HapSnpRate = Hom_SNP_rate + Het_SNP_rate; //近似,非准确
double HapNonSnpRate = 1 - HapSnpRate;
double HapTransSnpRate = HapSnpRate * TsTvR*2 / (TsTvR*2 + 1 + 1);
double HapTranvSnpRate = HapSnpRate * 1 / (TsTvR*2 + 1 + 1);
double hetNonTransRate;
double hetNonTranvRate;
double hetTransTranvRate;
double hetTranvTranvRate;
double relativeTotal;
relativeTotal = HapNonSnpRate*HapTransSnpRate * 1 + HapNonSnpRate*HapTranvSnpRate *2 + HapTransSnpRate*HapTranvSnpRate * 2 + HapTranvSnpRate*HapTranvSnpRate * 1;
hetNonTransRate = (relativeTotal > 0) ? HapNonSnpRate*HapTransSnpRate / relativeTotal * Het_SNP_rate : 0;
hetNonTranvRate = (relativeTotal > 0) ? HapNonSnpRate*HapTranvSnpRate / relativeTotal * Het_SNP_rate : 0;
hetTransTranvRate = (relativeTotal > 0) ? HapTransSnpRate*HapTranvSnpRate / relativeTotal * Het_SNP_rate : 0;
hetTranvTranvRate = (relativeTotal > 0) ? HapTranvSnpRate*HapTranvSnpRate / relativeTotal * Het_SNP_rate : 0;
if (SNP_prior_mode == 0)
{ NonSnpRate = hom_trans_rate = hom_tranv_rate = hetNonTransRate = hetNonTranvRate = hetTransTranvRate = hetTranvTranvRate = 0.1;
}
for (int i=0; i<4; i++)
{ for (int j=0; j<10; j++)
{ if (i == DipGeno[j][0] && i == DipGeno[j][1]) // non-SNP
{
PTi[i][j] = NonSnpRate;
}else if(i != DipGeno[j][0] && DipGeno[j][0] == DipGeno[j][1]) //homo SNP
{
PTi[i][j] = (TransSubs[i] == DipGeno[j][0]) ? hom_trans_rate : hom_tranv_rate ;
}else //het SNP
{ if (i == DipGeno[j][0] || i == DipGeno[j][1]) //het-one
{ PTi[i][j] = (TransSubs[i] == DipGeno[j][0] || TransSubs[i] == DipGeno[j][1]) ? hetNonTransRate : hetNonTranvRate;
}else //het-two
{ PTi[i][j] = (TransSubs[i] != DipGeno[j][0] && TransSubs[i] != DipGeno[j][1]) ? hetTranvTranvRate : hetTransTranvRate;
}
}
}
}
}
//从pileup格式的base_str中得到干净的bases信息
void get_clean_bases(int refBase, string &raw_base_str,vector<int> &clean_base_vec)
{
int pos = 0;
int len = raw_base_str.size();
while (pos < len)
{
if (raw_base_str[pos] == '^')
{ pos += 2;
}
else if (raw_base_str[pos] == '+' || raw_base_str[pos] == '-')
{ pos += 1;
string indel_num;
while (pos < len)
{ if (raw_base_str[pos] >= 48 && raw_base_str[pos] <= 57 ) //ASCII: 0-9
{ indel_num.push_back(raw_base_str[pos]);
pos ++;
}
else
{ break;
}
}
pos += atoi(indel_num.c_str());
}
else
{
switch (raw_base_str[pos])
{
case '.': clean_base_vec.push_back(refBase); break;
case ',': clean_base_vec.push_back(refBase); break;
case 'A': clean_base_vec.push_back(0); break;
case 'a': clean_base_vec.push_back(0); break;
case 'C': clean_base_vec.push_back(1); break;
case 'c': clean_base_vec.push_back(1); break;
case 'G': clean_base_vec.push_back(2); break;
case 'g': clean_base_vec.push_back(2); break;
case 'T': clean_base_vec.push_back(3); break;
case 't': clean_base_vec.push_back(3); break;
case 'N': clean_base_vec.push_back(4); break;
case 'n': clean_base_vec.push_back(4); break;
case '*': clean_base_vec.push_back(4); break;
case '>': clean_base_vec.push_back(4); break;
case '<': clean_base_vec.push_back(4); break;
//自动省略$符号的判断
}
pos += 1;
}
}
}
//从pileup格式的quality_str中得到quality信息,并转换成phred-scale, 33开始
void get_quality(vector<int> &qual_vec, string &qual_str)
{
for (int i=0; i<qual_str.size(); i++)
{ int qual_val = qual_str[i] - Ascii_Qual_Start;
qual_val = (qual_val < Quality_num) ? qual_val : Quality_num - 1; //质量值大于40的全部当成40
qual_vec.push_back(qual_val);
}
}
//从pileup格式的cycle_str中得到cycle信息
void get_cycle (vector<int> &cycl_vec, string &cycl_str)
{
vector<string> temp_vec;
boost::split(temp_vec,cycl_str, boost::is_any_of(","), boost::token_compress_on);
for (int i=0; i<temp_vec.size(); i++)
{ //int cycle_val = boost::lexical_cast<int>(temp_vec[i]); //runs much slow
int cycle_val = atoi(temp_vec[i].c_str()); //runs fast
if (cycle_val > Cycle_num)
{ cycle_val = Cycle_num;
}
cycl_vec.push_back(cycle_val - 1); //cycle 0-99代表100个cycles
}
}
//根据指定的参考序列碱基,计算每一种genotype的后验概率P(Ti|D)
//coverage depth最大允许值为400,以防计算过程中数值指数部分超过long double界限
void calculte_genotype_probability(int refBase, vector<rate_t> &pTiDvec, vector<int> &baseVec, vector<int> &qualVec, vector<int> &cyclVec)
{
//cerr << "refbase: " << refBase << " " << Bases[refBase] << endl;
rate_t pD = 0.0;
int len = (baseVec.size() < 400) ? baseVec.size() : 400;
//vector<rate_t> pDTiVec;
for (int genotype=0; genotype<10; genotype++)
{
rate_t pTi = PTi[refBase][genotype]; //
rate_t pDTi = 1.0;
if (pTi != 0)
{ for (int j=0; j<len; j++)
{
int num1 = qualVec[j]*Qual_add_val + cyclVec[j]*Cycle_add_val + DipGeno[genotype][0]*Ref_add_val + + baseVec[j];
int num2 = qualVec[j]*Qual_add_val + cyclVec[j]*Cycle_add_val + DipGeno[genotype][1]*Ref_add_val + + baseVec[j];
if (num1 >= Ref_Cyc_base_qual || num2 >= Ref_Cyc_base_qual)
{ cerr << "num1 or num2 exceeds its range " << num1 << "\t" << num2 << endl;
exit(0);
}
pDTi *= (PdTi[num1] + PdTi[num2] ) / 2;
//cerr << "# " << DipGeno[genotype][0] << "\t" << DipGeno[genotype][1] << "\t" << cyclVec[j] << "\t" << baseVec[j] << "\t" << qualVec[j] << "\t"<< PdTi[num1] << "\t" << PdTi[num2] << "\t" << num1 << "\t" << num2 << endl;
}
}
//pDTiVec.push_back(pDTi);
pTiDvec.push_back( pTi*pDTi );
pD += pTi*pDTi;
//cerr << "calculate: " << genotype << "\t" << pTi << "\t" << pDTi << "\t" << pTi*pDTi << "\t" << pD << endl;
}
for (int genotype=0; genotype<10; genotype++)
{ pTiDvec[genotype] = pTiDvec[genotype] / pD;
}
//output middle results
/*for (int genotype=0; genotype<10; genotype++)
{ rate_t pTi = PTi[refBase][genotype];
rate_t pDTi = pDTiVec[genotype];
cout << genotype << "\t" << pTi << "\t" << pDTi << "\t" << pTi*pDTi << "\t" << pD << "\t" << pTiDvec[genotype] << endl;
}*/
}
//find the genotype with maximum posterior likelihood and calcualte the phred-scale score (up to 100)
void find_genotype_score(vector<rate_t> &pTiDvec, int &sample_genotype, int &phred_score)
{
int max_id = 0;
rate_t max_likelihood = 0.0;
for (int i=0; i<pTiDvec.size(); i++)
{ if (pTiDvec[i] > max_likelihood)
{ max_id = i;
max_likelihood = pTiDvec[i];
}
//cerr << "find max: " << i << " " << pTiDvec[i] << endl;
}
sample_genotype = max_id;
rate_t error_rate = 1 - pTiDvec[max_id];
if (error_rate < 1e-10L)
{ error_rate = 1e-10L;
}
phred_score = int(-10 * log10(error_rate));
}
void output_prior_file(string &prior_file)
{
ofstream PRIOR (prior_file.c_str());
if (! PRIOR)
{ cerr << "fail create prior file" << prior_file << endl;
}
PRIOR << "The 10 genotypes: \n";
for (int i=0; i<10; i++)
{ PRIOR << i << "(" << Bases[DipGeno[i][0]] << Bases[DipGeno[i][1]] << ") ";
}
PRIOR << endl << endl;
PRIOR << "The compressed representaiton for each genotype:\n";
map<int,char>::const_iterator map_it = TwoBases.begin();
while (map_it != TwoBases.end())
{ PRIOR << map_it->first << ":" << map_it->second << "; ";
++map_it;
}
PRIOR << "\n\n";
PRIOR << "The transison substitution matrix:\n";
map<int, int>::const_iterator map_it2 = TransSubs.begin();
while (map_it2 != TransSubs.end())
{ PRIOR << Bases[map_it2->first] << ":" << Bases[map_it2->second] << "; ";
++map_it2;
}
PRIOR << endl << endl;
PRIOR << "Hom_SNP_rate: " << Hom_SNP_rate << endl;
PRIOR << "Het_SNP_rate: " << Het_SNP_rate << endl;
PRIOR << "All_SNP_rate: " << Hom_SNP_rate + Het_SNP_rate << endl;
PRIOR << "Trans_Tranv_ratio: " << Trans_Tranv_ratio << endl;
PRIOR << "\nThe prior probabilites of genotypes for each reference base:\n\n";
PRIOR << "R\\G";
for (int j=0; j<10; j++)
{ PRIOR << "\t" << Bases[DipGeno[j][0]] << Bases[DipGeno[j][1]];
}
PRIOR << endl;
for (int i=0; i<4; i++)
{ PRIOR << Bases[i] ;
for (int j=0; j<10; j++)
{
PRIOR << "\t" << PTi[i][j];
}
PRIOR << endl;
}
PRIOR << "\n Ref_Base_num " << Ref_Base_num << endl;
PRIOR << " Cycle_num " << Cycle_num << endl;
PRIOR << " Seq_Base_num " << Seq_Base_num << endl;
PRIOR << " Quality_num " << Quality_num << endl;
PRIOR << " PdTi array size: " << Ref_Cyc_base_qual << endl;
PRIOR << " Qual_add_val " << Qual_add_val << endl;
PRIOR << " Cycle_add_val " << Cycle_add_val << endl;
PRIOR << " Ref_add_val " << Ref_add_val << endl;
}
int main(int argc, char *argv[])
{
//get options from command line
int c;
while((c=getopt(argc, argv, "t:r:e:d:m:q:o:s:h")) !=-1) {
switch(c) {
case 't': Trans_Tranv_ratio=atof(optarg); break;
case 'r': Hom_SNP_rate=atof(optarg); break;
case 'e': Het_SNP_rate=atof(optarg); break;
case 'd': SNP_prior_mode=atoi(optarg); break;
case 'm': Error_profile_file=optarg; break;
case 'q': Ascii_Qual_Start=atoi(optarg); break;
case 'o': Out_prefix=optarg; break;
case 's': Only_output_snp=atoi(optarg); break;
case 'h': usage(); break;
default: usage();
}
}
if (argc < 2) usage();
if (! Error_profile_file.size())
{ string exepath = argv[0];
int numh = exepath.rfind("/");
Error_profile_file = exepath.substr(0,numh+1) + "illumina.bloodDNA.soapsnp.matrix";
}
cerr << "\nUsed error profile matrix file: " << Error_profile_file << endl << endl;
string pileup_file = argv[optind++]; //optind, argv[optind++]顺序指向非option的参数
clock_t time_start, time_end;
time_start = clock();
//caluate the prior probability of each genotype
define_two_bases_markers();
define_TransSubs();
assign_PTi_rates();
cerr << "Assign prior probability to genotype done:\n\n";
//load the error and quality profile matrix into memory
load_soapsnp_error_profile(Error_profile_file);
cerr << "Dimensions of error profile:\n";
string prior_file = Out_prefix + ".prior";
output_prior_file(prior_file);
time_end = clock();
cerr << "\nLoad the error profile done\n";
cerr << "Run time: " << double(time_end - time_start) / CLOCKS_PER_SEC << endl;
//parse the pileup file, and calculate the likelihood of each genotypes
igzstream infile;
infile.open(pileup_file.c_str());
if ( ! infile )
{ cerr << "fail to open input file" << pileup_file << endl;
}
string gentoytpe_file;
if (Only_output_snp == 1)
{ gentoytpe_file = Out_prefix + ".snp";
}else
{ gentoytpe_file = Out_prefix + ".cns";
}
ofstream outfile (gentoytpe_file.c_str());
if ( ! outfile )
{ cerr << "fail to open output file" << gentoytpe_file << endl;
}
long int loop = 0;
outfile << "#Chr\tPos\tRef\tGeno\tScore\tDepth\tBases\tQuals\tCycles\t[all mapped bases]\n";
string lineStr;
while (getline( infile, lineStr, '\n' ))
{
vector<string> lineVec;
boost::split(lineVec,lineStr, boost::is_any_of("\t"), boost::token_compress_on);
int refBase = get_base(lineVec[2][0]);
vector<int> baseVec;
get_clean_bases(refBase,lineVec[4],baseVec);
vector<int> qualVec;
get_quality(qualVec, lineVec[5]);
vector<int> cyclVec;
get_cycle(cyclVec, lineVec[7]);
////////////////debug///////////////
//cerr << "refBase: " << Bases[refBase] << endl;
//for (int i=0; i<baseVec.size(); i++)
//{ cerr << i+1 << "\t" << Bases[baseVec[i]] << "\t" << qualVec[i] << "\t" << cyclVec[i] << endl;
//}
////////////////debug///////////////
//check the result of parsing pileup file
if (baseVec.size() != qualVec.size() || baseVec.size() != cyclVec.size())
{ cerr << "Error happens at : " << lineVec[4] << "\t" << lineVec[5] << "\t" << lineVec[7] << endl << endl;
exit(0);
}
vector<int> FbaseVec;
vector<int> FqualVec;
vector<int> FcyclVec;
//filter the observed data, base not N, and qual > 5;
for (int i=0; i<baseVec.size(); i++)
{ if (baseVec[i] != 4 && qualVec[i] >= 5) //当质量值小于5的时候,P(D|G)几乎是相等的,因此P(G|D) = P(G), 数据没有发挥作用,结果将只反映先验概率,造成错误。
{ FbaseVec.push_back(baseVec[i]);
FqualVec.push_back(qualVec[i]);
FcyclVec.push_back(cyclVec[i]);
}
}
if (FbaseVec.size() == 0)
{ continue;
}
vector<rate_t> pTiDvec;
calculte_genotype_probability(refBase,pTiDvec, FbaseVec, FqualVec, FcyclVec);
int sample_genotype = 0;
int phred_score = 0;
find_genotype_score(pTiDvec,sample_genotype,phred_score);
if (Only_output_snp == 0 || sample_genotype != refBase)
{
outfile << lineVec[0] << "\t" << lineVec[1] << "\t" << lineVec[2] << "\t";
if (sample_genotype < 4)
{ outfile << Bases[sample_genotype];
}else{
outfile << TwoBases[sample_genotype] << "(" << Bases[DipGeno[sample_genotype][0]] << Bases[DipGeno[sample_genotype][1]] << ")";
}
outfile << "\t" << phred_score << "\t" << FbaseVec.size() << "\t" ;
for (int i=0; i<FbaseVec.size(); i++)
{ outfile << Bases[FbaseVec[i]];
}
outfile << "\t";
for (int i=0; i<FbaseVec.size(); i++)
{ outfile << FqualVec[i] << ",";
}
outfile << "\t";
for (int i=0; i<FbaseVec.size(); i++)
{ outfile << FcyclVec[i] << ",";
}
outfile << "\t" << baseVec.size() << "\t"<< lineVec[4] << "\t" << lineVec[5] << "\t" << lineVec[7] << endl;
}
//loop ++;
//if (loop > 10000)
//{ break;
//}
}
infile.close();
outfile.close();
time_end = clock();
cerr << "\nParse the pileup file and genotype calculation done\n";
cerr << "Run time: " << double(time_end - time_start) / CLOCKS_PER_SEC << endl;
}
| [
"fanwei@login1.(none)"
] | fanwei@login1.(none) |
e5e9c0ebfc80eeeb38cf62f3474e965e4c0b0229 | 22af93db463774bfa5810ccc26193d91354849b9 | /client/frameworks/cocos2d-x/cocos/editor-support/cocostudio/WidgetReader/ProjectNodeReader/ProjectNodeReader.cpp | 218f9a6f938d40b28e80e812eb4b8606c2a008bf | [] | no_license | adroitly/boom | f5ba38c1360e315cfc79a602ca787208f244b87c | 57bb7f29ba2da552e7d47ac5d2dd9691539ad78e | refs/heads/master | 2016-08-12T07:41:34.105425 | 2016-03-08T07:16:13 | 2016-03-08T07:16:13 | 53,380,550 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 4,976 | cpp | ///****************************************************************************
// Copyright (c) 2014 cocos2d-x.org
//
// http://www.cocos2d-x.org
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// ****************************************************************************/
//
//#include "ProjectNodeReader.h"
//
//#include "cocostudio/CSParseBinary_generated.h"
//#include "cocostudio/WidgetReader/NodeReader/NodeReader.h"
//
//#include "tinyxml2.h"
//#include "flatbuffers/flatbuffers.h"
//
//USING_NS_CC;
//using namespace flatbuffers;
//
//namespace cocostudio
//{
// ProjectNodeReader::ProjectNodeReader()
// {
//
// }
//
// ProjectNodeReader::~ProjectNodeReader()
// {
//
// }
//
// static ProjectNodeReader* _instanceProjectNodeReader = nullptr;
//
// ProjectNodeReader* ProjectNodeReader::getInstance()
// {
// if (!_instanceProjectNodeReader)
// {
// _instanceProjectNodeReader = new ProjectNodeReader();
// }
//
// return _instanceProjectNodeReader;
// }
//
// void ProjectNodeReader::purge()
// {
// CC_SAFE_DELETE(_instanceProjectNodeReader);
// }
//
// Offset<Table> ProjectNodeReader::createOptionsWithFlatBuffers(const tinyxml2::XMLElement *objectData,
// flatbuffers::FlatBufferBuilder *builder)
// {
// auto temp = NodeReader::getInstance()->createOptionsWithFlatBuffers(objectData, builder);
// auto nodeOptions = *(Offset<WidgetOptions>*)(&temp);
//
// std::string filename = "";
// float innerspeed = 1.0f;
//
// const tinyxml2::XMLAttribute* objattri = objectData->FirstAttribute();
// // inneraction speed
// while (objattri)
// {
// std::string name = objattri->Name();
// std::string value = objattri->Value();
// if (name == "InnerActionSpeed")
// {
// innerspeed = atof(objattri->Value());
// break;
// }
// objattri = objattri->Next();
// }
//
// // FileData
// const tinyxml2::XMLElement* child = objectData->FirstChildElement();
// while (child)
// {
// std::string name = child->Name();
//
// if (name == "FileData")
// {
// const tinyxml2::XMLAttribute* attribute = child->FirstAttribute();
//
// while (attribute)
// {
// name = attribute->Name();
// std::string value = attribute->Value();
//
// if (name == "Path")
// {
// size_t pos = value.find_last_of('.');
// std::string convert = value.substr(0, pos).append(".csb");
// filename = convert;
// }
//
// attribute = attribute->Next();
// }
// }
//
// child = child->NextSiblingElement();
// }
//
// auto options = CreateProjectNodeOptions(*builder,
// nodeOptions,
// builder->CreateString(filename),
// innerspeed);
//
// return *(Offset<Table>*)(&options);
// }
//
// void ProjectNodeReader::setPropsWithFlatBuffers(cocos2d::Node *node,
// const flatbuffers::Table* projectNodeOptions)
// {
// auto options = (ProjectNodeOptions*)projectNodeOptions;
//
// auto nodeReader = NodeReader::getInstance();
//
// nodeReader->setPropsWithFlatBuffers(node, (Table*)options->nodeOptions());
// }
//}
| [
"adroitly@163.com"
] | adroitly@163.com |
45b2190d231f164457075f9b60d8c2c871d411b2 | 305cd10b1c644272c47ae250fc938e1cc5b6df0d | /src/RenderEngine/Common/GaContainer.h | 153a5d6881134274384e5dbef16f3b58ab473bb4 | [] | no_license | Gawainli/GaEngine | 21a88743cbcd4301db973ab3f164fcffa8b68ba2 | 363f0ea31240e22bc983afc58fb3fa177c3bb6e1 | refs/heads/master | 2021-01-18T15:08:55.896117 | 2013-07-26T02:12:36 | 2013-07-26T02:12:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,317 | h | #ifndef GaContainer_h__
#define GaContainer_h__
#include "CommonMath.h"
#define TABLE_SIZE 65537
template <typename T>
class GaHashObj
{
public:
GaHashObj()
{
hash = 0;
check = 0;
}
public:
T value;
unsigned int hash;
unsigned int check;
protected:
private:
};
template <typename T>
class GaHashTable
{
public:
GaHashTable(){}
~GaHashTable(){}
public:
int Insert( const std::string& strkey, T& value )
{
unsigned int hash = CommonMath::BKDRHash( strkey );
unsigned int check = CommonMath::APHash( strkey );
unsigned int idx = hash % TABLE_SIZE;
while ( elements[idx].hash != 0 && elements[idx].check != check )
{
idx++;
}
elements[idx].hash = hash;
elements[idx].check = CommonMath::APHash( strkey );
elements[idx].value = value;
return idx;
}
int GetIdx( const std::string& strkey ) const
{
unsigned int hash = CommonMath::BKDRHash( strkey );
unsigned int check = CommonMath::APHash( strkey );
unsigned int idx = hash % TABLE_SIZE;
while ( elements[idx].check != check )
{
idx++;
if ( elements[idx].hash == 0 )
{
return -1;
}
}
return idx;
}
T& operator [] ( unsigned int idx ) const
{
assert( idx<TABLE_SIZE );
return elements[idx].value;
}
public:
private:
GaHashObj<T> elements[TABLE_SIZE];
};
#endif // GaContainer_h__
| [
"gawainli@outlook.com"
] | gawainli@outlook.com |
3436cbbb3519ae71d6a7fe15dbf14b961b9daacb | e7f0e311998073caf23e7e4a8b330195ed651182 | /lab_1.1.cpp | 22aef285e5bbc8cdb007ba11794a04ce76205a0b | [] | no_license | cyber-domestos/lab-1 | 6907c3eaee3c42c134e86ccd61b9a293a73a7a10 | e95eb3d54e0a00621e1cd7edf885405937d05ff4 | refs/heads/master | 2020-06-05T10:30:57.952072 | 2019-06-17T23:33:25 | 2019-06-17T23:33:25 | 192,409,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,886 | cpp | //Данная программа выводит свойства товаров у которых цена больше средней
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
struct product {
string name;
int amount;
double price;
string manufacturer;
string date;
};
//Функция для вывода свойств товара в консоль
void show (product str)
{
cout<<"Название товара: "<<str.name<<endl;
cout<<"Количество: "<<str.amount<<endl;
cout<<"Цена (грн.): "<<str.price<<endl;
cout<<"Производитель: "<<str.manufacturer<<endl;
cout<<"Дата поступления на склад: "<<str.date<<endl;
cout<<"***************************************************************************************************************"<<endl;
}
int main()
{
//Изменение кодировки консоли
system("chcp 1251>nul");
product product_list[5];
//Что-бы вы не тратили время на ввод ;)
product_list[0]={"Футболка AutomatiX",548,199.99,"? China Com.","30/05/2019"};
product_list[1]={"Програматор для Power Stone",5,2789.99,"AutomatiX Ltd.","06/03/2019"};
product_list[2]={"Кибер-имплант Power Stone",22,4999.99,"AutomatiX Ltd.","06/03/2019"};
product_list[3]={"Смарт-Кондиционер Hell Furnace",168,2999.99,"Poly Tech Inc.","32/02/2077"};
product_list[4]={"Кулон Дизайнера",9999,00.01,"IP TrenD Market","01/01/1999"};
//Среднее значение | average=2197.99
double average=(product_list[0].price+product_list[1].price+product_list[2].price+product_list[3].price+product_list[4].price)/5;
for(int i=0;i<=5;i++)
{
if(product_list[i].price>average)
{
show(product_list[i]);
}
}
//Задержка консоли
system("pause>nul");
return 0;
} | [
"dimaignatov676@gmail.com"
] | dimaignatov676@gmail.com |
9199cf60ff740aa01bf6aa1ae0d2a3b8da4fb5d6 | 6f7675d3e51822938a79820687bcf472c03f70b5 | /Hash/sum-pairs-divisible-by-k.cpp | 0682b30fc440db54b2ae6446157634569ef0012f | [] | no_license | notreallystatic/competitive-programming | ed70da03eaa92613d75fae492d7aa1f3898b3638 | d9d8a147d09d8b9b295d141d8573e15a1caceb78 | refs/heads/master | 2023-06-08T18:27:36.733477 | 2021-06-29T08:38:16 | 2021-06-29T08:38:16 | 265,746,611 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,731 | cpp | /*
Author : sk92907
github:https://github.com/notreallystatic
linkedin : https://www.linkedin.com/in/notreallystatic/
*/
/*
Problem Statement:
Given an array of integers and a number k, write a function that returns true if given array can be divided into pairs such that sum of every pair is divisible by k.
Link:
https://www.geeksforgeeks.org/check-if-an-array-can-be-divided-into-pairs-whose-sum-is-divisible-by-k/
Input:
4 6
9 7 5 3
Output:
1
*/
#include <iostream>
#include <stdlib.h>
#include <numeric>
#include <stdio.h>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <unordered_map>
#include <map>
#include <unordered_set>
#include <stack>
#include <queue>
#include <list>
#include <limits.h>
#include <bitset>
#include <random>
using namespace std;
bool isPossible(const vector<int> &arr, const int &n, const int &k)
{
// (x % k + k) % k is done to take care of the negative numbers;
unordered_map<int, int> mp;
// Store the remainders in a hash map.
for (int x : arr)
++mp[(x % k + k) % k];
for (int x : arr)
{
int rem = (x % k + k) % k;
if (rem == 0 || (rem * 2) == k)
{
// If the number of numbers whose remainder is 0 is odd, then it's not possible.
// If remainder divided k in half, then the count of these numbers should be even.
if (mp[rem] & 1)
return false;
}
else
{
if (mp[rem] != mp[k - rem])
return false;
}
}
return true;
}
void solve()
{
int n, k;
cin >> n >> k;
vector<int> arr(n);
for (int &x : arr)
cin >> x;
cout << isPossible(arr, n, k);
}
int32_t main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
solve();
return 0;
} | [
"sk92907@gmail.com"
] | sk92907@gmail.com |
eb08ad21988c5076a032408f9fa6344de443649d | 578301a2842856911489c4fc3fc89e71aa43cdda | /GelsenizeEngine/GelsenizeEngine/cGameObject.cpp | 28736216e22c617df0ba564c13af349c27d6aa5c | [] | no_license | OmerCora/PinkGuysMaze | d32ee001f3195095e6fe12a03a6fa535b9eb0f13 | 8140d0ce6ffd061d12a4b11799d948744c953d0c | refs/heads/master | 2022-04-27T07:35:41.671415 | 2022-03-23T11:35:09 | 2022-03-23T11:35:09 | 134,244,955 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,807 | cpp | #include "cGameObject.h"
#include "externals.h"
#include "managers.h"
#include "GelsenizeCore.h"
LightInfo cGameObject::GetLight(void)
{
return this->lightInfo;
}
MeshInfo cGameObject::GetMesh(void)
{
return this->meshInfo;
}
RenderInfo cGameObject::GetRender(void)
{
return this->renderInfo;
}
PhysicsInfo cGameObject::GetPhysics(void)
{
return this->physicsInfo;
}
CollisionInfo cGameObject::GetCollision(void)
{
return this->collisionInfo;
}
void cGameObject::SetCollision(CollisionInfo info)
{
this->collisionInfo = info;
}
void cGameObject::SetLight(LightInfo info)
{
this->lightInfo = info;
}
void cGameObject::SetMesh(MeshInfo info)
{
this->meshInfo = info;
}
void cGameObject::SetRender(RenderInfo info)
{
this->renderInfo = info;
}
void cGameObject::SetPhysics(PhysicsInfo info)
{
this->physicsInfo = info;
}
int cGameObject::getObjectID()
{
return this->objectID;
}
void cGameObject::Update(float deltaTime)
{
//check sound
//if (this->meshInfo.soundCooldown > 0.0f)
//{
// this->meshInfo.soundCooldown_delta -= deltaTime;
// if (this->meshInfo.soundCooldown_delta <= 0.0f)
// {
// //play sound
// gelSoundManager::sharedInstance().PlayObjectSound(this);
// this->meshInfo.soundCooldown_delta = this->meshInfo.soundCooldown;
// }
//}
}
std::string cGameObject::ObjectType(void)
{
return "object";
}
void cGameObject::SetObjectName(std::string name)
{
this->objectName = name;
}
std::string cGameObject::GetObjectName(void)
{
return this->objectName;
}
cGameObject::cGameObject()
{
this->objectID = gelObjectManager::sharedInstance().GetNewGameObjectID();
this->objectName = "not_set";
this->GetLight();
this->GetPhysics();
this->GetMesh();
this->GetRender();
this->renderInfo.useDebugColorsNoLighting = false;
}
cGameObject::~cGameObject()
{
}
| [
"omercora@gmail.com"
] | omercora@gmail.com |
d4d12770e43d3873a0e3e8dd9cb60a7c0b80420b | f31ad1e794d3cda93c32d80499b3482fab6f35b3 | /zspace_DevPack/hololoader/source/main.cpp | 0bc4f90d4583ffff530841a1ec509340c7a04c93 | [] | no_license | DaleHildebrandt/HoloMobile | 0e38ef8cb93692b1c1719ac763cad006800b2046 | fd395db1af37601721f080a3e37aa5fffd3144c9 | refs/heads/master | 2016-09-05T09:29:53.610759 | 2013-04-17T18:01:09 | 2013-04-17T18:01:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,482 | cpp | /* DESCRIPTION
This program loads a 3D model with AssImp, and displays it holographically
with VRJuggler. Multiple model formats are supported, but the model should not have
the mesh and textures in the same file. (Each texture should be a seperate image file).
The model details are read from a configuration file, specified on the command line.
The config file tells us the model's file name, initial orientation and position, and
what scaling factor should be applied when drawing it.
The command line arguments should then contain the VRJuggler configuration file(s).
A typical invocation of HoloLoader might be:
HoloLoader holodwarf.txt c2-hd.jconf
*/
#include "HoloLoader.hpp"
#include <zspace\Stereo\StereoWindow.h>
#ifndef EG_GLUT_MODE
#include <vrj/Kernel/Kernel.h>
#endif
using namespace std;
int main(int argc,
char* argv[])
{
#ifndef EG_GLUT_MODE
vrj::Kernel *kernel = vrj::Kernel::instance();//Manages VRJuggler events
#endif
HoloLoader *application = NULL;//The application code
int result = 0;//the program return code, non-zero on errors
#ifdef EG_GLUT_MODE
//### Verify that the model config file was specified ###
if (argc >= 2)
{
application = new HoloLoader(argv[1], NULL);
application->run();
}//if argc
else
{
cout << endl;
cout << "Usage: " << argv[0] << " HoloConfigFile" << endl;
}//else argc
#else
//### Verify that configuration files were specified ###
if (argc > 2)
application = new HoloLoader(argv[1], kernel);
else
{
cout << endl;
cout << "Usage: " << argv[0] << "HoloConfigFile VjConfigFile[0] VjConfigFile[1] ... VjConfigFile[n]" << endl;
result = 1;
}//else argc
//### Load VRJuggler configuration files ###
if (result == 0)
{
for (int argNum = 2; argNum < argc; argNum++)
kernel->loadConfigFile(argv[argNum]);
}//if result
//### Start the application ###
if (result == 0)
{
kernel->start();
kernel->setApplication(application);
application->run();
}//if result
if (kernel->isRunning())
kernel->stop();
#endif
//### Free memory ###
delete application;
application = NULL;
cout << "Program exiting..." << endl;
return result;
}//main
| [
"10hilded@gmail.com"
] | 10hilded@gmail.com |
cb901d63544724e2c87e705b89eacc20697c15f0 | ea9f986293b8dc0681987a011ba3cd22f5c83818 | /include/cando/chem/virtualAtom.h | bab011eb9c8697e6254d4347f3565218ea34b980 | [] | no_license | clasp-developers/cando-remove-me | 90642a5159124af8330ba13d7f3df27a9d3ff4fb | 86c01acff500732d677028f23c8fdb812cb209e9 | refs/heads/master | 2021-04-09T16:36:09.306755 | 2016-09-16T19:24:27 | 2016-09-16T19:24:27 | 125,637,584 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,404 | h | /*
File: virtualAtom.h
*/
/*
Open Source License
Copyright (c) 2016, Christian E. Schafmeister
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.
This is an open source license for the CANDO software from Temple University, but it is not the only one. Contact Temple University at mailto:techtransfer@temple.edu if you would like a different license.
*/
/* -^- */
#ifndef VirtualAtom_H //[
#define VirtualAtom_H
#include <stdio.h>
#include <string>
#include <vector>
#include <set>
#include <clasp/core/common.h>
#include <cando/chem/atom.h>
#include <clasp/core/executables.h>
#include <cando/chem/chemPackage.h>
namespace chem {
SMART(CalculatePosition);
SMART(VirtualAtom );
class VirtualAtom_O : public Atom_O
{
LISP_CLASS(chem,ChemPkg,VirtualAtom_O,"VirtualAtom",Atom_O);
public:
// void archive(core::ArchiveP node);
void initialize();
private:
//! Calculate position using a procedure
CalculatePosition_sp _CalculatePosition;
public:
static VirtualAtom_sp create(MatterName name, CalculatePosition_sp proc);
public:
void calculatePosition();
virtual bool equal(core::T_sp obj) const;
virtual bool isVirtual() const { return true;};
// Constructor stuff
virtual Matter_sp copy();
// virtual Atom_sp copyDropExternalResidueBonds();
VirtualAtom_O( const VirtualAtom_O& ss ); //!< Copy constructor
DEFAULT_CTOR_DTOR(VirtualAtom_O);
};
};
TRANSLATE(chem::VirtualAtom_O);
#endif //]
| [
"chris.schaf@verizon.net"
] | chris.schaf@verizon.net |
c02dac248daf6a226932c70c43fcbb6f10ff1d66 | 05fed525ce0768ec7061b11949068b6fbd7f5b3b | /src/ext/cvc4-1.4-build/include/cvc4/util/tls.h | 8886ea09f97adf69849825a8c8ea1070772e1b05 | [
"Apache-2.0"
] | permissive | jnorthrup/stoke | 6b65ec634b8a45550fcdce695df3147d21ac617b | 3f41e768b58911cf9c7e099c95efa74ae01e2e87 | refs/heads/develop | 2021-01-02T23:45:18.450355 | 2017-08-01T04:37:00 | 2017-08-01T04:37:00 | 99,505,016 | 3 | 0 | null | 2017-08-06T18:17:31 | 2017-08-06T18:17:31 | null | UTF-8 | C++ | false | false | 5,781 | h | /********************* */
/*! \file tls.h.in
** \verbatim
** Original author: ACSYS
** Major contributors: Morgan Deters
** Minor contributors (to current version): none
** This file is part of the CVC4 project.
** Copyright (c) 2009-2014 New York University and The University of Iowa
** See the file COPYING in the top-level source directory for licensing
** information.\endverbatim
**
** \brief Header to define CVC4_THREAD whether or not TLS is
** supported by the compiler/runtime platform
**
** Header to define CVC4_THREAD whether or not TLS is supported by
** the compiler/runtime platform. If not, an implementation based on
** pthread_getspecific() / pthread_setspecific() is given.
**/
#include <cvc4/cvc4_public.h>
#ifndef __CVC4__TLS_H
#define __CVC4__TLS_H
// A bit obnoxious: we have to take varargs to support multi-argument
// template types in the threadlocals.
// E.g. "CVC4_THREADLOCAL(hash_set<type, hasher>*)" fails otherwise,
// due to the embedded comma.
#if 1
# define CVC4_THREADLOCAL(__type...) __thread __type
# define CVC4_THREADLOCAL_PUBLIC(__type...) __thread CVC4_PUBLIC __type
# define CVC4_THREADLOCAL_TYPE(__type...) __type
#else
# include <pthread.h>
# define CVC4_THREADLOCAL(__type...) ::CVC4::ThreadLocal< __type >
# define CVC4_THREADLOCAL_PUBLIC(__type...) CVC4_PUBLIC ::CVC4::ThreadLocal< __type >
# define CVC4_THREADLOCAL_TYPE(__type...) ::CVC4::ThreadLocal< __type >
namespace CVC4 {
template <class T, bool small>
class ThreadLocalImpl;
template <class T>
class ThreadLocalImpl<T, true> {
pthread_key_t d_key;
static void cleanup(void*) {
}
public:
ThreadLocalImpl() {
pthread_key_create(&d_key, ThreadLocalImpl::cleanup);
}
ThreadLocalImpl(const T& t) {
pthread_key_create(&d_key, ThreadLocalImpl::cleanup);
pthread_setspecific(d_key, const_cast<void*>(reinterpret_cast<const void*>(t)));
}
ThreadLocalImpl(const ThreadLocalImpl& tl) {
pthread_key_create(&d_key, ThreadLocalImpl::cleanup);
pthread_setspecific(d_key, const_cast<void*>(reinterpret_cast<const void*>(static_cast<const T&>(tl))));
}
ThreadLocalImpl& operator=(const T& t) {
pthread_setspecific(d_key, const_cast<void*>(reinterpret_cast<const void*>(t)));
return *this;
}
ThreadLocalImpl& operator=(const ThreadLocalImpl& tl) {
pthread_setspecific(d_key, const_cast<void*>(reinterpret_cast<const void*>(static_cast<const T&>(tl))));
return *this;
}
operator T() const {
return static_cast<T>(reinterpret_cast<size_t>(pthread_getspecific(d_key)));
}
};/* class ThreadLocalImpl<T, true> */
template <class T>
class ThreadLocalImpl<T*, true> {
pthread_key_t d_key;
static void cleanup(void*) {
}
public:
ThreadLocalImpl() {
pthread_key_create(&d_key, ThreadLocalImpl::cleanup);
}
ThreadLocalImpl(const T* t) {
pthread_key_create(&d_key, ThreadLocalImpl::cleanup);
pthread_setspecific(d_key, const_cast<void*>(reinterpret_cast<const void*>(t)));
}
ThreadLocalImpl(const ThreadLocalImpl& tl) {
pthread_key_create(&d_key, ThreadLocalImpl::cleanup);
pthread_setspecific(d_key, const_cast<void*>(reinterpret_cast<const void*>(static_cast<const T*>(tl))));
}
ThreadLocalImpl& operator=(const T* t) {
pthread_setspecific(d_key, const_cast<void*>(reinterpret_cast<const void*>(t)));
return *this;
}
ThreadLocalImpl& operator=(const ThreadLocalImpl& tl) {
pthread_setspecific(d_key, const_cast<void*>(reinterpret_cast<const void*>(static_cast<const T*>(tl))));
return *this;
}
operator T*() const {
return static_cast<T*>(pthread_getspecific(d_key));
}
T operator*() {
return *static_cast<T*>(pthread_getspecific(d_key));
}
T* operator->() {
return static_cast<T*>(pthread_getspecific(d_key));
}
};/* class ThreadLocalImpl<T*, true> */
template <class T>
class ThreadLocalImpl<T, false> {
};/* class ThreadLocalImpl<T, false> */
template <class T>
class ThreadLocal : public ThreadLocalImpl<T, sizeof(T) <= sizeof(void*)> {
typedef ThreadLocalImpl<T, sizeof(T) <= sizeof(void*)> super;
public:
ThreadLocal() : super() {}
ThreadLocal(const T& t) : super(t) {}
ThreadLocal(const ThreadLocal<T>& tl) : super(tl) {}
ThreadLocal<T>& operator=(const T& t) {
return static_cast< ThreadLocal<T>& >(super::operator=(t));
}
ThreadLocal<T>& operator=(const ThreadLocal<T>& tl) {
return static_cast< ThreadLocal<T>& >(super::operator=(tl));
}
};/* class ThreadLocal<T> */
template <class T>
class ThreadLocal<T*> : public ThreadLocalImpl<T*, sizeof(T*) <= sizeof(void*)> {
typedef ThreadLocalImpl<T*, sizeof(T*) <= sizeof(void*)> super;
public:
ThreadLocal() : super() {}
ThreadLocal(T* t) : super(t) {}
ThreadLocal(const ThreadLocal<T*>& tl) : super(tl) {}
ThreadLocal<T*>& operator=(T* t) {
return static_cast< ThreadLocal<T*>& >(super::operator=(t));
}
ThreadLocal<T*>& operator=(const ThreadLocal<T*>& tl) {
return static_cast< ThreadLocal<T*>& >(super::operator=(tl));
}
// special operators for pointers
T& operator*() {
return *static_cast<T*>(*this);
}
const T& operator*() const {
return *static_cast<const T*>(*this);
}
T* operator->() {
return static_cast<T*>(*this);
}
const T* operator->() const {
return static_cast<const T*>(*this);
}
T* operator++() {
T* p = *this;
*this = ++p;
return p;
}
T* operator++(int) {
T* p = *this;
*this = p + 1;
return p;
}
T* operator--() {
T* p = *this;
*this = --p;
return p;
}
T* operator--(int) {
T* p = *this;
*this = p - 1;
return p;
}
};/* class ThreadLocal<T*> */
}/* CVC4 namespace */
#endif /* 1 */
#endif /* __CVC4__TLS_H */
| [
"berkeley@berkeleychurchill.com"
] | berkeley@berkeleychurchill.com |
cba3b25c8b5e028ad7e5ee4673942b8729612957 | 5ebd5cee801215bc3302fca26dbe534e6992c086 | /blazetest/src/mathtest/smatsmatkron/SCaHCb.cpp | 0ab15b649cd0392b03e873538fc5eee7289c089e | [
"BSD-3-Clause"
] | permissive | mhochsteger/blaze | c66d8cf179deeab4f5bd692001cc917fe23e1811 | fd397e60717c4870d942055496d5b484beac9f1a | refs/heads/master | 2020-09-17T01:56:48.483627 | 2019-11-20T05:40:29 | 2019-11-20T05:41:35 | 223,951,030 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,354 | cpp | //=================================================================================================
/*!
// \file src/mathtest/smatsmatkron/SCaHCb.cpp
// \brief Source file for the SCaHCb sparse matrix/sparse matrix Kronecker product math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaze library. You can redistribute it and/or modify it under
// the terms of the New (Revised) BSD License. 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.
// 3. Neither the names of the Blaze development group nor the names of its contributors
// may be used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
// DAMAGE.
*/
//=================================================================================================
//*************************************************************************************************
// Includes
//*************************************************************************************************
#include <cstdlib>
#include <iostream>
#include <blaze/math/CompressedMatrix.h>
#include <blaze/math/HermitianMatrix.h>
#include <blaze/math/SymmetricMatrix.h>
#include <blazetest/mathtest/Creator.h>
#include <blazetest/mathtest/smatsmatkron/OperationTest.h>
#include <blazetest/system/MathTest.h>
#ifdef BLAZE_USE_HPX_THREADS
# include <hpx/hpx_main.hpp>
#endif
//=================================================================================================
//
// MAIN FUNCTION
//
//=================================================================================================
//*************************************************************************************************
int main()
{
std::cout << " Running 'SCaHCb'..." << std::endl;
using blazetest::mathtest::TypeA;
using blazetest::mathtest::TypeB;
try
{
// Matrix type definitions
using SCa = blaze::SymmetricMatrix< blaze::CompressedMatrix<TypeA> >;
using HCb = blaze::HermitianMatrix< blaze::CompressedMatrix<TypeB> >;
// Creator type definitions
using CSCa = blazetest::Creator<SCa>;
using CHCb = blazetest::Creator<HCb>;
// Running tests with small matrices
for( size_t i=0UL; i<=4UL; ++i ) {
for( size_t j=0UL; j<=i*i; ++j ) {
for( size_t k=0UL; k<=4UL; ++k ) {
for( size_t l=0UL; l<=k*k; ++l ) {
RUN_SMATSMATKRON_OPERATION_TEST( CSCa( i, j ), CHCb( k, l ) );
}
}
}
}
// Running tests with large matrices
RUN_SMATSMATKRON_OPERATION_TEST( CSCa( 9UL, 7UL ), CHCb( 8UL, 7UL ) );
RUN_SMATSMATKRON_OPERATION_TEST( CSCa( 16UL, 7UL ), CHCb( 15UL, 7UL ) );
}
catch( std::exception& ex ) {
std::cerr << "\n\n ERROR DETECTED during sparse matrix/sparse matrix Kronecker product:\n"
<< ex.what() << "\n";
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
//*************************************************************************************************
| [
"klaus.iglberger@gmail.com"
] | klaus.iglberger@gmail.com |
de6a78ef9c1c0e3b95bdc3efd527c51d60c9eb72 | 9ceb23bf6d0ca5f2dd28eda6abf9ac63a7140fad | /modUnit.cpp | 842ac5ae05dbde4384bf43c0b945943f84a6696c | [] | no_license | Henry1098/Ecoplanning | bad16d2bd9dd7639f8e36acc55aa27c0a413991d | 578fdd23bd4489d13cebbb87f7aebc340c8c1244 | refs/heads/master | 2020-04-04T19:40:39.545524 | 2019-08-26T15:03:15 | 2019-08-26T15:03:15 | 145,216,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "modUnit.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFDunit *FDunit;
//---------------------------------------------------------------------------
__fastcall TFDunit::TFDunit(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
| [
"henrynzinga@yahoo.fr"
] | henrynzinga@yahoo.fr |
ab85dbcb7dfb0ffee2fe4be58e34a899ae384c3b | 7846ddf91d6190eaa58eace94ef2409fc6bcbd05 | /Mafia/Silencer.cpp | 3dfd4086106e8e9a370c40028c76cc52bc188f17 | [] | no_license | maancham/Advanced-Programming | 1345d9431bfe8c9b348dbe6f704cba37e2f55a1e | 5cbe978739d956622ec1a7d34bd04873f0450b6a | refs/heads/master | 2022-01-21T17:21:55.034492 | 2019-05-14T05:33:32 | 2019-05-14T05:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | cpp | #include "Silencer.hpp"
using namespace std;
Silencer::Silencer(string _name,string _role, bool _silenced, bool _extra, int _health, bool is_used)
:Person(_name, _role, _silenced, _extra, _health)
{
already_silenced = is_used;
}
void Silencer::action()
{
already_silenced = true;
} | [
"hoomonchamani@yahoo.com"
] | hoomonchamani@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.