blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
201
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
7
100
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
260 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
11.4k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
80 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
8
9.86M
extension
stringclasses
52 values
content
stringlengths
8
9.86M
authors
listlengths
1
1
author
stringlengths
0
119
ac071f71035dc8e9e7427df0c91c6aeb7d1b25d7
68ba575031aeb5e2115eaff83d535c05c1fbafc7
/StudyingType.h
fe224beeee5051d5e64c1f36f6b2dc33d1f77b5c
[]
no_license
dushabaev/Hochschule_db
0d3d2bc23b0b9685ed9048b4b897777eb67fd73b
1953a11be4574f8d49311a84a17973154bce38ae
refs/heads/master
2021-01-23T02:30:08.656183
2015-12-15T17:30:24
2015-12-15T17:30:24
45,196,333
1
0
null
null
null
null
UTF-8
C++
false
false
958
h
//--------------------------------------------------------------------------- #ifndef StudyingTypeH #define StudyingTypeH //--------------------------------------------------------------------------- #include <System.Classes.hpp> #include <Vcl.Controls.hpp> #include <Vcl.StdCtrls.hpp> #include <Vcl.Forms.hpp> #include "template.h" #include <Data.DB.hpp> #include <Vcl.DBCtrls.hpp> #include <Vcl.DBGrids.hpp> #include <Vcl.ExtCtrls.hpp> #include <Vcl.Grids.hpp> //--------------------------------------------------------------------------- class TsutdyingTypeForm : public TtemplateForm { __published: // IDE-managed Components private: // User declarations public: // User declarations __fastcall TsutdyingTypeForm(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TsutdyingTypeForm *sutdyingTypeForm; //--------------------------------------------------------------------------- #endif
[ "0ne_eyed@ukr.net" ]
0ne_eyed@ukr.net
d453963ddec330e64200e75c7ee1638f10554387
4367ea77639029a0647feeda71a84a236b8d66f1
/Solver.h
620d795527f1f458468b5e0a7cc452e0edb0b233
[]
no_license
wakahiu/PageRank
18e968bb8e04828238d32d0e0f821310a8b61060
d1a6cd5e8d28b252c8719f18475bc68874525c26
refs/heads/master
2020-04-06T03:56:43.145804
2013-12-01T16:14:56
2013-12-01T16:14:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,103
h
#ifndef __SOLVER_H #define __SOLVER_H #include <x10rt.h> namespace x10 { namespace lang { template<class TPMGL(T)> class Rail; } } namespace x10 { namespace lang { template<class TPMGL(Z1), class TPMGL(U)> class Fun_0_1; } } class Solver__MatrixRow; class Solver__NodeProb; namespace x10 { namespace util { template<class TPMGL(K), class TPMGL(V)> class HashMap; } } namespace x10 { namespace util { template<class TPMGL(T)> class Box; } } class WebNode; namespace x10 { namespace io { class Printer; } } namespace x10 { namespace io { class Console; } } namespace x10 { namespace lang { class Any; } } namespace x10 { namespace lang { class String; } } namespace x10 { namespace lang { class Runtime; } } namespace x10 { namespace lang { class PlaceGroup__SimplePlaceGroup; } } namespace x10 { namespace lang { class PlaceGroup; } } namespace x10 { namespace lang { class Error; } } namespace x10 { namespace lang { class Place; } } namespace x10 { namespace lang { template<class TPMGL(T)> class PlaceLocalHandle; } } namespace x10 { namespace lang { template<class TPMGL(U)> class Fun_0_0; } } namespace x10 { namespace util { namespace concurrent { class AtomicDouble; } } } namespace x10 { namespace lang { class FinishState; } } namespace x10 { namespace lang { class CheckedThrowable; } } namespace x10 { namespace lang { class VoidFun_0_0; } } namespace x10 { namespace lang { class Runtime__Profile; } } namespace x10 { namespace lang { class Exception; } } namespace x10 { namespace compiler { class AsyncClosure; } } namespace x10 { namespace compiler { class Finalization; } } namespace x10 { namespace compiler { class Abort; } } namespace x10 { namespace compiler { class CompilerFlags; } } namespace x10 { namespace lang { template<class TPMGL(T)> class Iterator; } } namespace x10 { namespace lang { class Math; } } namespace x10 { namespace util { template<class TPMGL(T)> class ArrayList; } } namespace x10 { namespace util { template<class TPMGL(T)> class ListIterator; } } namespace x10 { namespace lang { class LongRange; } } class Solver : public x10::lang::X10Class { public: RTT_H_DECLS_CLASS virtual x10::lang::Rail<x10_double >* makeSolutionFragment(x10_long size); virtual x10::lang::Rail<Solver__MatrixRow* >* makeFragment(x10_long size); virtual x10::util::HashMap<x10_long, x10_long>* makeIndexMap(x10_long offset, x10_long numItems); virtual x10::lang::Rail<x10_double >* solve(x10::lang::Rail<WebNode* >* webGraph, x10_double dampingFactor, x10_double epsilon); virtual x10::lang::Rail<Solver__MatrixRow* >* graphToMatrix( x10::lang::Rail<WebNode* >* webGraph); virtual void prettyFragmentPrint(x10::lang::Rail<x10::util::HashMap<x10_long, Solver__NodeProb*>* >* sparseMatrix, x10_long n); virtual void prettyPrint(x10::lang::Rail<x10::util::HashMap<x10_long, Solver__NodeProb*>* >* sparseMatrix); virtual x10_double distance(x10::lang::Rail<x10_double >* v1, x10::lang::Rail<x10_double >* v2); virtual Solver* Solver____this__Solver(); void _constructor(); static Solver* _make(); virtual void __fieldInitializers_Solver(); // Serialization public: static const x10aux::serialization_id_t _serialization_id; public: virtual x10aux::serialization_id_t _get_serialization_id() { return _serialization_id; } public: virtual void _serialize_body(x10aux::serialization_buffer& buf); public: static x10::lang::Reference* _deserializer(x10aux::deserialization_buffer& buf); public: void _deserialize_body(x10aux::deserialization_buffer& buf); }; #endif // SOLVER_H class Solver; #ifndef SOLVER_H_NODEPS #define SOLVER_H_NODEPS #ifndef SOLVER_H_GENERICS #define SOLVER_H_GENERICS #endif // SOLVER_H_GENERICS #endif // __SOLVER_H_NODEPS
[ "pwn2107@wellington.cs.columbia.edu" ]
pwn2107@wellington.cs.columbia.edu
6f8d293b56bf40d13fc9de1005ba206312a471ad
0ac7892ba90d6102997837988ecc51304d13b7cd
/Odyssey++_2.0/Odyssey_Server/xmlconvert.h
b636a55f148a8b70027c305e3950518b819d284c
[]
no_license
delias2798/Odysseyplusspluss2.0
18de5e3fa1225b569d83e8875e0d5f50211a5b72
4ce9ad111c61231d720819f43fdff7dbac24f532
refs/heads/master
2020-03-19T01:16:30.819511
2018-06-16T14:38:42
2018-06-16T14:38:42
135,534,262
0
0
null
null
null
null
UTF-8
C++
false
false
2,204
h
#ifndef XMLCONVERT_H #define XMLCONVERT_H #include <iostream> #include <cstdlib> #include <iostream> #include <fstream> #include <QString> #include <QtXml> #include <QDebug> using namespace std; class xmlConvert { public: xmlConvert(); string getData(QString data); /** * @brief xmlRead aplica las librerias de dom para estraer datos xml * @param xml */ void xmlRead(QString xml); /** * @brief getData2 especifica que dato se desea extraer * @param root * @param data * @return */ string getData2(QDomElement root, QString data); void xmlRead2(string xml); /** * @brief xmlUser constructor del xml de user * @param user_ * @param age_ * @param friends_ * @param lastname_ * @param like_ * @param name_ * @param pass_ * @return */ QString xmlUser(QString user_, QString age_, QString friends_, QString lastname_, QString like_, QString name_, QString pass_); /** * @brief xmlTrack constructor del xml del tracik * @param user_ * @param album_ * @param artist_ * @param genre_ * @param letter_ * @param title_ * @param year_ * @return */ QString xmlTrack(QString user_, QString album_, QString artist_, QString genre_, QString letter_, QString title_, QString year_,QString dir_, QString rate_); /** * @brief xmlHead cabezera de la lista de xmls * @return */ QDomElement xmlHead(); /** * @brief trackListn anidan mas xml a la cabezera * @param user_ * @param title_ * @return */ QDomElement trackList(QString user_, QString title_); /** * @brief buildList definen a los segmentods de xml que pertenecen a un xml superior * @param list * @param track */ void buildList(QDomElement list, QDomElement track); /** * @brief finishList termina la construccion del xml anidado * @return */ QString finishList(); QString xmlTrack2(QString user_, QString letter_, QString title_, QString dir_, QString rate_); private: QDomDocument document; QDomElement root; }; #endif // XMLCONVERT_H
[ "delias2798" ]
delias2798
aaa8f50ef05ee4d6a43e0c8ebc964190f0d27906
3be02cf4f94da9638d1356b8063dba81e374fabc
/aboutdialog.cpp
57bc553a1f6336919d51a5413225fc4770174d77
[]
no_license
yns88/rpg
864178aac91e5613098c331233e19dc73203d4cc
570a26b793807dd0ae1b4797c370311cc74f469b
refs/heads/master
2021-01-19T18:10:43.377714
2013-08-28T02:03:11
2013-08-28T02:03:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
329
cpp
#include "aboutdialog.h" #include "ui_aboutdialog.h" AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDialog) { ui->setupUi(this); this->setWindowTitle("About"); } AboutDialog::~AboutDialog() { delete ui; } void AboutDialog::on_pushButton_clicked() { this->deleteLater(); }
[ "yns88@Rushy.(none)" ]
yns88@Rushy.(none)
4f7a50bf74219b02205ddbadf1112f772084d1e1
7c38be5b2a708c43ac7bd12e8a382908a56da7b1
/proj/alog/856. Score of Parentheses/856. Score of Parentheses.h
c68fb8eb92f1700263452440cd12551efdfcb2f3
[ "MIT" ]
permissive
andy-sheng/leetcode
408572ed16da2a126e4703ee8e329d1af861be14
1fa070036f31d0bd18a9a11a5c771641f3cd9a03
refs/heads/master
2021-12-30T09:06:20.173352
2021-12-26T17:08:23
2021-12-26T17:08:23
44,297,054
1
0
null
null
null
null
UTF-8
C++
false
false
1,105
h
// // 856. Score of Parentheses.h // leetcode // // Created by andysheng on 2019/11/20. // Copyright © 2019 Andy. All rights reserved. // #ifndef _56__Score_of_Parentheses_h #define _56__Score_of_Parentheses_h #include "DataStructures.h" namespace ScoreOfParentheses { static int const kLeft = -1; class Solution { public: int scoreOfParentheses(string S) { vector<int> stack; for (char s: S) { if (s == ')') { int tmp = 0; while (stack.back() != kLeft) { tmp += stack.back(); stack.pop_back(); } stack.pop_back(); stack.push_back(tmp == 0 ? 1 : 2 * tmp); cout << stack.back() << endl; } else { stack.push_back(kLeft); } } int ret = 0; for (int i: stack) { ret += i; } return ret; } }; } #endif /* _56__Score_of_Parentheses_h */
[ "andysheng@live.com" ]
andysheng@live.com
84e05d16d33d26874a5d2429906b008178869e44
e3e6fc037f47527e6bc43f1d1300f39ac8f0aabc
/google/genomics/v1/references.pb.cc
68b7456b9b37501cd2d961e57debeff75dd52b49
[]
no_license
msachtler/bazel-event-protocol-parser
62c136cb1f60f4ee3316bf15e1e5a5e727445536
d7424d21aa0dc121acc4d64b427ba365a3581a20
refs/heads/master
2021-07-05T15:13:19.502829
2017-09-24T04:15:16
2017-09-24T04:15:16
102,999,437
1
0
null
null
null
null
UTF-8
C++
false
true
271,628
cc
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/genomics/v1/references.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "google/genomics/v1/references.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/wire_format_lite_inl.h> #include <google/protobuf/descriptor.h> #include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/reflection_ops.h> #include <google/protobuf/wire_format.h> // @@protoc_insertion_point(includes) namespace google { namespace genomics { namespace v1 { class ReferenceDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Reference> { } _Reference_default_instance_; class ReferenceSetDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ReferenceSet> { } _ReferenceSet_default_instance_; class SearchReferenceSetsRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SearchReferenceSetsRequest> { } _SearchReferenceSetsRequest_default_instance_; class SearchReferenceSetsResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SearchReferenceSetsResponse> { } _SearchReferenceSetsResponse_default_instance_; class GetReferenceSetRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<GetReferenceSetRequest> { } _GetReferenceSetRequest_default_instance_; class SearchReferencesRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SearchReferencesRequest> { } _SearchReferencesRequest_default_instance_; class SearchReferencesResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SearchReferencesResponse> { } _SearchReferencesResponse_default_instance_; class GetReferenceRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<GetReferenceRequest> { } _GetReferenceRequest_default_instance_; class ListBasesRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ListBasesRequest> { } _ListBasesRequest_default_instance_; class ListBasesResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ListBasesResponse> { } _ListBasesResponse_default_instance_; namespace protobuf_google_2fgenomics_2fv1_2freferences_2eproto { namespace { ::google::protobuf::Metadata file_level_metadata[10]; } // namespace PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField const TableStruct::entries[] = { {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0}, }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField const TableStruct::aux[] = { ::google::protobuf::internal::AuxillaryParseTableField(), }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const TableStruct::schema[] = { { NULL, NULL, 0, -1, -1, false }, { NULL, NULL, 0, -1, -1, false }, { NULL, NULL, 0, -1, -1, false }, { NULL, NULL, 0, -1, -1, false }, { NULL, NULL, 0, -1, -1, false }, { NULL, NULL, 0, -1, -1, false }, { NULL, NULL, 0, -1, -1, false }, { NULL, NULL, 0, -1, -1, false }, { NULL, NULL, 0, -1, -1, false }, { NULL, NULL, 0, -1, -1, false }, }; const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, length_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, md5checksum_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, source_uri_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, source_accessions_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, ncbi_taxon_id_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceSet, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceSet, id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceSet, reference_ids_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceSet, md5checksum_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceSet, ncbi_taxon_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceSet, description_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceSet, assembly_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceSet, source_uri_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceSet, source_accessions_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferenceSetsRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferenceSetsRequest, md5checksums_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferenceSetsRequest, accessions_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferenceSetsRequest, assembly_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferenceSetsRequest, page_token_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferenceSetsRequest, page_size_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferenceSetsResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferenceSetsResponse, reference_sets_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferenceSetsResponse, next_page_token_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetReferenceSetRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetReferenceSetRequest, reference_set_id_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferencesRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferencesRequest, md5checksums_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferencesRequest, accessions_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferencesRequest, reference_set_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferencesRequest, page_token_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferencesRequest, page_size_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferencesResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferencesResponse, references_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SearchReferencesResponse, next_page_token_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetReferenceRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetReferenceRequest, reference_id_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListBasesRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListBasesRequest, reference_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListBasesRequest, start_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListBasesRequest, end_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListBasesRequest, page_token_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListBasesRequest, page_size_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListBasesResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListBasesResponse, offset_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListBasesResponse, sequence_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListBasesResponse, next_page_token_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] = { { 0, -1, sizeof(Reference)}, { 12, -1, sizeof(ReferenceSet)}, { 25, -1, sizeof(SearchReferenceSetsRequest)}, { 35, -1, sizeof(SearchReferenceSetsResponse)}, { 42, -1, sizeof(GetReferenceSetRequest)}, { 48, -1, sizeof(SearchReferencesRequest)}, { 58, -1, sizeof(SearchReferencesResponse)}, { 65, -1, sizeof(GetReferenceRequest)}, { 71, -1, sizeof(ListBasesRequest)}, { 81, -1, sizeof(ListBasesResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast<const ::google::protobuf::Message*>(&_Reference_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&_ReferenceSet_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&_SearchReferenceSetsRequest_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&_SearchReferenceSetsResponse_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&_GetReferenceSetRequest_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&_SearchReferencesRequest_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&_SearchReferencesResponse_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&_GetReferenceRequest_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&_ListBasesRequest_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&_ListBasesResponse_default_instance_), }; namespace { void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "google/genomics/v1/references.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 10); } } // namespace void TableStruct::Shutdown() { _Reference_default_instance_.Shutdown(); delete file_level_metadata[0].reflection; _ReferenceSet_default_instance_.Shutdown(); delete file_level_metadata[1].reflection; _SearchReferenceSetsRequest_default_instance_.Shutdown(); delete file_level_metadata[2].reflection; _SearchReferenceSetsResponse_default_instance_.Shutdown(); delete file_level_metadata[3].reflection; _GetReferenceSetRequest_default_instance_.Shutdown(); delete file_level_metadata[4].reflection; _SearchReferencesRequest_default_instance_.Shutdown(); delete file_level_metadata[5].reflection; _SearchReferencesResponse_default_instance_.Shutdown(); delete file_level_metadata[6].reflection; _GetReferenceRequest_default_instance_.Shutdown(); delete file_level_metadata[7].reflection; _ListBasesRequest_default_instance_.Shutdown(); delete file_level_metadata[8].reflection; _ListBasesResponse_default_instance_.Shutdown(); delete file_level_metadata[9].reflection; } void TableStruct::InitDefaultsImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::internal::InitProtobufDefaults(); ::google::api::protobuf_google_2fapi_2fannotations_2eproto::InitDefaults(); _Reference_default_instance_.DefaultConstruct(); _ReferenceSet_default_instance_.DefaultConstruct(); _SearchReferenceSetsRequest_default_instance_.DefaultConstruct(); _SearchReferenceSetsResponse_default_instance_.DefaultConstruct(); _GetReferenceSetRequest_default_instance_.DefaultConstruct(); _SearchReferencesRequest_default_instance_.DefaultConstruct(); _SearchReferencesResponse_default_instance_.DefaultConstruct(); _GetReferenceRequest_default_instance_.DefaultConstruct(); _ListBasesRequest_default_instance_.DefaultConstruct(); _ListBasesResponse_default_instance_.DefaultConstruct(); } void InitDefaults() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] = { "\n#google/genomics/v1/references.proto\022\022g" "oogle.genomics.v1\032\034google/api/annotation" "s.proto\"\220\001\n\tReference\022\n\n\002id\030\001 \001(\t\022\016\n\006len" "gth\030\002 \001(\003\022\023\n\013md5checksum\030\003 \001(\t\022\014\n\004name\030\004" " \001(\t\022\022\n\nsource_uri\030\005 \001(\t\022\031\n\021source_acces" "sions\030\006 \003(\t\022\025\n\rncbi_taxon_id\030\007 \001(\005\"\266\001\n\014R" "eferenceSet\022\n\n\002id\030\001 \001(\t\022\025\n\rreference_ids" "\030\002 \003(\t\022\023\n\013md5checksum\030\003 \001(\t\022\025\n\rncbi_taxo" "n_id\030\004 \001(\005\022\023\n\013description\030\005 \001(\t\022\023\n\013assem" "bly_id\030\006 \001(\t\022\022\n\nsource_uri\030\007 \001(\t\022\031\n\021sour" "ce_accessions\030\010 \003(\t\"\202\001\n\032SearchReferenceS" "etsRequest\022\024\n\014md5checksums\030\001 \003(\t\022\022\n\nacce" "ssions\030\002 \003(\t\022\023\n\013assembly_id\030\003 \001(\t\022\022\n\npag" "e_token\030\004 \001(\t\022\021\n\tpage_size\030\005 \001(\005\"p\n\033Sear" "chReferenceSetsResponse\0228\n\016reference_set" "s\030\001 \003(\0132 .google.genomics.v1.ReferenceSe" "t\022\027\n\017next_page_token\030\002 \001(\t\"2\n\026GetReferen" "ceSetRequest\022\030\n\020reference_set_id\030\001 \001(\t\"\204" "\001\n\027SearchReferencesRequest\022\024\n\014md5checksu" "ms\030\001 \003(\t\022\022\n\naccessions\030\002 \003(\t\022\030\n\020referenc" "e_set_id\030\003 \001(\t\022\022\n\npage_token\030\004 \001(\t\022\021\n\tpa" "ge_size\030\005 \001(\005\"f\n\030SearchReferencesRespons" "e\0221\n\nreferences\030\001 \003(\0132\035.google.genomics." "v1.Reference\022\027\n\017next_page_token\030\002 \001(\t\"+\n" "\023GetReferenceRequest\022\024\n\014reference_id\030\001 \001" "(\t\"k\n\020ListBasesRequest\022\024\n\014reference_id\030\001" " \001(\t\022\r\n\005start\030\002 \001(\003\022\013\n\003end\030\003 \001(\003\022\022\n\npage" "_token\030\004 \001(\t\022\021\n\tpage_size\030\005 \001(\005\"N\n\021ListB" "asesResponse\022\016\n\006offset\030\001 \001(\003\022\020\n\010sequence" "\030\002 \001(\t\022\027\n\017next_page_token\030\003 \001(\t2\333\005\n\022Refe" "renceServiceV1\022\233\001\n\023SearchReferenceSets\022." ".google.genomics.v1.SearchReferenceSetsR" "equest\032/.google.genomics.v1.SearchRefere" "nceSetsResponse\"#\202\323\344\223\002\035\"\030/v1/referencese" "ts/search:\001*\022\215\001\n\017GetReferenceSet\022*.googl" "e.genomics.v1.GetReferenceSetRequest\032 .g" "oogle.genomics.v1.ReferenceSet\",\202\323\344\223\002&\022$" "/v1/referencesets/{reference_set_id}\022\217\001\n" "\020SearchReferences\022+.google.genomics.v1.S" "earchReferencesRequest\032,.google.genomics" ".v1.SearchReferencesResponse\" \202\323\344\223\002\032\"\025/v" "1/references/search:\001*\022}\n\014GetReference\022\'" ".google.genomics.v1.GetReferenceRequest\032" "\035.google.genomics.v1.Reference\"%\202\323\344\223\002\037\022\035" "/v1/references/{reference_id}\022\205\001\n\tListBa" "ses\022$.google.genomics.v1.ListBasesReques" "t\032%.google.genomics.v1.ListBasesResponse" "\"+\202\323\344\223\002%\022#/v1/references/{reference_id}/" "basesBj\n\026com.google.genomics.v1B\017Referen" "cesProtoP\001Z:google.golang.org/genproto/g" "oogleapis/genomics/v1;genomics\370\001\001b\006proto" "3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 2041); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "google/genomics/v1/references.proto", &protobuf_RegisterTypes); ::google::api::protobuf_google_2fapi_2fannotations_2eproto::AddDescriptors(); ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); } void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_google_2fgenomics_2fv1_2freferences_2eproto // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Reference::kIdFieldNumber; const int Reference::kLengthFieldNumber; const int Reference::kMd5ChecksumFieldNumber; const int Reference::kNameFieldNumber; const int Reference::kSourceUriFieldNumber; const int Reference::kSourceAccessionsFieldNumber; const int Reference::kNcbiTaxonIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Reference::Reference() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:google.genomics.v1.Reference) } Reference::Reference(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), source_accessions_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.genomics.v1.Reference) } Reference::Reference(const Reference& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), source_accessions_(from.source_accessions_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.id().size() > 0) { id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id(), GetArenaNoVirtual()); } md5checksum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.md5checksum().size() > 0) { md5checksum_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.md5checksum(), GetArenaNoVirtual()); } name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.name().size() > 0) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(), GetArenaNoVirtual()); } source_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.source_uri().size() > 0) { source_uri_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_uri(), GetArenaNoVirtual()); } ::memcpy(&length_, &from.length_, reinterpret_cast<char*>(&ncbi_taxon_id_) - reinterpret_cast<char*>(&length_) + sizeof(ncbi_taxon_id_)); // @@protoc_insertion_point(copy_constructor:google.genomics.v1.Reference) } void Reference::SharedCtor() { id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); md5checksum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); source_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&length_, 0, reinterpret_cast<char*>(&ncbi_taxon_id_) - reinterpret_cast<char*>(&length_) + sizeof(ncbi_taxon_id_)); _cached_size_ = 0; } Reference::~Reference() { // @@protoc_insertion_point(destructor:google.genomics.v1.Reference) SharedDtor(); } void Reference::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } id_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); md5checksum_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); source_uri_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void Reference::ArenaDtor(void* object) { Reference* _this = reinterpret_cast< Reference* >(object); (void)_this; } void Reference::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void Reference::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Reference::descriptor() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Reference& Reference::default_instance() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); return *internal_default_instance(); } Reference* Reference::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<Reference>(arena); } void Reference::Clear() { // @@protoc_insertion_point(message_clear_start:google.genomics.v1.Reference) source_accessions_.Clear(); id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); md5checksum_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); source_uri_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); ::memset(&length_, 0, reinterpret_cast<char*>(&ncbi_taxon_id_) - reinterpret_cast<char*>(&length_) + sizeof(ncbi_taxon_id_)); } bool Reference::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.genomics.v1.Reference) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.Reference.id")); } else { goto handle_unusual; } break; } // int64 length = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &length_))); } else { goto handle_unusual; } break; } // string md5checksum = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_md5checksum())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksum().data(), this->md5checksum().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.Reference.md5checksum")); } else { goto handle_unusual; } break; } // string name = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.Reference.name")); } else { goto handle_unusual; } break; } // string source_uri = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(42u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_source_uri())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_uri().data(), this->source_uri().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.Reference.source_uri")); } else { goto handle_unusual; } break; } // repeated string source_accessions = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(50u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_source_accessions())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_accessions(this->source_accessions_size() - 1).data(), this->source_accessions(this->source_accessions_size() - 1).length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.Reference.source_accessions")); } else { goto handle_unusual; } break; } // int32 ncbi_taxon_id = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(56u)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &ncbi_taxon_id_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:google.genomics.v1.Reference) return true; failure: // @@protoc_insertion_point(parse_failure:google.genomics.v1.Reference) return false; #undef DO_ } void Reference::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:google.genomics.v1.Reference) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string id = 1; if (this->id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.Reference.id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->id(), output); } // int64 length = 2; if (this->length() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->length(), output); } // string md5checksum = 3; if (this->md5checksum().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksum().data(), this->md5checksum().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.Reference.md5checksum"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->md5checksum(), output); } // string name = 4; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.Reference.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->name(), output); } // string source_uri = 5; if (this->source_uri().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_uri().data(), this->source_uri().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.Reference.source_uri"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->source_uri(), output); } // repeated string source_accessions = 6; for (int i = 0, n = this->source_accessions_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_accessions(i).data(), this->source_accessions(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.Reference.source_accessions"); ::google::protobuf::internal::WireFormatLite::WriteString( 6, this->source_accessions(i), output); } // int32 ncbi_taxon_id = 7; if (this->ncbi_taxon_id() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->ncbi_taxon_id(), output); } // @@protoc_insertion_point(serialize_end:google.genomics.v1.Reference) } ::google::protobuf::uint8* Reference::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:google.genomics.v1.Reference) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string id = 1; if (this->id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.Reference.id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->id(), target); } // int64 length = 2; if (this->length() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->length(), target); } // string md5checksum = 3; if (this->md5checksum().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksum().data(), this->md5checksum().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.Reference.md5checksum"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->md5checksum(), target); } // string name = 4; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.Reference.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->name(), target); } // string source_uri = 5; if (this->source_uri().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_uri().data(), this->source_uri().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.Reference.source_uri"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5, this->source_uri(), target); } // repeated string source_accessions = 6; for (int i = 0, n = this->source_accessions_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_accessions(i).data(), this->source_accessions(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.Reference.source_accessions"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(6, this->source_accessions(i), target); } // int32 ncbi_taxon_id = 7; if (this->ncbi_taxon_id() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->ncbi_taxon_id(), target); } // @@protoc_insertion_point(serialize_to_array_end:google.genomics.v1.Reference) return target; } size_t Reference::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.genomics.v1.Reference) size_t total_size = 0; // repeated string source_accessions = 6; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->source_accessions_size()); for (int i = 0, n = this->source_accessions_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->source_accessions(i)); } // string id = 1; if (this->id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->id()); } // string md5checksum = 3; if (this->md5checksum().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->md5checksum()); } // string name = 4; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // string source_uri = 5; if (this->source_uri().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->source_uri()); } // int64 length = 2; if (this->length() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->length()); } // int32 ncbi_taxon_id = 7; if (this->ncbi_taxon_id() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->ncbi_taxon_id()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Reference::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:google.genomics.v1.Reference) GOOGLE_DCHECK_NE(&from, this); const Reference* source = ::google::protobuf::internal::DynamicCastToGenerated<const Reference>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.genomics.v1.Reference) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:google.genomics.v1.Reference) MergeFrom(*source); } } void Reference::MergeFrom(const Reference& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.genomics.v1.Reference) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; source_accessions_.MergeFrom(from.source_accessions_); if (from.id().size() > 0) { set_id(from.id()); } if (from.md5checksum().size() > 0) { set_md5checksum(from.md5checksum()); } if (from.name().size() > 0) { set_name(from.name()); } if (from.source_uri().size() > 0) { set_source_uri(from.source_uri()); } if (from.length() != 0) { set_length(from.length()); } if (from.ncbi_taxon_id() != 0) { set_ncbi_taxon_id(from.ncbi_taxon_id()); } } void Reference::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:google.genomics.v1.Reference) if (&from == this) return; Clear(); MergeFrom(from); } void Reference::CopyFrom(const Reference& from) { // @@protoc_insertion_point(class_specific_copy_from_start:google.genomics.v1.Reference) if (&from == this) return; Clear(); MergeFrom(from); } bool Reference::IsInitialized() const { return true; } void Reference::Swap(Reference* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { Reference* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void Reference::UnsafeArenaSwap(Reference* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void Reference::InternalSwap(Reference* other) { source_accessions_.InternalSwap(&other->source_accessions_); id_.Swap(&other->id_); md5checksum_.Swap(&other->md5checksum_); name_.Swap(&other->name_); source_uri_.Swap(&other->source_uri_); std::swap(length_, other->length_); std::swap(ncbi_taxon_id_, other->ncbi_taxon_id_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Reference::GetMetadata() const { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // Reference // string id = 1; void Reference::clear_id() { id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& Reference::id() const { // @@protoc_insertion_point(field_get:google.genomics.v1.Reference.id) return id_.Get(); } void Reference::set_id(const ::std::string& value) { id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.Reference.id) } void Reference::set_id(const char* value) { GOOGLE_DCHECK(value != NULL); id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.Reference.id) } void Reference::set_id(const char* value, size_t size) { id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.Reference.id) } ::std::string* Reference::mutable_id() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.Reference.id) return id_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* Reference::release_id() { // @@protoc_insertion_point(field_release:google.genomics.v1.Reference.id) return id_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* Reference::unsafe_arena_release_id() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.Reference.id) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return id_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void Reference::set_allocated_id(::std::string* id) { if (id != NULL) { } else { } id_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.Reference.id) } void Reference::unsafe_arena_set_allocated_id( ::std::string* id) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (id != NULL) { } else { } id_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.Reference.id) } // int64 length = 2; void Reference::clear_length() { length_ = GOOGLE_LONGLONG(0); } ::google::protobuf::int64 Reference::length() const { // @@protoc_insertion_point(field_get:google.genomics.v1.Reference.length) return length_; } void Reference::set_length(::google::protobuf::int64 value) { length_ = value; // @@protoc_insertion_point(field_set:google.genomics.v1.Reference.length) } // string md5checksum = 3; void Reference::clear_md5checksum() { md5checksum_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& Reference::md5checksum() const { // @@protoc_insertion_point(field_get:google.genomics.v1.Reference.md5checksum) return md5checksum_.Get(); } void Reference::set_md5checksum(const ::std::string& value) { md5checksum_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.Reference.md5checksum) } void Reference::set_md5checksum(const char* value) { GOOGLE_DCHECK(value != NULL); md5checksum_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.Reference.md5checksum) } void Reference::set_md5checksum(const char* value, size_t size) { md5checksum_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.Reference.md5checksum) } ::std::string* Reference::mutable_md5checksum() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.Reference.md5checksum) return md5checksum_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* Reference::release_md5checksum() { // @@protoc_insertion_point(field_release:google.genomics.v1.Reference.md5checksum) return md5checksum_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* Reference::unsafe_arena_release_md5checksum() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.Reference.md5checksum) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return md5checksum_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void Reference::set_allocated_md5checksum(::std::string* md5checksum) { if (md5checksum != NULL) { } else { } md5checksum_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), md5checksum, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.Reference.md5checksum) } void Reference::unsafe_arena_set_allocated_md5checksum( ::std::string* md5checksum) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (md5checksum != NULL) { } else { } md5checksum_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), md5checksum, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.Reference.md5checksum) } // string name = 4; void Reference::clear_name() { name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& Reference::name() const { // @@protoc_insertion_point(field_get:google.genomics.v1.Reference.name) return name_.Get(); } void Reference::set_name(const ::std::string& value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.Reference.name) } void Reference::set_name(const char* value) { GOOGLE_DCHECK(value != NULL); name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.Reference.name) } void Reference::set_name(const char* value, size_t size) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.Reference.name) } ::std::string* Reference::mutable_name() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.Reference.name) return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* Reference::release_name() { // @@protoc_insertion_point(field_release:google.genomics.v1.Reference.name) return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* Reference::unsafe_arena_release_name() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.Reference.name) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void Reference::set_allocated_name(::std::string* name) { if (name != NULL) { } else { } name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.Reference.name) } void Reference::unsafe_arena_set_allocated_name( ::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (name != NULL) { } else { } name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.Reference.name) } // string source_uri = 5; void Reference::clear_source_uri() { source_uri_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& Reference::source_uri() const { // @@protoc_insertion_point(field_get:google.genomics.v1.Reference.source_uri) return source_uri_.Get(); } void Reference::set_source_uri(const ::std::string& value) { source_uri_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.Reference.source_uri) } void Reference::set_source_uri(const char* value) { GOOGLE_DCHECK(value != NULL); source_uri_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.Reference.source_uri) } void Reference::set_source_uri(const char* value, size_t size) { source_uri_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.Reference.source_uri) } ::std::string* Reference::mutable_source_uri() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.Reference.source_uri) return source_uri_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* Reference::release_source_uri() { // @@protoc_insertion_point(field_release:google.genomics.v1.Reference.source_uri) return source_uri_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* Reference::unsafe_arena_release_source_uri() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.Reference.source_uri) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return source_uri_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void Reference::set_allocated_source_uri(::std::string* source_uri) { if (source_uri != NULL) { } else { } source_uri_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_uri, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.Reference.source_uri) } void Reference::unsafe_arena_set_allocated_source_uri( ::std::string* source_uri) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (source_uri != NULL) { } else { } source_uri_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_uri, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.Reference.source_uri) } // repeated string source_accessions = 6; int Reference::source_accessions_size() const { return source_accessions_.size(); } void Reference::clear_source_accessions() { source_accessions_.Clear(); } const ::std::string& Reference::source_accessions(int index) const { // @@protoc_insertion_point(field_get:google.genomics.v1.Reference.source_accessions) return source_accessions_.Get(index); } ::std::string* Reference::mutable_source_accessions(int index) { // @@protoc_insertion_point(field_mutable:google.genomics.v1.Reference.source_accessions) return source_accessions_.Mutable(index); } void Reference::set_source_accessions(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.Reference.source_accessions) source_accessions_.Mutable(index)->assign(value); } #if LANG_CXX11 void Reference::set_source_accessions(int index, ::std::string&& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.Reference.source_accessions) source_accessions_.Mutable(index)->assign(std::move(value)); } #endif void Reference::set_source_accessions(int index, const char* value) { GOOGLE_DCHECK(value != NULL); source_accessions_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.genomics.v1.Reference.source_accessions) } void Reference::set_source_accessions(int index, const char* value, size_t size) { source_accessions_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.Reference.source_accessions) } ::std::string* Reference::add_source_accessions() { // @@protoc_insertion_point(field_add_mutable:google.genomics.v1.Reference.source_accessions) return source_accessions_.Add(); } void Reference::add_source_accessions(const ::std::string& value) { source_accessions_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.genomics.v1.Reference.source_accessions) } #if LANG_CXX11 void Reference::add_source_accessions(::std::string&& value) { source_accessions_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.genomics.v1.Reference.source_accessions) } #endif void Reference::add_source_accessions(const char* value) { GOOGLE_DCHECK(value != NULL); source_accessions_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.genomics.v1.Reference.source_accessions) } void Reference::add_source_accessions(const char* value, size_t size) { source_accessions_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:google.genomics.v1.Reference.source_accessions) } const ::google::protobuf::RepeatedPtrField< ::std::string>& Reference::source_accessions() const { // @@protoc_insertion_point(field_list:google.genomics.v1.Reference.source_accessions) return source_accessions_; } ::google::protobuf::RepeatedPtrField< ::std::string>* Reference::mutable_source_accessions() { // @@protoc_insertion_point(field_mutable_list:google.genomics.v1.Reference.source_accessions) return &source_accessions_; } // int32 ncbi_taxon_id = 7; void Reference::clear_ncbi_taxon_id() { ncbi_taxon_id_ = 0; } ::google::protobuf::int32 Reference::ncbi_taxon_id() const { // @@protoc_insertion_point(field_get:google.genomics.v1.Reference.ncbi_taxon_id) return ncbi_taxon_id_; } void Reference::set_ncbi_taxon_id(::google::protobuf::int32 value) { ncbi_taxon_id_ = value; // @@protoc_insertion_point(field_set:google.genomics.v1.Reference.ncbi_taxon_id) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ReferenceSet::kIdFieldNumber; const int ReferenceSet::kReferenceIdsFieldNumber; const int ReferenceSet::kMd5ChecksumFieldNumber; const int ReferenceSet::kNcbiTaxonIdFieldNumber; const int ReferenceSet::kDescriptionFieldNumber; const int ReferenceSet::kAssemblyIdFieldNumber; const int ReferenceSet::kSourceUriFieldNumber; const int ReferenceSet::kSourceAccessionsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ReferenceSet::ReferenceSet() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:google.genomics.v1.ReferenceSet) } ReferenceSet::ReferenceSet(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), reference_ids_(arena), source_accessions_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.genomics.v1.ReferenceSet) } ReferenceSet::ReferenceSet(const ReferenceSet& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), reference_ids_(from.reference_ids_), source_accessions_(from.source_accessions_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.id().size() > 0) { id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id(), GetArenaNoVirtual()); } md5checksum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.md5checksum().size() > 0) { md5checksum_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.md5checksum(), GetArenaNoVirtual()); } description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.description().size() > 0) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description(), GetArenaNoVirtual()); } assembly_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.assembly_id().size() > 0) { assembly_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.assembly_id(), GetArenaNoVirtual()); } source_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.source_uri().size() > 0) { source_uri_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_uri(), GetArenaNoVirtual()); } ncbi_taxon_id_ = from.ncbi_taxon_id_; // @@protoc_insertion_point(copy_constructor:google.genomics.v1.ReferenceSet) } void ReferenceSet::SharedCtor() { id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); md5checksum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); assembly_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); source_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ncbi_taxon_id_ = 0; _cached_size_ = 0; } ReferenceSet::~ReferenceSet() { // @@protoc_insertion_point(destructor:google.genomics.v1.ReferenceSet) SharedDtor(); } void ReferenceSet::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } id_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); md5checksum_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); description_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); assembly_id_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); source_uri_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void ReferenceSet::ArenaDtor(void* object) { ReferenceSet* _this = reinterpret_cast< ReferenceSet* >(object); (void)_this; } void ReferenceSet::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void ReferenceSet::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* ReferenceSet::descriptor() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ReferenceSet& ReferenceSet::default_instance() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); return *internal_default_instance(); } ReferenceSet* ReferenceSet::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<ReferenceSet>(arena); } void ReferenceSet::Clear() { // @@protoc_insertion_point(message_clear_start:google.genomics.v1.ReferenceSet) reference_ids_.Clear(); source_accessions_.Clear(); id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); md5checksum_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); assembly_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); source_uri_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); ncbi_taxon_id_ = 0; } bool ReferenceSet::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.genomics.v1.ReferenceSet) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ReferenceSet.id")); } else { goto handle_unusual; } break; } // repeated string reference_ids = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_reference_ids())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_ids(this->reference_ids_size() - 1).data(), this->reference_ids(this->reference_ids_size() - 1).length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ReferenceSet.reference_ids")); } else { goto handle_unusual; } break; } // string md5checksum = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_md5checksum())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksum().data(), this->md5checksum().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ReferenceSet.md5checksum")); } else { goto handle_unusual; } break; } // int32 ncbi_taxon_id = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &ncbi_taxon_id_))); } else { goto handle_unusual; } break; } // string description = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(42u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_description())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ReferenceSet.description")); } else { goto handle_unusual; } break; } // string assembly_id = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(50u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_assembly_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->assembly_id().data(), this->assembly_id().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ReferenceSet.assembly_id")); } else { goto handle_unusual; } break; } // string source_uri = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(58u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_source_uri())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_uri().data(), this->source_uri().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ReferenceSet.source_uri")); } else { goto handle_unusual; } break; } // repeated string source_accessions = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(66u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_source_accessions())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_accessions(this->source_accessions_size() - 1).data(), this->source_accessions(this->source_accessions_size() - 1).length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ReferenceSet.source_accessions")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:google.genomics.v1.ReferenceSet) return true; failure: // @@protoc_insertion_point(parse_failure:google.genomics.v1.ReferenceSet) return false; #undef DO_ } void ReferenceSet::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:google.genomics.v1.ReferenceSet) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string id = 1; if (this->id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->id(), output); } // repeated string reference_ids = 2; for (int i = 0, n = this->reference_ids_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_ids(i).data(), this->reference_ids(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.reference_ids"); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->reference_ids(i), output); } // string md5checksum = 3; if (this->md5checksum().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksum().data(), this->md5checksum().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.md5checksum"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->md5checksum(), output); } // int32 ncbi_taxon_id = 4; if (this->ncbi_taxon_id() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->ncbi_taxon_id(), output); } // string description = 5; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.description"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->description(), output); } // string assembly_id = 6; if (this->assembly_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->assembly_id().data(), this->assembly_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.assembly_id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 6, this->assembly_id(), output); } // string source_uri = 7; if (this->source_uri().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_uri().data(), this->source_uri().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.source_uri"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 7, this->source_uri(), output); } // repeated string source_accessions = 8; for (int i = 0, n = this->source_accessions_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_accessions(i).data(), this->source_accessions(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.source_accessions"); ::google::protobuf::internal::WireFormatLite::WriteString( 8, this->source_accessions(i), output); } // @@protoc_insertion_point(serialize_end:google.genomics.v1.ReferenceSet) } ::google::protobuf::uint8* ReferenceSet::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:google.genomics.v1.ReferenceSet) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string id = 1; if (this->id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->id(), target); } // repeated string reference_ids = 2; for (int i = 0, n = this->reference_ids_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_ids(i).data(), this->reference_ids(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.reference_ids"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(2, this->reference_ids(i), target); } // string md5checksum = 3; if (this->md5checksum().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksum().data(), this->md5checksum().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.md5checksum"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->md5checksum(), target); } // int32 ncbi_taxon_id = 4; if (this->ncbi_taxon_id() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->ncbi_taxon_id(), target); } // string description = 5; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.description"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5, this->description(), target); } // string assembly_id = 6; if (this->assembly_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->assembly_id().data(), this->assembly_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.assembly_id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6, this->assembly_id(), target); } // string source_uri = 7; if (this->source_uri().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_uri().data(), this->source_uri().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.source_uri"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 7, this->source_uri(), target); } // repeated string source_accessions = 8; for (int i = 0, n = this->source_accessions_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->source_accessions(i).data(), this->source_accessions(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ReferenceSet.source_accessions"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(8, this->source_accessions(i), target); } // @@protoc_insertion_point(serialize_to_array_end:google.genomics.v1.ReferenceSet) return target; } size_t ReferenceSet::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.genomics.v1.ReferenceSet) size_t total_size = 0; // repeated string reference_ids = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->reference_ids_size()); for (int i = 0, n = this->reference_ids_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->reference_ids(i)); } // repeated string source_accessions = 8; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->source_accessions_size()); for (int i = 0, n = this->source_accessions_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->source_accessions(i)); } // string id = 1; if (this->id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->id()); } // string md5checksum = 3; if (this->md5checksum().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->md5checksum()); } // string description = 5; if (this->description().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->description()); } // string assembly_id = 6; if (this->assembly_id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->assembly_id()); } // string source_uri = 7; if (this->source_uri().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->source_uri()); } // int32 ncbi_taxon_id = 4; if (this->ncbi_taxon_id() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->ncbi_taxon_id()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void ReferenceSet::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:google.genomics.v1.ReferenceSet) GOOGLE_DCHECK_NE(&from, this); const ReferenceSet* source = ::google::protobuf::internal::DynamicCastToGenerated<const ReferenceSet>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.genomics.v1.ReferenceSet) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:google.genomics.v1.ReferenceSet) MergeFrom(*source); } } void ReferenceSet::MergeFrom(const ReferenceSet& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.genomics.v1.ReferenceSet) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; reference_ids_.MergeFrom(from.reference_ids_); source_accessions_.MergeFrom(from.source_accessions_); if (from.id().size() > 0) { set_id(from.id()); } if (from.md5checksum().size() > 0) { set_md5checksum(from.md5checksum()); } if (from.description().size() > 0) { set_description(from.description()); } if (from.assembly_id().size() > 0) { set_assembly_id(from.assembly_id()); } if (from.source_uri().size() > 0) { set_source_uri(from.source_uri()); } if (from.ncbi_taxon_id() != 0) { set_ncbi_taxon_id(from.ncbi_taxon_id()); } } void ReferenceSet::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:google.genomics.v1.ReferenceSet) if (&from == this) return; Clear(); MergeFrom(from); } void ReferenceSet::CopyFrom(const ReferenceSet& from) { // @@protoc_insertion_point(class_specific_copy_from_start:google.genomics.v1.ReferenceSet) if (&from == this) return; Clear(); MergeFrom(from); } bool ReferenceSet::IsInitialized() const { return true; } void ReferenceSet::Swap(ReferenceSet* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { ReferenceSet* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void ReferenceSet::UnsafeArenaSwap(ReferenceSet* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void ReferenceSet::InternalSwap(ReferenceSet* other) { reference_ids_.InternalSwap(&other->reference_ids_); source_accessions_.InternalSwap(&other->source_accessions_); id_.Swap(&other->id_); md5checksum_.Swap(&other->md5checksum_); description_.Swap(&other->description_); assembly_id_.Swap(&other->assembly_id_); source_uri_.Swap(&other->source_uri_); std::swap(ncbi_taxon_id_, other->ncbi_taxon_id_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata ReferenceSet::GetMetadata() const { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // ReferenceSet // string id = 1; void ReferenceSet::clear_id() { id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& ReferenceSet::id() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ReferenceSet.id) return id_.Get(); } void ReferenceSet::set_id(const ::std::string& value) { id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.ReferenceSet.id) } void ReferenceSet::set_id(const char* value) { GOOGLE_DCHECK(value != NULL); id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ReferenceSet.id) } void ReferenceSet::set_id(const char* value, size_t size) { id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ReferenceSet.id) } ::std::string* ReferenceSet::mutable_id() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ReferenceSet.id) return id_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ReferenceSet::release_id() { // @@protoc_insertion_point(field_release:google.genomics.v1.ReferenceSet.id) return id_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ReferenceSet::unsafe_arena_release_id() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.ReferenceSet.id) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return id_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void ReferenceSet::set_allocated_id(::std::string* id) { if (id != NULL) { } else { } id_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.ReferenceSet.id) } void ReferenceSet::unsafe_arena_set_allocated_id( ::std::string* id) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (id != NULL) { } else { } id_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.ReferenceSet.id) } // repeated string reference_ids = 2; int ReferenceSet::reference_ids_size() const { return reference_ids_.size(); } void ReferenceSet::clear_reference_ids() { reference_ids_.Clear(); } const ::std::string& ReferenceSet::reference_ids(int index) const { // @@protoc_insertion_point(field_get:google.genomics.v1.ReferenceSet.reference_ids) return reference_ids_.Get(index); } ::std::string* ReferenceSet::mutable_reference_ids(int index) { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ReferenceSet.reference_ids) return reference_ids_.Mutable(index); } void ReferenceSet::set_reference_ids(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.ReferenceSet.reference_ids) reference_ids_.Mutable(index)->assign(value); } #if LANG_CXX11 void ReferenceSet::set_reference_ids(int index, ::std::string&& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.ReferenceSet.reference_ids) reference_ids_.Mutable(index)->assign(std::move(value)); } #endif void ReferenceSet::set_reference_ids(int index, const char* value) { GOOGLE_DCHECK(value != NULL); reference_ids_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ReferenceSet.reference_ids) } void ReferenceSet::set_reference_ids(int index, const char* value, size_t size) { reference_ids_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ReferenceSet.reference_ids) } ::std::string* ReferenceSet::add_reference_ids() { // @@protoc_insertion_point(field_add_mutable:google.genomics.v1.ReferenceSet.reference_ids) return reference_ids_.Add(); } void ReferenceSet::add_reference_ids(const ::std::string& value) { reference_ids_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.genomics.v1.ReferenceSet.reference_ids) } #if LANG_CXX11 void ReferenceSet::add_reference_ids(::std::string&& value) { reference_ids_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.genomics.v1.ReferenceSet.reference_ids) } #endif void ReferenceSet::add_reference_ids(const char* value) { GOOGLE_DCHECK(value != NULL); reference_ids_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.genomics.v1.ReferenceSet.reference_ids) } void ReferenceSet::add_reference_ids(const char* value, size_t size) { reference_ids_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:google.genomics.v1.ReferenceSet.reference_ids) } const ::google::protobuf::RepeatedPtrField< ::std::string>& ReferenceSet::reference_ids() const { // @@protoc_insertion_point(field_list:google.genomics.v1.ReferenceSet.reference_ids) return reference_ids_; } ::google::protobuf::RepeatedPtrField< ::std::string>* ReferenceSet::mutable_reference_ids() { // @@protoc_insertion_point(field_mutable_list:google.genomics.v1.ReferenceSet.reference_ids) return &reference_ids_; } // string md5checksum = 3; void ReferenceSet::clear_md5checksum() { md5checksum_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& ReferenceSet::md5checksum() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ReferenceSet.md5checksum) return md5checksum_.Get(); } void ReferenceSet::set_md5checksum(const ::std::string& value) { md5checksum_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.ReferenceSet.md5checksum) } void ReferenceSet::set_md5checksum(const char* value) { GOOGLE_DCHECK(value != NULL); md5checksum_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ReferenceSet.md5checksum) } void ReferenceSet::set_md5checksum(const char* value, size_t size) { md5checksum_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ReferenceSet.md5checksum) } ::std::string* ReferenceSet::mutable_md5checksum() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ReferenceSet.md5checksum) return md5checksum_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ReferenceSet::release_md5checksum() { // @@protoc_insertion_point(field_release:google.genomics.v1.ReferenceSet.md5checksum) return md5checksum_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ReferenceSet::unsafe_arena_release_md5checksum() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.ReferenceSet.md5checksum) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return md5checksum_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void ReferenceSet::set_allocated_md5checksum(::std::string* md5checksum) { if (md5checksum != NULL) { } else { } md5checksum_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), md5checksum, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.ReferenceSet.md5checksum) } void ReferenceSet::unsafe_arena_set_allocated_md5checksum( ::std::string* md5checksum) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (md5checksum != NULL) { } else { } md5checksum_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), md5checksum, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.ReferenceSet.md5checksum) } // int32 ncbi_taxon_id = 4; void ReferenceSet::clear_ncbi_taxon_id() { ncbi_taxon_id_ = 0; } ::google::protobuf::int32 ReferenceSet::ncbi_taxon_id() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ReferenceSet.ncbi_taxon_id) return ncbi_taxon_id_; } void ReferenceSet::set_ncbi_taxon_id(::google::protobuf::int32 value) { ncbi_taxon_id_ = value; // @@protoc_insertion_point(field_set:google.genomics.v1.ReferenceSet.ncbi_taxon_id) } // string description = 5; void ReferenceSet::clear_description() { description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& ReferenceSet::description() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ReferenceSet.description) return description_.Get(); } void ReferenceSet::set_description(const ::std::string& value) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.ReferenceSet.description) } void ReferenceSet::set_description(const char* value) { GOOGLE_DCHECK(value != NULL); description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ReferenceSet.description) } void ReferenceSet::set_description(const char* value, size_t size) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ReferenceSet.description) } ::std::string* ReferenceSet::mutable_description() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ReferenceSet.description) return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ReferenceSet::release_description() { // @@protoc_insertion_point(field_release:google.genomics.v1.ReferenceSet.description) return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ReferenceSet::unsafe_arena_release_description() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.ReferenceSet.description) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void ReferenceSet::set_allocated_description(::std::string* description) { if (description != NULL) { } else { } description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.ReferenceSet.description) } void ReferenceSet::unsafe_arena_set_allocated_description( ::std::string* description) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (description != NULL) { } else { } description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.ReferenceSet.description) } // string assembly_id = 6; void ReferenceSet::clear_assembly_id() { assembly_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& ReferenceSet::assembly_id() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ReferenceSet.assembly_id) return assembly_id_.Get(); } void ReferenceSet::set_assembly_id(const ::std::string& value) { assembly_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.ReferenceSet.assembly_id) } void ReferenceSet::set_assembly_id(const char* value) { GOOGLE_DCHECK(value != NULL); assembly_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ReferenceSet.assembly_id) } void ReferenceSet::set_assembly_id(const char* value, size_t size) { assembly_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ReferenceSet.assembly_id) } ::std::string* ReferenceSet::mutable_assembly_id() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ReferenceSet.assembly_id) return assembly_id_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ReferenceSet::release_assembly_id() { // @@protoc_insertion_point(field_release:google.genomics.v1.ReferenceSet.assembly_id) return assembly_id_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ReferenceSet::unsafe_arena_release_assembly_id() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.ReferenceSet.assembly_id) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return assembly_id_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void ReferenceSet::set_allocated_assembly_id(::std::string* assembly_id) { if (assembly_id != NULL) { } else { } assembly_id_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), assembly_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.ReferenceSet.assembly_id) } void ReferenceSet::unsafe_arena_set_allocated_assembly_id( ::std::string* assembly_id) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (assembly_id != NULL) { } else { } assembly_id_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), assembly_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.ReferenceSet.assembly_id) } // string source_uri = 7; void ReferenceSet::clear_source_uri() { source_uri_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& ReferenceSet::source_uri() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ReferenceSet.source_uri) return source_uri_.Get(); } void ReferenceSet::set_source_uri(const ::std::string& value) { source_uri_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.ReferenceSet.source_uri) } void ReferenceSet::set_source_uri(const char* value) { GOOGLE_DCHECK(value != NULL); source_uri_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ReferenceSet.source_uri) } void ReferenceSet::set_source_uri(const char* value, size_t size) { source_uri_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ReferenceSet.source_uri) } ::std::string* ReferenceSet::mutable_source_uri() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ReferenceSet.source_uri) return source_uri_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ReferenceSet::release_source_uri() { // @@protoc_insertion_point(field_release:google.genomics.v1.ReferenceSet.source_uri) return source_uri_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ReferenceSet::unsafe_arena_release_source_uri() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.ReferenceSet.source_uri) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return source_uri_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void ReferenceSet::set_allocated_source_uri(::std::string* source_uri) { if (source_uri != NULL) { } else { } source_uri_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_uri, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.ReferenceSet.source_uri) } void ReferenceSet::unsafe_arena_set_allocated_source_uri( ::std::string* source_uri) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (source_uri != NULL) { } else { } source_uri_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_uri, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.ReferenceSet.source_uri) } // repeated string source_accessions = 8; int ReferenceSet::source_accessions_size() const { return source_accessions_.size(); } void ReferenceSet::clear_source_accessions() { source_accessions_.Clear(); } const ::std::string& ReferenceSet::source_accessions(int index) const { // @@protoc_insertion_point(field_get:google.genomics.v1.ReferenceSet.source_accessions) return source_accessions_.Get(index); } ::std::string* ReferenceSet::mutable_source_accessions(int index) { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ReferenceSet.source_accessions) return source_accessions_.Mutable(index); } void ReferenceSet::set_source_accessions(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.ReferenceSet.source_accessions) source_accessions_.Mutable(index)->assign(value); } #if LANG_CXX11 void ReferenceSet::set_source_accessions(int index, ::std::string&& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.ReferenceSet.source_accessions) source_accessions_.Mutable(index)->assign(std::move(value)); } #endif void ReferenceSet::set_source_accessions(int index, const char* value) { GOOGLE_DCHECK(value != NULL); source_accessions_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ReferenceSet.source_accessions) } void ReferenceSet::set_source_accessions(int index, const char* value, size_t size) { source_accessions_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ReferenceSet.source_accessions) } ::std::string* ReferenceSet::add_source_accessions() { // @@protoc_insertion_point(field_add_mutable:google.genomics.v1.ReferenceSet.source_accessions) return source_accessions_.Add(); } void ReferenceSet::add_source_accessions(const ::std::string& value) { source_accessions_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.genomics.v1.ReferenceSet.source_accessions) } #if LANG_CXX11 void ReferenceSet::add_source_accessions(::std::string&& value) { source_accessions_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.genomics.v1.ReferenceSet.source_accessions) } #endif void ReferenceSet::add_source_accessions(const char* value) { GOOGLE_DCHECK(value != NULL); source_accessions_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.genomics.v1.ReferenceSet.source_accessions) } void ReferenceSet::add_source_accessions(const char* value, size_t size) { source_accessions_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:google.genomics.v1.ReferenceSet.source_accessions) } const ::google::protobuf::RepeatedPtrField< ::std::string>& ReferenceSet::source_accessions() const { // @@protoc_insertion_point(field_list:google.genomics.v1.ReferenceSet.source_accessions) return source_accessions_; } ::google::protobuf::RepeatedPtrField< ::std::string>* ReferenceSet::mutable_source_accessions() { // @@protoc_insertion_point(field_mutable_list:google.genomics.v1.ReferenceSet.source_accessions) return &source_accessions_; } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SearchReferenceSetsRequest::kMd5ChecksumsFieldNumber; const int SearchReferenceSetsRequest::kAccessionsFieldNumber; const int SearchReferenceSetsRequest::kAssemblyIdFieldNumber; const int SearchReferenceSetsRequest::kPageTokenFieldNumber; const int SearchReferenceSetsRequest::kPageSizeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SearchReferenceSetsRequest::SearchReferenceSetsRequest() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:google.genomics.v1.SearchReferenceSetsRequest) } SearchReferenceSetsRequest::SearchReferenceSetsRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), md5checksums_(arena), accessions_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.genomics.v1.SearchReferenceSetsRequest) } SearchReferenceSetsRequest::SearchReferenceSetsRequest(const SearchReferenceSetsRequest& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), md5checksums_(from.md5checksums_), accessions_(from.accessions_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); assembly_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.assembly_id().size() > 0) { assembly_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.assembly_id(), GetArenaNoVirtual()); } page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.page_token().size() > 0) { page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.page_token(), GetArenaNoVirtual()); } page_size_ = from.page_size_; // @@protoc_insertion_point(copy_constructor:google.genomics.v1.SearchReferenceSetsRequest) } void SearchReferenceSetsRequest::SharedCtor() { assembly_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); page_size_ = 0; _cached_size_ = 0; } SearchReferenceSetsRequest::~SearchReferenceSetsRequest() { // @@protoc_insertion_point(destructor:google.genomics.v1.SearchReferenceSetsRequest) SharedDtor(); } void SearchReferenceSetsRequest::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } assembly_id_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); page_token_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void SearchReferenceSetsRequest::ArenaDtor(void* object) { SearchReferenceSetsRequest* _this = reinterpret_cast< SearchReferenceSetsRequest* >(object); (void)_this; } void SearchReferenceSetsRequest::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void SearchReferenceSetsRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* SearchReferenceSetsRequest::descriptor() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SearchReferenceSetsRequest& SearchReferenceSetsRequest::default_instance() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); return *internal_default_instance(); } SearchReferenceSetsRequest* SearchReferenceSetsRequest::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<SearchReferenceSetsRequest>(arena); } void SearchReferenceSetsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:google.genomics.v1.SearchReferenceSetsRequest) md5checksums_.Clear(); accessions_.Clear(); assembly_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); page_size_ = 0; } bool SearchReferenceSetsRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.genomics.v1.SearchReferenceSetsRequest) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated string md5checksums = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_md5checksums())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksums(this->md5checksums_size() - 1).data(), this->md5checksums(this->md5checksums_size() - 1).length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.SearchReferenceSetsRequest.md5checksums")); } else { goto handle_unusual; } break; } // repeated string accessions = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_accessions())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->accessions(this->accessions_size() - 1).data(), this->accessions(this->accessions_size() - 1).length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.SearchReferenceSetsRequest.accessions")); } else { goto handle_unusual; } break; } // string assembly_id = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_assembly_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->assembly_id().data(), this->assembly_id().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.SearchReferenceSetsRequest.assembly_id")); } else { goto handle_unusual; } break; } // string page_token = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_page_token())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->page_token().data(), this->page_token().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.SearchReferenceSetsRequest.page_token")); } else { goto handle_unusual; } break; } // int32 page_size = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &page_size_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:google.genomics.v1.SearchReferenceSetsRequest) return true; failure: // @@protoc_insertion_point(parse_failure:google.genomics.v1.SearchReferenceSetsRequest) return false; #undef DO_ } void SearchReferenceSetsRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:google.genomics.v1.SearchReferenceSetsRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated string md5checksums = 1; for (int i = 0, n = this->md5checksums_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksums(i).data(), this->md5checksums(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferenceSetsRequest.md5checksums"); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->md5checksums(i), output); } // repeated string accessions = 2; for (int i = 0, n = this->accessions_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->accessions(i).data(), this->accessions(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferenceSetsRequest.accessions"); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->accessions(i), output); } // string assembly_id = 3; if (this->assembly_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->assembly_id().data(), this->assembly_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferenceSetsRequest.assembly_id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->assembly_id(), output); } // string page_token = 4; if (this->page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->page_token().data(), this->page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferenceSetsRequest.page_token"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->page_token(), output); } // int32 page_size = 5; if (this->page_size() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->page_size(), output); } // @@protoc_insertion_point(serialize_end:google.genomics.v1.SearchReferenceSetsRequest) } ::google::protobuf::uint8* SearchReferenceSetsRequest::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:google.genomics.v1.SearchReferenceSetsRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated string md5checksums = 1; for (int i = 0, n = this->md5checksums_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksums(i).data(), this->md5checksums(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferenceSetsRequest.md5checksums"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(1, this->md5checksums(i), target); } // repeated string accessions = 2; for (int i = 0, n = this->accessions_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->accessions(i).data(), this->accessions(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferenceSetsRequest.accessions"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(2, this->accessions(i), target); } // string assembly_id = 3; if (this->assembly_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->assembly_id().data(), this->assembly_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferenceSetsRequest.assembly_id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->assembly_id(), target); } // string page_token = 4; if (this->page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->page_token().data(), this->page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferenceSetsRequest.page_token"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->page_token(), target); } // int32 page_size = 5; if (this->page_size() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->page_size(), target); } // @@protoc_insertion_point(serialize_to_array_end:google.genomics.v1.SearchReferenceSetsRequest) return target; } size_t SearchReferenceSetsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.genomics.v1.SearchReferenceSetsRequest) size_t total_size = 0; // repeated string md5checksums = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->md5checksums_size()); for (int i = 0, n = this->md5checksums_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->md5checksums(i)); } // repeated string accessions = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->accessions_size()); for (int i = 0, n = this->accessions_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->accessions(i)); } // string assembly_id = 3; if (this->assembly_id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->assembly_id()); } // string page_token = 4; if (this->page_token().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->page_token()); } // int32 page_size = 5; if (this->page_size() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->page_size()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void SearchReferenceSetsRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:google.genomics.v1.SearchReferenceSetsRequest) GOOGLE_DCHECK_NE(&from, this); const SearchReferenceSetsRequest* source = ::google::protobuf::internal::DynamicCastToGenerated<const SearchReferenceSetsRequest>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.genomics.v1.SearchReferenceSetsRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:google.genomics.v1.SearchReferenceSetsRequest) MergeFrom(*source); } } void SearchReferenceSetsRequest::MergeFrom(const SearchReferenceSetsRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.genomics.v1.SearchReferenceSetsRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; md5checksums_.MergeFrom(from.md5checksums_); accessions_.MergeFrom(from.accessions_); if (from.assembly_id().size() > 0) { set_assembly_id(from.assembly_id()); } if (from.page_token().size() > 0) { set_page_token(from.page_token()); } if (from.page_size() != 0) { set_page_size(from.page_size()); } } void SearchReferenceSetsRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:google.genomics.v1.SearchReferenceSetsRequest) if (&from == this) return; Clear(); MergeFrom(from); } void SearchReferenceSetsRequest::CopyFrom(const SearchReferenceSetsRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:google.genomics.v1.SearchReferenceSetsRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool SearchReferenceSetsRequest::IsInitialized() const { return true; } void SearchReferenceSetsRequest::Swap(SearchReferenceSetsRequest* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { SearchReferenceSetsRequest* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void SearchReferenceSetsRequest::UnsafeArenaSwap(SearchReferenceSetsRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void SearchReferenceSetsRequest::InternalSwap(SearchReferenceSetsRequest* other) { md5checksums_.InternalSwap(&other->md5checksums_); accessions_.InternalSwap(&other->accessions_); assembly_id_.Swap(&other->assembly_id_); page_token_.Swap(&other->page_token_); std::swap(page_size_, other->page_size_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata SearchReferenceSetsRequest::GetMetadata() const { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // SearchReferenceSetsRequest // repeated string md5checksums = 1; int SearchReferenceSetsRequest::md5checksums_size() const { return md5checksums_.size(); } void SearchReferenceSetsRequest::clear_md5checksums() { md5checksums_.Clear(); } const ::std::string& SearchReferenceSetsRequest::md5checksums(int index) const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) return md5checksums_.Get(index); } ::std::string* SearchReferenceSetsRequest::mutable_md5checksums(int index) { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) return md5checksums_.Mutable(index); } void SearchReferenceSetsRequest::set_md5checksums(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) md5checksums_.Mutable(index)->assign(value); } #if LANG_CXX11 void SearchReferenceSetsRequest::set_md5checksums(int index, ::std::string&& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) md5checksums_.Mutable(index)->assign(std::move(value)); } #endif void SearchReferenceSetsRequest::set_md5checksums(int index, const char* value) { GOOGLE_DCHECK(value != NULL); md5checksums_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) } void SearchReferenceSetsRequest::set_md5checksums(int index, const char* value, size_t size) { md5checksums_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) } ::std::string* SearchReferenceSetsRequest::add_md5checksums() { // @@protoc_insertion_point(field_add_mutable:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) return md5checksums_.Add(); } void SearchReferenceSetsRequest::add_md5checksums(const ::std::string& value) { md5checksums_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) } #if LANG_CXX11 void SearchReferenceSetsRequest::add_md5checksums(::std::string&& value) { md5checksums_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) } #endif void SearchReferenceSetsRequest::add_md5checksums(const char* value) { GOOGLE_DCHECK(value != NULL); md5checksums_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) } void SearchReferenceSetsRequest::add_md5checksums(const char* value, size_t size) { md5checksums_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) } const ::google::protobuf::RepeatedPtrField< ::std::string>& SearchReferenceSetsRequest::md5checksums() const { // @@protoc_insertion_point(field_list:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) return md5checksums_; } ::google::protobuf::RepeatedPtrField< ::std::string>* SearchReferenceSetsRequest::mutable_md5checksums() { // @@protoc_insertion_point(field_mutable_list:google.genomics.v1.SearchReferenceSetsRequest.md5checksums) return &md5checksums_; } // repeated string accessions = 2; int SearchReferenceSetsRequest::accessions_size() const { return accessions_.size(); } void SearchReferenceSetsRequest::clear_accessions() { accessions_.Clear(); } const ::std::string& SearchReferenceSetsRequest::accessions(int index) const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferenceSetsRequest.accessions) return accessions_.Get(index); } ::std::string* SearchReferenceSetsRequest::mutable_accessions(int index) { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferenceSetsRequest.accessions) return accessions_.Mutable(index); } void SearchReferenceSetsRequest::set_accessions(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferenceSetsRequest.accessions) accessions_.Mutable(index)->assign(value); } #if LANG_CXX11 void SearchReferenceSetsRequest::set_accessions(int index, ::std::string&& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferenceSetsRequest.accessions) accessions_.Mutable(index)->assign(std::move(value)); } #endif void SearchReferenceSetsRequest::set_accessions(int index, const char* value) { GOOGLE_DCHECK(value != NULL); accessions_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.genomics.v1.SearchReferenceSetsRequest.accessions) } void SearchReferenceSetsRequest::set_accessions(int index, const char* value, size_t size) { accessions_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.SearchReferenceSetsRequest.accessions) } ::std::string* SearchReferenceSetsRequest::add_accessions() { // @@protoc_insertion_point(field_add_mutable:google.genomics.v1.SearchReferenceSetsRequest.accessions) return accessions_.Add(); } void SearchReferenceSetsRequest::add_accessions(const ::std::string& value) { accessions_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.genomics.v1.SearchReferenceSetsRequest.accessions) } #if LANG_CXX11 void SearchReferenceSetsRequest::add_accessions(::std::string&& value) { accessions_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.genomics.v1.SearchReferenceSetsRequest.accessions) } #endif void SearchReferenceSetsRequest::add_accessions(const char* value) { GOOGLE_DCHECK(value != NULL); accessions_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.genomics.v1.SearchReferenceSetsRequest.accessions) } void SearchReferenceSetsRequest::add_accessions(const char* value, size_t size) { accessions_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:google.genomics.v1.SearchReferenceSetsRequest.accessions) } const ::google::protobuf::RepeatedPtrField< ::std::string>& SearchReferenceSetsRequest::accessions() const { // @@protoc_insertion_point(field_list:google.genomics.v1.SearchReferenceSetsRequest.accessions) return accessions_; } ::google::protobuf::RepeatedPtrField< ::std::string>* SearchReferenceSetsRequest::mutable_accessions() { // @@protoc_insertion_point(field_mutable_list:google.genomics.v1.SearchReferenceSetsRequest.accessions) return &accessions_; } // string assembly_id = 3; void SearchReferenceSetsRequest::clear_assembly_id() { assembly_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& SearchReferenceSetsRequest::assembly_id() const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferenceSetsRequest.assembly_id) return assembly_id_.Get(); } void SearchReferenceSetsRequest::set_assembly_id(const ::std::string& value) { assembly_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferenceSetsRequest.assembly_id) } void SearchReferenceSetsRequest::set_assembly_id(const char* value) { GOOGLE_DCHECK(value != NULL); assembly_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.SearchReferenceSetsRequest.assembly_id) } void SearchReferenceSetsRequest::set_assembly_id(const char* value, size_t size) { assembly_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.SearchReferenceSetsRequest.assembly_id) } ::std::string* SearchReferenceSetsRequest::mutable_assembly_id() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferenceSetsRequest.assembly_id) return assembly_id_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferenceSetsRequest::release_assembly_id() { // @@protoc_insertion_point(field_release:google.genomics.v1.SearchReferenceSetsRequest.assembly_id) return assembly_id_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferenceSetsRequest::unsafe_arena_release_assembly_id() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.SearchReferenceSetsRequest.assembly_id) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return assembly_id_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void SearchReferenceSetsRequest::set_allocated_assembly_id(::std::string* assembly_id) { if (assembly_id != NULL) { } else { } assembly_id_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), assembly_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.SearchReferenceSetsRequest.assembly_id) } void SearchReferenceSetsRequest::unsafe_arena_set_allocated_assembly_id( ::std::string* assembly_id) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (assembly_id != NULL) { } else { } assembly_id_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), assembly_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.SearchReferenceSetsRequest.assembly_id) } // string page_token = 4; void SearchReferenceSetsRequest::clear_page_token() { page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& SearchReferenceSetsRequest::page_token() const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferenceSetsRequest.page_token) return page_token_.Get(); } void SearchReferenceSetsRequest::set_page_token(const ::std::string& value) { page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferenceSetsRequest.page_token) } void SearchReferenceSetsRequest::set_page_token(const char* value) { GOOGLE_DCHECK(value != NULL); page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.SearchReferenceSetsRequest.page_token) } void SearchReferenceSetsRequest::set_page_token(const char* value, size_t size) { page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.SearchReferenceSetsRequest.page_token) } ::std::string* SearchReferenceSetsRequest::mutable_page_token() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferenceSetsRequest.page_token) return page_token_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferenceSetsRequest::release_page_token() { // @@protoc_insertion_point(field_release:google.genomics.v1.SearchReferenceSetsRequest.page_token) return page_token_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferenceSetsRequest::unsafe_arena_release_page_token() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.SearchReferenceSetsRequest.page_token) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return page_token_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void SearchReferenceSetsRequest::set_allocated_page_token(::std::string* page_token) { if (page_token != NULL) { } else { } page_token_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.SearchReferenceSetsRequest.page_token) } void SearchReferenceSetsRequest::unsafe_arena_set_allocated_page_token( ::std::string* page_token) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (page_token != NULL) { } else { } page_token_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.SearchReferenceSetsRequest.page_token) } // int32 page_size = 5; void SearchReferenceSetsRequest::clear_page_size() { page_size_ = 0; } ::google::protobuf::int32 SearchReferenceSetsRequest::page_size() const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferenceSetsRequest.page_size) return page_size_; } void SearchReferenceSetsRequest::set_page_size(::google::protobuf::int32 value) { page_size_ = value; // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferenceSetsRequest.page_size) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SearchReferenceSetsResponse::kReferenceSetsFieldNumber; const int SearchReferenceSetsResponse::kNextPageTokenFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SearchReferenceSetsResponse::SearchReferenceSetsResponse() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:google.genomics.v1.SearchReferenceSetsResponse) } SearchReferenceSetsResponse::SearchReferenceSetsResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), reference_sets_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.genomics.v1.SearchReferenceSetsResponse) } SearchReferenceSetsResponse::SearchReferenceSetsResponse(const SearchReferenceSetsResponse& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), reference_sets_(from.reference_sets_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); next_page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.next_page_token().size() > 0) { next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_page_token(), GetArenaNoVirtual()); } // @@protoc_insertion_point(copy_constructor:google.genomics.v1.SearchReferenceSetsResponse) } void SearchReferenceSetsResponse::SharedCtor() { next_page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _cached_size_ = 0; } SearchReferenceSetsResponse::~SearchReferenceSetsResponse() { // @@protoc_insertion_point(destructor:google.genomics.v1.SearchReferenceSetsResponse) SharedDtor(); } void SearchReferenceSetsResponse::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } next_page_token_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void SearchReferenceSetsResponse::ArenaDtor(void* object) { SearchReferenceSetsResponse* _this = reinterpret_cast< SearchReferenceSetsResponse* >(object); (void)_this; } void SearchReferenceSetsResponse::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void SearchReferenceSetsResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* SearchReferenceSetsResponse::descriptor() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SearchReferenceSetsResponse& SearchReferenceSetsResponse::default_instance() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); return *internal_default_instance(); } SearchReferenceSetsResponse* SearchReferenceSetsResponse::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<SearchReferenceSetsResponse>(arena); } void SearchReferenceSetsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:google.genomics.v1.SearchReferenceSetsResponse) reference_sets_.Clear(); next_page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } bool SearchReferenceSetsResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.genomics.v1.SearchReferenceSetsResponse) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .google.genomics.v1.ReferenceSet reference_sets = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, add_reference_sets())); } else { goto handle_unusual; } break; } // string next_page_token = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_next_page_token())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->next_page_token().data(), this->next_page_token().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.SearchReferenceSetsResponse.next_page_token")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:google.genomics.v1.SearchReferenceSetsResponse) return true; failure: // @@protoc_insertion_point(parse_failure:google.genomics.v1.SearchReferenceSetsResponse) return false; #undef DO_ } void SearchReferenceSetsResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:google.genomics.v1.SearchReferenceSetsResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .google.genomics.v1.ReferenceSet reference_sets = 1; for (unsigned int i = 0, n = this->reference_sets_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->reference_sets(i), output); } // string next_page_token = 2; if (this->next_page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->next_page_token().data(), this->next_page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferenceSetsResponse.next_page_token"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->next_page_token(), output); } // @@protoc_insertion_point(serialize_end:google.genomics.v1.SearchReferenceSetsResponse) } ::google::protobuf::uint8* SearchReferenceSetsResponse::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:google.genomics.v1.SearchReferenceSetsResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .google.genomics.v1.ReferenceSet reference_sets = 1; for (unsigned int i = 0, n = this->reference_sets_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, this->reference_sets(i), deterministic, target); } // string next_page_token = 2; if (this->next_page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->next_page_token().data(), this->next_page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferenceSetsResponse.next_page_token"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->next_page_token(), target); } // @@protoc_insertion_point(serialize_to_array_end:google.genomics.v1.SearchReferenceSetsResponse) return target; } size_t SearchReferenceSetsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.genomics.v1.SearchReferenceSetsResponse) size_t total_size = 0; // repeated .google.genomics.v1.ReferenceSet reference_sets = 1; { unsigned int count = this->reference_sets_size(); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->reference_sets(i)); } } // string next_page_token = 2; if (this->next_page_token().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->next_page_token()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void SearchReferenceSetsResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:google.genomics.v1.SearchReferenceSetsResponse) GOOGLE_DCHECK_NE(&from, this); const SearchReferenceSetsResponse* source = ::google::protobuf::internal::DynamicCastToGenerated<const SearchReferenceSetsResponse>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.genomics.v1.SearchReferenceSetsResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:google.genomics.v1.SearchReferenceSetsResponse) MergeFrom(*source); } } void SearchReferenceSetsResponse::MergeFrom(const SearchReferenceSetsResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.genomics.v1.SearchReferenceSetsResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; reference_sets_.MergeFrom(from.reference_sets_); if (from.next_page_token().size() > 0) { set_next_page_token(from.next_page_token()); } } void SearchReferenceSetsResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:google.genomics.v1.SearchReferenceSetsResponse) if (&from == this) return; Clear(); MergeFrom(from); } void SearchReferenceSetsResponse::CopyFrom(const SearchReferenceSetsResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:google.genomics.v1.SearchReferenceSetsResponse) if (&from == this) return; Clear(); MergeFrom(from); } bool SearchReferenceSetsResponse::IsInitialized() const { return true; } void SearchReferenceSetsResponse::Swap(SearchReferenceSetsResponse* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { SearchReferenceSetsResponse* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void SearchReferenceSetsResponse::UnsafeArenaSwap(SearchReferenceSetsResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void SearchReferenceSetsResponse::InternalSwap(SearchReferenceSetsResponse* other) { reference_sets_.InternalSwap(&other->reference_sets_); next_page_token_.Swap(&other->next_page_token_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata SearchReferenceSetsResponse::GetMetadata() const { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // SearchReferenceSetsResponse // repeated .google.genomics.v1.ReferenceSet reference_sets = 1; int SearchReferenceSetsResponse::reference_sets_size() const { return reference_sets_.size(); } void SearchReferenceSetsResponse::clear_reference_sets() { reference_sets_.Clear(); } const ::google::genomics::v1::ReferenceSet& SearchReferenceSetsResponse::reference_sets(int index) const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferenceSetsResponse.reference_sets) return reference_sets_.Get(index); } ::google::genomics::v1::ReferenceSet* SearchReferenceSetsResponse::mutable_reference_sets(int index) { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferenceSetsResponse.reference_sets) return reference_sets_.Mutable(index); } ::google::genomics::v1::ReferenceSet* SearchReferenceSetsResponse::add_reference_sets() { // @@protoc_insertion_point(field_add:google.genomics.v1.SearchReferenceSetsResponse.reference_sets) return reference_sets_.Add(); } ::google::protobuf::RepeatedPtrField< ::google::genomics::v1::ReferenceSet >* SearchReferenceSetsResponse::mutable_reference_sets() { // @@protoc_insertion_point(field_mutable_list:google.genomics.v1.SearchReferenceSetsResponse.reference_sets) return &reference_sets_; } const ::google::protobuf::RepeatedPtrField< ::google::genomics::v1::ReferenceSet >& SearchReferenceSetsResponse::reference_sets() const { // @@protoc_insertion_point(field_list:google.genomics.v1.SearchReferenceSetsResponse.reference_sets) return reference_sets_; } // string next_page_token = 2; void SearchReferenceSetsResponse::clear_next_page_token() { next_page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& SearchReferenceSetsResponse::next_page_token() const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferenceSetsResponse.next_page_token) return next_page_token_.Get(); } void SearchReferenceSetsResponse::set_next_page_token(const ::std::string& value) { next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferenceSetsResponse.next_page_token) } void SearchReferenceSetsResponse::set_next_page_token(const char* value) { GOOGLE_DCHECK(value != NULL); next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.SearchReferenceSetsResponse.next_page_token) } void SearchReferenceSetsResponse::set_next_page_token(const char* value, size_t size) { next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.SearchReferenceSetsResponse.next_page_token) } ::std::string* SearchReferenceSetsResponse::mutable_next_page_token() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferenceSetsResponse.next_page_token) return next_page_token_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferenceSetsResponse::release_next_page_token() { // @@protoc_insertion_point(field_release:google.genomics.v1.SearchReferenceSetsResponse.next_page_token) return next_page_token_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferenceSetsResponse::unsafe_arena_release_next_page_token() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.SearchReferenceSetsResponse.next_page_token) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return next_page_token_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void SearchReferenceSetsResponse::set_allocated_next_page_token(::std::string* next_page_token) { if (next_page_token != NULL) { } else { } next_page_token_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.SearchReferenceSetsResponse.next_page_token) } void SearchReferenceSetsResponse::unsafe_arena_set_allocated_next_page_token( ::std::string* next_page_token) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (next_page_token != NULL) { } else { } next_page_token_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.SearchReferenceSetsResponse.next_page_token) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int GetReferenceSetRequest::kReferenceSetIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetReferenceSetRequest::GetReferenceSetRequest() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:google.genomics.v1.GetReferenceSetRequest) } GetReferenceSetRequest::GetReferenceSetRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.genomics.v1.GetReferenceSetRequest) } GetReferenceSetRequest::GetReferenceSetRequest(const GetReferenceSetRequest& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); reference_set_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.reference_set_id().size() > 0) { reference_set_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reference_set_id(), GetArenaNoVirtual()); } // @@protoc_insertion_point(copy_constructor:google.genomics.v1.GetReferenceSetRequest) } void GetReferenceSetRequest::SharedCtor() { reference_set_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _cached_size_ = 0; } GetReferenceSetRequest::~GetReferenceSetRequest() { // @@protoc_insertion_point(destructor:google.genomics.v1.GetReferenceSetRequest) SharedDtor(); } void GetReferenceSetRequest::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } reference_set_id_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void GetReferenceSetRequest::ArenaDtor(void* object) { GetReferenceSetRequest* _this = reinterpret_cast< GetReferenceSetRequest* >(object); (void)_this; } void GetReferenceSetRequest::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void GetReferenceSetRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* GetReferenceSetRequest::descriptor() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const GetReferenceSetRequest& GetReferenceSetRequest::default_instance() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); return *internal_default_instance(); } GetReferenceSetRequest* GetReferenceSetRequest::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<GetReferenceSetRequest>(arena); } void GetReferenceSetRequest::Clear() { // @@protoc_insertion_point(message_clear_start:google.genomics.v1.GetReferenceSetRequest) reference_set_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } bool GetReferenceSetRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.genomics.v1.GetReferenceSetRequest) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string reference_set_id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_reference_set_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_set_id().data(), this->reference_set_id().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.GetReferenceSetRequest.reference_set_id")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:google.genomics.v1.GetReferenceSetRequest) return true; failure: // @@protoc_insertion_point(parse_failure:google.genomics.v1.GetReferenceSetRequest) return false; #undef DO_ } void GetReferenceSetRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:google.genomics.v1.GetReferenceSetRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string reference_set_id = 1; if (this->reference_set_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_set_id().data(), this->reference_set_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.GetReferenceSetRequest.reference_set_id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->reference_set_id(), output); } // @@protoc_insertion_point(serialize_end:google.genomics.v1.GetReferenceSetRequest) } ::google::protobuf::uint8* GetReferenceSetRequest::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:google.genomics.v1.GetReferenceSetRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string reference_set_id = 1; if (this->reference_set_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_set_id().data(), this->reference_set_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.GetReferenceSetRequest.reference_set_id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->reference_set_id(), target); } // @@protoc_insertion_point(serialize_to_array_end:google.genomics.v1.GetReferenceSetRequest) return target; } size_t GetReferenceSetRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.genomics.v1.GetReferenceSetRequest) size_t total_size = 0; // string reference_set_id = 1; if (this->reference_set_id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->reference_set_id()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void GetReferenceSetRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:google.genomics.v1.GetReferenceSetRequest) GOOGLE_DCHECK_NE(&from, this); const GetReferenceSetRequest* source = ::google::protobuf::internal::DynamicCastToGenerated<const GetReferenceSetRequest>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.genomics.v1.GetReferenceSetRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:google.genomics.v1.GetReferenceSetRequest) MergeFrom(*source); } } void GetReferenceSetRequest::MergeFrom(const GetReferenceSetRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.genomics.v1.GetReferenceSetRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.reference_set_id().size() > 0) { set_reference_set_id(from.reference_set_id()); } } void GetReferenceSetRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:google.genomics.v1.GetReferenceSetRequest) if (&from == this) return; Clear(); MergeFrom(from); } void GetReferenceSetRequest::CopyFrom(const GetReferenceSetRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:google.genomics.v1.GetReferenceSetRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool GetReferenceSetRequest::IsInitialized() const { return true; } void GetReferenceSetRequest::Swap(GetReferenceSetRequest* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { GetReferenceSetRequest* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void GetReferenceSetRequest::UnsafeArenaSwap(GetReferenceSetRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void GetReferenceSetRequest::InternalSwap(GetReferenceSetRequest* other) { reference_set_id_.Swap(&other->reference_set_id_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata GetReferenceSetRequest::GetMetadata() const { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // GetReferenceSetRequest // string reference_set_id = 1; void GetReferenceSetRequest::clear_reference_set_id() { reference_set_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& GetReferenceSetRequest::reference_set_id() const { // @@protoc_insertion_point(field_get:google.genomics.v1.GetReferenceSetRequest.reference_set_id) return reference_set_id_.Get(); } void GetReferenceSetRequest::set_reference_set_id(const ::std::string& value) { reference_set_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.GetReferenceSetRequest.reference_set_id) } void GetReferenceSetRequest::set_reference_set_id(const char* value) { GOOGLE_DCHECK(value != NULL); reference_set_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.GetReferenceSetRequest.reference_set_id) } void GetReferenceSetRequest::set_reference_set_id(const char* value, size_t size) { reference_set_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.GetReferenceSetRequest.reference_set_id) } ::std::string* GetReferenceSetRequest::mutable_reference_set_id() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.GetReferenceSetRequest.reference_set_id) return reference_set_id_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* GetReferenceSetRequest::release_reference_set_id() { // @@protoc_insertion_point(field_release:google.genomics.v1.GetReferenceSetRequest.reference_set_id) return reference_set_id_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* GetReferenceSetRequest::unsafe_arena_release_reference_set_id() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.GetReferenceSetRequest.reference_set_id) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return reference_set_id_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void GetReferenceSetRequest::set_allocated_reference_set_id(::std::string* reference_set_id) { if (reference_set_id != NULL) { } else { } reference_set_id_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_set_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.GetReferenceSetRequest.reference_set_id) } void GetReferenceSetRequest::unsafe_arena_set_allocated_reference_set_id( ::std::string* reference_set_id) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (reference_set_id != NULL) { } else { } reference_set_id_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_set_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.GetReferenceSetRequest.reference_set_id) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SearchReferencesRequest::kMd5ChecksumsFieldNumber; const int SearchReferencesRequest::kAccessionsFieldNumber; const int SearchReferencesRequest::kReferenceSetIdFieldNumber; const int SearchReferencesRequest::kPageTokenFieldNumber; const int SearchReferencesRequest::kPageSizeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SearchReferencesRequest::SearchReferencesRequest() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:google.genomics.v1.SearchReferencesRequest) } SearchReferencesRequest::SearchReferencesRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), md5checksums_(arena), accessions_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.genomics.v1.SearchReferencesRequest) } SearchReferencesRequest::SearchReferencesRequest(const SearchReferencesRequest& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), md5checksums_(from.md5checksums_), accessions_(from.accessions_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); reference_set_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.reference_set_id().size() > 0) { reference_set_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reference_set_id(), GetArenaNoVirtual()); } page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.page_token().size() > 0) { page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.page_token(), GetArenaNoVirtual()); } page_size_ = from.page_size_; // @@protoc_insertion_point(copy_constructor:google.genomics.v1.SearchReferencesRequest) } void SearchReferencesRequest::SharedCtor() { reference_set_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); page_size_ = 0; _cached_size_ = 0; } SearchReferencesRequest::~SearchReferencesRequest() { // @@protoc_insertion_point(destructor:google.genomics.v1.SearchReferencesRequest) SharedDtor(); } void SearchReferencesRequest::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } reference_set_id_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); page_token_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void SearchReferencesRequest::ArenaDtor(void* object) { SearchReferencesRequest* _this = reinterpret_cast< SearchReferencesRequest* >(object); (void)_this; } void SearchReferencesRequest::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void SearchReferencesRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* SearchReferencesRequest::descriptor() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SearchReferencesRequest& SearchReferencesRequest::default_instance() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); return *internal_default_instance(); } SearchReferencesRequest* SearchReferencesRequest::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<SearchReferencesRequest>(arena); } void SearchReferencesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:google.genomics.v1.SearchReferencesRequest) md5checksums_.Clear(); accessions_.Clear(); reference_set_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); page_size_ = 0; } bool SearchReferencesRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.genomics.v1.SearchReferencesRequest) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated string md5checksums = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_md5checksums())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksums(this->md5checksums_size() - 1).data(), this->md5checksums(this->md5checksums_size() - 1).length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.SearchReferencesRequest.md5checksums")); } else { goto handle_unusual; } break; } // repeated string accessions = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_accessions())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->accessions(this->accessions_size() - 1).data(), this->accessions(this->accessions_size() - 1).length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.SearchReferencesRequest.accessions")); } else { goto handle_unusual; } break; } // string reference_set_id = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_reference_set_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_set_id().data(), this->reference_set_id().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.SearchReferencesRequest.reference_set_id")); } else { goto handle_unusual; } break; } // string page_token = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_page_token())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->page_token().data(), this->page_token().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.SearchReferencesRequest.page_token")); } else { goto handle_unusual; } break; } // int32 page_size = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &page_size_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:google.genomics.v1.SearchReferencesRequest) return true; failure: // @@protoc_insertion_point(parse_failure:google.genomics.v1.SearchReferencesRequest) return false; #undef DO_ } void SearchReferencesRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:google.genomics.v1.SearchReferencesRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated string md5checksums = 1; for (int i = 0, n = this->md5checksums_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksums(i).data(), this->md5checksums(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferencesRequest.md5checksums"); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->md5checksums(i), output); } // repeated string accessions = 2; for (int i = 0, n = this->accessions_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->accessions(i).data(), this->accessions(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferencesRequest.accessions"); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->accessions(i), output); } // string reference_set_id = 3; if (this->reference_set_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_set_id().data(), this->reference_set_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferencesRequest.reference_set_id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->reference_set_id(), output); } // string page_token = 4; if (this->page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->page_token().data(), this->page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferencesRequest.page_token"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->page_token(), output); } // int32 page_size = 5; if (this->page_size() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->page_size(), output); } // @@protoc_insertion_point(serialize_end:google.genomics.v1.SearchReferencesRequest) } ::google::protobuf::uint8* SearchReferencesRequest::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:google.genomics.v1.SearchReferencesRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated string md5checksums = 1; for (int i = 0, n = this->md5checksums_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->md5checksums(i).data(), this->md5checksums(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferencesRequest.md5checksums"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(1, this->md5checksums(i), target); } // repeated string accessions = 2; for (int i = 0, n = this->accessions_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->accessions(i).data(), this->accessions(i).length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferencesRequest.accessions"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(2, this->accessions(i), target); } // string reference_set_id = 3; if (this->reference_set_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_set_id().data(), this->reference_set_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferencesRequest.reference_set_id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->reference_set_id(), target); } // string page_token = 4; if (this->page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->page_token().data(), this->page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferencesRequest.page_token"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->page_token(), target); } // int32 page_size = 5; if (this->page_size() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->page_size(), target); } // @@protoc_insertion_point(serialize_to_array_end:google.genomics.v1.SearchReferencesRequest) return target; } size_t SearchReferencesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.genomics.v1.SearchReferencesRequest) size_t total_size = 0; // repeated string md5checksums = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->md5checksums_size()); for (int i = 0, n = this->md5checksums_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->md5checksums(i)); } // repeated string accessions = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->accessions_size()); for (int i = 0, n = this->accessions_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->accessions(i)); } // string reference_set_id = 3; if (this->reference_set_id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->reference_set_id()); } // string page_token = 4; if (this->page_token().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->page_token()); } // int32 page_size = 5; if (this->page_size() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->page_size()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void SearchReferencesRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:google.genomics.v1.SearchReferencesRequest) GOOGLE_DCHECK_NE(&from, this); const SearchReferencesRequest* source = ::google::protobuf::internal::DynamicCastToGenerated<const SearchReferencesRequest>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.genomics.v1.SearchReferencesRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:google.genomics.v1.SearchReferencesRequest) MergeFrom(*source); } } void SearchReferencesRequest::MergeFrom(const SearchReferencesRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.genomics.v1.SearchReferencesRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; md5checksums_.MergeFrom(from.md5checksums_); accessions_.MergeFrom(from.accessions_); if (from.reference_set_id().size() > 0) { set_reference_set_id(from.reference_set_id()); } if (from.page_token().size() > 0) { set_page_token(from.page_token()); } if (from.page_size() != 0) { set_page_size(from.page_size()); } } void SearchReferencesRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:google.genomics.v1.SearchReferencesRequest) if (&from == this) return; Clear(); MergeFrom(from); } void SearchReferencesRequest::CopyFrom(const SearchReferencesRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:google.genomics.v1.SearchReferencesRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool SearchReferencesRequest::IsInitialized() const { return true; } void SearchReferencesRequest::Swap(SearchReferencesRequest* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { SearchReferencesRequest* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void SearchReferencesRequest::UnsafeArenaSwap(SearchReferencesRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void SearchReferencesRequest::InternalSwap(SearchReferencesRequest* other) { md5checksums_.InternalSwap(&other->md5checksums_); accessions_.InternalSwap(&other->accessions_); reference_set_id_.Swap(&other->reference_set_id_); page_token_.Swap(&other->page_token_); std::swap(page_size_, other->page_size_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata SearchReferencesRequest::GetMetadata() const { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // SearchReferencesRequest // repeated string md5checksums = 1; int SearchReferencesRequest::md5checksums_size() const { return md5checksums_.size(); } void SearchReferencesRequest::clear_md5checksums() { md5checksums_.Clear(); } const ::std::string& SearchReferencesRequest::md5checksums(int index) const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferencesRequest.md5checksums) return md5checksums_.Get(index); } ::std::string* SearchReferencesRequest::mutable_md5checksums(int index) { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferencesRequest.md5checksums) return md5checksums_.Mutable(index); } void SearchReferencesRequest::set_md5checksums(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferencesRequest.md5checksums) md5checksums_.Mutable(index)->assign(value); } #if LANG_CXX11 void SearchReferencesRequest::set_md5checksums(int index, ::std::string&& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferencesRequest.md5checksums) md5checksums_.Mutable(index)->assign(std::move(value)); } #endif void SearchReferencesRequest::set_md5checksums(int index, const char* value) { GOOGLE_DCHECK(value != NULL); md5checksums_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.genomics.v1.SearchReferencesRequest.md5checksums) } void SearchReferencesRequest::set_md5checksums(int index, const char* value, size_t size) { md5checksums_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.SearchReferencesRequest.md5checksums) } ::std::string* SearchReferencesRequest::add_md5checksums() { // @@protoc_insertion_point(field_add_mutable:google.genomics.v1.SearchReferencesRequest.md5checksums) return md5checksums_.Add(); } void SearchReferencesRequest::add_md5checksums(const ::std::string& value) { md5checksums_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.genomics.v1.SearchReferencesRequest.md5checksums) } #if LANG_CXX11 void SearchReferencesRequest::add_md5checksums(::std::string&& value) { md5checksums_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.genomics.v1.SearchReferencesRequest.md5checksums) } #endif void SearchReferencesRequest::add_md5checksums(const char* value) { GOOGLE_DCHECK(value != NULL); md5checksums_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.genomics.v1.SearchReferencesRequest.md5checksums) } void SearchReferencesRequest::add_md5checksums(const char* value, size_t size) { md5checksums_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:google.genomics.v1.SearchReferencesRequest.md5checksums) } const ::google::protobuf::RepeatedPtrField< ::std::string>& SearchReferencesRequest::md5checksums() const { // @@protoc_insertion_point(field_list:google.genomics.v1.SearchReferencesRequest.md5checksums) return md5checksums_; } ::google::protobuf::RepeatedPtrField< ::std::string>* SearchReferencesRequest::mutable_md5checksums() { // @@protoc_insertion_point(field_mutable_list:google.genomics.v1.SearchReferencesRequest.md5checksums) return &md5checksums_; } // repeated string accessions = 2; int SearchReferencesRequest::accessions_size() const { return accessions_.size(); } void SearchReferencesRequest::clear_accessions() { accessions_.Clear(); } const ::std::string& SearchReferencesRequest::accessions(int index) const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferencesRequest.accessions) return accessions_.Get(index); } ::std::string* SearchReferencesRequest::mutable_accessions(int index) { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferencesRequest.accessions) return accessions_.Mutable(index); } void SearchReferencesRequest::set_accessions(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferencesRequest.accessions) accessions_.Mutable(index)->assign(value); } #if LANG_CXX11 void SearchReferencesRequest::set_accessions(int index, ::std::string&& value) { // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferencesRequest.accessions) accessions_.Mutable(index)->assign(std::move(value)); } #endif void SearchReferencesRequest::set_accessions(int index, const char* value) { GOOGLE_DCHECK(value != NULL); accessions_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.genomics.v1.SearchReferencesRequest.accessions) } void SearchReferencesRequest::set_accessions(int index, const char* value, size_t size) { accessions_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.SearchReferencesRequest.accessions) } ::std::string* SearchReferencesRequest::add_accessions() { // @@protoc_insertion_point(field_add_mutable:google.genomics.v1.SearchReferencesRequest.accessions) return accessions_.Add(); } void SearchReferencesRequest::add_accessions(const ::std::string& value) { accessions_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.genomics.v1.SearchReferencesRequest.accessions) } #if LANG_CXX11 void SearchReferencesRequest::add_accessions(::std::string&& value) { accessions_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.genomics.v1.SearchReferencesRequest.accessions) } #endif void SearchReferencesRequest::add_accessions(const char* value) { GOOGLE_DCHECK(value != NULL); accessions_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.genomics.v1.SearchReferencesRequest.accessions) } void SearchReferencesRequest::add_accessions(const char* value, size_t size) { accessions_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:google.genomics.v1.SearchReferencesRequest.accessions) } const ::google::protobuf::RepeatedPtrField< ::std::string>& SearchReferencesRequest::accessions() const { // @@protoc_insertion_point(field_list:google.genomics.v1.SearchReferencesRequest.accessions) return accessions_; } ::google::protobuf::RepeatedPtrField< ::std::string>* SearchReferencesRequest::mutable_accessions() { // @@protoc_insertion_point(field_mutable_list:google.genomics.v1.SearchReferencesRequest.accessions) return &accessions_; } // string reference_set_id = 3; void SearchReferencesRequest::clear_reference_set_id() { reference_set_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& SearchReferencesRequest::reference_set_id() const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferencesRequest.reference_set_id) return reference_set_id_.Get(); } void SearchReferencesRequest::set_reference_set_id(const ::std::string& value) { reference_set_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferencesRequest.reference_set_id) } void SearchReferencesRequest::set_reference_set_id(const char* value) { GOOGLE_DCHECK(value != NULL); reference_set_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.SearchReferencesRequest.reference_set_id) } void SearchReferencesRequest::set_reference_set_id(const char* value, size_t size) { reference_set_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.SearchReferencesRequest.reference_set_id) } ::std::string* SearchReferencesRequest::mutable_reference_set_id() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferencesRequest.reference_set_id) return reference_set_id_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferencesRequest::release_reference_set_id() { // @@protoc_insertion_point(field_release:google.genomics.v1.SearchReferencesRequest.reference_set_id) return reference_set_id_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferencesRequest::unsafe_arena_release_reference_set_id() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.SearchReferencesRequest.reference_set_id) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return reference_set_id_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void SearchReferencesRequest::set_allocated_reference_set_id(::std::string* reference_set_id) { if (reference_set_id != NULL) { } else { } reference_set_id_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_set_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.SearchReferencesRequest.reference_set_id) } void SearchReferencesRequest::unsafe_arena_set_allocated_reference_set_id( ::std::string* reference_set_id) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (reference_set_id != NULL) { } else { } reference_set_id_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_set_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.SearchReferencesRequest.reference_set_id) } // string page_token = 4; void SearchReferencesRequest::clear_page_token() { page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& SearchReferencesRequest::page_token() const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferencesRequest.page_token) return page_token_.Get(); } void SearchReferencesRequest::set_page_token(const ::std::string& value) { page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferencesRequest.page_token) } void SearchReferencesRequest::set_page_token(const char* value) { GOOGLE_DCHECK(value != NULL); page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.SearchReferencesRequest.page_token) } void SearchReferencesRequest::set_page_token(const char* value, size_t size) { page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.SearchReferencesRequest.page_token) } ::std::string* SearchReferencesRequest::mutable_page_token() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferencesRequest.page_token) return page_token_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferencesRequest::release_page_token() { // @@protoc_insertion_point(field_release:google.genomics.v1.SearchReferencesRequest.page_token) return page_token_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferencesRequest::unsafe_arena_release_page_token() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.SearchReferencesRequest.page_token) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return page_token_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void SearchReferencesRequest::set_allocated_page_token(::std::string* page_token) { if (page_token != NULL) { } else { } page_token_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.SearchReferencesRequest.page_token) } void SearchReferencesRequest::unsafe_arena_set_allocated_page_token( ::std::string* page_token) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (page_token != NULL) { } else { } page_token_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.SearchReferencesRequest.page_token) } // int32 page_size = 5; void SearchReferencesRequest::clear_page_size() { page_size_ = 0; } ::google::protobuf::int32 SearchReferencesRequest::page_size() const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferencesRequest.page_size) return page_size_; } void SearchReferencesRequest::set_page_size(::google::protobuf::int32 value) { page_size_ = value; // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferencesRequest.page_size) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SearchReferencesResponse::kReferencesFieldNumber; const int SearchReferencesResponse::kNextPageTokenFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SearchReferencesResponse::SearchReferencesResponse() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:google.genomics.v1.SearchReferencesResponse) } SearchReferencesResponse::SearchReferencesResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), references_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.genomics.v1.SearchReferencesResponse) } SearchReferencesResponse::SearchReferencesResponse(const SearchReferencesResponse& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), references_(from.references_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); next_page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.next_page_token().size() > 0) { next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_page_token(), GetArenaNoVirtual()); } // @@protoc_insertion_point(copy_constructor:google.genomics.v1.SearchReferencesResponse) } void SearchReferencesResponse::SharedCtor() { next_page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _cached_size_ = 0; } SearchReferencesResponse::~SearchReferencesResponse() { // @@protoc_insertion_point(destructor:google.genomics.v1.SearchReferencesResponse) SharedDtor(); } void SearchReferencesResponse::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } next_page_token_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void SearchReferencesResponse::ArenaDtor(void* object) { SearchReferencesResponse* _this = reinterpret_cast< SearchReferencesResponse* >(object); (void)_this; } void SearchReferencesResponse::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void SearchReferencesResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* SearchReferencesResponse::descriptor() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SearchReferencesResponse& SearchReferencesResponse::default_instance() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); return *internal_default_instance(); } SearchReferencesResponse* SearchReferencesResponse::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<SearchReferencesResponse>(arena); } void SearchReferencesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:google.genomics.v1.SearchReferencesResponse) references_.Clear(); next_page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } bool SearchReferencesResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.genomics.v1.SearchReferencesResponse) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .google.genomics.v1.Reference references = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, add_references())); } else { goto handle_unusual; } break; } // string next_page_token = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_next_page_token())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->next_page_token().data(), this->next_page_token().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.SearchReferencesResponse.next_page_token")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:google.genomics.v1.SearchReferencesResponse) return true; failure: // @@protoc_insertion_point(parse_failure:google.genomics.v1.SearchReferencesResponse) return false; #undef DO_ } void SearchReferencesResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:google.genomics.v1.SearchReferencesResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .google.genomics.v1.Reference references = 1; for (unsigned int i = 0, n = this->references_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->references(i), output); } // string next_page_token = 2; if (this->next_page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->next_page_token().data(), this->next_page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferencesResponse.next_page_token"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->next_page_token(), output); } // @@protoc_insertion_point(serialize_end:google.genomics.v1.SearchReferencesResponse) } ::google::protobuf::uint8* SearchReferencesResponse::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:google.genomics.v1.SearchReferencesResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .google.genomics.v1.Reference references = 1; for (unsigned int i = 0, n = this->references_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, this->references(i), deterministic, target); } // string next_page_token = 2; if (this->next_page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->next_page_token().data(), this->next_page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.SearchReferencesResponse.next_page_token"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->next_page_token(), target); } // @@protoc_insertion_point(serialize_to_array_end:google.genomics.v1.SearchReferencesResponse) return target; } size_t SearchReferencesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.genomics.v1.SearchReferencesResponse) size_t total_size = 0; // repeated .google.genomics.v1.Reference references = 1; { unsigned int count = this->references_size(); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->references(i)); } } // string next_page_token = 2; if (this->next_page_token().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->next_page_token()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void SearchReferencesResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:google.genomics.v1.SearchReferencesResponse) GOOGLE_DCHECK_NE(&from, this); const SearchReferencesResponse* source = ::google::protobuf::internal::DynamicCastToGenerated<const SearchReferencesResponse>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.genomics.v1.SearchReferencesResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:google.genomics.v1.SearchReferencesResponse) MergeFrom(*source); } } void SearchReferencesResponse::MergeFrom(const SearchReferencesResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.genomics.v1.SearchReferencesResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; references_.MergeFrom(from.references_); if (from.next_page_token().size() > 0) { set_next_page_token(from.next_page_token()); } } void SearchReferencesResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:google.genomics.v1.SearchReferencesResponse) if (&from == this) return; Clear(); MergeFrom(from); } void SearchReferencesResponse::CopyFrom(const SearchReferencesResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:google.genomics.v1.SearchReferencesResponse) if (&from == this) return; Clear(); MergeFrom(from); } bool SearchReferencesResponse::IsInitialized() const { return true; } void SearchReferencesResponse::Swap(SearchReferencesResponse* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { SearchReferencesResponse* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void SearchReferencesResponse::UnsafeArenaSwap(SearchReferencesResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void SearchReferencesResponse::InternalSwap(SearchReferencesResponse* other) { references_.InternalSwap(&other->references_); next_page_token_.Swap(&other->next_page_token_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata SearchReferencesResponse::GetMetadata() const { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // SearchReferencesResponse // repeated .google.genomics.v1.Reference references = 1; int SearchReferencesResponse::references_size() const { return references_.size(); } void SearchReferencesResponse::clear_references() { references_.Clear(); } const ::google::genomics::v1::Reference& SearchReferencesResponse::references(int index) const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferencesResponse.references) return references_.Get(index); } ::google::genomics::v1::Reference* SearchReferencesResponse::mutable_references(int index) { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferencesResponse.references) return references_.Mutable(index); } ::google::genomics::v1::Reference* SearchReferencesResponse::add_references() { // @@protoc_insertion_point(field_add:google.genomics.v1.SearchReferencesResponse.references) return references_.Add(); } ::google::protobuf::RepeatedPtrField< ::google::genomics::v1::Reference >* SearchReferencesResponse::mutable_references() { // @@protoc_insertion_point(field_mutable_list:google.genomics.v1.SearchReferencesResponse.references) return &references_; } const ::google::protobuf::RepeatedPtrField< ::google::genomics::v1::Reference >& SearchReferencesResponse::references() const { // @@protoc_insertion_point(field_list:google.genomics.v1.SearchReferencesResponse.references) return references_; } // string next_page_token = 2; void SearchReferencesResponse::clear_next_page_token() { next_page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& SearchReferencesResponse::next_page_token() const { // @@protoc_insertion_point(field_get:google.genomics.v1.SearchReferencesResponse.next_page_token) return next_page_token_.Get(); } void SearchReferencesResponse::set_next_page_token(const ::std::string& value) { next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.SearchReferencesResponse.next_page_token) } void SearchReferencesResponse::set_next_page_token(const char* value) { GOOGLE_DCHECK(value != NULL); next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.SearchReferencesResponse.next_page_token) } void SearchReferencesResponse::set_next_page_token(const char* value, size_t size) { next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.SearchReferencesResponse.next_page_token) } ::std::string* SearchReferencesResponse::mutable_next_page_token() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.SearchReferencesResponse.next_page_token) return next_page_token_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferencesResponse::release_next_page_token() { // @@protoc_insertion_point(field_release:google.genomics.v1.SearchReferencesResponse.next_page_token) return next_page_token_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* SearchReferencesResponse::unsafe_arena_release_next_page_token() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.SearchReferencesResponse.next_page_token) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return next_page_token_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void SearchReferencesResponse::set_allocated_next_page_token(::std::string* next_page_token) { if (next_page_token != NULL) { } else { } next_page_token_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.SearchReferencesResponse.next_page_token) } void SearchReferencesResponse::unsafe_arena_set_allocated_next_page_token( ::std::string* next_page_token) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (next_page_token != NULL) { } else { } next_page_token_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.SearchReferencesResponse.next_page_token) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int GetReferenceRequest::kReferenceIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetReferenceRequest::GetReferenceRequest() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:google.genomics.v1.GetReferenceRequest) } GetReferenceRequest::GetReferenceRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.genomics.v1.GetReferenceRequest) } GetReferenceRequest::GetReferenceRequest(const GetReferenceRequest& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); reference_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.reference_id().size() > 0) { reference_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reference_id(), GetArenaNoVirtual()); } // @@protoc_insertion_point(copy_constructor:google.genomics.v1.GetReferenceRequest) } void GetReferenceRequest::SharedCtor() { reference_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _cached_size_ = 0; } GetReferenceRequest::~GetReferenceRequest() { // @@protoc_insertion_point(destructor:google.genomics.v1.GetReferenceRequest) SharedDtor(); } void GetReferenceRequest::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } reference_id_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void GetReferenceRequest::ArenaDtor(void* object) { GetReferenceRequest* _this = reinterpret_cast< GetReferenceRequest* >(object); (void)_this; } void GetReferenceRequest::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void GetReferenceRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* GetReferenceRequest::descriptor() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const GetReferenceRequest& GetReferenceRequest::default_instance() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); return *internal_default_instance(); } GetReferenceRequest* GetReferenceRequest::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<GetReferenceRequest>(arena); } void GetReferenceRequest::Clear() { // @@protoc_insertion_point(message_clear_start:google.genomics.v1.GetReferenceRequest) reference_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } bool GetReferenceRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.genomics.v1.GetReferenceRequest) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string reference_id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_reference_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_id().data(), this->reference_id().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.GetReferenceRequest.reference_id")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:google.genomics.v1.GetReferenceRequest) return true; failure: // @@protoc_insertion_point(parse_failure:google.genomics.v1.GetReferenceRequest) return false; #undef DO_ } void GetReferenceRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:google.genomics.v1.GetReferenceRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string reference_id = 1; if (this->reference_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_id().data(), this->reference_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.GetReferenceRequest.reference_id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->reference_id(), output); } // @@protoc_insertion_point(serialize_end:google.genomics.v1.GetReferenceRequest) } ::google::protobuf::uint8* GetReferenceRequest::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:google.genomics.v1.GetReferenceRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string reference_id = 1; if (this->reference_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_id().data(), this->reference_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.GetReferenceRequest.reference_id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->reference_id(), target); } // @@protoc_insertion_point(serialize_to_array_end:google.genomics.v1.GetReferenceRequest) return target; } size_t GetReferenceRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.genomics.v1.GetReferenceRequest) size_t total_size = 0; // string reference_id = 1; if (this->reference_id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->reference_id()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void GetReferenceRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:google.genomics.v1.GetReferenceRequest) GOOGLE_DCHECK_NE(&from, this); const GetReferenceRequest* source = ::google::protobuf::internal::DynamicCastToGenerated<const GetReferenceRequest>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.genomics.v1.GetReferenceRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:google.genomics.v1.GetReferenceRequest) MergeFrom(*source); } } void GetReferenceRequest::MergeFrom(const GetReferenceRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.genomics.v1.GetReferenceRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.reference_id().size() > 0) { set_reference_id(from.reference_id()); } } void GetReferenceRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:google.genomics.v1.GetReferenceRequest) if (&from == this) return; Clear(); MergeFrom(from); } void GetReferenceRequest::CopyFrom(const GetReferenceRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:google.genomics.v1.GetReferenceRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool GetReferenceRequest::IsInitialized() const { return true; } void GetReferenceRequest::Swap(GetReferenceRequest* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { GetReferenceRequest* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void GetReferenceRequest::UnsafeArenaSwap(GetReferenceRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void GetReferenceRequest::InternalSwap(GetReferenceRequest* other) { reference_id_.Swap(&other->reference_id_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata GetReferenceRequest::GetMetadata() const { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // GetReferenceRequest // string reference_id = 1; void GetReferenceRequest::clear_reference_id() { reference_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& GetReferenceRequest::reference_id() const { // @@protoc_insertion_point(field_get:google.genomics.v1.GetReferenceRequest.reference_id) return reference_id_.Get(); } void GetReferenceRequest::set_reference_id(const ::std::string& value) { reference_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.GetReferenceRequest.reference_id) } void GetReferenceRequest::set_reference_id(const char* value) { GOOGLE_DCHECK(value != NULL); reference_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.GetReferenceRequest.reference_id) } void GetReferenceRequest::set_reference_id(const char* value, size_t size) { reference_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.GetReferenceRequest.reference_id) } ::std::string* GetReferenceRequest::mutable_reference_id() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.GetReferenceRequest.reference_id) return reference_id_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* GetReferenceRequest::release_reference_id() { // @@protoc_insertion_point(field_release:google.genomics.v1.GetReferenceRequest.reference_id) return reference_id_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* GetReferenceRequest::unsafe_arena_release_reference_id() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.GetReferenceRequest.reference_id) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return reference_id_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void GetReferenceRequest::set_allocated_reference_id(::std::string* reference_id) { if (reference_id != NULL) { } else { } reference_id_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.GetReferenceRequest.reference_id) } void GetReferenceRequest::unsafe_arena_set_allocated_reference_id( ::std::string* reference_id) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (reference_id != NULL) { } else { } reference_id_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.GetReferenceRequest.reference_id) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ListBasesRequest::kReferenceIdFieldNumber; const int ListBasesRequest::kStartFieldNumber; const int ListBasesRequest::kEndFieldNumber; const int ListBasesRequest::kPageTokenFieldNumber; const int ListBasesRequest::kPageSizeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ListBasesRequest::ListBasesRequest() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:google.genomics.v1.ListBasesRequest) } ListBasesRequest::ListBasesRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.genomics.v1.ListBasesRequest) } ListBasesRequest::ListBasesRequest(const ListBasesRequest& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); reference_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.reference_id().size() > 0) { reference_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reference_id(), GetArenaNoVirtual()); } page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.page_token().size() > 0) { page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.page_token(), GetArenaNoVirtual()); } ::memcpy(&start_, &from.start_, reinterpret_cast<char*>(&page_size_) - reinterpret_cast<char*>(&start_) + sizeof(page_size_)); // @@protoc_insertion_point(copy_constructor:google.genomics.v1.ListBasesRequest) } void ListBasesRequest::SharedCtor() { reference_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&start_, 0, reinterpret_cast<char*>(&page_size_) - reinterpret_cast<char*>(&start_) + sizeof(page_size_)); _cached_size_ = 0; } ListBasesRequest::~ListBasesRequest() { // @@protoc_insertion_point(destructor:google.genomics.v1.ListBasesRequest) SharedDtor(); } void ListBasesRequest::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } reference_id_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); page_token_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void ListBasesRequest::ArenaDtor(void* object) { ListBasesRequest* _this = reinterpret_cast< ListBasesRequest* >(object); (void)_this; } void ListBasesRequest::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void ListBasesRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* ListBasesRequest::descriptor() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ListBasesRequest& ListBasesRequest::default_instance() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); return *internal_default_instance(); } ListBasesRequest* ListBasesRequest::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<ListBasesRequest>(arena); } void ListBasesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:google.genomics.v1.ListBasesRequest) reference_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); ::memset(&start_, 0, reinterpret_cast<char*>(&page_size_) - reinterpret_cast<char*>(&start_) + sizeof(page_size_)); } bool ListBasesRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.genomics.v1.ListBasesRequest) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string reference_id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_reference_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_id().data(), this->reference_id().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ListBasesRequest.reference_id")); } else { goto handle_unusual; } break; } // int64 start = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &start_))); } else { goto handle_unusual; } break; } // int64 end = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &end_))); } else { goto handle_unusual; } break; } // string page_token = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_page_token())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->page_token().data(), this->page_token().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ListBasesRequest.page_token")); } else { goto handle_unusual; } break; } // int32 page_size = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &page_size_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:google.genomics.v1.ListBasesRequest) return true; failure: // @@protoc_insertion_point(parse_failure:google.genomics.v1.ListBasesRequest) return false; #undef DO_ } void ListBasesRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:google.genomics.v1.ListBasesRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string reference_id = 1; if (this->reference_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_id().data(), this->reference_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ListBasesRequest.reference_id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->reference_id(), output); } // int64 start = 2; if (this->start() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->start(), output); } // int64 end = 3; if (this->end() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->end(), output); } // string page_token = 4; if (this->page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->page_token().data(), this->page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ListBasesRequest.page_token"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->page_token(), output); } // int32 page_size = 5; if (this->page_size() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->page_size(), output); } // @@protoc_insertion_point(serialize_end:google.genomics.v1.ListBasesRequest) } ::google::protobuf::uint8* ListBasesRequest::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:google.genomics.v1.ListBasesRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string reference_id = 1; if (this->reference_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reference_id().data(), this->reference_id().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ListBasesRequest.reference_id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->reference_id(), target); } // int64 start = 2; if (this->start() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->start(), target); } // int64 end = 3; if (this->end() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->end(), target); } // string page_token = 4; if (this->page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->page_token().data(), this->page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ListBasesRequest.page_token"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->page_token(), target); } // int32 page_size = 5; if (this->page_size() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->page_size(), target); } // @@protoc_insertion_point(serialize_to_array_end:google.genomics.v1.ListBasesRequest) return target; } size_t ListBasesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.genomics.v1.ListBasesRequest) size_t total_size = 0; // string reference_id = 1; if (this->reference_id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->reference_id()); } // string page_token = 4; if (this->page_token().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->page_token()); } // int64 start = 2; if (this->start() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->start()); } // int64 end = 3; if (this->end() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->end()); } // int32 page_size = 5; if (this->page_size() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->page_size()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void ListBasesRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:google.genomics.v1.ListBasesRequest) GOOGLE_DCHECK_NE(&from, this); const ListBasesRequest* source = ::google::protobuf::internal::DynamicCastToGenerated<const ListBasesRequest>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.genomics.v1.ListBasesRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:google.genomics.v1.ListBasesRequest) MergeFrom(*source); } } void ListBasesRequest::MergeFrom(const ListBasesRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.genomics.v1.ListBasesRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.reference_id().size() > 0) { set_reference_id(from.reference_id()); } if (from.page_token().size() > 0) { set_page_token(from.page_token()); } if (from.start() != 0) { set_start(from.start()); } if (from.end() != 0) { set_end(from.end()); } if (from.page_size() != 0) { set_page_size(from.page_size()); } } void ListBasesRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:google.genomics.v1.ListBasesRequest) if (&from == this) return; Clear(); MergeFrom(from); } void ListBasesRequest::CopyFrom(const ListBasesRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:google.genomics.v1.ListBasesRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool ListBasesRequest::IsInitialized() const { return true; } void ListBasesRequest::Swap(ListBasesRequest* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { ListBasesRequest* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void ListBasesRequest::UnsafeArenaSwap(ListBasesRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void ListBasesRequest::InternalSwap(ListBasesRequest* other) { reference_id_.Swap(&other->reference_id_); page_token_.Swap(&other->page_token_); std::swap(start_, other->start_); std::swap(end_, other->end_); std::swap(page_size_, other->page_size_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata ListBasesRequest::GetMetadata() const { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // ListBasesRequest // string reference_id = 1; void ListBasesRequest::clear_reference_id() { reference_id_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& ListBasesRequest::reference_id() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ListBasesRequest.reference_id) return reference_id_.Get(); } void ListBasesRequest::set_reference_id(const ::std::string& value) { reference_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.ListBasesRequest.reference_id) } void ListBasesRequest::set_reference_id(const char* value) { GOOGLE_DCHECK(value != NULL); reference_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ListBasesRequest.reference_id) } void ListBasesRequest::set_reference_id(const char* value, size_t size) { reference_id_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ListBasesRequest.reference_id) } ::std::string* ListBasesRequest::mutable_reference_id() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ListBasesRequest.reference_id) return reference_id_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ListBasesRequest::release_reference_id() { // @@protoc_insertion_point(field_release:google.genomics.v1.ListBasesRequest.reference_id) return reference_id_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ListBasesRequest::unsafe_arena_release_reference_id() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.ListBasesRequest.reference_id) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return reference_id_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void ListBasesRequest::set_allocated_reference_id(::std::string* reference_id) { if (reference_id != NULL) { } else { } reference_id_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.ListBasesRequest.reference_id) } void ListBasesRequest::unsafe_arena_set_allocated_reference_id( ::std::string* reference_id) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (reference_id != NULL) { } else { } reference_id_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_id, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.ListBasesRequest.reference_id) } // int64 start = 2; void ListBasesRequest::clear_start() { start_ = GOOGLE_LONGLONG(0); } ::google::protobuf::int64 ListBasesRequest::start() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ListBasesRequest.start) return start_; } void ListBasesRequest::set_start(::google::protobuf::int64 value) { start_ = value; // @@protoc_insertion_point(field_set:google.genomics.v1.ListBasesRequest.start) } // int64 end = 3; void ListBasesRequest::clear_end() { end_ = GOOGLE_LONGLONG(0); } ::google::protobuf::int64 ListBasesRequest::end() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ListBasesRequest.end) return end_; } void ListBasesRequest::set_end(::google::protobuf::int64 value) { end_ = value; // @@protoc_insertion_point(field_set:google.genomics.v1.ListBasesRequest.end) } // string page_token = 4; void ListBasesRequest::clear_page_token() { page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& ListBasesRequest::page_token() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ListBasesRequest.page_token) return page_token_.Get(); } void ListBasesRequest::set_page_token(const ::std::string& value) { page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.ListBasesRequest.page_token) } void ListBasesRequest::set_page_token(const char* value) { GOOGLE_DCHECK(value != NULL); page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ListBasesRequest.page_token) } void ListBasesRequest::set_page_token(const char* value, size_t size) { page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ListBasesRequest.page_token) } ::std::string* ListBasesRequest::mutable_page_token() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ListBasesRequest.page_token) return page_token_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ListBasesRequest::release_page_token() { // @@protoc_insertion_point(field_release:google.genomics.v1.ListBasesRequest.page_token) return page_token_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ListBasesRequest::unsafe_arena_release_page_token() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.ListBasesRequest.page_token) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return page_token_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void ListBasesRequest::set_allocated_page_token(::std::string* page_token) { if (page_token != NULL) { } else { } page_token_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.ListBasesRequest.page_token) } void ListBasesRequest::unsafe_arena_set_allocated_page_token( ::std::string* page_token) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (page_token != NULL) { } else { } page_token_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.ListBasesRequest.page_token) } // int32 page_size = 5; void ListBasesRequest::clear_page_size() { page_size_ = 0; } ::google::protobuf::int32 ListBasesRequest::page_size() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ListBasesRequest.page_size) return page_size_; } void ListBasesRequest::set_page_size(::google::protobuf::int32 value) { page_size_ = value; // @@protoc_insertion_point(field_set:google.genomics.v1.ListBasesRequest.page_size) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ListBasesResponse::kOffsetFieldNumber; const int ListBasesResponse::kSequenceFieldNumber; const int ListBasesResponse::kNextPageTokenFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ListBasesResponse::ListBasesResponse() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:google.genomics.v1.ListBasesResponse) } ListBasesResponse::ListBasesResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.genomics.v1.ListBasesResponse) } ListBasesResponse::ListBasesResponse(const ListBasesResponse& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); sequence_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.sequence().size() > 0) { sequence_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sequence(), GetArenaNoVirtual()); } next_page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.next_page_token().size() > 0) { next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_page_token(), GetArenaNoVirtual()); } offset_ = from.offset_; // @@protoc_insertion_point(copy_constructor:google.genomics.v1.ListBasesResponse) } void ListBasesResponse::SharedCtor() { sequence_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); next_page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); offset_ = GOOGLE_LONGLONG(0); _cached_size_ = 0; } ListBasesResponse::~ListBasesResponse() { // @@protoc_insertion_point(destructor:google.genomics.v1.ListBasesResponse) SharedDtor(); } void ListBasesResponse::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } sequence_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); next_page_token_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void ListBasesResponse::ArenaDtor(void* object) { ListBasesResponse* _this = reinterpret_cast< ListBasesResponse* >(object); (void)_this; } void ListBasesResponse::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void ListBasesResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* ListBasesResponse::descriptor() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ListBasesResponse& ListBasesResponse::default_instance() { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::InitDefaults(); return *internal_default_instance(); } ListBasesResponse* ListBasesResponse::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage<ListBasesResponse>(arena); } void ListBasesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:google.genomics.v1.ListBasesResponse) sequence_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); next_page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); offset_ = GOOGLE_LONGLONG(0); } bool ListBasesResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.genomics.v1.ListBasesResponse) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int64 offset = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &offset_))); } else { goto handle_unusual; } break; } // string sequence = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_sequence())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->sequence().data(), this->sequence().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ListBasesResponse.sequence")); } else { goto handle_unusual; } break; } // string next_page_token = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_next_page_token())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->next_page_token().data(), this->next_page_token().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "google.genomics.v1.ListBasesResponse.next_page_token")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:google.genomics.v1.ListBasesResponse) return true; failure: // @@protoc_insertion_point(parse_failure:google.genomics.v1.ListBasesResponse) return false; #undef DO_ } void ListBasesResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:google.genomics.v1.ListBasesResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // int64 offset = 1; if (this->offset() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->offset(), output); } // string sequence = 2; if (this->sequence().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->sequence().data(), this->sequence().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ListBasesResponse.sequence"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->sequence(), output); } // string next_page_token = 3; if (this->next_page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->next_page_token().data(), this->next_page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ListBasesResponse.next_page_token"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->next_page_token(), output); } // @@protoc_insertion_point(serialize_end:google.genomics.v1.ListBasesResponse) } ::google::protobuf::uint8* ListBasesResponse::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:google.genomics.v1.ListBasesResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // int64 offset = 1; if (this->offset() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->offset(), target); } // string sequence = 2; if (this->sequence().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->sequence().data(), this->sequence().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ListBasesResponse.sequence"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->sequence(), target); } // string next_page_token = 3; if (this->next_page_token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->next_page_token().data(), this->next_page_token().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.genomics.v1.ListBasesResponse.next_page_token"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->next_page_token(), target); } // @@protoc_insertion_point(serialize_to_array_end:google.genomics.v1.ListBasesResponse) return target; } size_t ListBasesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.genomics.v1.ListBasesResponse) size_t total_size = 0; // string sequence = 2; if (this->sequence().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->sequence()); } // string next_page_token = 3; if (this->next_page_token().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->next_page_token()); } // int64 offset = 1; if (this->offset() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->offset()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void ListBasesResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:google.genomics.v1.ListBasesResponse) GOOGLE_DCHECK_NE(&from, this); const ListBasesResponse* source = ::google::protobuf::internal::DynamicCastToGenerated<const ListBasesResponse>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.genomics.v1.ListBasesResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:google.genomics.v1.ListBasesResponse) MergeFrom(*source); } } void ListBasesResponse::MergeFrom(const ListBasesResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.genomics.v1.ListBasesResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.sequence().size() > 0) { set_sequence(from.sequence()); } if (from.next_page_token().size() > 0) { set_next_page_token(from.next_page_token()); } if (from.offset() != 0) { set_offset(from.offset()); } } void ListBasesResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:google.genomics.v1.ListBasesResponse) if (&from == this) return; Clear(); MergeFrom(from); } void ListBasesResponse::CopyFrom(const ListBasesResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:google.genomics.v1.ListBasesResponse) if (&from == this) return; Clear(); MergeFrom(from); } bool ListBasesResponse::IsInitialized() const { return true; } void ListBasesResponse::Swap(ListBasesResponse* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { ListBasesResponse* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void ListBasesResponse::UnsafeArenaSwap(ListBasesResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void ListBasesResponse::InternalSwap(ListBasesResponse* other) { sequence_.Swap(&other->sequence_); next_page_token_.Swap(&other->next_page_token_); std::swap(offset_, other->offset_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata ListBasesResponse::GetMetadata() const { protobuf_google_2fgenomics_2fv1_2freferences_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_google_2fgenomics_2fv1_2freferences_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // ListBasesResponse // int64 offset = 1; void ListBasesResponse::clear_offset() { offset_ = GOOGLE_LONGLONG(0); } ::google::protobuf::int64 ListBasesResponse::offset() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ListBasesResponse.offset) return offset_; } void ListBasesResponse::set_offset(::google::protobuf::int64 value) { offset_ = value; // @@protoc_insertion_point(field_set:google.genomics.v1.ListBasesResponse.offset) } // string sequence = 2; void ListBasesResponse::clear_sequence() { sequence_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& ListBasesResponse::sequence() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ListBasesResponse.sequence) return sequence_.Get(); } void ListBasesResponse::set_sequence(const ::std::string& value) { sequence_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.ListBasesResponse.sequence) } void ListBasesResponse::set_sequence(const char* value) { GOOGLE_DCHECK(value != NULL); sequence_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ListBasesResponse.sequence) } void ListBasesResponse::set_sequence(const char* value, size_t size) { sequence_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ListBasesResponse.sequence) } ::std::string* ListBasesResponse::mutable_sequence() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ListBasesResponse.sequence) return sequence_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ListBasesResponse::release_sequence() { // @@protoc_insertion_point(field_release:google.genomics.v1.ListBasesResponse.sequence) return sequence_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ListBasesResponse::unsafe_arena_release_sequence() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.ListBasesResponse.sequence) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return sequence_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void ListBasesResponse::set_allocated_sequence(::std::string* sequence) { if (sequence != NULL) { } else { } sequence_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sequence, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.ListBasesResponse.sequence) } void ListBasesResponse::unsafe_arena_set_allocated_sequence( ::std::string* sequence) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (sequence != NULL) { } else { } sequence_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sequence, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.ListBasesResponse.sequence) } // string next_page_token = 3; void ListBasesResponse::clear_next_page_token() { next_page_token_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& ListBasesResponse::next_page_token() const { // @@protoc_insertion_point(field_get:google.genomics.v1.ListBasesResponse.next_page_token) return next_page_token_.Get(); } void ListBasesResponse::set_next_page_token(const ::std::string& value) { next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.genomics.v1.ListBasesResponse.next_page_token) } void ListBasesResponse::set_next_page_token(const char* value) { GOOGLE_DCHECK(value != NULL); next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.genomics.v1.ListBasesResponse.next_page_token) } void ListBasesResponse::set_next_page_token(const char* value, size_t size) { next_page_token_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.genomics.v1.ListBasesResponse.next_page_token) } ::std::string* ListBasesResponse::mutable_next_page_token() { // @@protoc_insertion_point(field_mutable:google.genomics.v1.ListBasesResponse.next_page_token) return next_page_token_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ListBasesResponse::release_next_page_token() { // @@protoc_insertion_point(field_release:google.genomics.v1.ListBasesResponse.next_page_token) return next_page_token_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* ListBasesResponse::unsafe_arena_release_next_page_token() { // @@protoc_insertion_point(field_unsafe_arena_release:google.genomics.v1.ListBasesResponse.next_page_token) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return next_page_token_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void ListBasesResponse::set_allocated_next_page_token(::std::string* next_page_token) { if (next_page_token != NULL) { } else { } next_page_token_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.genomics.v1.ListBasesResponse.next_page_token) } void ListBasesResponse::unsafe_arena_set_allocated_next_page_token( ::std::string* next_page_token) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (next_page_token != NULL) { } else { } next_page_token_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_page_token, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.genomics.v1.ListBasesResponse.next_page_token) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace genomics } // namespace google // @@protoc_insertion_point(global_scope)
[ "matt.sachtler@gmail.com" ]
matt.sachtler@gmail.com
5b78a1dd74eb25ed19adef9d953bd0b0d614a683
8c07a3dc5b7860252b7eaef6ce11b6c1f3c905e0
/sources/tp2-insee/cihm.cpp
632f31f9120dd1724851407e82311f4bb482adbe
[]
no_license
kevin-doolaeghe/snir1-developpement_cpp
e2bc2944158359aa45eb0eb11e3df5087e9277d7
db20257b06ef9a915ca7e5297f20eec8daee60ec
refs/heads/main
2023-04-25T12:06:40.692671
2021-05-18T09:19:29
2021-05-18T09:19:29
367,062,736
0
0
null
null
null
null
UTF-8
C++
false
false
8,769
cpp
/* Titre : Calcul d'un numéro INSEE * * Auteur : Kévin DOOLAEGHE * Date : 21/09/2017 * * Variables : * cle = entier * sexe = caractère * an = entier * mois = entier * departement = entier * codeVille = entier * codeNaissance = entier * numInsee = entier 64 bits * * début * * affichage "Calcul d'un numero INSEE" * affichage "Sexe" * affichage "Etes-vous un homme ou une femme ? (tapez h ou f)" * saisir sexe * tant que(sexe <> 'h' et sexe <> 'f') * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Sexe" * affichage "Etes-vous un homme ou une femme ? (tapez h ou f)" * affichage "Vous avez entre une mauvaise valeur, recommencez..." * saisir sexe * fin tant que * si(sexe = 'h') * alors numInsee <- 1000000000000 * sinon numInsee <- 2000000000000 * * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Annee de naissance" * affichage "En quelle annee etes-vous ne ? (deux derniers chiffres)" * saisir an * tant que(an < 0 et an > 99) * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Annee de naissance" * affichage "En quelle annee etes-vous ne ? (deux derniers chiffres)" * affichage "Vous avez entre une mauvaise valeur, recommencez..." * saisir an * fin tant que * numInsee <- numInsee + an * 10000000000 * * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Mois de naissance" * affichage "Quel est votre mois de naissance ? (deux chiffres)" * saisir mois * tant que(an < 0 et mois > 12) * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Mois de naissance" * affichage "Quel est votre mois de naissance ? (deux chiffres)" * affichage "Vous avez entre une mauvaise valeur, recommencez..." * saisir mois * fin tant que * numInsee <- numInsee + mois * 100000000 * * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Departement de la ville de naissance" * affichage "Dans quel departement etes-vous ne ? (deux chiffres)" * saisir departement * tant que(departement < 1 et departement > 94) * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Departement de la ville de naissance" * affichage "Dans quel departement etes-vous ne ? (deux chiffres)" * affichage "Vous avez entre une mauvaise valeur, recommencez..." * saisir departement * fin tant que * numInsee <- numInsee + departement * 1000000 * * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Code de la ville de naissance" * affichage "Quel est le code de la ville dans laquelle vout etes ne ? (trois chiffres)" * saisir codeVille * tant que(codeVille < 1 et codeVille > 999) * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Code de la ville de naissance" * affichage "Quel est le code de la ville dans laquelle vout etes ne ? (trois chiffres)" * affichage "Vous avez entre une mauvaise valeur, recommencez..." * saisir codeVille * fin tant que * numInsee <- numInsee + codeVille * 1000 * * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Code naissance" * affichage "Combien y a-t-il eu de naissances le mois de votre naissance ? (trois chiffres)" * saisir CodeNaissance * tant que(codeNaissance < 1 et codeNaissance > 999) * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Code naissance" * affichage "Combien y a-t-il eu de naissances le mois de votre naissance ? (trois chiffres)" * affichage "Vous avez entre une mauvaise valeur, recommencez..." * saisir codeNaissance * fin tant que * numInsee <- numInsee + codeNaissance * * cle <- 97 - numInsee modulo 97 * numInsee <- numInsee * 100 + cle * * effacer l'écran * affichage "Calcul d'un numero INSEE" * affichage "Votre numero INSEE est le suivant :" * affichage numInsee * * fin * */ #include "cihm.h" CIhm::CIhm() { } void CIhm::calculInsee() { int cle; char sexe; int an; int mois; int departement; int codeVille; int codeNaissance; long long numInsee; cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tSexe\n\n"; cout << "Etes-vous un homme ou une femme ? (tapez h ou f)\n"; cin >> sexe; while (sexe != 'h' && sexe != 'f') { system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tSexe\n\n"; cout << "Etes-vous un homme ou une femme ? (tapez h ou f)\n\n"; cout << "Vous avez entre une mauvaise valeur, recommencez...\n"; cin >> sexe; } if (sexe == 'h') numInsee = 1000000000000; else numInsee = 2000000000000; system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tAnnee de naissance\n\n"; cout << "En quelle annee etes-vous ne ? (deux derniers chiffres)\n"; cin >> an; while (an < 0 || an > 99) { system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tAnnee de naissance\n\n"; cout << "En quelle annee etes-vous ne ? (deux derniers chiffres)\n\n"; cout << "Vous avez entre une mauvaise valeur, recommencez...\n"; cin >> an; } numInsee = numInsee + an * 10000000000; system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tMois de naissance\n\n"; cout << "Quel est votre mois de naissance ? (deux chiffres)\n"; cin >> mois; while (mois < 1 || mois > 12) { system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tMois de naissance\n\n"; cout << "Quel est votre mois de naissance ? (deux chiffres)\n\n"; cout << "Vous avez entre une mauvaise valeur, recommencez...\n"; cin >> mois; } numInsee = numInsee + mois * 100000000; system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tDepartement de la ville de naissance\n\n"; cout << "Dans quel departement etes-vous ne ? (deux chiffres)\n"; cin >> departement; while (departement < 1 || departement > 94) { system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tMois de naissance\n\n"; cout << "Quel est votre mois de naissance ? (deux chiffres)\n\n"; cout << "Vous avez entre une mauvaise valeur, recommencez...\n"; cin >> departement; } numInsee = numInsee + departement * 1000000; system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tCode de la ville de naissance\n\n"; cout << "Quel est le code de la ville de votre naissance ? (trois chiffres)\n"; cin >> codeVille; while (codeVille < 1 || codeVille > 999) { system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tCode de la ville de naissance\n\n"; cout << "Quel est le code de la ville de votre naissance ? (trois chiffres)\n\n"; cout << "Vous avez entre une mauvaise valeur, recommencez...\n"; cin >> codeVille; } numInsee = numInsee + codeVille * 1000; system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tCode naissance\n\n"; cout << "Combien y a-t-il eu de naissances le mois de votre naissance ? (trois chiffres)\n"; cin >> codeNaissance; while (codeNaissance < 1 || codeNaissance > 999) { system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tCode naissance\n\n"; cout << "Combien y a-t-il eu de naissance le mois de votre naissance ? (deux chiffres)\n\n"; cout << "Vous avez entre une mauvaise valeur, recommencez...\n"; cin >> codeNaissance; } numInsee = numInsee + codeNaissance; cle = 97 - numInsee % 97; numInsee = numInsee * 100 + cle; system("clear"); cout << "\t\tCalcul d'un numero INSEE\n\n"; cout << "\tVotre numero INSEE est le suivant\n\n"; cout << numInsee << "\n\n"; system("pause"); }
[ "doolaeghe.kevin@gmail.com" ]
doolaeghe.kevin@gmail.com
a3bd368937b719aab41bd200c7cd78116d322b63
0590e3430c60296b2930d1c532efb9d116ba1c17
/atcoder-past/20190420/main.cpp
c596ed87cf13ae4e5b7d8fe554558335c6f9b1e7
[]
no_license
datsu0/cpp
645b8f9e9991fccbe514d6ea59a9353ee7da0841
0e363668fc89e589fedadbc79801d9adf53b05c9
refs/heads/master
2022-08-06T12:06:56.100520
2020-05-24T14:15:54
2020-05-24T14:15:54
255,307,034
0
0
null
null
null
null
UTF-8
C++
false
false
329
cpp
#include <iostream> using namespace std; int main(int argc, char *argv[]) { int a,b,sum=0; cin >> a; cin >> b; int i=0; while(i<2){ if(a>b){ sum = sum + a; a--; }else{ sum = sum + b; b--; } i++; } cout << sum << endl; return 0; }
[ "atsu34412@gmail.com" ]
atsu34412@gmail.com
3879d3c81ddbba98181b1933ac16ccccfe158dc0
db55149ae31b9826d739ca3dc0f13bc36dde0d1a
/RenderSystems/GLES2/Shared/GLES2RenderTextureImpl.h
b4d95d46803e32f4760cc8e099ed29d22f7cbbf2
[]
no_license
jared-two-foxes/Nebulous
608a97d5111fe14c743f5495ca1a87a3aa4a7ece
b2330ca28c8eaa509e4d94409f1658a27d7a5a9e
refs/heads/master
2021-01-23T02:34:45.520973
2017-06-08T04:46:05
2017-06-08T04:46:05
86,006,022
0
0
null
null
null
null
UTF-8
C++
false
false
1,025
h
#ifndef __NEBULAE_ALPHA_GLES2_RENDERTEXTUREIMPL_H__ #define __NEBULAE_ALPHA_GLES2_RENDERTEXTUREIMPL_H__ #include <GLES2/config.h> #include <Nebulae/Alpha/RenderTexture/RenderTextureImpl.h> namespace Nebulae { class GLES2RenderBuffer; class GLES2RenderTextureImpl : public RenderTextureImpl { public: GLuint m_framebuffer; GLES2RenderBuffer* m_colourBuffer; GLES2RenderBuffer* m_depthBuffer; public: GLES2RenderTextureImpl( int32 width, int32 height ); ~GLES2RenderTextureImpl(); virtual void BindRenderTexture() override; virtual bool BindColourTexture( int32 index, Texture* texture ) override; virtual bool BindColourBuffer( int32 index, int32 width = -1, int32 height = -1 ) override; virtual bool BindDepthTexture( Texture* texture ) override; virtual bool BindDepthBuffer( int32 index, int32 width = -1, int32 height = -1 ) override; virtual bool Load() override; virtual bool Unload() override; }; } #endif // __NEBULAE_ALPHA_GLES2_RENDERTEXTUREIMPL_H__
[ "jared@rushdigital.co.nz" ]
jared@rushdigital.co.nz
4185e32d977c20d26c229e35dc4f5c57d3abeed9
18578edd1a28e2b5845a6d1af43a16c33d8ffa97
/Leetcode/BinaryTreePostorderTree.cpp
1d2be2e0efe930e3aa03c355d593657076a72624
[]
no_license
zenanhu/Marathon
719a156d076de767b550ec2e0e6bfa62b8e3cfcc
2422317b3c9a6c36cc3bb754527b8a2c81af383a
refs/heads/master
2020-04-05T16:50:19.060256
2017-04-03T14:56:48
2017-04-03T14:56:48
25,310,693
0
0
null
null
null
null
UTF-8
C++
false
false
669
cpp
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: vector<int> postorderTraversal(TreeNode *root) { vector<int> ans; stack<TreeNode *> st; while (!st.empty() || root) { if (root) { ans.insert(ans.begin(), root->val); st.push(root); root = root->right; } else { root = st.top(); st.pop(); root = root->left; } } return ans; } };
[ "twolittlecats@163.com" ]
twolittlecats@163.com
a55be8552c7b886c1d61d30d515d4ea0b1fae325
86f8019eabea54665bf709725aaf7b2967206058
/engine/strings/include/ItemTextKeys.hpp
a8f4945ce728513fd6bbeb19b9d4ae5768aa3132
[ "MIT", "Zlib" ]
permissive
cleancoindev/shadow-of-the-wyrm
ca5d21a0d412de88804467b92ec46b78fb1e3ef0
51b23e98285ecb8336324bfd41ebf00f67b30389
refs/heads/master
2022-07-13T22:03:50.687853
2020-02-16T14:39:43
2020-02-16T14:39:43
264,385,732
1
0
MIT
2020-05-16T07:45:16
2020-05-16T07:45:15
null
UTF-8
C++
false
false
1,179
hpp
#pragma once #include <string> #include "common.hpp" #include "Consumable.hpp" #include "Wand.hpp" class ItemTextKeys { public: static const std::string ITEM_GLOW; static const std::string ITEM_MULTIPLE; static const std::string ITEM_CODEX_NOT_IDENTIFIED; static const std::string ITEM_CODEX_NO_INFORMATION_FOUND; static std::string get_value(const uint value); static std::string get_nutrition_message(ConsumablePtr consumable); static std::string get_standard_drinks_message(ConsumablePtr consumable); static std::string get_number_of_charges_message(WandPtr wand); static std::string get_wearable_protection_message(const int evade, const int soak); static std::string get_speed_modifier_message(const int bonus); protected: ItemTextKeys(); ~ItemTextKeys(); static const std::string ITEM_VALUE; static const std::string NUTRITION_MESSAGE; static const std::string STANDARD_DRINKS_MESSAGE; static const std::string NUMBER_OF_CHARGES_MESSAGE; static const std::string WEARABLE_PROTECTION_MESSAGE; static const std::string SPEED_BONUS_MESSAGE; static const std::string SPEED_PENALTY_MESSAGE; };
[ "jcd748@mail.usask.ca" ]
jcd748@mail.usask.ca
2f59a1bcc94f325b0de2ce6c4064d609bbba192b
04230fbf25fdea36a2d473233e45df21b6ff6fff
/1385-B.cpp
e501884189d69503dc85416604645fe2da418f22
[ "MIT" ]
permissive
ankiiitraj/questionsSolved
48074d674bd39fe67da1f1dc7c944b95a3ceac34
8452b120935a9c3d808b45f27dcdc05700d902fc
refs/heads/master
2021-07-22T10:16:13.538256
2021-02-12T11:51:47
2021-02-12T11:51:47
241,689,398
0
0
null
null
null
null
UTF-8
C++
false
false
1,281
cpp
#include <bits/stdc++.h> #include <time.h> #define int long long int #define pb push_back #define all(a) a.begin(), a.end() #define scnarr(a, n) for (int i = 0; i < n; ++i) cin >> a[i] #define vi vector<int> #define si set<int> #define pii pair <int, int> #define sii set<pii> #define vii vector<pii> #define mii map <int, int> #define faster ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL) using namespace std; using namespace chrono; /* -------------------------------Solution Sarted--------------------------------------*/ //Constants const int MOD = 1000000007; // 1e9 + 7 const int MAXN = 1000005; // 1e6 +5 void solve(){ int n; cin >> n; vi a(2*n),res; scnarr(a, 2*n); int visited[n +1] = {0}; for(int i = 0; i < 2*n; ++i){ if(!visited[a[i]]){ res.push_back(a[i]); visited[a[i]] = 1; } } for(auto itr: res) cout << itr << " "; cout << endl; } signed main() { faster; #ifndef ONLINE_JUDGE freopen("ip.txt", "r", stdin); freopen("op.txt", "w", stdout); #endif int t; cin >> t; while(t--) solve(); return 0; } //Author : Ankit Raj //Problem Link : /*Snippets*/ /* sieve - prime factorization using sieve and primes in range zpower - pow with mod plate - Initial template bfs dfs fenwik - BIT binary_search segment_tree */
[ "ankitatiiitr@gmail.com" ]
ankitatiiitr@gmail.com
776b109bcaa8b2b79b8d888a98efd8f7705ae3b7
04adcfd3bcf61a3d59388c194a6a27fbc5c247ab
/src/ppp_ipcp.cpp
98f38260d4709372099b289abeed8a63b5223414
[]
no_license
fortitudepub/pppcpd
4ff30e2f264427309c04531ea380bd0fa5697145
277a81c0145fb68c3205d646a455c33ec1b008af
refs/heads/master
2023-01-12T01:02:10.447814
2020-11-01T10:11:12
2020-11-01T10:11:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,014
cpp
#include <vector> #include <string> #include <iostream> #include "ppp_ipcp.hpp" #include "packet.hpp" #include "runtime.hpp" #include "string_helpers.hpp" #include "aaa_session.hpp" using namespace std::string_literals; extern std::shared_ptr<PPPOERuntime> runtime; IPCP_FSM::IPCP_FSM( PPPOESession &s ): session( s ), PPP_FSM( s.session_id ) {} FSM_RET IPCP_FSM::send_conf_req() { runtime->logger->logDebug() << LOGS::IPCP << "send_conf_req current state: " << state << std::endl; std::vector<uint8_t> pkt; pkt.resize( sizeof( ETHERNET_HDR) + sizeof( PPPOESESSION_HDR ) + 256 ); // Fill pppoe part PPPOESESSION_HDR* pppoe = reinterpret_cast<PPPOESESSION_HDR*>( pkt.data() ); pppoe->version = 1; pppoe->type = 1; pppoe->ppp_protocol = bswap( static_cast<uint16_t>( PPP_PROTO::IPCP ) ); pppoe->code = PPPOE_CODE::SESSION_DATA; pppoe->session_id = bswap( session_id ); // Fill IPCP part; here we just can use lcp header PPP_LCP *lcp = reinterpret_cast<PPP_LCP*>( pppoe->getPayload() ); lcp->code = LCP_CODE::CONF_REQ; lcp->identifier = pkt_id; // Fill LCP options auto ipcpOpts = 0; auto ipad = reinterpret_cast<IPCP_OPT_4B*>( lcp->getPayload() ); ipad->set( IPCP_OPTIONS::IP_ADDRESS, 0x64400001 ); ipcpOpts += ipad->len; // After all fix lenght in headers lcp->length = htons( sizeof( PPP_LCP ) + ipcpOpts ); pppoe->length = htons( sizeof( PPP_LCP ) + ipcpOpts + 2 ); // plus 2 bytes of ppp proto pkt.resize( sizeof( ETHERNET_HDR) + sizeof( PPPOESESSION_HDR ) + sizeof( PPP_LCP ) + ipcpOpts ); auto header = session.encap.generate_header( runtime->hwaddr, ETH_PPPOE_SESSION ); pkt.insert( pkt.begin(), header.begin(), header.end() ); // Send this CONF REQ runtime->ppp_outcoming.push( pkt ); return { PPP_FSM_ACTION::NONE, "" }; } FSM_RET IPCP_FSM::send_conf_ack( std::vector<uint8_t> &inPkt ) { runtime->logger->logDebug() << LOGS::IPCP << "send_conf_ack current state: " << state << std::endl; PPPOESESSION_HDR *pppoe = reinterpret_cast<PPPOESESSION_HDR*>( inPkt.data() ); // Fill LCP part PPP_LCP *lcp = reinterpret_cast<PPP_LCP*>( pppoe->getPayload() ); lcp->code = LCP_CODE::CONF_ACK; auto header = session.encap.generate_header( runtime->hwaddr, ETH_PPPOE_SESSION ); inPkt.insert( inPkt.begin(), header.begin(), header.end() ); // Send this CONF REQ runtime->ppp_outcoming.push( std::move( inPkt ) ); if( state == PPP_FSM_STATE::Opened ) { return { PPP_FSM_ACTION::LAYER_UP, "" }; } return { PPP_FSM_ACTION::NONE, "" }; } FSM_RET IPCP_FSM::send_conf_nak( std::vector<uint8_t> &inPkt ) { runtime->logger->logDebug() << LOGS::IPCP << "send_conf_nak current state: " << state << std::endl; auto const &[ aaa_session, err ] = runtime->aaa->getSession( session.aaa_session_id ); if( !err.empty() ) { return { PPP_FSM_ACTION::NONE, "Cannot send conf nak cause: "s + err }; } PPPOESESSION_HDR *pppoe = reinterpret_cast<PPPOESESSION_HDR*>( inPkt.data() ); // Fill LCP part PPP_LCP *lcp = reinterpret_cast<PPP_LCP*>( pppoe->getPayload() ); lcp->code = LCP_CODE::CONF_NAK; // Set our parameters auto opts = lcp->parseIPCPOptions(); for( auto &opt: opts ) { switch( opt->opt ) { case IPCP_OPTIONS::IP_ADDRESS: { auto ipad = reinterpret_cast<IPCP_OPT_4B*>( opt ); ipad->val = htonl( aaa_session->address.to_uint() ); break; } case IPCP_OPTIONS::PRIMARY_DNS: { auto dns1 = reinterpret_cast<IPCP_OPT_4B*>( opt ); dns1->val = htonl( aaa_session->dns1.to_uint() ); break; } case IPCP_OPTIONS::SECONDARY_DNS: { auto dns2 = reinterpret_cast<IPCP_OPT_4B*>( opt ); dns2->val = htonl( aaa_session->dns2.to_uint() ); break; } default: break; } } auto header = session.encap.generate_header( runtime->hwaddr, ETH_PPPOE_SESSION ); inPkt.insert( inPkt.begin(), header.begin(), header.end() ); // Send this CONF REQ runtime->ppp_outcoming.push( std::move( inPkt ) ); return { PPP_FSM_ACTION::NONE, "" }; } FSM_RET IPCP_FSM::check_conf( std::vector<uint8_t> &inPkt ) { PPPOESESSION_HDR *pppoe = reinterpret_cast<PPPOESESSION_HDR*>( inPkt.data() ); PPP_LCP *lcp = reinterpret_cast<PPP_LCP*>( pppoe->getPayload() ); uint32_t len = bswap( lcp->length ) - sizeof( PPP_LCP ); if( len <= 0 ) { return { PPP_FSM_ACTION::NONE, "There is no options" }; } auto const &[ aaa_session, err ] = runtime->aaa->getSession( session.aaa_session_id ); if( !err.empty() ) { return { PPP_FSM_ACTION::NONE, "Cannot send conf nak cause: "s + err }; } else { session.address = aaa_session->address.to_uint(); } LCP_CODE code = LCP_CODE::CONF_ACK; // Check options auto opts = lcp->parseIPCPOptions(); for( auto &opt: opts ) { switch( opt->opt ) { case IPCP_OPTIONS::IP_ADDRESS: { auto ipad = reinterpret_cast<IPCP_OPT_4B*>( opt ); if( ipad->val != htonl( aaa_session->address.to_uint() ) ) { code = LCP_CODE::CONF_NAK; } break; } case IPCP_OPTIONS::PRIMARY_DNS: { auto dns1 = reinterpret_cast<IPCP_OPT_4B*>( opt ); if( dns1->val != htonl( aaa_session->dns1.to_uint() ) ) { code = LCP_CODE::CONF_NAK; } break; } case IPCP_OPTIONS::SECONDARY_DNS: { auto dns2 = reinterpret_cast<IPCP_OPT_4B*>( opt ); if( dns2->val != htonl( aaa_session->dns2.to_uint() ) ) { code = LCP_CODE::CONF_NAK; } break; } default: break; } } //send pkt if( code == LCP_CODE::CONF_ACK ) { if( state == PPP_FSM_STATE::Ack_Rcvd ) { state = PPP_FSM_STATE::Opened; layer_up(); } else { state = PPP_FSM_STATE::Ack_Sent; } nak_counter = 0; return send_conf_ack( inPkt ); } else { if( state != PPP_FSM_STATE::Ack_Rcvd ) { state = PPP_FSM_STATE::Req_Sent; } if( code == LCP_CODE::CONF_NAK ) { nak_counter++; } return send_conf_nak( inPkt ); } } FSM_RET IPCP_FSM::send_conf_rej() { return { PPP_FSM_ACTION::NONE, "" }; } FSM_RET IPCP_FSM::send_code_rej() { return { PPP_FSM_ACTION::NONE, "" }; } FSM_RET IPCP_FSM::send_term_req() { return { PPP_FSM_ACTION::NONE, "" }; } FSM_RET IPCP_FSM::send_term_ack( std::vector<uint8_t> &inPkt ) { return { PPP_FSM_ACTION::NONE, "" }; } FSM_RET IPCP_FSM::send_echo_rep( std::vector<uint8_t> &inPkt ) { return { PPP_FSM_ACTION::NONE, "" }; } FSM_RET IPCP_FSM::recv_echo_rep( std::vector<uint8_t> &inPkt ) { return { PPP_FSM_ACTION::NONE, "" }; }
[ "zstaseg@gmail.com" ]
zstaseg@gmail.com
d0016888e9a2da0c89c4c3fabb19365bc1dc9f96
1278a61a1936f7f04c42c37d5702d818cdbe241d
/src/marker_extractor.cpp
d3050b8ae326938a2b827dbd6530e43a64e2451a
[]
no_license
arushk1/marker_extractor
ffd66eb6a048f02c79a5f7308099881cee58ee2a
2187283ad7f8968efd32e06d4ffff2f69fff40e4
refs/heads/master
2021-01-10T20:21:11.193538
2015-07-28T11:16:25
2015-07-28T11:16:25
39,771,617
0
0
null
null
null
null
UTF-8
C++
false
false
5,906
cpp
#include "marker_extractor/marker_extractor.h" #include "cv_bridge/cv_bridge.h" #include "sensor_msgs/image_encodings.h" #include "geometry_msgs/PoseStamped.h" #include "icg_msgs/icg_get_calibration.h" #include "opencv2/imgproc/imgproc.hpp" #include <opencv2/calib3d/calib3d.hpp> #include "tf/tf.h" #include <tf/transform_broadcaster.h> using namespace std; MarkerExtractor::MarkerExtractor(): calibration_set_(false) { // parse parameters ros::NodeHandle pNode("~"); pNode.param("pattern_width", p_width_, 8); pNode.param("pattern_height", p_height_, 5); pNode.param("pattern_scale", p_scale_, 3); pNode.param("robust", doRansac_, true); if(doRansac_) { pNode.param("robust_iteration_count", iterationsCount_, 100); pNode.param("robust_max_reprojection_error", reprojectionError_, 0.1); pNode.param("robust_min_inliers_count", minInliersCount_, 30); } image_transport::ImageTransport it(pNode); img_sub_ = it.subscribe("image_rect", 1, &MarkerExtractor::cbImage, this); img_pub_ = it.advertise("output", 1); pose_pub_ = pNode.advertise<geometry_msgs::PoseStamped>("pose",1); // create 3d points pts3d_.clear(); for (int c = 0; c < p_width_; c++) for(int r = 0; r < p_height_; r++) pts3d_.push_back( cv::Point3d( c, r, 0.0) * p_scale_ ); // camera_info from serice call ros::ServiceClient client = pNode.serviceClient<icg_msgs::icg_get_calibration>("get_calibration"); icg_msgs::icg_get_calibration srv; srv.request.request = true; if(client.call(srv)) { ROS_INFO_STREAM("Got calibration from serviece" << client.getService()); cam_info_.height = srv.response.height; cam_info_.width = srv.response.width; cam_info_.K[0] = srv.response.fx * cam_info_.width; //fx cam_info_.K[1] = 0.0; cam_info_.K[2] = srv.response.cx * cam_info_.width; //cx cam_info_.K[3] = 0.0; cam_info_.K[4] = srv.response.fy * cam_info_.height; //fy cam_info_.K[5] = srv.response.cy * cam_info_.height; //cy cam_info_.K[6] = 0.0; cam_info_.K[7] = 0.0; cam_info_.K[8] = 1.0; parseCalibration(); } else { ROS_WARN("Failed to get calibration using service"); ROS_WARN("Subscribing to camera info"); client.shutdown(); info_sub_ = n_.subscribe<sensor_msgs::CameraInfo>("camera_info", 1, &MarkerExtractor::cbCameraInfo, this); } } MarkerExtractor::~MarkerExtractor() { } void MarkerExtractor::parseCalibration() { // assuming undistorted images ROS_WARN("Assuming undistorted images!"); cam_info_.D.clear(); for (int i = 0; i < 4; i++) cam_info_.D.push_back(0.0); // K and d as Mat K_ = cv::Mat (3,3,CV_64F); for (int i = 0; i < cam_info_.K.size(); i++) K_.at<double>(i) = cam_info_.K[i]; d_ = cv::Mat (4,1,CV_64F); for (int i = 0; i < cam_info_.D.size(); i++) d_.at<double>(i) = cam_info_.D[i]; ROS_INFO_STREAM("K: " << cam_info_.K[0] << " " << cam_info_.K[1] << " " << cam_info_.K[2]); ROS_INFO_STREAM(" " << cam_info_.K[3] << " " << cam_info_.K[4] << " " << cam_info_.K[5]); ROS_INFO_STREAM(" " << cam_info_.K[6] << " " << cam_info_.K[7] << " " << cam_info_.K[8]); calibration_set_ = true; } void MarkerExtractor::cbCameraInfo(const sensor_msgs::CameraInfoConstPtr & msg) { cam_info_ = *msg; parseCalibration(); info_sub_.shutdown(); } void MarkerExtractor::cbImage(const sensor_msgs::ImageConstPtr &msg) { if(!calibration_set_) return; cv_bridge::CvImagePtr cv_ptr; try { cv_ptr = cv_bridge::toCvCopy(msg, sensor_msgs::image_encodings::BGR8); } catch (cv_bridge::Exception& e) { ROS_ERROR("cv_bridge exception: %s", e.what()); return; } cv::Mat img_bgr = cv_ptr->image; cv::Mat img_gray; cv::cvtColor(img_bgr,img_gray,cv::COLOR_BGR2GRAY); // find checker board std::vector<cv::Point2f> pts2d; bool found = cv::findChessboardCorners( img_gray, cvSize(p_height_,p_width_), pts2d, CV_CALIB_CB_ADAPTIVE_THRESH | CV_CALIB_CB_NORMALIZE_IMAGE); if (!found) { ROS_WARN("No chess board found!"); return; } if (img_pub_.getNumSubscribers()) { cv::drawChessboardCorners(img_bgr,cvSize(p_height_,p_width_), cv::Mat(pts2d), found ); img_pub_.publish(cv_ptr->toImageMsg()); } // calculate pose try { cv::Mat r(3,1,CV_64F); cv::Mat t(3,1,CV_64F); if(!doRansac_) cv::solvePnP(pts3d_,pts2d,K_,d_,r,t); else { cv::Mat inliers; cv::solvePnPRansac( pts3d_, pts2d, K_, d_, r, t, false, iterationsCount_, reprojectionError_, minInliersCount_, inliers); ROS_INFO_STREAM("inliers: " << inliers.rows << "x" << inliers.cols); } ROS_INFO_STREAM("r: " << r); ROS_INFO_STREAM("t: " << t); if(pose_pub_.getNumSubscribers()) { tf::Quaternion q; q.setRPY(r.at<double>(0),r.at<double>(1),r.at<double>(2)); geometry_msgs::PoseStamped pose; pose.header = msg->header; pose.pose.position.x = t.at<double>(0); pose.pose.position.y = t.at<double>(1); pose.pose.position.z = t.at<double>(2); pose.pose.orientation.w = q.getW(); pose.pose.orientation.x = q.getX(); pose.pose.orientation.y = q.getY(); pose.pose.orientation.z = q.getZ(); cout << "Publishing" << endl; pose_pub_.publish(pose); } } catch (cv::Exception& e) { ROS_ERROR("cv exception: %s", e.what()); } }
[ "arushk1@gmail.com" ]
arushk1@gmail.com
6899f69b29933f3ba95b353153da2c76d534d68a
325f4a6ce8aa09a019cae883c0db967b615da5db
/SDK/PUBG_Buff_FireDOT_classes.hpp
aeb5578d827a8cac62d5fffc335570795688493c
[]
no_license
Rioo-may/PUBG-SDK
1c9e18b1dc0f893f5e88d5c2f631651ada7e63a4
fa64ffdc5924e5f3222a30b051daa3a5b3a86fbf
refs/heads/master
2023-01-07T22:57:11.560093
2020-11-11T05:49:47
2020-11-11T05:49:47
311,240,310
0
0
null
2020-11-11T05:51:42
2020-11-09T06:09:27
C++
UTF-8
C++
false
false
937
hpp
#pragma once // PlayerUnknown's Battlegrounds (2.5.39.19) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace Classes { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass Buff_FireDOT.Buff_FireDOT_C // 0x0008 (0x0428 - 0x0420) class ABuff_FireDOT_C : public ABuff_DamageOverTime_C { public: struct FPointerToUberGraphFrame UberGraphFrame; // 0x0420(0x0008) (CPF_ZeroConstructor, CPF_Transient, CPF_DuplicateTransient) static UClass* StaticClass() { static auto ptr = UObject::FindClass("BlueprintGeneratedClass Buff_FireDOT.Buff_FireDOT_C"); return ptr; } void UserConstructionScript(); void TickBuff(); void ExecuteUbergraph_Buff_FireDOT(int EntryPoint); }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "pubgsdk@gmail.com" ]
pubgsdk@gmail.com
adcf0d99a7298324672a23475fd24008f5e30854
99e220dc0e9c0c4db618799e448435811c820654
/Accepted (386)/V-4 (33)/406.cpp
660be4313e5fd133776c158242ea9a0add0ad7c6
[]
no_license
bdsadeq/uva-problem-solutions
9ec36e4bfb3da6ef6fee596cddfa5902644e43fb
b21451af4617137d02bf56810b19e3f3912b5ff9
refs/heads/master
2021-01-17T11:35:53.681391
2019-04-23T11:48:10
2019-04-23T11:48:10
41,681,991
0
0
null
null
null
null
UTF-8
C++
false
false
1,049
cpp
//Prime Cuts (#406) //Sadeq #include<stdio.h> #include<math.h> int seieve(long n); bool pri[1200]; int main() { int n,c; int list[1200]; int i,j; int start,end; seieve(1000); while(scanf("%d %d",&n,&c)==2) { //create list of prime j=0; for(i=1;i<=n;i++) { if(pri[i]==1) { list[j]=i; j++; } } if(j%2==0) { if((c*2)>j) { start=0; end=j-1; } else { start=(j/2)-c; end=(j/2)+c-1; } } else if(j%2==1) { if((c*2-1)>j) { start=0; end=j-1; } else { start=((j+1)/2)-c; end=((j-1)/2)+c-1; } } //output printf("%d %d:",n,c); for(i=start;i<=end;i++) { printf(" %d",list[i]); } printf("\n\n"); } return 0; } int seieve(long n) { long i,j,imax,jmax; for(i=0;i<=n;i++) pri[i]=1; imax=sqrt(n)+1; for(i=2;i<=imax;i++) { jmax=(n/i)+1; if(pri[i]==1) { for(j=2;j<=jmax;j++) { if(i*j<=n) pri[i*j]=0; } } } return 0; }
[ "sadeq@winexsoft.com" ]
sadeq@winexsoft.com
21da5ced9840bcc9ba4f507a6dcc0e47363569f9
175e724e9cc27fe3000326c816c6c8a2e8ed5e48
/jma-receipt.r_5_1_branch/cobol/copy/CPFMSEIKYUN.INC
cf4c919c7ca8585d8923ef7d3b525babf991c325
[]
no_license
Hiroaki-Inomata/ORCA-5-1
8ddb025ed0a9f7d4ca43503dff093722508207bf
15c648029770cfd9b3af60ae004c65819af6b4b1
refs/heads/master
2022-11-08T13:33:19.410136
2020-06-25T13:35:13
2020-06-25T13:35:13
274,871,265
0
1
null
null
null
null
EUC-JP
C++
false
false
6,994
inc
******************************************************************* * Project code name "ORCA" * 日医標準レセプトソフト(JMA standard receipt software) * Copyright(C) 2002 JMA (Japan Medical Association) * * This program is part of "JMA standard receipt software". * * This program is distributed in the hope that it will be useful * for further advancement in medical care, according to JMA Open * Source License, but WITHOUT ANY WARRANTY. * Everyone is granted permission to use, copy, modify and * redistribute this program, but only under the conditions described * in the JMA Open Source License. You should have received a copy of * this license along with this program. If not, stop using this * program and contact JMA, 2-28-16 Honkomagome, Bunkyo-ku, Tokyo, * 113-8621, Japan. ******************************************************************** 01 FMSEIKYUN-REC. 03 FMSEIKYUN-CONTEXT PIC S9(9) BINARY. 03 FMSEIKYUN-OBJECT PIC X(36). 03 FMSEIKYUN-MODE PIC S9(9) BINARY. 03 FMSEIKYUN-RECORDNAME PIC X(128). 03 FMSEIKYUN-DATA. 05 FMSEIKYUN-FORM-ID PIC X(30). 05 FMSEIKYUN-CUSTOM-ID PIC X(30). 05 FMSEIKYUN-PRINTER PIC X(20). * 05 FMSEIKYUN-MOTOID PIC X(02). 05 FMSEIKYUN-KARIKEISANKBN PIC X(01). * * 患者番号 05 FMSEIKYUN-PTNUM PIC X(20). * 患者氏名 05 FMSEIKYUN-NAME PIC X(50). * 患者カナ氏名 05 FMSEIKYUN-KANANAME PIC X(50). * * 医療機関情報 05 FMSEIKYUN-HOSP-AREA. * 医療機関名称 07 FMSEIKYUN-HOSP-NAME-G. 09 FMSEIKYUN-HOSP-NAME PIC X(120) OCCURS 3. * 医療機関郵便番号 07 FMSEIKYUN-HOSP-POST PIC X(7). * 医療機関住所 07 FMSEIKYUN-HOSP-ADRS-G. 09 FMSEIKYUN-HOSP-ADRS PIC X(200) OCCURS 3. * 医療機関電話番号 07 FMSEIKYUN-HOSP-TEL PIC X(15). * 開始診療日 05 FMSEIKYUN-STSRYYMD PIC X(10). * 終了診療日 05 FMSEIKYUN-EDSRYYMD PIC X(10). * 伝票発行日 05 FMSEIKYUN-DENPPRTYMD PIC X(10). * 病棟番号 05 FMSEIKYUN-BTUNUM PIC X(2). * 病棟名称 05 FMSEIKYUN-BTUNAME PIC X(20). * 病室番号 05 FMSEIKYUN-BRMNUM PIC X(6). * * 診療科 05 FMSEIKYUN-SRYKANAME PIC X(30). * 保険情報 05 FMSEIKYUN-HOKENNAME PIC X(40). 05 FMSEIKYUN-FUTAN-G. * 負担割合 07 FMSEIKYUN-FUTAN PIC X(04). * 負担割合 07 FMSEIKYUN-FUTANMEI PIC X(02). * 伝票番号(一括以外) 05 FMSEIKYUN-DENPNUM PIC X(07). * 訂正表示区分 05 FMSEIKYUN-TEISEI-KBN PIC X(01). * 請求項目 05 FMSEIKYUN-MEISAI-OCC OCCURS 16. * 請求項目区分 07 FMSEIKYUN-HKNTEN-KBN PIC X(03). * 請求項目名 07 FMSEIKYUN-HKNTEN-NAME PIC X(20). * 請求点数 07 FMSEIKYUN-HKNTEN PIC X(10). * 請求金額(保険適用外) 07 FMSEIKYUN-TGMONEY PIC X(10). * 点数合計 05 FMSEIKYUN-TOTAL-TEN PIC X(10). * 患者一部負担金 05 FMSEIKYUN-HKNTEKMONEY PIC X(10). * 患者一部負担金ラベル(労災診療料等再掲) 05 FMSEIKYUN-LBL-RSI-TOTAL PIC X(20). * 患者一部負担金(労災診療料等再掲) 05 FMSEIKYUN-RSI-TOTAL PIC X(10). * 公費一部負担金 05 FMSEIKYUN-KOH-FTN PIC X(10). * 食事療養費 05 FMSEIKYUN-SKJRYOYO PIC X(10). * 食事負担金 05 FMSEIKYUN-SKJ-FTN PIC X(10). * 生活療養費 05 FMSEIKYUN-LIFERYOYO PIC X(10). * 生活負担金 05 FMSEIKYUN-LIFE-FTN PIC X(10). * 保険適用外合計 05 FMSEIKYUN-TOTAL-TGMONEY PIC X(10). * 保険適用外合計消費税再掲 05 FMSEIKYUN-TOTAL-TGMONEY-TAX PIC X(10). * その他自費 05 FMSEIKYUN-JIHI-OCC OCCURS 10. * その他自費名称 07 FMSEIKYUN-JIHI-NAME PIC X(20). * その他自費金額 07 FMSEIKYUN-JIHI PIC X(10). * その他自費合計金額 05 FMSEIKYUN-JIHI-TOTAL PIC X(10). * その他自費合計金額消費税再掲 05 FMSEIKYUN-JIHI-TOTAL-TAX PIC X(10). * 室料差額 05 FMSEIKYUN-RMSAGAKU PIC X(10). * 室料差額消費税再掲 05 FMSEIKYUN-RMSAGAKU-TAX PIC X(10). * 調整金1 05 FMSEIKYUN-CHOSEI1 PIC X(10). * 調整金2 05 FMSEIKYUN-CHOSEI2 PIC X(10). * 今回請求額 05 FMSEIKYUN-SKYMONEY PIC X(10). * 今回請求額消費税再掲 05 FMSEIKYUN-SKYMONEY-TAX PIC X(10). * 今回入金額 05 FMSEIKYUN-NYUKIN PIC X(10). * 入院未収額 05 FMSEIKYUN-NYU-MISYU PIC X(10). * 外来未収額 05 FMSEIKYUN-GAI-MISYU PIC X(10). * * 注意書き(請求書部分) 05 FMSEIKYUN-SKY-CAUTION PIC X(100). * * メモ 05 FMSEIKYUN-MEMO PIC X(80) OCCURS 10.
[ "air.h.128k.il@gmail.com" ]
air.h.128k.il@gmail.com
8e1038dd801999b69dae898e3ff71570e0419b9d
9b426f6368c7673e72c88d60e75abcf0b681ded0
/Dp/213. 打家劫舍 II.cpp
2700f269f61148205ed995bc90e84d2419323fda
[]
no_license
solthx/leetcode
3f2311be100a255b43af46c3409efd5b6fc55261
b00801a04576a3cd5fb68a7207995db32980df8a
refs/heads/master
2022-06-06T03:28:54.752438
2020-05-03T16:17:55
2020-05-03T16:17:55
182,220,140
5
0
null
null
null
null
UTF-8
C++
false
false
2,253
cpp
/* 问题分析: 土匪打劫,数组中的元素为该房屋的财富数, 不能连续打劫相邻的两个房屋, 所有房屋是环状( 若打劫了最后一个屋子,那么第一个屋子就不能打劫 ) 问最多能打劫多少财富 问题分析: 分两种情况, 一种是打劫第一户人家,一种是不打劫第一户人家, 最后返回上面两种情况的最大值。 */ class Solution1 { public: int rob(vector<int>& nums) { if (nums.size()==0) return 0; if ( nums.size()==1 ) return nums[0]; int n = nums.size(); vector<vector<int>> dp(n, vector<int>(2,0)); //dp[i][0]表示不偷第i个房屋 //dp[i][1]表示偷第i个房屋 int res1,res2; //第一个必偷 dp[0][1] = nums[0]; dp[0][0] = INT_MIN; for ( int i=1; i<n; ++i ){ dp[i][0] = max( dp[i-1][0], dp[i-1][1] ); dp[i][1] = max( dp[i][0], dp[i-1][0]+nums[i] ); } res1 = dp[n-1][0]; //第一个不偷 dp[0][1] = INT_MIN; dp[0][0] = 0; for ( int i=1; i<n; ++i ){ dp[i][0] = max( dp[i-1][0], dp[i-1][1] ); dp[i][1] = max( dp[i][0], dp[i-1][0]+nums[i] ); } res2 = dp[n-1][1]; return max(res1, res2); } }; // 空间优化到O(1) class Solution2 { public: int rob(vector<int>& nums) { if ( nums.size()==0 ) return 0; if ( nums.size()==1 ) return nums[0]; int res1,res2; //不打劫第一户 int da=nums[1], buda=0, pre_da=nums[1], pre_buda=0; for ( int i=2; i<nums.size(); ++i ){ buda = max( pre_buda, pre_da ); da = max( buda, pre_buda+nums[i] ); pre_buda = buda; pre_da = da; } res1 = max( pre_da, pre_buda ); da=nums[0], buda=0, pre_da=nums[0], pre_buda=0; for ( int i=1; i<nums.size()-1; ++i ){ buda = max( pre_buda, pre_da ); da = max( buda, pre_buda+nums[i] ); pre_buda = buda; pre_da = da; } res2 = max( pre_da, pre_buda ); return max(res1, res2); } };
[ "apple@appledeMacBook-Pro.local" ]
apple@appledeMacBook-Pro.local
31704e362fb1378fa97e531575f3dbff44f80558
ec4e15cfb2a4705516631cd6163bf32235afa4e4
/xed.h
920fb6543187cf0de360703125f8a5c8e84be97c
[]
no_license
ceslo99/csDisassemblerProject
3263be875f5a9aada0f19a7e33d74175b7d01483
014096b9d75916f70c4065c7eacbb9eb95a4d9d0
refs/heads/master
2020-07-20T22:50:33.143347
2019-09-06T05:47:50
2019-09-06T05:47:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,839
h
/**************************************************************************** Team: Samantha Quiroz - CSSC0416 Jacqueline Gronotte - CSSC0415 Cesar Lopez - CSSC0552 Class: CS530, Spring 2019 Project: Assignment 2 File: xed.h Note: header file for the main.cpp program ****************************************************************************/ #include <iostream> #include <iomanip> #include <stdlib.h> #include <string> #include <fstream> #include <sstream> #include <math.h> #include <ctype.h> #include "symtabreader.h" using namespace std; //////////////////GLOBAL VARIABLES:////////////////// //NIXBPE Flags bool flagN = false; bool flagI = false; bool flagX = false; bool flagB = false; bool flagP = false; bool flagE = false; //addressing modes bool indexAddressing = false; bool immediateAddressing = false; bool indirectAddressing = false; bool simpleAddressing = false; bool directAddressing = false; bool PCRelativeAddressing = false; bool BaseRelativeAdressing = false; bool extendedAddressing = false; bool checkLiteral = false; int locationCounter = 0; int addrDisplacement; int format; //what format the op code is int targetAddress; int baseCounter; int displacement = 0; int lengthOfProg = 0; string registers; //stores which registers are used in format 2 string foundLiteral; //holds the literal int addrOfFirstExec; string symbol; //stores the symbol that will be printed out string literal; //stores the literal that will be printed out bool base = false; //indicates when we need to print out BASE or not string LDBOperand; //stores the operand used with LDB in order to add it after BASE bool checkLastLiteral = false; //says if we hit the last literal in order to know when to print LTORG int incrLC; //adds to the locationCounter how many bytes the literal was int TA; string objectCode; //stores the object code bool checkLTORG = false; int literalCounter = 1; //counts number of literals; used to check when we hit the last literal stringstream stringTemp; //used for formatting vector<SYMTABReader::symbols> symTab; //vector that stores the symbol table vector<SYMTABReader::literals> litTab; //vector that stores the literal table //Needed to save variables for outFile vector<string> lcColumn; vector<string> symbolColumn; vector<string> mnemonicColumn; vector<string> operandColumn; vector<string> objectColumn; /** * Function: takes in a string (in hex) and converts the string to an integer * Parameters: string that holds the starting address of prog or the object prog length * Return Values: the starting address of prog or the object prog length as an int */ int hexToInt(string); /** * Function: changes the character sent in to an integer * Parameters: a character * Return Value: the character as an integer */ int charToInt(char); /** * function: converts a byte (written in hex) to a decimal * Parameters: two integers, one that has the first digit of a byte and the second that has the * second digit of a byte * Return Value: an integer that stores the byte's decimal value */ int IntToDecimal(int,int); /** * function: gets the instruction based on the given OP Code * Parameters: a string that holds the OP Code * Return Value: a string that holds the instruction correlating to the given OP Code */ string getOpValue(string); /** * Function: set the NIXBPE flags and sets the addressing modes * Parameters: a string that holds the digits that indicates which flags are set * Return Value: N/A */ void setNIXBPEFlags(string); /** * Function: figures out which registers are being used for the format 2 object code * Parameters: OpCode and the portion of the object code that holds the registers mnemonic * Return Value: a string that holds the registers being used; the string will later be used in the print out */ string format2(string,string); /** * Function: finds the address displacement * Parameters: the portion of the object that is the address displacement * Return Value: returns that address displacement */ int findAddrDisp(string); /** * Function: finds the target address dependent on the format of the object code * Parameters: the format of the object code and the address displacement * Return Value: returns the target address */ int findTargetAddr(int, int); /** * Function: looks through the symbol vector to see if there is a symbol at a given address * Parameters: the symbol vector that holds the symbol table and the location counter * Return Value: string of the symbol */ string findSymbolFromTab( vector<SYMTABReader::symbols>, int); /** * Function: looks to see if there is a literal at the given address displacement. * Also keeps track of when we find our last literal * Parameters: the vector that holds the literal table, and the address displacement * Return Value: string of the literal */ string searchLitTable( vector<SYMTABReader::literals>, int); /** * Function: looks for a symbol at the given target address * Parameters: integer of the target address * Return Value: true if there is a symbol at the target address; false otherwise */ bool searchSymTable(int); /** * Function: looks for a literal at the given address displacement. * Also keeps track of when we find our last literal * Parameters: integer that has the address displacement * Return Value: true if literal found; false if no literal found */ bool searchLitTable(int); /** * function: gets the symbol's name at a target address * Parameters: integer of the target address * Return Value: the symbol */ string getSymbolName(int); /** * Function: gets the literal's name at an address displacement * Parameters: integer of the address displacement * Return Value: the literal */ string getLiteralName(int); /** * Function: outputs the information to the .lis and .sic files * Parameters: string that holds the <file name> * Return Value: N/A */ void printLis(string);
[ "noreply@github.com" ]
noreply@github.com
89de920761d059d74c05a6bda15dd2fcffc1507c
735c22a34e39ec2928ee646adbbb28dc1308d332
/gel_gua.ino
24640e8befe93e302085280a9732f3339106696e
[]
no_license
ultimopl/gel_gua
012b09f9f92ce7e5032dd13cc47bc01b4d40198b
e2ddb00b92d52999144d27e6dcc6161459002a48
refs/heads/master
2020-04-08T02:13:27.038179
2018-11-24T11:02:18
2018-11-24T11:02:18
158,927,532
0
0
null
null
null
null
UTF-8
C++
false
false
3,013
ino
// Programa : Sensor de temperatura DS18B20 // Autor : FILIPEFLOP #include <OneWire.h> #include <DallasTemperature.h> #include <LiquidCrystal_I2C.h> // Porta do pino de sinal do DS18B20 #define ONE_WIRE_BUS 6 // Define uma instancia do oneWire para comunicacao com o sensor OneWire oneWire(ONE_WIRE_BUS); // Armazena temperaturas minima e maxima float tempAlvo = 20; float varianciaMAX = 5; bool compressorATIVO = HIGH; //Define a porta que fornecerá energia do potênciometro #define POTEN_ENERGY 3 //Define a porta analogica de entrada do potênciometro #define POTEN_IN_ANALOG A0 //Define a potencia maxima lida no potenciometro #define MAX_POWER 850 //Define o pino de controle do relé #define RELE 5 //Define o temporizador #define SLEEP_TIME 2000 // Define a temperaturas maximas e minimas globais #define GLOBAL_MIN_TEMP 15 #define GLOBAL_MAX_TEMP 20 DallasTemperature sensors(&oneWire); DeviceAddress sensor1; // Inicializa o display no endereco 0x27 LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3, POSITIVE); void setup(void) { pinMode(POTEN_ENERGY, OUTPUT); pinMode(RELE, OUTPUT); pinMode(POTEN_IN_ANALOG, INPUT); Serial.begin(9600); sensors.begin(); // Localiza e mostra enderecos dos sensores Serial.println("Localizando sensores DS18B20..."); Serial.print("Foram encontrados "); Serial.print(sensors.getDeviceCount(), DEC); Serial.println(" sensores."); if (!sensors.getAddress(sensor1, 0)) Serial.println("Sensores nao encontrados !"); // Mostra o endereco do sensor encontrado no barramento Serial.print("Endereco sensor: "); mostra_endereco_sensor(sensor1); Serial.println(); Serial.println(); lcd.begin(16, 2); lcd.setBacklight(HIGH); } void mostra_endereco_sensor(DeviceAddress deviceAddress) { for (uint8_t i = 0; i < 8; i++) { // Adiciona zeros se necessário if (deviceAddress[i] < 16) Serial.print("0"); Serial.print(deviceAddress[i], HEX); } } void loop() { // Le a informacao do sensor sensors.requestTemperatures(); float tempC = sensors.getTempC(sensor1); // Pega a temparatura alvo pelo potenciomatro tempAlvo = GLOBAL_MAX_TEMP * analogRead(POTEN_IN_ANALOG)/MAX_POWER + GLOBAL_MIN_TEMP; // Compara a temperatura do sensor com a temperatura alvo e os estados do comprassor if (tempC > (tempAlvo+varianciaMAX)){ compressorATIVO = LOW; } if(tempC < tempAlvo){ compressorATIVO = HIGH; } digitalWrite(RELE,compressorATIVO); lcd.setBacklight(HIGH); lcd.setCursor(0,0); lcd.print(" "); lcd.setCursor(0,0); lcd.print("CURRENT "); lcd.setCursor(8,0); lcd.print(tempC); lcd.setCursor(0,1); lcd.print(" "); lcd.setCursor(0,1); lcd.print("TARGET"); lcd.setCursor(8,1); lcd.print(tempAlvo); lcd.setCursor(15,1); if(compressorATIVO == HIGH){ lcd.print("/"); } lcd.print("."); Serial.print(analogRead(POTEN_IN_ANALOG)); Serial.println(); delay(SLEEP_TIME); }
[ "ultimopl@gmail.com" ]
ultimopl@gmail.com
5c3c50d0936378985903317855f7b3c25bace950
cd5406d8c80e173e53bf1876152218850c6669b6
/Dynamic_Programming/C++/MCM.cpp
e340d480bc4edc3ccbe8917966103922768b5d02
[]
no_license
TheRakeshPurohit/AlgorithmsONLY
0396025e0bff4bfb5aa919aee4403ce054fb5c15
52770f473e864f0341c94b52c1196ef55ffb2ee3
refs/heads/master
2023-02-23T02:57:33.532803
2021-01-24T09:02:59
2021-01-24T09:02:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
709
cpp
#include<iostream> using namespace std; int MatrixChainOrder(int p[], int n) { int T[n][n]; for (int i=1; i<n; i++) T[i][i] = 0; for (int L=1; L<n-1; L++) for (int i=1; i<n-L; i++) T[i][i+L] = min(T[i+1][i+L] + p[i-1]*p[i]*p[i+L], T[i][i+L-1] + p[i-1]*p[i+L-1]*p[i+L]); return T[1][n-1]; } int main() { int arr[1000]; int i, size; cout << "Enter number of elements: \n"; cin >> size; cout << "Enter Elements of the Array!\n"; for(i=0; i<size; i++){ cin >> arr[i]; } printf("Minimum number of multiplications is %d ", MatrixChainOrder(arr, size)); return 0; }
[ "sohamshah456@gmail.com" ]
sohamshah456@gmail.com
ac86da4ef6480493db4018ef57381dbbade2e6c1
49bfa4404fc59b59239fe930091832e01f9e47a4
/Лабораторная 6/Лабораторная 6-1.cpp
2f552c984d0c4be8ced4b02321975b8f79191b82
[]
no_license
Nikita-Zoteev/study
65ea84caf967fa85bdd1a474922d7d8d340e5321
060cbc11fb585c4f809fcd03646bcbccc2d205c1
refs/heads/master
2023-01-05T14:11:11.978090
2020-11-09T09:08:53
2020-11-09T09:08:53
296,320,190
0
0
null
null
null
null
UTF-8
C++
false
false
228
cpp
#include <iostream> using namespace std; int main() { int A, B, c; cout << "A = "; cin >> A; cout << "B = "; cin >> B; c = A; A = B; B = c; cout << "A = " << A << endl; cout << "B = " << B << endl; }
[ "noreply@github.com" ]
noreply@github.com
d4332f9a8e3b079faebe0172547e12d89de80c28
8edbf488e95a2f7c2b5e1d679909d2f3967eb515
/src/test/rpc_tests.cpp
85cf6460ee352c3ee151f75941f2c413ebb4ea16
[ "MIT" ]
permissive
danigarcia3k/Sikacoin
34a30f977b629c318eca44b4c387612a4a7b1260
82ef600cfeed1d8f163df6071d8d080fb9dac6b0
refs/heads/master
2020-06-13T02:51:38.216755
2019-06-30T12:00:00
2019-06-30T12:00:00
194,507,821
0
0
null
null
null
null
UTF-8
C++
false
false
18,751
cpp
// Copyright (c) 2012-2016 The Sikacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpc/server.h" #include "rpc/client.h" #include "base58.h" #include "core_io.h" #include "netbase.h" #include "test/test_sikacoin.h" #include <boost/algorithm/string.hpp> #include <boost/test/unit_test.hpp> #include <univalue.h> UniValue CallRPC(std::string args) { std::vector<std::string> vArgs; boost::split(vArgs, args, boost::is_any_of(" \t")); std::string strMethod = vArgs[0]; vArgs.erase(vArgs.begin()); JSONRPCRequest request; request.strMethod = strMethod; request.params = RPCConvertValues(strMethod, vArgs); request.fHelp = false; BOOST_CHECK(tableRPC[strMethod]); rpcfn_type method = tableRPC[strMethod]->actor; try { UniValue result = (*method)(request); return result; } catch (const UniValue& objError) { throw std::runtime_error(find_value(objError, "message").get_str()); } } BOOST_FIXTURE_TEST_SUITE(rpc_tests, TestingSetup) BOOST_AUTO_TEST_CASE(rpc_rawparams) { // Test raw transaction API argument handling UniValue r; BOOST_CHECK_THROW(CallRPC("getrawtransaction"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("getrawtransaction not_hex"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("getrawtransaction a3b807410df0b60fcb9736768df5823938b2f838694939ba45f3c0a1bff150ed not_int"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("createrawtransaction"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("createrawtransaction null null"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("createrawtransaction not_array"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("createrawtransaction [] []"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("createrawtransaction {} {}"), std::runtime_error); BOOST_CHECK_NO_THROW(CallRPC("createrawtransaction [] {}")); BOOST_CHECK_THROW(CallRPC("createrawtransaction [] {} extra"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("decoderawtransaction"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("decoderawtransaction null"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("decoderawtransaction DEADBEEF"), std::runtime_error); std::string rawtx = "0100000001a15d57094aa7a21a28cb20b59aab8fc7d1149a3bdbcddba9c622e4f5f6a99ece010000006c493046022100f93bb0e7d8db7bd46e40132d1f8242026e045f03a0efe71bbb8e3f475e970d790221009337cd7f1f929f00cc6ff01f03729b069a7c21b59b1736ddfee5db5946c5da8c0121033b9b137ee87d5a812d6f506efdd37f0affa7ffc310711c06c7f3e097c9447c52ffffffff0100e1f505000000001976a9140389035a9225b3839e2bbf32d826a1e222031fd888ac00000000"; BOOST_CHECK_NO_THROW(r = CallRPC(std::string("decoderawtransaction ")+rawtx)); BOOST_CHECK_EQUAL(find_value(r.get_obj(), "size").get_int(), 193); BOOST_CHECK_EQUAL(find_value(r.get_obj(), "version").get_int(), 1); BOOST_CHECK_EQUAL(find_value(r.get_obj(), "locktime").get_int(), 0); BOOST_CHECK_THROW(r = CallRPC(std::string("decoderawtransaction ")+rawtx+" extra"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("signrawtransaction"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("signrawtransaction null"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("signrawtransaction ff00"), std::runtime_error); BOOST_CHECK_NO_THROW(CallRPC(std::string("signrawtransaction ")+rawtx)); BOOST_CHECK_NO_THROW(CallRPC(std::string("signrawtransaction ")+rawtx+" null null NONE|ANYONECANPAY")); BOOST_CHECK_NO_THROW(CallRPC(std::string("signrawtransaction ")+rawtx+" [] [] NONE|ANYONECANPAY")); BOOST_CHECK_THROW(CallRPC(std::string("signrawtransaction ")+rawtx+" null null badenum"), std::runtime_error); // Only check failure cases for sendrawtransaction, there's no network to send to... BOOST_CHECK_THROW(CallRPC("sendrawtransaction"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("sendrawtransaction null"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("sendrawtransaction DEADBEEF"), std::runtime_error); BOOST_CHECK_THROW(CallRPC(std::string("sendrawtransaction ")+rawtx+" extra"), std::runtime_error); } BOOST_AUTO_TEST_CASE(rpc_togglenetwork) { UniValue r; r = CallRPC("getnetworkinfo"); bool netState = find_value(r.get_obj(), "networkactive").get_bool(); BOOST_CHECK_EQUAL(netState, true); BOOST_CHECK_NO_THROW(CallRPC("setnetworkactive false")); r = CallRPC("getnetworkinfo"); int numConnection = find_value(r.get_obj(), "connections").get_int(); BOOST_CHECK_EQUAL(numConnection, 0); netState = find_value(r.get_obj(), "networkactive").get_bool(); BOOST_CHECK_EQUAL(netState, false); BOOST_CHECK_NO_THROW(CallRPC("setnetworkactive true")); r = CallRPC("getnetworkinfo"); netState = find_value(r.get_obj(), "networkactive").get_bool(); BOOST_CHECK_EQUAL(netState, true); } BOOST_AUTO_TEST_CASE(rpc_rawsign) { UniValue r; // input is a 1-of-2 multisig (so is output): std::string prevout = "[{\"txid\":\"b4cc287e58f87cdae59417329f710f3ecd75a4ee1d2872b7248f50977c8493f3\"," "\"vout\":1,\"scriptPubKey\":\"a914b10c9df5f7edf436c697f02f1efdba4cf399615187\"," "\"redeemScript\":\"512103debedc17b3df2badbcdd86d5feb4562b86fe182e5998abd8bcd4f122c6155b1b21027e940bb73ab8732bfdf7f9216ecefca5b94d6df834e77e108f68e66f126044c052ae\"}]"; r = CallRPC(std::string("createrawtransaction ")+prevout+" "+ "{\"3HqAe9LtNBjnsfM4CyYaWTnvCaUYT7v4oZ\":11}"); std::string notsigned = r.get_str(); std::string privkey1 = "\"KzsXybp9jX64P5ekX1KUxRQ79Jht9uzW7LorgwE65i5rWACL6LQe\""; std::string privkey2 = "\"Kyhdf5LuKTRx4ge69ybABsiUAWjVRK4XGxAKk2FQLp2HjGMy87Z4\""; r = CallRPC(std::string("signrawtransaction ")+notsigned+" "+prevout+" "+"[]"); BOOST_CHECK(find_value(r.get_obj(), "complete").get_bool() == false); r = CallRPC(std::string("signrawtransaction ")+notsigned+" "+prevout+" "+"["+privkey1+","+privkey2+"]"); BOOST_CHECK(find_value(r.get_obj(), "complete").get_bool() == true); } BOOST_AUTO_TEST_CASE(rpc_createraw_op_return) { BOOST_CHECK_NO_THROW(CallRPC("createrawtransaction [{\"txid\":\"a3b807410df0b60fcb9736768df5823938b2f838694939ba45f3c0a1bff150ed\",\"vout\":0}] {\"data\":\"68656c6c6f776f726c64\"}")); // Allow more than one data transaction output BOOST_CHECK_NO_THROW(CallRPC("createrawtransaction [{\"txid\":\"a3b807410df0b60fcb9736768df5823938b2f838694939ba45f3c0a1bff150ed\",\"vout\":0}] {\"data\":\"68656c6c6f776f726c64\",\"data\":\"68656c6c6f776f726c64\"}")); // Key not "data" (bad address) BOOST_CHECK_THROW(CallRPC("createrawtransaction [{\"txid\":\"a3b807410df0b60fcb9736768df5823938b2f838694939ba45f3c0a1bff150ed\",\"vout\":0}] {\"somedata\":\"68656c6c6f776f726c64\"}"), std::runtime_error); // Bad hex encoding of data output BOOST_CHECK_THROW(CallRPC("createrawtransaction [{\"txid\":\"a3b807410df0b60fcb9736768df5823938b2f838694939ba45f3c0a1bff150ed\",\"vout\":0}] {\"data\":\"12345\"}"), std::runtime_error); BOOST_CHECK_THROW(CallRPC("createrawtransaction [{\"txid\":\"a3b807410df0b60fcb9736768df5823938b2f838694939ba45f3c0a1bff150ed\",\"vout\":0}] {\"data\":\"12345g\"}"), std::runtime_error); // Data 81 bytes long BOOST_CHECK_NO_THROW(CallRPC("createrawtransaction [{\"txid\":\"a3b807410df0b60fcb9736768df5823938b2f838694939ba45f3c0a1bff150ed\",\"vout\":0}] {\"data\":\"010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081\"}")); } BOOST_AUTO_TEST_CASE(rpc_format_monetary_values) { BOOST_CHECK(ValueFromAmount(0LL).write() == "0.00000000"); BOOST_CHECK(ValueFromAmount(1LL).write() == "0.00000001"); BOOST_CHECK(ValueFromAmount(17622195LL).write() == "0.17622195"); BOOST_CHECK(ValueFromAmount(50000000LL).write() == "0.50000000"); BOOST_CHECK(ValueFromAmount(89898989LL).write() == "0.89898989"); BOOST_CHECK(ValueFromAmount(100000000LL).write() == "1.00000000"); BOOST_CHECK(ValueFromAmount(2099999999999990LL).write() == "20999999.99999990"); BOOST_CHECK(ValueFromAmount(2099999999999999LL).write() == "20999999.99999999"); BOOST_CHECK_EQUAL(ValueFromAmount(0).write(), "0.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount((COIN/10000)*123456789).write(), "12345.67890000"); BOOST_CHECK_EQUAL(ValueFromAmount(-COIN).write(), "-1.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount(-COIN/10).write(), "-0.10000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN*100000000).write(), "100000000.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN*10000000).write(), "10000000.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN*1000000).write(), "1000000.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN*100000).write(), "100000.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN*10000).write(), "10000.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN*1000).write(), "1000.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN*100).write(), "100.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN*10).write(), "10.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN).write(), "1.00000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN/10).write(), "0.10000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN/100).write(), "0.01000000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN/1000).write(), "0.00100000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN/10000).write(), "0.00010000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN/100000).write(), "0.00001000"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN/1000000).write(), "0.00000100"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN/10000000).write(), "0.00000010"); BOOST_CHECK_EQUAL(ValueFromAmount(COIN/100000000).write(), "0.00000001"); } static UniValue ValueFromString(const std::string &str) { UniValue value; BOOST_CHECK(value.setNumStr(str)); return value; } BOOST_AUTO_TEST_CASE(rpc_parse_monetary_values) { BOOST_CHECK_THROW(AmountFromValue(ValueFromString("-0.00000001")), UniValue); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0")), 0LL); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.00000000")), 0LL); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.00000001")), 1LL); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.17622195")), 17622195LL); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.5")), 50000000LL); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.50000000")), 50000000LL); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.89898989")), 89898989LL); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("1.00000000")), 100000000LL); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("20999999.9999999")), 2099999999999990LL); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("20999999.99999999")), 2099999999999999LL); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("1e-8")), COIN/100000000); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.1e-7")), COIN/100000000); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.01e-6")), COIN/100000000); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.0000000000000000000000000000000000000000000000000000000000000000000000000001e+68")), COIN/100000000); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("10000000000000000000000000000000000000000000000000000000000000000e-64")), COIN); BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000e64")), COIN); BOOST_CHECK_THROW(AmountFromValue(ValueFromString("1e-9")), UniValue); //should fail BOOST_CHECK_THROW(AmountFromValue(ValueFromString("0.000000019")), UniValue); //should fail BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.00000001000000")), 1LL); //should pass, cut trailing 0 BOOST_CHECK_THROW(AmountFromValue(ValueFromString("19e-9")), UniValue); //should fail BOOST_CHECK_EQUAL(AmountFromValue(ValueFromString("0.19e-6")), 19); //should pass, leading 0 is present BOOST_CHECK_THROW(AmountFromValue(ValueFromString("92233720368.54775808")), UniValue); //overflow error BOOST_CHECK_THROW(AmountFromValue(ValueFromString("1e+11")), UniValue); //overflow error BOOST_CHECK_THROW(AmountFromValue(ValueFromString("1e11")), UniValue); //overflow error signless BOOST_CHECK_THROW(AmountFromValue(ValueFromString("93e+9")), UniValue); //overflow error } BOOST_AUTO_TEST_CASE(json_parse_errors) { // Valid BOOST_CHECK_EQUAL(ParseNonRFCJSONValue("1.0").get_real(), 1.0); // Valid, with leading or trailing whitespace BOOST_CHECK_EQUAL(ParseNonRFCJSONValue(" 1.0").get_real(), 1.0); BOOST_CHECK_EQUAL(ParseNonRFCJSONValue("1.0 ").get_real(), 1.0); BOOST_CHECK_THROW(AmountFromValue(ParseNonRFCJSONValue(".19e-6")), std::runtime_error); //should fail, missing leading 0, therefore invalid JSON BOOST_CHECK_EQUAL(AmountFromValue(ParseNonRFCJSONValue("0.00000000000000000000000000000000000001e+30 ")), 1); // Invalid, initial garbage BOOST_CHECK_THROW(ParseNonRFCJSONValue("[1.0"), std::runtime_error); BOOST_CHECK_THROW(ParseNonRFCJSONValue("a1.0"), std::runtime_error); // Invalid, trailing garbage BOOST_CHECK_THROW(ParseNonRFCJSONValue("1.0sds"), std::runtime_error); BOOST_CHECK_THROW(ParseNonRFCJSONValue("1.0]"), std::runtime_error); // SKC addresses should fail parsing BOOST_CHECK_THROW(ParseNonRFCJSONValue("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"), std::runtime_error); BOOST_CHECK_THROW(ParseNonRFCJSONValue("3J98t1WpEZ73CNmQviecrnyiWrnqRhWNL"), std::runtime_error); } BOOST_AUTO_TEST_CASE(rpc_ban) { BOOST_CHECK_NO_THROW(CallRPC(std::string("clearbanned"))); UniValue r; BOOST_CHECK_NO_THROW(r = CallRPC(std::string("setban 127.0.0.0 add"))); BOOST_CHECK_THROW(r = CallRPC(std::string("setban 127.0.0.0:8334")), std::runtime_error); //portnumber for setban not allowed BOOST_CHECK_NO_THROW(r = CallRPC(std::string("listbanned"))); UniValue ar = r.get_array(); UniValue o1 = ar[0].get_obj(); UniValue adr = find_value(o1, "address"); BOOST_CHECK_EQUAL(adr.get_str(), "127.0.0.0/32"); BOOST_CHECK_NO_THROW(CallRPC(std::string("setban 127.0.0.0 remove"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("listbanned"))); ar = r.get_array(); BOOST_CHECK_EQUAL(ar.size(), 0); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("setban 127.0.0.0/24 add 1607731200 true"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("listbanned"))); ar = r.get_array(); o1 = ar[0].get_obj(); adr = find_value(o1, "address"); UniValue banned_until = find_value(o1, "banned_until"); BOOST_CHECK_EQUAL(adr.get_str(), "127.0.0.0/24"); BOOST_CHECK_EQUAL(banned_until.get_int64(), 1607731200); // absolute time check BOOST_CHECK_NO_THROW(CallRPC(std::string("clearbanned"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("setban 127.0.0.0/24 add 200"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("listbanned"))); ar = r.get_array(); o1 = ar[0].get_obj(); adr = find_value(o1, "address"); banned_until = find_value(o1, "banned_until"); BOOST_CHECK_EQUAL(adr.get_str(), "127.0.0.0/24"); int64_t now = GetTime(); BOOST_CHECK(banned_until.get_int64() > now); BOOST_CHECK(banned_until.get_int64()-now <= 200); // must throw an exception because 127.0.0.1 is in already banned subnet range BOOST_CHECK_THROW(r = CallRPC(std::string("setban 127.0.0.1 add")), std::runtime_error); BOOST_CHECK_NO_THROW(CallRPC(std::string("setban 127.0.0.0/24 remove"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("listbanned"))); ar = r.get_array(); BOOST_CHECK_EQUAL(ar.size(), 0); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("setban 127.0.0.0/255.255.0.0 add"))); BOOST_CHECK_THROW(r = CallRPC(std::string("setban 127.0.1.1 add")), std::runtime_error); BOOST_CHECK_NO_THROW(CallRPC(std::string("clearbanned"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("listbanned"))); ar = r.get_array(); BOOST_CHECK_EQUAL(ar.size(), 0); BOOST_CHECK_THROW(r = CallRPC(std::string("setban test add")), std::runtime_error); //invalid IP //IPv6 tests BOOST_CHECK_NO_THROW(r = CallRPC(std::string("setban FE80:0000:0000:0000:0202:B3FF:FE1E:8329 add"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("listbanned"))); ar = r.get_array(); o1 = ar[0].get_obj(); adr = find_value(o1, "address"); BOOST_CHECK_EQUAL(adr.get_str(), "fe80::202:b3ff:fe1e:8329/128"); BOOST_CHECK_NO_THROW(CallRPC(std::string("clearbanned"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("setban 2001:db8::/ffff:fffc:0:0:0:0:0:0 add"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("listbanned"))); ar = r.get_array(); o1 = ar[0].get_obj(); adr = find_value(o1, "address"); BOOST_CHECK_EQUAL(adr.get_str(), "2001:db8::/30"); BOOST_CHECK_NO_THROW(CallRPC(std::string("clearbanned"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("setban 2001:4d48:ac57:400:cacf:e9ff:fe1d:9c63/128 add"))); BOOST_CHECK_NO_THROW(r = CallRPC(std::string("listbanned"))); ar = r.get_array(); o1 = ar[0].get_obj(); adr = find_value(o1, "address"); BOOST_CHECK_EQUAL(adr.get_str(), "2001:4d48:ac57:400:cacf:e9ff:fe1d:9c63/128"); } BOOST_AUTO_TEST_CASE(rpc_convert_values_generatetoaddress) { UniValue result; BOOST_CHECK_NO_THROW(result = RPCConvertValues("generatetoaddress", {"101", "mkESjLZW66TmHhiFX8MCaBjrhZ543PPh9a"})); BOOST_CHECK_EQUAL(result[0].get_int(), 101); BOOST_CHECK_EQUAL(result[1].get_str(), "mkESjLZW66TmHhiFX8MCaBjrhZ543PPh9a"); BOOST_CHECK_NO_THROW(result = RPCConvertValues("generatetoaddress", {"101", "mhMbmE2tE9xzJYCV9aNC8jKWN31vtGrguU"})); BOOST_CHECK_EQUAL(result[0].get_int(), 101); BOOST_CHECK_EQUAL(result[1].get_str(), "mhMbmE2tE9xzJYCV9aNC8jKWN31vtGrguU"); BOOST_CHECK_NO_THROW(result = RPCConvertValues("generatetoaddress", {"1", "mkESjLZW66TmHhiFX8MCaBjrhZ543PPh9a", "9"})); BOOST_CHECK_EQUAL(result[0].get_int(), 1); BOOST_CHECK_EQUAL(result[1].get_str(), "mkESjLZW66TmHhiFX8MCaBjrhZ543PPh9a"); BOOST_CHECK_EQUAL(result[2].get_int(), 9); BOOST_CHECK_NO_THROW(result = RPCConvertValues("generatetoaddress", {"1", "mhMbmE2tE9xzJYCV9aNC8jKWN31vtGrguU", "9"})); BOOST_CHECK_EQUAL(result[0].get_int(), 1); BOOST_CHECK_EQUAL(result[1].get_str(), "mhMbmE2tE9xzJYCV9aNC8jKWN31vtGrguU"); BOOST_CHECK_EQUAL(result[2].get_int(), 9); } BOOST_AUTO_TEST_SUITE_END()
[ "danigarcia3k@gmail.com" ]
danigarcia3k@gmail.com
f09abd2bd8241e9d58eaf83dc10ef8098dc8ef4e
2b09fa4946d2153fa1004b243d401635815b9ba2
/Devoir2/classes.h
d8bdb5603137e56c21a68bb1fcdf5a6b0b301336
[]
no_license
JacquelinLouis/Cpp
f0e5e0e29ce7be80c7a73469d3c23ffee78ecd72
2761354bc32449125b00360d9adc7956410aa8b3
refs/heads/master
2021-01-15T18:59:50.135394
2015-05-09T10:15:33
2015-05-09T10:15:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,011
h
#ifndef CLASSES_H #define CLASSES_H #include <iostream> #include <stdio.h> #include <stdlib.h> #include <stack> #include <vector> #include <string> #include <sstream> using namespace std; string operer(char ope, string left, string right){ int result=0, l=atoi(left.c_str()), r=atoi(right.c_str()); stringstream out; if(ope=='+') result=l+r; if(ope=='-') result=l-r; if(ope=='*') result=l*r; if(ope=='/') result=l/r; if(ope=='%') result=l%r; out<<result; return out.str(); } bool estoperateur(char val){ return(val=='+' || val=='-' || val=='*' || val=='/' || val=='%'); } bool estentier(char val){ return(val<='9' && val>='0'); } bool estsuperieur(char a, char b){ return(((a=='('||a==')')&&(b!='(' && b!=')'))||((b=='+'||b=='-')&&(a!='+'&&a!='-'))); } void afficherstack(stack<string> p){ cout<<"top"<<endl; while(!p.empty()){ cout<<p.top()<<endl; p.pop(); } cout<<"down\n"<<endl; } //converti une string passee en parametre en un vector de char en se debarrassant au passage d'eventuels espaces vector<char> stringtovect(string s){ vector<char> vec; int i=0; while(i<s.size()){ //on disseque les mots if(s[i]!=' ') vec.push_back(s[i]); ++i; } return vec; } class Prefixe{ private: //les operateurs stack<string> pile; //les valeurs a utiliser vector<string> tableau; public: //constructeur Prefixe(){ } //destructeur ~Prefixe(){ while(!pile.empty()){ pile.pop(); } tableau.clear(); } //fonction booleenne qui lit l'expression et verifie qu'elle ne contient que les caracteres permis bool lecture(vector<char> tab){ bool valid=true; int i=0, quote=0; while(i<tab.size() && valid){ if(tab[i]=='\'') ++quote; if(!estentier(tab[i]) && !estoperateur(tab[i]) && tab[i]!='(' && tab[i]!=')' && tab[i]!='\''){ valid=false; ++i; } ++i; } return (valid && quote==2); } //verifie le nombre de parentheses et le nombre de nombres(quelle belle phrase) et d'operateurs bool valider_expression(vector<char> tab){ int cpar=0; for(int i=0; i<tab.size(); ++i){ if(tab[i]=='(') ++cpar; if(tab[i]==')' && cpar>0) --cpar; } return cpar==0;; } //transforme le vector de char, passe en parametre, en vector de string pour regrouper les composantes des nombres. Modifie egalement le parametre "tableau" de la classe vector<string> transformernombres(vector<char> tab){ vector<string> result; string tot=""; int i=1; while(i<tab.size()){ //chiffre ou nombre if(estentier(tab[i])){ tot=""; while(i<tab.size() && estentier(tab[i])){ tot+=tab[i]; ++i; } result.push_back(tot); } //operateur if(estoperateur(tab[i]) || tab[i]=='(' || tab[i]==')'){ tot=""; tot+=tab[i]; result.push_back(tot); } ++i; } tableau=result; return result; } //le vector de char alterne des operateurs et des operandes, la stack "sta" est ici inutile, on utilisera le caractere ";" pour séparer les nombres void transformerenpostfixe(vector<char> vec){ string right="", nbr="", tot="", separateur=" "; bool run=true; //les operandes sont type string pour pouvoir concatener les expressions stack<string> operand; stack<char> operat; while(!vec.empty()){ if(vec.front()=='\'') vec.erase(vec.begin()); else{ if(estentier(vec.front())){ tot=""; //si le premier caractere lu est chiffre, il compose peut etre un nombre, il faut regrouper ses composantes while(!vec.empty() && estentier(vec.front())){ tot+=vec.front(); vec.erase(vec.begin()); } //on ajoute sur la pile des operandes operand.push(tot); } //ce n'est pas un nombre else{ //si c'est une parenthese, la pile est vide, ou que l'operateur lut est prioritaire a celui en tete de pile if((vec.front()=='(' || operat.empty() || estsuperieur(vec.front(), operat.top()))&&vec.front()!=')'){ operat.push(vec.front()); vec.erase(vec.begin()); } else{ if(vec.front()==')'){ while(operat.top()!='('){ //du fait de l'empilement, les operateur gauche et droit son inverses right=operand.top(); //depiler l'operande droite operand.pop(); right=(operat.top()+separateur+operand.top()+separateur+right); //depiler l'operande gauche operand.pop(); //depiler l'operateur operat.pop(); operand.push(right); } //depiler la parenthese "(" operat.pop(); vec.erase(vec.begin()); } else{ //l'element est un operateur et n'est pas prioritaire par rapport au sommet de la pile operator if(!estsuperieur(vec.front(), operat.top())){ if(!operat.empty() && !estsuperieur(vec.front(), operat.top()) && operat.top()!='('){ right=operand.top(); operand.pop(); if(!operand.empty()){ right=(operat.top()+separateur+operand.top()+separateur+right); operand.pop(); operat.pop(); } operand.push(right); } operat.push(vec.front()); vec.erase(vec.begin()); } } } } } } //on rassemble l'expression while(!operat.empty()){ right=operand.top(); operand.pop(); right=(operat.top()+separateur+operand.top()+separateur+right); operat.pop(); operand.pop(); operand.push(right); } pile=operand; } //calcule l'expression int evaluer_expression(string src){ int resultat=0, i=0; string right=""; stack<char> operat; stack<string> operand; bool precentier=false; while(i<src.size()){ if(src[i]!=' '){ if(estoperateur(src[i])){ operat.push(src[i]); precentier=false; } if(i<src.size() && estentier(src[i])){ if(!precentier){ operand.push(""); while(i<src.size() && estentier(src[i])) operand.top()+=src[i++]; precentier=true; } else{ right=""; //on assemble les composantes du nombre while(i<src.size() && estentier(src[i])) right+=src[i++]; //on saute le separateur right=operer(operat.top(), operand.top(), right); operat.pop(); operand.pop(); operand.push(right); } } } ++i; } while(!operat.empty()){ right=operand.top(); operand.pop(); right=operer(operat.top(), operand.top(),right); operat.pop(); operand.pop(); operand.push(right); } resultat=atoi(operand.top().c_str()); return resultat; } void affichertableau(){ int i=0; cout<<"first :"; if(!tableau.empty()){ cout<<tableau[i++]; while(i<tableau.size()){ cout<<" "<<tableau[i++]; } } cout<<": last"<<endl; } void afficherpile(){ stack<string> copy=pile; cout<<"down"<<endl; while(!copy.empty()){ cout<<copy.top()<<endl; copy.pop(); } cout<<"top"<<endl; } stack<string> getpile(){ return pile; } vector<string> gettableau(){ return tableau; } }; #endif
[ "jacquelinlouis@gmail.com" ]
jacquelinlouis@gmail.com
691b3184e9b562eb20c07d12edf6c9d2e1ce6259
eec21d876422da6c1eb414d8029312d919662f23
/third_party/gloo/gloo/benchmark/cuda_main.cc
cb2c16bd6dbc7b353553f04015feb616a26e40e2
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0", "BSD-2-Clause" ]
permissive
Hansry/pytorch
7a4e33d85b6d5a7a940f7f1f9e4e30c040dc4671
cb2ab792daa3c377e5de105b983af29b391070b6
refs/heads/master
2022-11-16T20:27:48.459674
2019-08-29T03:37:50
2019-08-29T03:37:50
205,072,585
0
1
NOASSERTION
2022-11-01T09:00:55
2019-08-29T03:27:28
C++
UTF-8
C++
false
false
7,406
cc
/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <map> #include <memory> #include "gloo/allreduce_builder.h" #include "gloo/benchmark/benchmark.h" #include "gloo/benchmark/runner.h" #include "gloo/broadcast_builder.h" #include "gloo/common/logging.h" #include "gloo/cuda_broadcast_one_to_all.h" #include "gloo/cuda_private.h" using namespace gloo; using namespace gloo::benchmark; namespace { int cudaNumDevices() { int n = 0; CUDA_CHECK(cudaGetDeviceCount(&n)); return n; } template <typename T> class CudaBenchmark : public Benchmark<T> { using Benchmark<T>::Benchmark; public: ~CudaBenchmark() override {} protected: // Allocates memory for algorithm under benchmark to use. It calls // the allocate function on the superclass to get initialized host // side memory. This is then copied to device memory, instead of // duplicating initialization code here. The host side memory is // reused when the benchmark runs in verification mode and memory // contents is checked after an algorithm has run. std::vector<T*> allocate(int inputs, size_t elements) override { auto rawHostPtrs = Benchmark<T>::allocate(inputs, elements); // Initialize allocations, streams, CUDA pointer wrappers for (auto i = 0; i < inputs; i++) { auto device = i % cudaNumDevices(); CudaDeviceScope scope(device); allocations_.push_back(CudaMemory<T>(elements)); streams_.push_back(CudaStream(device)); hostPtrs_.push_back( CudaHostPointer<T>::create(rawHostPtrs[i], elements)); devicePtrs_.push_back( CudaDevicePointer<T>::create(*allocations_[i], elements)); } // Copy initialized inputs to device for (auto i = 0; i < inputs; i++) { streams_[i].copyAsync(devicePtrs_[i], hostPtrs_[i]); } // Wait for copy to complete and populate return vector std::vector<T*> rawDevicePtrs; for (auto i = 0; i < inputs; i++) { streams_[i].wait(); rawDevicePtrs.push_back(*devicePtrs_[i]); } return rawDevicePtrs; } std::vector<T*> copyToHost() { for (auto i = 0; i < hostPtrs_.size(); i++) { streams_[i].copyAsync(hostPtrs_[i], devicePtrs_[i]); } std::vector<T*> rawHostPtrs; for (auto i = 0; i < hostPtrs_.size(); i++) { streams_[i].wait(); rawHostPtrs.push_back(*hostPtrs_[i]); } return rawHostPtrs; } std::vector<CudaMemory<T>> allocations_; std::vector<CudaStream> streams_; std::vector<CudaHostPointer<T>> hostPtrs_; std::vector<CudaDevicePointer<T>> devicePtrs_; }; template <typename T> class CudaAllreduceBenchmark : public CudaBenchmark<T> { public: CudaAllreduceBenchmark( std::shared_ptr<::gloo::Context>& context, struct options& options, ::gloo::AllreduceBuilder<T> builder) : CudaBenchmark<T>(context, options), builder_(builder) { } void initialize(size_t elements) override { auto ptrs = this->allocate(this->options_.inputs, elements); this->algorithm_ = builder_. setInputs(ptrs). setCount(elements). getAlgorithm(this->context_); } void verify() override { // Size is the total number of pointers across the context const auto size = this->context_->size * this->inputs_.size(); // Expected is set to the expected value at ptr[0] const auto expected = (size * (size - 1)) / 2; // The stride between values at subsequent indices is equal to // "size", and we have "size" of them. Therefore, after // allreduce, the stride between expected values is "size^2". const auto stride = size * size; const auto ptrs = this->copyToHost(); const auto elements = this->hostPtrs_[0].getCount(); for (const auto& ptr : ptrs) { for (int i = 0; i < elements; i++) { auto offset = i * stride; GLOO_ENFORCE_EQ(T(offset + expected), ptr[i], "Mismatch at index: ", i); } } } protected: ::gloo::AllreduceBuilder<T> builder_; }; template <typename T> class CudaBroadcastOneToAllBenchmark : public CudaBenchmark<T> { using CudaBenchmark<T>::CudaBenchmark; public: CudaBroadcastOneToAllBenchmark( std::shared_ptr<::gloo::Context>& context, struct options& options, ::gloo::BroadcastBuilder<T> builder) : CudaBenchmark<T>(context, options), builder_(builder) { } public: void initialize(size_t elements) override { auto ptrs = this->allocate(this->options_.inputs, elements); this->algorithm_ = builder_. setInputs(ptrs). setCount(elements). setRootRank(rootRank_). setRootPointerRank(rootPointerRank_). setStreams({}). getAlgorithm(this->context_); } void verify() override { const auto rootOffset = rootRank_ * this->inputs_.size() + rootPointerRank_; const auto stride = this->context_->size * this->inputs_.size(); const auto ptrs = this->copyToHost(); const auto elements = this->hostPtrs_[0].getCount(); for (const auto& ptr : ptrs) { for (int i = 0; i < elements; i++) { auto offset = i * stride; GLOO_ENFORCE_EQ( T(rootOffset + offset), ptr[i], "Mismatch at index: ", i); } } } protected: const int rootRank_ = 0; const int rootPointerRank_ = 0; ::gloo::BroadcastBuilder<T> builder_; }; } // namespace template <class TC> bool beginsWith(const TC& input, const TC& match) { return input.size() >= match.size() && equal(match.begin(), match.end(), input.begin()); } template <typename T> void runBenchmark(options& x) { Runner::BenchmarkFn<T> fn; if (x.benchmark == "cuda_broadcast_one_to_all") { auto builder = gloo::BroadcastBuilder<T>(); if (x.gpuDirect) { builder.setGPUDirect(true); } fn = [&, builder](std::shared_ptr<Context>& context) { return std::unique_ptr<Benchmark<T>>( new CudaBroadcastOneToAllBenchmark<T>(context, x, builder)); }; } else if (beginsWith(x.benchmark, std::string("cuda_allreduce_"))) { auto builder = gloo::AllreduceBuilder<T>(); if (x.gpuDirect) { builder.setGPUDirect(true); } if (x.benchmark == "cuda_allreduce_halving_doubling") { builder.setImplementation( gloo::AllreduceBuilder<T>::HalvingDoubling); } else if (x.benchmark == "cuda_allreduce_halving_doubling_pipelined") { builder.setImplementation( gloo::AllreduceBuilder<T>::HalvingDoublingPipelined); } else if (x.benchmark == "cuda_allreduce_ring") { builder.setImplementation( gloo::AllreduceBuilder<T>::Ring); } else if (x.benchmark == "cuda_allreduce_ring_chunked") { builder.setImplementation( gloo::AllreduceBuilder<T>::RingChunked); } else { GLOO_ENFORCE(false, "Invalid algorithm: ", x.benchmark); } fn = [&, builder](std::shared_ptr<Context>& context) { return std::unique_ptr<Benchmark<T>>( new CudaAllreduceBenchmark<T>(context, x, builder)); }; } if (!fn) { GLOO_ENFORCE(false, "Invalid algorithm: ", x.benchmark); } Runner r(x); r.run(fn); } int main(int argc, char** argv) { auto x = benchmark::parseOptions(argc, argv); if (x.halfPrecision) { runBenchmark<float16>(x); } else { runBenchmark<float>(x); } return 0; }
[ "1057064956@qq.com" ]
1057064956@qq.com
93d657df22d503d4d71984b402446542b090a179
89abc171f7a6e6adeecdaae036220a14def5981c
/[10] FONTS/winMain.cpp
985d9dc8c6de7c891d3292baa942748ee53f5f26
[]
no_license
hkayakoku/DIRECTX-10
da83b0aabe4316e104256de7dae95d0fefd9945e
8b29ec768a30da072b0d450782b9d7316e42c57d
refs/heads/master
2021-06-01T17:58:11.344070
2016-08-18T14:37:21
2016-08-18T14:37:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,780
cpp
#include <windows.h> #include <tchar.h> #include <stdio.h> #include <vector> using namespace std; #include "dxManager.h" //#include "Window.h" /******************************************************************* * Global Variables *******************************************************************/ HWND hWnd; //window handle //int windowWidth = 800; //int windowHeight = 600; //directX manager dxManager dx; //Window wnd; HRESULT InitWindow(HINSTANCE hInstance, int nCmdShow, HWND& hWnd); LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); /******************************************************************* * WinMain *******************************************************************/ int APIENTRY _tWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow ) { // Set up the application window if (!InitWindow( hInstance, nCmdShow, hWnd)) return 0; //set up directx manager if (!dx.initialize(&hWnd , &hInstance)) return 0; // Main message loop MSG msg = {0}; while (WM_QUIT != msg.message) { while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) == TRUE) { TranslateMessage(&msg); DispatchMessage(&msg); } dx.renderScene(); } return (int) msg.wParam; } /******************************************************************* * Main Window Procedure - handles application events *******************************************************************/ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_CHAR: switch (wParam) { case 't': { if (dx.texturesEnabled) dx.disableTextures(); else dx.enableTextures(); dx.texturesEnabled = !dx.texturesEnabled; } break; case 'q': { dx.swapTexture(); } break; //case 'x': { // dx.increaseX(); // dx.setMatrices(); //} // break; //case 'y': { // dx.increaseY(); // dx.setMatrices(); //} // break; //case 'z': { // dx.increaseZ(); // dx.setMatrices(); //} break; } break; // Allow the user to press the escape key to end the application case WM_KEYDOWN: switch (wParam) { case VK_ESCAPE: PostQuitMessage(0); break; } break; // The user hit the close button, close the application case WM_DESTROY: PostQuitMessage(0); break; } return DefWindowProc(hWnd, message, wParam, lParam); } /******************************************************************* * Initialize Main Window ********************************************************************/ HRESULT InitWindow(HINSTANCE hInstance, int nCmdShow, HWND& hWnd) { WNDCLASSEX wcex; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; wcex.hIcon = 0; wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); wcex.lpszMenuName = NULL; wcex.lpszClassName = TEXT("DXTutorial"); wcex.hIconSm = 0; RegisterClassEx(&wcex); //Resize the window RECT rect = { 0, 0, dx.windowWidth, dx.windowHeight }; AdjustWindowRect(&rect, WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, FALSE); //create the window from the class defined above hWnd = CreateWindow("DXTutorial", "Hakan Kaya's DirectX 10 Tutorial 10 - Basic Fonts", WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, CW_USEDEFAULT, CW_USEDEFAULT, rect.right - rect.left, rect.bottom - rect.top, NULL, NULL, hInstance, NULL); //window handle not created if (!hWnd) return false; //if window creation was successful ShowWindow(hWnd, SW_SHOW); UpdateWindow(hWnd); return true; }
[ "hakan.kayakoku@simsoft.com.tr" ]
hakan.kayakoku@simsoft.com.tr
13def4f57a6a725bc18d7611f4a5eb66f3250a27
ac40950afd25b6aa5301234659a894f10d10147a
/main.cpp
90f50c2c568e71d545b145205e398d72a6365875
[]
no_license
kotaiai/Stack-number
ba53d1083cfb0dd63f27423ad67a06b26f8d56a8
207b51e58eb23d65eb5fc7dfc7d40d415fb76b1f
refs/heads/master
2023-08-13T09:39:24.272651
2021-10-08T07:52:04
2021-10-08T07:52:04
414,894,604
0
0
null
null
null
null
UTF-8
C++
false
false
1,568
cpp
#include <iostream> #include "data.h" using namespace std; int siz = 0; int main() { int choice, val,oval; if (siz ==0){ cout<<"Set the size of the list"<<endl; cin>>siz; system("pause"); system("cls"); //sleep(2s); main(); }data record(siz); do { choice = 0; cout<<"[1] Input numbers "<<endl; cout<<"[2] Output numbers"<<endl<<endl; cin>>choice; if (choice == 1){ if (record.full()){ cout<<"The list is full!!"; system("pause"); system("cls"); } else{ for (int i = 0; i < siz; i++){ cout<<"Input the value here: "; cin>>val; record.push(val); } //sleep(2s); system("pause"); system("cls"); } } else if(choice==2){ if (record.empt()){ cout<<"There is no data in the list!!"; system("pause"); system("cls"); } else{ for (int i = 0; i < siz; i++){ record.pull(oval); cout<<" "<<endl; } //sleep(2s); system("pause"); system("cls"); } } else{ cout<<"INVALID INPUT!!"; //sleep(2s); system("pause"); system("cls"); } } while ((choice >0)&&(choice <3)); return 0; }
[ "ailara1013@gmail.com" ]
ailara1013@gmail.com
bec77d1128ecdfcec231157c30dc6cc1fe677cc8
e98ff7220ecd5385f08beb04717e08e2b9bd1b2f
/src/Nodes/ActuatorNode/AllJoyn/AllJoynRelayNode/relaynodeServiceEventAdapter.cpp
c79b4a833860f0659fee432af0357a9b4f1460f1
[ "Apache-2.0" ]
permissive
martincalsyn/CortanaAllJoynDemo
f994fecae60ca9a02a06e1f357a710e9d55c042c
57aab0346641f1f1d248c81ebe1ce113317df01e
refs/heads/master
2018-12-28T13:41:33.726231
2015-09-14T18:52:38
2015-09-14T18:52:38
40,696,042
5
2
null
null
null
null
UTF-8
C++
false
false
2,475
cpp
//----------------------------------------------------------------------------- // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // Tool: AllJoynCodeGenerator.exe // // This tool is located in the Windows 10 SDK and the Windows 10 AllJoyn // Visual Studio Extension in the Visual Studio Gallery. // // The generated code should be packaged in a Windows 10 C++/CX Runtime // Component which can be consumed in any UWP-supported language using // APIs that are available in Windows.Devices.AllJoyn. // // Using AllJoynCodeGenerator - Invoke the following command with a valid // Introspection XML file and a writable output directory: // AllJoynCodeGenerator -i <INPUT XML FILE> -o <OUTPUT DIRECTORY> // </auto-generated> //----------------------------------------------------------------------------- #include "pch.h" using namespace Microsoft::WRL; using namespace Platform; using namespace Windows::Foundation; using namespace Windows::Foundation::Collections; using namespace Windows::Devices::AllJoyn; using namespace digital::pervasive::sample::relaynode; // Note: Unlike an Interface implementation, which provides a single handler for each member, the event // model allows for 0 or more listeners to be registered. The EventAdapter implementation deals with this // difference by implementing a last-writer-wins policy. The lack of any return value (i.e., 0 listeners) // is handled by returning a null result. // Methods IAsyncOperation<relaynodeSetStateResult^>^ relaynodeServiceEventAdapter::SetStateAsync(_In_ AllJoynMessageInfo^ info, _In_ int32 interfaceMemberRelayId, _In_ byte interfaceMemberState) { auto args = ref new relaynodeSetStateCalledEventArgs(info, interfaceMemberRelayId, interfaceMemberState); AllJoynHelpers::DispatchEvent([=]() { SetStateCalled(this, args); }); return relaynodeSetStateCalledEventArgs::GetResultAsync(args); } IAsyncOperation<relaynodeGetStateResult^>^ relaynodeServiceEventAdapter::GetStateAsync(_In_ AllJoynMessageInfo^ info, _In_ int32 interfaceMemberRelayId) { auto args = ref new relaynodeGetStateCalledEventArgs(info, interfaceMemberRelayId); AllJoynHelpers::DispatchEvent([=]() { GetStateCalled(this, args); }); return relaynodeGetStateCalledEventArgs::GetResultAsync(args); } // Property Reads // Property Writes
[ "martin@pervasive.digital" ]
martin@pervasive.digital
b9870ee4aec2152514f608ead54bf411f4bc0361
c14c520505b4b901865bdf14a7d2be0f36f71c13
/vector3d.h
77c9ec30fe4fdc61486b1eac96f5b725250c13f8
[]
no_license
tkozjak/RayTracing
88675fda18d13b3d5891e74f4ec333dba7426c2e
c3e0d9dc69b30ba05dc5aa93ecc3f1f4e2829242
refs/heads/master
2020-04-21T11:00:37.437314
2019-12-12T17:53:36
2019-12-12T17:53:36
169,505,839
1
0
null
null
null
null
UTF-8
C++
false
false
2,016
h
#ifndef VECTOR3D_H #define VECTOR3D_H #include <QtDebug> #include <QtMath> #include <QFile> #include <QDebug> class vec3 { public: // default consturctor vec3(){} vec3( qreal e0, qreal e1, qreal e2){ e[0]=e0; e[1]=e1; e[2]=e2; } // getters - we use this class as both spatial vector and pixel color class; so: xyz and rgb inline qreal x(){ return e[0]; } inline qreal y(){ return e[1]; } inline qreal z(){ return e[2]; } inline qreal r(){ return e[0]; } inline qreal g(){ return e[1]; } inline qreal b(){ return e[2]; } // unary operator overloads inline const vec3& operator+()const{ return *this; } // returns reference inline vec3 operator-(){ return vec3( -e[0], -e[1], -e[2] ); } // negation: returns copy // TO DO: check if argument out of bounds inline qreal operator[](int i) const{ return e[i]; } // for getting component value inline qreal& operator[](int i){ return e[i]; } // for setting component value inline qreal length() const{ return qSqrt( e[0]*e[0] + e[1]*e[1] + e[2]*e[2]); } inline qreal squaredLength(){ return e[0]*e[0] + e[1]*e[1] + e[2]*e[2]; } inline void make_unit_vector(); // vector components public: qreal e[3]; }; //binary operators vec3 operator+(const vec3 &first, const vec3 &second ); vec3 operator-(const vec3 &first, const vec3 &second ); vec3 operator*(const vec3 &first, const vec3 &second ); vec3 operator/(const vec3 &first, const vec3 &second ); // unary operators ( mul by scalar ) vec3 operator*(const qreal scalar, const vec3 &vector ); vec3 operator*( const vec3 &vector, const qreal scalar ); vec3 operator/( const vec3 &vector, const qreal scalar ); // standard vector functions vec3 cross( const vec3 &first, const vec3 &second ); qreal dot( const vec3 &first, const vec3 &second ); vec3 unit_vector( vec3 vector ); // qDebug insert operator overload QDebug operator<<( QDebug output_stream, const vec3 &out_vec ); #endif // VECTOR3D_H
[ "kozjaktibor@gmail.com" ]
kozjaktibor@gmail.com
15493fa912fe19e9a344085ac14e62e62303ddee
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/net/base/fuzzer_test_support.cc
f355c8808e6fc8a2418828d12014bd38355c029c
[ "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
C++
false
false
1,305
cc
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/at_exit.h" #include "base/i18n/icu_util.h" #include "base/logging.h" #include "base/message_loop/message_loop.h" #include "base/metrics/statistics_recorder.h" namespace { // Set up globals that a number of network tests use. // // Note that in general static initializers are not allowed, however this is // just being used by test code. struct InitGlobals { InitGlobals() { // Set up ICU. ICU is used internally by GURL, which is used throughout the // //net code. Initializing ICU is important to prevent fuzztests from // asserting when handling non-ASCII urls. CHECK(base::i18n::InitializeICU()); // Prevent every call to get a Histogram* from leaking memory. Instead, only // the fist call to get each Histogram* leaks memory. base::StatisticsRecorder::Initialize(); } // A number of tests use async code which depends on there being a message // loop. Setting one up here allows tests to reuse the message loop between // runs. base::MessageLoopForIO message_loop; base::AtExitManager at_exit_manager; }; InitGlobals* init_globals = new InitGlobals(); } // namespace
[ "enrico.weigelt@gr13.net" ]
enrico.weigelt@gr13.net
41ef320b68844ab87688802aebe1f8625a6ffc54
8ed15d43652dbcab332c78923da416b91b139323
/android/fedmlsdk/MobileNN/includes/train/FedMLTorchTrainer.h
6e7a2a9cb59d139c2af140ac33883da317b07882
[ "Apache-2.0" ]
permissive
FedML-AI/FedML
74d144038c9de4a0621eb328d00987abac35e2d1
b436fbd95cbb62f6c58d2233d7affa0f62cb1817
refs/heads/master
2023-08-31T22:15:39.786371
2023-08-24T03:41:58
2023-08-24T03:41:58
281,519,510
3,197
807
Apache-2.0
2023-09-14T02:14:20
2020-07-21T22:41:25
Python
UTF-8
C++
false
false
568
h
#ifndef FEDML_ANDROID_FEDMLTORCHTRAINER_H #define FEDML_ANDROID_FEDMLTORCHTRAINER_H #include "FedMLBaseTrainer.h" #include <iostream> #include "cifar10.h" #include "mnist.h" #include <torch/csrc/jit/mobile/import.h> #include <torch/csrc/jit/mobile/module.h> #include <torch/csrc/jit/mobile/train/export_data.h> #include <torch/csrc/jit/mobile/train/optim/sgd.h> #include <torch/csrc/jit/mobile/train/sequential.h> class FedMLTorchTrainer : public FedMLBaseTrainer { public: std::string train() override; }; #endif //FEDML_ANDROID_FEDMLTORCHTRAINER_H
[ "jiezongchang@foxmail.com" ]
jiezongchang@foxmail.com
2e4c4c715d6d0b7414fa5cd6de6827930f64f4e3
4d5512cc6d8ef1f4809430e74ab6e803dc749d22
/docfilekcm/kcm_docfiles.cpp
60da38deb3c8cdb18f69bfa8d7be6972229b376e
[]
no_license
mali/kdev-python
8092b16ed4d2b7ad7ee61f2b4f55d5dee1d782d2
aef2f3c81a2f3227e48e68a5aaf46d1a1f489d0b
refs/heads/master
2021-01-01T16:30:46.334982
2015-01-25T16:39:40
2015-01-25T16:40:11
23,633,754
2
0
null
null
null
null
UTF-8
C++
false
false
1,851
cpp
/************************************************************************ * KDevelop4 Python Language Support * * Copyright 2013 Sven Brauch <svenbrauch@gmail.com> * * * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 or version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, but * * WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, see <http://www.gnu.org/licenses/>. * ************************************************************************/ #include "kcm_docfiles.h" #include <QLabel> #include <QLayout> #include <QBoxLayout> #include <QDebug> #include "docfilemanagerwidget.h" K_PLUGIN_FACTORY(DocfilesKCModuleFactory, registerPlugin<DocfilesKCModule>();) DocfilesKCModule::DocfilesKCModule(QWidget* parent, const QVariantList& args) : KCModule(parent, args) { managerWidget = new DocfileManagerWidget(parent); parent->layout()->addWidget(managerWidget); } DocfilesKCModule::~DocfilesKCModule() { } #include "kcm_docfiles.moc"
[ "svenbrauch@googlemail.com" ]
svenbrauch@googlemail.com
b42f3d5dedb3433e36cb1d14dfcecd0295af7183
997449072baa8e50a143ae1152fd4fa83c8e1068
/build/px4/msg/tmp/sources/vehicle_local_position_setpoint.cpp
ea63345e41942f2f588f19d8ee397d0ae3c908e1
[]
no_license
idrissahil/catkin_ws
c547a6f7be812cc0bb1a93042026f746d34e7e70
b5d8b60c882b60bb19b8d4529257ca513b8256e3
refs/heads/master
2022-01-24T12:51:28.038620
2019-06-02T16:05:45
2019-06-02T16:05:45
175,048,655
1
0
null
null
null
null
UTF-8
C++
false
false
3,412
cpp
/**************************************************************************** * * Copyright (C) 2013-2016 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. 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 name PX4 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 OWNER 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. * ****************************************************************************/ /* Auto-generated by genmsg_cpp from file vehicle_local_position_setpoint.msg */ #include <cinttypes> #include <px4_log.h> #include <px4_defines.h> #include <uORB/topics/vehicle_local_position_setpoint.h> #include <drivers/drv_hrt.h> #include <lib/drivers/device/Device.hpp> constexpr char __orb_vehicle_local_position_setpoint_fields[] = "uint64_t timestamp;float x;float y;float z;float yaw;float yawspeed;float vx;float vy;float vz;float acc_x;float acc_y;float acc_z;float[3] thrust;"; ORB_DEFINE(vehicle_local_position_setpoint, struct vehicle_local_position_setpoint_s, 64, __orb_vehicle_local_position_setpoint_fields); void print_message(const vehicle_local_position_setpoint_s& message) { PX4_INFO_RAW(" vehicle_local_position_setpoint_s\n"); if (message.timestamp != 0) { PX4_INFO_RAW("\ttimestamp: %" PRIu64 " (%.6f seconds ago)\n", message.timestamp, hrt_elapsed_time(&message.timestamp) / 1e6); } else { PX4_INFO_RAW("\n"); } PX4_INFO_RAW("\tx: %.4f\n", (double)message.x); PX4_INFO_RAW("\ty: %.4f\n", (double)message.y); PX4_INFO_RAW("\tz: %.4f\n", (double)message.z); PX4_INFO_RAW("\tyaw: %.4f\n", (double)message.yaw); PX4_INFO_RAW("\tyawspeed: %.4f\n", (double)message.yawspeed); PX4_INFO_RAW("\tvx: %.4f\n", (double)message.vx); PX4_INFO_RAW("\tvy: %.4f\n", (double)message.vy); PX4_INFO_RAW("\tvz: %.4f\n", (double)message.vz); PX4_INFO_RAW("\tacc_x: %.4f\n", (double)message.acc_x); PX4_INFO_RAW("\tacc_y: %.4f\n", (double)message.acc_y); PX4_INFO_RAW("\tacc_z: %.4f\n", (double)message.acc_z); PX4_INFO_RAW("\tthrust: [%.4f, %.4f, %.4f]\n", (double)message.thrust[0], (double)message.thrust[1], (double)message.thrust[2]); }
[ "idrissahil3@gmail.com" ]
idrissahil3@gmail.com
b4264eba10a3ff390965fb859a07568b882d0ff0
cec628def1aad94ccbefa814d2a0dbd51588e9bd
/cnd.completion/test/unit/data/org/netbeans/modules/cnd/completion/cplusplus/hyperlink/TemplateSpecializationsTestCase/bug262586.cpp
00cb14320b433e38a07ce50f2d49a6f2fc7600f7
[]
no_license
emilianbold/netbeans-releases
ad6e6e52a896212cb628d4522a4f8ae685d84d90
2fd6dc84c187e3c79a959b3ddb4da1a9703659c7
refs/heads/master
2021-01-12T04:58:24.877580
2017-10-17T14:38:27
2017-10-17T14:38:27
78,269,363
30
15
null
2020-10-13T08:36:08
2017-01-07T09:07:28
null
UTF-8
C++
false
false
2,123
cpp
namespace bug262586 { namespace std262586 { struct void_t {}; template <typename _Iterator, typename = void_t> struct __iterator_traits262586 { }; template <typename _Iterator> struct __iterator_traits262586<_Iterator, void_t> { typedef typename _Iterator::pointer pointer; }; template<typename _Iterator> struct iterator_traits262586 : __iterator_traits262586<_Iterator> { }; template<typename _Tp> struct iterator_traits262586<_Tp*> { typedef _Tp* pointer; }; template<typename _Iterator> class __normal_iterator262586 { typedef std262586::iterator_traits262586<_Iterator> __traits_type; public: typedef typename __traits_type::pointer pointer; }; template<typename _Iterator> class reverse_iterator262586 { protected: typedef std262586::iterator_traits262586<_Iterator> __traits_type; public: typedef typename __traits_type::pointer pointer; pointer operator->() const; }; template <typename BT> struct vector_base { typedef __normal_iterator262586<BT*> iterator; }; template <typename Tp> struct vector262586 { typedef vector_base<Tp> _Base; typedef typename _Base::iterator iterator; typedef reverse_iterator262586<iterator> reverse_iter; }; } struct AAA262586 { int foo(); }; int main262586() { std262586::vector262586<AAA262586>::reverse_iter iter1; iter1->foo(); return 0; } // Part 2 - bug with using declarations template <typename T> struct CollectionBase262586 { T get(); }; template <typename T> struct Collection262586 : protected CollectionBase262586<T> { using CollectionBase262586<T>::get; }; int main262586_2() { Collection262586<AAA262586> col; col.get().foo(); return 0; } }
[ "petrk@netbeans.org" ]
petrk@netbeans.org
eaddd942eddc8461b46d3bb8ea005b1fa9fd4492
c7c4ac450c0150fa443ea879aab7e867c61ada73
/src/qt/trafficgraphwidget.cpp
46189ca9809365873ce5854d8b680a7be596a4df
[ "MIT" ]
permissive
randboy/BAYEMCOIN
1a408701bcaf152f0f26ba988861c58b4956bbbc
d0f19e1e38a5bebeb9a7a230e1f0054134720250
refs/heads/master
2022-12-03T14:59:07.156104
2020-08-24T02:07:53
2020-08-24T02:07:53
289,723,637
0
0
null
null
null
null
UTF-8
C++
false
false
4,899
cpp
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2017 The Ravencoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "trafficgraphwidget.h" #include "clientmodel.h" #include <QPainter> #include <QColor> #include <QTimer> #include <cmath> #define DESIRED_SAMPLES 800 #define XMARGIN 10 #define YMARGIN 10 TrafficGraphWidget::TrafficGraphWidget(QWidget *parent) : QWidget(parent), timer(0), fMax(0.0f), nMins(0), vSamplesIn(), vSamplesOut(), nLastBytesIn(0), nLastBytesOut(0), clientModel(0) { timer = new QTimer(this); connect(timer, SIGNAL(timeout()), SLOT(updateRates())); } void TrafficGraphWidget::setClientModel(ClientModel *model) { clientModel = model; if(model) { nLastBytesIn = model->getTotalBytesRecv(); nLastBytesOut = model->getTotalBytesSent(); } } int TrafficGraphWidget::getGraphRangeMins() const { return nMins; } void TrafficGraphWidget::paintPath(QPainterPath &path, QQueue<float> &samples) { int sampleCount = samples.size(); if(sampleCount > 0) { int h = height() - YMARGIN * 2, w = width() - XMARGIN * 2; int x = XMARGIN + w; path.moveTo(x, YMARGIN + h); for(int i = 0; i < sampleCount; ++i) { x = XMARGIN + w - w * i / DESIRED_SAMPLES; int y = YMARGIN + h - (int)(h * samples.at(i) / fMax); path.lineTo(x, y); } path.lineTo(x, YMARGIN + h); } } void TrafficGraphWidget::paintEvent(QPaintEvent *) { QPainter painter(this); painter.fillRect(rect(), Qt::black); if(fMax <= 0.0f) return; QColor axisCol(Qt::gray); int h = height() - YMARGIN * 2; painter.setPen(axisCol); painter.drawLine(XMARGIN, YMARGIN + h, width() - XMARGIN, YMARGIN + h); // decide what order of magnitude we are int base = floor(log10(fMax)); float val = pow(10.0f, base); const QString units = tr("KB/s"); const float yMarginText = 2.0; // draw lines painter.setPen(axisCol); painter.drawText(XMARGIN, YMARGIN + h - h * val / fMax-yMarginText, QString("%1 %2").arg(val).arg(units)); for(float y = val; y < fMax; y += val) { int yy = YMARGIN + h - h * y / fMax; painter.drawLine(XMARGIN, yy, width() - XMARGIN, yy); } // if we drew 3 or fewer lines, break them up at the next lower order of magnitude if(fMax / val <= 3.0f) { axisCol = axisCol.darker(); val = pow(10.0f, base - 1); painter.setPen(axisCol); painter.drawText(XMARGIN, YMARGIN + h - h * val / fMax-yMarginText, QString("%1 %2").arg(val).arg(units)); int count = 1; for(float y = val; y < fMax; y += val, count++) { // don't overwrite lines drawn above if(count % 10 == 0) continue; int yy = YMARGIN + h - h * y / fMax; painter.drawLine(XMARGIN, yy, width() - XMARGIN, yy); } } if(!vSamplesIn.empty()) { QPainterPath p; paintPath(p, vSamplesIn); painter.fillPath(p, QColor(0, 255, 0, 128)); painter.setPen(Qt::green); painter.drawPath(p); } if(!vSamplesOut.empty()) { QPainterPath p; paintPath(p, vSamplesOut); painter.fillPath(p, QColor(255, 0, 0, 128)); painter.setPen(Qt::red); painter.drawPath(p); } } void TrafficGraphWidget::updateRates() { if(!clientModel) return; quint64 bytesIn = clientModel->getTotalBytesRecv(), bytesOut = clientModel->getTotalBytesSent(); float inRate = (bytesIn - nLastBytesIn) / 1024.0f * 1000 / timer->interval(); float outRate = (bytesOut - nLastBytesOut) / 1024.0f * 1000 / timer->interval(); vSamplesIn.push_front(inRate); vSamplesOut.push_front(outRate); nLastBytesIn = bytesIn; nLastBytesOut = bytesOut; while(vSamplesIn.size() > DESIRED_SAMPLES) { vSamplesIn.pop_back(); } while(vSamplesOut.size() > DESIRED_SAMPLES) { vSamplesOut.pop_back(); } float tmax = 0.0f; for (float f : vSamplesIn) { if(f > tmax) tmax = f; } for (float f : vSamplesOut) { if(f > tmax) tmax = f; } fMax = tmax; update(); } void TrafficGraphWidget::setGraphRangeMins(int mins) { nMins = mins; int msecsPerSample = nMins * 60 * 1000 / DESIRED_SAMPLES; timer->stop(); timer->setInterval(msecsPerSample); clear(); } void TrafficGraphWidget::clear() { timer->stop(); vSamplesOut.clear(); vSamplesIn.clear(); fMax = 0.0f; if(clientModel) { nLastBytesIn = clientModel->getTotalBytesRecv(); nLastBytesOut = clientModel->getTotalBytesSent(); } timer->start(); }
[ "root@vps-5c20fa9d.vps.ovh.net.novalocal" ]
root@vps-5c20fa9d.vps.ovh.net.novalocal
a6c0be592db2dad14efa0a36bc5a059bb186508f
8039d705f098b62c904c2f5b1a6a9c9a47e875ae
/Development/YDWE/Dev/Editor/Core/SlkLib/SlkTable.hpp
c486336ed32e7c0526eee81b772308f67a455313
[ "Apache-2.0" ]
permissive
h82258652/YDWE
6985544d3273529ba6ee0751cd58ab9346551542
e2ad572ffd6bf29b457da96c44b26dcca899e867
refs/heads/master
2021-01-23T23:04:01.079978
2013-08-01T15:22:07
2013-08-01T15:22:07
11,835,736
1
1
null
null
null
null
UTF-8
C++
false
false
922
hpp
#pragma once #include <string> #include "BaseTable.hpp" #include "VariableData.hpp" namespace slk { class SLKLIB_API SlkValue { public: SlkValue() : val_() , is_str_(true) { } SlkValue(const std::string& val) { size_t slen = val.size(); if (slen >= 2 && val[0] == '"' && val[slen-1] == '"') { is_str_ = true; val_.assign(val, 1, slen-2); } else { is_str_ = false; val_.assign(val); } } SlkValue(const std::string& val, bool is_str) : val_(val) , is_str_(is_str) { } std::string const& to_string() const { return val_; } void set(const std::string& val) { val_ = val; } bool is_str() const { return is_str_; } private: std::string val_; bool is_str_; }; class SLKLIB_API SlkSingle : public HashTable<std::string, SlkValue>::IType { }; class SLKLIB_API SlkTable : public BaseTable<SlkTable, SlkSingle> { }; }
[ "actboy168@gmail.com" ]
actboy168@gmail.com
07d7def6b743818073b088e1a29dd9ffa8f04add
772d932a0e5f6849227a38cf4b154fdc21741c6b
/CPP_Joc_Windows_Android/SH_Client_Win_Cpp_Cmake/App/src/rpg3D/gw/entity/module/statusEffects/statusEffect/config/CfgStatusEffectKnockback.h
aa0687e379ed9884aacfcba4b3d218925b53da64
[]
no_license
AdrianNostromo/CodeSamples
1a7b30fb6874f2059b7d03951dfe529f2464a3c0
a0307a4b896ba722dd520f49d74c0f08c0e0042c
refs/heads/main
2023-02-16T04:18:32.176006
2021-01-11T17:47:45
2021-01-11T17:47:45
328,739,437
0
0
null
null
null
null
UTF-8
C++
false
false
782
h
#pragma once #include "CfgStatusEffect.h" namespace rpg3D { class CfgStatusEffectKnockback : public CfgStatusEffect { private: typedef CfgStatusEffect super; public: static int TYPE; float distance; float jumpHeight; public: CfgStatusEffectKnockback(CfgStatusEffectKnockback const&) = delete; CfgStatusEffectKnockback(CfgStatusEffectKnockback &&) = default; CfgStatusEffectKnockback& operator=(CfgStatusEffectKnockback const&) = delete; CfgStatusEffectKnockback& operator=(CfgStatusEffectKnockback &&) = default; explicit CfgStatusEffectKnockback(float durationS, float distance, float jumpHeight); StatusEffect* buildSP(std::shared_ptr<CfgStatusEffect> statusEffectConfig, IWorldEntity* entity) override; ~CfgStatusEffectKnockback() override; }; };
[ "adriannostromo@gmail.com" ]
adriannostromo@gmail.com
afbfc84e97b2f05d310c8f9be9bd6175cd270112
b91504b35ed7b719ca786ffe8553b4fa00339aa5
/Template/template.cpp
be41089060b7e581df1a487ec6cafd46ce62efaf
[ "MIT" ]
permissive
kishoreuppalapati/Algorithms
661bb0c56c7a7f504c94b5b1effea249b882d78f
d29a10316219f320b0116ef3b412457a1c1aea26
refs/heads/master
2022-01-21T13:13:38.350628
2019-08-14T08:43:11
2019-08-14T08:43:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,158
cpp
#include <vector> #include <list> #include <map> #include <set> #include <deque> #include <queue> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <fstream> #include <iostream> #include <iomanip> #include <cstdio> #include <limits> #include <climits> #include <cmath> #include <cstdlib> #include <cctype> #include <string> #include <cstring> #include <ctime> #include <iterator> using namespace std; //Template: coder - Mrinmoi Hossain Mokit /*Long Data Type*/ typedef long long int ll; typedef unsigned long long int ull; typedef long double ld; /*VECTOR Declaration */ typedef vector<int> VI; typedef vector<ll> VL; typedef vector<char> VC; typedef vector<string> VS; typedef vector<int,int> VII; typedef vector<char,int> VCI; typedef vector<ll, ll> VLL; /*Pair Declaration*/ typedef pair<int, int> ipair; /*Constant Value */ const double pi = acos(-1.0); const double eps = 1e-11; #define RAD (PI/180.00) #define mod 1000000007 /*Modular Size*/ #define sz 100002 /*array_size*/ #define ff first #define ss second #define pb push_back #define mp make_pair /*make_pair()*/ #define all(x) (x.begin(),x.end()) /*File Section*/ #define read() freopen("input.txt", "r", stdin) #define write() freopen("output.txt", "w", stdout) /*Input Section*/ #define Ci(a) cin >> a #define Cii(a,b) cin >> a >> b #define Ciii(a,b,c) cin >> a >> b >> c #define Ciiii(a,b,c,d) cin >> a >> b >> c >> d #define sl(a) scanf("%lld", &a) #define s2(a,b) scanf("%lld %lld", &a, &b) #define s3(a,b,c) scanf("%lld %lld %lld", &a, &b, &c) #define s4(a,b,c,d) scanf("%lld %lld %lld %lld", &a, &b, &c, &d) /*Max-Min Section*/ #define min3(a,b,c) min(a,min(b,c)) #define min4(a,b,c,d) min(min(a,b),min(c,d)) #define min5(a,b,c,d,e) min(min3(a,b,c),min(d,e)) #define max3(a,b,c) max(a,max(b,c)) #define max4(a,b,c,d) max(max(a,b),max(c,d)) #define max5(a,b,c,d,e) max(max3(a,b,c),max(d,e)) /*Output section*/ #define SP printf(" ") #define NL printf("\n") #define pl(a) printf("%lld\n", a) #define pll(a,b) printf("%lld %lld\n", a, b) #define plll(a,b,c) printf("%lld %lld %lld\n", a, b, c) #define fast ios_base:: sync_with_stdio(0),cin.tie(0) #define IT(it,c) for(__typeof(c.begin()) it=c.begin();it!=c.end();it++) /*to iterate the iterator*/ /*Template Section*/ template<class T> inline T sqr(T a) { return a * a; } template<class T> inline T gcd(T a, T b) { if(a < 0) return gcd(-a, b); if(b < 0) return gcd(a, -b); return (b == 0)? a:gcd(b, a % b); } template<class T> inline T lcm(T a, T b) { if(a < 0) return lcm(-a, b); if(b < 0) return lcm(a, -b); return a * (b / gcd(a, b)); } template<class T> inline bool isPrime(T n){ if(n <= 1) return false; for(T i = 2; i * i <= n; i++) if(n % i == 0) return false; return true; } /*Function Declaration*/ double dist(double x1, double y1, double x2, double y2) { return sqrt(sqr(x1 - x2) + sqr(y1 - y2)); } double disR(double x1, double y1, double x2, double y2) { return sqr(x1 - x2) + sqr(y1 - y2); } //Translator ->// bool isUpper(char a) { return (a >= 'A' && a <= 'Z'); } bool isLower(char a) { return (a >= 'a' && a <= 'z'); } bool isLetter(char a){ return (a >= 'A' && a <= 'Z') || (a >= 'a' && a <= 'z'); } bool isDigit(char a) { return (a >= '0' && a <= '9'); } char toLower(char a) { return (isUpper(a))? (a + 32):a; } char toUpper(char a) { return (isLower(a))? (a - 32):a; } int main(void) { return 0; }
[ "mokit.aust@gmail.com" ]
mokit.aust@gmail.com
d032b7e8ed2cb155a073e955a1c7543849e88d3c
0dae134774f7887eb3ffb4b7611b26e8041a0692
/Competitive Programming/Prepared Problems/Startup/main_correct.cpp
f84db92f6ae6dc2f5d2450d7bbdf47578d3eb286
[]
no_license
andyyang200/CP
b6ce11eb58fd535815aa0f7f5a22e9ed009bf470
46efbcdaf441ee485dbf9eb82e9f00e488d2d362
refs/heads/master
2020-08-27T14:49:36.723263
2019-10-25T04:09:11
2019-10-25T04:09:11
217,407,673
0
0
null
null
null
null
UTF-8
C++
false
false
2,862
cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; const int MAXN = 1005; int nodes, src, sink; int dist[MAXN], Q[MAXN], work[MAXN]; struct Edge { int to, rev; int f, cap; }; vector<Edge> G[MAXN]; void addEdge(int s, int t, int cap) { Edge a = {t, (int)G[t].size(), 0, cap}; Edge b = {s, (int)G[s].size(), 0, 0}; G[s].push_back(a); G[t].push_back(b); } bool dinicBfs() { fill(dist, dist + nodes, -1); dist[src] = 0; int qt = 0; Q[qt++] = src; for (int qh = 0; qh < qt; qh++) { int u = Q[qh]; for (int j = 0; j < G[u].size(); ++j) { Edge &e = G[u][j]; int v = e.to; if (dist[v] < 0 && e.f < e.cap) { dist[v] = dist[u] + 1; Q[qt++] = v; } } } return dist[sink] >= 0; } int dinicDfs(int u, int f) { if (u == sink) return f; // Edges 0..work[u] - 1 have been saturated for (int &i = work[u]; i < G[u].size(); ++i) { Edge &e = G[u][i]; if (e.cap <= e.f) continue; int v = e.to; if (dist[v] == dist[u] + 1) { int df = dinicDfs(v, min(f, e.cap - e.f)); if (df > 0) { e.f += df; G[v][e.rev].f -= df; return df; } } } return 0; } int maxFlow() { int result = 0; while (dinicBfs()) { fill(work, work + nodes, 0); while (int delta = dinicDfs(src, INT_MAX)) result += delta; } return result; } bool can[1005]; bool used[1005]; vector<int> neighbors[1005]; pair<int, int> edges[10005]; int main() { int n, m; scanf("%d%d", &n, &m); for (int i = 0; i < m; ++i) { int u, v; scanf("%d%d", &u, &v); edges[i] = {u, v}; neighbors[v].push_back(u); neighbors[u].push_back(v); } src = 0; sink = n + 1; nodes = sink + 1; for (int i = 1; i <= n; ++i) { int rem = n - neighbors[i].size() - 1; if (neighbors[i].size() < rem) continue; memset(can, 0, sizeof(can)); for (int u : neighbors[i]) can[u] = true; for (int j = 0; j <= sink; ++j) G[j].clear(); for (int j = 0; j < m; ++j) { int u = edges[j].first, v = edges[j].second; if (u == i || v == i) continue; if (can[u] && !can[v]) addEdge(v, u, 1); if (can[v] && !can[u]) addEdge(u, v, 1); } for (int j = 1; j <= n; ++j) { if (j == i) continue; if (!can[j]) addEdge(src, j, 1); else addEdge(j, sink, 1); } int val = maxFlow(); if (val == rem) { printf("Yes\n%d %d\n", i, neighbors[i].size()); for (int j = 1; j <= n; ++j) { if (j == i) continue; if (can[j]) continue; for (int k = 0; k < G[j].size(); ++k) { Edge &e = G[j][k]; int v = e.to; if (e.f == e.cap && e.cap == 1) { // j is connected to v printf("%d %d\n", j, v); used[v] = true; } } } for (int j = 1; j <= n; ++j) if (can[j] && !used[j]) printf("%d -1\n", j); return 0; } } printf("No\n"); }
[ "andy@zensors.com" ]
andy@zensors.com
828e5f07bde881f2476ab035c613182523c01edd
865569aa5b4bd420893ac2528fc5766fdfc63694
/Source/Iunius/SkillActors/SkillActor_BoxCollider.h
188e9b8affa9435a4dbe19c1fb29e09c6ef318ef
[]
no_license
yori05/Iunius
4b1e5381180650335a772e149abc661f6301f9e2
fedaa49423636722aa9fb42feddd7aef7932546b
refs/heads/master
2020-12-31T08:23:19.769614
2020-02-28T00:47:27
2020-02-28T00:47:27
238,947,960
0
0
null
null
null
null
UTF-8
C++
false
false
366
h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "SkillActors/SkillActor.h" #include "SkillActor_BoxCollider.generated.h" /** * */ UCLASS() class IUNIUS_API ASkillActor_BoxCollider : public ASkillActor { GENERATED_BODY() public: ASkillActor_BoxCollider(); };
[ "flodmg@gmail.com" ]
flodmg@gmail.com
3e853e0d6f3f546af82aa3fa1b968653f7018af4
c9bc0decd04317d79e477e082367de564cb15b64
/Parser.cpp
759c7caaa84558953852da80cb539e32ca236e4d
[]
no_license
vrxacs/Parser
c9e4d6bc7a1c993d3e3cce9f4f33c13bf5bfc42e
e5adcc47861cdf0a7e18d03a0895b625cc91e9e6
refs/heads/master
2016-09-06T10:17:25.179771
2013-06-03T03:37:43
2013-06-03T03:37:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,484
cpp
#include <iostream> #include <string> #include <stdlib.h> #include <cmath> #include <vector> #include <fstream> using std::string; using std::cout; using std::cin; using std::vector; double parse(string); bool parenCheck(string, int); string replaceString(string, char, string); int main(){ string filename; string expr; int n; double sum; string num; cout << "Please input the name of the data file:" << std::endl; cin >> filename; std::ifstream myfile(filename.c_str()); if(myfile.is_open()){ while(myfile.good()) { sum = 0; myfile >> expr; myfile >> n; for(int i = 0; i < n; i++){ myfile >> num; sum += parse(replaceString(expr, 'x', num)); } cout << "Average value for expression " << expr << ": " << sum/n << std::endl; } } return 0; } string replaceString(string expr, char a, string b){ for(int i = 0; i < expr.size(); i++){ if(expr[i] == a){ expr.erase(i, 1); expr.insert(i, b); } } return expr; } double parse(string s){ //if the input does not contain operators then return the numerical value if(s.find("+") == string::npos && s.find("-") == string::npos && s.find("*") == string::npos && s.find("/") == string::npos && s.find("sqrt") == string::npos && s.find("sin") == string::npos && s.find("cos") == string::npos && s.find("tan") == string::npos){ return atof(s.c_str()); } //if - is used a sign operator else if(s.find("-") == 0){ return - parse(s.substr(1)); } else if(s.find("+") == 0){ return parse(s.substr(1)); } else { int pos; //distinguishes between sign operator and subtraction operator pos = s.find("-"); if(pos != string::npos && parenCheck(s, pos) && pos != 0 && pos != s.size()-1 && s[pos-1] != '+' && s[pos-1] != '-' && s[pos-1] != '*' && s[pos-1] != '/'){ return parse(s.substr(0, pos)) - parse(s.substr(pos+1)); } //distinguishes between sign operator and addition pos = s.find("+"); if(pos != string::npos && pos != 0 && pos != s.size()-1 && parenCheck(s, pos) && s[pos-1] != '+' && s[pos-1] != '-' && s[pos-1] != '*' && s[pos-1] != '/'){ return parse(s.substr(0, pos)) + parse(s.substr(pos+1)); } pos = s.find("*"); if(pos != string::npos && pos != 0 && pos != s.size()-1 && parenCheck(s, pos)) return parse(s.substr(0, pos)) * parse(s.substr(pos+1)); pos = s.find("/"); if(pos != string::npos && pos != 0 && pos != s.size()-1 && parenCheck(s, pos)) return parse(s.substr(0, pos)) / parse(s.substr(pos+1)); pos = s.find("sqrt"); if(pos != string::npos && pos == 0){ return sqrt(parse(s.substr(pos+5, s.size()-6))); } pos = s.find("sin"); if(pos != string::npos && pos == 0){ return sin(parse(s.substr(pos+4, s.size()-5))); } pos = s.find("cos"); if(pos != string::npos && pos == 0){ return cos(parse(s.substr(pos+4, s.size()-5))); } pos = s.find("tan"); if(pos != string::npos && pos == 0){ return tan(parse(s.substr(pos+4, s.size()-5))); } } cout << "Invalid syntax: " << s << std::endl; return 0; } bool parenCheck(string s, int pos){ int paren = 0; for(int i = 0; i < pos; i++){ if(s[i] == '(') paren++; else if(s[i] == ')') paren--; } if(paren == 0) return true; else return false; }
[ "vrx@spark" ]
vrx@spark
c8d6362da46180ff62647ea943b78ca34dde652d
c74e6fcdb8c8516ed6140dc2fe7dad691b5102aa
/src/grlida_compatibilidad_exe.h
dad77ba285963d63b2d30d11aa05350fa8be422f
[]
no_license
Monthy/gr-lida
fd2fe3d1a419b3da7a87abc447c388b726f85255
09b8ea29ec952e9d7f5a37500861a2844742c130
refs/heads/master
2021-08-20T05:11:45.677421
2021-08-11T14:44:52
2021-08-11T14:44:52
3,162,527
17
6
null
2021-07-17T16:38:29
2012-01-12T14:01:20
C++
UTF-8
C++
false
false
1,628
h
/* * * GR-lida by Monthy * * This file is part of GR-lida is a Frontend for DOSBox, ScummVM and VDMSound * Copyright (C) 2006-2021 Pedro A. Garcia Rosado Aka Monthy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * **/ #ifndef GRDAP_ACERCAD_H #define GRDAP_ACERCAD_H #include <QDialog> #include <QDebug> #include "funciones.h" namespace Ui { class frmCompatibilidadExe; } class frmCompatibilidadExe : public QDialog { Q_OBJECT public: explicit frmCompatibilidadExe(QString m_path_exe, QString m_cfg_compatibilidad, QWidget *parent = 0); ~frmCompatibilidadExe(); QString getCfgCompatibilidad() { return cfg_compatibilidad; } private: Ui::frmCompatibilidadExe *ui; Funciones *fGrl; QString path_exe, cfg_compatibilidad; void cargarConfig(); void setTheme(); private slots: void on_btnOk_clicked(); void on_btnCancel_clicked(); void on_chkDat_compatibilidad_color_reducido_clicked(bool checked); }; #endif // GRDAP_ACERCAD_H
[ "ermonthy@gmail.com" ]
ermonthy@gmail.com
bed0d9ac24f663646a8447cf474124f2fc58a25f
3f35038c8648e121dff35a4059a5a2466901ce97
/src/TestCases/Test_AllenCahn.h
ba0317bd368a42e0a57b5e8404d307d229be8990
[]
no_license
ludovicadelpop/MultiRate
0efcb42a4d7742af8a98e43d04671cee4ce16469
d5014b8720b24ff4e074b4e9d846f978deb3875b
refs/heads/master
2021-01-09T07:04:50.209899
2016-06-18T09:57:23
2016-06-18T09:57:25
61,427,233
0
0
null
null
null
null
UTF-8
C++
false
false
2,599
h
/* * Test_AllenCahn.h * * Created on: Jan 23, 2016 * Author: pacs_student */ #ifndef TEST_ALLENCAHN_H_ #define TEST_ALLENCAHN_H_ #include "NewtonSolver/BasicNewtonSolver.h" #include "NewtonSolver/FixedJacobianNewtonSolver.h" #include "SetProblemAllenCahn.h" #include "MasterSolverOutputManipulator/MasterSolution.h" #include "MasterSolverOutputManipulator/MasterSolverOutputManipulator.h" #include "Restab/GenerateNumbComponentsRestabFile.h" #include "Restab/GeneratePDERestabFile.h" #include "Restab/GenerateMeshRestabFile.h" #include "Restab/GenerateDebugRestabFile.h" #include "AllenCahnRHSFunction/AllenCahnRHSFunction.h" #include "CubicHermiteInterpolationSolver/CubicHermiteInterpolationSolver.h" #include "LinearInterpolationSolver/LinearInterpolationSolver.h" namespace Test_AllenCahn{ void compute(std::unique_ptr<IMasterSolver> solver, Real Dt, Real Newton_tolabs, Real Newton_tolrel, Real Error_tolabs,Real Error_tolrel,Real tinit,Real tfinal, std::unique_ptr<INewtonSolver> newt_solver, Integer Nx, Real x0, Real xL, Real sigma){ AllenCahnRHSFunction func; RealVector yinit; SetProblemAllenCahn::InitAllenCahn(yinit,sigma,Nx,x0,xL); func.setNx(Nx); func.setSigma(sigma); func.setX0(x0); func.setXL(xL); Integer y_size = yinit.size(); RealVector hz1(y_size); hz1 = func.evalF(tinit,yinit); std::unique_ptr<LinearInterpolationSolver> interp (new LinearInterpolationSolver()); //std::unique_ptr<CubicHermiteInterpolationSolver> interp(new CubicHermiteInterpolationSolver()); solver->setFun(&func); solver->setHinitial(Dt); solver->setHz1initial(hz1); solver->setNewtSolv(std::move(newt_solver)); solver->setYinitial(yinit); solver->setTfinal(tfinal); solver->setTinitial(tinit); solver->setErrorTolAbs(Error_tolabs); solver->setErrorTolRel(Error_tolrel); solver->setNewtonTolAbs(Newton_tolabs); solver->setNewtonTolRel(Newton_tolrel); solver->setInterpolator(std::move(interp)); solver->compute(); std::vector<std::unique_ptr<ISolverData>> output = solver->getSolution(); vector<MasterSolution> vect_restab = MasterSolverOutputManipulator::getOutputVectorRestab(std::move(output)); GeneratePDERestabFile::PDERestab(x0,Nx,xL,vect_restab); GenerateDebugRestabFile::DebugRestab(x0,Nx,xL,std::move(output)); GenerateNumbComponentsRestabFile::ComponentsRestab(std::move(output)); GenerateMeshRestabFile::MeshRestab(x0,Nx,xL,std::move(output)); for(unsigned int i=0; i < output.size(); i++){ cout<<"Iter n = "<<i<<" dt = "<<output[i]->getH()<<" Time = "<<output[i]->getTime()<<std::endl; } } } #endif /* TEST_ALLENCAHN_H_ */
[ "ludovica.delpopolo@mail.polimi.it" ]
ludovica.delpopolo@mail.polimi.it
01d7c7f46de5d3b5f444fa5eeda645e917858c42
a22d09b0c2b547984fd4d67f83fdcbed9087ed86
/小脑袋/394.cpp
a3148952f0bf8b01d2c35b4a05d6653cd96bf6b5
[]
no_license
hahlw/Datawhale_leetcode
c5b2be990c79407dfae4d817b3b4b63ea9f8bf1d
25049a7ed355744e0891abe29f5861c11fbde4b7
refs/heads/master
2020-06-12T18:23:41.736071
2020-02-01T07:04:38
2020-02-01T07:04:38
194,385,635
6
2
null
null
null
null
UTF-8
C++
false
false
940
cpp
//类似于括号匹配 class Solution { public: string decodeString(string s) { int nums = 0; stack<int> numsst; stack<string> strst; string cur = ""; string res = ""; for(int i = 0; i < s.size(); i++) { if(s[i] >= '0' && s[i] <= '9') nums = 10 * nums + s[i] - '0'; else if(s[i] == '[') { numsst.push(nums); strst.push(cur); cur.clear(); } else if(s[i] >= 'a' && s[i] <= 'z' || (s[i] >= 'A' && s[i] <= 'Z')) cur += s[i]; else if(s[i] == ']') { int tp = numsst.top(); numsst.pop(); for(int j = 0; j < tp; j++) strst.top() += cur; cur = strst.top(); strst.pop(); } res = res + cur; return res; } } };
[ "noreply@github.com" ]
noreply@github.com
383ad3042f63d3fd92c1307a1d3c2ab0d2bbe8c4
f3180a6ae683c41a986f2b0e4fb79b156d6537cd
/texture.cpp
72e53d314c6041b5cbdbd338f5f46c47ed873247
[]
no_license
tanomaru/HEW
b29355524736d4ec48aba4f0dfbc372d4cce89f5
ed25c5500681f87ef8d216d92aaa3ecf6a5cabde
refs/heads/master
2020-09-09T04:15:16.870428
2019-11-15T07:48:02
2019-11-15T07:48:02
221,345,900
0
0
null
2019-11-13T01:25:08
2019-11-13T01:25:07
null
SHIFT_JIS
C++
false
false
2,464
cpp
#include <d3dx9.h> //#include "debugPrintf.h" #include "mydirect3d.h" #include "texture.h" #define TEXTURE_FILENAME_MAX (64) typedef struct TextureFile_tag { char filename[TEXTURE_FILENAME_MAX]; int width; int height; } TextureFile; static const TextureFile g_TextureFiles[] = { { "asset/texture/yukidaruma.tga", 256, 256 }, { "asset/texture/runningman000.png", 256, 512 }, { "asset/asset/texture/bullet00.png", 32, 32 }, { "asset/asset/texture/bullet01.png", 32, 32 }, { "asset/asset/texture/exp.png", 128, 128 }, { "asset/asset/texture/number.tga", 320, 32 }, { "asset/asset/texture/start.png", 1024, 576 }, { "asset/asset/texture/start.png", 1024, 576 }, { "asset/asset/texture/start.png", 1024, 576 }, { "asset/asset/texture/end.png", 1024, 576 }, { "asset/asset/texture/start.png", 1024, 576 }, { "asset/asset/texture/end.png", 1024, 576 }, { "asset/asset/texture/end.png", 1024, 576 }, { "asset/asset/texture/kokosozai.png", 512, 512 }, }; static const int TEXTURE_FILE_COUNT = sizeof(g_TextureFiles) / sizeof(g_TextureFiles[0]); static_assert(TEXTURE_INDEX_MAX == TEXTURE_FILE_COUNT, "TEXTURE_INDEX_MAX != TEXTURE_FILE_COUNT"); static LPDIRECT3DTEXTURE9 g_pTextures[TEXTURE_FILE_COUNT] = {}; int Texture_Load(void) { LPDIRECT3DDEVICE9 pDevice = GetD3DDevice(); if( !pDevice ) { return TEXTURE_FILE_COUNT; } int failed_count = 0; for( int i = 0; i < TEXTURE_FILE_COUNT; i++ ) { if( FAILED(D3DXCreateTextureFromFile(pDevice, g_TextureFiles[i].filename, &g_pTextures[i])) ) { // DebugPrintf("テクスチャの読み込みに失敗 ... %s\n", g_TextureFiles[i].filename); failed_count++; } } return failed_count; } void Texture_Release(void) { for( int i = 0; i < TEXTURE_FILE_COUNT; i++ ) { if( g_pTextures[i] ) { g_pTextures[i]->Release(); g_pTextures[i] = NULL; } } } LPDIRECT3DTEXTURE9 Texture_GetTexture(TextureIndex index) { if( index < 0 || index >= TEXTURE_INDEX_MAX ) { return NULL; } return g_pTextures[index]; } int Texture_GetWidth(TextureIndex index) { if( index < 0 || index >= TEXTURE_INDEX_MAX ) { return NULL; } return g_TextureFiles[index].width; } int Texture_GetHeight(TextureIndex index) { if( index < 0 || index >= TEXTURE_INDEX_MAX ) { return NULL; } return g_TextureFiles[index].height; }
[ "noreply@github.com" ]
noreply@github.com
90f6da21659e468c7788fb993a09df064bb07cd1
59eddaa6940d4ca05966c1b187e472eafa3264dc
/arithmetic/Test9/stdafx.h
68461528215f95fc3ee95ec36f34141d9f98ad46
[]
no_license
1412qyj/algorithm
18cccfb43d77246509db134370fca082c676e016
c61ec57fc53a1c1b5156bc259e62657acef758ce
refs/heads/master
2023-02-05T04:41:16.977360
2020-11-25T00:58:24
2020-11-25T00:58:24
322,797,668
0
0
null
null
null
null
GB18030
C++
false
false
357
h
// stdafx.h : 标准系统包含文件的包含文件, // 或是经常使用但不常更改的 // 特定于项目的包含文件 // #pragma once #include "targetver.h" // 用于 CppUnitTest 的头文件 #include "CppUnitTest.h" // TODO: 在此处引用程序需要的其他头文件 #include <sstream> using namespace std; #define TEST_SIZE MAX_PATH
[ "qinyj1309163979@163.com" ]
qinyj1309163979@163.com
eb4ead8104571f47397f4f3d8cf2d52192c937bf
c3ea3e248c916007b31b9e9c4093f5bd517aabd7
/samplerTest/JitteredSampler.h
4c0b5b8c991ec9b594641771dd527673a626d64c
[]
no_license
rgabdullin/cudaRayTracer
f1b69b780fc3527371105a4bc876aace6ca37e09
ac450f70c0fbaf6aa671d1df757ea70e0dbe6d07
refs/heads/master
2020-06-20T10:20:27.196360
2016-11-28T01:00:40
2016-11-28T01:00:40
74,870,871
0
0
null
null
null
null
UTF-8
C++
false
false
272
h
#ifndef __JitteredSampler__ #define __JitteredSampler__ #include "Sampler.h" #include <cuda_runtime.h> #include "cuda_math.h" class JitteredSampler : public Sampler { public: __device__ virtual void GenerateSamples(int num_of_samples, int num_of_sets = 1); }; #endif
[ "ruslixag@KEKPUTER" ]
ruslixag@KEKPUTER
c577d06ed4410b290a270e80cad5d1aed195e344
7cc9690ed3a0ad9f10e28eda61f6accbb743c16d
/Week1-Vera-Molnar/Carres-en-2-positions/src/ofApp.cpp
44b2cd3822af7dcb5ee9feae7641d25789fca8d2
[]
no_license
DenizBicer/RTP
926b7ffe60158c95402ad06f37b8cb4c33c405ec
7e1419e92cdba377baf2b5ddb295dbd1645f7332
refs/heads/master
2022-11-08T05:32:45.909652
2020-07-02T21:45:10
2020-07-02T21:45:10
267,957,236
13
0
null
null
null
null
UTF-8
C++
false
false
1,013
cpp
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofBackground(251); ofSetColor(44); } //-------------------------------------------------------------- void ofApp::update(){ } //-------------------------------------------------------------- void ofApp::draw(){ float stepSize = 15; float margin = 20 + stepSize*0.5; float squareSize = ofMap(mouseX, 0, 400, 8, 16); // float squareSize = 15; ofSetRectMode(OF_RECTMODE_CENTER); for(int i=0; i< 24; ++i) { for(int j=0; j< 24; ++j) { ofPushMatrix(); float x = margin + i*stepSize; float y = margin + j*stepSize; ofTranslate(x, y); float n = ofNoise(x*0.05, y*0.05); if(n>ofMap(mouseY, 0, 400, 0, 1)) // if(n>0.4) ofRotateDeg(45); ofDrawRectangle(0, 0, squareSize, squareSize); ofPopMatrix(); } } }
[ "dnzbicer@gmail.com" ]
dnzbicer@gmail.com
49f7cfa995855ea4e5445fbfeee173da2d502f7f
18ea4c08159e74ef0e4b347e53ad7ad6f5a43086
/CPP-Design-Patterns/11_课件_builder构建器/代码/buider1.cpp
9a07d4a5bfbde11ac36089bd315903cc991c1109
[]
no_license
yangmiemie99/NoteBook
0055da39a5531f08f2888c07bea53c3aeac912b0
5280a667d738fe6b24b8cd7bdcaf669e11254228
refs/heads/master
2021-03-08T10:04:58.708715
2020-06-05T17:17:58
2020-06-05T17:17:58
246,339,279
0
1
null
null
null
null
UTF-8
C++
false
false
757
cpp
class House { public: //把这个在往外拆 void Init(){ this -> BuilderPart1(); for(int i = 0; i <4; i++){ this -> BuilderPart2(); } bool flag = this -> BuilderPart3(); if(flag){ this -> BuilderPart4(); } this -> BuilderPart5(); } virtual ~HouseBuilder(){} protected: virtual void BuildPart1()=0; virtual void BuildPart2()=0; virtual void BuildPart3()=0; virtual void BuildPart4()=0; virtual void BuildPart5()=0; } class StoneHouse:public House{ protected: virtual void BuildPart1(){ } virtual void BuildPart2(){ } virtual void BuildPart3(){ } virtual void BuildPart4(){ } virtual void BuildPart5(){ } } int main(){ House* pHouse = new StoneHouse(); pHouse -> Init(); }
[ "xinming_yang@126.com" ]
xinming_yang@126.com
935037aebd74bcb0d88f7d65ae853fcec0999130
5cee69b73fd6dcf63754c3c3ccb430d67f9b08ea
/TextRPG/Npc.cpp
cbd1929f5b68f0ec742d52858c54f870f846b468
[]
no_license
admkbc/TextRPG
7d7c10c66b633a9c04cb099ca2c23230b859b94e
22f6c5367d3f2871ff39348c43b824953cf3ced0
refs/heads/master
2021-01-22T17:29:42.538959
2016-06-21T21:57:45
2016-06-21T21:57:45
60,080,219
0
0
null
null
null
null
UTF-8
C++
false
false
5,670
cpp
#include "stdafx.h" #include "Npc.h" #include <Windows.h> #include <iostream> #include <fstream> #include <conio.h> #include <sstream> #include "GiveItemAction.h" #include "BattleAction.h" #include "SetReturnAction.h" #include "GiveHappinessAction.h" #include "SetQuestAction.h" #include "GivePrizeAction.h" using namespace std; void Npc::begin() { system("cls"); cout << " Rozmowca: " << Name << endl; for (int i = 0; i < 50; ++i) cout << static_cast<char>(205); cout << static_cast<char>(188) << endl; } void Npc::prints(string text) { gotoxy(10, 5); for (int i = 0; i < text.length(); ++i) { cout << text[i]; Sleep(60); } cout << endl; } void Npc::menu() { int pos = 0; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED); gotoxy(12, 7); cout << (*sentencesIt)->GetAnswer(0) << endl; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED); for (int i = 1; i < (*sentencesIt)->AnswersSize(); ++i) { gotoxy(12, 7+i); cout << (*sentencesIt)->GetAnswer(i); } char ch = '\0'; while ((ch = _getch()) != 13) { if (ch == -32 && _kbhit()) { char ch2 = _getch(); switch (ch2) { case 72: //up if (pos > 0) { gotoxy(12, pos + 7); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED); cout << (*sentencesIt)->GetAnswer(pos--); gotoxy(12, pos + 7); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED); cout << (*sentencesIt)->GetAnswer(pos); } break; case 80: //down if (pos < (*sentencesIt)->AnswersSize() - 1) { gotoxy(12, pos + 7); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED); cout << (*sentencesIt)->GetAnswer(pos++); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED); gotoxy(12, pos + 7); cout << (*sentencesIt)->GetAnswer(pos); } break; } } } position = (*sentencesIt)->GetQuestionId(pos); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED); } void Npc::AddAction(string &line, Sentence *s) { string command; int slash = line.find('/'); if (slash >= 0) { command = line.substr(slash + 1, line.length()); line.erase(line.begin() + slash, line.end()); istringstream iss(command); string actionName; iss >> actionName; if (actionName == "giveitem") { string arg1String, arg2String, arg3String; int arg1, arg2, arg3; iss >> arg1String; iss >> arg2String; iss >> arg3String; arg1 = atoi(arg1String.c_str()); arg2 = atoi(arg2String.c_str()); arg3 = atoi(arg3String.c_str()); GiveItemAction *action = new GiveItemAction(arg1, arg2, arg3); s->SetAction(action); } else if (actionName == "battle") { BattleAction *action = new BattleAction(this); s->SetAction(action); } else if (actionName == "setreturn") { string arg1String; int arg1; iss >> arg1String; arg1 = atoi(arg1String.c_str()); SetReturnAction *action = new SetReturnAction(arg1); s->SetAction(action); } else if (actionName == "givehappiness") { string arg1String, arg2String; int arg1, arg2; iss >> arg1String; iss >> arg2String; arg1 = atoi(arg1String.c_str()); arg2 = atoi(arg2String.c_str()); GiveHappinessAction *action = new GiveHappinessAction(arg1, arg2); s->SetAction(action); } else if (actionName == "setquest") { string arg1String, arg2String; int arg1, arg2; iss >> arg1String; iss >> arg2String; arg1 = atoi(arg1String.c_str()); arg2 = atoi(arg2String.c_str()); SetQuestAction *action = new SetQuestAction(arg1, arg2); s->SetAction(action); } else if (actionName == "giveprize") { string arg1String; int arg1; iss >> arg1String; arg1 = atoi(arg1String.c_str()); GivePrizeAction *action = new GivePrizeAction(arg1); s->SetAction(action); } } else { s->SetAction(NULL); } } void Npc::AddQuestion(string &line, Sentence *s) { int dot = line.find('.'); line.erase(line.begin(), line.begin() + dot + 1); s->SetQuestion(line); } void Npc::AddAnswer(string &line, Sentence *s) { line.erase(0, 1); int colon = line.find(':'); s->AddNextQuestionId(atoi(line.substr(colon + 1, line.length()).c_str())); line.erase(line.begin() + colon, line.end()); s->AddAnswer(line); } Npc::Npc(string name, int hp, int atack, int defense, string npcfile) : Enemy(name, hp, atack, defense), position(0) { ifstream f; string path = "npc/" + npcfile + ".npc"; f.open(path); string line; int pos; while(getline(f, line)) { Sentence *s = new Sentence; AddAction(line, s); AddQuestion(line, s); while (std::getline(f, line)) { if (line[0] == '-') { AddAnswer(line, s); pos = f.tellg(); } else { f.seekg(pos, ios_base::beg); break; } } sentences.push_back(s); } f.close(); } Npc::~Npc() { for (int i = 0; i < sentences.size(); ++i) delete sentences[i]; } int Npc::Talk(Player *p) { position = 0; bool end = false; int value = 0; int ret = 0; begin(); while(!end) { sentencesIt = sentences.begin() + position; gotoxy(10, 5); for (int i = 0; i < 12 * 80; ++i) cout << " "; prints((*sentencesIt)->GetQuestion()); value = (*sentencesIt)->DoAction(p); if (value != 0) ret = value; menu(); if (position < 0) end = true; } return ret; } std::string Npc::GetName() { return Name; }
[ "adamkubica@outlook.com" ]
adamkubica@outlook.com
cba1f85953963705560d1eb7a77ab63bb3183911
d1482867696cd332b427ca32208fadbae7a1a561
/tests/fake_gps.cpp
df9d95ae16a64027c548399a04ae81a8119fee57
[ "MIT" ]
permissive
leewoody/nmea-rmc-parser
fc8c924a270e2ccf2adc03b3f4bd2689da0bb27b
9a38fe53619f985ee136de17d9470f81cea5480d
refs/heads/master
2020-05-17T23:11:41.620882
2018-04-26T10:47:35
2018-04-26T10:47:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
936
cpp
#include "mbed.h" /* To run this test, two microcontrollers are required: - one is for running the main.cpp from the 'src' folder - the other one is for running this "fake gps" data */ DigitalOut led(LED1); Serial sender(PA_9, PA_10); int main(void) { led = 0; sender.baud(9600); while(1) { led = !led; // sender.printf("$GPRMB,A,4.08,L,EGLL,EGLM,5130.02,N,00046.34,W,004.6,213.9,122.9,A*3D\r\n"); // sender.printf("$GPRMC,225446,A,4916.45,N,12311.12,W,000.5,054.7,191194,020.3,E*68\r\n"); // sender.printf("$GPRMC,081836,A,3751.65,S,14507.36,E,000.0,360.0,130998,011.3,E*62\r\n"); sender.printf("$GPRMC,220516,A,5133.82,N,00042.24,W,173.8,231.8,130694,004.2,W*70\r\n"); // sender.printf("$GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A\r\n"); // sender.printf("$GPRMC,083559.00,A,4717.11437,N,00833.91522,E,0.004,77.52,091202,,,A,V*57\r\n"); wait(1); } return 0; }
[ "domantas@nectarsun.com" ]
domantas@nectarsun.com
4ee08500f976888dd89a0c19b019f8e8f6988f97
04df62dbe7c5d2c3ee62a55c640ddc41b60e5898
/sort/xuanze.cpp
578fd3058ad4a07cf9ae295c3e0aa8f9bd2c828e
[]
no_license
renhui19931001/algorithm
06448754e8eb360eefbe23a774c257330170e7b1
afbd4f4a623a6950f2e57371024c99201ec8e0c7
refs/heads/master
2021-01-23T06:39:26.281149
2017-07-20T08:44:49
2017-07-20T08:44:49
93,034,188
0
0
null
null
null
null
UTF-8
C++
false
false
415
cpp
#include <iostream> #include <vector> using namespace std; void xuanze(int*,int); int main(){ int a[] = {5,6,7,1,23,5,9,4}; int length = sizeof(a)/sizeof(int); xuanze(a,length); for(int i =0;i<length;i++) cout << a[i] << endl; return 0; } void xuanze(int a[],int n){ for(int i =0;i<n;i++){ int minNum = i; for(int j = i+1;j<n;j++){ if(a[j]<a[minNum]) minNum = j; } swap(a[i],a[minNum]); } }
[ "noreply@github.com" ]
noreply@github.com
2f660024099a0d1dced30da68fe87828c5da209a
5a53ff0b000ab2c9838b5348fc98e8acd2ff8b2a
/src/Bot-OPOS6UL/O_State_Init.hpp
f02c9eadf150d6e3c4780d6381f40d7061be435b
[]
no_license
pmrobotix/PMX
809a89cd5f0ff9d670ea18256d225adf15f011a5
adb2315446358df1f39ca406d0d1d9ba44d07b4d
refs/heads/master
2023-07-05T16:26:04.470256
2022-12-18T21:52:38
2022-12-18T21:52:38
39,129,652
4
2
null
2016-10-13T21:09:43
2015-07-15T10:00:38
C++
UTF-8
C++
false
false
600
hpp
#ifndef O_STATE_INIT_HPP #define O_STATE_INIT_HPP #include <string> #include "../Common/State/AAutomateState.hpp" #include "../Log/LoggerFactory.hpp" class O_State_Init: public AAutomateState { private: static inline const logs::Logger & logger() { static const logs::Logger & instance = logs::LoggerFactory::logger("O_State_Init"); return instance; } void setPos(); public: O_State_Init() { } ~O_State_Init() { } IAutomateState* execute(Robot& robot); std::string name() { return "O_State_Init"; } }; #endif
[ "christophe.chaudelet@gmail.com" ]
christophe.chaudelet@gmail.com
c207c179a559fd8c1f9334bf4d99e0e75122a171
d09945668f19bb4bc17087c0cb8ccbab2b2dd688
/atcoder/agc001-040/agc014/a.cpp
f3112a284e519db5cddd0951822ecf4191e3cda4
[]
no_license
kmjp/procon
27270f605f3ae5d80fbdb28708318a6557273a57
8083028ece4be1460150aa3f0e69bdb57e510b53
refs/heads/master
2023-09-04T11:01:09.452170
2023-09-03T15:25:21
2023-09-03T15:25:21
30,825,508
23
2
null
2023-08-18T14:02:07
2015-02-15T11:25:23
C++
UTF-8
C++
false
false
1,041
cpp
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x<(to);x++) #define FORR(x,arr) for(auto& x:arr) #define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define ALL(a) (a.begin()),(a.end()) #define ZERO(a) memset(a,0,sizeof(a)) #define MINUS(a) memset(a,0xff,sizeof(a)) //------------------------------------------------------- ll A[3]; void solve() { int i,j,k,l,r,x,y; string s; cin>>A[0]>>A[1]>>A[2]; int ret=0; while(1) { if(A[0]%2) break; if(A[1]%2) break; if(A[2]%2) break; if(ret>100) { ret=-1; break; } ll B[3]={(A[1]+A[2])/2,(A[0]+A[2])/2,(A[0]+A[1])/2}; A[0]=B[0]; A[1]=B[1]; A[2]=B[2]; ret++; } cout<<ret<<endl; } int main(int argc,char** argv){ string s;int i; if(argc==1) ios::sync_with_stdio(false), cin.tie(0); FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin); solve(); return 0; }
[ "kmjp@users.noreply.github.com" ]
kmjp@users.noreply.github.com
e7d6c23b7b02cc65be105ef41be444b2ba7e5f3e
2e6396c8f0ea284429792bf00c199e1645566764
/シューティング学習/list/weapon/ショット.cpp
b0565a8ec3aba81ba92aab5a86788a5849ba5534
[ "MIT" ]
permissive
fightTTT/myproject
54dee2182b1fe37c62f93fbf1e36408c54be15b7
ed481488c1e6c52912a00aedc4ab183da79d4e67
refs/heads/master
2020-06-09T14:09:36.781150
2019-09-26T09:35:52
2019-09-26T09:35:52
193,449,455
1
0
null
null
null
null
SHIFT_JIS
C++
false
false
530
cpp
void Shot(); void BasicShot( bool button // 今回のボタンの状態(押されたときtrue) ) { // 前回のボタンの状態(押されたときtrue) static bool prev_button=false; // ショットの発射: // 前回ボタンが押されておらず,今回押されているときだけ, // ショットを発射する。 // 発射の詳細な処理はShot関数で行うものとする。 if (!prev_button && button) Shot(); // 今回のボタンの状態を保存する prev_button=button; }
[ "sakumeikou@icloud.com" ]
sakumeikou@icloud.com
31d87912dadcff2e0d94ad141f588975d3a8ec6b
6bc03ba72aa26b99ce7a8063452a35f4dad8ad3a
/ulx3s_projects/14_uart_vdf_repeat/spinalHDL/simWorkspace/UartVdf/verilator/VUartVdf__1__Slow.cpp
d5948271238c1009b17149bbc17f8eda43f64a29
[]
no_license
dreamflyings/SpinalHDL-Projects
c4e25fb52ea143eac4f225da25056a2f1c6864d4
1f3b427c1e8fa2328e1011ed9f2df8dfbe828c82
refs/heads/master
2022-07-31T05:26:51.285998
2020-05-25T13:31:27
2020-05-25T13:31:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
143,762
cpp
// Verilated -*- C++ -*- // DESCRIPTION: Verilator output: Design implementation internals // See VUartVdf.h for the primary calling header #include "VUartVdf.h" // For This #include "VUartVdf__Syms.h" //-------------------- // Internal Methods void VUartVdf::_eval_initial(VUartVdf__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VUartVdf::_eval_initial\n"); ); VUartVdf* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; } void VUartVdf::final() { VL_DEBUG_IF(VL_DBG_MSGF("+ VUartVdf::final\n"); ); // Variables VUartVdf__Syms* __restrict vlSymsp = this->__VlSymsp; VUartVdf* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; } void VUartVdf::_eval_settle(VUartVdf__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VUartVdf::_eval_settle\n"); ); VUartVdf* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->_settle__TOP__3(vlSymsp); vlTOPp->__Vm_traceActivity = (1U | vlTOPp->__Vm_traceActivity); } void VUartVdf::_ctor_var_reset() { VL_DEBUG_IF(VL_DBG_MSGF("+ VUartVdf::_ctor_var_reset\n"); ); // Body io_uart_txd = VL_RAND_RESET_I(1); io_uart_rxd = VL_RAND_RESET_I(1); clkIsLocked = VL_RAND_RESET_I(1); clk = VL_RAND_RESET_I(1); reset = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm_io_toFnct_valid = VL_RAND_RESET_I(1); VL_RAND_RESET_W(240,UartVdf__DOT__uartfsm_io_toFnct_payload); UartVdf__DOT__multmod_1___05Fio_toUart_valid = VL_RAND_RESET_I(1); UartVdf__DOT__multmod_1___05Fio_toUart_payload = VL_RAND_RESET_Q(64); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___05Fio_temp_1_out); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___05Fio_temp_2_out); UartVdf__DOT__multmod_1___05Fio_temp_2a_out = VL_RAND_RESET_Q(64); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___05Fio_temp_2b_out); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___05Fio_temp_2c_out); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___05Fio_temp_3_out); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___05Fio_temp_4_out); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___05Fio_temp_5_out); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___05Fio_temp_6_out); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___05Fio_temp_7_out); UartVdf__DOT__multmod_1___05Fio_temp_corr_flag = VL_RAND_RESET_I(3); UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2 = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT___zz_5_ = VL_RAND_RESET_I(9); UartVdf__DOT__uartfsm__DOT__write_valid = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__write_ready = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__write_payload = VL_RAND_RESET_I(8); UartVdf__DOT__uartfsm__DOT__write_m2sPipe_rValid = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__write_m2sPipe_rData = VL_RAND_RESET_I(8); UartVdf__DOT__uartfsm__DOT__fsmIn_inCounter = VL_RAND_RESET_I(5); VL_RAND_RESET_W(240,UartVdf__DOT__uartfsm__DOT__fsmIn_buffer); UartVdf__DOT__uartfsm__DOT__fsmOut_outCounter = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT__fsmOut_outBuffer = VL_RAND_RESET_Q(64); UartVdf__DOT__uartfsm__DOT__fsmIn_stateReg = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT__fsmIn_stateNext = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT__fsmOut_stateReg = VL_RAND_RESET_I(2); UartVdf__DOT__uartfsm__DOT__fsmOut_stateNext = VL_RAND_RESET_I(2); VL_RAND_RESET_W(160,UartVdf__DOT__uartfsm__DOT__fsmIn_stateReg_string); VL_RAND_RESET_W(160,UartVdf__DOT__uartfsm__DOT__fsmIn_stateNext_string); VL_RAND_RESET_W(160,UartVdf__DOT__uartfsm__DOT__fsmOut_stateReg_string); VL_RAND_RESET_W(160,UartVdf__DOT__uartfsm__DOT__fsmOut_stateNext_string); UartVdf__DOT__uartfsm__DOT____Vlvbound1 = VL_RAND_RESET_I(8); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter = VL_RAND_RESET_I(20); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_tick = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT___zz_1_ = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_counter_willIncrement = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_counter_valueNext = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_counter_value = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_tick = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_parity = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_txd = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_txd_regNext = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string = VL_RAND_RESET_Q(48); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_2_ = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_3_ = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_6_ = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_7_ = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_8_ = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_9_ = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1 = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2 = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3 = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4 = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_tick = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_counter = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = VL_RAND_RESET_I(3); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_parity = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_shifter = VL_RAND_RESET_I(8); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_validReg = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string = VL_RAND_RESET_Q(48); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_0 = VL_RAND_RESET_I(1); UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_1 = VL_RAND_RESET_I(1); UartVdf__DOT__multmod_1___DOT___zz_8_ = VL_RAND_RESET_Q(64); UartVdf__DOT__multmod_1___DOT___zz_9_ = VL_RAND_RESET_Q(64); UartVdf__DOT__multmod_1___DOT___zz_10_ = VL_RAND_RESET_I(1); UartVdf__DOT__multmod_1___DOT___zz_11_ = VL_RAND_RESET_I(1); UartVdf__DOT__multmod_1___DOT___zz_12_ = VL_RAND_RESET_I(1); UartVdf__DOT__multmod_1___DOT___zz_13_ = VL_RAND_RESET_I(1); UartVdf__DOT__multmod_1___DOT___zz_14_ = VL_RAND_RESET_I(1); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT___zz_17_); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT___zz_21_); UartVdf__DOT__multmod_1___DOT___zz_22_ = VL_RAND_RESET_I(13); UartVdf__DOT__multmod_1___DOT___zz_26_ = VL_RAND_RESET_I(8); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT___zz_29_); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT___zz_34_); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT___zz_39_); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT___zz_44_); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT___zz_49_); UartVdf__DOT__multmod_1___DOT__fsm_a = VL_RAND_RESET_Q(64); UartVdf__DOT__multmod_1___DOT__fsm_mod_n = VL_RAND_RESET_Q(64); VL_RAND_RESET_W(72,UartVdf__DOT__multmod_1___DOT__fsm_mue); UartVdf__DOT__multmod_1___DOT__fsm_k = VL_RAND_RESET_I(8); UartVdf__DOT__multmod_1___DOT__fsm_t = VL_RAND_RESET_I(32); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT__fsm_result_mult); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT__fsm_result_barret); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT__fsm_temp_2); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT__fsm_temp_3); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT__fsm_temp_7); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT__fsm_temp_8); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT__fsm_mask); UartVdf__DOT__multmod_1___DOT__fsm_repeatCounter = VL_RAND_RESET_I(32); UartVdf__DOT__multmod_1___DOT___zz_1_ = VL_RAND_RESET_I(2); UartVdf__DOT__multmod_1___DOT__fsm_stateReg = VL_RAND_RESET_I(4); UartVdf__DOT__multmod_1___DOT__fsm_stateNext = VL_RAND_RESET_I(4); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT___zz_2_); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT___zz_6_); VL_RAND_RESET_W(128,UartVdf__DOT__multmod_1___DOT___zz_7_); VL_RAND_RESET_W(80,UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string); VL_RAND_RESET_W(80,UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT___zz_19_ = VL_RAND_RESET_Q(33); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT___zz_25_ = VL_RAND_RESET_Q(33); VL_RAND_RESET_W(130,UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT___zz_42_); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT___zz_5_ = VL_RAND_RESET_Q(33); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT___zz_6_ = VL_RAND_RESET_Q(33); VL_RAND_RESET_W(66,UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_13___DOT___zz_42_); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_13___DOT___zz_5_ = VL_RAND_RESET_I(17); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_13___DOT___zz_6_ = VL_RAND_RESET_I(17); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_13___DOT__karaMult_13___DOT___zz_2_ = VL_RAND_RESET_I(32); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_13___DOT__karaMult_14___DOT___zz_2_ = VL_RAND_RESET_I(32); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_13___DOT__karaMult_15___DOT___zz_2_ = VL_RAND_RESET_I(32); VL_RAND_RESET_W(66,UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_14___DOT___zz_42_); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_14___DOT___zz_5_ = VL_RAND_RESET_I(17); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_14___DOT___zz_6_ = VL_RAND_RESET_I(17); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_14___DOT__karaMult_13___DOT___zz_2_ = VL_RAND_RESET_I(32); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_14___DOT__karaMult_14___DOT___zz_2_ = VL_RAND_RESET_I(32); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_14___DOT__karaMult_15___DOT___zz_2_ = VL_RAND_RESET_I(32); VL_RAND_RESET_W(66,UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_15___DOT___zz_42_); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_15___DOT___zz_5_ = VL_RAND_RESET_I(17); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_15___DOT___zz_6_ = VL_RAND_RESET_I(17); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_15___DOT__karaMult_13___DOT___zz_2_ = VL_RAND_RESET_I(32); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_15___DOT__karaMult_14___DOT___zz_2_ = VL_RAND_RESET_I(32); UartVdf__DOT__multmod_1___DOT__fsm_mult__DOT__karaMult_15___DOT__karaMult_15___DOT___zz_2_ = VL_RAND_RESET_I(32); __Vtableidx1 = VL_RAND_RESET_I(3); VL_CONST_W_5X(160,__Vtable1_UartVdf__DOT__uartfsm__DOT__fsmIn_stateReg_string[0],0x626f6f74,0x20202020,0x20202020,0x20202020,0x20202020); VL_CONST_W_5X(160,__Vtable1_UartVdf__DOT__uartfsm__DOT__fsmIn_stateReg_string[1],0x66736d49,0x6e5f696e,0x456e7472,0x79202020,0x20202020); VL_CONST_W_5X(160,__Vtable1_UartVdf__DOT__uartfsm__DOT__fsmIn_stateReg_string[2],0x66736d49,0x6e5f696e,0x52656164,0x42797465,0x20202020); VL_CONST_W_5X(160,__Vtable1_UartVdf__DOT__uartfsm__DOT__fsmIn_stateReg_string[3],0x66736d49,0x6e5f696e,0x496e6343,0x6f756e74,0x65722020); VL_CONST_W_5X(160,__Vtable1_UartVdf__DOT__uartfsm__DOT__fsmIn_stateReg_string[4],0x66736d49,0x6e5f696e,0x42756654,0x6f506179,0x6c6f6164); VL_CONST_W_5X(160,__Vtable1_UartVdf__DOT__uartfsm__DOT__fsmIn_stateReg_string[5],0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_5X(160,__Vtable1_UartVdf__DOT__uartfsm__DOT__fsmIn_stateReg_string[6],0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_5X(160,__Vtable1_UartVdf__DOT__uartfsm__DOT__fsmIn_stateReg_string[7],0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f); __Vtableidx2 = VL_RAND_RESET_I(3); VL_CONST_W_5X(160,__Vtable2_UartVdf__DOT__uartfsm__DOT__fsmIn_stateNext_string[0],0x626f6f74,0x20202020,0x20202020,0x20202020,0x20202020); VL_CONST_W_5X(160,__Vtable2_UartVdf__DOT__uartfsm__DOT__fsmIn_stateNext_string[1],0x66736d49,0x6e5f696e,0x456e7472,0x79202020,0x20202020); VL_CONST_W_5X(160,__Vtable2_UartVdf__DOT__uartfsm__DOT__fsmIn_stateNext_string[2],0x66736d49,0x6e5f696e,0x52656164,0x42797465,0x20202020); VL_CONST_W_5X(160,__Vtable2_UartVdf__DOT__uartfsm__DOT__fsmIn_stateNext_string[3],0x66736d49,0x6e5f696e,0x496e6343,0x6f756e74,0x65722020); VL_CONST_W_5X(160,__Vtable2_UartVdf__DOT__uartfsm__DOT__fsmIn_stateNext_string[4],0x66736d49,0x6e5f696e,0x42756654,0x6f506179,0x6c6f6164); VL_CONST_W_5X(160,__Vtable2_UartVdf__DOT__uartfsm__DOT__fsmIn_stateNext_string[5],0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_5X(160,__Vtable2_UartVdf__DOT__uartfsm__DOT__fsmIn_stateNext_string[6],0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_5X(160,__Vtable2_UartVdf__DOT__uartfsm__DOT__fsmIn_stateNext_string[7],0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f,0x3f3f3f3f); __Vtableidx3 = VL_RAND_RESET_I(2); VL_CONST_W_5X(160,__Vtable3_UartVdf__DOT__uartfsm__DOT__fsmOut_stateReg_string[0],0x626f6f74,0x20202020,0x20202020,0x20202020,0x20202020); VL_CONST_W_5X(160,__Vtable3_UartVdf__DOT__uartfsm__DOT__fsmOut_stateReg_string[1],0x66736d4f,0x75745f6f,0x7574456e,0x74727920,0x20202020); VL_CONST_W_5X(160,__Vtable3_UartVdf__DOT__uartfsm__DOT__fsmOut_stateReg_string[2],0x66736d4f,0x75745f6f,0x75745772,0x69746542,0x79746520); VL_CONST_W_5X(160,__Vtable3_UartVdf__DOT__uartfsm__DOT__fsmOut_stateReg_string[3],0x66736d4f,0x75745f6f,0x7574496e,0x63436f75,0x6e746572); __Vtableidx4 = VL_RAND_RESET_I(2); VL_CONST_W_5X(160,__Vtable4_UartVdf__DOT__uartfsm__DOT__fsmOut_stateNext_string[0],0x626f6f74,0x20202020,0x20202020,0x20202020,0x20202020); VL_CONST_W_5X(160,__Vtable4_UartVdf__DOT__uartfsm__DOT__fsmOut_stateNext_string[1],0x66736d4f,0x75745f6f,0x7574456e,0x74727920,0x20202020); VL_CONST_W_5X(160,__Vtable4_UartVdf__DOT__uartfsm__DOT__fsmOut_stateNext_string[2],0x66736d4f,0x75745f6f,0x75745772,0x69746542,0x79746520); VL_CONST_W_5X(160,__Vtable4_UartVdf__DOT__uartfsm__DOT__fsmOut_stateNext_string[3],0x66736d4f,0x75745f6f,0x7574496e,0x63436f75,0x6e746572); __Vtableidx5 = VL_RAND_RESET_I(3); __Vtable5_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string[0] = VL_ULL(0x49444c452020); __Vtable5_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string[1] = VL_ULL(0x535441525420); __Vtable5_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string[2] = VL_ULL(0x444154412020); __Vtable5_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string[3] = VL_ULL(0x504152495459); __Vtable5_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string[4] = VL_ULL(0x53544f502020); __Vtable5_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string[5] = VL_ULL(0x3f3f3f3f3f3f); __Vtable5_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string[6] = VL_ULL(0x3f3f3f3f3f3f); __Vtable5_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string[7] = VL_ULL(0x3f3f3f3f3f3f); __Vtableidx6 = VL_RAND_RESET_I(5); __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[0] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[1] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[2] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[3] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[4] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[5] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[6] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[7] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[8] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[9] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[10] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[11] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[12] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[13] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[14] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[15] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[16] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[17] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[18] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[19] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[20] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[21] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[22] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[23] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[24] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[25] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[26] = 1U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[27] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[28] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[29] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[30] = 0U; __Vtable6_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready[31] = 0U; __Vtableidx7 = VL_RAND_RESET_I(3); __Vtable7_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string[0] = VL_ULL(0x49444c452020); __Vtable7_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string[1] = VL_ULL(0x535441525420); __Vtable7_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string[2] = VL_ULL(0x444154412020); __Vtable7_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string[3] = VL_ULL(0x504152495459); __Vtable7_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string[4] = VL_ULL(0x53544f502020); __Vtable7_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string[5] = VL_ULL(0x3f3f3f3f3f3f); __Vtable7_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string[6] = VL_ULL(0x3f3f3f3f3f3f); __Vtable7_UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string[7] = VL_ULL(0x3f3f3f3f3f3f); __Vtableidx8 = VL_RAND_RESET_I(4); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[0],0x0000626f,0x6f742020,0x20202020); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[1],0x00006673,0x6d5f7374,0x61746541); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[2],0x00006673,0x6d5f7374,0x61746542); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[3],0x00006673,0x6d5f7374,0x61746543); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[4],0x00006673,0x6d5f7374,0x61746544); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[5],0x00006673,0x6d5f7374,0x61746545); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[6],0x00006673,0x6d5f7374,0x61746546); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[7],0x00006673,0x6d5f7374,0x61746547); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[8],0x00006673,0x6d5f7374,0x61746548); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[9],0x00006673,0x6d5f7374,0x61746549); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[10],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[11],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[12],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[13],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[14],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_3X(80,__Vtable8_UartVdf__DOT__multmod_1___DOT__fsm_stateReg_string[15],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); __Vtableidx9 = VL_RAND_RESET_I(4); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[0],0x0000626f,0x6f742020,0x20202020); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[1],0x00006673,0x6d5f7374,0x61746541); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[2],0x00006673,0x6d5f7374,0x61746542); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[3],0x00006673,0x6d5f7374,0x61746543); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[4],0x00006673,0x6d5f7374,0x61746544); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[5],0x00006673,0x6d5f7374,0x61746545); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[6],0x00006673,0x6d5f7374,0x61746546); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[7],0x00006673,0x6d5f7374,0x61746547); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[8],0x00006673,0x6d5f7374,0x61746548); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[9],0x00006673,0x6d5f7374,0x61746549); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[10],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[11],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[12],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[13],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[14],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); VL_CONST_W_3X(80,__Vtable9_UartVdf__DOT__multmod_1___DOT__fsm_stateNext_string[15],0x00003f3f,0x3f3f3f3f,0x3f3f3f3f); __Vtableidx10 = VL_RAND_RESET_I(4); __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[0] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[1] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[2] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[3] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[4] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[5] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[6] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[7] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[8] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[9] = 1U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[10] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[11] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[12] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[13] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[14] = 0U; __Vtable10_UartVdf__DOT__multmod_1___05Fio_toUart_valid[15] = 0U; __Vtableidx11 = VL_RAND_RESET_I(5); __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[0] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[1] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[2] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[3] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[4] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[5] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[6] = 2U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[7] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[8] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[9] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[10] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[11] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[12] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[13] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[14] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[15] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[16] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[17] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[18] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[19] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[20] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[21] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[22] = 1U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[23] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[24] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[25] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[26] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[27] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[28] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[29] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[30] = 0U; __Vtable11_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag[31] = 0U; __Vtableidx12 = VL_RAND_RESET_I(8); __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[0] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[1] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[2] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[3] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[4] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[5] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[6] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[7] = 5U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[8] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[9] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[10] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[11] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[12] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[13] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[14] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[15] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[16] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[17] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[18] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[19] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[20] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[21] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[22] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[23] = 1U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[24] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[25] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[26] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[27] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[28] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[29] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[30] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[31] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[32] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[33] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[34] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[35] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[36] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[37] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[38] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[39] = 2U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[40] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[41] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[42] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[43] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[44] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[45] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[46] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[47] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[48] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[49] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[50] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[51] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[52] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[53] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[54] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[55] = 1U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[56] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[57] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[58] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[59] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[60] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[61] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[62] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[63] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[64] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[65] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[66] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[67] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[68] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[69] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[70] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[71] = 3U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[72] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[73] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[74] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[75] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[76] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[77] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[78] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[79] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[80] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[81] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[82] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[83] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[84] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[85] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[86] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[87] = 1U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[88] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[89] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[90] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[91] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[92] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[93] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[94] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[95] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[96] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[97] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[98] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[99] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[100] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[101] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[102] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[103] = 2U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[104] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[105] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[106] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[107] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[108] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[109] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[110] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[111] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[112] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[113] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[114] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[115] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[116] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[117] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[118] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[119] = 1U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[120] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[121] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[122] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[123] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[124] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[125] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[126] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[127] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[128] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[129] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[130] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[131] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[132] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[133] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[134] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[135] = 4U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[136] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[137] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[138] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[139] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[140] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[141] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[142] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[143] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[144] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[145] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[146] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[147] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[148] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[149] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[150] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[151] = 1U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[152] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[153] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[154] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[155] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[156] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[157] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[158] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[159] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[160] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[161] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[162] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[163] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[164] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[165] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[166] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[167] = 2U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[168] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[169] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[170] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[171] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[172] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[173] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[174] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[175] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[176] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[177] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[178] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[179] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[180] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[181] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[182] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[183] = 1U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[184] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[185] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[186] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[187] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[188] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[189] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[190] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[191] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[192] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[193] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[194] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[195] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[196] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[197] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[198] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[199] = 3U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[200] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[201] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[202] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[203] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[204] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[205] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[206] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[207] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[208] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[209] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[210] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[211] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[212] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[213] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[214] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[215] = 1U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[216] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[217] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[218] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[219] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[220] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[221] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[222] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[223] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[224] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[225] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[226] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[227] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[228] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[229] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[230] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[231] = 2U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[232] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[233] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[234] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[235] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[236] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[237] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[238] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[239] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[240] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[241] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[242] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[243] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[244] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[245] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[246] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[247] = 1U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[248] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[249] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[250] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[251] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[252] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[253] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[254] = 0U; __Vtable12_UartVdf__DOT__multmod_1___05Fio_temp_corr_flag_2[255] = 0U; __Vtablechg13[0] = 0U; __Vtablechg13[1] = 0U; __Vtablechg13[2] = 1U; __Vtablechg13[3] = 1U; __Vtablechg13[4] = 0U; __Vtablechg13[5] = 1U; __Vtablechg13[6] = 0U; __Vtablechg13[7] = 0U; __Vtablechg13[8] = 1U; __Vtablechg13[9] = 1U; __Vtablechg13[10] = 0U; __Vtablechg13[11] = 0U; __Vtablechg13[12] = 0U; __Vtablechg13[13] = 0U; __Vtablechg13[14] = 0U; __Vtablechg13[15] = 0U; __Vtablechg13[16] = 0U; __Vtablechg13[17] = 0U; __Vtablechg13[18] = 1U; __Vtablechg13[19] = 1U; __Vtablechg13[20] = 0U; __Vtablechg13[21] = 1U; __Vtablechg13[22] = 0U; __Vtablechg13[23] = 0U; __Vtablechg13[24] = 1U; __Vtablechg13[25] = 1U; __Vtablechg13[26] = 0U; __Vtablechg13[27] = 0U; __Vtablechg13[28] = 0U; __Vtablechg13[29] = 0U; __Vtablechg13[30] = 0U; __Vtablechg13[31] = 0U; __Vtablechg13[32] = 0U; __Vtablechg13[33] = 0U; __Vtablechg13[34] = 1U; __Vtablechg13[35] = 1U; __Vtablechg13[36] = 0U; __Vtablechg13[37] = 1U; __Vtablechg13[38] = 0U; __Vtablechg13[39] = 0U; __Vtablechg13[40] = 1U; __Vtablechg13[41] = 1U; __Vtablechg13[42] = 0U; __Vtablechg13[43] = 0U; __Vtablechg13[44] = 0U; __Vtablechg13[45] = 0U; __Vtablechg13[46] = 0U; __Vtablechg13[47] = 0U; __Vtablechg13[48] = 0U; __Vtablechg13[49] = 0U; __Vtablechg13[50] = 1U; __Vtablechg13[51] = 1U; __Vtablechg13[52] = 0U; __Vtablechg13[53] = 1U; __Vtablechg13[54] = 0U; __Vtablechg13[55] = 0U; __Vtablechg13[56] = 1U; __Vtablechg13[57] = 1U; __Vtablechg13[58] = 0U; __Vtablechg13[59] = 0U; __Vtablechg13[60] = 0U; __Vtablechg13[61] = 0U; __Vtablechg13[62] = 0U; __Vtablechg13[63] = 0U; __Vtablechg13[64] = 0U; __Vtablechg13[65] = 0U; __Vtablechg13[66] = 1U; __Vtablechg13[67] = 1U; __Vtablechg13[68] = 0U; __Vtablechg13[69] = 1U; __Vtablechg13[70] = 0U; __Vtablechg13[71] = 0U; __Vtablechg13[72] = 1U; __Vtablechg13[73] = 1U; __Vtablechg13[74] = 0U; __Vtablechg13[75] = 0U; __Vtablechg13[76] = 0U; __Vtablechg13[77] = 0U; __Vtablechg13[78] = 0U; __Vtablechg13[79] = 0U; __Vtablechg13[80] = 0U; __Vtablechg13[81] = 0U; __Vtablechg13[82] = 1U; __Vtablechg13[83] = 1U; __Vtablechg13[84] = 0U; __Vtablechg13[85] = 1U; __Vtablechg13[86] = 0U; __Vtablechg13[87] = 0U; __Vtablechg13[88] = 1U; __Vtablechg13[89] = 1U; __Vtablechg13[90] = 0U; __Vtablechg13[91] = 0U; __Vtablechg13[92] = 0U; __Vtablechg13[93] = 0U; __Vtablechg13[94] = 0U; __Vtablechg13[95] = 0U; __Vtablechg13[96] = 0U; __Vtablechg13[97] = 0U; __Vtablechg13[98] = 1U; __Vtablechg13[99] = 1U; __Vtablechg13[100] = 0U; __Vtablechg13[101] = 1U; __Vtablechg13[102] = 0U; __Vtablechg13[103] = 0U; __Vtablechg13[104] = 1U; __Vtablechg13[105] = 1U; __Vtablechg13[106] = 0U; __Vtablechg13[107] = 0U; __Vtablechg13[108] = 0U; __Vtablechg13[109] = 0U; __Vtablechg13[110] = 0U; __Vtablechg13[111] = 0U; __Vtablechg13[112] = 0U; __Vtablechg13[113] = 0U; __Vtablechg13[114] = 1U; __Vtablechg13[115] = 1U; __Vtablechg13[116] = 0U; __Vtablechg13[117] = 1U; __Vtablechg13[118] = 0U; __Vtablechg13[119] = 0U; __Vtablechg13[120] = 1U; __Vtablechg13[121] = 1U; __Vtablechg13[122] = 0U; __Vtablechg13[123] = 0U; __Vtablechg13[124] = 0U; __Vtablechg13[125] = 0U; __Vtablechg13[126] = 0U; __Vtablechg13[127] = 0U; __Vtablechg13[128] = 1U; __Vtablechg13[129] = 1U; __Vtablechg13[130] = 1U; __Vtablechg13[131] = 1U; __Vtablechg13[132] = 1U; __Vtablechg13[133] = 1U; __Vtablechg13[134] = 1U; __Vtablechg13[135] = 1U; __Vtablechg13[136] = 1U; __Vtablechg13[137] = 1U; __Vtablechg13[138] = 1U; __Vtablechg13[139] = 1U; __Vtablechg13[140] = 1U; __Vtablechg13[141] = 1U; __Vtablechg13[142] = 1U; __Vtablechg13[143] = 1U; __Vtablechg13[144] = 1U; __Vtablechg13[145] = 1U; __Vtablechg13[146] = 1U; __Vtablechg13[147] = 1U; __Vtablechg13[148] = 1U; __Vtablechg13[149] = 1U; __Vtablechg13[150] = 1U; __Vtablechg13[151] = 1U; __Vtablechg13[152] = 1U; __Vtablechg13[153] = 1U; __Vtablechg13[154] = 1U; __Vtablechg13[155] = 1U; __Vtablechg13[156] = 1U; __Vtablechg13[157] = 1U; __Vtablechg13[158] = 1U; __Vtablechg13[159] = 1U; __Vtablechg13[160] = 1U; __Vtablechg13[161] = 1U; __Vtablechg13[162] = 1U; __Vtablechg13[163] = 1U; __Vtablechg13[164] = 1U; __Vtablechg13[165] = 1U; __Vtablechg13[166] = 1U; __Vtablechg13[167] = 1U; __Vtablechg13[168] = 1U; __Vtablechg13[169] = 1U; __Vtablechg13[170] = 1U; __Vtablechg13[171] = 1U; __Vtablechg13[172] = 1U; __Vtablechg13[173] = 1U; __Vtablechg13[174] = 1U; __Vtablechg13[175] = 1U; __Vtablechg13[176] = 1U; __Vtablechg13[177] = 1U; __Vtablechg13[178] = 1U; __Vtablechg13[179] = 1U; __Vtablechg13[180] = 1U; __Vtablechg13[181] = 1U; __Vtablechg13[182] = 1U; __Vtablechg13[183] = 1U; __Vtablechg13[184] = 1U; __Vtablechg13[185] = 1U; __Vtablechg13[186] = 1U; __Vtablechg13[187] = 1U; __Vtablechg13[188] = 1U; __Vtablechg13[189] = 1U; __Vtablechg13[190] = 1U; __Vtablechg13[191] = 1U; __Vtablechg13[192] = 1U; __Vtablechg13[193] = 1U; __Vtablechg13[194] = 1U; __Vtablechg13[195] = 1U; __Vtablechg13[196] = 1U; __Vtablechg13[197] = 1U; __Vtablechg13[198] = 1U; __Vtablechg13[199] = 1U; __Vtablechg13[200] = 1U; __Vtablechg13[201] = 1U; __Vtablechg13[202] = 1U; __Vtablechg13[203] = 1U; __Vtablechg13[204] = 1U; __Vtablechg13[205] = 1U; __Vtablechg13[206] = 1U; __Vtablechg13[207] = 1U; __Vtablechg13[208] = 1U; __Vtablechg13[209] = 1U; __Vtablechg13[210] = 1U; __Vtablechg13[211] = 1U; __Vtablechg13[212] = 1U; __Vtablechg13[213] = 1U; __Vtablechg13[214] = 1U; __Vtablechg13[215] = 1U; __Vtablechg13[216] = 1U; __Vtablechg13[217] = 1U; __Vtablechg13[218] = 1U; __Vtablechg13[219] = 1U; __Vtablechg13[220] = 1U; __Vtablechg13[221] = 1U; __Vtablechg13[222] = 1U; __Vtablechg13[223] = 1U; __Vtablechg13[224] = 1U; __Vtablechg13[225] = 1U; __Vtablechg13[226] = 1U; __Vtablechg13[227] = 1U; __Vtablechg13[228] = 1U; __Vtablechg13[229] = 1U; __Vtablechg13[230] = 1U; __Vtablechg13[231] = 1U; __Vtablechg13[232] = 1U; __Vtablechg13[233] = 1U; __Vtablechg13[234] = 1U; __Vtablechg13[235] = 1U; __Vtablechg13[236] = 1U; __Vtablechg13[237] = 1U; __Vtablechg13[238] = 1U; __Vtablechg13[239] = 1U; __Vtablechg13[240] = 1U; __Vtablechg13[241] = 1U; __Vtablechg13[242] = 1U; __Vtablechg13[243] = 1U; __Vtablechg13[244] = 1U; __Vtablechg13[245] = 1U; __Vtablechg13[246] = 1U; __Vtablechg13[247] = 1U; __Vtablechg13[248] = 1U; __Vtablechg13[249] = 1U; __Vtablechg13[250] = 1U; __Vtablechg13[251] = 1U; __Vtablechg13[252] = 1U; __Vtablechg13[253] = 1U; __Vtablechg13[254] = 1U; __Vtablechg13[255] = 1U; __Vtablechg13[256] = 0U; __Vtablechg13[257] = 0U; __Vtablechg13[258] = 1U; __Vtablechg13[259] = 1U; __Vtablechg13[260] = 0U; __Vtablechg13[261] = 1U; __Vtablechg13[262] = 0U; __Vtablechg13[263] = 0U; __Vtablechg13[264] = 1U; __Vtablechg13[265] = 1U; __Vtablechg13[266] = 0U; __Vtablechg13[267] = 0U; __Vtablechg13[268] = 0U; __Vtablechg13[269] = 0U; __Vtablechg13[270] = 0U; __Vtablechg13[271] = 0U; __Vtablechg13[272] = 0U; __Vtablechg13[273] = 0U; __Vtablechg13[274] = 1U; __Vtablechg13[275] = 1U; __Vtablechg13[276] = 0U; __Vtablechg13[277] = 1U; __Vtablechg13[278] = 0U; __Vtablechg13[279] = 0U; __Vtablechg13[280] = 1U; __Vtablechg13[281] = 1U; __Vtablechg13[282] = 0U; __Vtablechg13[283] = 0U; __Vtablechg13[284] = 0U; __Vtablechg13[285] = 0U; __Vtablechg13[286] = 0U; __Vtablechg13[287] = 0U; __Vtablechg13[288] = 0U; __Vtablechg13[289] = 0U; __Vtablechg13[290] = 1U; __Vtablechg13[291] = 1U; __Vtablechg13[292] = 0U; __Vtablechg13[293] = 1U; __Vtablechg13[294] = 0U; __Vtablechg13[295] = 0U; __Vtablechg13[296] = 1U; __Vtablechg13[297] = 1U; __Vtablechg13[298] = 0U; __Vtablechg13[299] = 0U; __Vtablechg13[300] = 0U; __Vtablechg13[301] = 0U; __Vtablechg13[302] = 0U; __Vtablechg13[303] = 0U; __Vtablechg13[304] = 0U; __Vtablechg13[305] = 0U; __Vtablechg13[306] = 1U; __Vtablechg13[307] = 1U; __Vtablechg13[308] = 0U; __Vtablechg13[309] = 1U; __Vtablechg13[310] = 0U; __Vtablechg13[311] = 0U; __Vtablechg13[312] = 1U; __Vtablechg13[313] = 1U; __Vtablechg13[314] = 0U; __Vtablechg13[315] = 0U; __Vtablechg13[316] = 0U; __Vtablechg13[317] = 0U; __Vtablechg13[318] = 0U; __Vtablechg13[319] = 0U; __Vtablechg13[320] = 1U; __Vtablechg13[321] = 1U; __Vtablechg13[322] = 1U; __Vtablechg13[323] = 1U; __Vtablechg13[324] = 1U; __Vtablechg13[325] = 1U; __Vtablechg13[326] = 1U; __Vtablechg13[327] = 1U; __Vtablechg13[328] = 1U; __Vtablechg13[329] = 1U; __Vtablechg13[330] = 1U; __Vtablechg13[331] = 1U; __Vtablechg13[332] = 1U; __Vtablechg13[333] = 1U; __Vtablechg13[334] = 1U; __Vtablechg13[335] = 1U; __Vtablechg13[336] = 1U; __Vtablechg13[337] = 1U; __Vtablechg13[338] = 1U; __Vtablechg13[339] = 1U; __Vtablechg13[340] = 1U; __Vtablechg13[341] = 1U; __Vtablechg13[342] = 1U; __Vtablechg13[343] = 1U; __Vtablechg13[344] = 1U; __Vtablechg13[345] = 1U; __Vtablechg13[346] = 1U; __Vtablechg13[347] = 1U; __Vtablechg13[348] = 1U; __Vtablechg13[349] = 1U; __Vtablechg13[350] = 1U; __Vtablechg13[351] = 1U; __Vtablechg13[352] = 1U; __Vtablechg13[353] = 1U; __Vtablechg13[354] = 1U; __Vtablechg13[355] = 1U; __Vtablechg13[356] = 1U; __Vtablechg13[357] = 1U; __Vtablechg13[358] = 1U; __Vtablechg13[359] = 1U; __Vtablechg13[360] = 1U; __Vtablechg13[361] = 1U; __Vtablechg13[362] = 1U; __Vtablechg13[363] = 1U; __Vtablechg13[364] = 1U; __Vtablechg13[365] = 1U; __Vtablechg13[366] = 1U; __Vtablechg13[367] = 1U; __Vtablechg13[368] = 1U; __Vtablechg13[369] = 1U; __Vtablechg13[370] = 1U; __Vtablechg13[371] = 1U; __Vtablechg13[372] = 1U; __Vtablechg13[373] = 1U; __Vtablechg13[374] = 1U; __Vtablechg13[375] = 1U; __Vtablechg13[376] = 1U; __Vtablechg13[377] = 1U; __Vtablechg13[378] = 1U; __Vtablechg13[379] = 1U; __Vtablechg13[380] = 1U; __Vtablechg13[381] = 1U; __Vtablechg13[382] = 1U; __Vtablechg13[383] = 1U; __Vtablechg13[384] = 0U; __Vtablechg13[385] = 0U; __Vtablechg13[386] = 1U; __Vtablechg13[387] = 1U; __Vtablechg13[388] = 0U; __Vtablechg13[389] = 1U; __Vtablechg13[390] = 0U; __Vtablechg13[391] = 0U; __Vtablechg13[392] = 1U; __Vtablechg13[393] = 1U; __Vtablechg13[394] = 0U; __Vtablechg13[395] = 0U; __Vtablechg13[396] = 0U; __Vtablechg13[397] = 0U; __Vtablechg13[398] = 0U; __Vtablechg13[399] = 0U; __Vtablechg13[400] = 0U; __Vtablechg13[401] = 0U; __Vtablechg13[402] = 1U; __Vtablechg13[403] = 1U; __Vtablechg13[404] = 0U; __Vtablechg13[405] = 1U; __Vtablechg13[406] = 0U; __Vtablechg13[407] = 0U; __Vtablechg13[408] = 1U; __Vtablechg13[409] = 1U; __Vtablechg13[410] = 0U; __Vtablechg13[411] = 0U; __Vtablechg13[412] = 0U; __Vtablechg13[413] = 0U; __Vtablechg13[414] = 0U; __Vtablechg13[415] = 0U; __Vtablechg13[416] = 0U; __Vtablechg13[417] = 0U; __Vtablechg13[418] = 1U; __Vtablechg13[419] = 1U; __Vtablechg13[420] = 0U; __Vtablechg13[421] = 1U; __Vtablechg13[422] = 0U; __Vtablechg13[423] = 0U; __Vtablechg13[424] = 1U; __Vtablechg13[425] = 1U; __Vtablechg13[426] = 0U; __Vtablechg13[427] = 0U; __Vtablechg13[428] = 0U; __Vtablechg13[429] = 0U; __Vtablechg13[430] = 0U; __Vtablechg13[431] = 0U; __Vtablechg13[432] = 0U; __Vtablechg13[433] = 0U; __Vtablechg13[434] = 1U; __Vtablechg13[435] = 1U; __Vtablechg13[436] = 0U; __Vtablechg13[437] = 1U; __Vtablechg13[438] = 0U; __Vtablechg13[439] = 0U; __Vtablechg13[440] = 1U; __Vtablechg13[441] = 1U; __Vtablechg13[442] = 0U; __Vtablechg13[443] = 0U; __Vtablechg13[444] = 0U; __Vtablechg13[445] = 0U; __Vtablechg13[446] = 0U; __Vtablechg13[447] = 0U; __Vtablechg13[448] = 0U; __Vtablechg13[449] = 0U; __Vtablechg13[450] = 1U; __Vtablechg13[451] = 1U; __Vtablechg13[452] = 0U; __Vtablechg13[453] = 1U; __Vtablechg13[454] = 0U; __Vtablechg13[455] = 0U; __Vtablechg13[456] = 1U; __Vtablechg13[457] = 1U; __Vtablechg13[458] = 0U; __Vtablechg13[459] = 0U; __Vtablechg13[460] = 0U; __Vtablechg13[461] = 0U; __Vtablechg13[462] = 0U; __Vtablechg13[463] = 0U; __Vtablechg13[464] = 0U; __Vtablechg13[465] = 0U; __Vtablechg13[466] = 1U; __Vtablechg13[467] = 1U; __Vtablechg13[468] = 0U; __Vtablechg13[469] = 1U; __Vtablechg13[470] = 0U; __Vtablechg13[471] = 0U; __Vtablechg13[472] = 1U; __Vtablechg13[473] = 1U; __Vtablechg13[474] = 0U; __Vtablechg13[475] = 0U; __Vtablechg13[476] = 0U; __Vtablechg13[477] = 0U; __Vtablechg13[478] = 0U; __Vtablechg13[479] = 0U; __Vtablechg13[480] = 0U; __Vtablechg13[481] = 0U; __Vtablechg13[482] = 1U; __Vtablechg13[483] = 1U; __Vtablechg13[484] = 0U; __Vtablechg13[485] = 1U; __Vtablechg13[486] = 0U; __Vtablechg13[487] = 0U; __Vtablechg13[488] = 1U; __Vtablechg13[489] = 1U; __Vtablechg13[490] = 0U; __Vtablechg13[491] = 0U; __Vtablechg13[492] = 0U; __Vtablechg13[493] = 0U; __Vtablechg13[494] = 0U; __Vtablechg13[495] = 0U; __Vtablechg13[496] = 0U; __Vtablechg13[497] = 0U; __Vtablechg13[498] = 1U; __Vtablechg13[499] = 1U; __Vtablechg13[500] = 0U; __Vtablechg13[501] = 1U; __Vtablechg13[502] = 0U; __Vtablechg13[503] = 0U; __Vtablechg13[504] = 1U; __Vtablechg13[505] = 1U; __Vtablechg13[506] = 0U; __Vtablechg13[507] = 0U; __Vtablechg13[508] = 0U; __Vtablechg13[509] = 0U; __Vtablechg13[510] = 0U; __Vtablechg13[511] = 0U; __Vtablechg13[512] = 1U; __Vtablechg13[513] = 1U; __Vtablechg13[514] = 1U; __Vtablechg13[515] = 1U; __Vtablechg13[516] = 1U; __Vtablechg13[517] = 1U; __Vtablechg13[518] = 1U; __Vtablechg13[519] = 1U; __Vtablechg13[520] = 1U; __Vtablechg13[521] = 1U; __Vtablechg13[522] = 1U; __Vtablechg13[523] = 1U; __Vtablechg13[524] = 1U; __Vtablechg13[525] = 1U; __Vtablechg13[526] = 1U; __Vtablechg13[527] = 1U; __Vtablechg13[528] = 1U; __Vtablechg13[529] = 1U; __Vtablechg13[530] = 1U; __Vtablechg13[531] = 1U; __Vtablechg13[532] = 1U; __Vtablechg13[533] = 1U; __Vtablechg13[534] = 1U; __Vtablechg13[535] = 1U; __Vtablechg13[536] = 1U; __Vtablechg13[537] = 1U; __Vtablechg13[538] = 1U; __Vtablechg13[539] = 1U; __Vtablechg13[540] = 1U; __Vtablechg13[541] = 1U; __Vtablechg13[542] = 1U; __Vtablechg13[543] = 1U; __Vtablechg13[544] = 1U; __Vtablechg13[545] = 1U; __Vtablechg13[546] = 1U; __Vtablechg13[547] = 1U; __Vtablechg13[548] = 1U; __Vtablechg13[549] = 1U; __Vtablechg13[550] = 1U; __Vtablechg13[551] = 1U; __Vtablechg13[552] = 1U; __Vtablechg13[553] = 1U; __Vtablechg13[554] = 1U; __Vtablechg13[555] = 1U; __Vtablechg13[556] = 1U; __Vtablechg13[557] = 1U; __Vtablechg13[558] = 1U; __Vtablechg13[559] = 1U; __Vtablechg13[560] = 1U; __Vtablechg13[561] = 1U; __Vtablechg13[562] = 1U; __Vtablechg13[563] = 1U; __Vtablechg13[564] = 1U; __Vtablechg13[565] = 1U; __Vtablechg13[566] = 1U; __Vtablechg13[567] = 1U; __Vtablechg13[568] = 1U; __Vtablechg13[569] = 1U; __Vtablechg13[570] = 1U; __Vtablechg13[571] = 1U; __Vtablechg13[572] = 1U; __Vtablechg13[573] = 1U; __Vtablechg13[574] = 1U; __Vtablechg13[575] = 1U; __Vtablechg13[576] = 1U; __Vtablechg13[577] = 1U; __Vtablechg13[578] = 1U; __Vtablechg13[579] = 1U; __Vtablechg13[580] = 1U; __Vtablechg13[581] = 1U; __Vtablechg13[582] = 1U; __Vtablechg13[583] = 1U; __Vtablechg13[584] = 1U; __Vtablechg13[585] = 1U; __Vtablechg13[586] = 1U; __Vtablechg13[587] = 1U; __Vtablechg13[588] = 1U; __Vtablechg13[589] = 1U; __Vtablechg13[590] = 1U; __Vtablechg13[591] = 1U; __Vtablechg13[592] = 1U; __Vtablechg13[593] = 1U; __Vtablechg13[594] = 1U; __Vtablechg13[595] = 1U; __Vtablechg13[596] = 1U; __Vtablechg13[597] = 1U; __Vtablechg13[598] = 1U; __Vtablechg13[599] = 1U; __Vtablechg13[600] = 1U; __Vtablechg13[601] = 1U; __Vtablechg13[602] = 1U; __Vtablechg13[603] = 1U; __Vtablechg13[604] = 1U; __Vtablechg13[605] = 1U; __Vtablechg13[606] = 1U; __Vtablechg13[607] = 1U; __Vtablechg13[608] = 1U; __Vtablechg13[609] = 1U; __Vtablechg13[610] = 1U; __Vtablechg13[611] = 1U; __Vtablechg13[612] = 1U; __Vtablechg13[613] = 1U; __Vtablechg13[614] = 1U; __Vtablechg13[615] = 1U; __Vtablechg13[616] = 1U; __Vtablechg13[617] = 1U; __Vtablechg13[618] = 1U; __Vtablechg13[619] = 1U; __Vtablechg13[620] = 1U; __Vtablechg13[621] = 1U; __Vtablechg13[622] = 1U; __Vtablechg13[623] = 1U; __Vtablechg13[624] = 1U; __Vtablechg13[625] = 1U; __Vtablechg13[626] = 1U; __Vtablechg13[627] = 1U; __Vtablechg13[628] = 1U; __Vtablechg13[629] = 1U; __Vtablechg13[630] = 1U; __Vtablechg13[631] = 1U; __Vtablechg13[632] = 1U; __Vtablechg13[633] = 1U; __Vtablechg13[634] = 1U; __Vtablechg13[635] = 1U; __Vtablechg13[636] = 1U; __Vtablechg13[637] = 1U; __Vtablechg13[638] = 1U; __Vtablechg13[639] = 1U; __Vtablechg13[640] = 0U; __Vtablechg13[641] = 0U; __Vtablechg13[642] = 1U; __Vtablechg13[643] = 1U; __Vtablechg13[644] = 0U; __Vtablechg13[645] = 1U; __Vtablechg13[646] = 0U; __Vtablechg13[647] = 0U; __Vtablechg13[648] = 1U; __Vtablechg13[649] = 1U; __Vtablechg13[650] = 0U; __Vtablechg13[651] = 0U; __Vtablechg13[652] = 0U; __Vtablechg13[653] = 0U; __Vtablechg13[654] = 0U; __Vtablechg13[655] = 0U; __Vtablechg13[656] = 0U; __Vtablechg13[657] = 0U; __Vtablechg13[658] = 1U; __Vtablechg13[659] = 1U; __Vtablechg13[660] = 0U; __Vtablechg13[661] = 1U; __Vtablechg13[662] = 0U; __Vtablechg13[663] = 0U; __Vtablechg13[664] = 1U; __Vtablechg13[665] = 1U; __Vtablechg13[666] = 0U; __Vtablechg13[667] = 0U; __Vtablechg13[668] = 0U; __Vtablechg13[669] = 0U; __Vtablechg13[670] = 0U; __Vtablechg13[671] = 0U; __Vtablechg13[672] = 0U; __Vtablechg13[673] = 0U; __Vtablechg13[674] = 1U; __Vtablechg13[675] = 1U; __Vtablechg13[676] = 0U; __Vtablechg13[677] = 1U; __Vtablechg13[678] = 0U; __Vtablechg13[679] = 0U; __Vtablechg13[680] = 1U; __Vtablechg13[681] = 1U; __Vtablechg13[682] = 0U; __Vtablechg13[683] = 0U; __Vtablechg13[684] = 0U; __Vtablechg13[685] = 0U; __Vtablechg13[686] = 0U; __Vtablechg13[687] = 0U; __Vtablechg13[688] = 0U; __Vtablechg13[689] = 0U; __Vtablechg13[690] = 1U; __Vtablechg13[691] = 1U; __Vtablechg13[692] = 0U; __Vtablechg13[693] = 1U; __Vtablechg13[694] = 0U; __Vtablechg13[695] = 0U; __Vtablechg13[696] = 1U; __Vtablechg13[697] = 1U; __Vtablechg13[698] = 0U; __Vtablechg13[699] = 0U; __Vtablechg13[700] = 0U; __Vtablechg13[701] = 0U; __Vtablechg13[702] = 0U; __Vtablechg13[703] = 0U; __Vtablechg13[704] = 0U; __Vtablechg13[705] = 0U; __Vtablechg13[706] = 1U; __Vtablechg13[707] = 1U; __Vtablechg13[708] = 0U; __Vtablechg13[709] = 1U; __Vtablechg13[710] = 0U; __Vtablechg13[711] = 0U; __Vtablechg13[712] = 1U; __Vtablechg13[713] = 1U; __Vtablechg13[714] = 0U; __Vtablechg13[715] = 0U; __Vtablechg13[716] = 0U; __Vtablechg13[717] = 0U; __Vtablechg13[718] = 0U; __Vtablechg13[719] = 0U; __Vtablechg13[720] = 0U; __Vtablechg13[721] = 0U; __Vtablechg13[722] = 1U; __Vtablechg13[723] = 1U; __Vtablechg13[724] = 0U; __Vtablechg13[725] = 1U; __Vtablechg13[726] = 0U; __Vtablechg13[727] = 0U; __Vtablechg13[728] = 1U; __Vtablechg13[729] = 1U; __Vtablechg13[730] = 0U; __Vtablechg13[731] = 0U; __Vtablechg13[732] = 0U; __Vtablechg13[733] = 0U; __Vtablechg13[734] = 0U; __Vtablechg13[735] = 0U; __Vtablechg13[736] = 0U; __Vtablechg13[737] = 0U; __Vtablechg13[738] = 1U; __Vtablechg13[739] = 1U; __Vtablechg13[740] = 0U; __Vtablechg13[741] = 1U; __Vtablechg13[742] = 0U; __Vtablechg13[743] = 0U; __Vtablechg13[744] = 1U; __Vtablechg13[745] = 1U; __Vtablechg13[746] = 0U; __Vtablechg13[747] = 0U; __Vtablechg13[748] = 0U; __Vtablechg13[749] = 0U; __Vtablechg13[750] = 0U; __Vtablechg13[751] = 0U; __Vtablechg13[752] = 0U; __Vtablechg13[753] = 0U; __Vtablechg13[754] = 1U; __Vtablechg13[755] = 1U; __Vtablechg13[756] = 0U; __Vtablechg13[757] = 1U; __Vtablechg13[758] = 0U; __Vtablechg13[759] = 0U; __Vtablechg13[760] = 1U; __Vtablechg13[761] = 1U; __Vtablechg13[762] = 0U; __Vtablechg13[763] = 0U; __Vtablechg13[764] = 0U; __Vtablechg13[765] = 0U; __Vtablechg13[766] = 0U; __Vtablechg13[767] = 0U; __Vtablechg13[768] = 0U; __Vtablechg13[769] = 0U; __Vtablechg13[770] = 1U; __Vtablechg13[771] = 1U; __Vtablechg13[772] = 0U; __Vtablechg13[773] = 1U; __Vtablechg13[774] = 0U; __Vtablechg13[775] = 0U; __Vtablechg13[776] = 1U; __Vtablechg13[777] = 1U; __Vtablechg13[778] = 0U; __Vtablechg13[779] = 0U; __Vtablechg13[780] = 0U; __Vtablechg13[781] = 0U; __Vtablechg13[782] = 0U; __Vtablechg13[783] = 0U; __Vtablechg13[784] = 0U; __Vtablechg13[785] = 0U; __Vtablechg13[786] = 1U; __Vtablechg13[787] = 1U; __Vtablechg13[788] = 0U; __Vtablechg13[789] = 1U; __Vtablechg13[790] = 0U; __Vtablechg13[791] = 0U; __Vtablechg13[792] = 1U; __Vtablechg13[793] = 1U; __Vtablechg13[794] = 0U; __Vtablechg13[795] = 0U; __Vtablechg13[796] = 0U; __Vtablechg13[797] = 0U; __Vtablechg13[798] = 0U; __Vtablechg13[799] = 0U; __Vtablechg13[800] = 0U; __Vtablechg13[801] = 0U; __Vtablechg13[802] = 1U; __Vtablechg13[803] = 1U; __Vtablechg13[804] = 0U; __Vtablechg13[805] = 1U; __Vtablechg13[806] = 0U; __Vtablechg13[807] = 0U; __Vtablechg13[808] = 1U; __Vtablechg13[809] = 1U; __Vtablechg13[810] = 0U; __Vtablechg13[811] = 0U; __Vtablechg13[812] = 0U; __Vtablechg13[813] = 0U; __Vtablechg13[814] = 0U; __Vtablechg13[815] = 0U; __Vtablechg13[816] = 0U; __Vtablechg13[817] = 0U; __Vtablechg13[818] = 1U; __Vtablechg13[819] = 1U; __Vtablechg13[820] = 0U; __Vtablechg13[821] = 1U; __Vtablechg13[822] = 0U; __Vtablechg13[823] = 0U; __Vtablechg13[824] = 1U; __Vtablechg13[825] = 1U; __Vtablechg13[826] = 0U; __Vtablechg13[827] = 0U; __Vtablechg13[828] = 0U; __Vtablechg13[829] = 0U; __Vtablechg13[830] = 0U; __Vtablechg13[831] = 0U; __Vtablechg13[832] = 0U; __Vtablechg13[833] = 0U; __Vtablechg13[834] = 1U; __Vtablechg13[835] = 1U; __Vtablechg13[836] = 0U; __Vtablechg13[837] = 1U; __Vtablechg13[838] = 0U; __Vtablechg13[839] = 0U; __Vtablechg13[840] = 1U; __Vtablechg13[841] = 1U; __Vtablechg13[842] = 0U; __Vtablechg13[843] = 0U; __Vtablechg13[844] = 0U; __Vtablechg13[845] = 0U; __Vtablechg13[846] = 0U; __Vtablechg13[847] = 0U; __Vtablechg13[848] = 0U; __Vtablechg13[849] = 0U; __Vtablechg13[850] = 1U; __Vtablechg13[851] = 1U; __Vtablechg13[852] = 0U; __Vtablechg13[853] = 1U; __Vtablechg13[854] = 0U; __Vtablechg13[855] = 0U; __Vtablechg13[856] = 1U; __Vtablechg13[857] = 1U; __Vtablechg13[858] = 0U; __Vtablechg13[859] = 0U; __Vtablechg13[860] = 0U; __Vtablechg13[861] = 0U; __Vtablechg13[862] = 0U; __Vtablechg13[863] = 0U; __Vtablechg13[864] = 0U; __Vtablechg13[865] = 0U; __Vtablechg13[866] = 1U; __Vtablechg13[867] = 1U; __Vtablechg13[868] = 0U; __Vtablechg13[869] = 1U; __Vtablechg13[870] = 0U; __Vtablechg13[871] = 0U; __Vtablechg13[872] = 1U; __Vtablechg13[873] = 1U; __Vtablechg13[874] = 0U; __Vtablechg13[875] = 0U; __Vtablechg13[876] = 0U; __Vtablechg13[877] = 0U; __Vtablechg13[878] = 0U; __Vtablechg13[879] = 0U; __Vtablechg13[880] = 0U; __Vtablechg13[881] = 0U; __Vtablechg13[882] = 1U; __Vtablechg13[883] = 1U; __Vtablechg13[884] = 0U; __Vtablechg13[885] = 1U; __Vtablechg13[886] = 0U; __Vtablechg13[887] = 0U; __Vtablechg13[888] = 1U; __Vtablechg13[889] = 1U; __Vtablechg13[890] = 0U; __Vtablechg13[891] = 0U; __Vtablechg13[892] = 0U; __Vtablechg13[893] = 0U; __Vtablechg13[894] = 0U; __Vtablechg13[895] = 0U; __Vtablechg13[896] = 0U; __Vtablechg13[897] = 0U; __Vtablechg13[898] = 1U; __Vtablechg13[899] = 1U; __Vtablechg13[900] = 0U; __Vtablechg13[901] = 1U; __Vtablechg13[902] = 0U; __Vtablechg13[903] = 0U; __Vtablechg13[904] = 1U; __Vtablechg13[905] = 1U; __Vtablechg13[906] = 0U; __Vtablechg13[907] = 0U; __Vtablechg13[908] = 0U; __Vtablechg13[909] = 0U; __Vtablechg13[910] = 0U; __Vtablechg13[911] = 0U; __Vtablechg13[912] = 0U; __Vtablechg13[913] = 0U; __Vtablechg13[914] = 1U; __Vtablechg13[915] = 1U; __Vtablechg13[916] = 0U; __Vtablechg13[917] = 1U; __Vtablechg13[918] = 0U; __Vtablechg13[919] = 0U; __Vtablechg13[920] = 1U; __Vtablechg13[921] = 1U; __Vtablechg13[922] = 0U; __Vtablechg13[923] = 0U; __Vtablechg13[924] = 0U; __Vtablechg13[925] = 0U; __Vtablechg13[926] = 0U; __Vtablechg13[927] = 0U; __Vtablechg13[928] = 0U; __Vtablechg13[929] = 0U; __Vtablechg13[930] = 1U; __Vtablechg13[931] = 1U; __Vtablechg13[932] = 0U; __Vtablechg13[933] = 1U; __Vtablechg13[934] = 0U; __Vtablechg13[935] = 0U; __Vtablechg13[936] = 1U; __Vtablechg13[937] = 1U; __Vtablechg13[938] = 0U; __Vtablechg13[939] = 0U; __Vtablechg13[940] = 0U; __Vtablechg13[941] = 0U; __Vtablechg13[942] = 0U; __Vtablechg13[943] = 0U; __Vtablechg13[944] = 0U; __Vtablechg13[945] = 0U; __Vtablechg13[946] = 1U; __Vtablechg13[947] = 1U; __Vtablechg13[948] = 0U; __Vtablechg13[949] = 1U; __Vtablechg13[950] = 0U; __Vtablechg13[951] = 0U; __Vtablechg13[952] = 1U; __Vtablechg13[953] = 1U; __Vtablechg13[954] = 0U; __Vtablechg13[955] = 0U; __Vtablechg13[956] = 0U; __Vtablechg13[957] = 0U; __Vtablechg13[958] = 0U; __Vtablechg13[959] = 0U; __Vtablechg13[960] = 0U; __Vtablechg13[961] = 0U; __Vtablechg13[962] = 1U; __Vtablechg13[963] = 1U; __Vtablechg13[964] = 0U; __Vtablechg13[965] = 1U; __Vtablechg13[966] = 0U; __Vtablechg13[967] = 0U; __Vtablechg13[968] = 1U; __Vtablechg13[969] = 1U; __Vtablechg13[970] = 0U; __Vtablechg13[971] = 0U; __Vtablechg13[972] = 0U; __Vtablechg13[973] = 0U; __Vtablechg13[974] = 0U; __Vtablechg13[975] = 0U; __Vtablechg13[976] = 0U; __Vtablechg13[977] = 0U; __Vtablechg13[978] = 1U; __Vtablechg13[979] = 1U; __Vtablechg13[980] = 0U; __Vtablechg13[981] = 1U; __Vtablechg13[982] = 0U; __Vtablechg13[983] = 0U; __Vtablechg13[984] = 1U; __Vtablechg13[985] = 1U; __Vtablechg13[986] = 0U; __Vtablechg13[987] = 0U; __Vtablechg13[988] = 0U; __Vtablechg13[989] = 0U; __Vtablechg13[990] = 0U; __Vtablechg13[991] = 0U; __Vtablechg13[992] = 0U; __Vtablechg13[993] = 0U; __Vtablechg13[994] = 1U; __Vtablechg13[995] = 1U; __Vtablechg13[996] = 0U; __Vtablechg13[997] = 1U; __Vtablechg13[998] = 0U; __Vtablechg13[999] = 0U; __Vtablechg13[1000] = 1U; __Vtablechg13[1001] = 1U; __Vtablechg13[1002] = 0U; __Vtablechg13[1003] = 0U; __Vtablechg13[1004] = 0U; __Vtablechg13[1005] = 0U; __Vtablechg13[1006] = 0U; __Vtablechg13[1007] = 0U; __Vtablechg13[1008] = 0U; __Vtablechg13[1009] = 0U; __Vtablechg13[1010] = 1U; __Vtablechg13[1011] = 1U; __Vtablechg13[1012] = 0U; __Vtablechg13[1013] = 1U; __Vtablechg13[1014] = 0U; __Vtablechg13[1015] = 0U; __Vtablechg13[1016] = 1U; __Vtablechg13[1017] = 1U; __Vtablechg13[1018] = 0U; __Vtablechg13[1019] = 0U; __Vtablechg13[1020] = 0U; __Vtablechg13[1021] = 0U; __Vtablechg13[1022] = 0U; __Vtablechg13[1023] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[0] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[2] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[3] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[4] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[5] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[6] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[7] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[8] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[9] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[10] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[11] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[12] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[13] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[14] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[15] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[16] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[17] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[18] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[19] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[20] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[21] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[22] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[23] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[24] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[25] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[26] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[27] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[28] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[29] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[30] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[31] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[32] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[33] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[34] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[35] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[36] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[37] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[38] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[39] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[40] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[41] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[42] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[43] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[44] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[45] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[46] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[47] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[48] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[49] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[50] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[51] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[52] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[53] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[54] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[55] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[56] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[57] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[58] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[59] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[60] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[61] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[62] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[63] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[64] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[65] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[66] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[67] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[68] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[69] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[70] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[71] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[72] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[73] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[74] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[75] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[76] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[77] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[78] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[79] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[80] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[81] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[82] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[83] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[84] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[85] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[86] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[87] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[88] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[89] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[90] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[91] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[92] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[93] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[94] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[95] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[96] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[97] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[98] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[99] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[100] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[101] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[102] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[103] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[104] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[105] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[106] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[107] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[108] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[109] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[110] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[111] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[112] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[113] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[114] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[115] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[116] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[117] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[118] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[119] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[120] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[121] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[122] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[123] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[124] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[125] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[126] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[127] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[128] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[129] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[130] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[131] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[132] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[133] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[134] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[135] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[136] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[137] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[138] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[139] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[140] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[141] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[142] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[143] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[144] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[145] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[146] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[147] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[148] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[149] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[150] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[151] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[152] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[153] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[154] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[155] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[156] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[157] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[158] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[159] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[160] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[161] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[162] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[163] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[164] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[165] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[166] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[167] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[168] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[169] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[170] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[171] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[172] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[173] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[174] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[175] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[176] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[177] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[178] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[179] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[180] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[181] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[182] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[183] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[184] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[185] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[186] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[187] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[188] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[189] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[190] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[191] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[192] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[193] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[194] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[195] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[196] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[197] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[198] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[199] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[200] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[201] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[202] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[203] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[204] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[205] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[206] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[207] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[208] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[209] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[210] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[211] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[212] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[213] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[214] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[215] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[216] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[217] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[218] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[219] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[220] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[221] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[222] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[223] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[224] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[225] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[226] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[227] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[228] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[229] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[230] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[231] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[232] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[233] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[234] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[235] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[236] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[237] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[238] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[239] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[240] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[241] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[242] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[243] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[244] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[245] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[246] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[247] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[248] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[249] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[250] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[251] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[252] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[253] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[254] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[255] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[256] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[257] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[258] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[259] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[260] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[261] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[262] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[263] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[264] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[265] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[266] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[267] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[268] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[269] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[270] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[271] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[272] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[273] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[274] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[275] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[276] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[277] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[278] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[279] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[280] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[281] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[282] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[283] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[284] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[285] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[286] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[287] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[288] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[289] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[290] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[291] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[292] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[293] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[294] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[295] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[296] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[297] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[298] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[299] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[300] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[301] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[302] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[303] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[304] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[305] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[306] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[307] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[308] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[309] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[310] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[311] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[312] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[313] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[314] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[315] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[316] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[317] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[318] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[319] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[320] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[321] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[322] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[323] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[324] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[325] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[326] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[327] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[328] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[329] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[330] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[331] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[332] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[333] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[334] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[335] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[336] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[337] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[338] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[339] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[340] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[341] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[342] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[343] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[344] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[345] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[346] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[347] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[348] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[349] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[350] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[351] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[352] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[353] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[354] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[355] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[356] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[357] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[358] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[359] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[360] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[361] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[362] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[363] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[364] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[365] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[366] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[367] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[368] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[369] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[370] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[371] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[372] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[373] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[374] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[375] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[376] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[377] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[378] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[379] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[380] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[381] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[382] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[383] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[384] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[385] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[386] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[387] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[388] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[389] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[390] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[391] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[392] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[393] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[394] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[395] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[396] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[397] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[398] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[399] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[400] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[401] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[402] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[403] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[404] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[405] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[406] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[407] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[408] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[409] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[410] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[411] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[412] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[413] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[414] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[415] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[416] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[417] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[418] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[419] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[420] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[421] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[422] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[423] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[424] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[425] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[426] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[427] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[428] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[429] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[430] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[431] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[432] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[433] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[434] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[435] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[436] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[437] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[438] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[439] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[440] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[441] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[442] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[443] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[444] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[445] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[446] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[447] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[448] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[449] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[450] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[451] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[452] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[453] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[454] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[455] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[456] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[457] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[458] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[459] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[460] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[461] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[462] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[463] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[464] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[465] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[466] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[467] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[468] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[469] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[470] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[471] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[472] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[473] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[474] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[475] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[476] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[477] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[478] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[479] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[480] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[481] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[482] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[483] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[484] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[485] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[486] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[487] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[488] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[489] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[490] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[491] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[492] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[493] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[494] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[495] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[496] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[497] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[498] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[499] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[500] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[501] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[502] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[503] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[504] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[505] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[506] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[507] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[508] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[509] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[510] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[511] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[512] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[513] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[514] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[515] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[516] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[517] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[518] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[519] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[520] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[521] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[522] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[523] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[524] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[525] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[526] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[527] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[528] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[529] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[530] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[531] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[532] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[533] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[534] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[535] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[536] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[537] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[538] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[539] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[540] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[541] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[542] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[543] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[544] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[545] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[546] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[547] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[548] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[549] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[550] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[551] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[552] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[553] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[554] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[555] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[556] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[557] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[558] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[559] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[560] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[561] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[562] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[563] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[564] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[565] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[566] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[567] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[568] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[569] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[570] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[571] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[572] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[573] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[574] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[575] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[576] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[577] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[578] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[579] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[580] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[581] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[582] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[583] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[584] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[585] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[586] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[587] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[588] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[589] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[590] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[591] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[592] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[593] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[594] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[595] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[596] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[597] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[598] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[599] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[600] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[601] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[602] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[603] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[604] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[605] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[606] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[607] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[608] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[609] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[610] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[611] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[612] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[613] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[614] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[615] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[616] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[617] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[618] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[619] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[620] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[621] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[622] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[623] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[624] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[625] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[626] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[627] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[628] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[629] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[630] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[631] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[632] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[633] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[634] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[635] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[636] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[637] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[638] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[639] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[640] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[641] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[642] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[643] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[644] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[645] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[646] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[647] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[648] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[649] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[650] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[651] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[652] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[653] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[654] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[655] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[656] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[657] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[658] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[659] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[660] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[661] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[662] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[663] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[664] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[665] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[666] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[667] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[668] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[669] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[670] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[671] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[672] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[673] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[674] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[675] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[676] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[677] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[678] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[679] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[680] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[681] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[682] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[683] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[684] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[685] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[686] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[687] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[688] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[689] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[690] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[691] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[692] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[693] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[694] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[695] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[696] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[697] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[698] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[699] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[700] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[701] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[702] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[703] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[704] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[705] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[706] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[707] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[708] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[709] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[710] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[711] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[712] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[713] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[714] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[715] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[716] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[717] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[718] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[719] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[720] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[721] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[722] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[723] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[724] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[725] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[726] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[727] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[728] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[729] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[730] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[731] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[732] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[733] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[734] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[735] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[736] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[737] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[738] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[739] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[740] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[741] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[742] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[743] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[744] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[745] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[746] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[747] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[748] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[749] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[750] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[751] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[752] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[753] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[754] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[755] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[756] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[757] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[758] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[759] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[760] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[761] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[762] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[763] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[764] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[765] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[766] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[767] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[768] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[769] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[770] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[771] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[772] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[773] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[774] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[775] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[776] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[777] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[778] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[779] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[780] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[781] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[782] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[783] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[784] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[785] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[786] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[787] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[788] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[789] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[790] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[791] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[792] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[793] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[794] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[795] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[796] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[797] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[798] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[799] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[800] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[801] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[802] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[803] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[804] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[805] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[806] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[807] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[808] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[809] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[810] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[811] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[812] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[813] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[814] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[815] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[816] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[817] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[818] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[819] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[820] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[821] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[822] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[823] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[824] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[825] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[826] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[827] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[828] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[829] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[830] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[831] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[832] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[833] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[834] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[835] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[836] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[837] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[838] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[839] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[840] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[841] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[842] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[843] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[844] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[845] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[846] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[847] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[848] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[849] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[850] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[851] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[852] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[853] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[854] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[855] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[856] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[857] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[858] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[859] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[860] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[861] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[862] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[863] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[864] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[865] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[866] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[867] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[868] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[869] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[870] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[871] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[872] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[873] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[874] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[875] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[876] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[877] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[878] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[879] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[880] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[881] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[882] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[883] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[884] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[885] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[886] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[887] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[888] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[889] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[890] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[891] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[892] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[893] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[894] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[895] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[896] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[897] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[898] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[899] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[900] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[901] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[902] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[903] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[904] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[905] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[906] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[907] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[908] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[909] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[910] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[911] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[912] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[913] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[914] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[915] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[916] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[917] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[918] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[919] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[920] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[921] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[922] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[923] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[924] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[925] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[926] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[927] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[928] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[929] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[930] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[931] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[932] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[933] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[934] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[935] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[936] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[937] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[938] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[939] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[940] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[941] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[942] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[943] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[944] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[945] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[946] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[947] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[948] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[949] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[950] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[951] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[952] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[953] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[954] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[955] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[956] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[957] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[958] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[959] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[960] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[961] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[962] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[963] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[964] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[965] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[966] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[967] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[968] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[969] = 3U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[970] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[971] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[972] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[973] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[974] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[975] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[976] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[977] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[978] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[979] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[980] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[981] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[982] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[983] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[984] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[985] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[986] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[987] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[988] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[989] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[990] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[991] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[992] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[993] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[994] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[995] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[996] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[997] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[998] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[999] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1000] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1001] = 1U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1002] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1003] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1004] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1005] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1006] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1007] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1008] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1009] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1010] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1011] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1012] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1013] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1014] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1015] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1016] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1017] = 2U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1018] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1019] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1020] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1021] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1022] = 0U; __Vtable13_UartVdf__DOT__multmod_1___DOT___zz_1_[1023] = 0U; __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter = VL_RAND_RESET_I(20); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state = VL_RAND_RESET_I(3); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1 = VL_RAND_RESET_I(1); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2 = VL_RAND_RESET_I(1); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3 = VL_RAND_RESET_I(1); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4 = VL_RAND_RESET_I(1); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value = VL_RAND_RESET_I(1); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = VL_RAND_RESET_I(3); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_validReg = VL_RAND_RESET_I(1); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_0 = VL_RAND_RESET_I(1); __Vdly__UartVdf__DOT__multmod_1___DOT__fsm_stateReg = VL_RAND_RESET_I(4); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value = VL_RAND_RESET_I(3); __Vdly__UartVdf__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_parity = VL_RAND_RESET_I(1); __Vclklast__TOP__clk = VL_RAND_RESET_I(1); __Vclklast__TOP__reset = VL_RAND_RESET_I(1); __Vm_traceActivity = VL_RAND_RESET_I(32); }
[ "thorsten_knoll@yahoo.de" ]
thorsten_knoll@yahoo.de
dfd2a820208bdfa26f46b54abcb300502dc9332b
895f9459d2d10faf97577e8c42d68bbe94feccb1
/Temperature_sensor_trial/Temperature_sensor_trial.ino
eacf036c8b20abde5e3f7ca24ea9793762911af4
[]
no_license
kgeeknerdsley/ewb-sensors
5f43634917cd416973191be1873e761b0aadcdad
1fff2f3cebe9bc068cc9f57e24a0113e6c5ca513
refs/heads/master
2020-04-29T09:02:15.937253
2019-03-16T18:34:43
2019-03-16T18:34:43
176,008,974
1
1
null
2019-03-16T19:25:52
2019-03-16T18:24:36
C++
UTF-8
C++
false
false
800
ino
const int temperaturePin = 0; int i; bool avgCollected; float averages[20]; float avgTemp; void setup() { Serial.begin(9600); avgCollected = false; avgTemp = 0; } void loop() { float voltage, degreesC, degreesF; voltage = getVoltage(temperaturePin); degreesC = (voltage - 0.5) * 100.0; degreesF = degreesC * (9.0/5.0) + 32.0; averages[i] = degreesF; Serial.println(averages[i]); i++; if(i > 19) { i = 0; avgCollected = true; } if(avgCollected) { for(int x = 0; x < 19; x++) { avgTemp = avgTemp + averages[x]; } avgTemp = avgTemp / 20; Serial.print("Average temperature: "); Serial.print(avgTemp); Serial.print(" F"); } delay(1000); } float getVoltage(int pin) { return (analogRead(pin) * 0.004882814); }
[ "noreply@github.com" ]
noreply@github.com
2209162c6db94c5a3924860a1c38fa4290227c49
59da869408fa23b1ff6aa939d837eec455571e39
/8-Structs/vector2.cpp
61097352192a48f3531140c9f6dc117e383c63f2
[]
no_license
TheBlackMezek/IntroToCpp
31c16788f65f15ffa7f4e0a056d69006e015c67b
017d3a3ac86f54c499701f4e3ae86e2634b53aab
refs/heads/master
2021-06-25T22:25:38.472573
2017-09-06T16:44:50
2017-09-06T16:44:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
288
cpp
#include "vector2.h" #include <math.h> vec2 affineSum(vec2 v1, vec2 v2) { return v1.x * v2.x + v1.y * v2.y; } vec2 vecDiff(vec2 v1, vec2 v2) { return vec2{ v1.x - v2.x, v2.y - v2.y }; } float vecDist(vec2 v1, vec2 v2) { return sqrtf(pow(v1.x - v2.x, 2) + pow(v1.y - v2.y, 2)); }
[ "s179069@students.aie.edu.au" ]
s179069@students.aie.edu.au
ca5ce07cd09080c9562219c1fa51b2a20bfd8858
1650f4c985daf4a72d8db0e5cad16cdfaaaad984
/src/server/scripts/EasternKingdoms/Gilneas/gilneas.cpp
37d1e3cbfdf88ba6e22b3cf3102fb5c8d2546bcd
[]
no_license
Shkipper/wowa
a797caba8a9ff09843d3b9f4d350b70e97a9c9ac
20d5940889daecf46de322d9e0988db2620da569
refs/heads/master
2021-08-19T22:32:03.723867
2016-10-17T21:02:03
2016-10-17T21:02:03
112,217,958
0
2
null
null
null
null
UTF-8
C++
false
false
414,801
cpp
#include "CellImpl.h" #include "GridNotifiers.h" #include "SpellScript.h" #include "Vehicle.h" #include "CreatureTextMgr.h" #include "Language.h" #include "MoveSpline.h" #include "CombatAI.h" #include "ScriptedCreature.h" #include "ScriptedGossip.h" #include "ScriptMgr.h" #include "SpellAuras.h" #include "SpellAuraEffects.h" #include "MoveSplineInit.h" #include "ScriptMgr.h" #include "ScriptedCreature.h" #include <array> enum { SPELL_ZONE_SPECIFIC_01 = 59073, SPELL_ZONE_SPECIFIC_06 = 68481, SPELL_ZONE_SPECIFIC_07 = 68482, SPELL_ZONE_SPECIFIC_08 = 68483, SPELL_ZONE_SPECIFIC_11 = 69484, SPELL_ZONE_SPECIFIC_12 = 69485, SPELL_ZONE_SPECIFIC_13 = 69486, SPELL_ZONE_SPECIFIC_14 = 70695, SPELL_ZONE_SPECIFIC_19 = 74096, SPELL_WORGEN_BITE = 72870, SPELL_INFECTED_BITE = 72872, SPELL_HIDEOUS_BITE_WOUND = 76642, SPELL_INVISIBILITY_DETECTION_1 = 49416, SPELL_INVISIBILITY_DETECTION_2 = 49417, SPELL_INVISIBILITY_DETECTION_3 = 60922, SPELL_GENERIC_QUEST_INVISIBILITY_2 = 49415, QUEST_LOCKDOWN = 14078, QUEST_SOMETHINGS_AMISS = 14091, QUEST_ROYAL_ORDERS = 14099, QUEST_STEADY_SHOT = 14276, QUEST_ARCANE_MISSILES = 14281, QUEST_CHARGE = 14266, QUEST_IMMOLATE = 14274, QUEST_EVISCERATE = 14272, QUEST_FLASH_HEAL = 14279, QUEST_A_REJUVENATING_TOUCH = 14283, QUEST_OLD_DIVISIONS = 14157, QUEST_BY_THE_SKIN_OF_HIS_TEETH = 14154, QUEST_THE_REBEL_LORD_ARSENAL = 14159, QUEST_FROM_THE_SHADOWS = 14204, QUEST_SAVE_KRENNAN_ARANAS = 14293, QUEST_TIME_TO_REGROUP = 14294, QUEST_LAST_STAND = 14222, QUEST_NEVER_SURRENDER = 14221, QUEST_LAST_CHANCE_AT_HUMANITY = 14375, QUEST_IN_NEED_OF_INGR = 14320, QUEST_INVASION = 14321, QUEST_LEADER_OF_THE_PACK = 14386, QUEST_TO_GREYMANE_MANOR = 14465, QUEST_THE_KINGS_OBSERVATORY = 14466, QUEST_ALAS_GILNEAS = 14467, QUEST_EXODUS = 24438, QUEST_INTRODUCTIONS_ARE_IN_ORDER = 24472, QUEST_LOSING_YOUR_TAIL = 24616, QUEST_AT_OUR_DOORSTEP = 24627, QUEST_TAKE_BACK_WHATS_OURS = 24646, QUEST_NEITHER_HUMAN_NOR_BEAST = 24593, QUEST_BETRAYAL_AT_TEMPESTS_REACH = 24592, QUEST_THE_BATTLE_FOR_GILNEAS_CITY = 24904, QUEST_THE_HUNT_FOR_SYLVANAS = 24902, }; enum { MENU_MAIN = 17125, MENU_GATHERING_AND_MINING_PROFESSIONS = 17126, MENU_CRAFTING_PROFESSIONS = 17127, MENU_HERBALISM = 17128, MENU_MINING = 17129, MENU_SKINNING = 17130, MENU_ALCHEMY = 17131, MENU_BLACKSMITHING = 17132, MENU_ENCHANTING = 17133, MENU_ENGINERING = 17134, MENU_INSCRIPTION = 17135, MENU_JEWELCRAFTING = 17136, MENU_LEATHERWORKING = 17137, MENU_TAILORING = 17138, }; #define TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS "Tell me about gathering professions." #define TELL_ME_ABOUT_CRAFTING_PROFESSIONS "Tell me about production professions." #define TELL_ME_ABOUT_HERBALISM "Tell me about Herbalism." #define TELL_ME_ABOUT_MINING "Tell me about Mining." #define TELL_ME_ABOUT_SKINNING "Tell me about Skinning." #define TELL_ME_ABOUT_ALCHEMY "Tell me about Alchemy." #define TELL_ME_ABOUT_BLACKSMITHING "Tell me about Blacksmithing." #define TELL_ME_ABOUT_ENCHANTING "Tell me about Enchanting." #define TELL_ME_ABOUT_ENGINERING "Tell me about Engineering." #define TELL_ME_ABOUT_INSCRIPTION "Tell me about Inscription." #define TELL_ME_ABOUT_JEWELCRAFTING "Tell me about Jewelcrafting." #define TELL_ME_ABOUT_LEATHERWORKING "Tell me about Leatherworking." #define TELL_ME_ABOUT_TAILORING "Tell me about Tailoring." #define TRAIN_ME_ALCHEMY "Train me in Alchemy." #define TRAIN_ME_HERBALISM "Train me in Herbalism." #define TRAIN_ME_INSCRIPTION "Train me in Inscription." #define TRAIN_ME_MINING "Train me in Mining." #define TRAIN_ME_BLACKSMITHING "Train me in Blacksmithing." #define TRAIN_ME_SKINNING "Train me in Skinning." #define TRAIN_ME_ENGINERING "Train me in Engineering." #define TRAIN_ME_JEWELCRAFTING "Train me in Jewelcrafting." #define TRAIN_ME_LEATHERWORKING "Train me in Leatherworking." #define TRAIN_ME_TAILORING "Train me in Tailoring." #define TRAIN_ME_ENCHANTING "Train me in Enchanting." class npc_jack_derrington : public CreatureScript { public: npc_jack_derrington() : CreatureScript("npc_jack_derrington") { } private: void SendTrainerList(Player* player, Creature* creature, uint32 reqSkill, uint32 initialLearnSpellEntry) { std::string strTitle = player->GetSession()->GetTrinityString(LANG_NPCINFO_TRAINER); TrainerSpellData const* trainer_spells = creature->GetTrainerSpells(); if (!trainer_spells) return; if (!player->GetFreePrimaryProfessionPoints()) initialLearnSpellEntry = 0; WorldPacket data(SMSG_TRAINER_LIST, 8 + 4 + 4 + 4 + trainer_spells->spellList.size() * 38 + strTitle.size() + 1); data << creature->GetGUID(); data << uint32(trainer_spells->trainerType); data << uint32(1); size_t count_pos = data.wpos(); data << uint32(trainer_spells->spellList.size()); uint32 count = 0; for (TrainerSpellMap::const_iterator itr = trainer_spells->spellList.begin(); itr != trainer_spells->spellList.end(); ++itr) { TrainerSpell const* tSpell = &itr->second; TrainerSpellState state = player->GetTrainerSpellState(tSpell); if (tSpell->spell != initialLearnSpellEntry && tSpell->reqSkill != reqSkill) continue; data << uint32(tSpell->spell); data << uint8(state); data << uint32(tSpell->spellCost); data << uint8(tSpell->reqLevel); data << uint32(tSpell->reqSkill); data << uint32(tSpell->reqSkillValue); data << uint32(0); data << uint32(0); data << uint32(0); data << uint32(0); ++count; } data << strTitle; data.put<uint32>(count_pos,count); player->GetSession()->SendPacket(&data); return; } bool OnGossipHello(Player* player, Creature* creature) { player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_MAIN, creature->GetGUID()); return true; } bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) { player->PlayerTalkClass->ClearMenus(); switch (action) { case GOSSIP_ACTION_INFO_DEF + 1: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_HERBALISM, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_MINING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 4); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_SKINNING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 5); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_GATHERING_AND_MINING_PROFESSIONS, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 2: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_ALCHEMY, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 6); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_BLACKSMITHING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 7); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_ENCHANTING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 8); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_ENGINERING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 9); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_INSCRIPTION, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 10); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_JEWELCRAFTING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 11); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_LEATHERWORKING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 12); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_TAILORING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 13); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->SEND_GOSSIP_MENU(MENU_CRAFTING_PROFESSIONS, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 3: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_HERBALISM, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_HERBALISM); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_ALCHEMY, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 6); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_INSCRIPTION, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 10); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_HERBALISM, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 4: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_MINING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_MINING); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_BLACKSMITHING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 7); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_ENGINERING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 9); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_JEWELCRAFTING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 11); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_MINING, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 5: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_SKINNING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_SKINNING); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_LEATHERWORKING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 12); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_SKINNING, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 6: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_ALCHEMY, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_ALCHEMY); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_HERBALISM, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_INSCRIPTION, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 10); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_ALCHEMY, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 7: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_BLACKSMITHING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_BLACKSMITHING); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_MINING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 4); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_BLACKSMITHING, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 8: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_ENCHANTING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_ENCHANTING); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_TAILORING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 13); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_ENCHANTING, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 9: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_ENGINERING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_ENGINEERING); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_MINING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 4); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_ENGINERING, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 10: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_INSCRIPTION, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_INSCRIPTION); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_HERBALISM, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_INSCRIPTION, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 11: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_JEWELCRAFTING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_JEWELCRAFTING); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_MINING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 4); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_JEWELCRAFTING, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 12: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_LEATHERWORKING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_LEATHERWORKING); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_SKINNING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 5); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_LEATHERWORKING, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 13: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TRAINER, TRAIN_ME_TAILORING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + SKILL_TAILORING); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_ENCHANTING, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 8); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_GATHERING_AND_MINING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TELL_ME_ABOUT_CRAFTING_PROFESSIONS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); player->SEND_GOSSIP_MENU(MENU_TAILORING, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + SKILL_HERBALISM: SendTrainerList(player, creature, SKILL_HERBALISM, 2372); break; case GOSSIP_ACTION_INFO_DEF + SKILL_ALCHEMY: SendTrainerList(player, creature, SKILL_ALCHEMY, 2275); break; case GOSSIP_ACTION_INFO_DEF + SKILL_INSCRIPTION: SendTrainerList(player, creature, SKILL_INSCRIPTION, 45375); break; case GOSSIP_ACTION_INFO_DEF + SKILL_MINING: SendTrainerList(player, creature, SKILL_MINING, 2581); break; case GOSSIP_ACTION_INFO_DEF + SKILL_BLACKSMITHING: SendTrainerList(player, creature, SKILL_BLACKSMITHING, 2020); break; case GOSSIP_ACTION_INFO_DEF + SKILL_SKINNING: SendTrainerList(player, creature, SKILL_SKINNING, 8615); break; case GOSSIP_ACTION_INFO_DEF + SKILL_ENGINEERING: SendTrainerList(player, creature, SKILL_ENGINEERING, 4039); break; case GOSSIP_ACTION_INFO_DEF + SKILL_JEWELCRAFTING: SendTrainerList(player, creature, SKILL_JEWELCRAFTING, 25245); break; case GOSSIP_ACTION_INFO_DEF + SKILL_LEATHERWORKING: SendTrainerList(player, creature, SKILL_LEATHERWORKING, 2155); break; case GOSSIP_ACTION_INFO_DEF + SKILL_TAILORING: SendTrainerList(player, creature, SKILL_TAILORING, 3911); break; case GOSSIP_ACTION_INFO_DEF + SKILL_ENCHANTING: SendTrainerList(player, creature, SKILL_ENCHANTING, 25245); break; } return true; } }; class npc_gilneas_tremors_credit : public CreatureScript { public: npc_gilneas_tremors_credit() : CreatureScript("npc_gilneas_tremors_credit") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_TREMOR_1 = 1, EVENT_TREMOR_2 = 2, EVENT_TREMOR_3 = 3, SPELL_CATACLYSM_TYPE_1 = 80133, SPELL_CATACLYSM_TYPE_2 = 68953, SPELL_CATACLYSM_TYPE_3 = 80134, }; EventMap events; void InitializeAI() { Reset(); me->setActive(true); } void Reset() { events.Reset(); events.ScheduleEvent(EVENT_TREMOR_1, urand(30000, 150000)); events.ScheduleEvent(EVENT_TREMOR_2, urand(20000, 100000)); events.ScheduleEvent(EVENT_TREMOR_3, urand(10000, 50000)); } void Tremor(uint32 phaseMask, uint32 uiSpellId) { Map::PlayerList const &players = me->GetMap()->GetPlayers(); for (Map::PlayerList::const_iterator i = players.begin(); i != players.end(); ++i) if (Player* player = i->getSource()) if (phaseMask & player->GetPhaseMask()) player->CastSpell(player, uiSpellId, false); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_TREMOR_1: Tremor(4096, SPELL_CATACLYSM_TYPE_1); events.ScheduleEvent(EVENT_TREMOR_1, urand(30000, 150000)); break; case EVENT_TREMOR_2: Tremor(8192, SPELL_CATACLYSM_TYPE_2); events.ScheduleEvent(EVENT_TREMOR_2, urand(20000, 100000)); break; case EVENT_TREMOR_3: Tremor(16384, SPELL_CATACLYSM_TYPE_3); events.ScheduleEvent(EVENT_TREMOR_3, urand(10000, 50000)); break; } } } }; }; struct Coord { float x; float y; float z; }; struct CrowFlyPosition { Coord FirstCoord; Coord SecondCoord; }; const CrowFlyPosition CrowFlyPos[12]= { {{-1398.24f, 1455.26f, 39.6586f},{-1403.93f, 1464.87f, 47.7066f}}, {{-1628.58f, 1320.29f, 27.7544f},{-1626.90f, 1306.58f, 34.9702f}}, {{-1799.76f, 1564.33f, 34.9408f},{-1788.64f, 1561.74f, 38.4683f}}, {{-1840.45f, 2299.17f, 50.2894f},{-1850.23f, 2302.62f, 52.4776f}}, {{-1978.48f, 2319.58f, 36.5107f},{-1979.80f, 2329.24f, 38.8598f}}, {{-1914.39f, 2406.48f, 37.4498f},{-1916.48f, 2416.10f, 39.2891f}}, {{-1844.85f, 2328.28f, 47.8401f},{-1836.64f, 2327.05f, 50.0315f}}, {{-1845.20f, 2502.86f, 6.67603f},{-1839.71f, 2508.70f, 9.67311f}}, {{-2031.81f, 2280.29f, 28.7353f},{-2043.98f, 2286.43f, 32.0705f}}, {{-2164.61f, 2213.12f, 27.4170f},{-2169.48f, 2224.64f, 29.1592f}}, {{-1775.46f, 2380.44f, 51.9086f},{-1767.75f, 2385.99f, 55.8622f}}, {{-1650.79f, 2507.28f, 109.893f},{-1645.28f, 2506.02f, 115.819f}}, }; class npc_gilnean_crow : public CreatureScript { public: npc_gilnean_crow() : CreatureScript("npc_gilnean_crow") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , flying(false) { } uint8 pointId; bool flying; void InitializeAI() { FindFlyId(); } void FindFlyId() { float dist = std::numeric_limits<float>::max(); int i = 0; for (int j = 0; j < 12; ++j) { float _dist = me->GetDistance2d(CrowFlyPos[j].FirstCoord.x, CrowFlyPos[j].FirstCoord.y); if (dist > _dist) { dist = _dist; i = j; } } pointId = i; } void FlyAway() { flying = true; Movement::MoveSplineInit init(me); G3D::Vector3 vertice0( CrowFlyPos[pointId].FirstCoord.x + irand(-4, 4), CrowFlyPos[pointId].FirstCoord.y + irand(-4, 4), CrowFlyPos[pointId].FirstCoord.z + irand(-4, 4)); init.Path().push_back(vertice0); G3D::Vector3 vertice1( CrowFlyPos[pointId].SecondCoord.x + irand(-4, 4), CrowFlyPos[pointId].SecondCoord.y + irand(-4, 4), CrowFlyPos[pointId].SecondCoord.z + irand(-4, 4)); init.Path().push_back(vertice1); init.SetFly(); init.SetSmooth(); init.SetVelocity(7.5f); init.SetUncompressed(); init.Launch(); me->DespawnOrUnsummon(10000); } void JustRespawned() { flying = false; } void MoveInLineOfSight(Unit* who) { if (!flying && who->GetTypeId() == TYPEID_PLAYER && me->IsWithinDistInMap(who, 15.0f)) FlyAway(); } }; }; class npc_prince_liam_greymane_phase_1 : public CreatureScript { public: npc_prince_liam_greymane_phase_1() : CreatureScript("npc_prince_liam_greymane_phase_1") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { enum { NPC_PANICKED_CITIZEN = 34851, CITIZEN_SAY_WHAT_AT_THE_ROOF = 1, }; if (quest->GetQuestId() == QUEST_LOCKDOWN) if (Creature* cinizen = creature->FindNearestCreature(NPC_PANICKED_CITIZEN, 30.0f)) if (cinizen->IsAIEnabled) cinizen->AI()->Talk(CITIZEN_SAY_WHAT_AT_THE_ROOF, player->GetGUID(), true); return false; } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_SAY_INTRO_1 = 1, EVENT_SAY_INTRO_2 = 2, EVENT_SAY_INTRO_3 = 3, LIAM_TALK_INTRO_1 = 1, LIAM_TALK_INTRO_2 = 2, LIAM_TALK_INTRO_3 = 3, }; EventMap events; void Reset() { events.Reset(); events.ScheduleEvent(EVENT_SAY_INTRO_1, 1000); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_SAY_INTRO_1: Talk(LIAM_TALK_INTRO_1); events.ScheduleEvent(EVENT_SAY_INTRO_2, 21000); break; case EVENT_SAY_INTRO_2: Talk(LIAM_TALK_INTRO_2); events.ScheduleEvent(EVENT_SAY_INTRO_3, 20000); break; case EVENT_SAY_INTRO_3: Talk(LIAM_TALK_INTRO_3); events.ScheduleEvent(EVENT_SAY_INTRO_1, 22000); break; } } return; } DoMeleeAttackIfReady(); } }; }; class npc_gilneas_city_guard_gate : public CreatureScript { public: npc_gilneas_city_guard_gate() : CreatureScript("npc_gilneas_city_guard_gate") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_GUARD_TALK = 1, EVENT_CITIZEN_TALK = 2, GUARD_RANDOM_TEXT = 1, CITIZEN_RANDOM_TEXT = 1, }; EventMap events; void Reset() { events.Reset(); if (me->GetMountID()) events.ScheduleEvent(EVENT_GUARD_TALK, urand(10000, 20000)); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_GUARD_TALK: Talk(GUARD_RANDOM_TEXT); events.ScheduleEvent(EVENT_CITIZEN_TALK, urand(10000, 20000)); break; case EVENT_CITIZEN_TALK: { std::list<Creature*> citizens; me->GetCreatureListWithEntryInGrid(citizens, 44086, 35.0f); if (!citizens.empty()) if (Creature* citizen = WoWSource::Containers::SelectRandomContainerElement(citizens)) if (citizen->IsAIEnabled) citizen->AI()->Talk(CITIZEN_RANDOM_TEXT); events.ScheduleEvent(EVENT_GUARD_TALK, urand(20000, 40000)); } break; } } return; } DoMeleeAttackIfReady(); } }; }; class npc_panicked_citizen_gate : public CreatureScript { public: npc_panicked_citizen_gate() : CreatureScript("npc_panicked_citizen_gate") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_RANDOM_EMOTE = 1, }; EventMap events; void Reset() { events.ScheduleEvent(EVENT_RANDOM_EMOTE, urand(4000, 8000)); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) { events.Update(diff); if (events.ExecuteEvent() == EVENT_RANDOM_EMOTE) { const uint16 PanickedCitizenRandomEmote[5] = { EMOTE_ONESHOT_COWER, EMOTE_ONESHOT_TALK, EMOTE_ONESHOT_CRY, EMOTE_ONESHOT_BEG, EMOTE_ONESHOT_EXCLAMATION, }; uint8 roll = urand(0, 4); me->HandleEmoteCommand(PanickedCitizenRandomEmote[roll]); events.ScheduleEvent(EVENT_RANDOM_EMOTE, urand(2000, 5000)); } return; } DoMeleeAttackIfReady(); } }; }; class npc_lieutenant_walden : public CreatureScript { public: npc_lieutenant_walden() : CreatureScript("npc_lieutenant_walden") { } private: bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == QUEST_LOCKDOWN) { player->CastSpell(player, SPELL_ZONE_SPECIFIC_01, false); player->CastSpell(player, SPELL_INVISIBILITY_DETECTION_1, false); player->SaveToDB(); } return false; } }; class AggroEvent : public BasicEvent { public: AggroEvent(Creature* creature) : _creature(creature) { } private: bool Execute(uint64 /*time*/, uint32 /*diff*/) { if (!_creature->isInCombat()) _creature->CastCustomSpell(43263, SPELLVALUE_MAX_TARGETS, 1); return true; } Creature* _creature; }; class npc_gilneas_worgen : public CreatureScript { public: npc_gilneas_worgen() : CreatureScript("npc_gilneas_worgen") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { SPELL_ENRAGE = 8599, }; bool enrage; void Reset() { enrage = false; me->m_Events.AddEvent(new AggroEvent(me), me->m_Events.CalculateTime(500)); } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } else { if (!enrage && me->HealthBelowPctDamaged(30, damage)) { enrage = true; me->CastSpell(me, SPELL_ENRAGE, false); } if (Unit* victim = me->getVictim()) { if (victim->GetTypeId() == TYPEID_UNIT) { me->getThreatManager().resetAllAggro(); me->getThreatManager().addThreat(attacker, std::numeric_limits<float>::max()); AttackStart(attacker); } } } } }; }; struct ShooterGuardAI : public ScriptedAI { ShooterGuardAI(Creature* creature, uint32 _shootSpellEntry, float _rangeDist = 30.f) : ScriptedAI(creature) , shootSpellEntry(_shootSpellEntry) , rangeDist(_rangeDist) , isActive(true) { } enum { EVENT_SHOOT = 1, }; EventMap events; uint32 shootSpellEntry; float rangeDist; bool isActive; void Reset() { events.Reset(); } void SetActive(bool enable) { isActive = enable; } void EnterCombat(Unit* /*who*/) { events.ScheduleEvent(EVENT_SHOOT, urand(500, 2000)); } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } } void AttackStart(Unit* who) { bool melee = me->IsWithinMeleeRange(who); me->Attack(who, melee); } bool ShooterAIUpdateVictim() { if (!isActive) return false; if (!UpdateVictim()) return false; if (Unit* victim = me->getVictim()) if (victim->GetTypeId() == TYPEID_PLAYER) if (me->GetDistance(victim) <= rangeDist) return true; if (Unit* target = SelectTarget(SELECT_TARGET_NEAREST, 0)) { if (me->GetDistance(target) > rangeDist) { EnterEvadeMode(); return false; } else if (me->getVictim() != target) { me->getThreatManager().resetAllAggro(); me->getThreatManager().addThreat(target, std::numeric_limits<float>::max()); AttackStart(target); } } return true; } bool UpdateShooterAI(uint32 diff) { if (!ShooterAIUpdateVictim()) return false; events.Update(diff); if (me->HasUnitState(UNIT_STATE_CASTING)) return true; if (events.ExecuteEvent() == EVENT_SHOOT) { if (Unit* victim = me->getVictim()) { if (!me->IsWithinMeleeRange(victim)) { if (me->HasUnitState(UNIT_STATE_MELEE_ATTACKING)) { me->ClearUnitState(UNIT_STATE_MELEE_ATTACKING); me->SendMeleeAttackStop(victim); } me->CastSpell(victim, shootSpellEntry, true); } else { if (!me->HasUnitState(UNIT_STATE_MELEE_ATTACKING)) { me->AddUnitState(UNIT_STATE_MELEE_ATTACKING); me->SendMeleeAttackStart(victim); } } } events.ScheduleEvent(EVENT_SHOOT, 2000); } DoMeleeAttackIfReady(); return true; } }; enum { SPELL_GUARD_SHOOT_DEFAULT = 20463, SPELL_GUARD_SHOOT_DEADLY = 67595, }; class npc_gilneas_city_guard : public CreatureScript { public: npc_gilneas_city_guard(const char* scriptName, uint32 shootSpellEntry) : CreatureScript(scriptName) , _shootSpellEntry(shootSpellEntry) { } private: uint32 _shootSpellEntry; CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature, _shootSpellEntry); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature, uint32 shootSpellEntry) : ScriptedAI(creature) , shooterAI(creature, shootSpellEntry) { } ShooterGuardAI shooterAI; void InitializeAI() { Reset(); SetCombatMovement(false); me->m_CombatDistance = 30.0f; } void Reset() { shooterAI.Reset(); me->m_Events.AddEvent(new AggroEvent(me), me->m_Events.CalculateTime(500)); } void DamageTaken(Unit* attacker, uint32 &damage) { shooterAI.DamageTaken(attacker, damage); } void EnterCombat(Unit* who) { shooterAI.EnterCombat(who); } void UpdateAI(uint32 const diff) { shooterAI.UpdateShooterAI(diff); } }; }; class npc_prince_liam_greymane_phase_2 : public CreatureScript { public: npc_prince_liam_greymane_phase_2() : CreatureScript("npc_prince_liam_greymane_phase_2") { } private: bool OnQuestAccept(Player* player, Creature* /*creature*/, const Quest* quest) { if (quest->GetQuestId() == QUEST_ROYAL_ORDERS) { player->RemoveAura(SPELL_INVISIBILITY_DETECTION_1); player->CastSpell(player, SPELL_INVISIBILITY_DETECTION_2, false); player->SaveToDB(); } return false; } CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , shooterAI(creature, SPELL_SHOOT) { } enum { EVENT_TALK = 1, LIAM_RANDOM_TEXT = 1, SPELL_SHOOT = 20463, }; EventMap events; ShooterGuardAI shooterAI; void InitializeAI() { Reset(); SetCombatMovement(false); me->m_CombatDistance = 30.0f; } void Reset() { shooterAI.Reset(); events.Reset(); } void DamageTaken(Unit* attacker, uint32 &damage) { shooterAI.DamageTaken(attacker, damage); } void EnterCombat(Unit* who) { shooterAI.EnterCombat(who); events.ScheduleEvent(EVENT_TALK, 1000); } void UpdateAI(uint32 const diff) { if (!shooterAI.UpdateShooterAI(diff)) return; events.Update(diff); if (events.ExecuteEvent() == EVENT_TALK) { Talk(LIAM_RANDOM_TEXT); events.ScheduleEvent(EVENT_TALK, urand(30000, 90000)); } } }; }; // Quest Evacuate the Merchant Square 14098 class npc_qems_citizen : public CreatureScript { public: npc_qems_citizen() : CreatureScript("npc_qems_citizen") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_FINISH_RUN = 1, EVENT_RUN_AWAY = 2, CITIZEN_RANDOM_TEXT = 1, NPC_QEMS_KILL_CREDIT = 35830, }; EventMap events; void InitializeAI() { me->SetReactState(REACT_PASSIVE); } void isSummonedBy(Unit* /*summoner*/) { if (GameObject* go = me->FindNearestGameObject(195327, 10.f)) { float x, y, z; me->GetPosition(x, y, z); Movement::MoveSplineInit init(me); G3D::Vector3 vertice0(x, y, z); init.Path().push_back(vertice0); go->GetNearPoint2D(x, y, 1.0f, go->GetOrientation() + M_PI); G3D::Vector3 vertice1(x, y, z); init.Path().push_back(vertice1); go->GetNearPoint2D(x, y, 3.0f, go->GetOrientation()); G3D::Vector3 vertice2(x, y, z); init.Path().push_back(vertice2); init.SetUncompressed(); init.Launch(); events.ScheduleEvent(EVENT_FINISH_RUN, 20000); } } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_FINISH_RUN: { if (me->isSummon()) if (Unit* summoner = me->ToTempSummon()->GetSummoner()) if (Player* player = summoner->ToPlayer()) player->KilledMonsterCredit(NPC_QEMS_KILL_CREDIT, 0); Talk(CITIZEN_RANDOM_TEXT); events.ScheduleEvent(EVENT_RUN_AWAY, 1000); } break; case EVENT_RUN_AWAY: { float x, y; me->GetNearPoint2D(x, y, 5.0f, me->GetOrientation() + frand(-M_PI / 4, M_PI / 4)); me->GetMotionMaster()->MovePoint(0, x, y, me->GetPositionZ()); me->DespawnOrUnsummon(10000); } break; } } } }; }; class npc_qems_worgen : public CreatureScript { public: npc_qems_worgen() : CreatureScript("npc_qems_worgen") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_START_RUN = 1, EVENT_FINISH_RUN = 2, }; EventMap events; void InitializeAI() { me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->SetReactState(REACT_PASSIVE); } void isSummonedBy(Unit* /*summoner*/) { events.ScheduleEvent(EVENT_START_RUN, 1500); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_START_RUN: { if (GameObject* go = me->FindNearestGameObject(195327, 10.f)) { float x, y, z; me->GetPosition(x, y, z); Movement::MoveSplineInit init(me); G3D::Vector3 vertice0(x, y, z); init.Path().push_back(vertice0); go->GetNearPoint2D(x, y, 1.0f, go->GetOrientation() + M_PI); G3D::Vector3 vertice1(x, y, z); init.Path().push_back(vertice1); go->GetNearPoint2D(x, y, 3.0f, go->GetOrientation()); G3D::Vector3 vertice2(x, y, z); init.Path().push_back(vertice2); init.SetUncompressed(); init.Launch(); events.ScheduleEvent(EVENT_FINISH_RUN, 10000); } } break; case EVENT_FINISH_RUN: { if (me->isSummon()) { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) { me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->SetReactState(REACT_AGGRESSIVE); AttackStart(summoner); me->AddThreat(summoner, std::numeric_limits<float>::max()); } } } break; } } if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class spell_gilneas_knocking : public SpellScriptLoader { public: spell_gilneas_knocking() : SpellScriptLoader("spell_gilneas_knocking") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) Position doorPos; void FilterSingleTarget(WorldObject*& target) { doorPos.Relocate(target); } void ExtraEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); if (Unit* caster = GetCaster()) { float x, y; float angle = doorPos.GetOrientation() + M_PI * 0.75f; x = doorPos.GetPositionX() + 3.f * std::cos(angle); y = doorPos.GetPositionY() + 3.f * std::sin(angle); uint8 effectId = urand(EFFECT_1, EFFECT_2); caster->CastSpell(x, y, doorPos.GetPositionZ(), GetSpellInfo()->Effects[effectId].BasePoints, true); } } void Register() { OnObjectTargetSelect += SpellObjectTargetSelectFn(spell_script_impl::FilterSingleTarget, EFFECT_0, TARGET_GAMEOBJECT_TARGET); OnEffectHitTarget += SpellEffectFn(spell_script_impl::ExtraEffect, EFFECT_1, SPELL_EFFECT_DUMMY); } }; SpellScript * GetSpellScript() const { return new spell_script_impl; } }; // Class Trainers enum { TRAINER_SAY_QUEST_BEGIN = 1, TRAINER_SAY_QUEST_DONE = 2, }; class npc_gilneas_class_trainer : public CreatureScript { public: npc_gilneas_class_trainer(const char* scriptName, uint32 questEntry) : CreatureScript(scriptName) , _questEntry(questEntry) { } private: uint32 _questEntry; bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { if (quest->GetQuestId() == _questEntry) if (creature->IsAIEnabled) creature->AI()->Talk(TRAINER_SAY_QUEST_BEGIN, player->GetGUID(), true); return false; } bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == _questEntry) if (creature->IsAIEnabled) creature->AI()->Talk(TRAINER_SAY_QUEST_DONE, player->GetGUID(), true); return false; } }; class npc_myriam_spellwaker : public CreatureScript { public: npc_myriam_spellwaker() : CreatureScript("npc_myriam_spellwaker") { } private: bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { if (quest->GetQuestId() == QUEST_ARCANE_MISSILES) if (creature->IsAIEnabled) creature->AI()->Talk(TRAINER_SAY_QUEST_BEGIN, player->GetGUID(), true); return false; } bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == QUEST_ARCANE_MISSILES) if (creature->IsAIEnabled) creature->AI()->Talk(TRAINER_SAY_QUEST_DONE, player->GetGUID(), true); return false; } CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_CAST_FROSTBOLT = 1, SPELL_FROSTBOLT = 11538, }; EventMap events; void InitializeAI() { Reset(); SetCombatMovement(false); } void Reset() { events.Reset(); } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } } void EnterCombat(Unit* /*who*/) { events.ScheduleEvent(EVENT_CAST_FROSTBOLT, 250); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; events.Update(diff); if (events.ExecuteEvent() == EVENT_CAST_FROSTBOLT) { me->CastSpell(me->getVictim(), SPELL_FROSTBOLT, false); events.ScheduleEvent(EVENT_CAST_FROSTBOLT, 3000); } } }; }; class npc_sergeant_cleese : public CreatureScript { public: npc_sergeant_cleese() : CreatureScript("npc_sergeant_cleese") { } private: bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { if (quest->GetQuestId() == QUEST_CHARGE) if (creature->IsAIEnabled) creature->AI()->Talk(TRAINER_SAY_QUEST_BEGIN, player->GetGUID(), true); return false; } bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == QUEST_CHARGE) if (creature->IsAIEnabled) creature->AI()->Talk(TRAINER_SAY_QUEST_DONE, player->GetGUID(), true); return false; } CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } void InitializeAI() { me->m_CombatDistance = 20.0f; SetCombatMovement(false); } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } } }; }; class npc_gilneas_worgen_class_quest : public CreatureScript { public: npc_gilneas_worgen_class_quest() : CreatureScript("npc_gilneas_worgen_class_quest") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { SPELL_ENRAGE = 8599, SPELL_CHARGE = 100, SPELL_EVISCERATE = 2098, SPELL_CORRUPTION = 172, SPELL_STEADY_SHOT = 56641, SPELL_FROST_NOVA = 122, SPELL_MOONFIRE = 8921, NPC_CLASS_QUEST_CREDIT = 44175, }; bool enrage; void Reset() { enrage = false; me->m_Events.AddEvent(new AggroEvent(me), me->m_Events.CalculateTime(500)); } void SpellHit(Unit* caster, const SpellInfo* spell) { switch (spell->Id) { case SPELL_CHARGE: case SPELL_EVISCERATE: case SPELL_CORRUPTION: case SPELL_STEADY_SHOT: case SPELL_FROST_NOVA: case SPELL_MOONFIRE: if (Player* player = caster->ToPlayer()) player->KilledMonsterCredit(NPC_CLASS_QUEST_CREDIT); break; } } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } else { if (!enrage && me->HealthBelowPctDamaged(30, damage)) { enrage = true; me->CastSpell(me, SPELL_ENRAGE, false); } if (Unit* victim = me->getVictim()) { if (victim->GetTypeId() == TYPEID_UNIT) { me->getThreatManager().resetAllAggro(); me->getThreatManager().addThreat(attacker, std::numeric_limits<float>::max()); AttackStart(attacker); } } } } }; }; class npc_wounded_guard_class_quest : public CreatureScript { public: npc_wounded_guard_class_quest() : CreatureScript("npc_wounded_guard_class_quest") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { SPELL_FLASH_HEAL = 2061, SPELL_REJUVENATION = 774, NPC_CLASS_QUEST_CREDIT = 44175, }; bool enrage; void Reset() { enrage = false; me->m_Events.AddEvent(new AggroEvent(me), me->m_Events.CalculateTime(500)); } void SpellHit(Unit* caster, const SpellInfo* spell) { switch (spell->Id) { case SPELL_FLASH_HEAL: case SPELL_REJUVENATION: { if (Player* player = caster->ToPlayer()) player->KilledMonsterCredit(NPC_CLASS_QUEST_CREDIT); } break; } } void HealReceived(Unit* /*healer*/, uint32& heal) { if (me->GetHealthPct() > 50.f) me->SetHealth(1); } }; }; // Quest Old Divisions 14157 class npc_king_genn_greymane_phase_2 : public CreatureScript { public: npc_king_genn_greymane_phase_2() : CreatureScript("npc_king_genn_greymane_phase_2") { } private: enum { NPC_LORD_GODFREY = 35115, NPC_KING_GENN_GREYMANE = 35112, LORD_GODFREY_TEXT = 1, KING_GENN_GREYMANE_TEXT = 1, EVENT_UPDATE_PSC = 1, TYPE_PSC_PLAYER_GUID = 1, }; class PersonalTalkEvent : public BasicEvent { public: PersonalTalkEvent(Creature* source, uint64 playerGUID, uint8 textId) : _source(source) , _playerGUID(playerGUID) , _textId(textId) { } private: bool Execute(uint64 /*time*/, uint32 /*diff*/) { if (_source->IsAIEnabled) _source->AI()->Talk(_textId, _playerGUID, true); return true; } Creature* _source; uint64 _playerGUID; uint8 _textId; }; bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { if (quest->GetQuestId() == QUEST_OLD_DIVISIONS) { if (Creature* godfrey = creature->FindNearestCreature(NPC_LORD_GODFREY, 20.0f)) { if (godfrey->IsAIEnabled) godfrey->AI()->Talk(LORD_GODFREY_TEXT, player->GetGUID(), true); creature->m_Events.AddEvent(new PersonalTalkEvent(creature, player->GetGUID(), KING_GENN_GREYMANE_TEXT), creature->m_Events.CalculateTime(5000)); } } return false; } }; // Quest By the Skin of His Teeth 14154 enum { NPC_WORGEN_RUNT_L = 35456, NPC_WORGEN_ALPHA_L = 35170, NPC_WORGEN_RUNT_R = 35188, NPC_WORGEN_ALPHA_R = 35167, SPELL_GILNEAS_PRISON_PERIODIC_FORCECAST = 66914, SPELL_GILNEAS_PRISON_PERIODIC_1 = 66894, SPELL_GILNEAS_PRISON_PERIODIC_2 = 68218, ACTION_QBSHT_SUMMON_WORGEN = 3, TYPE_QBSHT_WORGEN_ID = 1, }; struct WorgenPosQBSHTR { uint32 entry; Position summonPos; Position runPos; Position jumpPos; }; const WorgenPosQBSHTR WorgenPosRight[5] = { {NPC_WORGEN_ALPHA_R, {-1625.943f,1491.782f,73.729f,3.94f},{-1632.987f,1484.928f,75.025f,0.f},{-1673.199f,1447.334f,52.288f,0.f}}, {NPC_WORGEN_RUNT_R, {-1628.770f,1494.307f,71.109f,3.94f},{-1634.433f,1488.506f,72.055f,0.f},{-1674.365f,1450.231f,52.288f,0.f}}, {NPC_WORGEN_RUNT_R, {-1624.005f,1491.044f,72.355f,3.94f},{-1631.232f,1484.024f,73.520f,0.f},{-1670.050f,1446.465f,52.288f,0.f}}, {NPC_WORGEN_RUNT_R, {-1618.065f,1492.665f,70.195f,3.94f},{-1629.950f,1481.500f,71.044f,0.f},{-1669.042f,1443.998f,52.288f,0.f}}, {NPC_WORGEN_RUNT_R, {-1624.351f,1499.161f,70.931f,3.94f},{-1636.495f,1488.273f,70.838f,0.f},{-1676.181f,1450.732f,52.288f,0.f}}, }; struct WorgenPosQBSHTL { uint32 entry; Position summonPos; }; const WorgenPosQBSHTL WorgenPosLeft[4] = { {NPC_WORGEN_ALPHA_L, {-1721.048f, 1526.525f, 55.793f, 3.94f}}, {NPC_WORGEN_RUNT_L, {-1723.130f, 1526.399f, 55.681f, 3.94f}}, {NPC_WORGEN_RUNT_L, {-1725.533f, 1526.396f, 55.550f, 3.94f}}, {NPC_WORGEN_RUNT_L, {-1728.381f, 1526.393f, 55.445f, 3.94f}}, }; class npc_worgen_attacker_right : public CreatureScript { public: npc_worgen_attacker_right() : CreatureScript("npc_worgen_attacker_right") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_JUMP = 1, EVENT_START_FIGHT = 2, EVENT_HORRIFYING_HOWL = 3, SPELL_ENRAGE = 8599, SPELL_HORRIFYING_HOWL = 75355, }; EventMap events; uint8 worgenId; bool enrage; void InitializeAI() { Reset(); me->SetReactState(REACT_PASSIVE); me->SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_NON_ATTACKABLE); me->setActive(true); } void Reset() { enrage = false; } void SetData(uint32 type, uint32 data) { if (type == TYPE_QBSHT_WORGEN_ID) { worgenId = data; me->GetMotionMaster()->MovePoint(0, WorgenPosRight[worgenId].runPos); events.ScheduleEvent(EVENT_JUMP, 20000); } } void DamageTaken(Unit* attacker, uint32 &damage) { if (!enrage && me->HealthBelowPctDamaged(30, damage)) { enrage = true; me->CastSpell(me, SPELL_ENRAGE, false); } } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_JUMP: me->SetHomePosition(WorgenPosRight[worgenId].jumpPos); me->GetMotionMaster()->MoveJump(WorgenPosRight[worgenId].jumpPos, 20.f, 20.f); events.ScheduleEvent(EVENT_START_FIGHT, 12250); break; case EVENT_START_FIGHT: me->SetReactState(REACT_AGGRESSIVE); me->RemoveFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_NON_ATTACKABLE); events.ScheduleEvent(EVENT_HORRIFYING_HOWL, urand(10000, 60000)); break; case EVENT_HORRIFYING_HOWL: me->CastSpell((Unit*)NULL, SPELL_HORRIFYING_HOWL, false); break; } } DoMeleeAttackIfReady(); } }; }; const Position JumpPosLeft = {-1701.914f, 1470.969f, 52.287f, 5.4f}; class npc_worgen_attacker_left : public CreatureScript { public: npc_worgen_attacker_left() : CreatureScript("npc_worgen_attacker_left") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_JUMP = 1, EVENT_START_FIGHT = 2, EVENT_HORRIFYING_HOWL = 3, SPELL_ENRAGE = 8599, SPELL_HORRIFYING_HOWL = 75355, }; EventMap events; uint8 worgenId; bool enrage; void InitializeAI() { Reset(); me->SetReactState(REACT_PASSIVE); me->SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_NON_ATTACKABLE); me->setActive(true); } void Reset() { enrage = false; } void isSummonedBy(Unit* /*summoner*/) { //me->GetMotionMaster()->MoveSplinePath(1, false, false, 0.f, false, false); events.ScheduleEvent(EVENT_JUMP, 10000); } void DamageTaken(Unit* attacker, uint32 &damage) { if (!enrage && me->HealthBelowPctDamaged(30, damage)) { enrage = true; me->CastSpell(me, SPELL_ENRAGE, false); } } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_JUMP: me->SetHomePosition(JumpPosLeft); me->GetMotionMaster()->MoveJump(JumpPosLeft, 20.f, 10.f); events.ScheduleEvent(EVENT_START_FIGHT, 9250); break; case EVENT_START_FIGHT: me->SetReactState(REACT_AGGRESSIVE); me->RemoveFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_NON_ATTACKABLE); events.ScheduleEvent(EVENT_HORRIFYING_HOWL, urand(20000, 60000)); break; case EVENT_HORRIFYING_HOWL: me->CastSpell((Unit*)NULL, SPELL_HORRIFYING_HOWL, false); break; } } DoMeleeAttackIfReady(); } }; }; class npc_lord_darius_crowley : public CreatureScript { public: npc_lord_darius_crowley() : CreatureScript("npc_lord_darius_crowley") { } private: bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { if (quest->GetQuestId() == QUEST_BY_THE_SKIN_OF_HIS_TEETH) creature->CastSpell(player, SPELL_GILNEAS_PRISON_PERIODIC_FORCECAST, true); return false; } CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* c) : ScriptedAI(c) , canSummon(true) { } enum { EVENT_RESET_SUMMON = 1, EVENT_LEFT_HOOK = 2, EVENT_SNAP_KICK = 3, EVENT_DEMORALIZING_SHOUT = 4, SPELL_DEMORALIZING_SHOUT = 61044, SPELL_LEFT_HOOK = 67825, SPELL_SNAP_KICK = 67827 }; EventMap events; EventMap commonEvents; bool canSummon; void InitializeAI() { SetCombatMovement(false); Reset(); } void Reset() { events.Reset(); } void DoAction(int32 const action) { if (action == ACTION_QBSHT_SUMMON_WORGEN && canSummon) { if (urand(0, 1)) { for (int i = 0; i < 5; ++i) if (Creature* worgen = me->SummonCreature(WorgenPosRight[i].entry, WorgenPosRight[i].summonPos)) if (worgen->IsAIEnabled) worgen->GetAI()->SetData(TYPE_QBSHT_WORGEN_ID, i); } else { for (int i = 0; i < 4; ++i) me->SummonCreature(WorgenPosLeft[i].entry, WorgenPosLeft[i].summonPos); } canSummon = false; commonEvents.ScheduleEvent(EVENT_RESET_SUMMON, 20000); } } void JustSummoned(Creature* summoned) { summoned->Attack(me, false); } void EnterCombat(Unit* /*who*/) { events.ScheduleEvent(EVENT_LEFT_HOOK, urand(3500, 7000)); events.ScheduleEvent(EVENT_DEMORALIZING_SHOUT, 3000); } void UpdateAI(uint32 const diff) { commonEvents.Update(diff); if (commonEvents.ExecuteEvent() == EVENT_RESET_SUMMON) canSummon = true; if (!UpdateVictim()) return; events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_LEFT_HOOK: me->CastSpell(me->getVictim(), SPELL_LEFT_HOOK, false); events.ScheduleEvent(EVENT_SNAP_KICK, urand(3500, 7000)); break; case EVENT_SNAP_KICK: me->CastSpell(me->getVictim(), SPELL_SNAP_KICK, false); events.ScheduleEvent(EVENT_LEFT_HOOK, urand(3500, 7000)); break; case EVENT_DEMORALIZING_SHOUT: me->CastSpell((Unit*)NULL, SPELL_DEMORALIZING_SHOUT, false); events.ScheduleEvent(EVENT_DEMORALIZING_SHOUT, 15000); break; } } DoMeleeAttackIfReady(); } }; }; class spell_gilneas_prison_periodic_dummy : public SpellScriptLoader { public: spell_gilneas_prison_periodic_dummy() : SpellScriptLoader("spell_gilneas_prison_periodic_dummy") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void ExtraEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); Unit* caster = GetCaster(); Unit* originalCaster = GetOriginalCaster(); if (caster && originalCaster && caster->GetExactDistSq(originalCaster) < 900.f) { if (originalCaster->IsAIEnabled) originalCaster->GetAI()->DoAction(ACTION_QBSHT_SUMMON_WORGEN); return; } if (caster) { caster->RemoveAura(SPELL_GILNEAS_PRISON_PERIODIC_1); caster->RemoveAura(SPELL_GILNEAS_PRISON_PERIODIC_2); if (Player* player = caster->ToPlayer()) player->FailQuest(QUEST_BY_THE_SKIN_OF_HIS_TEETH); } } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ExtraEffect, EFFECT_0, SPELL_EFFECT_DUMMY); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; // Quest The Rebel Lord's Arsenal 14159 const Position JosiahJumpPos = {-1796.63f, 1427.73f, 12.4624f, 0.f}; class npc_josiah_avery_worgen : public CreatureScript { public: npc_josiah_avery_worgen() : CreatureScript("npc_josiah_avery_worgen") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_ATTACK_PLAYER = 1, EVENT_JUMP = 2, EVENT_SHOOT = 3, SPELL_COSMETIC_COMBAT_ATTACK_1H = 42880, SPELL_PULL_TO = 67357, SPELL_DEADLY_SHOOT = 67593, NPC_TRIGGER = 35374, NPC_LORNA_CROWLEY = 35378, }; EventMap events; void InitializeAI() { ASSERT(me->isSummon()); me->SetReactState(REACT_PASSIVE); me->SetPhaseMask(6, true); } void isSummonedBy(Unit* /*summoner*/) { events.ScheduleEvent(EVENT_ATTACK_PLAYER, 500); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_ATTACK_PLAYER: { if (Creature* lorna = me->FindNearestCreature(NPC_LORNA_CROWLEY, 30.0f)) { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) { me->CastSpell(summoner, SPELL_COSMETIC_COMBAT_ATTACK_1H, false); if (Creature* trigger = lorna->FindNearestCreature(NPC_TRIGGER, 10.0f)) trigger->CastSpell(summoner, SPELL_PULL_TO, false); } } events.ScheduleEvent(EVENT_JUMP, 1000); } break; case EVENT_JUMP: me->GetMotionMaster()->MoveJump(JosiahJumpPos, 20.f, 10.f); events.ScheduleEvent(EVENT_SHOOT, 250); break; case EVENT_SHOOT: { if (Creature* lorna = me->FindNearestCreature(NPC_LORNA_CROWLEY, 30.0f)) lorna->CastSpell(me, SPELL_DEADLY_SHOOT, false); me->DespawnOrUnsummon(5000); } break; } } } }; }; class npc_josiah_event_trigger : public CreatureScript { public: npc_josiah_event_trigger() : CreatureScript("npc_josiah_event_trigger") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { TALK_WORGEN_BITE = 1, }; void InitializeAI() { ASSERT(me->isSummon()); me->SetPhaseMask(6, true); } void isSummonedBy(Unit* summoner) { Talk(TALK_WORGEN_BITE, summoner->GetGUID(), true); } }; }; class npc_josiah_avery_human : public CreatureScript { public: npc_josiah_avery_human() : CreatureScript("npc_josiah_avery_human") { } private: bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { enum { SPELL_FORCE_CAST_SUMMON_JOSIAH = 67352, }; if (quest->GetQuestId() == QUEST_THE_REBEL_LORD_ARSENAL) { creature->CastSpell(player, SPELL_FORCE_CAST_SUMMON_JOSIAH, false); player->SaveToDB(); } return false; } CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_YELL_HELP = 1, YELL_HELP_TEXT = 1, }; EventMap events; void Reset() { events.Reset(); events.ScheduleEvent(EVENT_YELL_HELP, 1000); } void UpdateAI(uint32 const diff) { events.Update(diff); if (events.ExecuteEvent() == EVENT_YELL_HELP) { sCreatureTextMgr->SendChat(me, YELL_HELP_TEXT, 0, CHAT_MSG_ADDON, LANG_ADDON, TEXT_RANGE_NORMAL, 0, TEAM_OTHER, false, NULL); events.ScheduleEvent(EVENT_YELL_HELP, urand(10000, 20000)); } if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class spell_force_cast_summon_josiah : public SpellScriptLoader { public: spell_force_cast_summon_josiah() : SpellScriptLoader("spell_force_cast_summon_josiah") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void Function(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); if (Player* player = GetHitPlayer()) { player->RemoveAurasByType(SPELL_AURA_PHASE); player->RemoveAura(SPELL_INVISIBILITY_DETECTION_2); player->CastSpell(player, SPELL_WORGEN_BITE, true); player->CastSpell(player, SPELL_INVISIBILITY_DETECTION_1, true); player->CastSpell((Unit*)NULL, GetSpellInfo()->Effects[effIndex].TriggerSpell, true); } } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::Function, EFFECT_0, SPELL_EFFECT_FORCE_CAST); } }; SpellScript * GetSpellScript() const { return new spell_script_impl(); } }; // Quest From the Shadows 14204 class npc_lorna_crowley_phase_3 : public CreatureScript { public: npc_lorna_crowley_phase_3() : CreatureScript("npc_lorna_crowley_phase_3") { } private: enum { SAY_MASTIFF = 1, SPELL_FORCECAST_MASTIFF = 68234, SPELL_FORCE_DISMISS_PET = 43511, }; bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { if (quest->GetQuestId() == QUEST_FROM_THE_SHADOWS) { creature->CastSpell(player, SPELL_FORCECAST_MASTIFF, false, NULL, NULL, player->GetGUID()); if (creature->IsAIEnabled) creature->AI()->Talk(SAY_MASTIFF, player->GetGUID(), true); } return false; } bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == QUEST_FROM_THE_SHADOWS) creature->CastSpell(player, SPELL_FORCE_DISMISS_PET, false, NULL, NULL, player->GetGUID()); return false; } }; class spell_quest_dismiss_plaguehound : public SpellScriptLoader { public: spell_quest_dismiss_plaguehound() : SpellScriptLoader("spell_quest_dismiss_plaguehound") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void ExtraEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); if (Unit* target = GetHitUnit()) if (Creature* creature = target->ToCreature()) creature->DespawnOrUnsummon(); } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ExtraEffect, EFFECT_0, SPELL_EFFECT_DUMMY); } }; SpellScript * GetSpellScript() const { return new spell_script_impl(); } }; class npc_bloodfang_lurker : public CreatureScript { public: npc_bloodfang_lurker() : CreatureScript("npc_bloodfang_lurker") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { SPELL_SHADOWSTALKER_STEALTH = 5916, SPELL_UNDYING_FRENZY = 80515, SPELL_ENRAGE = 8599, }; bool enrage; bool frenzy; void Reset() { enrage = false; frenzy = false; me->SetReactState(REACT_PASSIVE); me->CastSpell(me, SPELL_SHADOWSTALKER_STEALTH, false); } void SpellHit(Unit* caster, const SpellInfo* spell) { if (me->HasReactState(REACT_PASSIVE) && me->IsHostileTo(caster)) { me->SetReactState(REACT_AGGRESSIVE); AttackStart(caster); } } void DamageTaken(Unit* attacker, uint32 &damage) { if (me->HasReactState(REACT_PASSIVE)) me->SetReactState(REACT_AGGRESSIVE); if (!frenzy) { if (me->HealthBelowPctDamaged(45, damage)) { frenzy = true; me->CastSpell(me, SPELL_UNDYING_FRENZY, false); } } else if (!enrage) { if (me->HealthBelowPctDamaged(30, damage)) { enrage = true; me->CastSpell(me, SPELL_ENRAGE, false); } } } }; }; // Quest Save Krennan Aranas 14293 class npc_king_genn_greymane_phase_3 : public CreatureScript { public: npc_king_genn_greymane_phase_3() : CreatureScript("npc_king_genn_greymane_phase_3") { } private: bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { enum { SPELL_FORCECAST_SUMMON_GREYMANES_HORSE = 68232, }; if (quest->GetQuestId() == QUEST_SAVE_KRENNAN_ARANAS) creature->CastSpell(player, SPELL_FORCECAST_SUMMON_GREYMANES_HORSE, false, NULL, NULL, player->GetGUID()); return false; } CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_RANDOM_SAY = 1, RANDOM_TEXT_ID = 1, }; EventMap events; void Reset() { events.Reset(); events.ScheduleEvent(EVENT_RANDOM_SAY, 1000); } void UpdateAI(uint32 const diff) { events.Update(diff); if (events.ExecuteEvent() == EVENT_RANDOM_SAY) { Talk(RANDOM_TEXT_ID); events.ScheduleEvent(EVENT_RANDOM_SAY, urand(15000, 35000)); } if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; const Position GreymaneHorseJumpPos = {-1676.16f, 1346.19f, 15.1349f, 0.f}; class npc_vehicle_genn_horse : public CreatureScript { public: npc_vehicle_genn_horse() : CreatureScript("npc_vehicle_genn_horse") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { EVENT_START_RIDE = 1, EVENT_JUMP = 2, EVENT_TALK_SAVE_ARANAS = 3, EVENT_DONE = 4, TEXT_SAVE_ARANAS = 1, TEXT_ARANAS_SAY_HELP = 1, NPC_ARANAS = 35753, NPC_SAVED_ARANAS = 35907, SPELL_EJECT_ALL_PASSENGERS = 50630, SPELL_UPDATE_CATHEDRAL_AURAS_AND_SANCTUARY = 78690, }; EventMap events; void InitializeAI() { } void isSummonedBy(Unit* summoner) { events.ScheduleEvent(EVENT_START_RIDE, 2000); } void PassengerBoarded(Unit* who, int8 /*seatId*/, bool apply) { if (apply) { if (who->GetEntry() == NPC_SAVED_ARANAS) { me->GetMotionMaster()->MovePath(NPC_SAVED_ARANAS, true); events.ScheduleEvent(EVENT_DONE, 20000); } } else if (who->GetTypeId() == TYPEID_PLAYER) me->CastSpell(who, SPELL_UPDATE_CATHEDRAL_AURAS_AND_SANCTUARY, false); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_START_RIDE: me->GetMotionMaster()->MovePath(NPC_ARANAS, true); events.ScheduleEvent(EVENT_JUMP, 20000); break; case EVENT_JUMP: me->GetMotionMaster()->MoveJump(GreymaneHorseJumpPos, 20.f, 10.f); events.ScheduleEvent(EVENT_TALK_SAVE_ARANAS, 10500); break; case EVENT_TALK_SAVE_ARANAS: { Talk(TEXT_SAVE_ARANAS); if (Creature* aranas = me->FindNearestCreature(NPC_ARANAS, 50.f)) if (aranas->IsAIEnabled) aranas->AI()->Talk(TEXT_ARANAS_SAY_HELP, me->ToTempSummon()->GetSummonerGUID(), true); } break; case EVENT_DONE: me->CastSpell(me, SPELL_EJECT_ALL_PASSENGERS, false); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->DeleteThreatList(); me->CombatStop(); me->DespawnOrUnsummon(1000); break; } } } }; }; class npc_saved_aranas : public CreatureScript { public: npc_saved_aranas() : CreatureScript("npc_saved_aranas") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { SPELL_RIDE_VEHILE = 46598, SPELL_SUMMON_INITIALIZE = 67002, TEXT_THANKS = 1, }; void InitializeAI() { ASSERT(me->isSummon()); me->SetReactState(REACT_PASSIVE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); } void isSummonedBy(Unit* summoner) { me->SetVisible(true); if (Unit* horse = summoner->GetVehicleBase()) { me->CastSpell(horse, SPELL_RIDE_VEHILE, false); me->CastSpell(me, SPELL_SUMMON_INITIALIZE, false); } } void OnExitVehicle(Unit* /*vehicle*/, uint32 /*seatId*/) { Talk(TEXT_THANKS, me->ToTempSummon()->GetSummonerGUID(), true); me->DespawnOrUnsummon(3000); } }; }; class npc_lord_godfrey_phase_3 : public CreatureScript { public: npc_lord_godfrey_phase_3() : CreatureScript("npc_lord_godfrey_phase_3") { } private: bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { enum { SPELL_FORCECAST_CANNON_CAMERA = 93555, TEXT_FIRE = 1, }; if (quest->GetQuestId() == QUEST_SAVE_KRENNAN_ARANAS) { creature->CastSpell(player, SPELL_FORCECAST_CANNON_CAMERA, false); player->SaveToDB(); if (creature->IsAIEnabled) creature->AI()->Talk(TEXT_FIRE, player->GetGUID(), true); } return false; } }; const Position WorgenSummonPosPhase4[13] = { {-1715.219f, 1352.839f, 19.8645f, 2.72649f}, {-1721.182f, 1350.429f, 19.8656f, 2.48614f}, {-1746.523f, 1361.108f, 19.8681f, 1.85957f}, {-1724.385f, 1348.462f, 19.6781f, 2.10692f}, {-1734.542f, 1344.554f, 19.8769f, 1.65637f}, {-1732.773f, 1367.837f, 19.9010f, 1.10063f}, {-1744.358f, 1363.382f, 19.8996f, 2.06127f}, {-1719.358f, 1357.512f, 19.7791f, 2.91488f}, {-1728.276f, 1353.201f, 19.6823f, 2.25370f}, {-1726.747f, 1364.599f, 19.9263f, 2.71766f}, {-1737.693f, 1352.986f, 19.8711f, 1.96818f}, {-1734.391f, 1359.887f, 19.9064f, 2.48052f}, {-1730.286f, 1390.384f, 20.7707f, 4.35712f}, }; const float WorgenAttackCoord[3] = {-1751.874f, 1377.457f, 19.930f}; class npc_cannon_camera : public CreatureScript { public: npc_cannon_camera() : CreatureScript("npc_cannon_camera") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , summons(creature) { } enum { EVENT_SUMMON_WORGENS = 1, EVENT_CANNON_SHOOT_1 = 2, EVENT_CANNON_SHOOT_2 = 3, SPELL_CANNON_FIRE = 68235, NPC_COMMANDEERED_CANNON = 35914, NPC_BLOODFANG_RIPPER = 35916, }; EventMap events; SummonList summons; void CannonShoot() { if (Creature* cannon = me->FindNearestCreature(NPC_COMMANDEERED_CANNON, 40.0f)) cannon->CastSpell((Unit*)NULL, SPELL_CANNON_FIRE, false); } void PassengerBoarded(Unit* /*who*/, int8 /*seatId*/, bool apply) { if (apply) events.ScheduleEvent(EVENT_SUMMON_WORGENS, 1000); else { CannonShoot(); for (SummonList::const_iterator itr = summons.begin(); itr != summons.end(); ++itr) if (Creature * worgen = ObjectAccessor::GetCreature(*me, *itr)) if (worgen->isAlive()) worgen->Kill(worgen); summons.DespawnAll(); } } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_SUMMON_WORGENS: { for (int i = 0; i < 13; ++i) { if (Creature* worgen = me->SummonCreature(NPC_BLOODFANG_RIPPER, WorgenSummonPosPhase4[i], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 15000)) { summons.Summon(worgen); worgen->GetMotionMaster()->MovePoint(0, WorgenAttackCoord[0] + irand(-3, 3), WorgenAttackCoord[1] + irand(-3, 3), WorgenAttackCoord[2]); } } events.ScheduleEvent(EVENT_CANNON_SHOOT_1, 1500); } break; case EVENT_CANNON_SHOOT_1: CannonShoot(); events.ScheduleEvent(EVENT_CANNON_SHOOT_2, 2000); break; case EVENT_CANNON_SHOOT_2: CannonShoot(); break; } } } }; }; class spell_forcecast_cannon_camera : public SpellScriptLoader { public: spell_forcecast_cannon_camera() : SpellScriptLoader("spell_forcecast_cannon_camera") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void Function(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); if (Player* player = GetHitPlayer()) { player->RemoveAurasByType(SPELL_AURA_PHASE); player->CastSpell(player, SPELL_INFECTED_BITE, true); player->CastSpell(player, SPELL_INVISIBILITY_DETECTION_2, true); player->CastSpell((Unit*)NULL, GetSpellInfo()->Effects[effIndex].TriggerSpell, true); } } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::Function, EFFECT_0, SPELL_EFFECT_FORCE_CAST); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; class npc_gilneas_city_guard_phase_4 : public CreatureScript { public: npc_gilneas_city_guard_phase_4() : CreatureScript("npc_gilneas_city_guard_phase_4") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , shooterAI(creature, SPELL_SHOOT) { } enum { EVENT_TALK = 1, RANDOM_TEXT = 1, SPELL_SHOOT = 20463, }; EventMap events; ShooterGuardAI shooterAI; void InitializeAI() { SetCombatMovement(false); me->m_CombatDistance = 30.0f; } void Reset() { shooterAI.Reset(); events.Reset(); } void DamageTaken(Unit* attacker, uint32 &damage) { shooterAI.DamageTaken(attacker, damage); } void EnterCombat(Unit* who) { shooterAI.EnterCombat(who); events.ScheduleEvent(EVENT_TALK, urand(5000, 50000)); } void UpdateAI(uint32 const diff) { if (!shooterAI.UpdateShooterAI(diff)) return; events.Update(diff); if (events.ExecuteEvent() == EVENT_TALK) { Talk(RANDOM_TEXT); events.ScheduleEvent(EVENT_TALK, urand(30000, 90000)); } } }; }; // Quest Time to Regroup 14294 enum { QUEST_TIME_TO_REGROUP_EVENT_ID = 10014294, }; class npc_king_genn_greymane_phase_4 : public CreatureScript { public: npc_king_genn_greymane_phase_4() : CreatureScript("npc_king_genn_greymane_phase_4") { } private: enum { EVENT_GENN_SAY_IF = 1, EVENT_CROWLEY_SAY_NEED = 2, EVENT_LIAM_TALK_STAY = 3, EVENT_CROWLEY_SAY_NO_CHANCE = 4, EVENT_CROWLEY_SAY_MY_MEN = 5, EVENT_GENN_SAY_WE_FOOLS = 6, GENN_SAY_IF = 1, CROWLEY_SAY_NEED = 1, LIAM_TALK_STAY = 1, CROWLEY_SAY_NO_CHANCE = 2, CROWLEY_SAY_MY_MEN = 3, GENN_SAY_WE_FOOLS = 2, NPC_LORD_CROWLEY = 35552, NPC_PRINCE_LIAM = 35551, NPC_KING_GENN_GREYMANE = 35911, }; class PersonalTalkEvent : public BasicEvent { public: PersonalTalkEvent(Player* player, uint8 eventId) : _player(player) , _eventId(eventId) { } private: bool Execute(uint64 /*time*/, uint32 /*diff*/) { switch (_eventId) { case EVENT_GENN_SAY_IF: { if (Creature* genn = _player->FindNearestCreature(NPC_KING_GENN_GREYMANE, 30.0f)) if (genn->IsAIEnabled) genn->AI()->Talk(GENN_SAY_IF, _player->GetGUID(), true); _player->m_Events.AddEvent(new PersonalTalkEvent(_player, EVENT_CROWLEY_SAY_NEED), _player->m_Events.CalculateTime(7000), true); } break; case EVENT_CROWLEY_SAY_NEED: { if (Creature* crowley = _player->FindNearestCreature(NPC_LORD_CROWLEY, 30.0f)) if (crowley->IsAIEnabled) crowley->AI()->Talk(CROWLEY_SAY_NEED, _player->GetGUID(), true); _player->m_Events.AddEvent(new PersonalTalkEvent(_player, EVENT_LIAM_TALK_STAY), _player->m_Events.CalculateTime(7000), true); } break; case EVENT_LIAM_TALK_STAY: { if (Creature* liam = _player->FindNearestCreature(NPC_PRINCE_LIAM, 30.0f)) if (liam->IsAIEnabled) liam->AI()->Talk(LIAM_TALK_STAY, _player->GetGUID(), true); _player->m_Events.AddEvent(new PersonalTalkEvent(_player, EVENT_CROWLEY_SAY_NO_CHANCE), _player->m_Events.CalculateTime(4000), true); } break; case EVENT_CROWLEY_SAY_NO_CHANCE: { if (Creature* crowley = _player->FindNearestCreature(NPC_LORD_CROWLEY, 30.0f)) if (crowley->IsAIEnabled) crowley->AI()->Talk(CROWLEY_SAY_NO_CHANCE, _player->GetGUID(), true); _player->m_Events.AddEvent(new PersonalTalkEvent(_player, EVENT_CROWLEY_SAY_MY_MEN), _player->m_Events.CalculateTime(9000), true); } break; case EVENT_CROWLEY_SAY_MY_MEN: { if (Creature* crowley = _player->FindNearestCreature(NPC_LORD_CROWLEY, 30.0f)) if (crowley->IsAIEnabled) crowley->AI()->Talk(CROWLEY_SAY_MY_MEN, _player->GetGUID(), true); _player->m_Events.AddEvent(new PersonalTalkEvent(_player, EVENT_GENN_SAY_WE_FOOLS), _player->m_Events.CalculateTime(9000), true); } break; case EVENT_GENN_SAY_WE_FOOLS: { if (Creature* genn = _player->FindNearestCreature(NPC_KING_GENN_GREYMANE, 30.0f)) if (genn->IsAIEnabled) genn->AI()->Talk(GENN_SAY_WE_FOOLS, _player->GetGUID(), true); } break; } return true; } Player* _player; uint8 _eventId; }; bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == QUEST_TIME_TO_REGROUP) player->m_Events.AddEvent(new PersonalTalkEvent(player, EVENT_GENN_SAY_IF), player->m_Events.CalculateTime(500), true); return false; } }; // Quest Sacrifices 14212 class spell_forcecast_summon_crowleys_horse : public SpellScriptLoader { public: spell_forcecast_summon_crowleys_horse() : SpellScriptLoader("spell_forcecast_summon_crowleys_horse") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void Function(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); if (Player* player = GetHitPlayer()) { //player->m_Events.DeleteEventId(QUEST_TIME_TO_REGROUP_EVENT_ID); player->RemoveAura(SPELL_INVISIBILITY_DETECTION_2); player->CastSpell((Unit*)NULL, GetSpellInfo()->Effects[effIndex].TriggerSpell, true); } } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::Function, EFFECT_0, SPELL_EFFECT_FORCE_CAST); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; const Position JumpPoints[3]= { {-1732.049f, 1657.609f, 20.73728f, 0.f}, {-1714.762f, 1673.160f, 20.49182f, 0.f}, {-1566.710f, 1708.040f, 20.48490f, 0.f}, }; class npc_crowley_horse_first_round : public CreatureScript { public: npc_crowley_horse_first_round() : CreatureScript("npc_crowley_horse_first_round") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { EVENT_BEGIN = 1, EVENT_JUMP_1 = 2, EVENT_START_RUN = 3, EVENT_JUMP_2 = 4, EVENT_RESUME_RUN = 5, EVENT_CROWLEY_RANDOM_TEXT = 6, EVENT_FINISH = 7, CROWLEY_SAY_START = 1, CROWLEY_SAY_RANDOM = 2, NPC_CROWLEY = 35230, SPELL_EJECT_ALL_PASSENGERS = 50630, }; EventMap events; void InitializeAI() { } void isSummonedBy(Unit* summoner) { if (Creature* crowley = summoner->SummonCreature(NPC_CROWLEY, *me)) { crowley->SetVisible(false); crowley->EnterVehicle(me, 1); } events.ScheduleEvent(EVENT_BEGIN, 1000); } void PassengerBoarded(Unit* who, int8 /*seatId*/, bool apply) { if (!apply) if (Creature* crowley = who->ToCreature()) crowley->DespawnOrUnsummon(1000); } void CrowleyTalkToPlayer(uint32 textId) { if (Vehicle* vehicle = me->GetVehicleKit()) if (Unit* passenger = vehicle->GetPassenger(1)) if (Creature* crowley = passenger->ToCreature()) if (crowley->IsAIEnabled) crowley->AI()->Talk(textId, me->ToTempSummon()->GetSummonerGUID(), true); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_BEGIN: me->GetMotionMaster()->MovePoint(0, JumpPoints[0]); events.ScheduleEvent(EVENT_JUMP_1, 10000); break; case EVENT_JUMP_1: me->GetMotionMaster()->MoveJump(JumpPoints[1], 15.f, 15.f); events.ScheduleEvent(EVENT_START_RUN, 10500); break; case EVENT_START_RUN: CrowleyTalkToPlayer(CROWLEY_SAY_START); me->GetMotionMaster()->MovePath(NPC_CROWLEY, true); events.ScheduleEvent(EVENT_JUMP_2, 10000); events.ScheduleEvent(EVENT_CROWLEY_RANDOM_TEXT, urand(15000, 20000)); break; case EVENT_JUMP_2: me->GetMotionMaster()->MoveJump(JumpPoints[2], 15.f, 15.f); events.ScheduleEvent(EVENT_RESUME_RUN, 10500); break; case EVENT_RESUME_RUN: me->GetMotionMaster()->MovePath(NPC_CROWLEY, true); events.ScheduleEvent(EVENT_FINISH, 10000); break; case EVENT_CROWLEY_RANDOM_TEXT: CrowleyTalkToPlayer(CROWLEY_SAY_RANDOM); events.ScheduleEvent(EVENT_CROWLEY_RANDOM_TEXT, urand(10000, 20000)); break; case EVENT_FINISH: me->CastSpell(me, SPELL_EJECT_ALL_PASSENGERS, false); me->DespawnOrUnsummon(1000); break; } } } }; }; class npc_crowley_horse_second_round : public CreatureScript { public: npc_crowley_horse_second_round() : CreatureScript("npc_crowley_horse_second_round") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { EVENT_START_RUN = 1, EVENT_FINISH = 2, SPELL_EJECT_ALL_PASSENGERS = 50630, }; EventMap events; void InitializeAI() { ASSERT(me->isSummon()); me->SetReactState(REACT_PASSIVE); me->SetControlled(true, UNIT_STATE_ROOT); } void isSummonedBy(Unit* summoner) { events.ScheduleEvent(EVENT_START_RUN, 1000); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_START_RUN: //me->GetMotionMaster()->MoveSplinePath(1); events.ScheduleEvent(EVENT_FINISH, 30000); break; case EVENT_FINISH: me->CastSpell(me, SPELL_EJECT_ALL_PASSENGERS, false); me->DespawnOrUnsummon(1000); break; } } } }; }; class npc_bloodfang_stalker : public CreatureScript { public: npc_bloodfang_stalker() : CreatureScript("npc_bloodfang_stalker") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_ENTER_EVADE = 1, EVENT_CHECK_CHASE_TARGET = 2, SPELL_THROW_TORCH = 67063, SPELL_ENRAGE = 8599, NPC_QUEST_KILL_CREDIT = 35582, }; EventMap events; bool enrage; bool inFire; void DamageTaken(Unit* attacker, uint32 &damage) { if (!enrage && me->HealthBelowPctDamaged(30, damage)) { enrage = true; me->CastSpell(me, SPELL_ENRAGE, false); } } void InitializeAI() { Reset(); me->m_CombatDistance = 10.0f; } void Reset() { enrage = false; inFire = false; events.Reset(); } void SpellHit(Unit* caster, const SpellInfo* spell) { if (!inFire && spell->Id == SPELL_THROW_TORCH) { inFire = true; events.ScheduleEvent(EVENT_ENTER_EVADE, 20000); events.ScheduleEvent(EVENT_CHECK_CHASE_TARGET, 500); if (Player* player = caster->ToPlayer()) { player->KilledMonsterCredit(NPC_QUEST_KILL_CREDIT, 0); if (Unit* target = player->GetVehicleBase()) AttackStart(target); } } } void UpdateAI(uint32 const diff) { events.Update(diff); if (events.ExecuteEvent() == EVENT_ENTER_EVADE) { inFire = false; EnterEvadeMode(); return; } if (inFire) return; if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class npc_rebel_cannon_phase_4 : public CreatureScript { public: npc_rebel_cannon_phase_4() : CreatureScript("npc_rebel_cannon_phase_4") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } void InitializeAI() { me->SetControlled(true, UNIT_STATE_ROOT); me->AddExtraUnitMovementFlag(MOVEMENTFLAG2_FULL_SPEED_PITCHING); me->AddExtraUnitMovementFlag(MOVEMENTFLAG2_ALWAYS_ALLOW_PITCHING); } }; }; // Quest Last Stand 14222 && Last Chance at Humanity 14375 class npc_lord_darius_crowley_phase_5 : public CreatureScript { public: npc_lord_darius_crowley_phase_5() : CreatureScript("npc_lord_darius_crowley_phase_5") { } private: enum { SPELL_PLAY_MOVIE = 93477, SPELL_ALTERED_FORM_RACIAL = 97709, SPELL_FORCE_WORGEN_FORM = 98274, SPELL_CURSE_OF_THE_WORGEN = 68630, SPELL_LAST_STAND_COMPLETE = 72799, }; bool OnQuestReward(Player* player, Creature* /*creature*/, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == QUEST_LAST_STAND) { player->CastSpell(player, SPELL_PLAY_MOVIE, true); player->CastSpell(player, SPELL_ALTERED_FORM_RACIAL, true); player->CastSpell(player, SPELL_FORCE_WORGEN_FORM, true); player->CastSpell(player, SPELL_CURSE_OF_THE_WORGEN, true); player->CastSpell(player, SPELL_LAST_STAND_COMPLETE, true); player->SaveToDB(); } else if (quest->GetQuestId() == QUEST_NEVER_SURRENDER) { player->RemoveAurasByType(SPELL_AURA_PHASE); player->CastSpell(player, SPELL_HIDEOUS_BITE_WOUND, true); } return false; } }; class npc_king_genn_greymane_last_stand : public CreatureScript { public: npc_king_genn_greymane_last_stand() : CreatureScript("npc_king_genn_greymane_last_stand") { } private: bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { enum { SPELL_CURSE_OF_THE_WORGEN = 68630, SPELL_ALTERED_FORM_RACIAL = 97709, SPELL_FORCECAST_WORGEN_INTRO_COMPLETION = 68639, SPELL_LEARN_FORM = 1645, }; if (quest->GetQuestId() == QUEST_LAST_CHANCE_AT_HUMANITY) { player->RemoveAurasByType(SPELL_AURA_PHASE); player->RemoveAura(SPELL_CURSE_OF_THE_WORGEN); player->RemoveAura(SPELL_ALTERED_FORM_RACIAL); creature->CastSpell(player, SPELL_FORCECAST_WORGEN_INTRO_COMPLETION, false); player->CastSpell(player, SPELL_ZONE_SPECIFIC_01, true); player->SaveToDB(); } return false; } CreatureAI* GetAI(Creature* creature) const override { return new npc_king_genn_greymane_last_standAI(creature); } struct npc_king_genn_greymane_last_standAI: public ScriptedAI { npc_king_genn_greymane_last_standAI(Creature* creature) : ScriptedAI(creature) { me->GetMotionMaster()->MovePoint(1, -1820.40f, 2293.52f, 42.144f); } }; }; class spell_worgen_intro_completion : public SpellScriptLoader { struct SeerCheck : public std::unary_function<WorldObject const *, bool> { explicit SeerCheck(uint64 guid) : casterGUID(guid) { } //@todo : implement seer and CustomVisiblty bool operator()(WorldObject const *object) const { //if (Creature const* creature = object->ToCreature()) // return creature->GetSeerGUID() != casterGUID; return true; } private: uint64 casterGUID; }; public: spell_worgen_intro_completion() : SpellScriptLoader("spell_worgen_intro_completion") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void FilterTargets(std::list<WorldObject*>& targets) { if (Unit* caster = GetCaster()) targets.remove_if(SeerCheck(caster->GetGUID())); } void ExtraEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); if (Creature* target = GetHitCreature()) target->DespawnOrUnsummon(); } void Register() { OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_script_impl::FilterTargets, EFFECT_1, TARGET_UNIT_SRC_AREA_ENTRY); OnEffectHitTarget += SpellEffectFn(spell_script_impl::ExtraEffect, EFFECT_1, SPELL_EFFECT_DUMMY); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; class spell_curse_of_the_worgen_invis : public SpellScriptLoader { public: spell_curse_of_the_worgen_invis() : SpellScriptLoader("spell_curse_of_the_worgen_invis") { } private: class SummonAranasEvent : public BasicEvent { public: SummonAranasEvent(Unit* unit) : _unit(unit) { } private: bool Execute(uint64 /*time*/, uint32 /*diff*/) { enum { SPELL_SUMMON_ARANAS = 69123, }; _unit->CastSpell((Unit*)NULL, SPELL_SUMMON_ARANAS, false); return true; } Unit* _unit; }; // class aura_script_impl : public AuraScript // { // PrepareAuraScript(aura_script_impl); // // void ExtraEffect(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) // { // if (Unit* target = GetTarget()) // target->m_Events.AddEvent(new SummonAranasEvent(target), target->m_Events.CalculateTime(500)); // } // // void Register() // { // AfterEffectApply += AuraEffectApplyFn(aura_script_impl::ExtraEffect, EFFECT_1, SPELL_AURA_LINKED, AURA_EFFECT_HANDLE_REAL); // } // }; // AuraScript* GetAuraScript() const // { // return new aura_script_impl(); // } }; class npc_krennan_aranas_last_stand : public CreatureScript { public: npc_krennan_aranas_last_stand() : CreatureScript("npc_krennan_aranas_last_stand") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , godfreyGUID(0) , greymaneGUID(0) { } enum { EVENT_CHECK_PLAYER_ONLINE = 1, EVENT_CHECK_PLAYER_MOVIE = 2, EVENT_ARANAS_TALK_YOU_CAN_CONTROL = 3, EVENT_SUMMON_GODFREY = 4, EVENT_GODFREY_START_MOVING = 5, EVENT_GODFREY_TALK_PUT_DOWN = 6, EVENT_SUMMON_GREYMANE = 7, EVENT_GREYMANE_START_MOVING = 8, EVENT_GREYMANE_TALK_DIDNT_THINK_SO = 9, EVENT_GREYMANE_ADD_QUESTGIVER_FLAG = 10, EVENT_GREYMANE_FACING_ARANAS = 11, MUSIC_ID = 23508, NPC_LORD_GODFREY = 36330, NPC_KING_GENN_GREYMANE = 36332, ARANAS_SAY_YOU_CAN_CONTROL = 1, GODFREY_SAY_PUT_DOWN = 1, GREYMANE_SAY_TELL_ME_GODFREY = 1, GREYMANE_SAY_DIDNT_THINK_SO = 2, SPELL_FORCECAST_SUMMON_GODFREY = 68635, SPELL_FORCECAST_SUMMON_GREYMANE = 68636, }; EventMap events; uint64 godfreyGUID; uint64 greymaneGUID; void InitializeAI() { me->setActive(true); } void isSummonedBy(Unit* summoner) { me->SetVisible(true); events.ScheduleEvent(EVENT_CHECK_PLAYER_ONLINE, 500); events.ScheduleEvent(EVENT_CHECK_PLAYER_MOVIE, 500); } void JustSummoned(Creature* summoned) { switch (summoned->GetEntry()) { case NPC_LORD_GODFREY: godfreyGUID = summoned->GetGUID(); break; case NPC_KING_GENN_GREYMANE: summoned->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER); greymaneGUID = summoned->GetGUID(); break; } summoned->SetVisible(true); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_CHECK_PLAYER_ONLINE: { if (!me->ToTempSummon()->GetSummoner()) { if (Creature* godfrey = ObjectAccessor::GetCreature(*me, godfreyGUID)) godfrey->DespawnOrUnsummon(); if (Creature* greymane = ObjectAccessor::GetCreature(*me, greymaneGUID)) greymane->DespawnOrUnsummon(); me->DespawnOrUnsummon(); } else events.ScheduleEvent(EVENT_CHECK_PLAYER_ONLINE, 500); } break; case EVENT_CHECK_PLAYER_MOVIE: { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) { if (Player* player = summoner->ToPlayer()) { //if (!player->GetCurrentMovieId()) //{ // me->PlayMusic(MUSIC_ID, player); // events.ScheduleEvent(EVENT_ARANAS_TALK_YOU_CAN_CONTROL, 5000); // return; //} } } events.ScheduleEvent(EVENT_CHECK_PLAYER_MOVIE, 500); } break; case EVENT_ARANAS_TALK_YOU_CAN_CONTROL: Talk(ARANAS_SAY_YOU_CAN_CONTROL, me->ToTempSummon()->GetSummonerGUID(), true); events.ScheduleEvent(EVENT_SUMMON_GODFREY, 5000); break; case EVENT_SUMMON_GODFREY: me->CastSpell((Unit*)NULL, SPELL_FORCECAST_SUMMON_GODFREY, false); events.ScheduleEvent(EVENT_GODFREY_START_MOVING, 1000); events.ScheduleEvent(EVENT_SUMMON_GREYMANE, 8000); events.ScheduleEvent(EVENT_GODFREY_TALK_PUT_DOWN, 10000); break; case EVENT_GODFREY_START_MOVING: { if (Creature* godfrey = ObjectAccessor::GetCreature(*me, godfreyGUID)) { //godfrey->GetMotionMaster()->MoveSplinePath(1, false, true, 0.f, false, false); } } break; case EVENT_SUMMON_GREYMANE: me->CastSpell((Unit*)NULL, SPELL_FORCECAST_SUMMON_GREYMANE, false); events.ScheduleEvent(EVENT_GREYMANE_START_MOVING, 9000); break; case EVENT_GODFREY_TALK_PUT_DOWN: { if (Creature* godfrey = ObjectAccessor::GetCreature(*me, godfreyGUID)) { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) godfrey->SetFacingToObject(summoner); if (godfrey->IsAIEnabled) godfrey->AI()->Talk(GODFREY_SAY_PUT_DOWN, me->ToTempSummon()->GetSummonerGUID(), true); } } break; case EVENT_GREYMANE_START_MOVING: { if (Creature* greymane = ObjectAccessor::GetCreature(*me, greymaneGUID)) { Movement::MoveSplineInit init(greymane); init.MoveTo(-1821.09f, 2292.597f, 42.23363f); init.SetFacing(1.32645f); init.SetWalk(true); init.Launch(); if (greymane->IsAIEnabled) greymane->AI()->Talk(GREYMANE_SAY_TELL_ME_GODFREY, me->ToTempSummon()->GetSummonerGUID(), true); } events.ScheduleEvent(EVENT_GREYMANE_TALK_DIDNT_THINK_SO, 10000); } break; case EVENT_GREYMANE_TALK_DIDNT_THINK_SO: { if (Creature* greymane = ObjectAccessor::GetCreature(*me, greymaneGUID)) if (greymane->IsAIEnabled) greymane->AI()->Talk(GREYMANE_SAY_DIDNT_THINK_SO, me->ToTempSummon()->GetSummonerGUID(), true); events.ScheduleEvent(EVENT_GREYMANE_FACING_ARANAS, 2000); events.ScheduleEvent(EVENT_GREYMANE_ADD_QUESTGIVER_FLAG, 10000); } break; case EVENT_GREYMANE_FACING_ARANAS: { if (Creature* greymane = ObjectAccessor::GetCreature(*me, greymaneGUID)) greymane->SetFacingToObject(me); } break; case EVENT_GREYMANE_ADD_QUESTGIVER_FLAG: { if (Creature* greymane = ObjectAccessor::GetCreature(*me, greymaneGUID)) { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) greymane->SetFacingToObject(summoner); greymane->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER); } } break; } } } }; }; // Quest In Need of Ingredients 14320 class go_crate_of_mandrake_essence : public GameObjectScript { public: go_crate_of_mandrake_essence() : GameObjectScript("go_crate_of_mandrake_essence") { } private: bool OnQuestReward(Player* player, GameObject* /*go*/, Quest const* quest, uint32 /*opt*/) { enum { CINEMATIC_FORSAKEN = 168, }; if (quest->GetQuestId() == QUEST_IN_NEED_OF_INGR) player->SendCinematicStart(CINEMATIC_FORSAKEN); return false; } }; // Quest Invasion 14321 class npc_slain_watchman : public CreatureScript { public: npc_slain_watchman() : CreatureScript("npc_slain_watchman") { } private: bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { enum { SPELL_FORCECAST_SUMMON_FORSAKEN_ASSASSIN = 68492, }; if (quest->GetQuestId() == QUEST_INVASION) creature->CastSpell(player, SPELL_FORCECAST_SUMMON_FORSAKEN_ASSASSIN, false, NULL, NULL, player->GetGUID()); return false; } }; class npc_gwen_armstead_phase_6 : public CreatureScript { public: npc_gwen_armstead_phase_6() : CreatureScript("npc_gwen_armstead_phase_6") { } private: bool OnQuestReward(Player* player, Creature* /*creature*/, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == QUEST_INVASION) { player->RemoveAurasByType(SPELL_AURA_PHASE); player->CastSpell(player, SPELL_ZONE_SPECIFIC_07, false); player->SaveToDB(); } return false; } }; class npc_forsaken_assassin : public CreatureScript { public: npc_forsaken_assassin() : CreatureScript("npc_forsaken_assassin") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { FORSAKEN_ASSASSIN_SAY = 1, SPELL_BACKSTAB = 75360, }; void isSummonedBy(Unit* summoner) { Talk(FORSAKEN_ASSASSIN_SAY, summoner->GetGUID(), true); AttackStart(summoner); me->CastSpell(summoner, SPELL_BACKSTAB, false); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; // Quest You Can't Take 'Em Alone 14348 const float LiamPosition[2] = {-1920.43f, 2308.94f}; class npc_horrid_abomination : public CreatureScript { public: npc_horrid_abomination() : CreatureScript("npc_horrid_abomination") { } private: class CreatureEntryCheck { public: CreatureEntryCheck(uint32 entry) : _entry(entry) { } bool operator() (Unit const *unit) const { return unit->GetEntry() == _entry; } private: uint32 _entry; }; CreatureAI* GetAI(Creature* creature) const { return new npc_horrid_abominationAI (creature); } struct npc_horrid_abominationAI : public ScriptedAI { npc_horrid_abominationAI(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_RESTITCHING = 1, ABOMINATION_TEXT_ID = 1, NPC_HORRID_ABOMINATION_KILL_CREDIT = 36233, NPC_PRINCE_LIAM_GREYMANE = 36140, SPELL_KEG_PLACED = 68555, SPELL_SHOOT = 68559, SPELL_RESTITCHING = 68864, SPELL_EXPLOSION = 68560, }; EventMap events; uint64 playerGUID; void InitializeAI() { me->m_CombatDistance = 10.0f; Reset(); } void Reset() { events.Reset(); playerGUID = 0; me->SetReactState(REACT_AGGRESSIVE); me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); } void SpellHit(Unit* caster, const SpellInfo* spell) { switch (spell->Id) { case SPELL_KEG_PLACED: { playerGUID = caster->GetGUID(); Talk(ABOMINATION_TEXT_ID); //CellCoord pair(WoWSource::ComputeCellCoord(LiamPosition[0], LiamPosition[1])); //Cell cell(pair); //cell.SetNoCreate(); Creature* creature = NULL; CreatureEntryCheck checker(NPC_PRINCE_LIAM_GREYMANE); WoWSource::CreatureSearcher<CreatureEntryCheck> searcher(me, creature, checker); //cell.Visit(pair, WoWSource::makeGridVisitor(searcher), *me->GetMap(), 5.f, LiamPosition[0], LiamPosition[1]); me->SetReactState(REACT_PASSIVE); me->AttackStop(); if (creature) creature->CastSpell(me, SPELL_SHOOT, false); else ShootEvent(); } break; case SPELL_SHOOT: ShootEvent(); break; } } void ShootEvent() { if (Player* player = ObjectAccessor::GetPlayer(*me, playerGUID)) player->KilledMonsterCredit(NPC_HORRID_ABOMINATION_KILL_CREDIT, 0); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->RemoveAura(SPELL_KEG_PLACED); me->CastSpell(me, SPELL_EXPLOSION, false); me->DespawnOrUnsummon(2000); } void EnterCombat(Unit* /*who*/) { events.ScheduleEvent(EVENT_RESTITCHING, 3000); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; events.Update(diff); if (events.ExecuteEvent() == EVENT_RESTITCHING) { me->CastSpell(me, 68864, false); events.ScheduleEvent(EVENT_RESTITCHING, 8000); } DoMeleeAttackIfReady(); } }; }; class spell_gilneas_horrid_abomination_explosion : public SpellScriptLoader { public: spell_gilneas_horrid_abomination_explosion() : SpellScriptLoader("spell_gilneas_horrid_abomination_explosion") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void ScriptEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); enum { SPELL_EXPLOSION_POISON = 42266, SPELL_EXPLOSION_BONE_TYPE_ONE = 42267, SPELL_EXPLOSION_BONE_TYPE_TWO = 42274, }; if (Unit* caster = GetCaster()) { for (int i = 0; i < 11; ++i) caster->CastSpell(caster, SPELL_EXPLOSION_POISON, false); for (int i = 0; i < 6; ++i) caster->CastSpell(caster, SPELL_EXPLOSION_BONE_TYPE_ONE, false); for (int i = 0; i < 4; ++i) caster->CastSpell(caster, SPELL_EXPLOSION_BONE_TYPE_TWO, false); } } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; const Position InvaderSP[19]= { {-1955.254f, 2317.037f, 34.241f, 5.801f}, {-1949.527f, 2318.189f, 34.604f, 5.765f}, {-1951.457f, 2323.875f, 34.064f, 5.730f}, {-1946.009f, 2326.200f, 34.465f, 5.453f}, {-1942.219f, 2322.254f, 34.900f, 5.549f}, {-1939.469f, 2327.883f, 34.838f, 5.540f}, {-1946.644f, 2333.507f, 33.945f, 5.899f}, {-1948.542f, 2343.059f, 33.336f, 5.336f}, {-1955.275f, 2341.054f, 33.402f, 5.992f}, {-1945.168f, 2349.152f, 32.780f, 5.404f}, {-1943.464f, 2356.645f, 31.673f, 5.627f}, {-1939.296f, 2359.115f, 31.611f, 5.404f}, {-1931.343f, 2360.742f, 31.775f, 5.361f}, {-1925.613f, 2358.293f, 32.118f, 4.744f}, {-1930.045f, 2351.567f, 33.169f, 4.799f}, {-1934.659f, 2349.729f, 32.768f, 4.847f}, {-1937.355f, 2342.858f, 33.417f, 5.114f}, {-1941.122f, 2338.149f, 33.751f, 5.341f}, {-1953.898f, 2349.607f, 31.305f, 5.483f}, }; class npc_prince_liam_greymane_phase_7 : public CreatureScript { public: npc_prince_liam_greymane_phase_7() : CreatureScript("npc_prince_liam_greymane_phase_7") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , shooterAI(creature, SPELL_SHOOT) { } enum { SPELL_SHOOT = 6660, NPC_FORSAKEN_INVADER = 34511, }; ShooterGuardAI shooterAI; void InitializeAI() { Reset(); SetCombatMovement(false); me->m_CombatDistance = 30.0f; me->setActive(true); for (int i = 0; i < 10; ++i) SummonInvader(); } void Reset() { shooterAI.Reset(); } void SummonInvader() { uint8 invaderId = urand(0, 18); if (Creature* invader = me->SummonCreature(NPC_FORSAKEN_INVADER, InvaderSP[invaderId], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 15000)) { float angle = me->GetAngle(invader); float x, y; me->GetNearPoint2D(x, y, frand(10.f, 15.f), angle); //invader->GetMotionMaster()->MovePointSmooth(x, y); invader->m_Events.AddEvent(new AggroEvent(invader), invader->m_Events.CalculateTime(10000)); } } void SummonedCreatureDies(Creature* summoned, Unit* /*killer*/) { SummonInvader(); } void DamageTaken(Unit* attacker, uint32 &damage) { shooterAI.DamageTaken(attacker, damage); } void EnterCombat(Unit* who) { shooterAI.EnterCombat(who); } void UpdateAI(uint32 const diff) { shooterAI.UpdateShooterAI(diff); } }; }; // Quest Save the Children! 14368 enum { SPELL_SAVE_CYNTHIA = 68597, SPELL_SAVE_ASHLEY = 68598, SPELL_SAVE_JAMES = 68596, PLAYER_SAY_CYNTHIA = 0, PLAYER_SAY_ASHLEY = 1, PLAYER_SAY_JAMES = 2, }; const std::string PlayerSay[3]= { "It's not safe here. Go to the Allens' basement.", "Join the others inside the basement next door. Hurry!", "Your mother's in the basement next door. Get to her now!", }; class npc_gilneas_children_phase_7 : public CreatureScript { public: npc_gilneas_children_phase_7(const char* scriptName, uint32 spellId, uint8 playerSayId) : CreatureScript(scriptName) , _spellId(spellId) , _playerSayId(playerSayId) { } private: uint32 _spellId; uint8 _playerSayId; CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature, _spellId, _playerSayId); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature, uint32 spellId, uint8 playerSayId) : ScriptedAI(creature) , _spellId(spellId) , _playerSayId(playerSayId) { } enum { EVENT_TALK_TO_PLAYER = 1, EVENT_START_RUN = 2, EVENT_OPEN_DOOR = 3, EVENT_RESUME_RUN = 4, CHILDREN_TEXT_ID = 1, GO_DOOR_TO_THE_BASEMENT = 196404, }; EventMap events; uint64 playerGUID; uint32 _spellId; uint8 _playerSayId; bool activated; void Reset() { events.Reset(); playerGUID = 0; activated = false; me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK); } void SpellHit(Unit* caster, const SpellInfo* spell) { if (!activated && spell->Id == _spellId) { if (Player* player = caster->ToPlayer()) { activated = true; playerGUID = player->GetGUID(); player->Say(PlayerSay[_playerSayId], LANG_UNIVERSAL); player->KilledMonsterCredit(me->GetEntry(), 0); me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK); events.ScheduleEvent(EVENT_TALK_TO_PLAYER, 3500); } } } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_TALK_TO_PLAYER: { if (Player* player = ObjectAccessor::GetPlayer(*me, playerGUID)) Talk(CHILDREN_TEXT_ID, playerGUID, true); events.ScheduleEvent(EVENT_START_RUN, 5000); } break; case EVENT_START_RUN: //me->GetMotionMaster()->MoveSplinePath(1, false, false, 0.f, false, false); events.ScheduleEvent(EVENT_OPEN_DOOR, 10000); break; case EVENT_OPEN_DOOR: { if (GameObject* door = me->FindNearestGameObject(GO_DOOR_TO_THE_BASEMENT, 10.0f)) { if (door->GetGoState() == GO_STATE_READY) { door->UseDoorOrButton(); events.ScheduleEvent(EVENT_RESUME_RUN, 2000); } else events.ScheduleEvent(EVENT_RESUME_RUN, 0); } } break; case EVENT_RESUME_RUN: //me->GetMotionMaster()->MoveSplinePath(2, false, false, 0.f, false, false); me->DespawnOrUnsummon(20000); break; } } } }; }; class npc_forsaken_invader : public CreatureScript { public: npc_forsaken_invader() : CreatureScript("npc_forsaken_invader") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } void Reset() { me->m_Events.AddEvent(new AggroEvent(me), me->m_Events.CalculateTime(500)); } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } else { if (Unit* victim = me->getVictim()) { if (victim->GetTypeId() == TYPEID_UNIT) { me->getThreatManager().resetAllAggro(); me->getThreatManager().addThreat(attacker, std::numeric_limits<float>::max()); AttackStart(attacker); } } } } }; }; // Quest Two By Sea 14382 class npc_forsaken_catapult_phase_7 : public CreatureScript { public: npc_forsaken_catapult_phase_7() : CreatureScript("npc_forsaken_catapult_phase_7") { } CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } void SetJumpPlayer(Position* pos, float speedXY, float speedZ) { _pos.Relocate(pos); _speedXY = speedXY; _speedZ = speedZ; events.ScheduleEvent(EVENT_JUMP, 1500); } private: enum { EVENT_RESPAWN = 1, EVENT_JUMP = 2, EVENT_BOULDER = 3, SPELL_LAUNCH = 66251, SPELL_BOULDER = 68591, ACTION_DRIVER = 1, }; EventMap events; float _speedXY, _speedZ; Position _pos; void InitializeAI() { Reset(); me->setActive(true); } void Reset() { events.Reset(); events.ScheduleEvent(EVENT_BOULDER, urand(5000, 20000)); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_DRIVER), me->m_Events.CalculateTime(500)); } void DoAction(int32 const action) { if (action == ACTION_DRIVER) { Position pos; me->GetPosition(&pos); if (Creature* driver = me->SummonCreature(36292, pos, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 15000)) { driver->setActive(true); driver->EnterVehicle(me, 2); } } } void PassengerBoarded(Unit* who, int8 seatId, bool apply) { if (!apply) { events.Reset(); events.ScheduleEvent(EVENT_RESPAWN, who->GetTypeId() == TYPEID_UNIT ? 30000 : 10000); } else events.CancelEvent(EVENT_RESPAWN); } void PassengerWillBoard(Unit* passenger, Position& enterPos, int8 seatId) { if (seatId == 1) { passenger->m_movementInfo.t_pos.m_positionZ += 15.f; enterPos.m_positionZ += 15.f; } } void SummonedCreatureDies(Creature * summon, Unit * /*killer*/) { me->setFaction(35); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_RESPAWN: me->DespawnOrUnsummon(); break; case EVENT_JUMP: { if (Vehicle* vehicle = me->GetVehicleKit()) { if (Unit* passenger = vehicle->GetPassenger(1)) { if (Player* player = passenger->ToPlayer()) { me->CastSpell(player, SPELL_LAUNCH, false); player->ExitVehicle(); player->GetMotionMaster()->MoveJump(_pos, _speedXY, _speedZ); } } } } break; case EVENT_BOULDER: { float x, y, z; me->GetNearPoint2D(x, y, urand(100, 150), me->GetOrientation()); z = me->GetMap()->GetHeight(me->GetPhaseMask(), x, y, MAX_HEIGHT); me->CastSpell(x, y, z, SPELL_BOULDER, false); events.ScheduleEvent(EVENT_BOULDER, urand(5000, 20000)); } break; } } } }; }; const float CheckSpellPos[16][3]= { {-2119.36f, 2663.58f, 8.25703f}, {-2132.94f, 2665.22f, 8.25549f}, {-2135.20f, 2658.72f, 19.1616f}, {-2113.73f, 2677.08f, 14.1064f}, {-2124.71f, 2677.31f, 13.6799f}, {-2128.56f, 2665.52f, 15.2329f}, {-2115.82f, 2668.72f, 13.6927f}, {-2106.92f, 2686.66f, 18.2360f}, {-2098.44f, 2694.41f, 20.4828f}, {-2197.74f, 2594.95f, 20.9434f}, {-2206.71f, 2587.34f, 18.6410f}, {-2229.45f, 2568.61f, 15.6442f}, {-2236.70f, 2560.28f, 19.7311f}, {-2215.77f, 2568.64f, 14.0592f}, {-2224.96f, 2579.85f, 14.0884f}, {-2216.07f, 2578.79f, 14.5102f}, }; typedef npc_forsaken_catapult_phase_7::creature_script_impl CatapultAI; class spell_gilneas_forsaken_catapult_launch : public SpellScriptLoader { public: spell_gilneas_forsaken_catapult_launch() : SpellScriptLoader("spell_gilneas_forsaken_catapult_launch") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) SpellCastResult CheckCast() { float x, y, z; GetExplTargetDest()->GetPosition(x, y, z); for (int i = 0; i < 16; ++i) if (sqrt(pow(x - CheckSpellPos[i][0], 2) + pow(y - CheckSpellPos[i][1], 2) + pow(z - CheckSpellPos[i][2], 2)) < 10.0f) return SPELL_CAST_OK; return SPELL_FAILED_BAD_TARGETS; } void Function(SpellEffIndex /*effIndex*/) { if (Unit* caster = GetCaster()) { if (Vehicle* vehicle = caster->GetVehicleKit()) { if (Unit* passenger = vehicle->GetPassenger(0)) { if (passenger->GetTypeId() == TYPEID_PLAYER) { passenger->ChangeSeat(1); Position pos; float speedXY = 1, speedZ = 1; GetExplTargetDest()->GetPosition(&pos); if (CatapultAI* catapult = dynamic_cast<CatapultAI*>(caster->GetAI())) catapult->SetJumpPlayer(&pos, speedXY, speedZ); } } } } } void Register() { OnCheckCast += SpellCheckCastFn(spell_script_impl::CheckCast); OnEffectHit += SpellEffectFn(spell_script_impl::Function, EFFECT_0, SPELL_EFFECT_DUMMY); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; class npc_gilneas_forsaken_captain : public CreatureScript { public: npc_gilneas_forsaken_captain() : CreatureScript("npc_gilneas_forsaken_captain") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , shooterAI(creature, SPELL_SHOOT, 45.f) { } enum { EVENT_RUSTY_RAPIER = 1, SPELL_SHOOT = 38372, SPELL_RUSTY_RAPIER = 75363, }; EventMap events; ShooterGuardAI shooterAI; void InitializeAI() { Reset(); SetCombatMovement(false); me->m_CombatDistance = 45.0f; } void Reset() { shooterAI.Reset(); } void EnterCombat(Unit* who) { shooterAI.EnterCombat(who); events.ScheduleEvent(EVENT_RUSTY_RAPIER, urand(5000, 10000)); } void UpdateAI(uint32 const diff) { if (!shooterAI.UpdateShooterAI(diff)) return; events.Update(diff); if (events.ExecuteEvent() == EVENT_RUSTY_RAPIER) { me->CastSpell(me->getVictim(), SPELL_RUSTY_RAPIER, false); events.ScheduleEvent(EVENT_RUSTY_RAPIER, urand(15000, 30000)); } } }; }; // Quest Leader of the Pack 14386 class npc_dark_ranger_thyala : public CreatureScript { public: npc_dark_ranger_thyala() : CreatureScript("npc_dark_ranger_thyala") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , shooterAI(creature, SPELL_SHOOT) , summons(creature) { } enum { EVENT_KNOCKBACK = 1, SPELL_SHOOT = 16100, SPELL_KNOCKBACK = 68683, NPC_ATTACK_MASTIFF = 36409, }; EventMap events; SummonList summons; ShooterGuardAI shooterAI; void InitializeAI() { Reset(); SetCombatMovement(false); me->m_CombatDistance = 45.0f; } void Reset() { shooterAI.Reset(); events.Reset(); events.ScheduleEvent(EVENT_KNOCKBACK, urand(2500, 5000)); } void DamageTaken(Unit* attacker, uint32 &damage) { if (me->GetHealth() < damage) { std::list<HostileReference*> threatList = me->getThreatManager().getThreatList(); for (std::list<HostileReference*>::const_iterator itr = threatList.begin(); itr != threatList.end(); ++itr) if (Player* player = ObjectAccessor::GetPlayer((*me), (*itr)->getUnitGuid())) player->KilledMonsterCredit(me->GetEntry(), me->GetGUID()); } } void EnterCombat(Unit* who) { shooterAI.EnterCombat(who); } void JustSummoned(Creature* summoned) { summons.Summon(summoned); } void JustDied(Unit* /*who*/) { summons.DespawnAll(); } void UpdateAI(uint32 const diff) { if (!shooterAI.UpdateShooterAI(diff)) return; events.Update(diff); if (events.ExecuteEvent() == EVENT_KNOCKBACK) { me->CastSpell((Unit*)NULL, SPELL_KNOCKBACK, false); events.ScheduleEvent(EVENT_KNOCKBACK, urand(7500, 15000)); } } }; }; class npc_attack_mastiff : public CreatureScript { public: npc_attack_mastiff() : CreatureScript("npc_attack_mastiff") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_DEMORALIZING_ROAR = 1, EVENT_LEAP = 2, EVENT_TAUNT = 3, SPELL_DEMORALIZING_ROAR = 15971, SPELL_LEAP = 68687, SPELL_TAUNT = 26281, }; EventMap events; void Reset() { events.Reset(); } void EnterCombat(Unit* who) { events.ScheduleEvent(EVENT_DEMORALIZING_ROAR, urand(2500, 5000)); events.ScheduleEvent(SPELL_TAUNT, urand(2500, 5000)); events.ScheduleEvent(SPELL_LEAP, urand(5000, 10000)); } void JustDied(Unit* /*killer*/) { events.Reset(); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_DEMORALIZING_ROAR: me->CastSpell((Unit*)NULL, SPELL_DEMORALIZING_ROAR, false); events.ScheduleEvent(EVENT_DEMORALIZING_ROAR, urand(5000, 15000)); break; case SPELL_TAUNT: me->CastSpell(me->getVictim(), SPELL_TAUNT, false); events.ScheduleEvent(SPELL_TAUNT, urand(5000, 10000)); break; case SPELL_LEAP: me->CastSpell(me->getVictim(), SPELL_LEAP, false); events.ScheduleEvent(SPELL_LEAP, urand(5000, 10000)); break; } } DoMeleeAttackIfReady(); } }; }; class spell_call_attack_mastiffs : public SpellScriptLoader { public: spell_call_attack_mastiffs() : SpellScriptLoader("spell_call_attack_mastiffs") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void SummonMastiffs(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); enum { NPC_ATTACK_MASTIFF = 36409, }; Unit* caster = GetCaster(); Creature* target = GetHitCreature(); if (!(caster && target && target->isAlive())) return; float angle = target->GetHomePosition().GetOrientation(); for (int i = 0; i < 12; ++i) { float x, y; float dist = urand(20.f, 40.f); float angleOffset = frand(-M_PI / 4, M_PI / 4); target->GetNearPoint2D( x, y, dist, angle + angleOffset); float z = target->GetMap()->GetHeight(target->GetPhaseMask(), x, y, MAX_HEIGHT); float summonAngle = target->GetAngle(x, y); if (Creature* mastiff = target->SummonCreature(NPC_ATTACK_MASTIFF, x, y, z, M_PI + summonAngle, TEMPSUMMON_TIMED_DESPAWN, 60000)) { mastiff->Attack(target, true); mastiff->AddThreat(target, std::numeric_limits<float>::max()); mastiff->GetMotionMaster()->MoveChase(target); } } } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::SummonMastiffs, EFFECT_0, SPELL_EFFECT_DUMMY); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; class npc_lord_godfrey_phase_7 : public CreatureScript { public: npc_lord_godfrey_phase_7() : CreatureScript("npc_lord_godfrey_phase_7") { } private: bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { enum { SPELL_FORCECAST_CATACLYSM_I = 69027 }; if (quest->GetQuestId() == QUEST_LEADER_OF_THE_PACK) { creature->CastSpell(player, SPELL_FORCECAST_CATACLYSM_I, false); player->SaveToDB(); } return false; } }; class spell_gilneas_cataclysm_phase_7 : public SpellScriptLoader { public: spell_gilneas_cataclysm_phase_7() : SpellScriptLoader("spell_gilneas_cataclysm_phase_7") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void ExtraEffect(SpellEffIndex effIndex) { if (Player* player = GetHitPlayer()) { player->RemoveAurasByType(SPELL_AURA_PHASE); player->CastSpell(player, SPELL_ZONE_SPECIFIC_08, true); } } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ExtraEffect, EFFECT_0, SPELL_EFFECT_FORCE_CAST); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; // Quest Gasping for Breath 14395 class npc_drowning_watchman : public CreatureScript { public: npc_drowning_watchman() : CreatureScript("npc_drowning_watchman") { } private: CreatureAI* GetAI(Creature* creature) const { return new npc_drowning_watchmanAI (creature); } struct npc_drowning_watchmanAI : public ScriptedAI { npc_drowning_watchmanAI(Creature* creature) : ScriptedAI(creature) { } enum { SPELL_SUMMON_SPARKLES = 69253, SPELL_DROWNING = 68730, SPELL_RESCUE_DROWNING_WATCHMAN = 68735, GO_SPARKLES = 197333, DROWNING_WATCHMAN_SAY = 1, }; void Reset() { me->CastSpell(me, SPELL_DROWNING, false); me->CastSpell((Unit*)NULL, SPELL_SUMMON_SPARKLES, false); me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK); } void SpellHit(Unit* caster, const SpellInfo* spell) { if (spell->Id == SPELL_RESCUE_DROWNING_WATCHMAN) { me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK); me->RemoveAura(SPELL_DROWNING); me->EnterVehicle(caster); if (GameObject* go = me->FindNearestGameObject(GO_SPARKLES, 10.0f)) go->Delete(); } } void OnControlVehicle(Unit* base, int8 /*seatId*/, bool apply) { if (!apply) { if (me->IsInWater()) me->CastSpell(me, SPELL_DROWNING, false); else me->SetStandState(UNIT_STAND_STATE_KNEEL); Talk(DROWNING_WATCHMAN_SAY, base->GetGUID(), true); me->DespawnOrUnsummon(10000); } } }; }; class npc_duskhaven_watchman_rescuer_phase_8 : public CreatureScript { public: npc_duskhaven_watchman_rescuer_phase_8() : CreatureScript("npc_duskhaven_watchman_rescuer_phase_8") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature){ } enum { NPC_DROWNING_WATCHMAN_KREDIT = 36450, SPELL_RESCUE_DROWNING_WATCHMAN = 68735, }; void MoveInLineOfSight(Unit* who) { if (who->GetTypeId() == TYPEID_PLAYER && who->IsVehicle() && !who->IsInWater() && me->GetExactDistSq(who) < 25.0f) { who->RemoveAura(SPELL_RESCUE_DROWNING_WATCHMAN); who->ToPlayer()->KilledMonsterCredit(NPC_DROWNING_WATCHMAN_KREDIT, 0); } } }; }; // Quest The Hungry Ettin 14416 class npc_mountain_horse_vehicle : public CreatureScript { public: npc_mountain_horse_vehicle() : CreatureScript("npc_mountain_horse_vehicle") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) , summons(me) { } enum { SPELL_ROPE_IN_HORSE = 68908, SPELL_MOUNTAIN_HORSE_CREDIT = 68917, }; SummonList summons; void SpellHit(Unit* /*caster*/, const SpellInfo* spell) { if (spell->Id == SPELL_ROPE_IN_HORSE) me->DespawnOrUnsummon(); } void PassengerBoarded(Unit* who, int8 /*seatId*/, bool apply) { if (!apply) { static Position homePos = {-2059.701f, 2254.174f, 22.57308f, 1.361357f}; if (me->GetExactDist2dSq(&homePos) < 400.f) { me->CastSpell(who, SPELL_MOUNTAIN_HORSE_CREDIT, false); for (SummonList::const_iterator itr = summons.begin(); itr != summons.end(); ++itr) if (Creature* horse = sObjectAccessor->GetCreature(*me, *itr)) horse->CastSpell(who, SPELL_MOUNTAIN_HORSE_CREDIT, false); } me->DespawnOrUnsummon(); summons.DespawnAll(); } } void JustSummoned(Creature* summoned) { summons.Summon(summoned); } }; }; class npc_mountain_horse_follower : public CreatureScript { public: npc_mountain_horse_follower() : CreatureScript("npc_mountain_horse_follower") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { SPELL_ROPE_CHANNEL = 68940, }; void isSummonedBy(Unit* summoner) { me->CastSpell(summoner, SPELL_ROPE_CHANNEL, false); me->GetMotionMaster()->MoveFollow(summoner, frand(2.5, 5.f), frand(-M_PI / 4, M_PI / 4)); if (Creature* horse = summoner->GetVehicleCreatureBase()) if (horse->IsAIEnabled) horse->AI()->JustSummoned(me); } }; }; class spell_round_up_horse : public SpellScriptLoader { public: spell_round_up_horse() : SpellScriptLoader("spell_round_up_horse") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) SpellCastResult CheckCast() { enum { NPC_MOUNTAIN_HORSE_VEHICLE = 36540, SPELL_RIDE_VEHICLE = 94654, }; if (Unit* target = GetExplTargetUnit()) if (target->GetEntry() != NPC_MOUNTAIN_HORSE_VEHICLE || target->HasAura(SPELL_RIDE_VEHICLE)) return SPELL_FAILED_BAD_TARGETS; return SPELL_CAST_OK; } void Register() { OnCheckCast += SpellCheckCastFn(spell_script_impl::CheckCast); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; // Quest Grandma's Cat 14401 class npc_wahl : public CreatureScript { public: npc_wahl() : CreatureScript("npc_wahl") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_TRANSFORM = 1, YELL_DONT_MESS = 1, NPC_WAHL_WORGEN = 36852, SPELL_TRANSFORM = 81908, }; EventMap events; void isSummonedBy(Unit* /*summoner*/) { Talk(YELL_DONT_MESS); me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER); //me->GetMotionMaster()->MoveSplinePath(1, false, false, 0.f, false, false); events.ScheduleEvent(EVENT_TRANSFORM, 10000); } void JustReachedHome() { if (me->isSummon()) { //me->GetMotionMaster()->MoveSplinePath(2, false, false, 0.f, false, false); me->DespawnOrUnsummon(10000); } } void UpdateAI(uint32 const diff) { events.Update(diff); if (events.ExecuteEvent() == EVENT_TRANSFORM) { if (me->isSummon()) { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) { me->SetHomePosition(*me); me->CastSpell(me, SPELL_TRANSFORM, false); me->SetDisplayId(NPC_WAHL_WORGEN); me->SetReactState(REACT_AGGRESSIVE); me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_IMMUNE_TO_NPC); AttackStart(summoner); } } } if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class npc_lucius_the_cruel : public CreatureScript { public: npc_lucius_the_cruel() : CreatureScript("npc_lucius_the_cruel") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , shooterAI(creature, SPELL_SHOOT, 45.f) , wahlGUID(0) { } enum { EVENT_CATCH_CHANCE_1 = 1, EVENT_CATCH_CHANCE_2 = 2, EVENT_SUMMON_WHAL = 3, SAY_THIS_CAT_IS_MINE = 1, SPELL_SHOOT = 38372, NPC_WAHL = 36458, NPC_CHANCE_THE_CAT = 36459, }; ShooterGuardAI shooterAI; EventMap events; uint64 wahlGUID; void InitializeAI() { SetCombatMovement(false); me->SetReactState(REACT_PASSIVE); me->SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_NON_ATTACKABLE); } void isSummonedBy(Unit* summoner) { Talk(SAY_THIS_CAT_IS_MINE); //me->GetMotionMaster()->MoveSplinePath(1, false, true, 0.f, false, false); events.ScheduleEvent(EVENT_CATCH_CHANCE_1, 10500); } void Reset() { shooterAI.Reset(); } void EnterCombat(Unit* who) { shooterAI.EnterCombat(who); events.ScheduleEvent(EVENT_SUMMON_WHAL, 2000); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_CATCH_CHANCE_1: if (Creature* chance = me->FindNearestCreature(NPC_CHANCE_THE_CAT, 20.f)) { me->SetFacingToObject(chance); me->HandleEmoteCommand(EMOTE_ONESHOT_KNEEL); chance->DespawnOrUnsummon(1000); } me->SetHomePosition(*me); events.ScheduleEvent(EVENT_CATCH_CHANCE_2, 2500); break; case EVENT_CATCH_CHANCE_2: me->RemoveFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_NON_ATTACKABLE); me->SetReactState(REACT_AGGRESSIVE); AttackStart(me->ToTempSummon()->GetSummoner()); break; case EVENT_SUMMON_WHAL: if (wahlGUID == 0) { Position const wahlSP = {-2100.673f, 2351.875f, 6.855009f, 3.227739f}; if (Creature* wahl = me->SummonCreature(NPC_WAHL, wahlSP)) wahlGUID = wahl->GetGUID(); } break; } } shooterAI.UpdateShooterAI(diff); } }; }; class npc_chance_the_cat : public CreatureScript { public: npc_chance_the_cat() : CreatureScript("npc_chance_the_cat") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { NPC_LUCIUS_THE_CRUEL = 36461, SPELL_CATCH_CAT = 68743, }; bool isEvent; void Reset() { isEvent = false; } void SpellHit(Unit* caster, const SpellInfo* spell) { if (!isEvent && spell->Id == SPELL_CATCH_CAT) { isEvent = true; me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK); static Position luciusSP = {-2112.473f, 2329.608f, 7.390349f, 0.1513071f}; caster->SummonCreature(NPC_LUCIUS_THE_CRUEL, luciusSP, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000); } } }; }; static const Position HaywardInvaderSP[17]= { {-2301.968f, 2256.245f, 0.749f, 1.743f}, {-2306.780f, 2253.055f, 0.489f, 1.591f}, {-2311.719f, 2255.334f, 0.563f, 1.236f}, {-2320.660f, 2258.933f, 0.327f, 0.981f}, {-2327.204f, 2259.341f, 0.533f, 0.675f}, {-2330.231f, 2260.883f, 0.484f, 0.667f}, {-2341.077f, 2261.813f, 0.329f, 0.670f}, {-2344.812f, 2268.983f, 0.477f, 0.757f}, {-2352.468f, 2280.472f, 0.326f, 0.152f}, {-2356.115f, 2288.644f, 1.020f, 5.992f}, {-2354.731f, 2293.812f, 0.754f, 5.849f}, {-2348.310f, 2300.429f, 0.350f, 5.544f}, {-2345.154f, 2305.551f, 0.382f, 5.552f}, {-2337.912f, 2310.830f, 0.487f, 5.473f}, {-2336.987f, 2319.975f, 1.412f, 5.230f}, {-2325.889f, 2309.358f, 0.354f, 5.261f}, {-2317.483f, 2316.027f, 0.329f, 4.943f}, }; class npc_hayward_brother : public CreatureScript { public: npc_hayward_brother() : CreatureScript("npc_hayward_brother") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { NPC_FORSAKEN_INVADER = 36488, }; void InitializeAI() { SetCombatMovement(false); me->m_CombatDistance = 10.0f; me->setActive(true); for (int i = 0; i < 2; ++i) SummonInvader(); } void SummonInvader() { uint8 invaderId = urand(0, 16); if (Creature* invader = me->SummonCreature(NPC_FORSAKEN_INVADER, HaywardInvaderSP[invaderId], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 15000)) { float x, y; invader->Attack(me, true); invader->AddThreat(me, std::numeric_limits<float>::max()); me->GetNearPoint2D(x, y, 2.f, me->GetAngle(invader)); Movement::MoveSplineInit init(invader); init.SetVelocity(10.f); //invader->GetMotionMaster()->MovePointSmooth(x, y, 5.f, true, &init); } } void SummonedCreatureDies(Creature* summoned, Unit* /*killer*/) { SummonInvader(); } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; // Quest To Greymane Manor 14465 class npc_swift_mountain_horse : public CreatureScript { public: npc_swift_mountain_horse() : CreatureScript("npc_swift_mountain_horse") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { EVENT_START_RIDE = 1, EVENT_OPEN_GATE_1 = 2, EVENT_OPEN_GATE_2 = 3, EVENT_DONE_RIDE = 4, GO_FIRST_GATE = 196863, GO_SECOND_GATE = 196864, SPELL_EJECT_ALL_PASSENGERS = 50630, }; EventMap events; void InitializeAI() { } void isSummonedBy(Unit* summoner) { events.ScheduleEvent(EVENT_START_RIDE, 1500); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_START_RIDE: //me->GetMotionMaster()->MoveSplinePath(1); events.ScheduleEvent(EVENT_OPEN_GATE_1, 10250); break; case EVENT_OPEN_GATE_1: { if (GameObject* gate = me->FindNearestGameObject(GO_FIRST_GATE, 30.0f)) if (gate->GetGoState() == GO_STATE_READY) gate->UseDoorOrButton(); //me->GetMotionMaster()->MoveSplinePath(2); events.ScheduleEvent(EVENT_OPEN_GATE_2, 10250); } break; case EVENT_OPEN_GATE_2: { if (GameObject* gate = me->FindNearestGameObject(GO_SECOND_GATE, 30.0f)) if (gate->GetGoState() == GO_STATE_READY) gate->UseDoorOrButton(); //me->GetMotionMaster()->MoveSplinePath(3); events.ScheduleEvent(EVENT_DONE_RIDE, 10000); } break; case EVENT_DONE_RIDE: me->CastSpell(me, SPELL_EJECT_ALL_PASSENGERS, false); break; } } } }; }; class npc_gwen_armstead_phase_8 : public CreatureScript { public: npc_gwen_armstead_phase_8() : CreatureScript("npc_gwen_armstead_phase_8") { } private: bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { enum { SPELL_FORCECAST_SUMMON_SWIFT_MOUNTAIN_HORSE = 69256, }; if (quest->GetQuestId() == QUEST_TO_GREYMANE_MANOR) creature->CastSpell(player, SPELL_FORCECAST_SUMMON_SWIFT_MOUNTAIN_HORSE, false, NULL, NULL, player->GetGUID()); return false; } }; // Quest The King's Observatory 14466, Alas, Gilneas! 14467 class npc_king_genn_greymane_c3 : public CreatureScript { public: npc_king_genn_greymane_c3() : CreatureScript("npc_king_genn_greymane_c3") { } private: enum { SPELL_CATACLYSM = 80134, CINEMATIC_TELESCOPE = 167, }; bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == QUEST_THE_KINGS_OBSERVATORY) { player->CastSpell(player, SPELL_CATACLYSM, false); player->RemoveAurasByType(SPELL_AURA_PHASE); player->CastSpell(player, SPELL_ZONE_SPECIFIC_11, false); WorldLocation loc; loc.m_mapId = 654; loc.Relocate(player); player->SetHomebind(loc, 4817); player->SaveToDB(); } else if (quest->GetQuestId() == QUEST_ALAS_GILNEAS) player->SendCinematicStart(CINEMATIC_TELESCOPE); return false; } bool OnQuestAccept(Player* player, Creature* /*creature*/, Quest const* quest) { if (quest->GetQuestId() == QUEST_EXODUS) { player->CastSpell(player, SPELL_INVISIBILITY_DETECTION_2, false); player->SaveToDB(); } return false; } }; /////////// // Quest Exodus 24438 /////////// enum { NPC_QE_MARIE_ALLEN = 38853, NPC_QE_GWEN_ARMSTEAD = 44460, NPC_QE_KRENNAN_ARANAS = 36138, NPC_QE_DUSKHAVEN_WATCHMAN = 43907, NPC_QE_DUSKHAVEN_WATCHMAN_GUN = 37946, NPC_QE_LORNA_CROWLEY = 51409, }; struct CarriageAccessory { uint8 seatId; uint32 entry; }; const CarriageAccessory carriageAccessories[6]= { {1, NPC_QE_MARIE_ALLEN}, {4, NPC_QE_GWEN_ARMSTEAD}, {3, NPC_QE_KRENNAN_ARANAS}, {2, NPC_QE_DUSKHAVEN_WATCHMAN}, {5, NPC_QE_DUSKHAVEN_WATCHMAN_GUN}, {6, NPC_QE_LORNA_CROWLEY}, }; class npc_stagecoach_harness_summoner : public CreatureScript { public: npc_stagecoach_harness_summoner() : CreatureScript("npc_stagecoach_harness_summoner") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } void InitializeAI() { me->CastSpell(me, SPELL_GENERIC_QUEST_INVISIBILITY_2, false); } void JustSummoned(Creature* summoned) { summoned->CastSpell(summoned, SPELL_GENERIC_QUEST_INVISIBILITY_2, false); } void PassengerWillBoard(Unit* passenger, Position& enterPos, int8 seatId) { switch (seatId) { case 0: passenger->m_movementInfo.t_pos.Relocate(3.4765f, -0.7888f); enterPos.Relocate(3.4765f, -0.7888f); break; case 1: passenger->m_movementInfo.t_pos.Relocate(3.4765f, 0.7888f); enterPos.Relocate(3.4765f, 0.7888f); break; case 2: passenger->m_movementInfo.t_pos.Relocate(0.f, 0.f, -0.0139f); enterPos.Relocate(0.f, 0.f, -0.0139f); break; } } }; }; class npc_stagecoach_carriage_summoner : public CreatureScript { public: npc_stagecoach_carriage_summoner() : CreatureScript("npc_stagecoach_carriage_summoner") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { ACTION_INSTALL_ACCESSORIES = 1, }; void InitializeAI() { //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_INSTALL_ACCESSORIES), me->m_Events.CalculateTime(250), true); } void OnSpellClick(Unit* player, bool &/*result*/) { player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT); player->RemoveAurasByType(SPELL_AURA_MOD_INVISIBILITY_DETECT); player->RemoveAurasByType(SPELL_AURA_PHASE); player->CastSpell(player, SPELL_ZONE_SPECIFIC_19, false); } void DoAction(int32 const action) { if (action == ACTION_INSTALL_ACCESSORIES) { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) for (int i = 0; i < 6; ++i) if (Creature* passenger = summoner->SummonCreature(carriageAccessories[i].entry, *me)) passenger->EnterVehicle(me, carriageAccessories[i].seatId); me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK); } } void PassengerWillBoard(Unit* passenger, Position& enterPos, int8 seatId) { switch (seatId) { case 1: passenger->m_movementInfo.t_pos.Relocate(0.25f, 0.f, -0.4f); enterPos.Relocate(0.25f, 0.f, -0.4f); break; case 2: passenger->m_movementInfo.t_pos.Relocate(0.f, 0.f, -0.4f, 3.141593f); enterPos.Relocate(0.f, 0.f, -0.4f, 3.141593f); break; case 3: passenger->m_movementInfo.t_pos.Relocate(0.f, 0.f, -0.4f, 3.141593f); enterPos.Relocate(0.f, 0.f, -0.4f, 3.141593f); break; case 4: passenger->m_movementInfo.t_pos.Relocate(0.f, -0.8f, -0.4f, 3.141593f); enterPos.Relocate(0.f, -0.8f, -0.4f, 3.141593f); break; case 5: passenger->m_movementInfo.t_pos.Relocate(1.f, -1.8f, 3.1f); enterPos.Relocate(1.f, -1.8f, 3.1f); break; case 6: passenger->m_movementInfo.t_pos.Relocate(1.f, 0.4f, 3.f, 0.5235987f); enterPos.Relocate(1.f, 0.4f, 3.f, 0.5235987f); break; } } }; }; static const uint32 ropeSpellEntry[2]= { 84171, 84167, }; class npc_stagecoach_harness_escort : public CreatureScript { public: npc_stagecoach_harness_escort() : CreatureScript("npc_stagecoach_harness_escort") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) , summons(creature) , lornaGUID(0) { } enum { EVENT_START_RIDE = 1, EVENT_OPEN_KING_GATE = 2, EVENT_OGRES_ATTACK_1 = 3, EVENT_OGRES_ATTACK_2 = 4, EVENT_OGRES_ATTACK_3 = 5, EVENT_DONE_RIDE = 6, EVENT_FINISH_DRIVE = 7, EVENT_CHECK_SUMMONER_STATE = 8, EVENT_ROPE = 9, NPC_QE_YOUNG_MASTIFF = 42722, NPC_QE_OGRE_AMBUSHER = 38762, GO_GREYMANE_GATE = 196401, GO_KINGS_GATE = 196412, SPELL_THROW_BOULDER = 72768, EXODUS_PHASE_MASK = 33685504, ACTION_INSTALL_ACCESSORIES = 1, ACTION_DESPAWN = 2, LORNA_YELL_CARRIAGE = 1, }; EventMap events; SummonList summons; uint64 lornaGUID; void InitializeAI() { ASSERT(me->isSummon()); me->SetPhaseMask(EXODUS_PHASE_MASK, true); me->setActive(true); } void DoAction(int32 const action) { switch (action) { case ACTION_INSTALL_ACCESSORIES: { static const uint32 accessoryEntry[3]= { 43338, 43338, 43337, }; for (int i = 0; i < 3; ++i) if (Creature* passenger = me->SummonCreature(accessoryEntry[i], *me)) passenger->EnterVehicle(me, i); } break; case ACTION_DESPAWN: summons.DespawnAll(); me->DespawnOrUnsummon(); break; } } void isSummonedBy(Unit* summoner) { me->SetVisible(true); if (Player* player = summoner->ToPlayer()) player->CompleteQuest(QUEST_EXODUS); events.ScheduleEvent(EVENT_ROPE, 2000); events.ScheduleEvent(EVENT_START_RIDE, 3000); events.ScheduleEvent(EVENT_CHECK_SUMMONER_STATE, 3000); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_INSTALL_ACCESSORIES), me->m_Events.CalculateTime(250), true); } void JustSummoned(Creature* summoned) { summons.Summon(summoned); summoned->SetPhaseMask(EXODUS_PHASE_MASK, true); summoned->SetVisible(true); summoned->setActive(true); if (summoned->GetEntry() == 51409) lornaGUID = summoned->GetGUID(); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_ROPE: { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) if (Vehicle* vehicle = me->GetVehicleKit()) for (int i = 0; i < 2; ++i) if (Unit* passenger = vehicle->GetPassenger(i)) summoner->CastSpell(passenger, ropeSpellEntry[i], false); } break; case EVENT_START_RIDE: { float x, y; me->GetNearPoint2D(x, y, 5.f, M_PI - me->GetOrientation()); if (Creature* mastiff = me->SummonCreature(NPC_QE_YOUNG_MASTIFF, x, y, me->GetPositionZ(), me->GetOrientation())) mastiff->GetMotionMaster()->MoveFollow(me, 1.0f, M_PI / 2, MOTION_SLOT_CONTROLLED); if (Creature* mastiff = me->SummonCreature(NPC_QE_YOUNG_MASTIFF, x, y, me->GetPositionZ(), me->GetOrientation())) mastiff->GetMotionMaster()->MoveFollow(me, 1.0f, -M_PI / 2, MOTION_SLOT_CONTROLLED); if (GameObject* gate = me->FindNearestGameObject(GO_GREYMANE_GATE, 30.0f)) if (gate->GetGoState() == GO_STATE_READY) gate->UseDoorOrButton(); //me->GetMotionMaster()->MoveSplinePath(1); events.ScheduleEvent(EVENT_OPEN_KING_GATE, 10250); } break; case EVENT_OPEN_KING_GATE: { if (GameObject* gate = me->FindNearestGameObject(GO_KINGS_GATE, 30.0f)) if (gate->GetGoState() == GO_STATE_READY) gate->UseDoorOrButton(); //me->GetMotionMaster()->MoveSplinePath(2); events.ScheduleEvent(EVENT_OGRES_ATTACK_1, 10250); } break; case EVENT_OGRES_ATTACK_1: { if (Creature* lorna = ObjectAccessor::GetCreature(*me, lornaGUID)) if (lorna->IsAIEnabled) lorna->AI()->Talk(LORNA_YELL_CARRIAGE, me->ToTempSummon()->GetSummonerGUID(), true); //me->GetMotionMaster()->MoveSplinePath(3); events.ScheduleEvent(EVENT_OGRES_ATTACK_2, 250); events.ScheduleEvent(EVENT_DONE_RIDE, 10500); } break; case EVENT_OGRES_ATTACK_2: events.ScheduleEvent(EVENT_OGRES_ATTACK_3, 1000); case EVENT_OGRES_ATTACK_3: { std::list<Creature*> ogreList; GetCreatureListWithEntryInGrid(ogreList, me, NPC_QE_OGRE_AMBUSHER, 50.0f); if (!ogreList.empty()) { if (Creature* ogre = WoWSource::Containers::SelectRandomContainerElement(ogreList)) { float x, y, z; me->GetPosition(x, y, z); ogre->CastSpell(x, y, z, SPELL_THROW_BOULDER, false); } } } break; case EVENT_DONE_RIDE: { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) { summoner->ExitVehicle(); summoner->RemoveAurasByType(SPELL_AURA_PHASE); summoner->CastSpell(summoner, SPELL_ZONE_SPECIFIC_11, false); if (Vehicle* vehicle = me->GetVehicleKit()) for (int i = 0; i < 2; ++i) if (Unit* passenger = vehicle->GetPassenger(i)) passenger->RemoveAura(ropeSpellEntry[i]); if (Player* player = summoner->ToPlayer()) player->SaveToDB(); } events.ScheduleEvent(EVENT_FINISH_DRIVE, 1000); } break; case EVENT_FINISH_DRIVE: //me->GetMotionMaster()->MoveSplinePath(4); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_DESPAWN), me->m_Events.CalculateTime(me->GetSplineDuration()), true); break; case EVENT_CHECK_SUMMONER_STATE: { if (!me->ToTempSummon()->GetSummoner()) { summons.DespawnAll(); me->DespawnOrUnsummon(); return; } events.ScheduleEvent(EVENT_CHECK_SUMMONER_STATE, 500); } break; } } } }; }; class npc_stagecoach_carriage_escort : public CreatureScript { public: npc_stagecoach_carriage_escort() : CreatureScript("npc_stagecoach_carriage_escort") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { ACTION_INSTALL_ACCESSORIES = 1, }; void InitializeAI() { ASSERT(me->isSummon()); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_INSTALL_ACCESSORIES), me->m_Events.CalculateTime(250), true); } void DoAction(int32 const action) { if (action == ACTION_INSTALL_ACCESSORIES) { Position pos; me->GetPosition(&pos); if (Unit *harness = me->ToTempSummon()->GetSummoner()) { for (int i = 0; i < 6; ++i) if (Creature* passenger = harness->SummonCreature(carriageAccessories[i].entry, pos)) passenger->EnterVehicle(me, carriageAccessories[i].seatId); if (harness->isSummon()) if (Unit* summoner = harness->ToTempSummon()->GetSummoner()) summoner->EnterVehicle(me, 0); } } } void PassengerWillBoard(Unit* passenger, Position& enterPos, int8 seatId) { switch (seatId) { case 1: passenger->m_movementInfo.t_pos.Relocate(0.25f, 0.f, -0.4f); enterPos.Relocate(0.25f, 0.f, -0.4f); break; case 2: passenger->m_movementInfo.t_pos.Relocate(0.f, 0.f, -0.4f, 3.141593f); enterPos.Relocate(0.f, 0.f, -0.4f, 3.141593f); break; case 3: passenger->m_movementInfo.t_pos.Relocate(0.f, 0.f, -0.4f, 3.141593f); enterPos.Relocate(0.f, 0.f, -0.4f, 3.141593f); break; case 4: passenger->m_movementInfo.t_pos.Relocate(0.f, -0.8f, -0.4f, 3.141593f); enterPos.Relocate(0.f, -0.8f, -0.4f, 3.141593f); break; case 5: passenger->m_movementInfo.t_pos.Relocate(1.f, -1.8f, 3.1f); enterPos.Relocate(1.f, -1.8f, 3.1f); break; case 6: passenger->m_movementInfo.t_pos.Relocate(1.f, 0.4f, 3.f, 0.5235987f); enterPos.Relocate(1.f, 0.4f, 3.f, 0.5235987f); break; } } }; }; // Quest Stranded at the Marsh 24468 class npc_crash_survivor : public CreatureScript { public: npc_crash_survivor() : CreatureScript("npc_crash_survivor") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , canSummon(true) { } enum { NPC_SWAMP_CROCOLISK = 37078, SURVIVOR_RANDOM_SAY = 1, }; bool canSummon; void InitializeAI() { SetCombatMovement(false); Reset(); } void Reset() { if (canSummon) { canSummon = false; me->SetReactState(REACT_AGGRESSIVE); me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); float x, y; me->GetNearPoint2D(x, y, 3.0f, me->GetOrientation()); if (Creature* crocolisk = me->SummonCreature(NPC_SWAMP_CROCOLISK, x, y, me->GetPositionZ())) { AttackStart(crocolisk); me->getThreatManager().addThreat(crocolisk, std::numeric_limits<float>::max()); crocolisk->getThreatManager().addThreat(me, std::numeric_limits<float>::max()); } } } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } } void SummonedCreatureDies(Creature* summoned, Unit* /*killer*/) { Talk(SURVIVOR_RANDOM_SAY); me->SetReactState(REACT_PASSIVE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); EnterEvadeMode(); canSummon = true; me->DespawnOrUnsummon(3500); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class npc_swamp_crocolisk : public CreatureScript { public: npc_swamp_crocolisk() : CreatureScript("npc_swamp_crocolisk") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } else { if (Unit* victim = me->getVictim()) { if (victim->GetTypeId() == TYPEID_UNIT) { me->getThreatManager().resetAllAggro(); me->getThreatManager().addThreat(attacker, std::numeric_limits<float>::max()); AttackStart(attacker); } } } } }; }; // Quest Introductions Are in Order 24472 enum { ACTION_KOROTH_ATTACK = 2, }; const float AstherWP[18][3]= { {-2129.99f, 1824.12f, 25.234f},{-2132.93f, 1822.23f, 23.984f},{-2135.81f, 1820.23f, 22.770f}, {-2138.72f, 1818.29f, 21.595f},{-2141.77f, 1816.57f, 20.445f},{-2144.88f, 1814.96f, 19.380f}, {-2147.19f, 1813.85f, 18.645f},{-2150.51f, 1812.73f, 17.760f},{-2153.88f, 1811.80f, 16.954f}, {-2157.28f, 1810.95f, 16.194f},{-2160.69f, 1810.20f, 15.432f},{-2164.12f, 1809.46f, 14.688f}, {-2167.55f, 1808.81f, 13.961f},{-2171.01f, 1808.27f, 13.316f},{-2174.32f, 1808.00f, 12.935f}, {-2177.11f, 1807.75f, 12.717f},{-2179.79f, 1807.67f, 12.573f},{-2183.06f, 1807.59f, 12.504f}, }; class npc_koroth_the_hillbreaker_friend : public CreatureScript { public: npc_koroth_the_hillbreaker_friend() : CreatureScript("npc_koroth_the_hillbreaker_friend") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_CLEAVE = 1, EVENT_DEMORALIZING_SHOUT = 2, KOROTH_YELL_MY_BANNER = 1, SPELL_CLEAVE = 16044, SPELL_DEMORALIZING_SHOUT = 16244, }; EventMap events; void InitializeAI() { ASSERT(me->isSummon()); SetCombatMovement(false); } void isSummonedBy(Unit* summoner) { //me->GetMotionMaster()->MoveSplinePath(1); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_KOROTH_ATTACK), me->m_Events.CalculateTime(me->GetSplineDuration() - 500)); } void DoAction(int32 const action) { if (action == ACTION_KOROTH_ATTACK) { me->SetHomePosition( -2159.564f, 1849.091f, 17.805f, 3.947f); me->SetReactState(REACT_AGGRESSIVE); me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); if (Unit* summoner = me->ToTempSummon()->GetSummoner()) { if (summoner->IsAIEnabled) summoner->GetAI()->DoAction(ACTION_KOROTH_ATTACK); if (summoner->isSummon()) Talk(KOROTH_YELL_MY_BANNER, summoner->ToTempSummon()->GetSummonerGUID(), true); } me->CastSpell((Unit*)NULL, 86112, false); } } void EnterCombat(Unit* /*who*/) { events.ScheduleEvent(EVENT_DEMORALIZING_SHOUT, 1000); events.ScheduleEvent(EVENT_CLEAVE, urand(2500, 5000)); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_CLEAVE: me->CastSpell(me->getVictim(), SPELL_CLEAVE, false); events.ScheduleEvent(EVENT_CLEAVE, urand(5000, 15000)); break; case EVENT_DEMORALIZING_SHOUT: me->CastSpell((Unit*)NULL, SPELL_DEMORALIZING_SHOUT, false); events.ScheduleEvent(EVENT_DEMORALIZING_SHOUT, 5000); break; } } DoMeleeAttackIfReady(); } }; }; //class npc_captain_asther_qiao : public CreatureScript //{ // public: // npc_captain_asther_qiao() : CreatureScript("npc_captain_asther_qiao") { } // // private: // CreatureAI* GetAI(Creature* creature) const // { // return new creature_script_impl (creature); // } // // struct creature_script_impl : public ScriptedAI // { // creature_script_impl(Creature* creature) : ScriptedAI(creature) { } // // enum // { // NPC_KOROTH_THE_HILLBREAKER_FRIEND = 37808, // NPC_CAPTAIN_ASTHER = 37806, // NPC_FORSAKEN_SOLDIER = 37805, // NPC_FORSAKEN_CATAPULT = 37807, // // CAPITAN_YELL_WILL_ORDER = 1, // }; // // struct Minion // { // uint64 minionGUID; // float angle; // float dist; // }; // // std::list<Minion> minions; // uint64 korothGUID; // // void InitializeAI() // { // me->SetReactState(REACT_PASSIVE); // me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // me->setActive(true); // } // // void isSummonedBy(Unit* summoner) // { // summoner->SetVisible(true); // StartEvent(); // } // // void JustSummoned(Creature* summoned) // { // summoned->SetReactState(REACT_PASSIVE); // summoned->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // summoned->SetVisible(true); // summoned->setActive(true); // } // // void StartMoveTo(float x, float y, float z) // { // if (minions.empty()) // return; // // float pathangle = atan2(me->GetPositionY() - y, me->GetPositionX() - x); // // for (std::list<Minion>::iterator itr = minions.begin(); itr != minions.end(); ++itr) // { // if (Creature* member = ObjectAccessor::GetCreature(*me, itr->minionGUID)) // { // if (!member->isAlive() || member->isInCombat()) // continue; // // float dx = x - cos(itr->angle + pathangle) * itr->dist; // float dy = y - sin(itr->angle + pathangle) * itr->dist; // float dz = member->GetBaseMap()->GetHeight(member->GetPhaseMask(), dx, dy, MAX_HEIGHT); // // float dist = member->GetExactDist(dx, dy, dz); // float time = 10000; // // Movement::MoveSplineInit init(member); // init.MoveTo(dx, dy, dz); // init.SetVelocity(dist / time * IN_MILLISECONDS); // init.Launch(); // // member->SetHomePosition(dx, dy, dz, pathangle + M_PI); // } // } // } // // void DoAction(int32 const action) // { // if (action == ACTION_KOROTH_ATTACK) // { // if (Creature* koroth = ObjectAccessor::GetCreature(*me, korothGUID)) // { // me->SetReactState(REACT_AGGRESSIVE); // me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // // float x, y, z; // koroth->GetNearPoint(koroth, x, y, z, 0.0f, 2.0f, koroth->GetOrientation() + M_PI); // me->GetMotionMaster()->MoveCharge(x, y, z); // // for (std::list<Minion>::iterator itr = minions.begin(); itr != minions.end(); ++itr) // { // if (Creature* minion = ObjectAccessor::GetCreature(*me, itr->minionGUID)) // { // minion->SetReactState(REACT_AGGRESSIVE); // minion->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // // switch (minion->GetEntry()) // { // case NPC_FORSAKEN_SOLDIER: // koroth->GetNearPoint(koroth, x, y, z, 0.0f, 2.0f, koroth->GetOrientation() + frand(-M_PI, M_PI)); // me->GetMotionMaster()->MoveCharge(x, y, z); // minion->GetMotionMaster()->MoveCharge(x, y, z); // break; // case NPC_FORSAKEN_CATAPULT: // koroth->AddThreat(minion, std::numeric_limits<float>::max()); // break; // } // } // } // } // } // } // // void SummonMinion(uint32 MinionEntry, float dist, float angle) // { // float x, y, z; // me->GetNearPoint2D(x, y, dist, me->GetOrientation() + angle); // z = me->GetBaseMap()->GetHeight(me->GetPhaseMask(), x, y, MAX_HEIGHT); // // if (Creature* minion = me->SummonCreature(MinionEntry, x, y, z, me->GetOrientation(), TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 120000)) // { // Minion newMinion; // newMinion.minionGUID = minion->GetGUID(); // newMinion.angle = angle; // newMinion.dist = dist; // minions.push_back(newMinion); // } // } // // void StartEvent() // { // for (int i = 2; i < 5; ++i) // { // SummonMinion(NPC_FORSAKEN_SOLDIER, i * 2, M_PI); // SummonMinion(NPC_FORSAKEN_SOLDIER, i * 2 + 2, M_PI - M_PI / (2 * i)); // SummonMinion(NPC_FORSAKEN_SOLDIER, i * 2 + 2, M_PI + M_PI / (2 * i)); // } // // SummonMinion(NPC_FORSAKEN_CATAPULT, 15.f, M_PI); // // for (int i = 0; i < 18; ++i) // AddWaypoint(i, AstherWP[i][0], AstherWP[i][1], AstherWP[i][2]); // // SetTimeDiff(350); // Start(); // } // // void WaypointReached(uint32 point) // { // if (point == 15) // { // if (Creature* koroth = me->SummonCreature(NPC_KOROTH_THE_HILLBREAKER_FRIEND, -2213.64f, 1863.51f, 15.404f, 5.43f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000)) // korothGUID = koroth->GetGUID(); // // Talk(CAPITAN_YELL_WILL_ORDER, me->ToTempSummon()->GetSummonerGUID(), true); // } // } // // void UpdateAI(uint32 const diff) // { // SmoothEscortAI::UpdateAI(diff); // // if (!UpdateVictim()) // return; // // DoMeleeAttackIfReady(); // } // }; //}; class npc_prince_liam_greymane_qiao : public CreatureScript { public: npc_prince_liam_greymane_qiao() : CreatureScript("npc_prince_liam_greymane_qiao") { } private: enum { NPC_CAPTAIN_ASTHER = 37806, NPC_PRINCE_LIAM_GREYMANE = 37065, SPELL_PUSH_BANNER = 70511, EVENT_LIAM_TALK_HERE_FORSAKEN = 1, EVENT_LIAM_YELL_YOU_CANT = 2, EVENT_LIAM_PUSH_BANNER = 3, LIAM_TALK_HERE_FORSAKEN = 1, LIAM_YELL_YOU_CANT = 2, }; class PersonalTalkEvent : public BasicEvent { public: PersonalTalkEvent(Creature* source, uint64 playerGUID, uint8 eventId) : _source(source) , _playerGUID(playerGUID) , _eventId(eventId) { } private: bool Execute(uint64 /*time*/, uint32 /*diff*/) { switch (_eventId) { case EVENT_LIAM_TALK_HERE_FORSAKEN: { if (_source->IsAIEnabled) _source->AI()->Talk(LIAM_TALK_HERE_FORSAKEN, _playerGUID, true); _source->m_Events.AddEvent(new PersonalTalkEvent(_source, _playerGUID, EVENT_LIAM_YELL_YOU_CANT), _source->m_Events.CalculateTime(12000)); } break; case EVENT_LIAM_YELL_YOU_CANT: { if (_source->IsAIEnabled) _source->AI()->Talk(LIAM_YELL_YOU_CANT, _playerGUID, true); _source->m_Events.AddEvent(new PersonalTalkEvent(_source, _playerGUID, EVENT_LIAM_PUSH_BANNER), _source->m_Events.CalculateTime(8000)); } break; case EVENT_LIAM_PUSH_BANNER: _source->CastSpell((Unit*)NULL, SPELL_PUSH_BANNER, false); break; } return true; } Creature* _source; uint64 _playerGUID; uint8 _eventId; }; bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { switch (quest->GetQuestId()) { case QUEST_EXODUS: player->CastSpell(player, 95679, false); break; case QUEST_INTRODUCTIONS_ARE_IN_ORDER: player->SummonCreature(NPC_CAPTAIN_ASTHER, -2120.19f, 1833.06f, 30.1510f, 3.87363f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 120000); creature->m_Events.AddEvent(new PersonalTalkEvent(creature, player->GetGUID(), EVENT_LIAM_TALK_HERE_FORSAKEN), creature->m_Events.CalculateTime(250)); break; } return false; } }; enum { ACTION_START_EVENT = 100, }; class npc_koroth_the_hillbreaker : public CreatureScript { public: npc_koroth_the_hillbreaker() : CreatureScript("npc_koroth_the_hillbreaker") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { ACTION_TALK = 1, ACTION_RETURN = 2, YELL_WHO_STEAL_BANNER = 1, YELL_FIND_YOU = 2, }; void DoAction(int32 const action) { switch (action) { case ACTION_START_EVENT: Talk(YELL_WHO_STEAL_BANNER); //me->GetMotionMaster()->MovePointSmooth(-2284.237f, 1963.801f); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_TALK), me->m_Events.CalculateTime(me->GetSplineDuration())); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_RETURN), me->m_Events.CalculateTime(me->GetSplineDuration() + 3500)); break; case ACTION_TALK: Talk(YELL_FIND_YOU); break; case ACTION_RETURN: me->GetMotionMaster()->MoveTargetedHome(); break; } } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class go_koroth_banner : public GameObjectScript { public: go_koroth_banner() : GameObjectScript("go_koroth_banner") { } private: bool OnGossipHello(Player* player, GameObject* go) { enum { NPC_KOROTH_THE_HILLBREAKER = 36294, }; if (Creature* koroth = go->FindNearestCreature(NPC_KOROTH_THE_HILLBREAKER, 30.0f)) if (koroth->IsAIEnabled) koroth->GetAI()->DoAction(ACTION_START_EVENT); return false; } }; // Quest Losing Your Tail 24616 enum { ACTION_PLAYER_IS_FREE = 1, }; class at_losing_your_tail : public AreaTriggerScript { public: at_losing_your_tail() : AreaTriggerScript("at_losing_your_tail") { } private: bool OnTrigger(Player* player, AreaTriggerEntry const* /*trigger*/) { enum { SPELL_DARK_SCOUT_TRACKER = 95845, SPELL_FREEZING_TRAP_EFFECT = 70794, NPC_TRIGGER = 35374, }; if (player->GetQuestStatus(QUEST_LOSING_YOUR_TAIL) == QUEST_STATUS_INCOMPLETE && !player->HasAura(SPELL_DARK_SCOUT_TRACKER)) if (Creature* trigger = player->FindNearestCreature(NPC_TRIGGER, 50.f)) trigger->CastSpell(player, SPELL_FREEZING_TRAP_EFFECT, false, NULL, NULL, player->GetGUID()); return true; } }; class npc_dark_scout : public CreatureScript { public: npc_dark_scout() : CreatureScript("npc_dark_scout") { } private: CreatureAI* GetAI(Creature* creature) const { return new spell_script_impl (creature); } struct spell_script_impl : public ScriptedAI { spell_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { NPC_DARK_SCOUT_SAY_CATCH = 1, NPC_DARK_SCOUT_SAY_HOW = 2, NPC_DARK_SCOUT_SAY_FREE = 3, SPELL_AIMED_SHOT = 70796, }; void isSummonedBy(Unit* summoner) { Talk(NPC_DARK_SCOUT_SAY_CATCH); Talk(NPC_DARK_SCOUT_SAY_FREE, summoner->GetGUID(), true); AttackStart(summoner); me->CastSpell(summoner, SPELL_AIMED_SHOT, false); } void EnterEvadeMode() { me->DespawnOrUnsummon(); } void DoAction(int32 const action) { if (action == ACTION_PLAYER_IS_FREE) { Talk(NPC_DARK_SCOUT_SAY_HOW); me->CastStop(); } } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class spell_belysras_talisman : public SpellScriptLoader { public: spell_belysras_talisman() : SpellScriptLoader("spell_belysras_talisman") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void ExtraEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); if (Unit* target = GetHitUnit()) if (target->IsAIEnabled) target->GetAI()->DoAction(ACTION_PLAYER_IS_FREE); } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ExtraEffect, EFFECT_1, SPELL_EFFECT_DUMMY); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; // Quest At Our Doorstep 24627 enum { NPC_LYROS_SWIFTWIND = 37870, NPC_VASSANDRA_STORMCLAW = 37873, NPC_TALRAN_OF_THE_WILD = 36814, CROWLEY_YELL_LORNA = 2, CROWLEY_YELL_FROG = 3, CROWLEY_SAY_YES_GENN = 4, }; class npc_lord_darius_crowley_qaod : public CreatureScript { public: npc_lord_darius_crowley_qaod() : CreatureScript("npc_lord_darius_crowley_qaod") { } private: bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { enum { SPELL_FORCECAST_SUMMON_TOBIAS = 71042, SPELL_FORCECAST_TALDOREN_MASTER = 72829, }; switch (quest->GetQuestId()) { case QUEST_AT_OUR_DOORSTEP: creature->CastSpell(player, SPELL_FORCECAST_SUMMON_TOBIAS, false, NULL, NULL, player->GetGUID()); break; case QUEST_NEITHER_HUMAN_NOR_BEAST: creature->CastSpell(player, SPELL_FORCECAST_TALDOREN_MASTER, false, NULL, NULL, player->GetGUID()); break; } return false; } }; class npc_tobias_mistmantle_qaod : public CreatureScript { public: npc_tobias_mistmantle_qaod() : CreatureScript("npc_tobias_mistmantle_qaod") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_SAY_FORSAKEN = 1, EVENT_CROWLEY_SAY_IMMEDIATELY = 2, EVENT_SAY_OK = 3, EVENT_GO_AWAY = 4, NPC_LORD_DARIUS_CROWLEY = 37195, TOBIAS_SAY_FORSAKEN = 1, CROWLEY_SAY_IMMEDIATELY = 1, TOBIAS_SAY_OK = 2, }; EventMap events; void InitializeAI() { ASSERT(me->isSummon()); } void isSummonedBy(Unit* summoner) { me->SetVisible(true); //me->GetMotionMaster()->MoveSplinePath(1, false, false, 0.f, false, false); events.ScheduleEvent(EVENT_SAY_FORSAKEN, 10000); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_SAY_FORSAKEN: Talk(TOBIAS_SAY_FORSAKEN, me->ToTempSummon()->GetSummonerGUID(), true); events.ScheduleEvent(EVENT_CROWLEY_SAY_IMMEDIATELY, 5000); break; case EVENT_CROWLEY_SAY_IMMEDIATELY: { if (Creature* crowley = me->FindNearestCreature(NPC_LORD_DARIUS_CROWLEY, 30.0f)) if (crowley->IsAIEnabled) crowley->AI()->Talk(CROWLEY_SAY_IMMEDIATELY, me->ToTempSummon()->GetSummonerGUID(), true); events.ScheduleEvent(EVENT_SAY_OK, 7000); } break; case EVENT_SAY_OK: Talk(TOBIAS_SAY_OK, me->ToTempSummon()->GetSummonerGUID(), true); events.ScheduleEvent(EVENT_GO_AWAY, 3000); break; case EVENT_GO_AWAY: //me->GetMotionMaster()->MoveSplinePath(2, false, false, 0.f, false, false); me->DespawnOrUnsummon(10000); break; } } } }; }; // Quest Take Back What's Ours 24646 enum { ACTION_BACK = 100, }; struct TrackerRetreatPOS { Position startPos; Position jumpPos; }; static TrackerRetreatPOS const TrackerPOS[3]= { { { -2111.665f, 1614.726f, -42.916f, 0.0f }, { -2094.177f, 1594.787f, -33.995f, 0.0f } }, { { -2133.185f, 1612.644f, -43.593f, 0.0f }, { -2100.651f, 1568.200f, -30.421f, 0.0f } }, { { -2147.640f, 1624.307f, -43.179f, 0.0f }, { -2178.477f, 1620.596f, -22.339f, 0.0f } }, }; class npc_taldoren_tracker : public CreatureScript { public: npc_taldoren_tracker() : CreatureScript("npc_taldoren_tracker") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , retreatId(0) { } enum { ATCTION_JUMP = 1, SPELL_WAR_STOMP = 71019, }; uint8 retreatId; void InitializeAI() { } void DoAction(int32 const action) { switch (action) { case ACTION_BACK: { float dist = std::numeric_limits<float>::max(); for (int i = 0; i < 3; ++i) { float _dist = me->GetExactDist2dSq(&TrackerPOS[i].startPos); if (dist > _dist) { dist = _dist; retreatId = i; } } me->CastSpell((Unit*)NULL, SPELL_WAR_STOMP, false); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->SetReactState(REACT_PASSIVE); me->DeleteThreatList(); me->CombatStop(); //me->GetMotionMaster()->MoveSplinePath(retreatId, false, false, 0.f, false, false); //me->m_Events.AddEvent(new DelayEventDoAction(me, ATCTION_JUMP), me->m_Events.CalculateTime(me->GetSplineDuration())); } break; case ATCTION_JUMP: me->GetMotionMaster()->MoveJump(TrackerPOS[retreatId].jumpPos, 20.f, 20.f); me->DespawnOrUnsummon(10500); break; } } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class npc_tobias_mistmantle_qtbwo : public CreatureScript { public: npc_tobias_mistmantle_qtbwo() : CreatureScript("npc_tobias_mistmantle_qtbwo") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , summons(creature) { } enum { ACTION_EVENT_DONE = 1, TOBIAS_SAY_DISTRACT_RANGERS = 1, TOBIAS_SAY_FALL_BACK = 2, }; SummonList summons; void InitializeAI() { ASSERT(me->isSummon()); } void isSummonedBy(Unit* summoner) { Talk(TOBIAS_SAY_DISTRACT_RANGERS, me->ToTempSummon()->GetSummonerGUID(), true); me->CastSpell((Unit*)NULL, 71011, false); // me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_EVENT_DONE), me->m_Events.CalculateTime(25000)); } void DoAction(int32 const action) { if (action == ACTION_EVENT_DONE) { Talk(TOBIAS_SAY_FALL_BACK, me->ToTempSummon()->GetSummonerGUID(), true); me->CastSpell((Unit*)NULL, 71018, false); me->DespawnOrUnsummon(2000); } } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class spell_horn_of_taldoren : public SpellScriptLoader { public: spell_horn_of_taldoren() : SpellScriptLoader("spell_horn_of_taldoren") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) enum { NPC_TOBIAS_MISTMANTLE = 38029, }; SpellCastResult CanCast() { if (Unit * caster = GetCaster()) if (Player* player = caster->ToPlayer()) if (caster->GetExactDist2dSq(-2146.12f, 1583.35f) < 900.0f && !caster->FindNearestCreature(NPC_TOBIAS_MISTMANTLE, 40.0f) && player->GetQuestStatus(QUEST_TAKE_BACK_WHATS_OURS) == QUEST_STATUS_INCOMPLETE) return SPELL_CAST_OK; return SPELL_FAILED_BAD_TARGETS; } void Register() { OnCheckCast += SpellCheckCastFn(spell_script_impl::CanCast); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; class spell_retreat_trackers : public SpellScriptLoader { public: spell_retreat_trackers() : SpellScriptLoader("spell_retreat_trackers") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void ExtraEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); if (Unit* target = GetHitUnit()) if (target->IsAIEnabled) target->GetAI()->DoAction(ACTION_BACK); } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ExtraEffect, EFFECT_0, SPELL_EFFECT_DUMMY); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; class npc_lorna_crowley_qnhnb : public CreatureScript { public: npc_lorna_crowley_qnhnb() : CreatureScript("npc_lorna_crowley_qnhnb") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { ACTION_TALK = 1, ACTION_RESUME = 2, ACTION_CAST = 3, LORNA_YELL_FATHER = 1, }; void InitializeAI() { ASSERT(me->isSummon()); } void isSummonedBy(Unit* summoner) { me->SetVisible(true); me->DespawnOrUnsummon(70000); //me->GetMotionMaster()->MoveSplinePath(1, false, false, 0.f, false, false); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_TALK), me->m_Events.CalculateTime(me->GetSplineDuration())); } void DoAction(int32 const action) { switch (action) { case ACTION_TALK: Talk(LORNA_YELL_FATHER, me->ToTempSummon()->GetSummonerGUID()); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_CAST), me->m_Events.CalculateTime(2000)); break; case ACTION_CAST: me->CastSpell((Unit*)NULL, 72820, false, NULL, NULL, me->ToTempSummon()->GetSummonerGUID()); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_RESUME), me->m_Events.CalculateTime(3000)); break; case ACTION_RESUME: //me->GetMotionMaster()->MoveSplinePath(2, false, true, 0.f, false, false); break; } } }; }; class npc_king_genn_greymane_qnhnb : public CreatureScript { public: npc_king_genn_greymane_qnhnb() : CreatureScript("npc_king_genn_greymane_qnhnb") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { ACTION_FACING = 1, ACTION_TRANSFORM = 2, ACTION_CAST = 3, ACTION_TALK = 4, GREYMANE_SAY_FRIEND = 1, GREYMANE_SAY_HELD = 2, NPC_LORD_DARIUS_CROWLEY = 37195, SPELL_WORGEN_COMBAT_TRANSFORM_FX = 81768, SPELL_WORGEN_TRANSFORM = 81908, }; void InitializeAI() { ASSERT(me->isSummon()); } void isSummonedBy(Unit* summoner) { me->SetVisible(true); me->DespawnOrUnsummon(70000); //me->GetMotionMaster()->MoveSplinePath(1, false, true, 0.f, false, false); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_FACING), me->m_Events.CalculateTime(me->GetSplineDuration() + 1000)); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_TRANSFORM), me->m_Events.CalculateTime(35000)); } void DoAction(int32 const action) { switch (action) { case ACTION_FACING: { if (Creature* crowley = me->FindNearestCreature(NPC_LORD_DARIUS_CROWLEY, 30.0f)) me->SetFacingToObject(crowley); } break; case ACTION_TRANSFORM: me->CastSpell(me, SPELL_WORGEN_COMBAT_TRANSFORM_FX, false); me->CastSpell(me, SPELL_WORGEN_TRANSFORM, false); me->SetDisplayId(31177); Talk(GREYMANE_SAY_FRIEND, me->ToTempSummon()->GetSummonerGUID(), true); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_CAST), me->m_Events.CalculateTime(10000)); break; case ACTION_CAST: me->CastSpell((Unit*)NULL, 72824, false); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_TALK), me->m_Events.CalculateTime(11000)); break; case ACTION_TALK: Talk(GREYMANE_SAY_HELD, me->ToTempSummon()->GetSummonerGUID(), true); break; } } }; }; class spell_gilneas_pings_crowley : public SpellScriptLoader { public: spell_gilneas_pings_crowley(const char* scriptName, uint8 textid) : SpellScriptLoader(scriptName) , _textid(textid) { } uint8 _textid; private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl); public: spell_script_impl(uint8 textid) : _textid(textid) { } private: const uint8 _textid; void ExtraEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); Unit* caster = GetCaster(); Creature* target = GetHitCreature(); if (!(caster && target)) return; if (target->IsAIEnabled) target->AI()->Talk(_textid, caster->GetGUID(), true); } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ExtraEffect, EFFECT_0, SPELL_EFFECT_DUMMY); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(_textid); } }; // Quest Betrayal at Tempest's Reach 24592 class npc_krennan_aranas_qbatr : public CreatureScript { public: npc_krennan_aranas_qbatr() : CreatureScript("npc_krennan_aranas_qbatr") { } bool OnQuestAccept(Player* player, Creature* /*creature*/, Quest const* quest) { if (quest->GetQuestId() == QUEST_BETRAYAL_AT_TEMPESTS_REACH) { player->CastSpell(player, SPELL_INVISIBILITY_DETECTION_2, false); player->CastSpell(player, SPELL_INVISIBILITY_DETECTION_3, false); } return false; } }; class npc_king_genn_greymane_qbatr : public CreatureScript { public: npc_king_genn_greymane_qbatr() : CreatureScript("npc_king_genn_greymane_qbatr") { } bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { enum { SPELL_AI_REACTION = 61899, NPC_LORD_GODFREY = 37875, }; if (quest->GetQuestId() == QUEST_BETRAYAL_AT_TEMPESTS_REACH) { player->RemoveAura(SPELL_INVISIBILITY_DETECTION_2); player->RemoveAura(SPELL_INVISIBILITY_DETECTION_3); player->CastSpell(player, SPELL_AI_REACTION, false); player->SaveToDB(); if (Creature* godfrey = creature->FindNearestCreature(NPC_LORD_GODFREY, 30.0f)) if (godfrey->IsAIEnabled) godfrey->GetAI()->DoAction(ACTION_START_EVENT); } return false; } }; class npc_lord_godfrey_qbatr : public CreatureScript { public: npc_lord_godfrey_qbatr() : CreatureScript("npc_lord_godfrey_qbatr") { } CreatureAI* GetAI(Creature* creature) const { return new npc_lord_godfrey_qbatrAI(creature); } struct npc_lord_godfrey_qbatrAI : public ScriptedAI { npc_lord_godfrey_qbatrAI(Creature* creature) : ScriptedAI(creature) { } enum { NPC_KING_GENN_GREYMANE = 37876, ACTION_SAY_BETTER_DIED = 1, ACTION_START_RUN = 2, ACTION_JUMP = 3, GENN_SAY_ALL_IS_DONE = 1, GODFREY_SAY_BETTER_DIED = 1, }; bool isEvent; void Reset() { isEvent = false; } void DoAction(int32 const action) { switch (action) { case ACTION_START_EVENT: { if (!isEvent) { isEvent = true; if (Creature* greymane = me->FindNearestCreature(NPC_KING_GENN_GREYMANE, 30.0f)) if (greymane->IsAIEnabled) greymane->AI()->Talk(GENN_SAY_ALL_IS_DONE); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_SAY_BETTER_DIED), me->m_Events.CalculateTime(4000)); } } break; case ACTION_SAY_BETTER_DIED: Talk(GODFREY_SAY_BETTER_DIED); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_START_RUN), me->m_Events.CalculateTime(2000)); break; case ACTION_START_RUN: //me->GetMotionMaster()->MoveSplinePath(1, false, false, 0.f, false, false); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_JUMP), me->m_Events.CalculateTime(me->GetSplineDuration())); break; case ACTION_JUMP: { static const Position godfreyJP = {-2054.75f, 893.833f, 19.1086f, 0.f}; me->GetMotionMaster()->MoveJump(godfreyJP, 10.f, 25.f); me->DespawnOrUnsummon(20000); } break; } } }; }; class npc_gilneas_betrayer_lord : public CreatureScript { public: npc_gilneas_betrayer_lord(const char* scriptName, uint32 auraEntry) : CreatureScript(scriptName) , _auraEntry(auraEntry) { } private: uint32 _auraEntry; class RemoveAuraEvent : public BasicEvent { public: RemoveAuraEvent(Player* owner, uint32 auraEntry) : _owner(owner) , _auraEntry(auraEntry) { } private: bool Execute(uint64 /*time*/, uint32 /*diff*/) { _owner->RemoveAura(_auraEntry); _owner->SaveToDB(); return true; } Player* _owner; uint32 _auraEntry; }; CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature, _auraEntry); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature, uint32 auraEntry) : ScriptedAI(creature) , _auraEntry(auraEntry) { } uint32 _auraEntry; void JustDied(Unit* killer) { if (Player* player = killer->ToPlayer()) player->m_Events.AddEvent(new RemoveAuraEvent(player, _auraEntry), player->m_Events.CalculateTime(10000)); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class npc_lord_hewell : public CreatureScript { public: npc_lord_hewell() : CreatureScript("npc_lord_hewell") { } private: bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) { enum { ACTION_SUMMON_HORSE = 1, }; if (action == ACTION_SUMMON_HORSE && !player->GetVehicle()) creature->CastSpell(player, 72773, false, NULL, NULL, player->GetGUID()); player->CLOSE_GOSSIP_MENU(); return true; } }; class npc_stout_mountain_horse : public CreatureScript { public: npc_stout_mountain_horse() : CreatureScript("npc_stout_mountain_horse") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { EVENT_START_RIDE = 1, EVENT_DONE_RIDE = 2, SPELL_EJECT_ALL_PASSENGERS = 50630, }; EventMap events; void InitializeAI() { ASSERT(me->isSummon()); } void isSummonedBy(Unit* summoner) { events.ScheduleEvent(EVENT_START_RIDE, 1500); } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_START_RIDE: //me->GetMotionMaster()->MoveSplinePath(1); events.ScheduleEvent(EVENT_DONE_RIDE, 10500); break; case EVENT_DONE_RIDE: me->CastSpell(me, SPELL_EJECT_ALL_PASSENGERS, false); break; } } } }; }; // Quest Liberation Day 24575 class spell_gilneas_rescue_enslaved_villager : public SpellScriptLoader { public: spell_gilneas_rescue_enslaved_villager() : SpellScriptLoader("spell_gilneas_rescue_enslaved_villager") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void ExtraEffect(SpellEffIndex effIndex) { enum { VILLAGER_RANDOM_SAY = 1, }; PreventHitDefaultEffect(effIndex); if (Creature* villager = GetHitCreature()) { if (villager->IsAIEnabled) villager->AI()->Talk(VILLAGER_RANDOM_SAY); villager->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0); villager->ForcedDespawn(3000); } } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ExtraEffect, EFFECT_0, SPELL_EFFECT_DUMMY); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; class npc_lorna_crowley_livery_outpost : public CreatureScript { public: npc_lorna_crowley_livery_outpost() : CreatureScript("npc_lorna_crowley_livery_outpost") { } private: bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { enum { NPC_KRENNAN_ARANAS = 38553, TALK_TIME_TO_START_BATTLE = 1, }; if (quest->GetQuestId() == QUEST_THE_BATTLE_FOR_GILNEAS_CITY) { if (Creature* aranas = creature->FindNearestCreature(NPC_KRENNAN_ARANAS, 35.0f)) if (aranas->IsAIEnabled) aranas->AI()->Talk(TALK_TIME_TO_START_BATTLE, player->GetGUID(), true); player->RemoveAurasByType(SPELL_AURA_PHASE); player->CastSpell(player, SPELL_ZONE_SPECIFIC_12, false); player->SaveToDB(); } return false; } }; // Quest The Battle for Gilneas City static float const FWaveWP[168][3] = { {-1414.161f, 1281.892f, 36.428f},{-1416.068f, 1289.827f, 36.428f},{-1419.030f, 1301.834f, 36.428f}, {-1421.962f, 1313.006f, 36.428f},{-1423.899f, 1321.179f, 34.881f},{-1426.428f, 1331.009f, 34.782f}, {-1428.520f, 1339.743f, 35.194f},{-1430.603f, 1348.241f, 35.549f},{-1433.261f, 1358.650f, 35.556f}, {-1441.738f, 1383.216f, 35.557f},{-1444.581f, 1387.770f, 35.557f},{-1449.143f, 1392.724f, 35.557f}, {-1454.818f, 1395.053f, 35.557f},{-1461.179f, 1395.763f, 35.557f},{-1468.874f, 1396.029f, 35.557f}, {-1475.616f, 1396.500f, 35.557f},{-1481.679f, 1397.634f, 35.553f},{-1487.380f, 1401.618f, 35.555f}, {-1490.443f, 1407.044f, 35.475f},{-1493.564f, 1412.456f, 35.556f},{-1497.752f, 1415.732f, 35.556f}, {-1502.697f, 1416.977f, 35.556f},{-1507.693f, 1417.449f, 35.125f},{-1511.642f, 1418.967f, 35.412f}, {-1514.772f, 1420.533f, 35.528f},{-1521.377f, 1423.772f, 35.557f},{-1527.589f, 1425.745f, 35.557f}, {-1535.279f, 1425.655f, 35.557f},{-1540.217f, 1424.824f, 35.557f},{-1546.273f, 1419.186f, 35.557f}, {-1548.270f, 1413.834f, 35.557f},{-1548.741f, 1408.287f, 35.557f},{-1548.709f, 1401.642f, 35.557f}, {-1550.410f, 1396.847f, 35.557f},{-1552.893f, 1392.348f, 35.565f},{-1553.996f, 1387.262f, 35.581f}, {-1555.018f, 1368.041f, 35.647f},{-1555.499f, 1349.501f, 35.557f},{-1555.079f, 1338.309f, 35.557f}, {-1556.351f, 1330.481f, 35.557f},{-1559.022f, 1326.059f, 35.557f},{-1563.137f, 1322.432f, 35.557f}, {-1566.329f, 1320.146f, 35.557f},{-1572.237f, 1318.418f, 35.557f},{-1574.205f, 1318.105f, 35.556f}, {-1575.974f, 1317.116f, 35.661f},{-1575.974f, 1317.116f, 35.661f},{-1602.739f, 1313.804f, 18.743f}, {-1607.860f, 1312.722f, 18.115f},{-1614.083f, 1311.738f, 18.775f},{-1619.699f, 1310.664f, 19.785f}, {-1626.181f, 1309.178f, 20.337f},{-1630.814f, 1308.004f, 19.663f},{-1635.943f, 1306.074f, 19.663f}, {-1640.631f, 1304.673f, 19.663f},{-1645.236f, 1303.961f, 19.771f},{-1650.486f, 1303.696f, 19.781f}, {-1656.425f, 1303.762f, 19.781f},{-1659.529f, 1304.286f, 19.781f},{-1665.834f, 1306.629f, 19.781f}, {-1671.496f, 1309.391f, 19.781f},{-1674.472f, 1310.422f, 19.782f},{-1676.782f, 1311.474f, 20.292f}, {-1679.668f, 1311.036f, 19.782f},{-1683.217f, 1310.367f, 19.782f},{-1687.748f, 1307.883f, 19.782f}, {-1692.132f, 1306.753f, 19.782f},{-1697.004f, 1307.064f, 19.782f},{-1702.142f, 1308.120f, 19.782f}, {-1706.736f, 1308.941f, 19.782f},{-1713.383f, 1310.688f, 19.782f},{-1720.454f, 1312.695f, 19.782f}, {-1726.990f, 1314.842f, 19.782f},{-1732.075f, 1316.904f, 19.782f},{-1737.065f, 1319.167f, 19.782f}, {-1741.334f, 1321.998f, 19.857f},{-1745.785f, 1326.290f, 19.726f},{-1746.906f, 1329.927f, 19.861f}, {-1746.595f, 1332.002f, 19.791f},{-1745.430f, 1334.015f, 19.707f},{-1742.701f, 1335.548f, 19.778f}, {-1739.318f, 1337.117f, 19.781f},{-1736.514f, 1339.923f, 19.765f},{-1734.523f, 1343.475f, 19.765f}, {-1733.813f, 1349.004f, 19.785f},{-1734.524f, 1354.782f, 19.765f},{-1735.867f, 1360.700f, 19.717f}, {-1737.980f, 1365.471f, 19.951f},{-1739.909f, 1370.104f, 19.910f},{-1741.481f, 1374.611f, 19.993f}, {-1740.914f, 1379.288f, 19.715f},{-1736.822f, 1384.873f, 19.819f},{-1733.052f, 1388.695f, 20.031f}, {-1723.975f, 1397.091f, 21.669f},{-1714.960f, 1406.906f, 21.668f},{-1724.302f, 1396.877f, 21.669f}, {-1729.486f, 1391.510f, 20.952f},{-1734.534f, 1386.323f, 19.798f},{-1739.533f, 1381.429f, 19.773f}, {-1750.598f, 1374.985f, 19.941f},{-1756.823f, 1370.869f, 19.685f},{-1764.050f, 1369.123f, 19.772f}, {-1771.198f, 1368.026f, 19.854f},{-1778.163f, 1368.110f, 19.822f},{-1784.200f, 1370.549f, 19.854f}, {-1788.680f, 1373.906f, 19.767f},{-1793.036f, 1376.149f, 19.683f},{-1795.940f, 1379.000f, 19.806f}, {-1796.415f, 1383.992f, 19.806f},{-1796.665f, 1387.483f, 19.879f},{-1797.694f, 1394.274f, 19.731f}, {-1799.521f, 1399.440f, 19.800f},{-1800.752f, 1404.543f, 19.659f},{-1802.038f, 1410.351f, 19.877f}, {-1804.932f, 1416.711f, 19.924f},{-1806.214f, 1422.153f, 19.654f},{-1806.403f, 1428.672f, 19.667f}, {-1806.443f, 1435.090f, 19.463f},{-1806.421f, 1442.089f, 19.142f},{-1805.689f, 1448.921f, 18.990f}, {-1805.052f, 1454.251f, 18.928f},{-1804.705f, 1459.254f, 18.831f},{-1804.565f, 1465.202f, 19.021f}, {-1804.568f, 1471.740f, 19.316f},{-1805.130f, 1476.725f, 19.393f},{-1805.817f, 1483.099f, 19.443f}, {-1806.897f, 1491.759f, 19.627f},{-1807.824f, 1496.331f, 19.687f},{-1807.000f, 1503.017f, 19.778f}, {-1804.972f, 1510.196f, 19.782f},{-1802.989f, 1518.223f, 19.782f},{-1801.057f, 1524.465f, 19.782f}, {-1800.279f, 1530.471f, 20.479f},{-1799.865f, 1534.418f, 20.479f},{-1799.201f, 1540.200f, 21.924f}, {-1798.666f, 1545.188f, 22.482f},{-1797.992f, 1550.986f, 22.734f},{-1797.332f, 1556.899f, 22.476f}, {-1796.790f, 1562.121f, 21.717f},{-1796.364f, 1566.768f, 20.486f},{-1795.228f, 1571.534f, 20.491f}, {-1793.634f, 1576.893f, 20.505f},{-1790.968f, 1583.361f, 20.505f},{-1788.026f, 1589.323f, 20.505f}, {-1785.241f, 1594.708f, 20.505f},{-1782.106f, 1600.445f, 20.487f},{-1778.071f, 1607.141f, 20.484f}, {-1775.218f, 1611.270f, 20.484f},{-1770.276f, 1618.208f, 20.461f},{-1765.033f, 1624.617f, 20.402f}, {-1759.929f, 1630.540f, 20.433f},{-1755.177f, 1635.831f, 20.464f},{-1750.099f, 1641.469f, 20.474f}, {-1744.623f, 1646.713f, 20.477f},{-1739.483f, 1648.703f, 20.480f},{-1735.023f, 1649.466f, 20.491f}, {-1728.781f, 1648.171f, 20.500f},{-1724.372f, 1646.639f, 20.486f},{-1718.441f, 1643.662f, 20.486f}, {-1713.951f, 1640.322f, 20.486f},{-1709.559f, 1637.461f, 20.487f},{-1706.859f, 1632.484f, 20.488f}, {-1703.550f, 1627.512f, 20.488f},{-1701.395f, 1622.216f, 20.488f},{-1700.511f, 1617.112f, 20.488f}, {-1697.858f, 1613.420f, 20.488f},{-1692.809f, 1611.844f, 20.488f},{-1688.960f, 1611.874f, 20.488f}, }; static float const SWaveWP[173][3] = { {-1414.161f, 1281.892f, 36.428f},{-1416.068f, 1289.827f, 36.428f},{-1419.030f, 1301.834f, 36.428f}, {-1421.962f, 1313.006f, 36.428f},{-1423.899f, 1321.179f, 34.881f},{-1426.428f, 1331.009f, 34.782f}, {-1428.520f, 1339.743f, 35.194f},{-1430.603f, 1348.241f, 35.549f},{-1433.261f, 1358.650f, 35.556f}, {-1430.095f, 1362.781f, 35.556f},{-1426.026f, 1365.056f, 35.556f},{-1420.784f, 1367.324f, 35.556f}, {-1415.108f, 1369.769f, 35.556f},{-1412.807f, 1370.893f, 35.556f},{-1409.770f, 1373.888f, 35.556f}, {-1406.652f, 1378.694f, 35.556f},{-1405.368f, 1383.402f, 35.556f},{-1404.802f, 1388.732f, 35.556f}, {-1404.576f, 1395.255f, 35.556f},{-1404.779f, 1408.554f, 35.556f},{-1404.969f, 1412.749f, 35.556f}, {-1406.445f, 1417.153f, 35.556f},{-1408.893f, 1419.420f, 35.556f},{-1412.420f, 1420.562f, 35.556f}, {-1417.889f, 1420.796f, 35.556f},{-1427.620f, 1419.933f, 35.556f},{-1433.591f, 1419.549f, 35.556f}, {-1437.470f, 1418.260f, 35.556f},{-1441.682f, 1416.889f, 35.556f},{-1444.456f, 1416.566f, 35.556f}, {-1449.731f, 1417.944f, 35.556f},{-1454.538f, 1421.029f, 35.556f},{-1459.465f, 1423.118f, 35.556f}, {-1463.966f, 1423.736f, 35.556f},{-1471.255f, 1423.160f, 35.556f},{-1476.065f, 1421.411f, 35.556f}, {-1481.623f, 1418.689f, 35.556f},{-1486.361f, 1415.536f, 35.556f},{-1489.485f, 1412.077f, 35.556f}, {-1492.216f, 1408.010f, 35.556f},{-1495.620f, 1401.759f, 35.556f},{-1501.709f, 1390.232f, 35.556f}, {-1503.493f, 1384.578f, 35.556f},{-1503.927f, 1378.542f, 35.556f},{-1502.918f, 1353.155f, 35.556f}, {-1503.032f, 1349.545f, 35.556f},{-1504.657f, 1344.369f, 35.556f},{-1507.340f, 1341.804f, 35.556f}, {-1511.511f, 1339.709f, 35.556f},{-1518.679f, 1336.606f, 35.556f},{-1524.455f, 1334.388f, 35.556f}, {-1537.569f, 1329.494f, 35.556f},{-1543.017f, 1327.394f, 35.556f},{-1548.510f, 1325.418f, 35.556f}, {-1552.752f, 1324.243f, 35.556f},{-1575.974f, 1317.116f, 35.661f},{-1575.974f, 1317.116f, 35.661f}, {-1602.739f, 1313.804f, 18.743f},{-1607.860f, 1312.722f, 18.115f},{-1614.083f, 1311.738f, 18.775f}, {-1619.699f, 1310.664f, 19.785f},{-1626.181f, 1309.178f, 20.337f},{-1630.845f, 1311.021f, 19.749f}, {-1633.337f, 1313.098f, 19.734f},{-1634.618f, 1315.434f, 19.713f},{-1635.239f, 1319.894f, 19.738f}, {-1635.311f, 1324.905f, 19.857f},{-1635.387f, 1331.443f, 19.884f},{-1635.437f, 1335.737f, 19.848f}, {-1638.660f, 1337.092f, 19.673f},{-1642.441f, 1337.759f, 19.853f},{-1645.818f, 1337.918f, 18.262f}, {-1651.646f, 1337.726f, 15.146f},{-1655.955f, 1337.792f, 15.135f},{-1661.412f, 1338.355f, 15.135f}, {-1667.882f, 1339.249f, 15.135f},{-1673.916f, 1339.888f, 15.135f},{-1678.713f, 1340.878f, 15.135f}, {-1683.695f, 1342.105f, 15.114f},{-1689.998f, 1343.816f, 15.136f},{-1694.509f, 1345.000f, 15.405f}, {-1698.006f, 1345.906f, 16.915f},{-1703.989f, 1347.458f, 19.495f},{-1708.500f, 1348.660f, 19.782f}, {-1714.471f, 1350.664f, 19.776f},{-1719.061f, 1352.397f, 19.781f},{-1722.292f, 1354.002f, 19.808f}, {-1727.602f, 1357.163f, 19.788f},{-1731.502f, 1359.926f, 19.797f},{-1734.196f, 1362.160f, 19.955f}, {-1736.495f, 1364.644f, 20.019f},{-1739.200f, 1368.984f, 19.923f},{-1741.501f, 1374.218f, 19.988f}, {-1740.914f, 1379.288f, 19.715f},{-1736.822f, 1384.873f, 19.819f},{-1733.052f, 1388.695f, 20.031f}, {-1723.975f, 1397.091f, 21.669f},{-1719.407f, 1396.617f, 21.669f},{-1715.248f, 1394.803f, 21.669f}, {-1710.467f, 1393.734f, 21.669f},{-1707.344f, 1393.382f, 21.669f},{-1702.519f, 1394.064f, 21.669f}, {-1697.369f, 1397.636f, 21.669f},{-1724.302f, 1396.877f, 21.669f},{-1729.486f, 1391.510f, 20.952f}, {-1734.534f, 1386.323f, 19.798f},{-1739.533f, 1381.429f, 19.773f},{-1750.598f, 1374.985f, 19.941f}, {-1756.823f, 1370.869f, 19.685f},{-1764.050f, 1369.123f, 19.772f},{-1771.198f, 1368.026f, 19.854f}, {-1778.163f, 1368.110f, 19.822f},{-1784.200f, 1370.549f, 19.854f},{-1788.680f, 1373.906f, 19.767f}, {-1793.036f, 1376.149f, 19.683f},{-1795.940f, 1379.000f, 19.806f},{-1796.415f, 1383.992f, 19.806f}, {-1796.665f, 1387.483f, 19.879f},{-1797.694f, 1394.274f, 19.731f},{-1799.521f, 1399.440f, 19.800f}, {-1800.752f, 1404.543f, 19.659f},{-1802.038f, 1410.351f, 19.877f},{-1804.932f, 1416.711f, 19.924f}, {-1806.214f, 1422.153f, 19.654f},{-1806.403f, 1428.672f, 19.667f},{-1806.443f, 1435.090f, 19.463f}, {-1806.421f, 1442.089f, 19.142f},{-1805.689f, 1448.921f, 18.990f},{-1805.052f, 1454.251f, 18.928f}, {-1804.705f, 1459.254f, 18.831f},{-1804.565f, 1465.202f, 19.021f},{-1804.568f, 1471.740f, 19.316f}, {-1805.130f, 1476.725f, 19.393f},{-1805.817f, 1483.099f, 19.443f},{-1806.897f, 1491.759f, 19.627f}, {-1807.824f, 1496.331f, 19.687f},{-1807.000f, 1503.017f, 19.778f},{-1804.972f, 1510.196f, 19.782f}, {-1802.989f, 1518.223f, 19.782f},{-1801.057f, 1524.465f, 19.782f},{-1800.279f, 1530.471f, 20.479f}, {-1799.865f, 1534.418f, 20.479f},{-1799.201f, 1540.200f, 21.924f},{-1798.666f, 1545.188f, 22.482f}, {-1797.992f, 1550.986f, 22.734f},{-1797.332f, 1556.899f, 22.476f},{-1796.790f, 1562.121f, 21.717f}, {-1796.364f, 1566.768f, 20.486f},{-1795.228f, 1571.534f, 20.491f},{-1793.634f, 1576.893f, 20.505f}, {-1790.968f, 1583.361f, 20.505f},{-1788.026f, 1589.323f, 20.505f},{-1785.241f, 1594.708f, 20.505f}, {-1782.106f, 1600.445f, 20.487f},{-1778.071f, 1607.141f, 20.484f},{-1775.218f, 1611.270f, 20.484f}, {-1770.276f, 1618.208f, 20.461f},{-1765.033f, 1624.617f, 20.402f},{-1759.929f, 1630.540f, 20.433f}, {-1755.177f, 1635.831f, 20.464f},{-1750.099f, 1641.469f, 20.474f},{-1744.623f, 1646.713f, 20.477f}, {-1739.483f, 1648.703f, 20.480f},{-1735.023f, 1649.466f, 20.491f},{-1728.781f, 1648.171f, 20.500f}, {-1724.372f, 1646.639f, 20.486f},{-1718.441f, 1643.662f, 20.486f},{-1713.951f, 1640.322f, 20.486f}, {-1709.559f, 1637.461f, 20.487f},{-1700.422f, 1634.361f, 20.490f},{-1696.002f, 1634.187f, 20.490f}, {-1688.187f, 1634.420f, 20.490f},{-1682.491f, 1634.150f, 20.493f} }; static float const TWaveWP[160][3] = { {-1414.161f, 1281.892f, 36.428f},{-1416.068f, 1289.827f, 36.428f},{-1419.030f, 1301.834f, 36.428f}, {-1421.962f, 1313.006f, 36.428f},{-1423.899f, 1321.179f, 34.881f},{-1426.428f, 1331.009f, 34.782f}, {-1428.520f, 1339.743f, 35.194f},{-1430.603f, 1348.241f, 35.549f},{-1433.261f, 1358.650f, 35.556f}, {-1438.465f, 1359.941f, 35.556f},{-1443.781f, 1360.492f, 35.556f},{-1448.416f, 1359.362f, 35.556f}, {-1454.637f, 1357.020f, 35.556f},{-1461.389f, 1353.844f, 35.556f},{-1467.185f, 1351.380f, 35.556f}, {-1473.962f, 1348.859f, 35.556f},{-1483.950f, 1345.621f, 35.556f},{-1491.751f, 1343.219f, 35.556f}, {-1502.187f, 1340.255f, 35.556f},{-1513.418f, 1337.115f, 35.556f},{-1521.502f, 1334.432f, 35.556f}, {-1531.487f, 1331.183f, 35.556f},{-1539.221f, 1328.533f, 35.556f},{-1547.092f, 1325.599f, 35.556f}, {-1562.069f, 1321.145f, 35.556f},{-1575.974f, 1317.116f, 35.661f},{-1575.974f, 1317.116f, 35.661f}, {-1602.739f, 1313.804f, 18.743f},{-1607.860f, 1312.722f, 18.115f},{-1614.083f, 1311.738f, 18.775f}, {-1619.699f, 1310.664f, 19.785f},{-1626.181f, 1309.178f, 20.337f},{-1630.845f, 1311.021f, 19.749f}, {-1633.337f, 1313.098f, 19.734f},{-1634.618f, 1315.434f, 19.713f},{-1635.239f, 1319.894f, 19.738f}, {-1635.311f, 1324.905f, 19.857f},{-1635.387f, 1331.443f, 19.884f},{-1635.437f, 1335.737f, 19.848f}, {-1634.936f, 1344.817f, 19.935f},{-1634.620f, 1350.402f, 19.919f},{-1634.372f, 1353.893f, 20.018f}, {-1634.069f, 1358.433f, 20.033f},{-1633.786f, 1366.589f, 20.080f},{-1633.714f, 1371.138f, 19.990f}, {-1633.601f, 1378.256f, 19.900f},{-1633.291f, 1384.150f, 20.018f},{-1634.149f, 1389.434f, 20.087f}, {-1636.380f, 1394.077f, 20.006f},{-1639.688f, 1395.110f, 19.804f},{-1643.855f, 1394.779f, 19.675f}, {-1646.959f, 1393.784f, 19.664f},{-1650.151f, 1392.084f, 19.772f},{-1657.146f, 1386.837f, 15.573f}, {-1660.771f, 1381.076f, 15.135f},{-1662.798f, 1377.942f, 15.135f},{-1667.154f, 1372.462f, 15.155f}, {-1671.145f, 1367.900f, 15.155f},{-1674.727f, 1363.901f, 15.135f},{-1678.151f, 1360.079f, 15.135f}, {-1680.608f, 1357.422f, 15.135f},{-1683.673f, 1353.760f, 15.135f},{-1685.726f, 1350.648f, 15.135f}, {-1686.963f, 1349.579f, 15.124f},{-1692.713f, 1346.806f, 15.134f},{-1696.026f, 1346.156f, 16.127f}, {-1699.401f, 1346.282f, 17.518f},{-1704.848f, 1346.894f, 19.797f},{-1711.416f, 1348.497f, 19.768f}, {-1717.155f, 1350.745f, 19.770f},{-1721.406f, 1353.174f, 19.781f},{-1724.301f, 1355.142f, 19.841f}, {-1728.420f, 1358.009f, 19.787f},{-1732.119f, 1361.021f, 19.881f},{-1735.017f, 1364.518f, 20.037f}, {-1738.111f, 1369.042f, 19.907f},{-1740.360f, 1372.446f, 19.910f},{-1741.615f, 1374.687f, 20.001f}, {-1740.914f, 1379.288f, 19.715f},{-1736.822f, 1384.873f, 19.819f},{-1733.052f, 1388.695f, 20.031f}, {-1723.975f, 1397.091f, 21.669f},{-1725.685f, 1402.780f, 21.668f},{-1727.408f, 1406.733f, 21.668f}, {-1728.348f, 1411.525f, 21.668f},{-1728.553f, 1415.348f, 21.668f},{-1727.485f, 1418.545f, 21.668f}, {-1724.977f, 1422.812f, 21.668f},{-1724.302f, 1396.877f, 21.669f},{-1729.486f, 1391.510f, 20.952f}, {-1734.534f, 1386.323f, 19.798f},{-1739.533f, 1381.429f, 19.773f},{-1750.598f, 1374.985f, 19.941f}, {-1756.823f, 1370.869f, 19.685f},{-1764.050f, 1369.123f, 19.772f},{-1771.198f, 1368.026f, 19.854f}, {-1778.163f, 1368.110f, 19.822f},{-1784.200f, 1370.549f, 19.854f},{-1788.680f, 1373.906f, 19.767f}, {-1793.036f, 1376.149f, 19.683f},{-1795.940f, 1379.000f, 19.806f},{-1796.415f, 1383.992f, 19.806f}, {-1796.665f, 1387.483f, 19.879f},{-1797.694f, 1394.274f, 19.731f},{-1799.521f, 1399.440f, 19.800f}, {-1800.752f, 1404.543f, 19.659f},{-1802.038f, 1410.351f, 19.877f},{-1804.932f, 1416.711f, 19.924f}, {-1806.214f, 1422.153f, 19.654f},{-1806.403f, 1428.672f, 19.667f},{-1806.443f, 1435.090f, 19.463f}, {-1806.421f, 1442.089f, 19.142f},{-1805.689f, 1448.921f, 18.990f},{-1805.052f, 1454.251f, 18.928f}, {-1804.705f, 1459.254f, 18.831f},{-1804.565f, 1465.202f, 19.021f},{-1804.568f, 1471.740f, 19.316f}, {-1805.130f, 1476.725f, 19.393f},{-1805.817f, 1483.099f, 19.443f},{-1806.897f, 1491.759f, 19.627f}, {-1807.824f, 1496.331f, 19.687f},{-1807.000f, 1503.017f, 19.778f},{-1804.972f, 1510.196f, 19.782f}, {-1802.989f, 1518.223f, 19.782f},{-1801.057f, 1524.465f, 19.782f},{-1800.279f, 1530.471f, 20.479f}, {-1799.865f, 1534.418f, 20.479f},{-1799.201f, 1540.200f, 21.924f},{-1798.666f, 1545.188f, 22.482f}, {-1797.992f, 1550.986f, 22.734f},{-1797.332f, 1556.899f, 22.476f},{-1796.790f, 1562.121f, 21.717f}, {-1796.364f, 1566.768f, 20.486f},{-1795.228f, 1571.534f, 20.491f},{-1793.634f, 1576.893f, 20.505f}, {-1790.968f, 1583.361f, 20.505f},{-1788.026f, 1589.323f, 20.505f},{-1785.241f, 1594.708f, 20.505f}, {-1782.106f, 1600.445f, 20.487f},{-1778.071f, 1607.141f, 20.484f},{-1775.218f, 1611.270f, 20.484f}, {-1770.276f, 1618.208f, 20.461f},{-1765.033f, 1624.617f, 20.402f},{-1759.929f, 1630.540f, 20.433f}, {-1755.177f, 1635.831f, 20.464f},{-1750.099f, 1641.469f, 20.474f},{-1744.623f, 1646.713f, 20.477f}, {-1739.483f, 1648.703f, 20.480f},{-1735.023f, 1649.466f, 20.491f},{-1728.781f, 1648.171f, 20.500f}, {-1724.372f, 1646.639f, 20.486f},{-1718.441f, 1643.662f, 20.486f},{-1713.951f, 1640.322f, 20.486f}, {-1709.559f, 1637.461f, 20.487f},{-1706.420f, 1632.687f, 20.490f},{-1704.464f, 1628.319f, 20.490f}, {-1702.990f, 1623.903f, 20.490f},{-1702.554f, 1621.728f, 20.490f},{-1701.229f, 1614.269f, 20.487f}, {-1699.046f, 1610.021f, 20.487f}, }; static float const LornaWP[78][3] = { {-1551.90f,1284.75f,13.992f}, {-1561.35f,1282.32f,21.372f}, {-1581.19f,1277.05f,35.878f}, {-1587.59f,1275.81f,35.880f}, {-1591.07f,1284.64f,35.878f}, {-1591.32f,1291.64f,35.981f}, {-1579.00f,1296.02f,35.879f}, {-1569.90f,1303.33f,35.879f}, {-1568.92f,1315.40f,35.556f}, {-1565.98f,1319.25f,35.556f}, {-1572.58f,1318.18f,35.556f}, {-1574.10f,1317.31f,35.556f}, {-1581.09f,1316.72f,32.437f}, {-1589.80f,1315.95f,26.871f}, {-1601.94f,1314.38f,19.213f}, {-1612.36f,1313.10f,18.449f}, {-1626.31f,1309.77f,20.337f}, {-1634.95f,1306.97f,19.663f}, {-1645.84f,1304.63f,19.769f}, {-1657.72f,1304.68f,19.782f}, {-1666.91f,1306.79f,19.782f}, {-1673.02f,1309.37f,19.782f}, {-1682.11f,1309.02f,19.782f}, {-1692.83f,1307.45f,19.782f}, {-1702.07f,1308.50f,19.782f}, {-1710.78f,1310.87f,19.782f}, {-1720.07f,1313.75f,19.782f}, {-1729.48f,1316.44f,19.782f}, {-1738.53f,1319.14f,19.782f}, {-1744.64f,1325.33f,19.791f}, {-1743.33f,1332.14f,19.760f}, {-1739.08f,1339.84f,19.790f}, {-1735.41f,1346.33f,19.882f}, {-1737.87f,1355.13f,19.783f}, {-1742.57f,1366.28f,19.736f}, {-1742.55f,1378.77f,19.763f}, {-1738.08f,1383.00f,19.823f}, {-1731.88f,1389.21f,20.290f}, {-1725.81f,1395.97f,21.668f}, {-1731.88f,1389.21f,20.290f}, {-1725.81f,1395.97f,21.668f}, {-1708.44f,1393.12f,21.668f}, {-1725.65f,1396.38f,21.668f}, {-1731.76f,1389.38f,20.334f}, {-1739.26f,1381.20f,19.917f}, {-1748.73f,1378.62f,19.857f}, {-1755.88f,1386.24f,19.892f}, {-1762.23f,1389.28f,19.899f}, {-1771.95f,1385.38f,19.632f}, {-1783.07f,1381.10f,19.656f}, {-1789.69f,1378.86f,19.793f}, {-1793.91f,1388.03f,19.870f}, {-1797.87f,1396.60f,19.902f}, {-1802.12f,1406.22f,19.838f}, {-1803.79f,1416.60f,19.954f}, {-1803.84f,1428.15f,19.762f}, {-1803.67f,1436.52f,19.528f}, {-1803.33f,1450.17f,18.978f}, {-1804.19f,1463.43f,18.945f}, {-1805.42f,1475.28f,19.364f}, {-1804.10f,1489.54f,19.608f}, {-1802.48f,1506.96f,19.780f}, {-1801.51f,1517.42f,19.780f}, {-1800.07f,1533.10f,20.370f}, {-1798.80f,1546.33f,22.601f}, {-1796.41f,1566.48f,20.604f}, {-1791.83f,1578.21f,20.504f}, {-1785.51f,1590.68f,20.504f}, {-1778.93f,1601.81f,20.494f}, {-1770.99f,1613.75f,20.480f}, {-1763.55f,1624.02f,20.454f}, {-1756.86f,1632.89f,20.457f}, {-1749.70f,1642.31f,20.474f}, {-1741.83f,1650.73f,20.476f}, {-1729.43f,1649.46f,20.500f}, {-1718.56f,1643.08f,20.485f}, {-1709.44f,1635.46f,20.486f}, {-1703.89f,1621.66f,20.488f}, }; static float const FWorgenWP[90][3] = { {-1782.323f, 1330.417f, 19.986f},{-1777.212f, 1335.359f, 19.928f},{-1772.587f, 1340.136f, 19.866f}, {-1768.117f, 1344.888f, 19.770f},{-1763.055f, 1349.358f, 19.410f},{-1756.953f, 1354.040f, 19.658f}, {-1752.293f, 1357.719f, 19.868f},{-1748.332f, 1363.519f, 19.818f},{-1745.613f, 1369.708f, 19.952f}, {-1743.513f, 1374.389f, 19.945f},{-1740.170f, 1380.246f, 19.748f},{-1736.963f, 1384.398f, 19.831f}, {-1733.255f, 1388.425f, 19.960f},{-1723.975f, 1397.091f, 21.669f},{-1718.432f, 1403.235f, 21.668f}, {-1713.175f, 1408.852f, 21.668f},{-1709.073f, 1413.494f, 21.669f},{-1704.466f, 1418.279f, 21.669f}, {-1701.909f, 1420.877f, 21.669f},{-1724.302f, 1396.877f, 21.669f},{-1729.486f, 1391.510f, 20.952f}, {-1734.534f, 1386.323f, 19.798f},{-1739.533f, 1381.429f, 19.773f},{-1750.598f, 1374.985f, 19.941f}, {-1756.823f, 1370.869f, 19.685f},{-1764.050f, 1369.123f, 19.772f},{-1771.198f, 1368.026f, 19.854f}, {-1778.163f, 1368.110f, 19.822f},{-1784.200f, 1370.549f, 19.854f},{-1788.680f, 1373.906f, 19.767f}, {-1793.036f, 1376.149f, 19.683f},{-1795.940f, 1379.000f, 19.806f},{-1796.415f, 1383.992f, 19.806f}, {-1796.665f, 1387.483f, 19.879f},{-1797.694f, 1394.274f, 19.731f},{-1799.521f, 1399.440f, 19.800f}, {-1800.752f, 1404.543f, 19.659f},{-1802.038f, 1410.351f, 19.877f},{-1804.932f, 1416.711f, 19.924f}, {-1806.214f, 1422.153f, 19.654f},{-1806.403f, 1428.672f, 19.667f},{-1806.443f, 1435.090f, 19.463f}, {-1806.421f, 1442.089f, 19.142f},{-1805.689f, 1448.921f, 18.990f},{-1805.052f, 1454.251f, 18.928f}, {-1804.705f, 1459.254f, 18.831f},{-1804.565f, 1465.202f, 19.021f},{-1804.568f, 1471.740f, 19.316f}, {-1805.130f, 1476.725f, 19.393f},{-1805.817f, 1483.099f, 19.443f},{-1806.897f, 1491.759f, 19.627f}, {-1807.824f, 1496.331f, 19.687f},{-1807.000f, 1503.017f, 19.778f},{-1804.972f, 1510.196f, 19.782f}, {-1802.989f, 1518.223f, 19.782f},{-1801.057f, 1524.465f, 19.782f},{-1800.279f, 1530.471f, 20.479f}, {-1799.865f, 1534.418f, 20.479f},{-1799.201f, 1540.200f, 21.924f},{-1798.666f, 1545.188f, 22.482f}, {-1797.992f, 1550.986f, 22.734f},{-1797.332f, 1556.899f, 22.476f},{-1796.790f, 1562.121f, 21.717f}, {-1796.364f, 1566.768f, 20.486f},{-1795.228f, 1571.534f, 20.491f},{-1793.634f, 1576.893f, 20.505f}, {-1790.968f, 1583.361f, 20.505f},{-1788.026f, 1589.323f, 20.505f},{-1785.241f, 1594.708f, 20.505f}, {-1782.106f, 1600.445f, 20.487f},{-1778.071f, 1607.141f, 20.484f},{-1775.218f, 1611.270f, 20.484f}, {-1770.276f, 1618.208f, 20.461f},{-1765.033f, 1624.617f, 20.402f},{-1759.929f, 1630.540f, 20.433f}, {-1755.177f, 1635.831f, 20.464f},{-1750.099f, 1641.469f, 20.474f},{-1744.623f, 1646.713f, 20.477f}, {-1739.483f, 1648.703f, 20.480f},{-1735.023f, 1649.466f, 20.491f},{-1728.781f, 1648.171f, 20.500f}, {-1724.372f, 1646.639f, 20.486f},{-1718.441f, 1643.662f, 20.486f},{-1713.951f, 1640.322f, 20.486f}, {-1709.559f, 1637.461f, 20.487f},{-1700.548f, 1630.398f, 20.488f},{-1695.960f, 1627.846f, 20.488f}, {-1690.876f, 1625.229f, 20.488f},{-1687.808f, 1622.724f, 20.488f},{-1683.897f, 1618.888f, 20.488f}, }; static float const GreymaneWP[16][3] = { {-1763.038f, 1680.547f, 22.158f},{-1756.171f, 1674.759f, 22.158f},{-1750.765f, 1670.313f, 22.158f}, {-1743.187f, 1664.099f, 20.481f},{-1734.999f, 1657.525f, 20.479f},{-1728.514f, 1652.187f, 20.500f}, {-1721.872f, 1646.491f, 20.485f},{-1718.441f, 1643.662f, 20.486f},{-1713.951f, 1640.322f, 20.486f}, {-1709.559f, 1637.461f, 20.487f},{-1703.985f, 1635.109f, 20.488f},{-1697.577f, 1633.860f, 20.488f}, {-1694.136f, 1633.221f, 20.488f},{-1686.660f, 1631.111f, 20.488f},{-1683.073f, 1628.163f, 20.488f}, {-1681.002f, 1623.270f, 20.488f}, }; const Position RangerSP[2]= { {-1576.904f, 1316.06f, 35.138f, 0.f}, {-1577.336f, 1320.35f, 35.114f, 0.f}, }; const Position CannonSP[3]= { {-1543.822f, 1290.354f, 7.252f, 3.12f}, {-1539.169f, 1288.024f, 4.381f, 3.12f}, {-1534.256f, 1285.484f, 1.539f, 3.12f}, }; struct Militia { uint64 guid; float dist; float angle; }; enum { ACTION_GOREROT_FIGHT = 8, ACTION_GOREROT_DIED = 9, ACTION_BATTLE_COMPLETE = 12, ACTION_LEADER_ON_POSITION = 14, SPELL_BANSHEE_QUEENS_WAIL = 72113, TYPE_DESPAWN_EVENT = 1, }; class npc_krennan_aranas_tbfgc : public CreatureScript { public: npc_krennan_aranas_tbfgc() : CreatureScript("npc_krennan_aranas_tbfgc") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } enum { NPC_PRINCE_LIAM_GREYMANE = 38218, MENU_START_BATTLE = 15377, TYPE_PLAYER_GUID = 1, }; bool OnGossipHello(Player* player, Creature* creature) { if (player->GetQuestStatus(QUEST_THE_BATTLE_FOR_GILNEAS_CITY) == QUEST_STATUS_INCOMPLETE) { if (creature_script_impl* aranasAI = dynamic_cast<creature_script_impl*>(creature->GetAI())) { if (!aranasAI->IsBattle()) player->ADD_GOSSIP_ITEM(GOSSIP_ICON_BATTLE, "Start the Battle for Gilneas City!", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); else player->ADD_GOSSIP_ITEM(GOSSIP_ICON_BATTLE, "I want join to the Battle for Gilneas City!", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); } player->ADD_GOSSIP_ITEM(GOSSIP_ICON_DOT, "Skip the Battle for Gilneas City!", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3); } player->SEND_GOSSIP_MENU(MENU_START_BATTLE, creature->GetGUID()); return true; } bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) { player->PlayerTalkClass->ClearMenus(); player->CLOSE_GOSSIP_MENU(); switch (action) { case GOSSIP_ACTION_INFO_DEF + 1: { if (creature->IsAIEnabled) creature->GetAI()->DoAction(ACTION_START_EVENT); } break; case GOSSIP_ACTION_INFO_DEF + 2: { if (creature->IsAIEnabled) creature->GetAI()->SetGUID(player->GetGUID(), TYPE_PLAYER_GUID); } break; case GOSSIP_ACTION_INFO_DEF + 3: player->CompleteQuest(QUEST_THE_BATTLE_FOR_GILNEAS_CITY); player->TeleportTo(654, -1663.051f, 1591.278f, 23.128f, 3.99f); player->SaveToDB(); break; } return true; } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } uint64 liamGUID; bool battle; void InitializeAI() { InitBattle(); me->setActive(true); } void DoAction(int32 const action) { switch (action) { case ACTION_START_EVENT: StartBattle(); break; case ACTION_BATTLE_COMPLETE: InitBattle(); break; } } bool IsBattle() const { return battle; } void InitBattle() { battle = false; liamGUID = 0; if (Creature* liam = me->SummonCreature(NPC_PRINCE_LIAM_GREYMANE, -1412.34f, 1274.66f, 36.4277f, 1.801f)) liamGUID = liam->GetGUID(); } void StartBattle() { battle = true; if (Creature* liam = ObjectAccessor::GetCreature(*me, liamGUID)) if (liam->IsAIEnabled) liam->GetAI()->DoAction(ACTION_START_EVENT); } void SetGUID(uint64 guid, int32 type) { if (type == TYPE_PLAYER_GUID) { if (Player* player = ObjectAccessor::GetPlayer(*me, guid)) { if (Creature* liam = ObjectAccessor::GetCreature(*me, liamGUID)) { float x, y, z, o; liam->GetPosition(x, y, z, o); player->TeleportTo(liam->GetMapId(), x, y, z, o); } } } } }; }; //struct BattleForGilneasLeaderAI : public ScriptedAI //{ // // creature_script_impl(Creature* creature) : ScriptedAI(creature) { } // // std::list<Militia> militias; // bool isFinish; // // void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override // { // if (spell->Id == SPELL_BANSHEE_QUEENS_WAIL) // { // isFinish = true; // me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // me->SetReactState(REACT_PASSIVE); // me->DeleteThreatList(); // me->CombatStop(true); // } // } // // void AddMilitia(uint64 guid, float dist, float angle) // { // Militia militia; // militia.guid = guid; // militia.dist = dist; // militia.angle = angle; // militias.push_back(militia); // } // // void SetData(uint32 type, uint32 data) override // { // if (type == TYPE_DESPAWN_EVENT) // { // for (std::list<Militia>::const_iterator itr = militias.begin(); itr != militias.end(); ++itr) // if (Creature* militia = ObjectAccessor::GetCreature(*me, itr->guid)) // militia->DespawnOrUnsummon(data); // // me->DespawnOrUnsummon(data); // } // } // // void StartMoveTo(float x, float y, float z) override // { // float pathangle = atan2(me->GetPositionY() - y, me->GetPositionX() - x); // bool smooth = std::abs(me->GetPositionZ() - z) > 5.f; // // for (std::list<Militia>::const_iterator itr = militias.begin(); itr != militias.end(); ++itr) // { // if (Creature* militia = ObjectAccessor::GetCreature(*me, itr->guid)) // { // if (!militia->isAlive() || militia->getVictim()) // continue; // // float angle = itr->angle; // float dist = itr->dist; // // float _x = x + std::cos(angle + pathangle) * dist; // float _y = y + std::sin(angle + pathangle) * dist; // float _z = z; // // WoWSource::NormalizeMapCoord(_x); // WoWSource::NormalizeMapCoord(_y); // // militia->UpdateGroundPositionZ(_x, _y, _z); // // // member current position // Movement::Location real_position(militia->GetPositionX(), militia->GetPositionY(), militia->GetPositionZMinusOffset(), militia->GetOrientation()); // // // current position may differ if member is moving // if (!militia->movespline->ized()) // real_position = militia->movespline->ComputePosition(); // // //float _dist = member->GetExactDist(dx, dy, dz); // float dx = real_position.x - _x; // float dy = real_position.y - _y; // float dz = real_position.z - _z; // // float _dist = sqrt(dx * dx + dy * dy + dz * dz); // float _time = me->GetSplineDuration(); // float speed = _dist / _time * IN_MILLISECONDS; // // if (speed > 2.f) // { // if (speed > 10.f) // speed = 10.f; // // Movement::MoveSplineInit init(militia); // init.SetVelocity(speed); // // if (smooth) // militia->GetMotionMaster()->MovePointSmooth(_x, _y, 2.5f, false, &init); // else // { // init.MoveTo(_x, _y, _z); // init.Launch(); // } // } // // militia->SetHomePosition(_x, _y, _z, M_PI + pathangle); // } // } // } // // void SummonMilitia(Unit* leader, uint32 entry, uint8 startIndex, uint8 finishIndex) // { // for (uint8 i = startIndex; i <= finishIndex; ++i) // { // float x, y; // leader->GetNearPoint2D(x, y, i * 3, leader->GetOrientation() + M_PI, false); // // if (Creature* militia = me->SummonCreature(entry, x, y, leader->GetPositionZ(), leader->GetOrientation())) // { // uint8 militiaOffset = i - startIndex + 1; // // AddMilitia(militia->GetGUID(), militiaOffset * 2 + 2, 0.f); // // for (int j = 0; j < 2; ++j) // { // militia->GetNearPoint2D(x, y, 3 * (j + 1), militia->GetOrientation() + M_PI / 2, false); // // if (Creature* militia = me->SummonCreature(entry, x, y, leader->GetPositionZ(), leader->GetOrientation())) // AddMilitia(militia->GetGUID(), militiaOffset * 2 + 2, -M_PI / (2 * militiaOffset - j * 5 -((-1 + j) * militiaOffset) + 7)); // // militia->GetNearPoint2D(x, y, 3 * (j + 1), militia->GetOrientation() - M_PI / 2, false); // // if (Creature* militia = me->SummonCreature(entry, x, y, leader->GetPositionZ(), leader->GetOrientation())) // AddMilitia(militia->GetGUID(), militiaOffset * 2 + 2, M_PI / (2 * militiaOffset - j * 5 -((-1 + j) * militiaOffset) + 7)); // } // } // } // } // // void AttackStart(Unit* who) override // { // SmoothEscortAI::AttackStart(who); // // for (std::list<Militia>::const_iterator itr = militias.begin(); itr != militias.end(); ++itr) // { // if (Creature* militia = ObjectAccessor::GetCreature(*me, itr->guid)) // { // if (!militia->isAlive()) // continue; // // if (militia->getVictim()) // { // militia->CombatStart(who); // militia->AddThreat(who, 0.0f); // } // else // { // bool melee = me->IsWithinMeleeRange(who); // militia->Attack(who, melee); // } // } // } // } // // void EnterEvadeMode() override // { // if (!isFinish) // { // for (std::list<Militia>::const_iterator itr = militias.begin(); itr != militias.end(); ++itr) // { // if (Creature* militia = ObjectAccessor::GetCreature(*me, itr->guid)) // { // if (!militia->isAlive() || !militia->IsAIEnabled) // continue; // // if (Unit* victim = militia->getVictim()) // { // AttackStart(victim); // return; // } // } // } // // SmoothEscortAI::EnterEvadeMode(); // } // } //}; //class npc_prince_liam_greymane_tbfgc : public CreatureScript //{ // public: // npc_prince_liam_greymane_tbfgc() : CreatureScript("npc_prince_liam_greymane_tbfgc") { } // // private: // CreatureAI* GetAI(Creature* creature) const // { // return new creature_script_impl(creature); // } // // struct creature_script_impl : public BattleForGilneasLeaderAI // { // creature_script_impl(Creature* creature) // : BattleForGilneasLeaderAI(creature) // , shooterAI(creature, SPELL_SHOOT, 100.f) // , sylvanasGUID(0) // , battleState(0) // , battlePhase(PHASE_NONE) // , isBattle(false) // , leaderGUID() // { } // // enum // { // EVENT_LIAM_BATTLE_SPEACH = 1, // EVENT_START_BATTLE = 7, // EVENT_TALK_MILITARY_DISTRICT = 8, // EVENT_ATTACK_MILITARY_DISTRICT = 9, // EVENT_LIAM_TALK_LORNA = 10, // EVENT_CROWLEY_TALK_GOREROT = 11, // EVENT_CROWLEY_TALK_GOREROT_DIED = 12, // EVENT_SYLVANAS_KILL_LIAM_1 = 13, // EVENT_SYLVANAS_KILL_LIAM_2 = 14, // EVENT_SYLVANAS_KILL_LIAM_3 = 15, // EVENT_SYLVANAS_KILL_LIAM_4 = 16, // EVENT_SYLVANAS_KILL_LIAM_5 = 17, // EVENT_SYLVANAS_KILL_LIAM_6 = 18, // // EVENT_LIAM_BATTLE_YELL = 1, // EVENT_MULTI_SHOT = 2, // EVENT_CHALLENGING_SHOUT = 3, // // LIAM_TALK_BATTLE_SPEACH = 1, // LIAM_TALK_BATTLE_FOR_GILNEAS = 7, // LIAM_TALK_MILITARY_DISTRICT = 8, // LIAM_TALK_LORNA = 9, // LIAM_TALK_CROWLEY = 10, // LIAM_TALK_BATTLE = 11, // LIAM_YELL_FATHER = 12, // LIAM_TALK_FINISH_1 = 13, // LIAM_TALK_FINISH_2 = 14, // CROWLEY_TALK_GOREROT = 1, // CROWLEY_TALK_GOREROT_DIED = 2, // SYLVANAS_YELL_KILL_LIAM = 2, // GREYMANE_YELL_LIAM = 2, // // ACTION_DESPAWN = 20, // // TYPE_MYRIAM = 0, // TYPE_ALMYRA = 1, // TYPE_LORNA = 2, // TYPE_CROWLEY = 3, // TYPE_GREYMANE = 4, // // PHASE_NONE = 0, // PHASE_INTRO = 1, // PHASE_MERCHANT_SQUARE = 2, // PHASE_MILITARY_DISTRICT = 3, // PHASE_GREYMANE_COURT = 4, // // SPELL_SHOOT = 22121, // SPELL_CHALLENGING_SHOUT = 1161, // SPELL_MULTI_SHOT = 31942, // SPELL_GREYMANE_JUMP = 72107, // SPELL_SHOOT_LIAM = 72116, // SPELL_BFGC_COMPLETE = 72349, // // NPC_LORD_DARIUS_CROWLEY = 38415, // NPC_GOREROT = 38331, // NPC_SISTER_ALMYRA = 38466, // NPC_LORNA_CROWLEY = 38426, // NPC_GILNEAN_MILITIA = 38221, // NPC_KING_GENN_GREYMANE = 38470, // NPC_LADY_SYLVANAS_WINDRUNNER = 38469, // NPC_MYRIAM_SPELLWAKER = 38465, // NPC_EMBERSTONE_CANNON = 38424, // }; // // ShooterGuardAI shooterAI; // EventMap commonEvents; // EventMap events; // std::array<uint64, 5> leaderGUID; // uint64 sylvanasGUID; // uint8 battleState; // uint8 battlePhase; // bool isBattle; // // void InitializeAI() // { // Reset(); // SummonEventCreatures(); // SetCombatMovement(false); // me->SetPhaseMask(262144, true); // me->m_CombatDistance = 40.f; // me->setActive(true); // } // // void Reset() // { // shooterAI.Reset(); // events.Reset(); // } // // void DamageTaken(Unit* attacker, uint32 &damage) // { // shooterAI.DamageTaken(attacker, damage); // } // // void SpellHit(Unit* caster, SpellInfo const* spell) // { // BattleForGilneasLeaderAI::SpellHit(caster, spell); // // if (spell->Id == SPELL_SHOOT_LIAM) // { // me->SetHealth(1); // me->SetStandState(UNIT_STAND_STATE_DEAD); // } // } // // void DoAction(int32 const action) // { // switch (action) // { // case ACTION_GOREROT_DIED: // { // if (Creature* crowley = ObjectAccessor::GetCreature(*me, leaderGUID[TYPE_CROWLEY])) // if (crowley->IsAIEnabled) // crowley->AI()->DoAction(ACTION_GOREROT_DIED); // // battlePhase = PHASE_GREYMANE_COURT; // BreakEscortPaused(); // commonEvents.ScheduleEvent(EVENT_CROWLEY_TALK_GOREROT_DIED, 7000); // } // break; // case ACTION_START_EVENT: // StartEvent(); // break; // case ACTION_DESPAWN: // DespawnEvent(0); // break; // case ACTION_LEADER_ON_POSITION: // UpdateBattleState(); // break; // case ACTION_BATTLE_COMPLETE: // shooterAI.SetActive(false); // events.Reset(); // commonEvents.ScheduleEvent(EVENT_SYLVANAS_KILL_LIAM_1, 3000); // break; // } // } // // void UpdateBattleState() // { // --battleState; // // if (!battleState) // { // switch (battlePhase) // { // case PHASE_MERCHANT_SQUARE: // { // for (uint8 i = 0; i < 3; ++i) // if (Creature* cannon = me->SummonCreature(NPC_EMBERSTONE_CANNON, CannonSP[i], TEMPSUMMON_TIMED_DESPAWN, 180000)) // cannon->GetMotionMaster()->MoveSplinePath(i, false, false, 0.f, false, false); // // battleState = 5; // battlePhase = PHASE_MILITARY_DISTRICT; // me->SummonCreature(NPC_LORNA_CROWLEY, -1551.90f, 1284.75f, 13.992f, 3.12f); // commonEvents.ScheduleEvent(EVENT_TALK_MILITARY_DISTRICT, 2000); // } // break; // case PHASE_MILITARY_DISTRICT: // { // if (Creature* crowley = ObjectAccessor::GetCreature(*me, leaderGUID[TYPE_CROWLEY])) // crowley->AI()->DoAction(ACTION_GOREROT_FIGHT); // // me->SummonCreature(NPC_GOREROT, -1671.78f, 1449.64f, 52.287f, 3.37f); // commonEvents.ScheduleEvent(EVENT_CROWLEY_TALK_GOREROT, 12000); // } // break; // } // } // } // // void StartEvent() // { // if (!isBattle) // { // isBattle = true; // battlePhase = PHASE_INTRO; // commonEvents.ScheduleEvent(EVENT_LIAM_BATTLE_SPEACH + 0, 5000); // me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_DESPAWN), me->m_Events.CalculateTime(1200000)); // } // } // // void StartBattle() // { // for (uint8 i = TYPE_MYRIAM; i <= TYPE_ALMYRA; ++i) // if (Creature* leader = ObjectAccessor::GetCreature(*me, leaderGUID[i])) // if (leader->IsAIEnabled) // leader->AI()->DoAction(ACTION_START_EVENT); // // for (int i = 0; i < 168; ++i) // AddWaypoint(i, FWaveWP[i][0], FWaveWP[i][1], FWaveWP[i][2]); // // Start(true); // battleState = 3; // battlePhase = PHASE_MERCHANT_SQUARE; // } // // void JustSummoned(Creature* summoned) // { // switch (summoned->GetEntry()) // { // case NPC_MYRIAM_SPELLWAKER: // leaderGUID[TYPE_MYRIAM] = summoned->GetGUID(); // break; // case NPC_SISTER_ALMYRA: // leaderGUID[TYPE_ALMYRA] = summoned->GetGUID(); // break; // case NPC_LORNA_CROWLEY: // leaderGUID[TYPE_LORNA] = summoned->GetGUID(); // break; // case NPC_LORD_DARIUS_CROWLEY: // leaderGUID[TYPE_CROWLEY] = summoned->GetGUID(); // break; // case NPC_KING_GENN_GREYMANE: // leaderGUID[TYPE_GREYMANE] = summoned->GetGUID(); // break; // case NPC_LADY_SYLVANAS_WINDRUNNER: // sylvanasGUID = summoned->GetGUID(); // break; // } // } // // void SummonEventCreatures() // { // me->SummonCreature(NPC_MYRIAM_SPELLWAKER, -1410.645f, 1261.467f, 36.428f, 1.801f); // me->SummonCreature(NPC_SISTER_ALMYRA, -1408.634f, 1252.606f, 36.428f, 1.801f); // SummonMilitia(me, NPC_GILNEAN_MILITIA, 1, 4); // } // // void DespawnEvent(uint32 timeToDespawn) // { // for (uint8 i = TYPE_MYRIAM; i <= TYPE_GREYMANE; ++i) // if (Creature* leader = ObjectAccessor::GetCreature(*me, leaderGUID[i])) // if (leader->IsAIEnabled) // leader->GetAI()->SetData(TYPE_DESPAWN_EVENT, timeToDespawn); // // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // sylvanas->DespawnOrUnsummon(timeToDespawn); // // SetData(TYPE_DESPAWN_EVENT, timeToDespawn); // } // // void BreakEscortPaused() // { // SetEscortPaused(false); // // for (uint8 i = TYPE_MYRIAM; i <= TYPE_CROWLEY; ++i) // if (Creature* leader = ObjectAccessor::GetCreature(*me, leaderGUID[i])) // if (leader->IsAIEnabled) // if (SmoothEscortAI* escort = dynamic_cast<SmoothEscortAI*>(leader->AI())) // escort->SetEscortPaused(false); // } // // void WaypointReached(uint32 point) // { // switch (point) // { // case 45: // SetEscortPaused(true); // UpdateBattleState(); // break; // case 75: // Talk(LIAM_TALK_CROWLEY); // me->SummonCreature(NPC_LORD_DARIUS_CROWLEY, -1791.19f, 1323.6f, 19.8029f); // break; // case 94: // SetEscortPaused(true); // UpdateBattleState(); // break; // case 145: // me->SummonCreature(NPC_LADY_SYLVANAS_WINDRUNNER, -1684.79f, 1616.47f, 20.4894f, 2.50855f); // me->SummonCreature(NPC_KING_GENN_GREYMANE, -1770.961f, 1687.437f, 22.158f, 5.565678f); // break; // case 167: // { // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // { // sylvanas->SetReactState(REACT_AGGRESSIVE); // sylvanas->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // CustomSpellValues values; // values.AddSpellMod(SPELLVALUE_RADIUS_MOD, 100.f); // sylvanas->CastCustomSpell(43263, values, (Unit*)NULL, true); // } // } // break; // } // } // // void EnterCombat(Unit* who) // { // shooterAI.EnterCombat(who); // CustomSpellValues values; // values.AddSpellMod(SPELLVALUE_RADIUS_MOD, 40.f); // me->CastCustomSpell(43263, values, (Unit*)NULL, true); // events.ScheduleEvent(EVENT_MULTI_SHOT, urand(2500, 5000)); // events.ScheduleEvent(EVENT_CHALLENGING_SHOUT, urand(3000, 7000)); // events.ScheduleEvent(EVENT_LIAM_BATTLE_YELL, urand(3000, 7000)); // } // // void UpdateAI(uint32 const diff) // { // SmoothEscortAI::UpdateAI(diff); // // commonEvents.Update(diff); // // if (uint32 eventId = commonEvents.ExecuteEvent()) // { // switch (eventId) // { // case EVENT_LIAM_BATTLE_SPEACH + 0: // Talk(LIAM_TALK_BATTLE_SPEACH); // commonEvents.ScheduleEvent(EVENT_LIAM_BATTLE_SPEACH + 1, 7500); // break; // case EVENT_LIAM_BATTLE_SPEACH + 1: // Talk(LIAM_TALK_BATTLE_SPEACH + 1); // commonEvents.ScheduleEvent(EVENT_LIAM_BATTLE_SPEACH + 2, 8500); // break; // case EVENT_LIAM_BATTLE_SPEACH + 2: // Talk(LIAM_TALK_BATTLE_SPEACH + 2); // commonEvents.ScheduleEvent(EVENT_LIAM_BATTLE_SPEACH + 3, 10500); // break; // case EVENT_LIAM_BATTLE_SPEACH + 3: // Talk(LIAM_TALK_BATTLE_SPEACH + 3); // commonEvents.ScheduleEvent(EVENT_LIAM_BATTLE_SPEACH + 4, 8500); // break; // case EVENT_LIAM_BATTLE_SPEACH + 4: // Talk(LIAM_TALK_BATTLE_SPEACH + 4); // commonEvents.ScheduleEvent(EVENT_LIAM_BATTLE_SPEACH + 5, 10500); // break; // case EVENT_LIAM_BATTLE_SPEACH + 5: // Talk(LIAM_TALK_BATTLE_SPEACH + 5); // commonEvents.ScheduleEvent(EVENT_START_BATTLE, 4500); // break; // case EVENT_START_BATTLE: // Talk(LIAM_TALK_BATTLE_FOR_GILNEAS); // battlePhase = PHASE_MERCHANT_SQUARE; // StartBattle(); // break; // case EVENT_TALK_MILITARY_DISTRICT: // Talk(LIAM_TALK_MILITARY_DISTRICT); // commonEvents.ScheduleEvent(EVENT_ATTACK_MILITARY_DISTRICT, 6500); // break; // case EVENT_ATTACK_MILITARY_DISTRICT: // BreakEscortPaused(); // commonEvents.ScheduleEvent(EVENT_LIAM_TALK_LORNA, 9000); // break; // case EVENT_LIAM_TALK_LORNA: // Talk(LIAM_TALK_LORNA); // break; // case EVENT_CROWLEY_TALK_GOREROT: // { // if (Creature* crowley = ObjectAccessor::GetCreature(*me, leaderGUID[TYPE_CROWLEY])) // if (crowley->IsAIEnabled) // crowley->AI()->Talk(CROWLEY_TALK_GOREROT); // } // break; // case EVENT_CROWLEY_TALK_GOREROT_DIED: // { // if (Creature* crowley = ObjectAccessor::GetCreature(*me, leaderGUID[TYPE_CROWLEY])) // if (crowley->IsAIEnabled) // crowley->AI()->Talk(CROWLEY_TALK_GOREROT_DIED); // } // break; // case EVENT_SYLVANAS_KILL_LIAM_1: // { // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // if (sylvanas->IsAIEnabled) // sylvanas->AI()->Talk(SYLVANAS_YELL_KILL_LIAM); // // me->RemoveAllAuras(); // commonEvents.ScheduleEvent(EVENT_SYLVANAS_KILL_LIAM_2, 3000); // } // break; // case EVENT_SYLVANAS_KILL_LIAM_2: // { // if (Creature* greymane = ObjectAccessor::GetCreature(*me, leaderGUID[TYPE_GREYMANE])) // { // Talk(LIAM_YELL_FATHER); // me->Dismount(); // me->SetWalk(false); // // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // { // float x, y; // greymane->GetNearPoint2D(x, y, 0.5f, greymane->GetAngle(sylvanas)); // me->GetMotionMaster()->MovePoint(0, x, y, greymane->GetPositionZ()); // } // } // // commonEvents.ScheduleEvent(EVENT_SYLVANAS_KILL_LIAM_3, me->GetSplineDuration() + 250); // } // break; // case EVENT_SYLVANAS_KILL_LIAM_3: // { // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // { // sylvanas->CastSpell(me, SPELL_SHOOT_LIAM, false); // sylvanas->CastSpell((Unit*)NULL, SPELL_BFGC_COMPLETE, false); // sylvanas->GetMotionMaster()->MovePoint(0, -1628.85f, 1626.61f, 20.4884f); // sylvanas->ForcedDespawn(2000); // // if (Creature* greymane = ObjectAccessor::GetCreature(*me, leaderGUID[TYPE_GREYMANE])) // if (greymane->IsAIEnabled) // greymane->AI()->Talk(GREYMANE_YELL_LIAM); // // if (me->isSummon()) // if (Creature* krennan = me->ToTempSummon()->GetSummonerCreatureBase()) // if (krennan->IsAIEnabled) // krennan->AI()->DoAction(ACTION_BATTLE_COMPLETE); // } // // commonEvents.ScheduleEvent(EVENT_SYLVANAS_KILL_LIAM_4, 3000); // } // break; // case EVENT_SYLVANAS_KILL_LIAM_4: // { // if (Creature* greymane = ObjectAccessor::GetCreature(*me, leaderGUID[TYPE_GREYMANE])) // { // greymane->RemoveAllAuras(); // greymane->SetStandState(UNIT_STAND_STATE_KNEEL); // greymane->SetFacingToObject(me); // } // // commonEvents.ScheduleEvent(EVENT_SYLVANAS_KILL_LIAM_5, 5000); // } // break; // case EVENT_SYLVANAS_KILL_LIAM_5: // Talk(LIAM_TALK_FINISH_1); // commonEvents.ScheduleEvent(EVENT_SYLVANAS_KILL_LIAM_6, 3000); // break; // case EVENT_SYLVANAS_KILL_LIAM_6: // Talk(LIAM_TALK_FINISH_2); // DespawnEvent(30000); // break; // } // } // // if (!shooterAI.UpdateShooterAI(diff)) // return; // // events.Update(diff); // // if (uint32 eventId = events.ExecuteEvent()) // { // switch (eventId) // { // case EVENT_MULTI_SHOT: // me->CastSpell(me->getVictim(), SPELL_MULTI_SHOT, false); // events.ScheduleEvent(EVENT_MULTI_SHOT, urand(2500, 5000)); // break; // case EVENT_LIAM_BATTLE_YELL: // Talk(LIAM_TALK_BATTLE); // events.ScheduleEvent(EVENT_LIAM_BATTLE_YELL, urand(15000, 30000)); // break; // case EVENT_CHALLENGING_SHOUT: // me->CastSpell((Unit*)NULL, SPELL_CHALLENGING_SHOUT, false); // events.ScheduleEvent(EVENT_CHALLENGING_SHOUT, urand(10000, 20000)); // break; // } // } // } // }; //}; //class npc_myriam_spellwaker_tbfgc : public CreatureScript //{ // public: // npc_myriam_spellwaker_tbfgc() : CreatureScript("npc_myriam_spellwaker_tbfgc"){ } // // private: // CreatureAI* GetAI(Creature* creature) const // { // return new creature_script_impl(creature); // } // // struct creature_script_impl : public BattleForGilneasLeaderAI // { // creature_script_impl(Creature* creature) : BattleForGilneasLeaderAI(creature) { } // // enum // { // EVENT_BLIZZARD = 1, // EVENT_FIRE_BLAST = 2, // EVENT_FROSTBOLT = 3, // // SPELL_BLIZZARD = 33418, // SPELL_FIRE_BLAST = 20795, // SPELL_FROSTBOLT = 20792, // // NPC_GILNEAN_MILITIA = 38221, // }; // // EventMap events; // // void InitializeAI() // { // SetCombatMovement(false); // me->setActive(true); // } // // void Reset() // { // events.Reset(); // } // // void isSummonedBy(Unit* summoner) // { // SummonMilitia(summoner, NPC_GILNEAN_MILITIA, 5, 7); // } // // void DoAction(int32 const action) // { // switch (action) // { // case ACTION_START_EVENT: // { // for (int i = 0; i < 173; ++i) // AddWaypoint(i, SWaveWP[i][0], SWaveWP[i][1], SWaveWP[i][2]); // // Start(true); // } // break; // } // } // // void WaypointReached(uint32 point) // { // switch (point) // { // case 54: // case 102: // { // if (me->isSummon()) // if (Creature* liam = me->ToTempSummon()->GetSummonerCreatureBase()) // if (liam->IsAIEnabled) // liam->GetAI()->DoAction(ACTION_LEADER_ON_POSITION); // // SetEscortPaused(true); // } // break; // } // } // // void DamageTaken(Unit* attacker, uint32 &damage) // { // if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) // { // if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) // { // damage = 0; // me->getThreatManager().addThreat(attacker, 0.f); // } // } // } // // void EnterCombat(Unit* who) // { // CustomSpellValues values; // values.AddSpellMod(SPELLVALUE_RADIUS_MOD, 40.f); // me->CastCustomSpell(43263, values, (Unit*)NULL, true); // events.ScheduleEvent(EVENT_FIRE_BLAST, urand(3000, 5000)); // events.ScheduleEvent(EVENT_FROSTBOLT, urand(3000, 5000)); // events.ScheduleEvent(EVENT_BLIZZARD, urand(5000, 15000)); // } // // void UpdateAI(uint32 const diff) // { // SmoothEscortAI::UpdateAI(diff); // // if (!UpdateVictim()) // return; // // events.Update(diff); // // if (me->HasUnitState(UNIT_STATE_CASTING)) // return; // // if (uint32 eventId = events.ExecuteEvent()) // { // switch (eventId) // { // case EVENT_FIRE_BLAST: // me->CastSpell(me->getVictim(), SPELL_FIRE_BLAST, false); // events.ScheduleEvent(EVENT_FIRE_BLAST, urand(3500, 7000)); // break; // case EVENT_FROSTBOLT: // me->CastSpell(me->getVictim(), SPELL_FROSTBOLT, false); // events.ScheduleEvent(EVENT_FROSTBOLT, 3000); // break; // case EVENT_BLIZZARD: // me->CastSpell(me->getVictim(), SPELL_BLIZZARD, false); // events.ScheduleEvent(EVENT_BLIZZARD, urand(10000, 20000)); // break; // } // } // } // }; //}; //class npc_sister_almyra_tbfgc : public CreatureScript //{ // public: // npc_sister_almyra_tbfgc() : CreatureScript("npc_sister_almyra_tbfgc") { } // // private: // CreatureAI* GetAI(Creature* creature) const // { // return new creature_script_impl(creature); // } // // struct creature_script_impl : public BattleForGilneasLeaderAI // { // creature_script_impl(Creature* creature) : BattleForGilneasLeaderAI(creature) { } // // enum // { // EVENT_FLASH_HEAL = 1, // EVENT_HOLY_NOVA = 2, // // SPELL_FLASH_HEAL = 17843, // SPELL_HOLY_NOVA = 85965, // // NPC_GILNEAN_MILITIA = 38221, // NPC_DARK_RANGER_ELITE = 38464, // }; // // EventMap events; // // void InitializeAI() // { // SetCombatMovement(false); // me->setActive(true); // } // // void Reset() // { // events.Reset(); // } // // void isSummonedBy(Unit* summoner) // { // SummonMilitia(summoner, NPC_GILNEAN_MILITIA, 8, 10); // } // // void DoAction(int32 const action) // { // switch (action) // { // case ACTION_START_EVENT: // { // for (int i = 0; i < 160; ++i) // AddWaypoint(i, TWaveWP[i][0], TWaveWP[i][1], TWaveWP[i][2]); // // Start(true); // } // break; // } // } // // void WaypointReached(uint32 point) // { // switch (point) // { // case 17: // { // for (uint8 i = 0; i < 2; ++i) // if (Creature* ranger = me->SummonCreature(NPC_DARK_RANGER_ELITE, RangerSP[i], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 15000)) // ranger->GetMotionMaster()->MoveSplinePath(i); // } // break; // case 24: // case 87: // { // if (me->isSummon()) // if (Creature* liam = me->ToTempSummon()->GetSummonerCreatureBase()) // if (liam->IsAIEnabled) // liam->GetAI()->DoAction(ACTION_LEADER_ON_POSITION); // // SetEscortPaused(true); // } // break; // } // } // // void DamageTaken(Unit* attacker, uint32 &damage) // { // if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) // { // if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) // { // damage = 0; // me->getThreatManager().addThreat(attacker, 0.f); // } // } // } // // void EnterCombat(Unit* who) // { // CustomSpellValues values; // values.AddSpellMod(SPELLVALUE_RADIUS_MOD, 40.f); // me->CastCustomSpell(43263, values, (Unit*)NULL, true); // events.ScheduleEvent(EVENT_FLASH_HEAL, urand(1500, 3000)); // events.ScheduleEvent(EVENT_HOLY_NOVA, urand(3000, 5000)); // } // // void UpdateAI(uint32 const diff) // { // SmoothEscortAI::UpdateAI(diff); // // if (!UpdateVictim()) // return; // // events.Update(diff); // // if (me->HasUnitState(UNIT_STATE_CASTING)) // return; // // if (uint32 eventId = events.ExecuteEvent()) // { // switch (eventId) // { // case EVENT_FLASH_HEAL: // { // if (Unit* target = DoSelectLowestHpFriendly(35.f, 1)) // DoCast(target, SPELL_FLASH_HEAL); // // events.ScheduleEvent(EVENT_FLASH_HEAL, urand(1500, 3000)); // } // break; // case EVENT_HOLY_NOVA: // me->CastSpell((Unit*)NULL, SPELL_HOLY_NOVA, false); // events.ScheduleEvent(EVENT_HOLY_NOVA, urand(3000, 5000)); // break; // } // } // } // }; //}; class npc_gilnean_militia_tbfgc : public CreatureScript { public: npc_gilnean_militia_tbfgc() : CreatureScript("npc_gilnean_militia_tbfgc") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , shooterAI(creature, SPELL_SHOOT, 100.f) { } enum { EVENT_WING_CLIP = 1, EVENT_SUNDER_ARMOR = 2, SPELL_SHOOT = 22121, SPELL_IMPROVED_WING_CLIP = 47168, SPELL_SUNDER_ARMOR = 15572, }; ShooterGuardAI shooterAI; EventMap events; void InitializeAI() { Reset(); SetCombatMovement(false); me->setActive(true); } void Reset() { shooterAI.Reset(); events.Reset(); me->SetWalk(false); } void DamageTaken(Unit* attacker, uint32 &damage) { shooterAI.DamageTaken(attacker, damage); } void EnterEvadeMode() { if (me->isSummon()) { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) { if (summoner->getVictim()) AttackStart(summoner->getVictim()); if (summoner->isInCombat()) return; } } ScriptedAI::EnterEvadeMode(); } void SpellHit(Unit* /*caster*/, SpellInfo const* spell) { if (spell->Id == SPELL_BANSHEE_QUEENS_WAIL) { shooterAI.SetActive(false); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->SetReactState(REACT_PASSIVE); me->DeleteThreatList(); me->CombatStop(true); } } void AttackStart(Unit* who) { shooterAI.AttackStart(who); if (me->isSummon()) { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) { if (!summoner->getVictim()) { if (summoner->IsAIEnabled) //summoner->AI()->AttackStart(who); { } } else { who->SetInCombatWith(summoner); summoner->AddThreat(who, 0.0f); } } } } void EnterCombat(Unit* who) { if (me->IsMoving()) me->StopMoving(); shooterAI.EnterCombat(who); CustomSpellValues values; values.AddSpellMod(SPELLVALUE_RADIUS_MOD, 40.f); me->CastCustomSpell(43263, values, (Unit*)NULL, true); events.ScheduleEvent(EVENT_WING_CLIP, urand(5000, 15000)); events.ScheduleEvent(EVENT_SUNDER_ARMOR, urand(3000, 5000)); } void UpdateAI(uint32 const diff) { if (!shooterAI.UpdateShooterAI(diff)) return; events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_WING_CLIP: { if (Unit* target = SelectTarget(SELECT_TARGET_NEAREST, 0, 2.f)) me->CastSpell(target, SPELL_IMPROVED_WING_CLIP, false); events.ScheduleEvent(EVENT_WING_CLIP, urand(5000, 15000)); } break; case EVENT_SUNDER_ARMOR: { if (Unit* target = SelectTarget(SELECT_TARGET_NEAREST, 0, 2.f)) me->CastSpell(target, SPELL_SUNDER_ARMOR, false); events.ScheduleEvent(EVENT_SUNDER_ARMOR, urand(3000, 5000)); } break; } } } }; }; class npc_dark_ranger_elite_tbfgc : public CreatureScript { public: npc_dark_ranger_elite_tbfgc() : CreatureScript("npc_dark_ranger_elite_tbfgc") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , shooterAI(creature, SPELL_SHOOT, 80.f) { } enum { EVENT_KNOCKBACK = 1, SPELL_SHOOT = 22121, SPELL_KNOCKBACK = 68683, }; ShooterGuardAI shooterAI; EventMap events; void InitializeAI() { Reset(); SetCombatMovement(false); me->m_CombatDistance = 30.0f; } void Reset() { shooterAI.Reset(); events.Reset(); me->m_Events.AddEvent(new AggroEvent(me), me->m_Events.CalculateTime(500)); } void AttackStart(Unit* who) { shooterAI.AttackStart(who); } void EnterCombat(Unit* who) { me->StopMoving(); me->SetHomePosition(*me); shooterAI.EnterCombat(who); events.ScheduleEvent(EVENT_KNOCKBACK, urand(5000, 10000)); } void UpdateAI(uint32 const diff) { if (!shooterAI.UpdateShooterAI(diff)) return; events.Update(diff); if (events.ExecuteEvent() == EVENT_KNOCKBACK) { if (Unit* target = SelectTarget(SELECT_TARGET_NEAREST, 0, 5.f)) me->CastSpell(target, SPELL_KNOCKBACK, false); events.ScheduleEvent(EVENT_KNOCKBACK, urand(7500, 15000)); } } }; }; //@todo implement SmoothEscortAI //class npc_lorna_crowley_tbfgc : public CreatureScript //{ // public: // npc_lorna_crowley_tbfgc() : CreatureScript("npc_lorna_crowley_tbfgc") { } // // private: // CreatureAI* GetAI(Creature* creature) const // { // return new creature_script_impl(creature); // } // // struct creature_script_impl : public SmoothEscortAI // { // creature_script_impl(Creature* creature) // : SmoothEscortAI(creature) // , shooterAI(creature, SPELL_SHOOT, 80.f) // { } // // enum // { // SPELL_SHOOT = 22411, // // TEXT_LORNA_BATTLE = 1, // }; // // ShooterGuardAI shooterAI; // // void InitializeAI() // { // SetCombatMovement(false); // me->m_CombatDistance = 30.0f; // me->setActive(true); // Reset(); // } // // void Reset() // { // shooterAI.Reset(); // } // // void isSummonedBy(Unit* summoner) // { // for (int i = 0; i < 78; ++i) // AddWaypoint(i, LornaWP[i][0], LornaWP[i][1], LornaWP[i][2]); // // Start(true); // } // // void SetData(uint32 type, uint32 data) // { // if (type == TYPE_DESPAWN_EVENT) // me->DespawnOrUnsummon(data); // } // // void SpellHit(Unit* /*caster*/, SpellInfo const* spell) // { // if (spell->Id == SPELL_BANSHEE_QUEENS_WAIL) // { // shooterAI.SetActive(false); // me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // me->SetReactState(REACT_PASSIVE); // me->DeleteThreatList(); // me->CombatStop(true); // } // } // // void DamageTaken(Unit* attacker, uint32 &damage) // { // shooterAI.DamageTaken(attacker, damage); // } // // void EnterCombat(Unit* who) // { // shooterAI.EnterCombat(who); // } // // void WaypointReached(uint32 point) // { // switch (point) // { // case 8: // Talk(TEXT_LORNA_BATTLE); // break; // case 41: // { // if (me->isSummon()) // if (Creature* liam = me->ToTempSummon()->GetSummonerCreatureBase()) // if (liam->IsAIEnabled) // liam->GetAI()->DoAction(ACTION_LEADER_ON_POSITION); // // SetEscortPaused(true); // } // break; // } // } // // void UpdateAI(uint32 const diff) // { // SmoothEscortAI::UpdateAI(diff); // // shooterAI.UpdateShooterAI(diff); // } // }; //}; class npc_emberstone_cannon_tbfgc : public CreatureScript { public: npc_emberstone_cannon_tbfgc() : CreatureScript("npc_emberstone_cannon_tbfgc") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { ACTION_MOVE_DONE = 1, ACTION_INITIALIZE = 2, ACTION_REMOVE_VILLAGER = 3, SPELL_EJECT_ALL_PASSENGERS = 50630, NPC_FREED_EMBERSTONE_VILLAGER = 38425, }; void InitializeAI() { me->AddExtraUnitMovementFlag(MOVEMENTFLAG2_FULL_SPEED_PITCHING); me->AddExtraUnitMovementFlag(MOVEMENTFLAG2_ALWAYS_ALLOW_PITCHING); me->setActive(true); } void isSummonedBy(Unit* summoner) { //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_INITIALIZE), me->m_Events.CalculateTime(250)); } void DoAction(int32 const action) { switch (action) { case ACTION_INITIALIZE: { if (Creature* villager = me->SummonCreature(NPC_FREED_EMBERSTONE_VILLAGER, *me, TEMPSUMMON_TIMED_DESPAWN, 25000)) villager->EnterVehicle(me); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_REMOVE_VILLAGER), me->m_Events.CalculateTime(me->GetSplineDuration() - 250)); //me->m_Events.AddEvent(new DelayEventDoAction(me, ACTION_MOVE_DONE), me->m_Events.CalculateTime(me->GetSplineDuration())); } break; case ACTION_REMOVE_VILLAGER: me->CastSpell(me, SPELL_EJECT_ALL_PASSENGERS, false); break; case ACTION_MOVE_DONE: me->SetFacingTo(3.193953f); me->SetControlled(true, UNIT_STATE_ROOT); break; } } }; }; class npc_gilneas_forsaken_crossbowman_tbfgc : public CreatureScript { public: npc_gilneas_forsaken_crossbowman_tbfgc() : CreatureScript("npc_gilneas_forsaken_crossbowman_tbfgc") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , shooterAI(creature, SPELL_SHOOT) { } enum { SPELL_SHOOT = 22411, }; ShooterGuardAI shooterAI; void InitializeAI() { SetCombatMovement(false); me->m_CombatDistance = 30.0f; } void Reset() { shooterAI.Reset(); } void EnterCombat(Unit* who) { shooterAI.EnterCombat(who); } void UpdateAI(uint32 const diff) { shooterAI.UpdateShooterAI(diff); } }; }; // todo : implement BattleForGilneasLeaderAI //class npc_lord_darius_crowley_tbfgc : public CreatureScript //{ // public: // npc_lord_darius_crowley_tbfgc() : CreatureScript("npc_lord_darius_crowley_tbfgc") { } // // private: // CreatureAI* GetAI(Creature* creature) const // { // return new creature_script_impl(creature); // } // // struct creature_script_impl : public BattleForGilneasLeaderAI // { // creature_script_impl(Creature* creature) : BattleForGilneasLeaderAI(creature) { } // // enum // { // EVENT_SLICE_AND_DICE = 1, // EVENT_TAUNT = 2, // EVENT_FERAL_LEAP = 3, // EVENT_JUMP = 4, // EVENT_JUMP_DONE = 5, // // SPELL_SLICE_AND_DICE = 6434, // SPELL_TAUNT = 37548, // SPELL_FERAL_LEAP = 71921, // SPELL_INTERCEPT = 58769, // // NPC_WORGEN_WARRIOR = 38348, // }; // // EventMap events; // bool gorerot; // // void InitializeAI() // { // SummonMilitia(me, NPC_WORGEN_WARRIOR, 1, 4); // Reset(); // me->setActive(true); // } // // void Reset() // { // gorerot = false; // events.Reset(); // } // // void isSummonedBy(Unit* summoner) // { // for (int j = 0; j < 90; ++j) // AddWaypoint(j, FWorgenWP[j][0], FWorgenWP[j][1], FWorgenWP[j][2]); // // Start(true, true); // } // // void DoAction(int32 const action) // { // switch (action) // { // case ACTION_GOREROT_FIGHT: // gorerot = true; // break; // case ACTION_GOREROT_DIED: // gorerot = false; // me->GetMotionMaster()->MoveJump(-1715.62f, 1403.78f, 21.6688f, 10.0f, 10.0f); // break; // } // } // // void WaypointReached(uint32 point) // { // if (point == 18) // { // if (me->isSummon()) // if (Creature* liam = me->ToTempSummon()->GetSummonerCreatureBase()) // if (liam->IsAIEnabled) // liam->GetAI()->DoAction(ACTION_LEADER_ON_POSITION); // // SetEscortPaused(true); // } // } // // void DamageTaken(Unit* attacker, uint32 &damage) // { // if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) // { // if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) // { // damage = 0; // me->getThreatManager().addThreat(attacker, 0.f); // } // } // } // // void EnterCombat(Unit* who) // { // me->CastSpell(who, SPELL_INTERCEPT, false); // events.ScheduleEvent(EVENT_TAUNT, 1000); // events.ScheduleEvent(EVENT_SLICE_AND_DICE, 2000); // // if (gorerot) // events.ScheduleEvent(EVENT_JUMP, 12000); // } // // void UpdateAI(uint32 const diff) // { // SmoothEscortAI::UpdateAI(diff); // // if (!UpdateVictim()) // return; // // events.Update(diff); // // if (uint32 eventId = events.ExecuteEvent()) // { // switch (eventId) // { // case EVENT_JUMP: // me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // me->SetReactState(REACT_PASSIVE); // me->AttackStop(); // me->StopMoving(); // me->GetMotionMaster()->MoveJump(-1692.618f, 1428.863f, 42.7f, 15.0f, 20.0f); // events.Reset(); // events.ScheduleEvent(EVENT_FERAL_LEAP, me->GetSplineDuration()); // break; // case EVENT_FERAL_LEAP: // me->CastSpell((Unit*)NULL, SPELL_FERAL_LEAP, false); // events.ScheduleEvent(EVENT_JUMP_DONE, me->GetSplineDuration() + 500); // break; // case EVENT_JUMP_DONE: // me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // me->SetReactState(REACT_AGGRESSIVE); // events.ScheduleEvent(EVENT_TAUNT, 1000); // events.ScheduleEvent(EVENT_SLICE_AND_DICE, 5000); // events.ScheduleEvent(EVENT_JUMP, urand(10000, 20000)); // break; // case EVENT_TAUNT: // me->CastSpell(me->getVictim(), SPELL_TAUNT, false); // events.ScheduleEvent(EVENT_TAUNT, 7000); // break; // case EVENT_SLICE_AND_DICE: // me->CastSpell(me, SPELL_SLICE_AND_DICE, false); // events.ScheduleEvent(EVENT_SLICE_AND_DICE, urand(10000, 20000)); // break; // } // } // // DoMeleeAttackIfReady(); // } // }; //}; class npc_worgen_warrior_tbfgc : public CreatureScript { public: npc_worgen_warrior_tbfgc() : CreatureScript("npc_worgen_warrior_tbfgc") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } void SpellHit(Unit* /*caster*/, SpellInfo const* spell) { if (spell->Id == SPELL_BANSHEE_QUEENS_WAIL) { me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->SetReactState(REACT_PASSIVE); me->DeleteThreatList(); me->CombatStop(true); } } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } } void EnterEvadeMode() { if (me->isSummon()) { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) { if (summoner->getVictim()) AttackStart(summoner->getVictim()); if (summoner->isInCombat()) return; } } ScriptedAI::EnterEvadeMode(); } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class npc_gorerot_tbfgc : public CreatureScript { public: npc_gorerot_tbfgc() : CreatureScript("npc_gorerot_tbfgc") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { EVENT_THUNDERCLAP = 1, EVENT_SMASH = 2, EVENT_APPLY_WORGENS = 3, ACTION_START_COMBAT = 1, GOREROT_YELL_CRUSH = 1, SPELL_THUNDERCLAP = 8078, SPELL_SMASH = 71774, NPC_WORGEN_WARRIOR = 38348, }; EventMap events; void InitializeAI() { SetCombatMovement(false); me->setActive(true); Reset(); } void Reset() { events.Reset(); } void IsSummonedBy(Unit* summoner) { me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->SetReactState(REACT_PASSIVE); static Position gorerotJP = {-1710.47f, 1407.91f, 21.752f, 3.37f}; me->GetMotionMaster()->MoveJump(gorerotJP, 20.f, 30.f); me->SetHomePosition(gorerotJP); //ForcedUnsummonDelayEvent* pEvent = new ForcedUnsummonDelayEvent(*this); //me->m_Events.AddEvent(pEvent, 5250); } void DoAction(int32 const action) { if (action == ACTION_START_COMBAT) { Talk(GOREROT_YELL_CRUSH); me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->SetReactState(REACT_AGGRESSIVE); me->CastSpell((Unit*)NULL, SPELL_THUNDERCLAP, false); } } void JustDied(Unit* /*killer*/) { if (me->isSummon()) if (Unit* summoner = me->ToTempSummon()->GetSummoner()) if (Creature* liam = summoner->ToTempSummon()) liam->AI()->DoAction(ACTION_GOREROT_DIED); } void PassengerWillBoard(Unit* passenger, Position& enterPos, int8 seatId) { switch (seatId) { case 0: case 1: passenger->m_movementInfo.t_pos.m_orientation = M_PI; enterPos.m_orientation = M_PI; break; } } void EnterCombat(Unit* who) { events.ScheduleEvent(EVENT_APPLY_WORGENS, 1000); events.ScheduleEvent(EVENT_SMASH, urand(5000, 10000)); events.ScheduleEvent(EVENT_THUNDERCLAP, urand(7000, 14000)); if (AuraPtr aura = me->AddAura(64748, me)) { aura->SetDuration(std::numeric_limits<int>::max()); if (AuraEffectPtr effect = aura->GetEffect(EFFECT_0)) effect->ChangeAmount(-90); } } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_APPLY_WORGENS: { uint8 seatId = 0; std::list<Creature*> worgenList; Vehicle* vehicle = me->GetVehicleKit(); me->GetCreatureListWithEntryInGrid(worgenList, NPC_WORGEN_WARRIOR, 10.0f); if (!vehicle || worgenList.empty()) return; std::list<Creature*>::const_iterator itr = worgenList.begin(); while (seatId < 4 && itr != worgenList.end()) { if (vehicle->HasEmptySeat(seatId)) { while (itr != worgenList.end()) { if (Creature* worgen = *itr) { if (!worgen->GetVehicle() && worgen->isAlive()) { worgen->EnterVehicle(me, seatId); ++seatId; ++itr; break; } } ++itr; } } else ++seatId; } } break; case EVENT_THUNDERCLAP: { if (Vehicle* vehicle = me->GetVehicleKit()) vehicle->RemoveAllPassengers(); me->CastSpell((Unit*)NULL, SPELL_THUNDERCLAP, false); events.RescheduleEvent(EVENT_APPLY_WORGENS, 2000); events.ScheduleEvent(EVENT_THUNDERCLAP, urand(10000, 20000)); } break; case EVENT_SMASH: { uint8 roll = urand(0, 4); if (Vehicle* vehicle = me->GetVehicleKit()) { if (Unit* passenger = vehicle->GetPassenger(roll)) { passenger->ExitVehicle(); me->CastSpell(passenger, SPELL_SMASH, false); events.RescheduleEvent(EVENT_APPLY_WORGENS, 2000); } } events.ScheduleEvent(EVENT_SMASH, urand(5000, 10000)); } break; } } DoMeleeAttackIfReady(); } }; }; class npc_damaged_catapult_tbfgc : public CreatureScript { public: npc_damaged_catapult_tbfgc() : CreatureScript("npc_damaged_catapult_tbfgc") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { SPELL_SOLDIER_OF_TBFGC = 72069, SPELL_BURNING = 72839, }; void InitializeAI() { me->ApplySpellImmune(0, IMMUNITY_ID, SPELL_SOLDIER_OF_TBFGC, true); } void PassengerBoarded(Unit* /*who*/, int8 /*seatId*/, bool apply) { if (apply) me->AddAura(SPELL_BURNING, me); else me->RemoveAura(SPELL_BURNING); } }; }; //class npc_king_genn_greymane_tbfgc : public CreatureScript //{ // public: // npc_king_genn_greymane_tbfgc() : CreatureScript("npc_king_genn_greymane_tbfgc") { } // // private: // CreatureAI* GetAI(Creature* creature) const // { // return new creature_script_impl(creature); // } // // struct creature_script_impl : public BattleForGilneasLeaderAI // { // creature_script_impl(Creature* creature) : BattleForGilneasLeaderAI(creature) { } // // enum // { // NPC_GILNEAN_MILITIA = 38221, // // SPELL_GREYMANE_TRANSFORM = 86141, // TALK_SYLVANAS = 2, // TALK_BLOCK = 1, // // }; // // void InitializeAI() // { // me->setActive(true); // SummonMilitia(me, NPC_GILNEAN_MILITIA, 1, 4); // } // // void isSummonedBy(Unit* summoner) // { // for (int i = 0; i < 16; ++i) // AddWaypoint(i, GreymaneWP[i][0], GreymaneWP[i][1], GreymaneWP[i][2]); // // Start(true); // } // // void DamageTaken(Unit* attacker, uint32 &damage) // { // if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) // { // if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) // { // damage = 0; // me->getThreatManager().addThreat(attacker, 0.f); // } // } // } // // void WaypointReached(uint32 point) // { // switch (point) // { // case 4: // Talk(TALK_BLOCK); // break; // case 6: // Talk(TALK_SYLVANAS); // me->CastSpell(me, SPELL_GREYMANE_TRANSFORM, false); // break; // } // } // // void UpdateAI(uint32 const diff) override // { // // if (!UpdateVictim()) // return; // // DoMeleeAttackIfReady(); // } // }; //}; class npc_lady_sylvanas_windrunner_tbfgc : public CreatureScript { public: npc_lady_sylvanas_windrunner_tbfgc() : CreatureScript("npc_lady_sylvanas_windrunner_tbfgc") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) , shooterAI(creature, SPELL_SHOOT, 100.f) { } enum { SPELL_SHOOT = 22121, SYLVANAS_YELL_ENOUGH = 1, }; ShooterGuardAI shooterAI; bool enrage; void InitializeAI() { SetCombatMovement(false); me->SetReactState(REACT_PASSIVE); me->SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_NON_ATTACKABLE); me->setActive(true); } void Reset() { enrage = false; shooterAI.Reset(); } void DamageTaken(Unit* attacker, uint32 &damage) { if (!enrage && me->HealthBelowPctDamaged(20, damage)) { damage = 0; enrage = true; shooterAI.SetActive(false); Talk(SYLVANAS_YELL_ENOUGH); me->SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_NON_ATTACKABLE); me->SetReactState(REACT_PASSIVE); me->AttackStop(); me->CastSpell((Unit*)NULL, SPELL_BANSHEE_QUEENS_WAIL, false); if (me->isSummon()) if (Unit* summoner = me->ToTempSummon()->GetSummoner()) if (me->IsAIEnabled) me->AI()->DoAction(ACTION_BATTLE_COMPLETE); } } void EnterCombat(Unit* who) { shooterAI.EnterCombat(who); if (AuraPtr aura = me->AddAura(64748, me)) { aura->SetDuration(std::numeric_limits<int>::max()); if (AuraEffectPtr effect = aura->GetEffect(EFFECT_0)) effect->ChangeAmount(-99); } } void UpdateAI(uint32 const diff) { shooterAI.UpdateShooterAI(diff); } }; }; // Quest The Hunt For Sylvanas 24902 class npc_lorna_crowley_qthfs : public CreatureScript { public: npc_lorna_crowley_qthfs() : CreatureScript("npc_lorna_crowley_qthfs") { } private: enum { SPELL_SUMMON_TOBIAS = 72471, }; bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) { if (quest->GetQuestId() == QUEST_THE_HUNT_FOR_SYLVANAS) creature->CastSpell(player, SPELL_SUMMON_TOBIAS, false, NULL, NULL, player->GetGUID()); return false; } bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == QUEST_THE_BATTLE_FOR_GILNEAS_CITY) { player->RemoveAurasByType(SPELL_AURA_PHASE); player->CastSpell(player, SPELL_ZONE_SPECIFIC_13, false); player->SaveToDB(); } return false; } }; //class npc_tobias_mistmantle_qthfs : public CreatureScript //{ // public: // npc_tobias_mistmantle_qthfs() : CreatureScript("npc_tobias_mistmantle_qthfs") { } // // private: // CreatureAI* GetAI(Creature* creature) const // { // return new creature_script_impl(creature); // } // // struct creature_script_impl : public ScriptedAI // { // creature_script_impl(Creature* creature) : ScriptedAI(creature) { } // // enum // { // EVENT_START_HUNT = 1, // EVENT_TALK_NOT_SEEN = 2, // EVENT_JUMP_1 = 3, // EVENT_RESUME_HUNT_1 = 4, // EVENT_JUMP_2 = 5, // EVENT_RESUME_HUNT_2 = 6, // EVENT_GENERAL_SAY = 9, // EVENT_TALK_DID_YOU_HEAR = 10, // EVENT_JUMP_IN_WATER = 11, // EVENT_FINISH_HUNT = 12, // EVENT_SUMMON_SYLVANAS = 13, // EVENT_CHECK_PLAYER_POSITION = 14, // EVENT_SYLVANAS_ON_POISITON = 15, // EVENT_WARHOWL_TALK_LOSING = 16, // EVENT_SYLVANAS_TALK_ASSURE = 17, // EVENT_WARHOWL_TALK_PLAGUE = 18, // EVENT_SYLVANAS_TALK_TONE = 19, // EVENT_WARHOWL_TALK_GOOD_BY = 20, // EVENT_SYLVANAS_TALK_GO_WITH_HONOR = 21, // EVENT_CRENSHAW_WALK_TO_SYLVANAS = 22, // EVENT_CRENSHAW_TALK_ORDER = 23, // EVENT_SYLVANAS_TALK_WHAT_QUESTION = 24, // EVENT_CRENSHAW_TALK_AS_YOU_WISH = 25, // EVENT_CRENSHAW_WALK_AWAY = 26, // // TOBIAS_SAY_LETS_GO = 1, // TOBIAS_EMOTE_LETS_GO = 2, // TOBIAS_SAY_NOT_SEEN = 3, // TOBIAS_SAY_DID_YOU_HEAR = 4, // TOBIAS_SAY_HIDE = 5, // GENERAL_SYLVANAS = 1, // WARHOWL_SAY_LOSING = 1, // WARHOWL_SAY_PLAGUE = 2, // WARHOWL_SAY_GOOD_BY = 3, // SYLVANAS_SAY_ASSURE = 1, // SYLVANAS_SAY_TONE = 2, // SYLVANAS_SAY_GO_WITH_HONOR = 3, // SYLVANAS_SAY_WHAT_QUESTION = 4, // CRENSHAW_SAY_ORDER = 1, // CRENSHAW_AS_YOU_WISH = 2, // // NPC_FORSAKEN_GENERAL = 38617, // NPC_LADY_SYLVANAS = 38530, // NPC_GENERAL_WARHOWL = 38533, // NPC_HIGH_EXECUTOR_CRENSHAW = 38537, // // SPELL_SHOOT = 48424, // }; // // EventMap events; // uint64 sylvanasGUID; // uint64 warhowlGUID; // uint64 crenshawGUID; // // void InitializeAI() // { // me->setActive(true); // } // // void isSummonedBy(Unit* summoner) // { // me->SetVisible(true); // Talk(TOBIAS_SAY_LETS_GO, me->ToTempSummon()->GetSummonerGUID(), true); // events.ScheduleEvent(EVENT_START_HUNT, 5000); // } // // void JustSummoned(Creature* summoned) // { // summoned->SetVisible(true); // } // // void UpdateAI(uint32 const diff) // { // events.Update(diff); // // if (uint32 eventId = events.ExecuteEvent()) // { // switch (eventId) // { // case EVENT_START_HUNT: // Talk(TOBIAS_EMOTE_LETS_GO, me->ToTempSummon()->GetSummonerGUID(), true); // me->GetMotionMaster()->MoveSplinePath(1, false, false, 0.f, false, false); // events.ScheduleEvent(EVENT_TALK_NOT_SEEN, me->GetSplineDuration() + 250); // break; // case EVENT_TALK_NOT_SEEN: // Talk(TOBIAS_SAY_NOT_SEEN, me->ToTempSummon()->GetSummonerGUID(), true); // events.ScheduleEvent(EVENT_JUMP_1, 2500); // break; // case EVENT_JUMP_1: // me->GetMotionMaster()->MoveJump(-1599.64f, 1607.60f, 21.5590f, 20.f, 15.f); // events.ScheduleEvent(EVENT_RESUME_HUNT_1, me->GetSplineDuration() + 2500); // break; // case EVENT_RESUME_HUNT_1: // me->GetMotionMaster()->MoveSplinePath(2, false, false, 0.f, false, false); // events.ScheduleEvent(EVENT_JUMP_2, me->GetSplineDuration()); // break; // case EVENT_JUMP_2: // me->GetMotionMaster()->MoveJump(-1582.17f, 1626.81f, 20.5150f, 15.f, 15.f); // events.ScheduleEvent(EVENT_RESUME_HUNT_2, me->GetSplineDuration() + 1000); // break; // case EVENT_RESUME_HUNT_2: // me->GetMotionMaster()->MoveSplinePath(3, false, false, 0.f, false, false); // events.ScheduleEvent(EVENT_GENERAL_SAY, me->GetSplineDuration()); // break; // case EVENT_GENERAL_SAY: // { // if (Creature* general = me->FindNearestCreature(NPC_FORSAKEN_GENERAL, 20.0f)) // if (general->IsAIEnabled) // general->AI()->Talk(GENERAL_SYLVANAS, me->ToTempSummon()->GetSummonerGUID(), true); // // events.ScheduleEvent(EVENT_TALK_DID_YOU_HEAR, 8000); // } // break; // case EVENT_TALK_DID_YOU_HEAR: // Talk(TOBIAS_SAY_DID_YOU_HEAR, me->ToTempSummon()->GetSummonerGUID(), true); // me->GetMotionMaster()->MoveSplinePath(4, false, false, 0.f, false, false); // events.ScheduleEvent(EVENT_JUMP_IN_WATER, me->GetSplineDuration()); // break; // case EVENT_JUMP_IN_WATER: // Talk(TOBIAS_SAY_HIDE, me->ToTempSummon()->GetSummonerGUID(), true); // me->GetMotionMaster()->MoveJump(-1617.92f, 1532.31f, 23.6932f, 15.f, 10.f); // events.ScheduleEvent(EVENT_FINISH_HUNT, me->GetSplineDuration()); // break; // case EVENT_FINISH_HUNT: // me->SetSwim(true); // me->SetDisableGravity(true); // me->SetUInt32Value(UNIT_FIELD_BYTES_1, 0x3000000); // me->GetMotionMaster()->MoveSplinePath(5, false, false, 0.f, false, false); // events.ScheduleEvent(EVENT_SUMMON_SYLVANAS, me->GetSplineDuration() + 500); // break; // case EVENT_SUMMON_SYLVANAS: // { // if (Unit* summoner = me->ToTempSummon()->GetSummoner()) // { // if (!summoner->HasUnitMovementFlag(MOVEMENTFLAG_SWIMMING)) // { // events.ScheduleEvent(EVENT_SUMMON_SYLVANAS, 1000); // return; // } // } // else // me->DespawnOrUnsummon(); // // if (Creature* sylvanas = me->SummonCreature(NPC_LADY_SYLVANAS, -1566.409f, 1554.511f, 29.32553f, 3.94f, TEMPSUMMON_TIMED_DESPAWN, 300000)) // { // sylvanasGUID = sylvanas->GetGUID(); // sylvanas->GetMotionMaster()->MoveSplinePath(1, false, true, 0.f, false, false); // events.ScheduleEvent(EVENT_SYLVANAS_ON_POISITON, sylvanas->GetSplineDuration() + 250); // } // // if (Creature* warhowl = me->SummonCreature(NPC_GENERAL_WARHOWL, -1564.498f, 1555.956f, 29.32091f, 3.94f, TEMPSUMMON_TIMED_DESPAWN, 300000)) // { // warhowlGUID = warhowl->GetGUID(); // warhowl->GetMotionMaster()->MoveSplinePath(1, false, true, 0.f, false, false); // } // // if (Creature* crenshaw = me->SummonCreature(NPC_HIGH_EXECUTOR_CRENSHAW, -1566.795f, 1555.3f, 29.36808f, 3.94f, TEMPSUMMON_TIMED_DESPAWN, 300000)) // { // crenshawGUID = crenshaw->GetGUID(); // crenshaw->GetMotionMaster()->MoveSplinePath(1, false, true, 0.f, false, false); // } // // events.ScheduleEvent(EVENT_CHECK_PLAYER_POSITION, 3500); // } // break; // case EVENT_CHECK_PLAYER_POSITION: // { // if (Unit* summoner = me->ToTempSummon()->GetSummoner()) // { // if (Player* player = summoner->ToPlayer()) // { // if (!player->HasUnitMovementFlag(MOVEMENTFLAG_SWIMMING)) // { // if (player->GetQuestStatus(QUEST_THE_HUNT_FOR_SYLVANAS) == QUEST_STATUS_INCOMPLETE) // player->FailQuest(QUEST_THE_HUNT_FOR_SYLVANAS); // // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // { // sylvanas->CastSpell(player, SPELL_SHOOT, false); // sylvanas->DespawnOrUnsummon(5000); // } // // if (Creature* warhowl = ObjectAccessor::GetCreature(*me, warhowlGUID)) // warhowl->DespawnOrUnsummon(5000); // // if (Creature* crenshaw = ObjectAccessor::GetCreature(*me, crenshawGUID)) // crenshaw->DespawnOrUnsummon(5000); // // me->DespawnOrUnsummon(5000); // events.Reset(); // return; // } // } // } // // events.ScheduleEvent(EVENT_CHECK_PLAYER_POSITION, 250); // } // break; // case EVENT_SYLVANAS_ON_POISITON: // { // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // sylvanas->SetFacingTo(0.8028514f); // // events.ScheduleEvent(EVENT_WARHOWL_TALK_LOSING, 1500); // } // break; // case EVENT_WARHOWL_TALK_LOSING: // { // if (Creature* warhowl = ObjectAccessor::GetCreature(*me, warhowlGUID)) // if (warhowl->IsAIEnabled) // warhowl->AI()->Talk(WARHOWL_SAY_LOSING, me->ToTempSummon()->GetSummonerGUID(), true); // // events.ScheduleEvent(EVENT_SYLVANAS_TALK_ASSURE, 8000); // } // break; // case EVENT_SYLVANAS_TALK_ASSURE: // { // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // if (sylvanas->IsAIEnabled) // sylvanas->AI()->Talk(SYLVANAS_SAY_ASSURE, me->ToTempSummon()->GetSummonerGUID(), true); // // events.ScheduleEvent(EVENT_WARHOWL_TALK_PLAGUE, 6000); // } // break; // case EVENT_WARHOWL_TALK_PLAGUE: // { // if (Creature* warhowl = ObjectAccessor::GetCreature(*me, warhowlGUID)) // if (warhowl->IsAIEnabled) // warhowl->AI()->Talk(WARHOWL_SAY_PLAGUE, me->ToTempSummon()->GetSummonerGUID(), true); // // events.ScheduleEvent(EVENT_SYLVANAS_TALK_TONE, 10000); // } // break; // case EVENT_SYLVANAS_TALK_TONE: // { // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // if (sylvanas->IsAIEnabled) // sylvanas->AI()->Talk(SYLVANAS_SAY_TONE, me->ToTempSummon()->GetSummonerGUID(), true); // // events.ScheduleEvent(EVENT_WARHOWL_TALK_GOOD_BY, 12000); // } // break; // case EVENT_WARHOWL_TALK_GOOD_BY: // { // if (Creature* warhowl = ObjectAccessor::GetCreature(*me, warhowlGUID)) // if (warhowl->IsAIEnabled) // warhowl->AI()->Talk(WARHOWL_SAY_GOOD_BY, me->ToTempSummon()->GetSummonerGUID(), true); // // events.ScheduleEvent(EVENT_SYLVANAS_TALK_GO_WITH_HONOR, 12000); // } // break; // case EVENT_SYLVANAS_TALK_GO_WITH_HONOR: // { // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // if (sylvanas->IsAIEnabled) // sylvanas->AI()->Talk(SYLVANAS_SAY_GO_WITH_HONOR, me->ToTempSummon()->GetSummonerGUID(), true); // // if (Creature* warhowl = ObjectAccessor::GetCreature(*me, warhowlGUID)) // { // warhowl->GetMotionMaster()->MoveSplinePath(2, false, true, 0.f, false, false); // warhowl->DespawnOrUnsummon(10000); // } // // events.ScheduleEvent(EVENT_CRENSHAW_WALK_TO_SYLVANAS, 3500); // } // break; // case EVENT_CRENSHAW_WALK_TO_SYLVANAS: // { // if (Creature* crenshaw = ObjectAccessor::GetCreature(*me, crenshawGUID)) // { // crenshaw->GetMotionMaster()->MoveSplinePath(2, false, true, 0.f, false, false); // events.ScheduleEvent(EVENT_CRENSHAW_TALK_ORDER, 10250); // } // } // break; // case EVENT_CRENSHAW_TALK_ORDER: // { // if (Creature* crenshaw = ObjectAccessor::GetCreature(*me, crenshawGUID)) // if (crenshaw->IsAIEnabled) // crenshaw->AI()->Talk(CRENSHAW_SAY_ORDER, me->ToTempSummon()->GetSummonerGUID(), true); // // events.ScheduleEvent(EVENT_SYLVANAS_TALK_WHAT_QUESTION, 9000); // } // break; // case EVENT_SYLVANAS_TALK_WHAT_QUESTION: // { // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // if (sylvanas->IsAIEnabled) // sylvanas->AI()->Talk(SYLVANAS_SAY_WHAT_QUESTION, me->ToTempSummon()->GetSummonerGUID(), true); // // events.ScheduleEvent(EVENT_CRENSHAW_TALK_AS_YOU_WISH, 12000); // } // break; // case EVENT_CRENSHAW_TALK_AS_YOU_WISH: // { // if (Creature* crenshaw = ObjectAccessor::GetCreature(*me, crenshawGUID)) // if (crenshaw->IsAIEnabled) // crenshaw->AI()->Talk(CRENSHAW_AS_YOU_WISH, me->ToTempSummon()->GetSummonerGUID(), true); // // if (Creature* sylvanas = ObjectAccessor::GetCreature(*me, sylvanasGUID)) // { // sylvanas->GetMotionMaster()->MoveSplinePath(2, false, true, 0.f, false, false); // sylvanas->DespawnOrUnsummon(20000); // } // // if (Unit* summoner = me->ToTempSummon()->GetSummoner()) // if (Player* player = summoner->ToPlayer()) // player->CompleteQuest(QUEST_THE_HUNT_FOR_SYLVANAS); // // events.ScheduleEvent(EVENT_CRENSHAW_WALK_AWAY, 7000); // } // break; // case EVENT_CRENSHAW_WALK_AWAY: // { // if (Creature* crenshaw = ObjectAccessor::GetCreature(*me, crenshawGUID)) // { // crenshaw->GetMotionMaster()->MoveSplinePath(3, false, true, 0.f, false, false); // crenshaw->DespawnOrUnsummon(20000); // } // // me->DespawnOrUnsummon(10000); // } // break; // } // } // } // }; //}; // Quest Slowing the Inevitable 24920 enum { ACTION_FLY_BACK = 1, }; class npc_captured_riding_bat : public CreatureScript { public: npc_captured_riding_bat() : CreatureScript("npc_captured_riding_bat") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { EVENT_START_RIDE = 1, EVENT_MOVE_CYCLE = 2, EVENT_FLY_BACK = 3, }; EventMap events; void InitializeAI() { me->SetCanFly(true); me->SetDisableGravity(true); me->setActive(true); } void isSummonedBy(Unit* summoner) { events.ScheduleEvent(EVENT_START_RIDE, 1000); } void DoAction(int32 const action) { if (action == ACTION_FLY_BACK) { me->StopMoving(); float x, y; me->GetNearPoint2D(x, y, 5.f, me->GetOrientation()); me->GetMotionMaster()->MovePoint(0, x, y, 165.f); events.Reset(); events.ScheduleEvent(EVENT_FLY_BACK, 5250); } } void UpdateAI(uint32 const diff) { events.Update(diff); float x, y; if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_START_RIDE: me->GetNearPoint2D(x, y, 5.f, me->GetOrientation()); me->GetMotionMaster()->MovePoint(1, x, y, 20.f); events.ScheduleEvent(EVENT_MOVE_CYCLE,5250); break; case EVENT_MOVE_CYCLE: me->GetNearPoint2D(x, y, 5.f, me->GetOrientation()); me->GetMotionMaster()->MovePoint(2, x, y, 20.f); events.ScheduleEvent(EVENT_MOVE_CYCLE, 5250); break; case EVENT_FLY_BACK: me->GetNearPoint2D(x, y, 5.f, me->GetOrientation()); me->GetMotionMaster()->MovePoint(3, x, y, 20.f); me->DespawnOrUnsummon(5250); break; } } } }; }; class spell_gilneas_bat_fly_back : public SpellScriptLoader { public: spell_gilneas_bat_fly_back() : SpellScriptLoader("spell_gilneas_bat_fly_back") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void ExtraEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); if (Creature* creature = GetHitCreature()) if (creature->IsAIEnabled) creature->GetAI()->DoAction(ACTION_FLY_BACK); } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ExtraEffect, EFFECT_0, SPELL_EFFECT_DUMMY); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; const float CatapultCheckPos[5][2]= { {-1274.92f, 1632.53f}, {-1260.25f, 1580.49f}, {-1256.74f, 1683.23f}, {-1285.08f, 1708.93f}, {-1291.34f, 1721.51f}, }; class npc_forsaken_catapult_sti : public CreatureScript { public: npc_forsaken_catapult_sti() : CreatureScript("npc_forsaken_catapult_sti") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { SPELL_PLAGUE_BARREL_LAUNCH = 71804, EVENT_CAST_BARREL = 1, }; EventMap events; void InitializeAI() { for (int i = 0; i < 5; ++i) { if (me->GetExactDist2dSq(CatapultCheckPos[i][0], CatapultCheckPos[i][1]) < 500.f) { me->setActive(true); events.ScheduleEvent(EVENT_CAST_BARREL, urand(2500, 7500)); return; } } } void UpdateAI(uint32 const diff) { events.Update(diff); if (events.ExecuteEvent() == EVENT_CAST_BARREL) { float x, y, z; me->GetNearPoint2D(x, y, frand(120.f, 140.f), me->GetOrientation()); z = me->GetBaseMap()->GetHeight(x, y, MAX_HEIGHT); me->CastSpell(x, y, z, SPELL_PLAGUE_BARREL_LAUNCH, false); events.ScheduleEvent(EVENT_CAST_BARREL, urand(2500, 7500)); } } }; }; // Quest Knee-Deep 24678 class npc_knee_deep_attacker : public CreatureScript { public: npc_knee_deep_attacker() : CreatureScript("npc_knee_deep_attacker") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } enum { SPELL_SWING_TORCH = 70631, EVENT_UNFEAR = 1, }; EventMap events; void SpellHit(Unit* caster, const SpellInfo* spell) { if (spell->Id == SPELL_SWING_TORCH) { EnterEvadeMode(); me->SetReactState(REACT_PASSIVE); events.RescheduleEvent(EVENT_UNFEAR, 7000); } } void EnterCombat(Unit* /*who*/) { me->setAttackTimer(BASE_ATTACK, 5000); } void UpdateAI(uint32 const diff) { events.Update(diff); if (events.ExecuteEvent() == EVENT_UNFEAR) me->SetReactState(REACT_AGGRESSIVE); if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; // Quest Patriarch's Blessing 24679 enum qPB { SPELL_FADE_TO_BLACK = 89404, SPELL_MIRROR_IMAGE = 45204, GREYMANE_SAY_QPB_1 = -1977147, GREYMANE_SAY_QPB_2 = -1977148, GREYMANE_SAY_QPB_3 = -1977149, LORNA_SAY_QPB = -1977150, CROWLEY_SAY_QPB = -1977151, GO_OFFERINGS = 202319, }; class npc_gilneas_funeral_camera : public CreatureScript { public: npc_gilneas_funeral_camera() : CreatureScript("npc_gilneas_funeral_camera") { } private: class TeleportEvent : public BasicEvent { public: TeleportEvent(Unit* unit) : _unit(unit) { } private: bool Execute(uint64 /*time*/, uint32 /*diff*/) { _unit->NearTeleportTo(-1724.116f, 1871.721f, 17.787f, 3.125f); return true; } Unit* _unit; }; CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl(creature); } struct creature_script_impl : public VehicleAI { creature_script_impl(Creature* creature) : VehicleAI(creature) { } enum { NPC_GILNEAS_FUNERAL_CAMERA = 51083, NPC_KING_GENN_GREYMANE = 50893, NPC_LORD_DARIUS_CROWLEY = 50902, NPC_LORNA_CROWLEY = 50881, NPC_CLONE = 51146, EVENT_START_CAMERA = 1, EVENT_GREYMANE_SAY_1 = 2, EVENT_GREYMANE_SAY_2 = 3, EVENT_LORNA_SAY = 4, EVENT_CROWLEY_SAY = 5, EVENT_GREYMANE_SAY_3 = 6, EVENT_DONE = 7, GREYMANE_SAY_1 = 1, GREYMANE_SAY_2 = 2, GREYMANE_SAY_3 = 3, LORNA_SAY = 1, CROWLEY_SAY = 1, }; EventMap events; uint64 greymaneGUID; uint64 lornaGUID; uint64 crowleyGUID; uint64 cloneGUID; void InitializeAI() {} void isSummonedBy(Unit* summoner) { me->SetVisible(true); me->SetPhaseMask(540672, true); events.ScheduleEvent(EVENT_START_CAMERA, 2000); } void JustSummoned(Creature* summoned) { summoned->SetVisible(true); switch (summoned->GetEntry()) { case NPC_CLONE: { if (Unit* summoner = me->ToTempSummon()->GetSummoner()) summoned->CastSpell(summoner, 93995, false); cloneGUID = summoned->GetGUID(); } break; case NPC_KING_GENN_GREYMANE: greymaneGUID = summoned->GetGUID(); break; case NPC_LORD_DARIUS_CROWLEY: crowleyGUID = summoned->GetGUID(); break; case NPC_LORNA_CROWLEY: lornaGUID = summoned->GetGUID(); break; } } void PassengerBoarded(Unit* who, int8 /*seatId*/, bool apply) { if (!apply) { events.Reset(); who->CastSpell(who, SPELL_FADE_TO_BLACK, false); who->RemoveAurasByType(SPELL_AURA_PHASE); who->CastSpell(who, SPELL_ZONE_SPECIFIC_14, false); who->m_Events.AddEvent(new TeleportEvent(who), who->m_Events.CalculateTime(250)); if (Player* player = who->ToPlayer()) player->SaveToDB(); if (Creature* greymane = ObjectAccessor::GetCreature(*me, greymaneGUID)) greymane->DespawnOrUnsummon(); if (Creature* crowley = ObjectAccessor::GetCreature(*me, crowleyGUID)) crowley->DespawnOrUnsummon(); if (Creature* lorna = ObjectAccessor::GetCreature(*me, lornaGUID)) lorna->DespawnOrUnsummon(); if (Creature* clone = ObjectAccessor::GetCreature(*me, cloneGUID)) clone->DespawnOrUnsummon(); me->ForcedDespawn(500); } } void UpdateAI(uint32 const diff) { events.Update(diff); if (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_START_CAMERA: me->CastSpell((Unit*)NULL, 94251, false); me->CastSpell((Unit*)NULL, 94253, false, NULL, NULL, me->GetGUID()); me->CastSpell((Unit*)NULL, 94255, false, NULL, NULL, me->GetGUID()); me->CastSpell((Unit*)NULL, 94257, false, NULL, NULL, me->GetGUID()); me->CastSpell((Unit*)NULL, 94247, false, NULL, NULL, me->GetGUID()); events.ScheduleEvent(EVENT_GREYMANE_SAY_1, 7000); break; case EVENT_GREYMANE_SAY_1: { if (Creature* greymane = ObjectAccessor::GetCreature(*me, greymaneGUID)) if (greymane->IsAIEnabled) greymane->AI()->Talk(GREYMANE_SAY_1, me->ToTempSummon()->GetSummonerGUID(), true); events.ScheduleEvent(EVENT_GREYMANE_SAY_2, 9000); } break; case EVENT_GREYMANE_SAY_2: { if (Creature* greymane = ObjectAccessor::GetCreature(*me, greymaneGUID)) if (greymane->IsAIEnabled) greymane->AI()->Talk(GREYMANE_SAY_2, me->ToTempSummon()->GetSummonerGUID(), true); events.ScheduleEvent(EVENT_LORNA_SAY, 7000); } break; case EVENT_LORNA_SAY: { if (Creature* lorna = ObjectAccessor::GetCreature(*me, lornaGUID)) if (lorna->IsAIEnabled) lorna->AI()->Talk(LORNA_SAY, me->ToTempSummon()->GetSummonerGUID(), true); events.ScheduleEvent(EVENT_CROWLEY_SAY, 9000); } break; case EVENT_CROWLEY_SAY: { if (Creature* crowley = ObjectAccessor::GetCreature(*me, crowleyGUID)) if (crowley->IsAIEnabled) crowley->AI()->Talk(CROWLEY_SAY, me->ToTempSummon()->GetSummonerGUID(), true); if (Creature* clone = ObjectAccessor::GetCreature(*me, cloneGUID)) clone->HandleEmoteCommand(EMOTE_ONESHOT_SALUTE); events.ScheduleEvent(EVENT_GREYMANE_SAY_3, 5000); } break; case EVENT_GREYMANE_SAY_3: { if (Creature* greymane = ObjectAccessor::GetCreature(*me, greymaneGUID)) if (greymane->IsAIEnabled) greymane->AI()->Talk(GREYMANE_SAY_3, me->ToTempSummon()->GetSummonerGUID(), true); events.ScheduleEvent(EVENT_DONE, 7000); } break; case EVENT_DONE: { if (Vehicle* vehicle = me->GetVehicleKit()) vehicle->RemoveAllPassengers(); } break; } } } }; }; class spell_place_blessed_offerings : public SpellScriptLoader { public: spell_place_blessed_offerings() : SpellScriptLoader("spell_place_blessed_offerings") { } private: class spell_place_blessed_offerings_SpellScript : public SpellScript { PrepareSpellScript(spell_place_blessed_offerings_SpellScript) void SummonOfferings(SpellEffIndex effIndex) { enum { SPELL_SUMMON_FUNERAL_EVENT_CAMERA = 94244, }; if (Unit* caster = GetCaster()) caster->CastSpell(caster, SPELL_SUMMON_FUNERAL_EVENT_CAMERA, true); } void Register() { OnEffectLaunch += SpellEffectFn(spell_place_blessed_offerings_SpellScript::SummonOfferings, EFFECT_0, SPELL_EFFECT_TRANS_DOOR); } }; SpellScript *GetSpellScript() const { return new spell_place_blessed_offerings_SpellScript(); } }; class spell_reverse_cast_mirror_image : public SpellScriptLoader { public: spell_reverse_cast_mirror_image() : SpellScriptLoader("spell_reverse_cast_mirror_image") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void ScriptEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); Unit* caster = GetCaster(); Unit* target = GetHitUnit(); if (!(caster && target)) return; target->CastSpell(caster, GetSpellInfo()->Effects[effIndex].BasePoints, false); } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; class spell_gilneas_mirror_image : public SpellScriptLoader { public: spell_gilneas_mirror_image() : SpellScriptLoader("spell_gilneas_mirror_image") { } private: class spell_script_impl : public SpellScript { PrepareSpellScript(spell_script_impl) void ScriptEffect(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); Unit* caster = GetCaster(); Unit* target = GetHitUnit(); if (!(caster && target)) return; target->CastSpell(caster, GetSpellInfo()->Effects[effIndex].BasePoints, false); } void Register() { OnEffectHitTarget += SpellEffectFn(spell_script_impl::ScriptEffect, EFFECT_1, SPELL_EFFECT_SCRIPT_EFFECT); OnEffectHitTarget += SpellEffectFn(spell_script_impl::ScriptEffect, EFFECT_2, SPELL_EFFECT_SCRIPT_EFFECT); } }; SpellScript *GetSpellScript() const { return new spell_script_impl(); } }; class npc_gilneas_towering_ancient : public CreatureScript { public: npc_gilneas_towering_ancient() : CreatureScript("npc_gilneas_towering_ancient") { } private: CreatureAI* GetAI(Creature* creature) const { return new creature_script_impl (creature); } struct creature_script_impl : public ScriptedAI { creature_script_impl(Creature* creature) : ScriptedAI(creature) { } void InitializeAI() { SetCombatMovement(false); } void DamageTaken(Unit* attacker, uint32 &damage) { if (attacker->GetTypeId() == TYPEID_UNIT && !attacker->isPet()) { if (me->GetHealth() < me->GetMaxHealth() || me->GetHealth() <= damage) { damage = 0; me->getThreatManager().addThreat(attacker, 0.f); } } } void UpdateAI(uint32 const diff) { if (!UpdateVictim()) return; DoMeleeAttackIfReady(); } }; }; class npc_admiral_nightwind : public CreatureScript { public: npc_admiral_nightwind() : CreatureScript("npc_admiral_nightwind") { } private: bool OnQuestReward(Player* player, Creature* /*creature*/, Quest const* quest, uint32 /*opt*/) { if (quest->GetQuestId() == 14434) { player->RemoveAurasByType(SPELL_AURA_PHASE); player->RemoveAurasByType(SPELL_AURA_MOD_INVISIBILITY_DETECT); WorldLocation loc; loc.m_mapId = 1; loc.m_positionX = 8181.06f; loc.m_positionY = 1001.92f; loc.m_positionZ = 7.0589f; player->TeleportTo(loc); player->SetHomebind(loc, 702); player->SaveToDB(); } return false; } }; void AddSC_gilneas() { new npc_jack_derrington(); new npc_gilneas_tremors_credit(); new npc_gilnean_crow(); new npc_prince_liam_greymane_phase_1(); new npc_gilneas_city_guard_gate(); new npc_panicked_citizen_gate(); new npc_lieutenant_walden(); new npc_gilneas_worgen(); new npc_gilneas_city_guard("npc_gilneas_city_guard_default", SPELL_GUARD_SHOOT_DEFAULT); new npc_gilneas_city_guard("npc_gilneas_city_guard_deadly", SPELL_GUARD_SHOOT_DEADLY); new npc_prince_liam_greymane_phase_2(); new npc_qems_citizen(); new npc_qems_worgen(); new npc_gilneas_class_trainer("npc_huntsman_blake", QUEST_STEADY_SHOT); new npc_gilneas_class_trainer("npc_vitus_darkwalker", QUEST_IMMOLATE); new npc_gilneas_class_trainer("npc_loren_the_fence", QUEST_EVISCERATE); new npc_gilneas_class_trainer("npc_sister_almyra", QUEST_FLASH_HEAL); new npc_gilneas_class_trainer("npc_celestine_of_the_harves", QUEST_A_REJUVENATING_TOUCH); new npc_myriam_spellwaker(); new npc_sergeant_cleese(); new npc_gilneas_worgen_class_quest(); new npc_wounded_guard_class_quest(); new npc_king_genn_greymane_phase_2(); new npc_worgen_attacker_right(); new npc_worgen_attacker_left(); new npc_lord_darius_crowley(); new npc_josiah_avery_worgen(); new npc_josiah_event_trigger(); new npc_josiah_avery_human(); new npc_lorna_crowley_phase_3(); new npc_bloodfang_lurker(); new npc_king_genn_greymane_phase_3(); new npc_vehicle_genn_horse(); new npc_saved_aranas(); new npc_lord_godfrey_phase_3(); new npc_cannon_camera(); new npc_gilneas_city_guard_phase_4(); new npc_king_genn_greymane_phase_4(); new npc_crowley_horse_first_round(); new npc_crowley_horse_second_round(); new npc_bloodfang_stalker(); new npc_rebel_cannon_phase_4(); new npc_lord_darius_crowley_phase_5(); new npc_krennan_aranas_last_stand(); new npc_king_genn_greymane_last_stand(); new npc_slain_watchman(); new npc_gwen_armstead_phase_6(); new npc_forsaken_assassin(); new npc_horrid_abomination(); new npc_prince_liam_greymane_phase_7(); new npc_gilneas_children_phase_7("npc_james", SPELL_SAVE_JAMES, PLAYER_SAY_JAMES); new npc_gilneas_children_phase_7("npc_ashley", SPELL_SAVE_ASHLEY, PLAYER_SAY_ASHLEY); new npc_gilneas_children_phase_7("npc_cynthia", SPELL_SAVE_CYNTHIA, PLAYER_SAY_CYNTHIA); new npc_forsaken_invader(); new npc_forsaken_catapult_phase_7(); new npc_gilneas_forsaken_captain(); new npc_dark_ranger_thyala(); new npc_attack_mastiff(); new npc_lord_godfrey_phase_7(); new npc_drowning_watchman(); new npc_duskhaven_watchman_rescuer_phase_8(); new npc_mountain_horse_vehicle(); new npc_mountain_horse_follower(); new npc_wahl(); new npc_lucius_the_cruel(); new npc_chance_the_cat(); new npc_hayward_brother(); new npc_swift_mountain_horse(); new npc_gwen_armstead_phase_8(); new npc_king_genn_greymane_c3() ; new npc_stagecoach_harness_summoner(); new npc_stagecoach_carriage_summoner(); new npc_stagecoach_harness_escort(); new npc_stagecoach_carriage_escort(); new npc_crash_survivor(); new npc_swamp_crocolisk(); new npc_prince_liam_greymane_qiao(); new npc_koroth_the_hillbreaker_friend(); //new npc_captain_asther_qiao(); new npc_koroth_the_hillbreaker(); new npc_dark_scout(); new npc_lord_darius_crowley_qaod(); new npc_tobias_mistmantle_qaod(); new npc_taldoren_tracker(); new npc_tobias_mistmantle_qtbwo(); new npc_lorna_crowley_qnhnb(); new npc_king_genn_greymane_qnhnb(); new npc_krennan_aranas_qbatr(); new npc_king_genn_greymane_qbatr(); new npc_lord_godfrey_qbatr(); new npc_gilneas_betrayer_lord("npc_gilneas_betrayer_lord_walden",SPELL_INVISIBILITY_DETECTION_2); new npc_gilneas_betrayer_lord("npc_gilneas_betrayer_baron_ashbury",SPELL_INVISIBILITY_DETECTION_3); new npc_lord_hewell(); new npc_stout_mountain_horse(); new npc_lorna_crowley_livery_outpost(); new npc_krennan_aranas_tbfgc(); //new npc_prince_liam_greymane_tbfgc(); //new npc_myriam_spellwaker_tbfgc(); //new npc_sister_almyra_tbfgc(); new npc_gilnean_militia_tbfgc(); new npc_dark_ranger_elite_tbfgc(); //new npc_lorna_crowley_tbfgc(); new npc_emberstone_cannon_tbfgc(); new npc_gilneas_forsaken_crossbowman_tbfgc(); //new npc_lord_darius_crowley_tbfgc(); new npc_worgen_warrior_tbfgc(); new npc_gorerot_tbfgc(); new npc_damaged_catapult_tbfgc(); //new npc_king_genn_greymane_tbfgc(); new npc_lady_sylvanas_windrunner_tbfgc(); new npc_lorna_crowley_qthfs(); //new npc_tobias_mistmantle_qthfs(); new npc_captured_riding_bat(); new npc_forsaken_catapult_sti(); new npc_knee_deep_attacker(); new npc_gilneas_funeral_camera(); new npc_gilneas_towering_ancient(); new npc_admiral_nightwind(); new go_crate_of_mandrake_essence(); new go_koroth_banner(); new at_losing_your_tail(); new spell_gilneas_knocking(); new spell_gilneas_prison_periodic_dummy(); new spell_force_cast_summon_josiah(); new spell_quest_dismiss_plaguehound(); new spell_forcecast_cannon_camera(); new spell_forcecast_summon_crowleys_horse(); new spell_worgen_intro_completion(); new spell_curse_of_the_worgen_invis(); new spell_gilneas_horrid_abomination_explosion(); new spell_gilneas_forsaken_catapult_launch(); new spell_call_attack_mastiffs(); new spell_gilneas_cataclysm_phase_7(); new spell_round_up_horse(); new spell_belysras_talisman(); new spell_horn_of_taldoren(); new spell_retreat_trackers(); new spell_gilneas_pings_crowley("spell_greymane_lorna_crowley", CROWLEY_YELL_LORNA); new spell_gilneas_pings_crowley("spell_greymane_godfrey_crowley", CROWLEY_YELL_FROG); new spell_gilneas_pings_crowley("spell_greymane_pings_crowley", CROWLEY_SAY_YES_GENN); new spell_gilneas_rescue_enslaved_villager(); new spell_gilneas_bat_fly_back(); new spell_place_blessed_offerings(); new spell_reverse_cast_mirror_image(); new spell_gilneas_mirror_image(); }
[ "cooler19860212@yahoo.com" ]
cooler19860212@yahoo.com
5323c5713eab6c7ed2c792d2f4d1f5f065cc37e3
8f7516171db1ff8292dda200ee712d714c4ad1ca
/제2회가톨릭대학교 프로그래밍 경진대회/20152 game addiction.cpp
1a3d971496702ead40f1b9e4a715ee57b82e380d
[]
no_license
wowns9270/code_up
6b433a726f9cc20d43a0ac015c2259062c9016b1
aa6fe4e56f0a02f1683095cf06be4a3938598df7
refs/heads/master
2023-05-08T23:14:19.253141
2021-05-31T04:38:26
2021-05-31T04:38:26
213,026,197
0
0
null
null
null
null
UTF-8
C++
false
false
388
cpp
#include<bits/stdc++.h> using namespace std; long long dp[31][31]; int main() { dp[0][0] = 1; for (int i = 1; i <= 30; i++) { for (int j = 0; j <= i; j++) { if (j == 0) dp[i][j] = 1; else if (i == j) dp[i][j] = dp[i][j - 1]; else { dp[i][j] = dp[i - 1][j] + dp[i][j - 1]; } } } int a, b; cin >> a >> b; int k = abs(a - b); cout << dp[k][k]; return 0; }
[ "wowns9270@gmail.com" ]
wowns9270@gmail.com
88c8277c7d4b32d9811669ea2a8a6ad8122f9fa8
fd20df84056096acef94c5ee6256dde00d1817d8
/skeletons/constr_SEQUENCE_OF.hpp
3da8ba941c03bf3ed3f762a99d24e2e76f0ee2e2
[ "BSD-2-Clause" ]
permissive
sidsag1/asn1cpp
6ff659223c4ef73123815ba1e4cf5979cd4676a1
da215c5d180cbcc9074f90cf397c45de6c843c69
refs/heads/master
2023-03-15T17:46:42.134590
2016-01-07T19:21:39
2016-01-07T19:21:39
null
0
0
null
null
null
null
UTF-8
C++
false
false
758
hpp
/* * Copyright (c) 2014-2016 Dmitriy Chugunov <chugunovdima@gmail.com>. All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */ #ifndef _CONSTR_SEQUENCE_OF_HPP_ #define _CONSTR_SEQUENCE_OF_HPP_ #include <asn_application.hpp> #include <constr_SET_OF.hpp> /* Implemented using SET OF */ /* * A set specialized functions dealing with the SEQUENCE OF type. * Generally implemented using SET OF. */ #define SEQUENCE_OF_print SET_OF_print #define SEQUENCE_OF_constraint SET_OF_constraint #define SEQUENCE_OF_decode_ber SET_OF_decode_ber #define SEQUENCE_OF_decode_xer SET_OF_decode_xer #define SEQUENCE_OF_decode_uper SET_OF_decode_uper der_type_encoder_f SEQUENCE_OF_encode_der; #endif /* _CONSTR_SET_OF_HPP_ */
[ "d.chugunov11@mail.ru" ]
d.chugunov11@mail.ru
4fe37c7b90e87892ecfd853837522f05c6deb27b
6f874ccb136d411c8ec7f4faf806a108ffc76837
/code/Windows-classic-samples/Samples/WebServices/FileRepService/cpp/CFileRepClient.cpp
cc9089f9aec7ae4909f2c138de318faf6678af44
[ "MIT" ]
permissive
JetAr/ZDoc
c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435
e81a3adc354ec33345e9a3303f381dcb1b02c19d
refs/heads/master
2022-07-26T23:06:12.021611
2021-07-11T13:45:57
2021-07-11T13:45:57
33,112,803
8
8
null
null
null
null
UTF-8
C++
false
false
23,498
cpp
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (c) Microsoft Corporation. All rights reserved #include "Service.h" #include "process.h" #include "string.h" #include "strsafe.h" #include "stdlib.h" #include "intsafe.h" #include "assert.h" #include "wtypes.h" // This file contains the client-service specific code. // The client version of ProcessMessage. This is the entry point for the application-specific code. HRESULT CFileRepClient::ProcessMessage( _In_ CRequest* request, _In_ const WS_XML_STRING* receivedAction) { PrintVerbose(L"Entering CFileRepClient::ProcessMessage"); HRESULT hr = S_OK; WS_CHANNEL* channel = request->GetChannel(); WS_MESSAGE* requestMessage = request->GetRequestMessage(); WS_ERROR* error = request->GetError(); // Make sure action is what we expect if (WsXmlStringEquals(receivedAction, &faultAction, error) == S_OK) { PrintInfo(L"Received fault message. Aborting."); hr = E_FAIL; EXIT_FUNCTION } // Make sure action is what we expect if (WsXmlStringEquals(receivedAction, &userRequestAction, error) != S_OK) { PrintInfo(L"Received unexpected message"); hr = WS_E_ENDPOINT_ACTION_NOT_SUPPORTED; EXIT_FUNCTION } // Get the heap of the message WS_HEAP* heap; IfFailedExit(WsGetMessageProperty(requestMessage, WS_MESSAGE_PROPERTY_HEAP, &heap, sizeof(heap), error)); // Read user request UserRequest* userRequest = NULL; IfFailedExit(WsReadBody(requestMessage, &userRequestElement, WS_READ_REQUIRED_POINTER, heap, &userRequest, sizeof(userRequest), error)); // Read end of message IfFailedExit(WsReadMessageEnd(channel, requestMessage, NULL, error)); // Sanity check if (::wcslen(userRequest->sourcePath) >= MAX_PATH || ::wcslen(userRequest->destinationPath) >= MAX_PATH || ::wcslen(userRequest->serverUri) >= MAX_PATH) { PrintInfo(L"Invalid request"); hr = request->SendFault(INVALID_REQUEST); } else { hr = ProcessUserRequest(request, userRequest->sourcePath, userRequest->destinationPath, userRequest->serverUri, userRequest->serverProtocol, userRequest->securityMode, userRequest->messageEncoding, userRequest->requestType); } EXIT // The caller handles the failures. So just return the error; PrintVerbose(L"Leaving CCFileRepClient::ProcessMessage"); return hr; } // The message exchange pattern when transfering a file is as follows: // - We get a request message from the command line tool // - If the request is asynchronous send back a confirmation immediately // - We send a request for file information to the server service. A discovery request is denoted by a chunk position of -1. // - We get the file information // - We request the individual chunks sequentially one by one from the server. // Chunks are identified by their position within the file. This could be optimized by asynchronously requesting // multiple chunks. However, that is beyond the scope of this version of the sample. // - Repeat until the file transfer is completed or a failure occured // - If the request is synchronous send success or failure message to the command line tool. // For the individual data structures associated with each message, see common.h. HRESULT CFileRepClient::ProcessUserRequest( _In_ CRequest* request, _In_z_ const LPWSTR sourcePath, _In_z_ const LPWSTR destinationPath, _In_z_ const LPWSTR serverUri, _In_ TRANSPORT_MODE transportMode, _In_ SECURITY_MODE securityMode, _In_ MESSAGE_ENCODING encoding, _In_ REQUEST_TYPE requestType) { PrintVerbose(L"Entering CFileRepClient::ProcessUserRequest"); HRESULT hr = S_OK; WS_ERROR* error = request->GetError(); WS_CHANNEL* serverChannel = NULL; WS_MESSAGE* serverRequestMessage = NULL; WS_MESSAGE* serverReplyMessage = NULL; WS_HEAP* heap = NULL; HANDLE file = INVALID_HANDLE_VALUE; LPWSTR statusMessage = NULL; LONGLONG fileLength = 0; long chunkSize = -1; LONGLONG transferTime = 0; LARGE_INTEGER size; size.QuadPart = 0; WS_MESSAGE_PROPERTY heapProperty; WS_ENDPOINT_ADDRESS address = {}; if (ASYNC_REQUEST == requestType) { // In case of an async request, acknowlege request before doing any actual work. IfFailedExit(SendUserResponse(request, TRANSFER_ASYNC)); PrintInfo(L"Asynchronous request. Sending asynchronous acknowledgement."); } heapProperty = CFileRepClient::CreateHeapProperty(); IfFailedExit(CreateServerChannel(encoding, transportMode, securityMode, error, &serverChannel)); IfFailedExit(WsCreateMessageForChannel(serverChannel, NULL, 0, &serverRequestMessage, error)); IfFailedExit(WsCreateMessageForChannel(serverChannel, &heapProperty, 1, &serverReplyMessage, error)); // Initialize address of service address.url.chars = serverUri; IfFailedExit(SizeTToULong(::wcslen(address.url.chars),&address.url.length)); // Open channel to address IfFailedExit(WsOpenChannel(serverChannel, &address, NULL, error)); // Initialize file request FileRequest fileRequest; fileRequest.filePosition = DISCOVERY_REQUEST; fileRequest.fileName = sourcePath; // We ensured that those are not too long earlier SIZE_T strLen = ::wcslen(fileRequest.fileName) + address.url.length + 100; statusMessage = (LPWSTR)HeapAlloc(GetProcessHeap(), 0, strLen * sizeof (WCHAR)); IfNullExit(statusMessage); // We do not care about the failure value since in the worst case it truncates, which we // still would want to display since its better than nothing. StringCchPrintfW(statusMessage, strLen, L"Requesting file %s from server %s.", fileRequest.fileName, address.url.chars); statusMessage[strLen - 1] = L'\0'; // Terminate string in case StringCchPrintfW fails. PrintInfo(statusMessage); IfFailedExit(WsCreateHeap(65536, 0, NULL, 0, &heap, NULL)); WS_MESSAGE_DESCRIPTION fileRequestMessageDescription; fileRequestMessageDescription.action = &fileRequestAction; fileRequestMessageDescription.bodyElementDescription = &fileRequestElement; WS_MESSAGE_DESCRIPTION fileInfoMessageDescription; fileInfoMessageDescription.action = &fileInfoAction; fileInfoMessageDescription.bodyElementDescription = &fileInfoElement; // Send discovery request and get file info FileInfo* fileInfo; IfFailedExit(WsRequestReply( serverChannel, serverRequestMessage, &fileRequestMessageDescription, WS_WRITE_REQUIRED_VALUE, &fileRequest, sizeof(fileRequest), serverReplyMessage, &fileInfoMessageDescription, WS_READ_REQUIRED_POINTER, heap, &fileInfo, sizeof(fileInfo), NULL, error)); fileLength = fileInfo->fileLength; chunkSize = fileInfo->chunkSize; size.QuadPart = fileLength; if (-1 == fileLength || 0 == chunkSize) { PrintInfo(L"File does not exist on server."); if (SYNC_REQUEST == requestType) { hr = request->SendFault(FILE_DOES_NOT_EXIST); } EXIT_FUNCTION } // For simplicity reasons we do not read alternate data streams. file = CreateFileW(destinationPath, GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (INVALID_HANDLE_VALUE == file) { PrintInfo(L"Failed to create file"); if (SYNC_REQUEST == requestType) { hr = request->SendFault(FAILED_TO_CREATE_FILE); } EXIT_FUNCTION } IfFailedExit(ExtendFile(file, fileLength)); transferTime = GetTickCount64(); // This loop could be further optimized by asychronously requesting the individual chunks in // parallel and then assembling them later. We chose to draw the line regarding perf optimizations // for this version of the code here to avoid the complexity of doing asynchronous file assembly. fileRequest.filePosition = 0; while (fileRequest.filePosition < fileLength) { IfFailedExit(ProcessChunk(chunkSize, file, fileLength, serverRequestMessage, serverReplyMessage, serverChannel, error, &fileRequest)); } transferTime = GetTickCount64() - transferTime; if (SYNC_REQUEST == requestType) { hr = SendUserResponse(request, TRANSFER_SUCCESS); } WCHAR perf[255]; // This assumes that we did not use more than 4 billion chunks, a pretty reasonable assumption. DWORD totalChunks = (DWORD)(fileLength/chunkSize) + 1; // Again failures are ignored since it is just a status message. StringCchPrintfW(perf, CountOf(perf), L"Transferred %I64d bytes via %u chunks in %I64d milliseconds.", size.QuadPart, totalChunks, transferTime); // StringCchPrintf ensures that the buffer is nullterminated even if the function failed. PrintInfo(perf); // We fall through here even in the success case due to the cleanup that has to be performed in both cases. EXIT //Has to come first so file gets properly deleted on error. if (INVALID_HANDLE_VALUE != file) { if (!CloseHandle(file)) { PrintInfo(L"CFileRepClient::ProcessUserRequest - CloseHandle failed. Potential handle leak."); } } if (NULL != serverRequestMessage) { WsFreeMessage(serverRequestMessage); } if (NULL != serverReplyMessage) { WsFreeMessage(serverReplyMessage); } CleanupChannel(serverChannel); if (NULL != statusMessage) { HeapFree(GetProcessHeap(), 0, statusMessage); } if (NULL != heap) { WsFreeHeap(heap); } if (FAILED(hr)) { DeleteFileW(destinationPath); PrintError(L"CFileRepClient::ProcessUserRequest", true); PrintError(hr, error, true); } PrintVerbose(L"Leaving CFileRepClient::ProcessUserRequest"); return hr; } HRESULT CFileRepClient::CreateServerChannel( _In_ MESSAGE_ENCODING serverEncoding, _In_ TRANSPORT_MODE serverTransportMode, _In_ SECURITY_MODE serverSecurityMode, _In_opt_ WS_ERROR* error, _Outptr_ WS_CHANNEL** channel) { PrintVerbose(L"Entering CFileRepClient::CreateServerChannel"); WS_SSL_TRANSPORT_SECURITY_BINDING transportSecurityBinding = {}; WS_SECURITY_DESCRIPTION securityDescription = {}; WS_SECURITY_DESCRIPTION* pSecurityDescription = NULL; WS_SECURITY_BINDING* securityBindings[1]; HRESULT hr = S_OK; WS_CHANNEL_PROPERTY channelProperty[2]; // The default maximum message size is 64k. This is not enough as the server may chose to send // very large messages to maximize throughput. ULONG maxMessageSize = MAXMESSAGESIZE; channelProperty[0].id = WS_CHANNEL_PROPERTY_MAX_BUFFERED_MESSAGE_SIZE; channelProperty[0].value = &maxMessageSize; channelProperty[0].valueSize = sizeof(maxMessageSize); WS_ENCODING messageEncoding; if (TEXT_ENCODING == serverEncoding) { messageEncoding = WS_ENCODING_XML_UTF8; } else if (BINARY_ENCODING == serverEncoding) { messageEncoding = WS_ENCODING_XML_BINARY_SESSION_1; } else { messageEncoding = WS_ENCODING_XML_MTOM_UTF8; } channelProperty[1].id = WS_CHANNEL_PROPERTY_ENCODING; channelProperty[1].value = &messageEncoding; channelProperty[1].valueSize = sizeof(messageEncoding); ULONG propCount = 1; if (DEFAULT_ENCODING != serverEncoding) { propCount++; } if (SSL_SECURITY == serverSecurityMode) { // Initialize a security description for SSL transportSecurityBinding.binding.bindingType = WS_SSL_TRANSPORT_SECURITY_BINDING_TYPE; securityBindings[0] = &transportSecurityBinding.binding; securityDescription.securityBindings = securityBindings; securityDescription.securityBindingCount = WsCountOf(securityBindings); pSecurityDescription = &securityDescription; } // Create a channel if (TCP_TRANSPORT == serverTransportMode) { hr = WsCreateChannel(WS_CHANNEL_TYPE_DUPLEX_SESSION, WS_TCP_CHANNEL_BINDING, channelProperty, propCount, pSecurityDescription, channel, error); } else // HTTP { hr = WsCreateChannel(WS_CHANNEL_TYPE_REQUEST, WS_HTTP_CHANNEL_BINDING, channelProperty, propCount, pSecurityDescription, channel, error); } PrintVerbose(L"Leaving CFileRepClient::CreateServerChannel"); return hr; } // Extend the file to the total size needed for performance reasons. // For a synchronous write such as this this is not a big deal, but if this code // would be made async then it would be. And even now this is more performant. HRESULT CFileRepClient::ExtendFile( _In_ HANDLE file, _In_ LONGLONG length) { LARGE_INTEGER size; size.QuadPart = length; if (!SetFilePointerEx(file, size, NULL, FILE_BEGIN)) { PrintError(L"Error extending file.", true); return HRESULT_FROM_WIN32(GetLastError()); } if (!SetEndOfFile(file)) { PrintError(L"Error extending file.", true); return HRESULT_FROM_WIN32(GetLastError()); } size.QuadPart = 0; if (!SetFilePointerEx(file, size, NULL, FILE_BEGIN)) { PrintError(L"Error resetting file.", true); return HRESULT_FROM_WIN32(GetLastError()); } return S_OK; } HRESULT CFileRepClient::ProcessChunk( _In_ long chunkSize, _In_ HANDLE file, _In_ LONGLONG fileLength, _In_ WS_MESSAGE* requestMessage, _In_ WS_MESSAGE* replyMessage, _In_ WS_CHANNEL* channel, _In_opt_ WS_ERROR* error, _In_ FileRequest* request) { PrintVerbose(L"Entering CFileRepClient::ProcessChunk"); LONGLONG pos = request->filePosition; LONGLONG chunkPosition = 0; long contentLength = 0; HRESULT hr = S_OK; IfFailedExit(WsResetMessage(requestMessage, error)); IfFailedExit(WsResetMessage(replyMessage, error)); WS_MESSAGE_DESCRIPTION fileRequestMessageDescription; fileRequestMessageDescription.action = &fileRequestAction; fileRequestMessageDescription.bodyElementDescription = &fileRequestElement; IfFailedExit(WsSendMessage( channel, requestMessage, &fileRequestMessageDescription, WS_WRITE_REQUIRED_VALUE, request, sizeof(*request), NULL, error)); // Receive start of message (headers). IfFailedExit(WsReadMessageStart(channel, replyMessage, NULL, error)); // Get action value. WS_XML_STRING* receivedAction = NULL; IfFailedExit(WsGetHeader( replyMessage, WS_ACTION_HEADER, WS_XML_STRING_TYPE, WS_READ_REQUIRED_POINTER, NULL, &receivedAction, sizeof(receivedAction), error)); // Make sure action is what we expect. if (WsXmlStringEquals(receivedAction, &fileReplyAction, error) != S_OK) { hr = WS_E_ENDPOINT_ACTION_NOT_SUPPORTED; PrintInfo(L"Received unexpected message.\n"); EXIT_FUNCTION } IfFailedExit(DeserializeAndWriteMessage(replyMessage, chunkSize, &chunkPosition, &contentLength, file)); // Read end of message. IfFailedExit(WsReadMessageEnd(channel, replyMessage, NULL, error)); if (contentLength != chunkSize && contentLength + pos != fileLength || pos != chunkPosition) { PrintError(L"File message was corrupted. Aborting transfer\n", true); hr = E_FAIL; } else { request->filePosition = pos + contentLength; } EXIT if (WS_E_INVALID_FORMAT == hr) { PrintInfo(L"Deserialization of the message failed."); } PrintVerbose(L"Leaving CFileRepClient::ProcessChunk"); return hr; } // It is more efficient to manually read this message instead of using the serializer since otherwise the // byte array would have to be copied around memory multiple times while here we can stream it directly into the file. // Since the message is simple this is relatively easy to do and makes the perf gain worth the extra effort. In general, // one should only go down to this level if the performance gain is significant. For most cases the serialization APIs // are the better choice and they also make future changes easier to implement. HRESULT CFileRepClient::DeserializeAndWriteMessage( _In_ WS_MESSAGE* message, _In_ long chunkSize, _Out_ LONGLONG* chunkPosition, _Out_ long* contentLength, _In_ HANDLE file) { PrintVerbose(L"Entering CFileServer::DeserializeAndWriteMessage"); WS_XML_READER* reader = NULL; HRESULT hr = S_OK; LPWSTR errorString = NULL; WS_HEAP* heap = NULL; // Create a description for the error text field that we read later. WS_ELEMENT_DESCRIPTION errorDescription = {&errorLocalName, &fileChunkNamespace, WS_WSZ_TYPE, NULL}; // To avoid using too much memory we read and write the message in chunks. long bytesToRead = FILE_CHUNK; if (bytesToRead > chunkSize) { bytesToRead = chunkSize; } BYTE* buf = NULL; ULONG length = 0; // We do not use WS_ERROR here since this function does not print extended error information. // The reason for that is that a failure here is likely due to a malformed message coming in, which // is probably a client issue and not an error condition for us. So the caller will print a simple status // message if this fails and call it good. IfFailedExit(WsGetMessageProperty(message, WS_MESSAGE_PROPERTY_BODY_READER, &reader, sizeof(reader), NULL)); // Read to FileChunk element IfFailedExit(WsReadToStartElement(reader, &fileChunkLocalName, &fileChunkNamespace, NULL, NULL)); // Read FileChunk start element IfFailedExit(WsReadStartElement(reader, NULL)); // The next four APIs read the chunk position element. There are helper APIs that can do this for you, // but they are more complex to use. For simple types such as integers, doing this manually is easiest. // For more complex type the serialization APIs should be used. // Read to chunkPosition element IfFailedExit(WsReadToStartElement(reader, &chunkPositionLocalName, &fileChunkNamespace, NULL, NULL)); // Read chunk position start element IfFailedExit(WsReadStartElement(reader, NULL)); // Read chunk position IfFailedExit(WsReadValue(reader, WS_INT64_VALUE_TYPE, chunkPosition, sizeof(*chunkPosition), NULL)); // Read chunk position end element IfFailedExit(WsReadEndElement(reader, NULL)); // Read to file content element IfFailedExit(WsReadToStartElement(reader, &fileContentLocalName, &fileChunkNamespace, NULL, NULL)); // Read file content start element IfFailedExit(WsReadStartElement(reader, NULL)); buf = (BYTE*)HeapAlloc(GetProcessHeap(), 0, bytesToRead); IfNullExit(buf); // Read file content into buffer // We are reading a chunk of the byte array in the message, writing it to disk and then read // the next chunk. That way we only need mimimal amounts of memory compared to the total amount // of data transferred. The exact way this is done is subject to perf tweaking. for (;;) { // Read next block of bytes. ULONG bytesRead = 0; IfFailedExit(WsReadBytes(reader, buf, bytesToRead, &bytesRead, NULL)); if (bytesRead == 0) { // We read it all. break; } length+=bytesRead; ULONG count = 0; if (!WriteFile(file, buf, bytesRead, &count, NULL)) { PrintError(L"File write error.", true); hr = HRESULT_FROM_WIN32(GetLastError()); EXIT_FUNCTION } if (count != bytesRead) { PrintError(L"File write error.", true); hr = E_FAIL; EXIT_FUNCTION } } // Read file content end element IfFailedExit(WsReadEndElement(reader, NULL)); // Read the error string and write it to a heap. IfFailedExit(WsCreateHeap(/*maxSize*/ 1024, /*trimSize*/ 1024, NULL, 0, &heap, NULL)); // Here it pays to use WsReadElementType instead of manually parsing the element since we require heap memory anyway. // This can fail if the error message does not fit on the relatively small heap created for it. The server is not // expected to use error messages that long. If we get back such a long message we talk to a buggy or rogue server // and failing is the right thing to do. IfFailedExit(WsReadElement(reader, &errorDescription, WS_READ_REQUIRED_POINTER, heap, &errorString, sizeof(errorString), NULL)); // Read file data end element IfFailedExit(WsReadEndElement(reader, NULL)); *contentLength = length; if (lstrcmpW(errorString, &GlobalStrings::noError[0])) { PrintInfo(L"Chunk transfer failed"); if (errorString) { PrintInfo(errorString); } hr = E_FAIL; } EXIT if (NULL != buf) { HeapFree(GetProcessHeap(), 0, buf); } if (heap) { // Clean up errorString. WsResetHeap(heap, NULL); WsFreeHeap(heap); } if (FAILED(hr)) { hr = WS_E_INVALID_FORMAT; } PrintVerbose(L"Leaving CFileRepClient::DeserializeAndWriteMessage"); return hr; } // Tell the command line tool what happened to the request. HRESULT CFileRepClient::SendUserResponse( _In_ CRequest* request, _In_ TRANSFER_RESULTS result) { PrintVerbose(L"Entering CFileRepClient::SendUserResponse"); HRESULT hr = S_OK; WS_ERROR* error = request->GetError(); WS_MESSAGE* replyMessage = request->GetReplyMessage(); WS_MESSAGE* requestMessage = request->GetRequestMessage(); WS_CHANNEL* channel = request->GetChannel(); UserResponse userResponse; userResponse.returnValue = result; WS_MESSAGE_DESCRIPTION userResponseMessageDescription; userResponseMessageDescription.action = &userResponseAction; userResponseMessageDescription.bodyElementDescription = &userResponseElement; hr = WsSendReplyMessage( channel, replyMessage, &userResponseMessageDescription, WS_WRITE_REQUIRED_VALUE, &userResponse, sizeof(userResponse), requestMessage, NULL, error); if (FAILED(hr)) { PrintError(L"CFileRepClient::SendUserResponse\n", true); PrintError(hr, error, true); } WsResetMessage(replyMessage, NULL); PrintVerbose(L"Leaving CFileRepClient::SendUserResponse"); return hr; }
[ "126.org@gmail.com" ]
126.org@gmail.com
5f6d087884e71007bd93b293fe77513e1be2708f
2f6a9ff787b9eb2ababc9bb39e15f1349fefa3d2
/inet/src/inet/applications/sctpapp/SctpPeer.cc
346b2d61eec1371029d7f5f0ea60d308b2e01509
[ "BSD-3-Clause", "MPL-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
ntanetani/quisp
97f9c2d0a8d3affbc709452e98c02c568f5fe8fd
47501a9e9adbd6adfb05a1c98624870b004799ea
refs/heads/master
2023-03-10T08:05:30.044698
2022-06-14T17:29:28
2022-06-14T17:29:28
247,196,429
0
1
BSD-3-Clause
2023-02-27T03:27:22
2020-03-14T02:16:19
C++
UTF-8
C++
false
false
26,105
cc
// // Copyright (C) 2008 Irene Ruengeler // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, see <http://www.gnu.org/licenses/>. // #include <stdlib.h> #include <stdio.h> #include "inet/applications/sctpapp/SctpPeer.h" #include "inet/common/ModuleAccess.h" #include "inet/common/lifecycle/NodeStatus.h" #include "inet/networklayer/common/L3AddressResolver.h" #include "inet/transportlayer/contract/sctp/SctpCommand_m.h" #include "inet/transportlayer/contract/sctp/SctpSocket.h" #include "inet/transportlayer/sctp/SctpAssociation.h" namespace inet { #define MSGKIND_CONNECT 0 #define MSGKIND_SEND 1 #define MSGKIND_ABORT 2 #define MSGKIND_PRIMARY 3 #define MSGKIND_RESET 4 #define MSGKIND_STOP 5 Define_Module(SctpPeer); simsignal_t SctpPeer::echoedPkSignal = registerSignal("echoedPk"); SctpPeer::SctpPeer() { timeoutMsg = nullptr; timeMsg = nullptr; connectTimer = nullptr; delay = 0; echo = false; ordered = true; schedule = false; queueSize = 0; outboundStreams = 1; inboundStreams = 17; shutdownReceived = false; sendAllowed = true; serverAssocId = 0; numRequestsToSend = 0; lastStream = 0; numPacketsToReceive = 0; bytesSent = 0; echoedBytesSent = 0; packetsSent = 0; bytesRcvd = 0; packetsRcvd = 0; notificationsReceived = 0; numSessions = 0; chunksAbandoned = 0; } SctpPeer::~SctpPeer() { cancelAndDelete(timeMsg); cancelAndDelete(timeoutMsg); cancelAndDelete(connectTimer); for (auto & elem : bytesPerAssoc) delete elem.second; bytesPerAssoc.clear(); for (auto & elem : endToEndDelay) delete elem.second; endToEndDelay.clear(); for (auto & elem : histEndToEndDelay) delete elem.second; histEndToEndDelay.clear(); rcvdPacketsPerAssoc.clear(); sentPacketsPerAssoc.clear(); rcvdBytesPerAssoc.clear(); } void SctpPeer::initialize(int stage) { cSimpleModule::initialize(stage); if (stage == INITSTAGE_LOCAL) { WATCH(numSessions); WATCH(packetsSent); WATCH(packetsRcvd); WATCH(bytesSent); WATCH(numRequestsToSend); } else if (stage == INITSTAGE_APPLICATION_LAYER) { // parameters const char *addressesString = par("localAddress"); AddressVector addresses = L3AddressResolver().resolve(cStringTokenizer(addressesString).asVector()); int port = par("localPort"); echo = par("echo"); delay = par("echoDelay"); outboundStreams = par("outboundStreams"); inboundStreams = par("inboundStreams"); ordered = par("ordered"); queueSize = par("queueSize"); timeoutMsg = new cMessage("SrvAppTimer"); listeningSocket.setOutputGate(gate("socketOut")); listeningSocket.setOutboundStreams(outboundStreams); listeningSocket.setInboundStreams(inboundStreams); if (addresses.size() == 0) { listeningSocket.bind(port); clientSocket.bind(port); } else { listeningSocket.bindx(addresses, port); clientSocket.bindx(addresses, port); } listeningSocket.listen(true, par("streamReset"), par("numPacketsToSendPerClient")); EV_DEBUG << "SctpPeer::initialized listen port=" << port << "\n"; clientSocket.setCallback(this); clientSocket.setOutputGate(gate("socketOut")); if (simtime_t(par("startTime")) > SIMTIME_ZERO) { //FIXME is invalid the startTime == 0 ???? connectTimer = new cMessage("ConnectTimer", MSGKIND_CONNECT); scheduleAt(par("startTime"), connectTimer); } cModule *node = findContainingNode(this); NodeStatus *nodeStatus = node ? check_and_cast_nullable<NodeStatus *>(node->getSubmodule("status")) : nullptr; bool isOperational = (!nodeStatus) || nodeStatus->getState() == NodeStatus::UP; if (!isOperational) throw cRuntimeError("This module doesn't support starting in node DOWN state"); } } void SctpPeer::sendOrSchedule(cMessage *msg) { if (delay == 0) { send(msg, "socketOut"); } else { scheduleAt(simTime() + delay, msg); } } void SctpPeer::generateAndSend() { auto applicationPacket = new Packet("ApplicationPacket"); auto applicationData = makeShared<BytesChunk>(); int numBytes = par("requestLength"); std::vector<uint8_t> vec; vec.resize(numBytes); for (int i = 0; i < numBytes; i++) vec[i] = (bytesSent + i) & 0xFF; applicationData->setBytes(vec); applicationData->addTag<CreationTimeTag>()->setCreationTime(simTime()); applicationPacket->insertAtBack(applicationData); auto sctpSendReq = applicationPacket->addTag<SctpSendReq>(); sctpSendReq->setLast(true); sctpSendReq->setPrMethod(par("prMethod")); sctpSendReq->setPrValue(par("prValue")); lastStream = (lastStream + 1) % outboundStreams; sctpSendReq->setSid(lastStream); sctpSendReq->setSocketId(serverAssocId); applicationPacket->setKind(ordered ? SCTP_C_SEND_ORDERED : SCTP_C_SEND_UNORDERED); applicationPacket->addTag<SocketReq>()->setSocketId(serverAssocId); applicationPacket->addTag<DispatchProtocolReq>()->setProtocol(&Protocol::sctp); bytesSent += numBytes; packetsSent++; sendOrSchedule(applicationPacket); } void SctpPeer::connect() { const char *connectAddress = par("connectAddress"); int connectPort = par("connectPort"); int outStreams = par("outboundStreams"); clientSocket.setOutboundStreams(outStreams); EV_INFO << "issuing OPEN command\n"; EV_INFO << "Assoc " << clientSocket.getSocketId() << "::connect to address " << connectAddress << ", port " << connectPort << "\n"; numSessions++; bool streamReset = par("streamReset"); L3Address destination; L3AddressResolver().tryResolve(connectAddress, destination); if (destination.isUnspecified()) EV << "cannot resolve destination address: " << connectAddress << endl; else { clientSocket.connect(destination, connectPort, streamReset, par("prMethod"), par("numRequestsPerSession")); } if (streamReset) { cMessage *cmsg = new cMessage("StreamReset", MSGKIND_RESET); EV_INFO << "StreamReset Timer scheduled at " << simTime() << "\n"; scheduleAt(simTime() + par("streamRequestTime"), cmsg); } unsigned int streamNum = 0; cStringTokenizer tokenizer(par("streamPriorities")); while (tokenizer.hasMoreTokens()) { const char *token = tokenizer.nextToken(); clientSocket.setStreamPriority(streamNum, (unsigned int)atoi(token)); streamNum++; } } void SctpPeer::handleMessage(cMessage *msg) { int id = -1; if (msg->isSelfMessage()) handleTimer(msg); switch (msg->getKind()) { case SCTP_I_PEER_CLOSED: case SCTP_I_ABORT: { Message *message = check_and_cast<Message *>(msg); auto& intags = getTags(message); SctpCommandReq *ind = intags.findTag<SctpCommandReq>(); Request *cmsg = new Request("SCTP_C_ABORT", SCTP_C_ABORT); SctpSendReq *cmd = cmsg->addTag<SctpSendReq>(); id = ind->getSocketId(); cmd->setSocketId(id); cmd->setSid(ind->getSid()); cmd->setNumMsgs(ind->getNumMsgs()); delete msg; sendOrSchedule(cmsg); break; } case SCTP_I_ESTABLISHED: { if (clientSocket.getState() == SctpSocket::CONNECTING) clientSocket.processMessage(PK(msg)); else { Message *message = check_and_cast<Message *>(msg); auto& tags = getTags(message); SctpConnectReq *connectInfo = tags.findTag<SctpConnectReq>(); numSessions++; serverAssocId = connectInfo->getSocketId(); id = serverAssocId; outboundStreams = connectInfo->getOutboundStreams(); rcvdPacketsPerAssoc[serverAssocId] = par("numPacketsToReceivePerClient"); sentPacketsPerAssoc[serverAssocId] = par("numPacketsToSendPerClient"); char text[50]; sprintf(text, "App: Received Bytes of assoc %d", serverAssocId); bytesPerAssoc[serverAssocId] = new cOutVector(text); rcvdBytesPerAssoc[serverAssocId] = 0; sprintf(text, "App: EndToEndDelay of assoc %d", serverAssocId); endToEndDelay[serverAssocId] = new cOutVector(text); sprintf(text, "Hist: EndToEndDelay of assoc %d", serverAssocId); histEndToEndDelay[serverAssocId] = new cHistogram(text); //delete connectInfo; delete msg; if (par("numPacketsToSendPerClient").intValue() > 0) { auto i = sentPacketsPerAssoc.find(serverAssocId); numRequestsToSend = i->second; if (par("thinkTime").doubleValue() > 0) { generateAndSend(); timeoutMsg->setKind(SCTP_C_SEND); scheduleAt(simTime() + par("thinkTime"), timeoutMsg); numRequestsToSend--; i->second = numRequestsToSend; } else { if (queueSize == 0) { while (numRequestsToSend > 0) { generateAndSend(); numRequestsToSend--; i->second = numRequestsToSend; } } else if (queueSize > 0) { int count = 0; while (numRequestsToSend > 0 && count++ < queueSize * 2) { generateAndSend(); numRequestsToSend--; i->second = numRequestsToSend; } Request *cmsg = new Request("SCTP_C_QUEUE_MSGS_LIMIT", SCTP_C_QUEUE_MSGS_LIMIT); SctpInfoReq *qinfo = cmsg->addTag<SctpInfoReq>(); qinfo->setText(queueSize); qinfo->setSocketId(id); sendOrSchedule(cmsg); } EV_INFO << "!!!!!!!!!!!!!!!All data sent from Server !!!!!!!!!!\n"; auto j = rcvdPacketsPerAssoc.find(serverAssocId); if (j->second == 0 && par("waitToClose").doubleValue() > 0) { char as[5]; sprintf(as, "%d", serverAssocId); cMessage *abortMsg = new cMessage(as, SCTP_I_ABORT); scheduleAt(simTime() + par("waitToClose"), abortMsg); } else { EV_INFO << "no more packets to send, call shutdown for assoc " << serverAssocId << "\n"; Request *cmsg = new Request("ShutdownRequest", SCTP_C_SHUTDOWN); SctpCommandReq *cmd = cmsg->addTag<SctpCommandReq>(); cmd->setSocketId(serverAssocId); sendOrSchedule(cmsg); } } } } break; } case SCTP_I_DATA_NOTIFICATION: { notificationsReceived++; Message *message = check_and_cast<Message *>(msg); auto& intags = getTags(message); SctpCommandReq *ind = intags.findTag<SctpCommandReq>(); id = ind->getSocketId(); Request *cmsg = new Request("ReceiveRequest", SCTP_C_RECEIVE); auto cmd = cmsg->addTag<SctpSendReq>(); cmsg->addTag<SocketReq>()->setSocketId(id); cmsg->addTag<DispatchProtocolReq>()->setProtocol(&Protocol::sctp); cmd->setSocketId(id); cmd->setSid(ind->getSid()); cmd->setNumMsgs(ind->getNumMsgs()); delete msg; if (!cmsg->isScheduled() && schedule == false) { scheduleAt(simTime() + par("delayFirstRead"), cmsg); } else if (schedule == true) sendOrSchedule(cmsg); break; } case SCTP_I_DATA: { Packet *message = check_and_cast<Packet *>(msg); auto& tags = getTags(message); SctpRcvReq *ind = tags.findTag<SctpRcvReq>(); id = ind->getSocketId(); auto j = rcvdBytesPerAssoc.find(id); if (j == rcvdBytesPerAssoc.end() && (clientSocket.getState() == SctpSocket::CONNECTED)) clientSocket.processMessage(msg); else if (j != rcvdBytesPerAssoc.end()) { j->second += PK(msg)->getByteLength(); auto k = bytesPerAssoc.find(id); k->second->record(j->second); packetsRcvd++; if (!echo) { if (par("numPacketsToReceivePerClient").intValue() > 0) { auto i = rcvdPacketsPerAssoc.find(id); i->second--; SctpSimpleMessage *smsg = check_and_cast<SctpSimpleMessage *>(msg); auto j = endToEndDelay.find(id); j->second->record(simTime() - smsg->getCreationTime()); auto k = histEndToEndDelay.find(id); k->second->collect(simTime() - smsg->getCreationTime()); if (i->second == 0) { Request *cmsg = new Request("SCTP_C_NO_OUTSTANDING", SCTP_C_NO_OUTSTANDING); SctpCommandReq *qinfo = cmsg->addTag<SctpCommandReq>(); qinfo->setSocketId(id); sendOrSchedule(cmsg); } } delete msg; } else { auto m = endToEndDelay.find(id); auto k = histEndToEndDelay.find(id); const auto& smsg = message->peekData(); for (auto& region : smsg->getAllTags<CreationTimeTag>()) { m->second->record(simTime() - region.getTag()->getCreationTime()); k->second->collect(simTime() - region.getTag()->getCreationTime()); } auto cmsg = new Packet("ApplicationPacket"); cmsg->insertAtBack(smsg); auto cmd = cmsg->addTag<SctpSendReq>(); lastStream = (lastStream + 1) % outboundStreams; cmd->setLast(true); cmd->setSocketId(id); cmd->setPrValue(0); cmd->setSid(lastStream); cmsg->setKind(cmd->getSendUnordered() ? SCTP_C_SEND_UNORDERED : SCTP_C_SEND_ORDERED); bytesSent += B(smsg->getChunkLength()).get(); packetsSent++; sendOrSchedule(cmsg); } } else { delete msg; } break; } case SCTP_I_SHUTDOWN_RECEIVED: { Message *message = check_and_cast<Message *>(msg); id = message->getTag<SocketInd>()->getSocketId(); EV_INFO << "server: SCTP_I_SHUTDOWN_RECEIVED for assoc " << id << "\n"; auto i = rcvdPacketsPerAssoc.find(id); if (i == rcvdPacketsPerAssoc.end() && (clientSocket.getState() == SctpSocket::CONNECTED)) clientSocket.processMessage(PK(msg)); else if (i != rcvdPacketsPerAssoc.end()) { if (i->second == 0) { Request *cmsg = new Request("SCTP_C_NO_OUTSTANDING", SCTP_C_NO_OUTSTANDING); SctpCommandReq *qinfo = cmsg->addTag<SctpCommandReq>(); qinfo->setSocketId(id); sendOrSchedule(cmsg); } shutdownReceived = true; } delete msg; break; } case SCTP_I_SEND_STREAMS_RESETTED: case SCTP_I_RCV_STREAMS_RESETTED: { EV_INFO << "Streams have been resetted\n"; break; } case SCTP_I_CLOSED: delete msg; break; } if (hasGUI()) { char buf[32]; auto l = rcvdBytesPerAssoc.find(id); sprintf(buf, "rcvd: %ld bytes\nsent: %ld bytes", l->second, bytesSent); getDisplayString().setTagArg("t", 0, buf); } } void SctpPeer::handleTimer(cMessage *msg) { EV_TRACE << "SctpPeer::handleTimer\n"; switch (msg->getKind()) { case MSGKIND_CONNECT: EV_INFO << "starting session call connect\n"; connect(); break; case SCTP_C_SEND: if (numRequestsToSend > 0) { generateAndSend(); if (par("thinkTime").doubleValue() > 0) scheduleAt(simTime() + par("thinkTime"), timeoutMsg); numRequestsToSend--; } break; case SCTP_I_ABORT: { Request *cmsg = new Request("SCTP_C_CLOSE", SCTP_C_CLOSE); SctpCommandReq *cmd = cmsg->addTag<SctpCommandReq>(); int id = atoi(msg->getName()); cmd->setSocketId(id); sendOrSchedule(cmsg); } break; case SCTP_C_RECEIVE: schedule = true; sendOrSchedule(PK(msg)); break; default: break; } } void SctpPeer::socketDataNotificationArrived(SctpSocket *socket, Message *msg) { Message *message = check_and_cast<Message *>(msg); auto& intags = getTags(message); SctpCommandReq *ind = intags.findTag<SctpCommandReq>(); Request *cmesg = new Request("SCTP_C_RECEIVE", SCTP_C_RECEIVE); SctpSendReq *cmd = cmesg->addTag<SctpSendReq>(); cmd->setSocketId(ind->getSocketId()); cmd->setSid(ind->getSid()); cmd->setNumMsgs(ind->getNumMsgs()); clientSocket.sendNotification(cmesg); } void SctpPeer::socketPeerClosed(SctpSocket *socket) { // close the connection (if not already closed) if (clientSocket.getState() == SctpSocket::PEER_CLOSED) { EV_INFO << "remote SCTP closed, closing here as well\n"; setStatusString("closing"); clientSocket.close(); } } void SctpPeer::socketClosed(SctpSocket *socket) { // *redefine* to start another session etc. EV_INFO << "connection closed\n"; setStatusString("closed"); } void SctpPeer::socketFailure(SctpSocket *socket, int code) { // subclasses may override this function, and add code try to reconnect after a delay. EV_WARN << "connection broken\n"; setStatusString("broken"); // reconnect after a delay timeMsg->setKind(MSGKIND_CONNECT); scheduleAt(simTime() + par("reconnectInterval"), timeMsg); } void SctpPeer::socketStatusArrived(SctpSocket *socket, SctpStatusReq *status) { struct PathStatus ps; auto i = sctpPathStatus.find(status->getPathId()); if (i != sctpPathStatus.end()) { ps = i->second; ps.active = status->getActive(); } else { ps.active = status->getActive(); ps.primaryPath = false; sctpPathStatus[ps.pid] = ps; } } void SctpPeer::setStatusString(const char *s) { if (hasGUI()) getDisplayString().setTagArg("t", 0, s); } void SctpPeer::sendRequest(bool last) { EV_INFO << "sending request, " << numRequestsToSend - 1 << " more to go\n"; long numBytes = par("requestLength"); if (numBytes < 1) numBytes = 1; EV_INFO << "SctpClient: sending " << numBytes << " data bytes\n"; auto cmsg = new Packet("ApplicationPacket"); auto msg = makeShared<BytesChunk>(); std::vector<uint8_t> vec; vec.resize(numBytes); for (int i = 0; i < numBytes; i++) vec[i] = (bytesSent + i) & 0xFF; msg->setBytes(vec); msg->addTag<CreationTimeTag>()->setCreationTime(simTime()); cmsg->insertAtBack(msg); cmsg->setKind(ordered ? SCTP_C_SEND_ORDERED : SCTP_C_SEND_UNORDERED); auto sendCommand = cmsg->addTag<SctpSendReq>(); sendCommand->setLast(true); // send SctpMessage with SctpSimpleMessage enclosed clientSocket.send(cmsg); bytesSent += numBytes; } void SctpPeer::socketEstablished(SctpSocket *socket, unsigned long int buffer) { ASSERT(socket == &clientSocket); int count = 0; // *redefine* to perform or schedule first sending EV_INFO << "SctpClient: connected\n"; setStatusString("connected"); // determine number of requests in this session numRequestsToSend = par("numRequestsPerSession"); numPacketsToReceive = par("numPacketsToReceive"); if (numRequestsToSend < 1) numRequestsToSend = 0; // perform first request (next one will be sent when reply arrives) if (numRequestsToSend > 0) { if (par("thinkTime").doubleValue() > 0) { if (sendAllowed) { sendRequest(); numRequestsToSend--; } timeMsg->setKind(MSGKIND_SEND); scheduleAt(simTime() + par("thinkTime"), timeMsg); } else { if (queueSize > 0) { while (numRequestsToSend > 0 && count++ < queueSize * 2 && sendAllowed) { sendRequest(count == queueSize * 2); numRequestsToSend--; } if (numRequestsToSend > 0 && sendAllowed) sendQueueRequest(); } else { while (numRequestsToSend > 0 && sendAllowed) { sendRequest(); numRequestsToSend--; } } if (numPacketsToReceive == 0 && par("waitToClose").doubleValue() > 0) { timeMsg->setKind(MSGKIND_ABORT); scheduleAt(simTime() + par("waitToClose"), timeMsg); } if (numRequestsToSend == 0 && par("waitToClose").doubleValue() == 0) { EV_INFO << "socketEstablished:no more packets to send, call shutdown\n"; clientSocket.shutdown(); } } } } void SctpPeer::sendQueueRequest() { Request *cmsg = new Request("SCTP_C_QUEUE_MSGS_LIMIT", SCTP_C_QUEUE_MSGS_LIMIT); SctpInfoReq *qinfo = cmsg->addTag<SctpInfoReq>(); qinfo->setText(queueSize); qinfo->setSocketId(clientSocket.getSocketId()); clientSocket.sendRequest(cmsg); } void SctpPeer::sendRequestArrived(SctpSocket *socket) { ASSERT(socket == &clientSocket); int count = 0; EV_INFO << "sendRequestArrived numRequestsToSend=" << numRequestsToSend << "\n"; while (numRequestsToSend > 0 && count++ < queueSize && sendAllowed) { numRequestsToSend--; sendRequest(count == queueSize || numRequestsToSend == 0); if (numRequestsToSend == 0) { EV_INFO << "no more packets to send, call shutdown\n"; clientSocket.shutdown(); } } } void SctpPeer::socketDataArrived(SctpSocket *socket, Packet *msg, bool) { // *redefine* to perform or schedule next sending packetsRcvd++; EV_INFO << "Client received packet Nr " << packetsRcvd << " from SCTP\n"; auto& tags = getTags(msg); SctpRcvReq *ind = tags.findTag<SctpRcvReq>(); emit(packetReceivedSignal, msg); bytesRcvd += msg->getByteLength(); if (echo) { const auto& smsg = msg->peekData(); auto cmsg = new Packet("ApplicationPacket"); cmsg->setKind(ind->getSendUnordered() ? SCTP_C_SEND_UNORDERED : SCTP_C_SEND_ORDERED); cmsg->insertAtBack(smsg); auto cmd = cmsg->addTag<SctpSendReq>(); cmd->setLast(true); cmd->setSocketId(ind->getSocketId()); cmd->setPrValue(0); cmd->setSid(ind->getSid()); packetsSent++; clientSocket.send(cmsg); } if (par("numPacketsToReceive").intValue() > 0) { numPacketsToReceive--; if (numPacketsToReceive == 0) { setStatusString("closing"); clientSocket.close(); } } } void SctpPeer::shutdownReceivedArrived(SctpSocket *socket) { if (numRequestsToSend == 0) { Message *cmsg = new Message("SCTP_C_NO_OUTSTANDING", SCTP_C_NO_OUTSTANDING); SctpCommandReq *qinfo = cmsg->addTag<SctpCommandReq>(); qinfo->setSocketId(socket->getSocketId()); clientSocket.sendNotification(cmsg); } } void SctpPeer::msgAbandonedArrived(SctpSocket *socket) { chunksAbandoned++; } void SctpPeer::sendqueueFullArrived(SctpSocket *socket) { sendAllowed = false; } void SctpPeer::finish() { EV_INFO << getFullPath() << ": opened " << numSessions << " sessions\n"; EV_INFO << getFullPath() << ": sent " << bytesSent << " bytes in " << packetsSent << " packets\n"; for (auto & elem : rcvdBytesPerAssoc) EV_DETAIL << getFullPath() << ": received " << elem.second << " bytes in assoc " << elem.first << "\n"; EV_INFO << getFullPath() << "Over all " << packetsRcvd << " packets received\n "; EV_INFO << getFullPath() << "Over all " << notificationsReceived << " notifications received\n "; } } // namespace inet
[ "n.tanetani@gmail.com" ]
n.tanetani@gmail.com
e283ae55b15d36090e1390a259342a84421fabe8
baf85346802a6a4dc18fe39bc1d63f93cc306cfb
/lal.cpp
e72f626b79a8f84362e06d3559fc106eb5db585d
[]
no_license
BurakGulsen/LinearAlgebraLibrary
2c3668e8568b034758ef493c3c2ebf5865a9473b
2e8805972f085a0cb114a33d7ca09e8881bf1d21
refs/heads/main
2023-03-07T07:16:32.305993
2021-02-21T15:17:41
2021-02-21T15:17:41
340,931,750
0
0
null
null
null
null
UTF-8
C++
false
false
3,034
cpp
#include <iostream> #include "lal.h" #include "math.h" #include <cstdlib> using namespace std; Matrix::Matrix(double *a,int row,int col) { this->entries=a; this->rows=row; this->cols=col; } double** Matrix::createMatrix(){ double **matrix =(double **)malloc(this->rows*sizeof(double *)); int i,j; for (i=0; i<this->rows; i++) { matrix[i] = (double *)malloc(this->cols * sizeof(double)); } return matrix; } double ** Matrix::fillMatrix(){ int i,j; double ** matrix = createMatrix(); int col = this->cols; int row = this->rows; double *dizi = this->entries; for(i=0; i<row; i++) { for( j=0; j<col; j++) { matrix[ i ][ j ] = dizi[ i*col + j ]; } } return matrix; } void Matrix::print() { double ** matrix = fillMatrix(); int i,j; for(i=0; i<this->rows; i++) { for(j=0; j<this->cols; j++) { printf("%.2f \t",matrix[i][j]); } puts(""); } } Matrix::~Matrix() { cout<<"Matriks silindi "<<endl; } Vector::Vector(double *a,int row):Matrix(a,row,1) { int i,toplam=0; for(i=0; i<row; i++) { toplam+=a[i]*a[i]; } this->l2Norm=sqrt(toplam); } Vector::~Vector() { cout<<"Vektor silindi"<<endl; } void Vector::print(double * d){ double *dizi = (double *)malloc(4*sizeof(double)); for(int i =0; i<4; i++){ printf("%.2f \t", d[i]); } puts(" "); } Matrix Matrix::operator+(const Matrix &m){ int a = this->rows+m.rows; int b = this->cols+m.cols; return Matrix(this->entries,a,b); } double* Matrix::operator-(const Matrix &m){ double * oneDimensiolMatrix = (double*)malloc((this->rows*this->cols) * sizeof(double)); for(int a=0;a<this->rows*this->cols;a++) { oneDimensiolMatrix[a]= this->entries[a] - m.entries[a]; } return oneDimensiolMatrix; } double* Matrix::operator*(const Matrix &m){ double * oneDimensiolMatrix = (double*)malloc((this->rows*this->cols) * sizeof(double)); for(int a=0;a<this->rows*this->cols;a++) { oneDimensiolMatrix[a]= this->entries[a] * m.entries[a]; } return oneDimensiolMatrix; } /* Boolean Matrix::operator==(const Matrix &m){ int a = this->rows+m.rows; int b = this->cols+m.cols; return Matrix(this->entries,a,b); } void transpose(Matrix *m){ m->createMatrix(); m->fillMatrix(); } */
[ "noreply@github.com" ]
noreply@github.com
6dca118a3eeb3212575cac55c719f3917727572b
5b98b0244ec6c53164ea60a0fcf4d2d6e83d1cb3
/Command/Remote_Control/remote_control.cc
904aae7c5f9cffb2d8692aa824f613201193d451
[]
no_license
martinnobis/Head-First-Design-Patterns-Cpp
bd137cde4f94228991224b685dfa5dcfbc417531
4c05e2cfdce1ead6b24d5bca2466133293386855
refs/heads/master
2021-09-15T05:47:11.300397
2018-05-27T07:53:59
2018-05-27T07:53:59
127,617,469
5
0
null
null
null
null
UTF-8
C++
false
false
1,091
cc
#include <iostream> #include "remote_control.h" #include "no_command.h" #include "command.h" RemoteControl::RemoteControl() { std::shared_ptr<Command> no_command = std::make_shared<NoCommand>(); for (int i = 0; i < 7; i++) { on_commands_.push_back(no_command); off_commands_.push_back(no_command); } } void RemoteControl::SetCommand(int slot, std::shared_ptr<Command> on_command, std::shared_ptr<Command> off_command) { on_commands_.at(slot) = on_command; off_commands_.at(slot) = off_command; } void RemoteControl::OnButtonWasPushed(int slot) const { on_commands_.at(slot)->Execute(); } void RemoteControl::OffButtonWasPushed(int slot) const { off_commands_.at(slot)->Execute(); } std::ostream &operator<<(std::ostream &stream, const RemoteControl &remote) { stream << "------- Remote Control -------"; for (int i = 0; i < 7; i++) { stream << std::endl << "[slot " << i << "] " << remote.on_commands_.at(i)->get_name_() << " \t" << remote.off_commands_.at(i)->get_name_(); } return stream; }
[ "martin.nobis@gmail.com" ]
martin.nobis@gmail.com
5db94618525912572205a3875f0ec3eb6f34b309
05982a796a413ebad8684cd594e26f49e873c9d9
/Chapter11-使用类/randwalk.cpp
255104ddb001a8f493dd17c15ee75b7ca02ed2e5
[]
no_license
Meatlf/CPlusPlus
6dd9c2689ca099f16018f8789339ac81aa998217
377de08eaeb783aa286f4f790a62af9d957e323b
refs/heads/master
2021-01-04T10:26:36.167915
2020-09-02T12:03:42
2020-09-02T12:03:42
240,505,010
1
1
null
null
null
null
UTF-8
C++
false
false
1,456
cpp
// randwalk.cpp -- using the Vector class // compile with the vect.cpp file #include <iostream> #include <cstdlib> // rand(), srand() prototypes #include <ctime> // time() prototype #include "vect.h" int main() { using namespace std; using VECTOR::Vector; srand(time(0)); // seed random-number generator double direction; Vector step; Vector result(0.0, 0.0); unsigned long steps = 0; double target; double dstep; cout << "Enter target distance (q to quit): "; while (cin >> target) { cout << "Enter step length: "; if (!(cin >> dstep)) break; while (result.magval() < target) { direction = rand() % 360; step.reset(dstep, direction, VECTOR::Vector::Mode::POL); result = result + step; steps++; } cout << "After " << steps << " steps, the subject " "has the following location:\n"; cout << result << endl; result.polar_mode(); cout << " or\n" << result << endl; cout << "Average outward distance per step = " << result.magval() / steps << endl; steps = 0; result.reset(0.0, 0.0); cout << "Enter target distance (q to quit): "; } cout << "Bye!\n"; /* keep window open cin.clear(); while (cin.get() != '\n') continue; cin.get(); */ return 0; }
[ "454779758@qq.com" ]
454779758@qq.com
8835f53c76672399b7d057b8872805e563ff52e7
4fbf5f8f8c6d1efea687c2e7ab74df5abf006333
/PathCopyCopy/prihdr/StAtlPerUserOverride.h
79a1819223226d4537684e12155949c54555165b
[ "MIT", "Apache-2.0", "MS-PL" ]
permissive
skylark8973/pathcopycopy
9660581f0cf8fab42308adb520b0f1c0b8de1ada
27ab622b3d38e9db2e80837c4657d7e9f41d2316
refs/heads/master
2021-07-23T11:19:36.694968
2021-02-14T02:49:40
2021-02-14T02:49:40
154,050,667
0
0
NOASSERTION
2021-07-17T22:21:18
2018-10-21T20:46:07
C++
UTF-8
C++
false
false
5,547
h
// StAtlPerUserOverride.h // (c) 2015-2020, Charles Lechasseur // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. #pragma once #include <atlbase.h> #include <windows.h> // // StAtlPerUserOverride // // Stack-based class that will look at the value returned by the // AtlGetPerUserRegistration function and if per-user registration // is requested, will override the HKEY_CLASSES_ROOT predefined // registry key with HKEY_CURRENT_USER\Software\Classes. Idea taken from: // // http://blogs.msdn.com/b/jaredpar/archive/2005/05/29/423000.aspx // class StAtlPerUserOverride final { public: // // Constructor. Will override HKEY_CLASSES_ROOT // if this is a per-user registration. // StAtlPerUserOverride() noexcept(false) : m_Overriden(false), m_Succeeded(false) { // Check if this is a per-user registration. bool perUser = false; const HRESULT hRes = ATL::AtlGetPerUserRegistration(&perUser); if (SUCCEEDED(hRes)) { if (perUser) { // Override HKCR with the user CR key. ATL::CRegKey softwareClassesKey; softwareClassesKey.Create(HKEY_CURRENT_USER, L"Software\\Classes", nullptr, REG_OPTION_NON_VOLATILE, KEY_QUERY_VALUE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY); if (softwareClassesKey.m_hKey != nullptr && ::RegOverridePredefKey(HKEY_CLASSES_ROOT, softwareClassesKey) == ERROR_SUCCESS) { // Success overriding the key. m_Overriden = true; m_Succeeded = true; } } else { // Not a per-user registration, but still a success. m_Succeeded = true; } } } // // Copying/moving not supported. // StAtlPerUserOverride(const StAtlPerUserOverride&) = delete; StAtlPerUserOverride(StAtlPerUserOverride&&) = delete; StAtlPerUserOverride& operator=(const StAtlPerUserOverride&) = delete; StAtlPerUserOverride& operator=(StAtlPerUserOverride&&) = delete; // // Destructor. Restores the default mapping of // HKEY_CLASSES_ROOT if overridden in constructor. // ~StAtlPerUserOverride() { // If HKCR was overridden, restore default mapping. if (m_Overriden) { ::RegOverridePredefKey(HKEY_CLASSES_ROOT, nullptr); } } // // Check if the HKEY_CLASSES_ROOT has been overriden in the constructor. // // @return true if HKEY_CLASSES_ROOT has been overriden. // bool Overridden() const noexcept { return m_Overriden; } // // Checks if everything succeeded in constructor. Note that it can // succeed and still not override HKEY_CLASSES_ROOT if it's not needed. // // @return true if everything went smoothly in constructor. // bool Succeeded() const noexcept { return m_Succeeded; } private: bool m_Overriden; // Whether HKEY_CLASSES_ROOT has been overridden in constructor. bool m_Succeeded; // Whether everything worked in constructor. };
[ "shiftingbeard@gmx.com" ]
shiftingbeard@gmx.com
c5b34796d90803c6157516f560f49bb1e1486cf3
d34960c2d9a84ad0639005b86d79b3a0553292ab
/boost/boost/algorithm/string/detail/find_format_all.hpp
2f3f50d6fbf074cb58555d7fffe35c430ce23d4a
[ "BSL-1.0", "Apache-2.0" ]
permissive
tonystone/geofeatures
413c13ebd47ee6676196399d47f5e23ba5345287
25aca530a9140b3f259e9ee0833c93522e83a697
refs/heads/master
2020-04-09T12:44:36.472701
2019-03-17T01:37:55
2019-03-17T01:37:55
41,232,751
28
9
NOASSERTION
2019-03-17T01:37:56
2015-08-23T02:35:40
C++
UTF-8
C++
false
false
10,744
hpp
// Boost string_algo library find_format_all.hpp header file ---------------------------// // Copyright Pavol Droba 2002-2003. // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/ for updates, documentation, and revision history. #ifndef BOOST_STRING_FIND_FORMAT_ALL_DETAIL_HPP #define BOOST_STRING_FIND_FORMAT_ALL_DETAIL_HPP #include <boost/algorithm/string/config.hpp> #include <boost/range/iterator_range_core.hpp> #include <boost/range/const_iterator.hpp> #include <boost/range/value_type.hpp> #include <boost/algorithm/string/detail/find_format_store.hpp> #include <boost/algorithm/string/detail/replace_storage.hpp> namespace geofeatures_boost {} namespace boost = geofeatures_boost; namespace geofeatures_boost { namespace algorithm { namespace detail { // find_format_all_copy (iterator variant) implementation ---------------------------// template< typename OutputIteratorT, typename InputT, typename FinderT, typename FormatterT, typename FindResultT, typename FormatResultT > inline OutputIteratorT find_format_all_copy_impl2( OutputIteratorT Output, const InputT& Input, FinderT Finder, FormatterT Formatter, const FindResultT& FindResult, const FormatResultT& FormatResult ) { typedef BOOST_STRING_TYPENAME range_const_iterator<InputT>::type input_iterator_type; typedef find_format_store< input_iterator_type, FormatterT, FormatResultT > store_type; // Create store for the find result store_type M( FindResult, FormatResult, Formatter ); // Initialize last match input_iterator_type LastMatch=::geofeatures_boost::begin(Input); // Iterate through all matches while( M ) { // Copy the beginning of the sequence Output = std::copy( LastMatch, M.begin(), Output ); // Copy formatted result Output = std::copy( ::geofeatures_boost::begin(M.format_result()), ::geofeatures_boost::end(M.format_result()), Output ); // Proceed to the next match LastMatch=M.end(); M=Finder( LastMatch, ::geofeatures_boost::end(Input) ); } // Copy the rest of the sequence Output = std::copy( LastMatch, ::geofeatures_boost::end(Input), Output ); return Output; } template< typename OutputIteratorT, typename InputT, typename FinderT, typename FormatterT, typename FindResultT > inline OutputIteratorT find_format_all_copy_impl( OutputIteratorT Output, const InputT& Input, FinderT Finder, FormatterT Formatter, const FindResultT& FindResult ) { if( ::geofeatures_boost::algorithm::detail::check_find_result(Input, FindResult) ) { return ::geofeatures_boost::algorithm::detail::find_format_all_copy_impl2( Output, Input, Finder, Formatter, FindResult, Formatter(FindResult) ); } else { return std::copy( ::geofeatures_boost::begin(Input), ::geofeatures_boost::end(Input), Output ); } } // find_format_all_copy implementation ----------------------------------------------// template< typename InputT, typename FinderT, typename FormatterT, typename FindResultT, typename FormatResultT > inline InputT find_format_all_copy_impl2( const InputT& Input, FinderT Finder, FormatterT Formatter, const FindResultT& FindResult, const FormatResultT& FormatResult) { typedef BOOST_STRING_TYPENAME range_const_iterator<InputT>::type input_iterator_type; typedef find_format_store< input_iterator_type, FormatterT, FormatResultT > store_type; // Create store for the find result store_type M( FindResult, FormatResult, Formatter ); // Initialize last match input_iterator_type LastMatch=::geofeatures_boost::begin(Input); // Output temporary InputT Output; // Iterate through all matches while( M ) { // Copy the beginning of the sequence geofeatures_boost::algorithm::detail::insert( Output, ::geofeatures_boost::end(Output), LastMatch, M.begin() ); // Copy formatted result geofeatures_boost::algorithm::detail::insert( Output, ::geofeatures_boost::end(Output), M.format_result() ); // Proceed to the next match LastMatch=M.end(); M=Finder( LastMatch, ::geofeatures_boost::end(Input) ); } // Copy the rest of the sequence ::geofeatures_boost::algorithm::detail::insert( Output, ::geofeatures_boost::end(Output), LastMatch, ::geofeatures_boost::end(Input) ); return Output; } template< typename InputT, typename FinderT, typename FormatterT, typename FindResultT > inline InputT find_format_all_copy_impl( const InputT& Input, FinderT Finder, FormatterT Formatter, const FindResultT& FindResult) { if( ::geofeatures_boost::algorithm::detail::check_find_result(Input, FindResult) ) { return ::geofeatures_boost::algorithm::detail::find_format_all_copy_impl2( Input, Finder, Formatter, FindResult, Formatter(FindResult) ); } else { return Input; } } // find_format_all implementation ------------------------------------------------// template< typename InputT, typename FinderT, typename FormatterT, typename FindResultT, typename FormatResultT > inline void find_format_all_impl2( InputT& Input, FinderT Finder, FormatterT Formatter, FindResultT FindResult, FormatResultT FormatResult) { typedef BOOST_STRING_TYPENAME range_iterator<InputT>::type input_iterator_type; typedef find_format_store< input_iterator_type, FormatterT, FormatResultT > store_type; // Create store for the find result store_type M( FindResult, FormatResult, Formatter ); // Instantiate replacement storage std::deque< BOOST_STRING_TYPENAME range_value<InputT>::type> Storage; // Initialize replacement iterators input_iterator_type InsertIt=::geofeatures_boost::begin(Input); input_iterator_type SearchIt=::geofeatures_boost::begin(Input); while( M ) { // process the segment InsertIt=process_segment( Storage, Input, InsertIt, SearchIt, M.begin() ); // Adjust search iterator SearchIt=M.end(); // Copy formatted replace to the storage ::geofeatures_boost::algorithm::detail::copy_to_storage( Storage, M.format_result() ); // Find range for a next match M=Finder( SearchIt, ::geofeatures_boost::end(Input) ); } // process the last segment InsertIt=::geofeatures_boost::algorithm::detail::process_segment( Storage, Input, InsertIt, SearchIt, ::geofeatures_boost::end(Input) ); if ( Storage.empty() ) { // Truncate input ::geofeatures_boost::algorithm::detail::erase( Input, InsertIt, ::geofeatures_boost::end(Input) ); } else { // Copy remaining data to the end of input ::geofeatures_boost::algorithm::detail::insert( Input, ::geofeatures_boost::end(Input), Storage.begin(), Storage.end() ); } } template< typename InputT, typename FinderT, typename FormatterT, typename FindResultT > inline void find_format_all_impl( InputT& Input, FinderT Finder, FormatterT Formatter, FindResultT FindResult) { if( ::geofeatures_boost::algorithm::detail::check_find_result(Input, FindResult) ) { ::geofeatures_boost::algorithm::detail::find_format_all_impl2( Input, Finder, Formatter, FindResult, Formatter(FindResult) ); } } } // namespace detail } // namespace algorithm } // namespace geofeatures_boost #endif // BOOST_STRING_FIND_FORMAT_ALL_DETAIL_HPP
[ "tony@mobilegridinc.com" ]
tony@mobilegridinc.com
046c6c6849e529649c8c2c42126be4fabaaefb9a
d705b9bdf0d67674b147bd8a4a6f6e8e6c913ce7
/leetcode/Basic_Calculator.cpp
aeb184985f5f229b12b54e90fdcbc9e79dad2bc0
[]
no_license
YiNANzhang/leetcode
9a6a6e0b6fddd4f10da30fd820149aa464a87e5c
13636f26d1dea9233f7b27360c57eaf32db46d27
refs/heads/master
2021-01-19T18:54:33.066223
2015-08-23T23:43:50
2015-08-23T23:43:50
34,886,537
0
0
null
null
null
null
UTF-8
C++
false
false
965
cpp
class Solution { public: int calculate(string s) { //if (isdigit(s)) return stoi(s); vector<int> nums; vector<char> ops; int val = 0; //char op; int lvalue, rvalue; //int res; for (int i = 0; i < s.size();++i) { val = 0; if (s[i] == ' ') { continue; } else if (s[i] == '(' || s[i] == '+' || s[i] == '-') { ops.push_back(s[i]); continue; } else if (s[i] == ')' ) { ops.pop_back(); } else { while (i < s.size() && s[i] >= '0' && s[i] <= '9') { val = val*10 + s[i++] - '0'; } nums.push_back(val); --i; } if (!ops.empty() && ops.back() != '(' && nums.size() > 1) { rvalue = nums.back(); nums.pop_back(); lvalue = nums.back(); nums.pop_back(); if (ops.back() == '+') val = lvalue + rvalue; else if (ops.back() == '-') val = lvalue - rvalue; nums.push_back(val); ops.pop_back(); } } if (nums.empty()) return 0; return nums[0]; } };
[ "zhangyinan@ict.ac.cn" ]
zhangyinan@ict.ac.cn
fb6ada6bb0bc4093edce6236346c8595090b165d
69a99d6c06071bbac21a5a2fb7aeffbd4f4edfe7
/OrganicGLWinLib/SPoly.cpp
12898faea7f9253992c61ca48e4b93a8a38fa7a5
[]
no_license
bigans01/OrganicGLWinLib
66e9034cee14c0b8e9debd0babc46c9ec36ebbea
01dafe917155dfe09eb559e889af852dc0b0a442
refs/heads/master
2023-07-21T14:37:43.022619
2023-07-17T23:13:20
2023-07-17T23:13:20
156,916,327
0
0
null
null
null
null
UTF-8
C++
false
false
46,136
cpp
#include "stdafx.h" #include "SPoly.h" SPoly::SPoly() { }; void SPoly::setEmptyNormal(float in_x, float in_y, float in_z) { glm::vec3 rawEmptyNormal(in_x, in_y, in_z); polyEmptyNormal = glm::normalize(rawEmptyNormal); } void SPoly::setEmptyNormal(glm::vec3 in_normalVec3) { polyEmptyNormal = glm::normalize(in_normalVec3); } void SPoly::setSPolyMaterial(TriangleMaterial in_sPolyMaterialID) { sPolyMaterialID = in_sPolyMaterialID; } void SPoly::setBoundaryIndicatorOrientation(BoundaryOrientation in_boundaryOrientation) { sPolyBoundaryIndicator.setBoundaryIndicator(in_boundaryOrientation); } void SPoly::setBoundaryIndicator(BoundaryPolyIndicator in_boundaryIndicator) { sPolyBoundaryIndicator = in_boundaryIndicator; } BoundaryOrientation SPoly::getBoundaryIndicatorOrientation() { return sPolyBoundaryIndicator.getBoundaryIndicatorValue(); } std::string SPoly::fetchPrintableBoundaryIndicatorString() { return sPolyBoundaryIndicator.getPrintableIndicatorValue(); } void SPoly::insertCleaveSequenceAtIndex(int in_indexToInsertAt, CleaveSequence in_cleaveSequence) { std::cout << "(SPoly): inserting CleaveSequence; size of CleaveSequences before insert is: " << cleaveMap.size() << std::endl; cleaveMap[in_indexToInsertAt] = in_cleaveSequence; std::cout << "(SPoly): Size of CleaveSequences, post insert: " << cleaveMap.size() << std::endl; } TriangleMaterial SPoly::getSPolyMaterial() { return sPolyMaterialID; } glm::vec3 SPoly::getEmptyNormal() { return polyEmptyNormal; } bool SPoly::isSPolyValid() { bool isValid = true; auto trianglesBegin = triangles.begin(); auto trianglesEnd = triangles.end(); for (; trianglesBegin != trianglesEnd; trianglesBegin++) { if (trianglesBegin->second.isSTriangleValid() == false) { isValid = false; // the first invalid we find, we are done. break; // break out on first contact } } return isValid; } bool SPoly::checkForSquarePosZ() { bool checkPassed = false; bool point0Found = false; bool point1Found = false; bool point2Found = false; bool point3Found = false; auto triangleScanBegin = triangles.begin(); auto triangleScanEnd = triangles.end(); for (; triangleScanBegin != triangleScanEnd; triangleScanBegin++) { for (int x = 0; x < 3; x++) { glm::vec3 currentPointA = triangleScanBegin->second.triangleLines[x].pointA; // check for point 0. if ( (currentPointA.x == 1.0f) && (currentPointA.y == 0.0f) && (currentPointA.z == 1.0f) ) { //std::cout << "(SPoly::checkForSquarePosZ() -> !!! Found point0. " << std::endl; point0Found = true; } // check for point 1. if ( (currentPointA.x == 1.0f) && (currentPointA.y == 1.0f) && (currentPointA.z == 1.0f) ) { //std::cout << "(SPoly::checkForSquarePosZ() -> !!! Found point1. " << std::endl; point1Found = true; } // check for point 2. if ( (currentPointA.x == 0.0f) && (currentPointA.y == 1.0f) && (currentPointA.z == 1.0f) ) { //std::cout << "(SPoly::checkForSquarePosZ() -> !!! Found point2. " << std::endl; point2Found = true; } // check for point 3. if ( (currentPointA.x == 0.0f) && (currentPointA.y == 0.0f) && (currentPointA.z == 1.0f) ) { //std::cout << "(SPoly::checkForSquarePosZ() -> !!! Found point3. " << std::endl; point3Found = true; } } } if ( (point0Found == true) && (point1Found == true) && (point2Found == true) && (point3Found == true) ) { std::cout << "(SPoly::checkForSquarePosZ): --> NOTICE! found full square poly for POS_Z." << std::endl; checkPassed = true; } return checkPassed; } void SPoly::determinePrimalPoints() { primePoint0 = triangles[0].triangleLines[0].pointA; primePoint1 = triangles[0].triangleLines[1].pointA; primePoint2 = triangles[0].triangleLines[2].pointA; } std::map<int, int> SPoly::getBorderLinesForSharedPoint(glm::vec3 in_sharedPoint) { std::map<int, int> returnMap; // should always return exactly two values. auto borderLinesBegin = borderLines.begin(); auto borderLinesEnd = borderLines.end(); for (; borderLinesBegin != borderLinesEnd; borderLinesBegin++) { if ( (borderLinesBegin->second.pointA == in_sharedPoint) || (borderLinesBegin->second.pointB == in_sharedPoint) ) { int currentMapIndex = int(returnMap.size()); returnMap[currentMapIndex] = borderLinesBegin->first; // insert the ID of the border line. } } return returnMap; } void SPoly::determineBorderLines() { // all SPolys start out in the mode TRIANGLE_FAN if (numberOfTriangles == 1) { addBorderLine(triangles[0].triangleLines[0]); addBorderLine(triangles[0].triangleLines[1]); addBorderLine(triangles[0].triangleLines[2]); } else if (numberOfTriangles == 2) { addBorderLine(triangles[0].triangleLines[0]); addBorderLine(triangles[0].triangleLines[1]); addBorderLine(triangles[1].triangleLines[1]); addBorderLine(triangles[1].triangleLines[2]); } else { addBorderLine(triangles[0].triangleLines[0]); addBorderLine(triangles[0].triangleLines[1]); int lastTriangleIndex = (numberOfTriangles - 1); int numberOfIntermediateTriangles = (numberOfTriangles - 2); int intermediateStartIndex = 1; for (int x = 0; x < numberOfIntermediateTriangles; x++) { addBorderLine(triangles[intermediateStartIndex++].triangleLines[1]); } addBorderLine(triangles[lastTriangleIndex].triangleLines[1]); addBorderLine(triangles[lastTriangleIndex].triangleLines[2]); } // after the lines get added, go through each STriangle to have it identify which of its lines are border lines for (int x = 0; x < numberOfTriangles; x++) { for (int y = 0; y < 3; y++) { glm::vec3 currentPointA = triangles[x].triangleLines[y].pointA; glm::vec3 currentPointB = triangles[x].triangleLines[y].pointB; // cycle through each of the border lines for (int z = 0; z < numberOfSPolyBorderLines; z++) { if ( (currentPointA.x == borderLines[z].pointA.x) && (currentPointA.y == borderLines[z].pointA.y) && (currentPointA.z == borderLines[z].pointA.z) && (currentPointB.x == borderLines[z].pointB.x) && (currentPointB.y == borderLines[z].pointB.y) && (currentPointB.z == borderLines[z].pointB.z) ) { triangles[x].triangleLines[y].isBorderLine = 1; // flag this as being a border line triangles[x].triangleLines[y].borderLineID = z; // set the border line ID } } } } } void SPoly::setMode(SPolyMode in_mode) { mode = in_mode; } SPolyMode SPoly::getMode() { return mode; } void SPoly::setMRP(glm::vec3 in_mrp) { massOriginPoint = in_mrp; } void SPoly::calculateEmptyNormal() { glm::vec3 point0 = triangles[0].triangleLines[0].pointA; glm::vec3 point1 = triangles[0].triangleLines[1].pointA; glm::vec3 point2 = triangles[0].triangleLines[2].pointA; EmptyNormalFinder finder(point0, point1, point2, massOriginPoint); //std::cout << "!!!#####: Value of Empty Normal for this Poly is: " << finder.calculatedNormal.x << ", " << finder.calculatedNormal.y << ", " << finder.calculatedNormal.z << std::endl; polyEmptyNormal = finder.calculatedNormal; } PerfectClampEnum SPoly::calculateAndGetPerfectClampingValue() { PerfectClampEnum returnValue = PerfectClampEnum::NONE; if (triangles.size() != 0) // will only run if there is at least one triangle to verify. { returnValue = triangles[0].getPerfectClampingValue(); } return returnValue; } void SPoly::determinePlanarVectors() { //std::cout << "#- Planar Vectors > Calculating planar vectors for the triangles in the SPoly, (" << numberOfSPolyBorderLines << " border lines)... " << std::endl; if (numberOfSPolyBorderLines == 3) { //if (debugFlag == 1) //{ //std::cout << "(case 1) ~~~~~~~~~ Calculating planar vector for 1 triangle~~~~~~~~~~" << std::endl; //} findPlanarVectorsForThreeBorderLines(&borderLines[0], &borderLines[1], &borderLines[2]); } else if (numberOfSPolyBorderLines == 4) { //if (debugFlag == 1) //{ //std::cout << "(case 2) ~~~~~~~~~ Calculating planar vector for " << numberOfTriangles << " triangles~~~~~~~~~~~~ " << std::endl; //} //std::cout << "!!!! " << numberOfSPolyBorderLines << std::endl; findPlanarVectorsForTwoBorderLines(&borderLines[0], &borderLines[1]); findPlanarVectorsForTwoBorderLines(&borderLines[2], &borderLines[3]); } else { //if (debugFlag == 1) //{ //std::cout << "(case 3) ~~~~~~~~~ Calculating planar vector for " << numberOfTriangles << " triangles~~~~~~~~~~~~ " << std::endl; //} //std::cout << "###################### finding Planar vectors for " << numberOfTriangles << " STriangles. " << std::endl; glm::vec3 rootPoint = borderLines[0].pointA; findPlanarVectorsForTwoBorderLines(&borderLines[0], &borderLines[1]); int numberOfIntermediateTriangles = (numberOfTriangles - 2); int intermediateStartIndex = 1; int intermediateCurrentBorderLine = 2; for (int x = 0; x < numberOfIntermediateTriangles; x++) { findPlanarVectorForSingleBorderLine(rootPoint, &borderLines[intermediateCurrentBorderLine++]); } findPlanarVectorsForTwoBorderLines(&borderLines[intermediateCurrentBorderLine], &borderLines[intermediateCurrentBorderLine + 1]); } } void SPoly::findPlanarVectorForSingleBorderLine(glm::vec3 in_triangleFanRootPoint, SPolyBorderLines* in_borderLineOneRef) { glm::vec3 centroidPoint = findCentroid(in_triangleFanRootPoint, in_borderLineOneRef->pointB, in_borderLineOneRef->pointB); calculatePlanarVector(in_borderLineOneRef, centroidPoint); } void SPoly::findPlanarVectorsForTwoBorderLines(SPolyBorderLines* in_borderLineOneRef, SPolyBorderLines* in_borderLineTwoRef) { if (debugFlag == 1) { std::cout << "Border Line 1 coords: " << in_borderLineOneRef->pointA.x << ", " << in_borderLineOneRef->pointA.y << ", " << in_borderLineOneRef->pointA.z << std::endl << " | " << in_borderLineOneRef->pointB.x << ", " << in_borderLineOneRef->pointB.y << ", " << in_borderLineOneRef->pointB.z << std::endl; std::cout << "Border Line 2 coords: " << in_borderLineTwoRef->pointA.x << ", " << in_borderLineTwoRef->pointA.y << ", " << in_borderLineTwoRef->pointA.z << std::endl << " | " << in_borderLineTwoRef->pointB.x << ", " << in_borderLineTwoRef->pointB.y << ", " << in_borderLineTwoRef->pointB.z << std::endl; } glm::vec3 centroidPoint = findCentroid(in_borderLineOneRef->pointA, in_borderLineOneRef->pointB, in_borderLineTwoRef->pointB); calculatePlanarVector(in_borderLineOneRef, centroidPoint); calculatePlanarVector(in_borderLineTwoRef, centroidPoint); } void SPoly::findPlanarVectorsForThreeBorderLines(SPolyBorderLines* in_borderLineOneRef, SPolyBorderLines* in_borderLineTwoRef, SPolyBorderLines* in_borderLineThreeRef) { if (debugFlag == 1) { std::cout << "Finding planar vectors for single triangle..." << std::endl; } glm::vec3 centroidPoint = findCentroid(in_borderLineOneRef->pointA, in_borderLineTwoRef->pointA, in_borderLineThreeRef->pointA); calculatePlanarVector(in_borderLineOneRef, centroidPoint); calculatePlanarVector(in_borderLineTwoRef, centroidPoint); calculatePlanarVector(in_borderLineThreeRef, centroidPoint); } glm::vec3 SPoly::findCentroid(glm::vec3 in_point0, glm::vec3 in_point1, glm::vec3 in_point2) { glm::vec3 foundCentroid; foundCentroid.x = (in_point0.x + in_point1.x + in_point2.x) / 3; foundCentroid.y = (in_point0.y + in_point1.y + in_point2.y) / 3; foundCentroid.z = (in_point0.z + in_point1.z + in_point2.z) / 3; //std::cout << "Centroid X: " << foundCentroid.x << std::endl; //std::cout << "Centroid y: " << foundCentroid.y << std::endl; return foundCentroid; } void SPoly::calculatePlanarVector(SPolyBorderLines* in_borderLineRef, glm::vec3 in_centroidPoint) { // NOTE: this function requires all points to be coplanar on Z-plane. glm::vec3 pointACopy = in_borderLineRef->pointA; glm::vec3 pointBCopy = in_borderLineRef->pointB; glm::vec3 centroidPointCopy = in_centroidPoint; // get a copy of the centroid input parameter, so that we may modify it if (debugFlag == 1) { std::cout << "Pre-translate point A: " << pointACopy.x << ", " << pointACopy.y << ", " << pointACopy.z << ", " << std::endl; std::cout << "Pre-translate point B: " << pointBCopy.x << ", " << pointBCopy.y << ", " << pointBCopy.z << ", " << std::endl; std::cout << "Centroid point: " << in_centroidPoint.x << ", " << in_centroidPoint.y << ", " << in_centroidPoint.z << std::endl; } // first, check for point translation PointTranslationCheck pointCheck; pointCheck.performCheck(in_borderLineRef->pointA); if (pointCheck.requiresTranslation == 1) { glm::vec3 translationValue = pointCheck.getTranslationValue(); pointACopy += translationValue; pointBCopy += translationValue; centroidPointCopy += translationValue; } // at this point, point A and B of line and the centroid itself should be translated, with point A at 0,0,0. So get the midpoint between A and B, // which is equal to point B / 2. if (debugFlag == 1) { std::cout << "Post-translate (1) point A: " << pointACopy.x << ", " << pointACopy.y << ", " << pointACopy.z << ", " << std::endl; std::cout << "Post-translate (1) point B: " << pointBCopy.x << ", " << pointBCopy.y << ", " << pointBCopy.z << ", " << std::endl; std::cout << "Centroid point (2) : " << centroidPointCopy.x << ", " << centroidPointCopy.y << ", " << centroidPointCopy.z << std::endl; } // the planar vector should now equal whatever value the centroid is at in_borderLineRef->planarVector = QuatUtils::findOrientatedLineNormal(pointACopy, pointBCopy, centroidPointCopy); if (debugFlag == 1) { std::cout << "Post-translate point A: " << pointACopy.x << ", " << pointACopy.y << ", " << pointACopy.z << ", " << std::endl; std::cout << "Post-translate point B: " << pointBCopy.x << ", " << pointBCopy.y << ", " << pointBCopy.z << ", " << std::endl; std::cout << "Post-translate Centroid point: " << centroidPointCopy.x << ", " << centroidPointCopy.y << ", " << centroidPointCopy.z << std::endl; std::cout << "!!! Final calculated planar vector is: " << in_borderLineRef->planarVector.x << ", " << in_borderLineRef->planarVector.y << ", " << in_borderLineRef->planarVector.z << std::endl; } } glm::vec3 SPoly::rotateForPlanarVectorCalc(glm::vec3* in_pointA, glm::vec3* in_pointB, glm::vec3* in_centroid) { if (debugFlag == 1) { std::cout << "Point A value: " << in_pointA->x << ", " << in_pointA->y << ", " << in_pointA->z << std::endl; std::cout << "Point B value: " << in_pointB->x << ", " << in_pointB->y << ", " << in_pointB->z << std::endl; std::cout << "Centroid value: " << in_centroid->x << ", " << in_centroid->y << ", " << in_centroid->z << std::endl; } float radians = 0.0f; float fullRadian360 = 6.28319f; float atan2result = atan2(in_pointB->y, in_pointB->x); // point A should be 0, so compare point B float firstPassRotateRadians; if (debugFlag == 1) { std::cout << "!!! Rotation value in radians is: " << atan2result << std::endl; } if (atan2result > 0.0) { //firstPassRotateRadians = fullRadian360 - atan2result; firstPassRotateRadians = atan2result; } else if (atan2result < 0.0) // if a is less than 0, add the result to fullRadian360 to get the amount to rotate by. (the quat goes CW when the rotation axis is pointing in a positive direction) { //firstPassRotateRadians = abs(atan2result); firstPassRotateRadians = fullRadian360 + atan2result; } if (debugFlag == 1) { std::cout << "##### First Pass rotate radians: " << firstPassRotateRadians << std::endl; } glm::vec3 rotationAroundZ; rotationAroundZ.z = -1.0f; QuatRotationRecord s1record(firstPassRotateRadians, rotationAroundZ); glm::quat originalQuat = s1record.returnOriginalRotation(); // apply the quat to all 3 points (the two line points, and the centroid) *in_pointA = originalQuat * *in_pointA; *in_pointB = originalQuat * *in_pointB; *in_centroid = originalQuat * *in_centroid; if (debugFlag == 1) { std::cout << "----------------Post original quat rotation: " << std::endl; std::cout << "Point A value: " << in_pointA->x << ", " << in_pointA->y << ", " << in_pointA->z << std::endl; std::cout << "Point B value: " << in_pointB->x << ", " << in_pointB->y << ", " << in_pointB->z << std::endl; std::cout << "Centroid value: " << in_centroid->x << ", " << in_centroid->y << ", " << in_centroid->z << std::endl; } // determine the vector, store it glm::vec3 planarVector; if (in_centroid->y < in_pointA->y) // planar vector was found in -y space { planarVector.y = -1.0f; } else if (in_centroid->y > in_pointA->y) { planarVector.y = 1.0f; } if (debugFlag == 1) { std::cout << "!! Planar vector before rotate-back: " << planarVector.x << ", " << planarVector.y << ", " << planarVector.z << std::endl; } glm::quat reverseQuat = s1record.returnReverseRotation(); planarVector = reverseQuat * planarVector; if (debugFlag == 1) { std::cout << "!! Planar vector post rotate-back: " << planarVector.x << ", " << planarVector.y << ", " << planarVector.z << std::endl; } return planarVector; } void SPoly::addBorderLine(STriangleLine in_triangleLine) { SPolyBorderLines newBorderLine; newBorderLine.pointA = in_triangleLine.pointA; newBorderLine.pointB = in_triangleLine.pointB; //std::cout << "!!! Added border line: (" << numberOfSPolyBorderLines << "): " << newBorderLine.pointA.x << ", " << newBorderLine.pointA.y << ", " << newBorderLine.pointA.z << " | " << newBorderLine.pointB.x << ", " << newBorderLine.pointB.y << ", " << newBorderLine.pointB.z << std::endl; borderLines[numberOfSPolyBorderLines++] = newBorderLine; } int SPoly::getNextBorderLineID(int in_currentBorderLineID, CyclingDirection in_direction) { int returnID = 0; //std::cout << "Fetching next border line ID..." << std::endl; if (in_direction == CyclingDirection::FORWARD) { //std::cout << "!! Entered branch for forward. " << std::endl; int lastIndex = numberOfSPolyBorderLines - 1; if (in_currentBorderLineID == lastIndex) { returnID = 0; } else if (in_currentBorderLineID != lastIndex) { returnID = in_currentBorderLineID += 1; } } else if (in_direction == CyclingDirection::REVERSE) { //std::cout << "!! Entered branch for reverse. " << std::endl; int firstIndex = 0; if (in_currentBorderLineID == firstIndex) { returnID = (numberOfSPolyBorderLines - 1); } else if (in_currentBorderLineID != firstIndex) { returnID = in_currentBorderLineID -= 1; } } else if (in_direction == CyclingDirection::NOVAL) { std::cout << "!!! WARNING, no direction detected. " << std::endl; int haltVal = 3; while (haltVal == 3) { } } return returnID; } glm::vec3 SPoly::getBorderLineEndpoint(int in_currentBorderLineID, CyclingDirection in_direction) { glm::vec3 returnPoint; auto doesIDExist = borderLines.find(in_currentBorderLineID); if (doesIDExist == borderLines.end())// wasn't found { std::cout << "(SPoly): Warning: current border Line ID of " << in_currentBorderLineID << " was not found. " << std::endl; } if (in_direction == CyclingDirection::FORWARD) { returnPoint = borderLines[in_currentBorderLineID].pointB; } else if (in_direction == CyclingDirection::REVERSE) { returnPoint = borderLines[in_currentBorderLineID].pointA; } return returnPoint; } void SPoly::addTriangle(STriangle in_triangle) { triangles[numberOfTriangles++] = in_triangle; } void SPoly::addCategorizedLine(CategorizedLine in_line) { if (in_line.type == IntersectionType::A_SLICE) { addSlicedCleave(currentCleaveIndex, in_line); std::cout << "Adding slice cleave..." << std::endl; } else { // add other line types, but check to see if it completes a cleave after the add std::cout << "!! No slice detected...performing alternate route" << std::endl; //categorizedLineMap[categorizedLineMap.size()] = in_line; // insert the line insertCalibratedLine(in_line); } } void SPoly::insertCalibratedLine(CategorizedLine in_line) { int currentSize = int(categorizedLineMap.size()); if (currentSize > 0) // if it isn't the first one, do this { // do this if the groupID is the same CategorizedLine* previousLine = &categorizedLineMap[int(categorizedLineMap.size()) - 1]; CategorizedLine candidateLine = in_line; // the candidate line if (previousLine->line.lineGroupID == candidateLine.line.lineGroupID) { // add a line with the same group ID glm::vec3 previousEndpoint = previousLine->line.pointB; std::cout << "!!! WARNING, values are: " << std::endl; /* if (candidateLine.line.pointA != previousEndpoint) { // perform swapping; grab values for point B glm::vec3 swapPoint = candidateLine.line.pointB; short swapBorder = candidateLine.line.isPointBOnBorder; short swapBorderValue = candidateLine.line.pointBBorder; // copy A into B candidateLine.line.pointB = candidateLine.line.pointA; candidateLine.line.isPointBOnBorder = candidateLine.line.isPointAOnBorder; candidateLine.line.pointBBorder = candidateLine.line.pointABorder; candidateLine.line.pointA = swapPoint; candidateLine.line.isPointAOnBorder = swapBorder; candidateLine.line.pointABorder = swapBorderValue; } */ categorizedLineMap[int(categorizedLineMap.size())] = candidateLine; // insert the newly formed line } //categorizedLineMap[categorizedLineMap.size()] = in_line; else if (previousLine->line.lineGroupID != candidateLine.line.lineGroupID) { // move the previous group, and THEN add a line with the new group ID constructCleaveLine(); categorizedLineMap[int(categorizedLineMap.size())] = candidateLine; } } else if (currentSize == 0) // if it is the first one, do this { categorizedLineMap[int(categorizedLineMap.size())] = in_line; // insert the line } //categorizedLineMap[categorizedLineMap.size()] = in_line; // insert the line } void SPoly::addSlicedCleave(int in_currentCleaveIndex, CategorizedLine in_categorizedLine) { //cleaveMap[in_currentCleaveIndex].cleavingLines[0] = in_categorizedLine; cleaveMap[in_currentCleaveIndex].insertLineAtIndex(0, in_categorizedLine); //cleaveMap[in_currentCleaveIndex].insertNewLine(in_categorizedLine); currentCleaveIndex++; } int SPoly::checkForNewCleaves() { int returnValue = 0; int totalBorderLines = 0; // the total border lines discovered during this check of the map for (int x = 0; x < categorizedLineMap.size(); x++) { if (categorizedLineMap[x].line.numberOfBorderLines == 1) { totalBorderLines++; } } std::cout << "Total border lines found: " << totalBorderLines << std::endl; if (totalBorderLines == 2) // if the map currently has two border lines in it, it's technically a cleave. { returnValue = 1; } return returnValue; } void SPoly::moveLastCleave() { //std::cout << "Checking for last cleave..." << std::endl; if (categorizedLineMap.size() != 0) // are there any lines left? { //std::cout << "!!!! Lines found to form into a final cleave. " << std::endl; /* organizeCurrentCleaveLines(); // make sure the lines are in the appropriate order, before moving the last cleave. int numberOfLines = categorizedLineMap.size(); std::cout << "!!!! Number of lines being added: " << numberOfLines << std::endl; for (int x = 0; x < numberOfLines; x++) { cleaveMap[currentCleaveIndex].cleavingLines[x] = categorizedLineMap[x]; // insert the line } determineCleaveType(currentCleaveIndex); // always determine the cleave type when adding new cleaves std::cout << "Lines inserted into cleaveMap index: " << currentCleaveIndex << std::endl; categorizedLineMap.clear(); // wipe out the categorized line map */ constructCleaveLine(); } } InvalidCleaveSequences SPoly::buildCleaveSequences(CleaveSequenceMergeMode in_cleaveSequenceMergeMode, BoundaryOrientation in_optionalOrientation, ExceptionRecorder* in_exceptionRecorderRef) { //std::cout << "############################### BUILDING CLEAVE SEQUENCES ################################### " << std::endl; InvalidCleaveSequences retrievedInvalids; sequenceFactory.setFactoryBoundaryOrientationOption(in_optionalOrientation); if (sequenceFactory.doesFactoryContainLines() == true) // only do this if there are actually lines to work on { //std::cout << "!! Constructing Cleave Sequences. " << std::endl; retrievedInvalids = sequenceFactory.constructAndExportCleaveSequences(&cleaveMap, borderLines, massManipulationSetting, in_cleaveSequenceMergeMode, in_exceptionRecorderRef); if (retrievedInvalids.containsSequnces == true) { std::cout << "!!! CleaveSequence construction unsuccessful; preparing to perform alternate action. " << std::endl; std::cout << "!!! Border lines of this SPoly are: " << std::endl; printBorderLines(); std::cout << "!!! Points of this SPoly are: " << std::endl; printPoints(); //int alternateWait = 3; //std::cin >> alternateWait; } //std::cout << "!! Done Constructing Cleave Sequences. " << std::endl; } return retrievedInvalids; } void SPoly::constructCleaveLine() { //std::cout << "Cleave is 'CONNECTED' type, continuing..." << std::endl; organizeCurrentCleaveLines(); int numberOfLines = int(categorizedLineMap.size()); // take all the current categorized lines and form a new cleave line for (int x = 0; x < numberOfLines; x++) { //cleaveMap[currentCleaveIndex].cleavingLines[x] = categorizedLineMap[x]; cleaveMap[currentCleaveIndex].insertLineAtIndex(x, categorizedLineMap[x]); } // take the lines from the newly formed cleave line, and check if they intercept any border lines int cleaveTypeResult = determineCleaveTypeAndRegisterCatLines(currentCleaveIndex); // simple warning, not needed logic. if (cleaveTypeResult == 0) { std::cout << "WARNING, CLEAVE IS DISCONNECTED!!! " << std::endl; } // remove the categorized lines, since they were just used to produce a new cleave line. categorizedLineMap.clear(); //if (cleaveTypeResult == 1) // only increment if there was a valid cleave. //{ //currentCleaveIndex++; //} } void SPoly::organizeCurrentCleaveLines() { int numberOfLines = int(categorizedLineMap.size()); if (numberOfLines > 1) // re-organization should only happen when the number of lines is greater than 1 { std::map<int, CategorizedLine> tempLineMap; // will store the temp lines into the map int firstFoundLineWithBorder = 0; // Step 1: find the index of the first one to swap out. for (int x = 0; x < numberOfLines; x++) { if (categorizedLineMap[x].line.numberOfBorderLines >= 1) // find the first index { firstFoundLineWithBorder = x; //std::cout << "^^ First found line with border is: " << x << std::endl; break; } } CategorizedLine firstFound = categorizedLineMap[firstFoundLineWithBorder]; // Step 2: get a copy of the first found line, and make sure it's swapped so that point A is the one with the border line. firstFound.line.swapBorderToA(); // call this, in case point B (and not A) is on the border. glm::vec3 pointToFind = firstFound.line.pointB; // Step 3: get the point B of our line; search for it in the map categorizedLineMap.erase(firstFoundLineWithBorder); // Step 4: erase the first line we found that we used, from the original map. int tempLineMapCurrentIndex = 0; tempLineMap[tempLineMapCurrentIndex++] = firstFound; // Step 5: store the very first line in the new map int remainingLineCount = numberOfLines - 1; // Loop through the remaining original lines for (int x = 0; x < remainingLineCount; x++) { auto mapIter = categorizedLineMap.begin(); auto mapEnd = categorizedLineMap.end(); int oldIndexToRemove = 0; // the index value of the line that will be removed at the end of the loop. int removalFlag = 0; // only remove if this flag is = 1 for (mapIter; mapIter != mapEnd; mapIter++) { // use IRPointType result to determine what to do IRPointType resultingType = IRPointType::NEITHER; // make the compiler happy resultingType = mapIter->second.checkIfPointIsInLine(pointToFind); if (resultingType == IRPointType::POINT_A) // the point is in the correct position, just add the line, remove it from the old map, and make the new point to find equal to this line's B. { //std::cout << "CASE, POINT A HIT" << std::endl; tempLineMap[tempLineMapCurrentIndex] = mapIter->second; // insert the line oldIndexToRemove = mapIter->first; // get the old line's index pointToFind = tempLineMap[tempLineMapCurrentIndex].line.pointB; // set the new point to find tempLineMapCurrentIndex++; // increment ONLY after we are all done above removalFlag = 1; break; } else if (resultingType == IRPointType::POINT_B) // the point was found, but it's backwards. Need to swap it, and then set the values. { //std::cout << "CASE, POINT B HIT" << std::endl; tempLineMap[tempLineMapCurrentIndex] = mapIter->second; // insert the line oldIndexToRemove = mapIter->first; // get the old line's index //std::cout << "Old values || Point A: " << tempLineMap[tempLineMapCurrentIndex].line.pointA.x << ", " << tempLineMap[tempLineMapCurrentIndex].line.pointA.y << ", " << tempLineMap[tempLineMapCurrentIndex].line.pointA.z << " | " << tempLineMap[tempLineMapCurrentIndex].line.pointB.x << ", " << tempLineMap[tempLineMapCurrentIndex].line.pointB.y << ", " << tempLineMap[tempLineMapCurrentIndex].line.pointB.z << std::endl; tempLineMap[tempLineMapCurrentIndex].line.swapToA(); // swap the points pointToFind = tempLineMap[tempLineMapCurrentIndex].line.pointB; // set the new point to find //std::cout << "New values || Point A: " << tempLineMap[tempLineMapCurrentIndex].line.pointA.x << ", " << tempLineMap[tempLineMapCurrentIndex].line.pointA.y << ", " << tempLineMap[tempLineMapCurrentIndex].line.pointA.z << " | " << tempLineMap[tempLineMapCurrentIndex].line.pointB.x << ", " << tempLineMap[tempLineMapCurrentIndex].line.pointB.y << ", " << tempLineMap[tempLineMapCurrentIndex].line.pointB.z << std::endl; tempLineMapCurrentIndex++; removalFlag = 1; break; } } //std::cout << "!!! map loop complete. " << std::endl; if (removalFlag == 1) { categorizedLineMap.erase(oldIndexToRemove); } } std::cout << "### !!! categorizedLineMap reorganized; Old map size is now: " << categorizedLineMap.size() << std::endl; auto tempMapBegin = tempLineMap.begin(); auto tempMapEnd = tempLineMap.end(); for (tempMapBegin; tempMapBegin != tempMapEnd; tempMapBegin++) { int indexToInsert = tempMapBegin->first; categorizedLineMap[indexToInsert] = tempMapBegin->second; } printLines(); std::cout << "!!!! New organization values: " << std::endl; } } void SPoly::loadTrianglesAndBorderLinesIntoQuatPoints(QuatRotationPoints* in_quatRotationPointsRef) { // load STriangles. auto trianglesBegin = triangles.begin(); auto trianglesEnd = triangles.end(); for (; trianglesBegin != trianglesEnd; trianglesBegin++) { for (int x = 0; x < 3; x++) { in_quatRotationPointsRef->insertPointRefs(&trianglesBegin->second.triangleLines[x].pointA, &trianglesBegin->second.triangleLines[x].pointB); } } // load SPolyBorderLines. auto borderLinesBegin = borderLines.begin(); auto borderLinesEnd = borderLines.end(); for (; borderLinesBegin != borderLinesEnd; borderLinesBegin++) { in_quatRotationPointsRef->insertPointRefs(&borderLinesBegin->second.pointA, &borderLinesBegin->second.pointB); } // load CleaveSequence data sequenceFactory.loadCategorizedLineMapReferencesIntoQuatPointsExcludeEmptyNormals(in_quatRotationPointsRef); } void SPoly::loadPrimalsTrianglesAndBordersIntoQuatPoints(QuatRotationPoints* in_quatRotationPointsRef) { // load the primals in_quatRotationPointsRef->insertPointRefs(&primePoint0, &primePoint1, &primePoint2); // load STriangles. auto trianglesBegin = triangles.begin(); auto trianglesEnd = triangles.end(); for (; trianglesBegin != trianglesEnd; trianglesBegin++) { // load the lines of each STriangle for (int x = 0; x < 3; x++) { in_quatRotationPointsRef->insertPointRefs(&trianglesBegin->second.triangleLines[x].pointA, &trianglesBegin->second.triangleLines[x].pointB); } } // load SPolyBorderLines. auto borderLinesBegin = borderLines.begin(); auto borderLinesEnd = borderLines.end(); for (; borderLinesBegin != borderLinesEnd; borderLinesBegin++) { in_quatRotationPointsRef->insertPointRefs(&borderLinesBegin->second.pointA, &borderLinesBegin->second.pointB); } } void SPoly::loadAllIntoQuatPoints(QuatRotationPoints* in_quatRotationPointsRef) { // load the primals in_quatRotationPointsRef->insertPointRefs(&primePoint0, &primePoint1, &primePoint2); // load STriangles. auto trianglesBegin = triangles.begin(); auto trianglesEnd = triangles.end(); for (; trianglesBegin != trianglesEnd; trianglesBegin++) { // load the lines of each STriangle for (int x = 0; x < 3; x++) { in_quatRotationPointsRef->insertPointRefs(&trianglesBegin->second.triangleLines[x].pointA, &trianglesBegin->second.triangleLines[x].pointB); } } // load SPolyBorderLines. auto borderLinesBegin = borderLines.begin(); auto borderLinesEnd = borderLines.end(); for (; borderLinesBegin != borderLinesEnd; borderLinesBegin++) { in_quatRotationPointsRef->insertPointRefs(&borderLinesBegin->second.pointA, &borderLinesBegin->second.pointB); } // load CleaveSequence data sequenceFactory.loadCategorizedLineMapReferencesIntoQuatPointsExcludeEmptyNormals(in_quatRotationPointsRef); } void SPoly::loadEmptyNormalsIntoQuatPoints(QuatRotationPoints* in_quatRotationPointsRef) { sequenceFactory.loadCategorizedLineEmptyNormalsIntoQuatPoints(in_quatRotationPointsRef); } int SPoly::determineCleaveTypeAndRegisterCatLines(int in_cleaveIndexID) { // determine the type here; first get the CleaveSequence //std::cout << "!! 1: cleaveMap size before ref: " << cleaveMap.size() << std::endl; CleaveSequence* cleaveSequenceRef = &cleaveMap[in_cleaveIndexID]; //std::cout << "!! 1: cleaveMap size after ref: " << cleaveMap.size() << std::endl; int numberOfCategorizedLines = int(cleaveSequenceRef->cleavingLines.size()); // first, determine the type..CONNECTED or DISCONNECTED int currentBorderLineCount = 0; // the return value of this function. int isConnected = 1; // default: assume it will be connected. // in the below, get the number of border lines from the current categorized line. std::cout << "Number of categorized lines: " << numberOfCategorizedLines << std::endl; for (int x = 0; x < numberOfCategorizedLines; x++) { //auto currentCatLine = &cleaveSequenceRef->cleavingLines[x]; // get a ref to the current categorized line auto currentCatLine = cleaveSequenceRef->getCategorizedLineRef(x); if (currentCatLine->line.numberOfBorderLines > 0) // register any intercepts { currentBorderLineCount += currentCatLine->line.numberOfBorderLines; } } if (currentBorderLineCount > 0) // it is CONNECTED { for (int x = 0; x < numberOfCategorizedLines; x++) { //auto currentCatLine = &cleaveSequenceRef->cleavingLines[x]; // get a ref to the current categorized line auto currentCatLine = cleaveSequenceRef->getCategorizedLineRef(x); if (currentCatLine->line.numberOfBorderLines > 0) // register any intercepts { registerIntersectingCatLine(x, *currentCatLine); } } currentCleaveIndex++; } else if (currentBorderLineCount == 0) // it is DISCONNECTED { std::cout << "!!!! WARNING !!!! Disconnected cleave line detected; disregard this cleave line until next pass!!" << std::endl; isConnected = 0; // it is disconnected. cleaveMap.erase(in_cleaveIndexID); // remove the referenced map member; referenced members of maps are instantiated if they aren't yet created, so we have to delete it. } return isConnected; } void SPoly::registerIntersectingCatLine(int lineIndex, CategorizedLine in_line) { // determine how we will insert if (in_line.line.numberOfBorderLines == 1) // one border line { if (in_line.line.isPointAOnBorder == 1) // work with point A { insertIntersectingCatLine(in_line.line.pointABorder, in_line.line.lineGroupID, lineIndex, IRPointType::POINT_A, in_line.line.pointA); // register point A } else if (in_line.line.isPointBOnBorder == 1) { insertIntersectingCatLine(in_line.line.pointBBorder, in_line.line.lineGroupID, lineIndex, IRPointType::POINT_B, in_line.line.pointB); // " " B } } else if (in_line.line.numberOfBorderLines == 2) { // register both std::cout << "!! CONNECTED LINE: NUmber of border lines is equal to 2!" << std::endl; insertIntersectingCatLine(in_line.line.pointABorder, in_line.line.lineGroupID, lineIndex, IRPointType::POINT_A, in_line.line.pointA); insertIntersectingCatLine(in_line.line.pointBBorder, in_line.line.lineGroupID, lineIndex, IRPointType::POINT_B, in_line.line.pointB); } } void SPoly::insertIntersectingCatLine(int in_borderLineID, int in_catLineGroupID, int in_catLineID, IRPointType point_type, glm::vec3 in_point) { intercepts.insertCatLine(in_borderLineID, in_catLineGroupID, in_catLineID, point_type, in_point); } void SPoly::printLines() { int cleaveCheck = checkForNewCleaves(); // are there new cleaves to process? if (cleaveCheck == 1) { std::cout << "Performing cleaving logic...analyzing lines: " << std::endl; for (int x = 0; x < categorizedLineMap.size(); x++) { std::cout << x << ": " << categorizedLineMap[x].line.pointA.x << ", " << categorizedLineMap[x].line.pointA.y << "," << categorizedLineMap[x].line.pointA.z << " | " << categorizedLineMap[x].line.pointB.x << ", " << categorizedLineMap[x].line.pointB.y << ", " << categorizedLineMap[x].line.pointB.z << std::endl; } } } void SPoly::printPoints() { for (int x = 0; x < numberOfSPolyBorderLines; x++) { std::cout << "Point " << x << ": " << borderLines[x].pointA.x << ", " << borderLines[x].pointA.y << ", " << borderLines[x].pointA.z << std::endl; } } void SPoly::printBorderLines() { for (int x = 0; x < numberOfSPolyBorderLines; x++) { std::cout << "|||| Border Line " << x << std::endl; std::cout << "| point A: " << borderLines[x].pointA.x << ", " << borderLines[x].pointA.y << ", " << borderLines[x].pointA.z << std::endl; std::cout << "| point B: " << borderLines[x].pointB.x << ", " << borderLines[x].pointB.y << ", " << borderLines[x].pointB.z << std::endl; } } void SPoly::printPlanarVectors() { std::cout << "|||| Printing planar vectors for border lines... " << std::endl; for (int x = 0; x < numberOfSPolyBorderLines; x++) { std::cout << "|||| Border Line " << x << std::endl; //std::cout << "| point A: " << borderLines[x].pointA.x << ", " << borderLines[x].pointA.y << ", " << borderLines[x].pointA.z << std::endl; //std::cout << "| point B: " << borderLines[x].pointB.x << ", " << borderLines[x].pointB.y << ", " << borderLines[x].pointB.z << std::endl; std::cout << "| Planar vector: " << borderLines[x].planarVector.x << ", " << borderLines[x].planarVector.y << ", " << borderLines[x].planarVector.z << std::endl; } } void SPoly::printAllCleaveLines() { std::cout << "$$$ beginning cleave line print " << std::endl; auto cleaveMapBegin = cleaveMap.begin(); auto cleaveMapEnd = cleaveMap.end(); if (cleaveMap.size() > 0) { for (cleaveMapBegin; cleaveMapBegin != cleaveMapEnd; cleaveMapBegin++) { std::cout << "####### Printing cleave line " << std::endl; int currentCleaveIndex = cleaveMapBegin->first; auto currentLinesBegin = cleaveMapBegin->second.cleavingLines.begin(); auto currentLinesEnd = cleaveMapBegin->second.cleavingLines.end(); for (currentLinesBegin; currentLinesBegin != currentLinesEnd; currentLinesBegin++) { std::cout << "[" << currentCleaveIndex << "] [" << currentLinesBegin->first << "] | Point A: (Group " << currentLinesBegin->second.line.lineGroupID << "): " << currentLinesBegin->second.line.pointA.x << ", " << currentLinesBegin->second.line.pointA.y << ", " << currentLinesBegin->second.line.pointA.z << " | Point B " << currentLinesBegin->second.line.pointB.x << ", " << currentLinesBegin->second.line.pointB.y << ", " << currentLinesBegin->second.line.pointB.z << " | Empty Normal: " << currentLinesBegin->second.emptyNormal.x << ", " << currentLinesBegin->second.emptyNormal.y << ", " << currentLinesBegin->second.emptyNormal.z << std::endl; // check the types. if (currentLinesBegin->second.type == IntersectionType::A_SLICE) { std::cout << "!!! This line is a SLICE " << std::endl; std::cout << "Point A border: " << currentLinesBegin->second.line.pointABorder << std::endl; std::cout << "Point B border: " << currentLinesBegin->second.line.pointBBorder << std::endl; } if (currentLinesBegin->second.type == IntersectionType::PARTIAL_BOUND) { std::cout << "!!! This line is a PARTIAL_BOUND " << std::endl; if (currentLinesBegin->second.line.isPointAOnBorder == 1) { std::cout << "Point A border: " << currentLinesBegin->second.line.pointABorder << " (Secondary ID: ) " << std::endl; } if (currentLinesBegin->second.line.isPointBOnBorder == 1) { std::cout << "Point B border: " << currentLinesBegin->second.line.pointBBorder << " (Secondary ID: ) " << std::endl; } } } } } else if (cleaveMap.empty()) { std::cout << ":::: NO cleave lines to print! :::: " << std::endl; } int someVal = 4; std::cout << "Printing all cleave lines complete, enter number to continue..." << std::endl; std::cin >> someVal; std::cout << "Testing...." << std::endl; } bool SPoly::wasSpecialLogicUsed() { bool used = false; auto cleaveMapBegin = cleaveMap.begin(); auto cleaveMapEnd = cleaveMap.end(); for (; cleaveMapBegin != cleaveMapEnd; cleaveMapBegin++) { if (cleaveMapBegin->second.specialLogicUsedFlag == true) { used = true; break; } } return used; } void SPoly::setDebugFlag(int in_debugFlagValue) { debugFlag = in_debugFlagValue; } CleaveSequenceCandidateListMap SPoly::buildCleaveSequenceCandidateListMap() { CleaveSequenceCandidateListMap returnMap; for (int x = 0; x < numberOfSPolyBorderLines; x++) { //std::cout << "|||| Candidate list for border line " << x << ": " << std::endl; SPolyBorderLines* borderLineRef = &borderLines[x]; auto recordsBegin = borderLineRef->intersectRecorder.records.begin(); auto recordsEnd = borderLineRef->intersectRecorder.records.end(); //candidateListMap.candidateMap[x]. for (; recordsBegin != recordsEnd; recordsBegin++) { //std::cout << "> " << recordsBegin->first << std::endl; //candidateListMap.candidateMap[x].insertCandidate(recordsBegin->first); returnMap.candidateMap[x].insertCandidate(recordsBegin->first); } } //std::cout << "!!!! Size of return map is : -> " << returnMap.candidateMap.size() << std::endl; return returnMap; } CleaveSequenceMetaTracker SPoly::buildCleaveSequenceMetaTracker() { CleaveSequenceMetaTracker returnTracker; auto cleaveBegin = cleaveMap.begin(); auto cleaveEnd = cleaveMap.end(); for (; cleaveBegin != cleaveEnd; cleaveBegin++) { CleaveSequenceMeta currentMeta = cleaveBegin->second.getCleaveSequenceMeta(); returnTracker.insertNewCleaveSequence(cleaveBegin->first, currentMeta); } return returnTracker; } void SPoly::clearInterceptRegistry() { auto borderLinesBegin = borderLines.begin(); auto borderLinesEnd = borderLines.end(); for (; borderLinesBegin != borderLinesEnd; borderLinesBegin++) { borderLinesBegin->second.intersectRecorder.records.clear(); } } void SPoly::applyDebugOptions(SPolyDOSet in_sPolyDOSet) { auto setBegin = in_sPolyDOSet.debugOptions.begin(); auto setEnd = in_sPolyDOSet.debugOptions.end(); for (; setBegin != setEnd; setBegin++) { if (*setBegin == SPolyDO::MAIN) { std::cout << "!!! ..> debug option for SPolyDO::MAIN encountered, continue? " << std::endl; int someVal = 3; std::cin >> someVal; } else if (*setBegin == SPolyDO::FACTORY) { sequenceFactory.setFactoryDebugLevel(PolyDebugLevel::DEBUG); } else if (*setBegin == SPolyDO::FACTORY_MERGER) { sequenceFactory.setMergerDebugLevel(PolyDebugLevel::DEBUG); } } } PointToMassRelationshipMap SPoly::generatePointToMassRelationshipMap() { PointToMassRelationshipMap returnMap; auto borderLinesBegin = borderLines.begin(); auto borderLinesEnd = borderLines.end(); for (; borderLinesBegin != borderLinesEnd; borderLinesBegin++) { glm::vec3 pointToInsert = borderLinesBegin->second.pointA; returnMap.insertNewPoint(pointToInsert); } return returnMap; } BorderLineLinkContainer SPoly::buildBuildBorderLineLinkContainer() { BorderLineLinkContainer returnContainer; glm::vec3 pointToCreateLinkFor; auto borderLinesBegin = borderLines.begin(); auto borderLinesEnd = borderLines.end(); int lastIndex = borderLines.rbegin()->first; // get the map value of the last border line int firstIndex = borderLines.begin()->first; for (; borderLinesBegin != borderLinesEnd; borderLinesBegin++) { glm::vec3 pointToInsert = borderLinesBegin->second.pointA; if (borderLinesBegin->first == firstIndex) // we're on the first line; the first link would be the last line in the map, second link would be the first line. { SPolyBorderLines* linkARef = &borderLines.find(lastIndex)->second; SPolyBorderLines* linkBRef = &borderLines.find(firstIndex)->second; BorderLineLink newLink(pointToInsert, linkARef, linkBRef); returnContainer.insertBorderLineLink(newLink); } else // all other lines, that aren't the first line, simply get the line behind it (whatever occurred previously), as the first link. { SPolyBorderLines* linkARef = &borderLines.find(borderLinesBegin->first - 1)->second; SPolyBorderLines* linkBRef = &borderLines.find(borderLinesBegin->first)->second; BorderLineLink newLink(pointToInsert, linkARef, linkBRef); returnContainer.insertBorderLineLink(newLink); } } return returnContainer; }
[ "bigans01@gmail.com" ]
bigans01@gmail.com
761a2ffb4459d65aca0e9453f53a6104f31391fe
6d05f11c55ea277a08fc375b1c5af5ecc076000b
/paddle/fluid/operators/fused/fused_gemm_epilogue_op.h
f3b21b144cdb1be259b6588d36cc376c8766dcfe
[ "Apache-2.0" ]
permissive
sfraczek/Paddle
8602df1b11937400f93ac5861a366226208a6f05
d1e2c61b22b9675adc3c4a52227d2220babaa001
refs/heads/develop
2023-04-04T22:52:42.629243
2023-03-16T12:06:10
2023-03-16T12:06:10
140,574,617
0
0
Apache-2.0
2019-03-26T15:54:00
2018-07-11T12:51:20
C++
UTF-8
C++
false
false
39,689
h
/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. Copyright (c) 2022 NVIDIA 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. */ #pragma once #include <algorithm> #include <mutex> #include <unordered_map> #ifdef PADDLE_WITH_CUDA #include <cuda_runtime_api.h> // NOLINT #include "cuda.h" // NOLINT #if CUDA_VERSION >= 11060 #include "gflags/gflags.h" #include "paddle/fluid/framework/scope_guard.h" #include "paddle/fluid/memory/memory.h" #include "paddle/fluid/platform/dynload/cublasLt.h" #include "paddle/fluid/platform/enforce.h" #include "paddle/fluid/platform/float16.h" #include "paddle/phi/backends/all_context.h" #include "paddle/phi/backends/gpu/cuda/cuda_helper.h" #include "paddle/phi/common/amp_type_traits.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/utils/optional.h" DECLARE_int64(cublaslt_exhaustive_search_times); namespace paddle { namespace operators { class GemmEpilogueAlgoCache { public: static GemmEpilogueAlgoCache& Instance() { static GemmEpilogueAlgoCache instance( FLAGS_cublaslt_exhaustive_search_times); return instance; } GemmEpilogueAlgoCache(GemmEpilogueAlgoCache const&) = delete; void operator=(GemmEpilogueAlgoCache const&) = delete; cublasLtMatmulAlgo_t* GetGemmAlgo(cublasLtHandle_t lt_handle, cublasLtMatmulDesc_t op_desc, cublasLtMatrixLayout_t a_desc, cublasLtMatrixLayout_t b_desc, cublasLtMatrixLayout_t c_desc, const void* alpha, const void* beta, const void* a, const void* b, void* c, cudaStream_t stream, void* workspace, size_t workspace_size) { if (search_times_ <= 0) return nullptr; int64_t seed = 0; std::hash<int64_t> hash_fn; HashMatmulDesc_(op_desc, &seed, hash_fn); HashMatrixLayoutDesc_(a_desc, &seed, hash_fn); HashMatrixLayoutDesc_(b_desc, &seed, hash_fn); HashMatrixLayoutDesc_(c_desc, &seed, hash_fn); cublasLtMatmulAlgo_t ret; { std::lock_guard<std::mutex> lock(cache_mutex_); auto it = map_.find(seed); if (it != map_.end()) { return &(it->second); } } cublasLtMatmulPreference_t preference; PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulPreferenceCreate(&preference)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulPreferenceSetAttribute( preference, CUBLASLT_MATMUL_PREF_MAX_WORKSPACE_BYTES, &workspace_size, sizeof(workspace_size))); int returned_results = 0; std::vector<cublasLtMatmulHeuristicResult_t> heuristic_results( requested_algo_count_); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulAlgoGetHeuristic( lt_handle, op_desc, a_desc, b_desc, c_desc, c_desc, preference, requested_algo_count_, heuristic_results.data(), &returned_results)); PADDLE_ENFORCE_GT( returned_results, 0, platform::errors::Unavailable("No GEMM epilogue algorithm support!")); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulPreferenceDestroy(preference)); int best_algo_idx = -1; float best_algo_time = 0; // Run 100 times for warmup int warmup_algo_idx = 0; for (int t = 0; t < 100; t++) { cublasStatus_t status = platform::dynload::cublasLtMatmul( lt_handle, op_desc, alpha, a, a_desc, b, b_desc, beta, c, c_desc, c, c_desc, &heuristic_results[warmup_algo_idx].algo, workspace, workspace_size, stream); if (status != CUBLAS_STATUS_SUCCESS) { t = -1; warmup_algo_idx += 1; if (warmup_algo_idx == requested_algo_count_) { PADDLE_THROW(platform::errors::Unavailable( "No GEMM epilogue algorithm support!")); } } } cudaEvent_t start_event, stop_event; PADDLE_ENFORCE_GPU_SUCCESS(cudaEventCreate(&start_event)); PADDLE_ENFORCE_GPU_SUCCESS(cudaEventCreate(&stop_event)); for (int algo_idx = 0; algo_idx < returned_results; ++algo_idx) { float curr_time = 0; for (int check_idx = 0; check_idx < search_times_; check_idx++) { float time = 0; PADDLE_ENFORCE_GPU_SUCCESS(cudaEventRecord(start_event, stream)); cublasStatus_t status = platform::dynload::cublasLtMatmul(lt_handle, op_desc, alpha, a, a_desc, b, b_desc, beta, c, c_desc, c, c_desc, &heuristic_results[algo_idx].algo, workspace, workspace_size, stream); PADDLE_ENFORCE_GPU_SUCCESS(cudaEventRecord(stop_event, stream)); PADDLE_ENFORCE_GPU_SUCCESS(cudaEventSynchronize(stop_event)); PADDLE_ENFORCE_GPU_SUCCESS( cudaEventElapsedTime(&time, start_event, stop_event)); curr_time += time; if (status != CUBLAS_STATUS_SUCCESS) { curr_time = 3.40282e+038; // Max Value of float break; } } curr_time = curr_time / search_times_; if (curr_time < best_algo_time || algo_idx == 0) { best_algo_idx = algo_idx; best_algo_time = curr_time; } } PADDLE_ENFORCE_GPU_SUCCESS(cudaEventDestroy(start_event)); PADDLE_ENFORCE_GPU_SUCCESS(cudaEventDestroy(stop_event)); if (best_algo_idx == -1) { PADDLE_THROW( platform::errors::Unavailable("No GEMM epilogue algorithm support!")); } ret = heuristic_results[best_algo_idx].algo; VLOG(4) << "Search time:" << search_times_ << ", hash-key (" << seed << ") not found in GemmEpilogueAlgoCache"; std::lock_guard<std::mutex> lock(cache_mutex_); auto& algo_in_map = map_[seed]; algo_in_map = ret; return &algo_in_map; } private: explicit GemmEpilogueAlgoCache(int search_times) : search_times_(search_times) { map_.clear(); } std::unordered_map<int64_t, cublasLtMatmulAlgo_t> map_; int search_times_; const int requested_algo_count_ = 10; std::mutex cache_mutex_; void HashMatmulDesc_(cublasLtMatmulDesc_t desc, int64_t* seed, const std::hash<int64_t>& hash_fn) { size_t size_to_write; int trans_a, trans_b; uint32_t epilogue; PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescGetAttribute( desc, CUBLASLT_MATMUL_DESC_TRANSA, &trans_a, sizeof(trans_a), &size_to_write)); HashValue_(seed, hash_fn, static_cast<int64_t>(trans_a)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescGetAttribute( desc, CUBLASLT_MATMUL_DESC_TRANSB, &trans_b, sizeof(trans_b), &size_to_write)); HashValue_(seed, hash_fn, static_cast<int64_t>(trans_b)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescGetAttribute( desc, CUBLASLT_MATMUL_DESC_EPILOGUE, &epilogue, sizeof(epilogue), &size_to_write)); HashValue_(seed, hash_fn, static_cast<int64_t>(epilogue)); } void HashMatrixLayoutDesc_(cublasLtMatrixLayout_t desc, int64_t* seed, const std::hash<int64_t>& hash_fn) { size_t size_to_write; uint32_t dtype; int32_t batch; uint64_t row, col; int64_t ld, batch_offset; PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutGetAttribute( desc, CUBLASLT_MATRIX_LAYOUT_TYPE, &dtype, sizeof(dtype), &size_to_write)); HashValue_(seed, hash_fn, static_cast<int64_t>(dtype)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutGetAttribute( desc, CUBLASLT_MATRIX_LAYOUT_BATCH_COUNT, &batch, sizeof(batch), &size_to_write)); HashValue_(seed, hash_fn, static_cast<int64_t>(batch)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutGetAttribute( desc, CUBLASLT_MATRIX_LAYOUT_ROWS, &row, sizeof(row), &size_to_write)); HashValue_(seed, hash_fn, static_cast<int64_t>(row)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutGetAttribute( desc, CUBLASLT_MATRIX_LAYOUT_COLS, &col, sizeof(col), &size_to_write)); HashValue_(seed, hash_fn, static_cast<int64_t>(col)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutGetAttribute( desc, CUBLASLT_MATRIX_LAYOUT_LD, &ld, sizeof(ld), &size_to_write)); HashValue_(seed, hash_fn, static_cast<int64_t>(ld)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutGetAttribute( desc, CUBLASLT_MATRIX_LAYOUT_STRIDED_BATCH_OFFSET, &batch_offset, sizeof(batch_offset), &size_to_write)); HashValue_(seed, hash_fn, static_cast<int64_t>(batch_offset)); } void HashValue_(int64_t* seed, const std::hash<int64_t>& hash_fn, int64_t value) { *seed ^= hash_fn(value) + 0x9e3779b9 + (*seed << 6) + (*seed >> 2); } }; static cublasLtEpilogue_t GetEpilogueType(const std::string& activation, bool enable_auxiliary) { if (activation == "relu") { return enable_auxiliary ? CUBLASLT_EPILOGUE_RELU_AUX_BIAS : CUBLASLT_EPILOGUE_RELU_BIAS; } else if (activation == "gelu") { return enable_auxiliary ? CUBLASLT_EPILOGUE_GELU_AUX_BIAS : CUBLASLT_EPILOGUE_GELU_BIAS; } else if (activation == "none") { return CUBLASLT_EPILOGUE_BIAS; } else { PADDLE_THROW(platform::errors::InvalidArgument( "The activation attribute of fused_gemm_epilogue op should be" " one of {\"none\", \"relu\", \"gelu\"}. But received %s." "But received activation=%s.", activation)); } } template <typename T> void ComputeFusedGemmEpilogueForward(const phi::GPUContext& dev_ctx, const phi::DenseTensor* x, const phi::DenseTensor* y, const phi::DenseTensor* bias, int64_t M, int64_t N, int64_t K, bool trans_x, bool trans_y, const std::string& activation, phi::DenseTensor* out, phi::DenseTensor* reserve_space) { using MT = typename phi::dtype::MPTypeTrait<T>::Type; VLOG(6) << "x.shape={" << x->dims() << "}, y.shape={" << y->dims() << "}, out.shape={" << out->dims() << "}, M=" << M << ", N=" << N << ", K=" << K << ", trans_x=" << trans_x << ", trans_y=" << trans_y << ", activation=" << activation << ", reserve_space=" << reserve_space; bool enable_auxiliary = reserve_space == nullptr ? false : true; auto* out_data = out->data<T>(); cudaDataType_t mat_type = phi::backends::gpu::ToCudaDataType<T>(); cudaDataType_t scale_type = phi::backends::gpu::ToCudaDataType<MT>(); cublasComputeType_t compute_type = CUBLAS_COMPUTE_32F; if (std::is_same<T, double>::value) { compute_type = CUBLAS_COMPUTE_64F; } cublasLtMatmulDesc_t operation_desc = NULL; PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatmulDescCreate( &operation_desc, compute_type, scale_type)); cublasOperation_t transx = trans_x ? CUBLAS_OP_T : CUBLAS_OP_N; cublasOperation_t transy = trans_y ? CUBLAS_OP_T : CUBLAS_OP_N; PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatmulDescSetAttribute( operation_desc, CUBLASLT_MATMUL_DESC_TRANSB, &transx, sizeof(transx))); PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatmulDescSetAttribute( operation_desc, CUBLASLT_MATMUL_DESC_TRANSA, &transy, sizeof(transy))); cublasLtEpilogue_t epiloque_func = GetEpilogueType(activation, enable_auxiliary); PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatmulDescSetAttribute( operation_desc, CUBLASLT_MATMUL_DESC_EPILOGUE, &epiloque_func, sizeof(epiloque_func))); const T* bias_data = bias->data<T>(); PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatmulDescSetAttribute( operation_desc, CUBLASLT_MATMUL_DESC_BIAS_POINTER, &bias_data, sizeof(bias_data))); if (enable_auxiliary && activation != "none") { // Note (Ming Huang): The initialization of ReseveSpace is happened in the // dev_ctx.Alloc. Therefore, we set real date type up here. if (activation == "relu") { paddle::experimental::DataType rs_type = paddle::experimental::DataType::BOOL; size_t reserve_space_size = phi::product(reserve_space->dims()) * SizeOf(rs_type); dev_ctx.Alloc(reserve_space, rs_type, reserve_space_size); } else { size_t reserve_space_size = phi::product(reserve_space->dims()) * sizeof(T); dev_ctx.Alloc<T>(reserve_space, reserve_space_size); } void* aux_data = reserve_space->data(); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( operation_desc, CUBLASLT_MATMUL_DESC_EPILOGUE_AUX_POINTER, &aux_data, sizeof(aux_data))); int64_t aux_ld = N; PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( operation_desc, CUBLASLT_MATMUL_DESC_EPILOGUE_AUX_LD, &aux_ld, sizeof(aux_ld))); } cublasLtMatrixLayout_t x_desc = NULL, y_desc = NULL, out_desc = NULL; if (trans_x) { PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( &x_desc, mat_type, M, K, M)); } else { PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( &x_desc, mat_type, K, M, K)); } if (trans_y) { PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( &y_desc, mat_type, K, N, K)); } else { PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( &y_desc, mat_type, N, K, N)); } PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( &out_desc, mat_type, N, M, N)); cublasLtHandle_t lt_handle = dev_ctx.cublaslt_handle(); // NOTE(zengjinle): I do not know whether the 4MB workspace size is // "enough". I just followed the settings from the NVIDIA MLPerf BERT code. size_t workspace_size = static_cast<size_t>(4) * 1024 * 1024; cudaStream_t stream = dev_ctx.stream(); memory::allocation::AllocationPtr workspace = memory::Alloc( dev_ctx.GetPlace(), workspace_size, phi::Stream(reinterpret_cast<phi::StreamId>(dev_ctx.stream()))); MT alpha = static_cast<MT>(1); MT beta = static_cast<MT>(0); const auto* y_data = y->data<T>(); const auto* x_data = x->data<T>(); auto algo = GemmEpilogueAlgoCache::Instance().GetGemmAlgo(lt_handle, operation_desc, y_desc, x_desc, out_desc, &alpha, &beta, y_data, x_data, out_data, stream, workspace->ptr(), workspace_size); PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatmul(lt_handle, operation_desc, &alpha, y_data, y_desc, x_data, x_desc, &beta, out_data, out_desc, out_data, out_desc, algo, workspace->ptr(), workspace_size, stream)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescDestroy(operation_desc)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutDestroy(y_desc)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutDestroy(x_desc)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutDestroy(out_desc)); } enum FusedGEMMGradInType { kDX = 0, kDY = 1, kDZ = 2 }; template <bool TransX, bool TransY> struct FusedGEMMGradTrait; template <> struct FusedGEMMGradTrait<false, false> { static constexpr auto kXGradA = FusedGEMMGradInType::kDZ; static constexpr auto kXGradB = FusedGEMMGradInType::kDY; static constexpr auto kXGradATrans = false; static constexpr auto kXGradBTrans = true; static constexpr auto kYGradA = FusedGEMMGradInType::kDX; static constexpr auto kYGradB = FusedGEMMGradInType::kDZ; static constexpr auto kYGradATrans = true; static constexpr auto kYGradBTrans = false; }; template <> struct FusedGEMMGradTrait<true, false> { static constexpr auto kXGradA = FusedGEMMGradInType::kDY; static constexpr auto kXGradB = FusedGEMMGradInType::kDZ; static constexpr auto kXGradATrans = false; static constexpr auto kXGradBTrans = true; static constexpr auto kYGradA = FusedGEMMGradInType::kDX; static constexpr auto kYGradB = FusedGEMMGradInType::kDZ; static constexpr auto kYGradATrans = false; static constexpr auto kYGradBTrans = false; }; template <> struct FusedGEMMGradTrait<false, true> { static constexpr auto kXGradA = FusedGEMMGradInType::kDZ; static constexpr auto kXGradB = FusedGEMMGradInType::kDY; static constexpr auto kXGradATrans = false; static constexpr auto kXGradBTrans = false; static constexpr auto kYGradA = FusedGEMMGradInType::kDZ; static constexpr auto kYGradB = FusedGEMMGradInType::kDX; static constexpr auto kYGradATrans = true; static constexpr auto kYGradBTrans = false; }; template <> struct FusedGEMMGradTrait<true, true> { static constexpr auto kXGradA = FusedGEMMGradInType::kDY; static constexpr auto kXGradB = FusedGEMMGradInType::kDZ; static constexpr auto kXGradATrans = true; static constexpr auto kXGradBTrans = true; static constexpr auto kYGradA = FusedGEMMGradInType::kDZ; static constexpr auto kYGradB = FusedGEMMGradInType::kDX; static constexpr auto kYGradATrans = true; static constexpr auto kYGradBTrans = true; }; static constexpr auto BoolToCuBlasEnum(bool transpose) { return transpose ? CUBLAS_OP_T : CUBLAS_OP_N; } static cublasLtEpilogue_t GetEpilogueGradType( const std::string& activation_grad) { if (activation_grad == "relu_grad") { return CUBLASLT_EPILOGUE_DRELU; } else if (activation_grad == "gelu_grad") { return CUBLASLT_EPILOGUE_DGELU; } else if (activation_grad == "none") { return CUBLASLT_EPILOGUE_DEFAULT; } else { PADDLE_THROW(platform::errors::InvalidArgument( "The activation_grad attribute of fused_gemm_epilogue op should " "be one of {\"none\", \"relu\", \"gelu\"}. But received %s." "But received activation_grad=%s.", activation_grad)); } } template <typename T, bool TransX, bool TransY> void ComputeFusedGemmEpilogueBackwardImpl(const phi::GPUContext& dev_ctx, const phi::DenseTensor* dout, const phi::DenseTensor* x, const phi::DenseTensor* y, const phi::DenseTensor* reserve_space, int64_t M, int64_t N, int64_t K, const std::string activation_grad, phi::DenseTensor* dx, phi::DenseTensor* dy, phi::DenseTensor* dbias, bool use_addto) { using MT = typename phi::dtype::MPTypeTrait<T>::Type; using Trait = FusedGEMMGradTrait<TransX, TransY>; cudaDataType_t mat_type = phi::backends::gpu::ToCudaDataType<T>(); cudaDataType_t scale_type = phi::backends::gpu::ToCudaDataType<MT>(); cublasComputeType_t compute_type = CUBLAS_COMPUTE_32F; if (std::is_same<T, double>::value) { compute_type = CUBLAS_COMPUTE_64F; } cublasLtHandle_t lt_handle = dev_ctx.cublaslt_handle(); // NOTE(zengjinle): I do not know whether the 4MB workspace size is // "enough". I just followed the settings from the NVIDIA MLPerf BERT code. size_t workspace_size = static_cast<size_t>(4) * 1024 * 1024; const cublasLtMatmulAlgo_t* algo = nullptr; cudaStream_t stream = dev_ctx.stream(); MT alpha = static_cast<MT>(1.0); MT beta_dx = use_addto ? static_cast<MT>(1.0) : static_cast<MT>(0.0); MT beta_dy = static_cast<MT>(0.0); cublasLtMatrixLayout_t dout_desc = nullptr, dout_trans_desc = nullptr; cublasLtMatrixLayout_t x_desc = nullptr, x_trans_desc = nullptr; cublasLtMatrixLayout_t y_desc = nullptr, y_trans_desc = nullptr; cublasLtMatrixLayout_t dx_desc = nullptr, dy_desc = nullptr; cublasLtMatmulDesc_t dx_operation_desc = nullptr, dy_operation_desc = nullptr; DEFINE_PADDLE_SCOPE_GUARD([&] { auto descs = {dout_desc, dout_trans_desc, x_desc, x_trans_desc, y_desc, y_trans_desc, dx_desc, dy_desc}; for (auto desc : descs) { if (desc) { PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutDestroy(desc)); } } if (dx_operation_desc) { PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescDestroy(dx_operation_desc)); } if (dy_operation_desc) { PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescDestroy(dy_operation_desc)); } }); auto x_row = TransX ? K : M; auto x_col = TransX ? M : K; auto y_row = TransY ? N : K; auto y_col = TransY ? K : N; auto z_row = TransX ? N : M; auto z_col = TransX ? M : N; // dx = func(dout, y) if (dx) { constexpr auto kXGradAIsDZ = (Trait::kXGradA == FusedGEMMGradInType::kDZ); cublasLtMatrixLayout_t *dx_dout_desc, *dx_y_desc; if (TransX) { dx_dout_desc = &dout_trans_desc; PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( dx_dout_desc, mat_type, z_row, z_col, z_row)); } else { dx_dout_desc = &dout_desc; PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( dx_dout_desc, mat_type, z_col, z_row, z_col)); } dx_y_desc = &y_trans_desc; PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( dx_y_desc, mat_type, y_col, y_row, y_col)); auto& a_desc = kXGradAIsDZ ? (*dx_dout_desc) : (*dx_y_desc); auto& b_desc = kXGradAIsDZ ? (*dx_y_desc) : (*dx_dout_desc); auto a_trans = BoolToCuBlasEnum(Trait::kXGradATrans); auto b_trans = BoolToCuBlasEnum(Trait::kXGradBTrans); PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( &dx_desc, mat_type, x_col, x_row, x_col)); PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatmulDescCreate( &dx_operation_desc, compute_type, scale_type)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( dx_operation_desc, CUBLASLT_MATMUL_DESC_TRANSB, &a_trans, sizeof(a_trans))); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( dx_operation_desc, CUBLASLT_MATMUL_DESC_TRANSA, &b_trans, sizeof(b_trans))); cublasLtEpilogue_t epiloque_func_for_dx = GetEpilogueGradType(activation_grad); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( dx_operation_desc, CUBLASLT_MATMUL_DESC_EPILOGUE, &epiloque_func_for_dx, sizeof(epiloque_func_for_dx))); if (activation_grad != "none") { auto* aux_data = reserve_space->data(); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( dx_operation_desc, CUBLASLT_MATMUL_DESC_EPILOGUE_AUX_POINTER, &aux_data, sizeof(aux_data))); int64_t aux_ld = TransX ? M : K; PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( dx_operation_desc, CUBLASLT_MATMUL_DESC_EPILOGUE_AUX_LD, &aux_ld, sizeof(aux_ld))); } auto dx_workspace = memory::Alloc( dev_ctx.GetPlace(), workspace_size, phi::Stream(reinterpret_cast<phi::StreamId>(dev_ctx.stream()))); auto* dx_data = dev_ctx.Alloc<T>(dx, dx->numel() * sizeof(T)); const auto* y_data = y->data<T>(); const auto* dout_data = dout->data<T>(); const auto* a_data = kXGradAIsDZ ? dout_data : y_data; const auto* b_data = kXGradAIsDZ ? y_data : dout_data; auto algo = GemmEpilogueAlgoCache::Instance().GetGemmAlgo(lt_handle, dx_operation_desc, b_desc, a_desc, dx_desc, &alpha, &beta_dx, b_data, a_data, dx_data, stream, dx_workspace->ptr(), workspace_size); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmul(lt_handle, dx_operation_desc, &alpha, b_data, b_desc, a_data, a_desc, &beta_dx, dx_data, dx_desc, dx_data, dx_desc, algo, dx_workspace->ptr(), workspace_size, stream)); } // dy = func(dout, x) if (dy) { constexpr auto kYGradAIsDZ = (Trait::kYGradA == FusedGEMMGradInType::kDZ); cublasLtMatrixLayout_t *dy_dout_desc = nullptr, *dy_x_desc = nullptr; if (TransX) { dy_dout_desc = &dout_trans_desc; if (dout_trans_desc == nullptr) { PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutCreate( dy_dout_desc, mat_type, z_row, z_col, z_row)); } } else { dy_dout_desc = &dout_desc; if (dout_desc == nullptr) { PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatrixLayoutCreate( dy_dout_desc, mat_type, z_col, z_row, z_col)); } } dy_x_desc = &x_trans_desc; PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( dy_x_desc, mat_type, x_col, x_row, x_col)); auto& a_desc = kYGradAIsDZ ? (*dy_dout_desc) : (*dy_x_desc); auto& b_desc = kYGradAIsDZ ? (*dy_x_desc) : (*dy_dout_desc); auto a_trans = BoolToCuBlasEnum(Trait::kYGradATrans); auto b_trans = BoolToCuBlasEnum(Trait::kYGradBTrans); PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatrixLayoutCreate( &dy_desc, mat_type, y_col, y_row, y_col)); PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cublasLtMatmulDescCreate( &dy_operation_desc, compute_type, scale_type)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( dy_operation_desc, CUBLASLT_MATMUL_DESC_TRANSB, &a_trans, sizeof(a_trans))); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( dy_operation_desc, CUBLASLT_MATMUL_DESC_TRANSA, &b_trans, sizeof(b_trans))); cublasLtEpilogue_t epiloque_func_for_dy; if (dbias == nullptr) { epiloque_func_for_dy = CUBLASLT_EPILOGUE_DEFAULT; } else { if (TransY) { epiloque_func_for_dy = CUBLASLT_EPILOGUE_BGRADB; } else { epiloque_func_for_dy = CUBLASLT_EPILOGUE_BGRADA; } } PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( dy_operation_desc, CUBLASLT_MATMUL_DESC_EPILOGUE, &epiloque_func_for_dy, sizeof(epiloque_func_for_dy))); if (dbias) { auto* dbias_data = dev_ctx.Alloc<T>(dbias, dbias->numel() * sizeof(T)); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmulDescSetAttribute( dy_operation_desc, CUBLASLT_MATMUL_DESC_BIAS_POINTER, &dbias_data, sizeof(dbias_data))); } auto dy_workspace = memory::Alloc( dev_ctx.GetPlace(), workspace_size, phi::Stream(reinterpret_cast<phi::StreamId>(dev_ctx.stream()))); auto* dy_data = dev_ctx.Alloc<T>(dy, dy->numel() * sizeof(T)); const auto* dout_data = dout->data<T>(); const auto* x_data = x->data<T>(); const auto* a_data = kYGradAIsDZ ? dout_data : x_data; const auto* b_data = kYGradAIsDZ ? x_data : dout_data; auto algo = GemmEpilogueAlgoCache::Instance().GetGemmAlgo(lt_handle, dy_operation_desc, b_desc, a_desc, dy_desc, &alpha, &beta_dy, b_data, a_data, dy_data, stream, dy_workspace->ptr(), workspace_size); PADDLE_ENFORCE_GPU_SUCCESS( platform::dynload::cublasLtMatmul(lt_handle, dy_operation_desc, &alpha, b_data, b_desc, a_data, a_desc, &beta_dy, dy_data, dy_desc, dy_data, dy_desc, algo, dy_workspace->ptr(), workspace_size, stream)); } } template <typename T> void ComputeFusedGemmEpilogueBackward(const phi::GPUContext& dev_ctx, const phi::DenseTensor* dout, const phi::DenseTensor* x, const phi::DenseTensor* y, const phi::DenseTensor* reserve_space, int64_t M, int64_t N, int64_t K, bool trans_x, bool trans_y, const std::string& activation_grad, phi::DenseTensor* dx, phi::DenseTensor* dy, phi::DenseTensor* dbias, bool use_addto = false) { VLOG(10) << "M=" << M << ", K=" << K << ", N=" << N << ", trans_x=" << trans_x << ", trans_y=" << trans_y << ", activation_grad=" << activation_grad; if (trans_x) { if (trans_y) { ComputeFusedGemmEpilogueBackwardImpl<T, true, true>(dev_ctx, dout, x, y, reserve_space, M, N, K, activation_grad, dx, dy, dbias, use_addto); } else { ComputeFusedGemmEpilogueBackwardImpl<T, true, false>(dev_ctx, dout, x, y, reserve_space, M, N, K, activation_grad, dx, dy, dbias, use_addto); } } else { if (trans_y) { ComputeFusedGemmEpilogueBackwardImpl<T, false, true>(dev_ctx, dout, x, y, reserve_space, M, N, K, activation_grad, dx, dy, dbias, use_addto); } else { ComputeFusedGemmEpilogueBackwardImpl<T, false, false>(dev_ctx, dout, x, y, reserve_space, M, N, K, activation_grad, dx, dy, dbias, use_addto); } } } } // namespace operators } // namespace paddle #endif #endif
[ "noreply@github.com" ]
noreply@github.com
04e17d6c285e17150555471446d3832c43684e93
1e1f4bb81e89a28e3c08dfb6aaabc5409d12d0a9
/src/SLAM/IterativeClosestPoint.cpp
d60babcb5f06128c9ebe9834e4b8873ed9af7d0b
[]
no_license
BhavyanshM/MapSenseROS
fd1770ca7a3fba3e2fe8feda1816988605d05811
08381398cff4955308e6268b13f5ddc2edd247db
refs/heads/master
2022-08-08T20:45:43.578330
2021-12-17T20:27:29
2021-12-17T20:27:29
229,401,606
12
0
null
2021-02-23T01:20:05
2019-12-21T08:53:01
C++
UTF-8
C++
false
false
13,822
cpp
#include <iostream> #include "IterativeClosestPoint.h" #include "chrono" Eigen::Matrix4f IterativeClosestPoint::CalculateAlignment(std::vector<float>& cloudOne, const Eigen::Matrix4f& transformOne, std::vector<float>& cloudTwo, const Eigen::Matrix4f& transformTwo, int* partIds, int partCount, int numVertBlocks) { // if(_iteration > MAX_STEPS) return Eigen::Matrix4f::Identity(); else _iteration++; // Create std::vectors for initial pointcloud transforms to be uploaded to OpenCL kernel auto start_point = std::chrono::steady_clock::now(); std::vector<float> transformOneVec, transformTwoVec; for(int i = 0; i<9; i++) { transformOneVec.emplace_back(transformOne(i/3, i%3)); transformTwoVec.emplace_back(transformTwo(i/3, i%3)); } for(int i = 0; i<3 ;i++) { transformOneVec.emplace_back(transformOne(i, 3)); transformTwoVec.emplace_back(transformTwo(i, 3)); } // Define some quantities as variables int numPointsOne = cloudOne.size()/3; int numPointsTwo = cloudTwo.size()/3; int numCylinderParts = partCount; int numBlocksTotal = numCylinderParts * numVertBlocks; uint32_t threads = 1000; // Create OpenCL Buffers for Iterative Closest Point kernels. (Allocate ~320 KB, less than 1 MB) uint8_t cloudOneBuffer = _openCL->CreateLoadBufferFloat(cloudOne.data(), cloudOne.size()); // ~80,000 * 3 * 4 bytes uint8_t cloudTwoBuffer = _openCL->CreateLoadBufferFloat(cloudTwo.data(), cloudTwo.size()); // ~80,000 * 3 * 4 bytes uint8_t transformOneBuffer = _openCL->CreateLoadBufferFloat(transformOneVec.data(), 12); // ~12 * 4 bytes uint8_t transformTwoBuffer = _openCL->CreateLoadBufferFloat(transformTwoVec.data(), 12); // ~12 * 4 bytes uint8_t matchBuffer = _openCL->CreateBufferInt(numPointsOne); // ~80,000 * 4 bytes uint8_t meanBuffer = _openCL->CreateBufferFloat(6 * threads); // ~3,000 * 4 bytes // uint8_t cylinderIndexBufferTwo = _openCL->CreateBufferInt(numPointsTwo); // ~80,000 * 4 bytes // uint8_t cylinderBlockIdBufferTwo = _openCL->CreateBufferInt(numPointsTwo); // ~80,000 * 4 bytes uint8_t correlBuffer = _openCL->CreateBufferFloat( 9 * threads); // ~10,000 * 4 bytes // uint8_t normalBuffer = _openCL->CreateBufferFloat(6 * numBlocksTotal); // ~60 * 4 bytes // uint8_t blockPointCount = _openCL->CreateBufferInt(numBlocksTotal); // ~60 * 4 bytes // // Set arguments for the Cylinder Part generation kernel for only the latest pointcloud. Preserve cylinder buffer for later. // _openCL->SetArgument("cylinderKernel", 0, cloudTwoBuffer); // _openCL->SetArgument("cylinderKernel", 1, cylinderIndexBufferTwo); // _openCL->SetArgumentInt("cylinderKernel", 2, numPointsTwo); // _openCL->SetArgumentInt("cylinderKernel", 3, numCylinderParts); // _openCL->commandQueue.enqueueNDRangeKernel(_openCL->cylinderKernel, cl::NullRange, cl::NDRange(numCylinderParts), cl::NullRange); // // // Set arguments for the plane calculation kernel. Pass cylinder parts for only the latest cloud. // _openCL->SetArgument("planesKernel", 0, cloudTwoBuffer); // _openCL->SetArgument("planesKernel", 1, cylinderIndexBufferTwo); // _openCL->SetArgument("planesKernel", 2, cylinderBlockIdBufferTwo); // _openCL->SetArgument("planesKernel", 3, blockPointCount); // _openCL->SetArgumentInt("planesKernel", 4, numPointsTwo); // _openCL->SetArgumentInt("planesKernel", 5, numCylinderParts); // _openCL->SetArgumentInt("planesKernel", 6, numVertBlocks); // _openCL->commandQueue.enqueueNDRangeKernel(_openCL->planesKernel, cl::NullRange, cl::NDRange(numCylinderParts), cl::NullRange); // // // Set arguments for the plane calculation kernel. Pass cylinder parts for only the latest cloud. // _openCL->SetArgument("normalsKernel", 0, cloudTwoBuffer); // _openCL->SetArgument("normalsKernel", 1, cylinderIndexBufferTwo); // _openCL->SetArgument("normalsKernel", 2, cylinderBlockIdBufferTwo); // _openCL->SetArgument("normalsKernel", 3, normalBuffer); // _openCL->SetArgumentInt("normalsKernel", 4, numPointsTwo); // _openCL->SetArgumentInt("normalsKernel", 5, numCylinderParts); // _openCL->SetArgumentInt("normalsKernel", 6, numVertBlocks); // _openCL->commandQueue.enqueueNDRangeKernel(_openCL->normalsKernel, cl::NullRange, cl::NDRange(numBlocksTotal), cl::NullRange); // Set arguments for Correspondence Calculation kernel. Pass the surface normal buffers for both clouds. _openCL->SetArgument("correspondenceKernel", 0, cloudOneBuffer); _openCL->SetArgument("correspondenceKernel", 1, transformOneBuffer); _openCL->SetArgument("correspondenceKernel", 2, cloudTwoBuffer); _openCL->SetArgument("correspondenceKernel", 3, transformTwoBuffer); _openCL->SetArgument("correspondenceKernel", 4, matchBuffer); _openCL->SetArgumentInt("correspondenceKernel", 5, cloudOne.size()); _openCL->SetArgumentInt("correspondenceKernel", 6, cloudTwo.size()); _openCL->SetArgumentInt("correspondenceKernel", 7, numPointsOne); _openCL->commandQueue.enqueueNDRangeKernel(_openCL->correspondenceKernel, cl::NullRange, cl::NDRange(numPointsOne), cl::NullRange); // Set arguments for Centroid calculation kernel. Calculates centroids for both clouds at once. Could potentially store & reuse centroid for first cloud. _openCL->SetArgument("centroidKernel", 0, cloudOneBuffer); _openCL->SetArgument("centroidKernel", 1, cloudTwoBuffer); _openCL->SetArgument("centroidKernel", 2, meanBuffer); _openCL->SetArgument("centroidKernel", 3, matchBuffer); _openCL->SetArgumentInt("centroidKernel", 4, cloudOne.size()); _openCL->SetArgumentInt("centroidKernel", 5, cloudTwo.size()); _openCL->SetArgumentInt("centroidKernel", 6, threads); // Set arguments for the Correlation calculation kernel. Pass the point correspondences and surface normals for both clouds. _openCL->SetArgument("correlationKernel", 0, cloudOneBuffer); _openCL->SetArgument("correlationKernel", 1, cloudTwoBuffer); _openCL->SetArgument("correlationKernel", 2, meanBuffer); _openCL->SetArgument("correlationKernel", 3, matchBuffer); _openCL->SetArgument("correlationKernel", 4, correlBuffer); _openCL->SetArgumentInt("correlationKernel", 5, cloudOne.size()); _openCL->SetArgumentInt("correlationKernel", 6, cloudTwo.size()); _openCL->SetArgumentInt("correlationKernel", 7, threads); // // // // Set partIds for visualization of cylinder parts in the UI. // if(partIds != nullptr) // { // _openCL->ReadBufferInt(cylinderBlockIdBufferTwo, partIds, numPointsTwo); //// std::vector<int> partIdsVec(partIds, partIds + numPointsOne); //// for(int i = 0; i<numPointsOne; i++) //// { //// std::cout << "Index:" << i << " Id:" << partIdsVec[i] << std::endl; //// } // } // Calculate transform by decomposing the Correlation Matrix using SVD. Eigen::Matrix4f transform = CalculateTransformParallel(threads, correlBuffer, meanBuffer); std::cout << "Transform: " << std::endl << transform << std::endl; // Calculate transform on the CPU. // int matches[cloudOne.size()/3]; // _openCL->ReadBufferInt(matchBuffer, matches, cloudOne.size()/3); // std::vector<int> matchesVector(matches, matches + cloudOne.size()/3); // Eigen::Matrix4f transformCPU = CalculateTransformSequential(cloudOne, cloudTwo, matchesVector); // std::cout << "Transfrom CPU:" << std::endl << transformCPU << std::endl; _openCL->Finish(); _openCL->Reset(); auto end_point = std::chrono::steady_clock::now(); long long start = std::chrono::time_point_cast<std::chrono::microseconds>(start_point).time_since_epoch().count(); long long end = std::chrono::time_point_cast<std::chrono::microseconds>(end_point).time_since_epoch().count(); float duration = (end - start) * 0.001f; printf("Total Time Taken: %.3lf ms\n", duration); return transform; } Eigen::Matrix4f IterativeClosestPoint::CalculateTransformParallel(uint32_t threads, uint8_t correlBuffer, uint8_t meanBuffer) { float centroidMatrixBuffer[6 * threads]; int numMatrixBuffer[threads]; _openCL->commandQueue.enqueueNDRangeKernel(_openCL->centroidKernel, cl::NullRange, cl::NDRange((int)threads), cl::NullRange); _openCL->ReadBufferFloat(meanBuffer, centroidMatrixBuffer, 6 * threads); Eigen::Map<Eigen::Matrix<float, 6, Eigen::Dynamic>, Eigen::RowMajor> centroids(centroidMatrixBuffer, 6, threads); Eigen::MatrixXf centroidMatVec = centroids.rowwise().mean(); float correlationMatrixBuffer[9 * threads]; _openCL->commandQueue.enqueueNDRangeKernel(_openCL->correlationKernel, cl::NullRange, cl::NDRange((int)threads), cl::NullRange); _openCL->ReadBufferFloat(correlBuffer, correlationMatrixBuffer, 9 * threads); _openCL->commandQueue.finish(); Eigen::Map<Eigen::Matrix<float, 9, Eigen::Dynamic>, Eigen::RowMajor> correlation(correlationMatrixBuffer, 9, threads); Eigen::MatrixXf correlMatVec = correlation.rowwise().sum(); correlMatVec.resize(3,3); correlMatVec.transposeInPlace(); return ExtractTransform(correlMatVec, Eigen::Vector3f(centroidMatVec(0), centroidMatVec(1), centroidMatVec(2)), Eigen::Vector3f(centroidMatVec(3), centroidMatVec(4), centroidMatVec(5))); } Eigen::Matrix4f IterativeClosestPoint::ExtractTransform(Eigen::Matrix3f correlation, Eigen::Vector3f meanOne, Eigen::Vector3f meanTwo) { // Recover rotation matrix from the SVD matrices. std::cout << "Correlation Matrix: " << std::endl << correlation << std::endl; Eigen::JacobiSVD<Eigen::MatrixXf> svd(correlation, Eigen::ComputeThinU | Eigen::ComputeThinV); Eigen::Matrix3f rotation = svd.matrixU() * svd.matrixV().transpose(); // Interpolate using Momentum Factor and add randomness. // Eigen::Quaternion<float> quat1(Eigen::Matrix3f::Identity()); // Eigen::Quaternion<float> quat2(rotation); // Eigen::Quaternion<float> quat3 = quat1.slerp(6.0, quat2); // Construct a 4x4 transformation matrix from rotation and centroidal displacement. Eigen::Matrix4f transform = Eigen::Matrix4f::Identity(); transform.block<3,3>(0,0) = rotation; transform.block<3,1>(0,3) = meanOne - meanTwo; return transform; } void IterativeClosestPoint::TestICP(std::vector<float>& cloudOne, std::vector<float>& cloudTwo, std::vector<int>& matches) { std::vector<int> currentMatches; for(int i = 0; i<cloudOne.size()/3; i++) { float minLength = 1000000000; int minindex = -1; for(int j = 0; j<cloudTwo.size()/3; j++) { Eigen::Vector3f one(cloudOne[i*3], cloudOne[i*3+1], cloudOne[i*3+2]); Eigen::Vector3f two(cloudTwo[j*3], cloudTwo[j*3+1], cloudTwo[j*3+2]); if((one - two).norm() < minLength) { minLength = (one - two).norm(); minindex = j; } } currentMatches.emplace_back(minindex); } int count = 0; for(int i = 0; i<currentMatches.size(); i++) { if(currentMatches[i] == matches[i]) { count++; } } printf("Percent Correct Matches: %.2lf, Total Correct Matches: %d\n", 100.0 * (float)count/((float)currentMatches.size()), count); } Eigen::Matrix4f IterativeClosestPoint::CalculateTransformSequential(std::vector<float>& cloudOne, std::vector<float>& cloudTwo, std::vector<int>& matchesVector) { // Count number of corresponding point pairs found. int numOfCorrespondences = 0; for(int i = 0; i<cloudOne.size()/3; i++) { if(matchesVector[i] != -1 && matchesVector[i] != 0) numOfCorrespondences += 1; } printf("Total Correspondences: %d\n", numOfCorrespondences); // Create corresponding matrices for ICP correlation matrix calculation. Eigen::MatrixXf firstCloud(numOfCorrespondences, 3); Eigen::MatrixXf secondCloud(numOfCorrespondences, 3); int count = 0; for(int i = 0; i<cloudOne.size()/3; i++) { if(matchesVector[i] != -1 && matchesVector[i] != 0) { Eigen::Vector3f one(cloudOne[i*3], cloudOne[i*3 + 1], cloudOne[i*3 + 2]); Eigen::Vector3f two(cloudTwo[matchesVector[i]*3], cloudTwo[matchesVector[i]*3 + 1], cloudTwo[matchesVector[i]*3 + 2]); firstCloud(count, 0) = one(0); firstCloud(count, 1) = one(1); firstCloud(count, 2) = one(2); secondCloud(count, 0) = two(0); secondCloud(count, 1) = two(1); secondCloud(count, 2) = two(2); count++; } } // Calculate centroid vectors for both the pointclouds. Eigen::Map<Eigen::Matrix<float, 3, Eigen::Dynamic>, Eigen::RowMajor> smallCloudOne(cloudOne.data(), 3,cloudOne.size()/3); Eigen::Map<Eigen::Matrix<float, 3, Eigen::Dynamic>, Eigen::RowMajor> smallCloudTwo(cloudTwo.data(), 3,cloudTwo.size()/3); Eigen::Vector3f smallMeanOne = smallCloudOne.rowwise().mean(); Eigen::Vector3f smallMeanTwo = smallCloudTwo.rowwise().mean(); // std::cout << "Full First Mean CPU: " << smallMeanOne << std::endl; // std::cout << "Full Second Mean CPU: " << smallMeanTwo << std::endl; // Calculate centroid vectors for both the pointclouds. Eigen::Vector3f firstMean = firstCloud.colwise().mean(); Eigen::Vector3f secondMean = secondCloud.colwise().mean(); // std::cout << "First Mean CPU: " << firstMean << std::endl; // std::cout << "Second Mean CPU: " << secondMean << std::endl; // Remove centroid from both pointcloud matrices. firstCloud = firstCloud - firstMean.rowwise().replicate(firstCloud.rows()).transpose(); secondCloud = secondCloud - secondMean.rowwise().replicate(secondCloud.rows()).transpose(); // Calculate the correlation matrix. Eigen::Matrix3f correlation = firstCloud.transpose() * secondCloud; // std::cout << "Correlation:" << correlation << std::endl; // Calculate SVD for the correlation matrix. return ExtractTransform(correlation, firstMean, secondMean); }
[ "bhavyanshmishra@gmail.com" ]
bhavyanshmishra@gmail.com
09ef91cd79c10fcffe824198884ea92ad1369916
4c23be1a0ca76f68e7146f7d098e26c2bbfb2650
/ic8h18/0.0015/IC8ETERCD
ea764d89e1d94068727ca705b0845d97a20daac8
[]
no_license
labsandy/OpenFOAM_workspace
a74b473903ddbd34b31dc93917e3719bc051e379
6e0193ad9dabd613acf40d6b3ec4c0536c90aed4
refs/heads/master
2022-02-25T02:36:04.164324
2019-08-23T02:27:16
2019-08-23T02:27:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
842
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.0015"; object IC8ETERCD; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 2.44705e-08; boundaryField { boundary { type empty; } } // ************************************************************************* //
[ "jfeatherstone123@gmail.com" ]
jfeatherstone123@gmail.com
2ce8686ef6f0e5992adecd71c369fe2994aa2b5d
9618b499f750fa437a84be10553d6d066ae09e4d
/chapter_2/lesson_08/Bodies.h
29bd8478d395687363bdee2414ce25eb4efac0fe
[ "MIT" ]
permissive
ps-group/cg_course_examples
63d524f77575e15dfc52164aab065e682313ceb7
921b6218d71731bcb79ddddcc92c9d04a72c62ab
refs/heads/master
2021-01-21T15:17:58.322071
2018-05-07T05:58:56
2018-05-07T05:58:56
44,232,033
6
9
null
null
null
null
UTF-8
C++
false
false
837
h
#pragma once #include <glm/vec3.hpp> #include <glm/fwd.hpp> enum class CubeFace { Front = 0, Back, Top, Bottom, Left, Right, NumFaces }; class CIdentityCube { public: CIdentityCube(); void Update(float deltaTime); void Draw()const; void SetFaceColor(CubeFace face, const glm::vec3 &color); private: static const size_t COLORS_COUNT = static_cast<size_t>(CubeFace::NumFaces); glm::vec3 m_colors[COLORS_COUNT]; }; class CAnimatedCube : public CIdentityCube { public: void Update(float deltaTime); void Draw()const; private: enum Animation { Rotating, Pulse, Bounce, }; glm::mat4 GetAnimationTransform()const; static const float ANIMATION_STEP_SECONDS; Animation m_animation = Rotating; float m_animationPhase = 0; };
[ "sshambir@yandex.ru" ]
sshambir@yandex.ru
378653aadcbea9e1505cc0ac24608ef62d28c085
2ae8dc515d2d6d584927d96e43c30242cea0dfcb
/Firmware/adc_app.cpp
76a0eb795c5b18f35a354f01f23cbfbde38eb8f1
[]
no_license
oleksa-oleksa/ESP32_NoiseDetector_Internship
ebb9c57294b2ab84c959f0824a83e7682db41249
203dedfc5e1dda333e9d80befe089ddf4db2d9e4
refs/heads/master
2020-03-23T09:59:05.832279
2019-11-05T22:47:57
2019-11-05T22:47:57
141,418,899
1
1
null
null
null
null
UTF-8
C++
false
false
631
cpp
#include <stdio.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "driver/gpio.h" #include "driver/adc.h" #include "esp_system.h" #include "esp_adc_cal.h" #include "adc_app.h" #include "spi_app.h" esp_adc_cal_characteristics_t characteristics; uint32_t adc1_voltage; void adc_init(esp_adc_cal_characteristics_t *characteristics){ //Init ADC and Characteristics adc1_config_width(ADC_WIDTH_BIT_12); adc1_config_channel_atten(ADC1_TEST_CHANNEL, ADC_ATTEN); esp_adc_cal_get_characteristics(V_REF, ADC_ATTEN, ADC_WIDTH_BIT_12, characteristics); }
[ "oleksandra.baga@gmail.com" ]
oleksandra.baga@gmail.com
6ade027d3b2f1968e53ff39b345765ff338538f7
8f90c2d5e037dab93ffc3a55fb3054c7c445595d
/IntegrationTesting/Test10_22_Calls.cpp
cbc419b52bb1b2ee2e90a8c909f57a83addbf973
[]
no_license
hoangphuoc25/CS3202
282a213d907de3da1c12420b1fcabdf2f1ecddc6
269dca59170da3fc1f8a6453a4a5b7c595df820c
refs/heads/master
2021-01-22T05:16:08.971409
2013-04-17T21:11:25
2013-04-17T21:11:25
18,309,970
0
3
null
null
null
null
UTF-8
C++
false
false
318
cpp
#include <list> #include <set> #include <string> #include "Test10_22_Calls.h" #include "../SPA/SetWrapper.h" #include "../SPA/QueryEvaluator.h" using std::list; using std::set; using std::string; void Test10_22_Calls::setUp() {} void Test10_22_Calls::tearDown() {} CPPUNIT_TEST_SUITE_REGISTRATION(Test10_22_Calls);
[ "pangyanhan@gmail.com" ]
pangyanhan@gmail.com
3e8b04d302a24c7e165c94e2d5b950e95f42c76e
9aa3060a7422f0aa589d81a9ad01d6d454710921
/examples/xtd.forms.examples/games/minesweeper/src/cell.h
4191b250f829b253a383528a9eff4588d2b2117f
[ "MIT" ]
permissive
bigplayszn/xtd
febd2f63675b6b8673f798e10c29070d515e3746
99c73e011efb701cdff2bbd80e16e02867d4d527
refs/heads/master
2023-05-26T13:43:44.613991
2021-06-10T15:54:08
2021-06-10T15:54:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
8,178
h
#pragma once #include "cell_state.h" #include "../properties/resources.h" #include <xtd/xtd> namespace minesweeper { class cell : public xtd::forms::user_control { public: cell() { font(xtd::drawing::font(font(), 16)); size({30, 30}); }; const xtd::drawing::point& cell_location() const {return cell_location_;} void cell_location(const xtd::drawing::point& value) { if (cell_location_ != value) { cell_location_ = value; } } bool has_mine() const {return has_mine_;} void has_mine(bool value) { if (has_mine_ != value) { has_mine_ = value; } } bool has_neighbors() const {return neighbors_;} int neighbors() const {return neighbors_;} void neighbors(int value) { if (neighbors_ != value) neighbors_ = value; } cell_state state() const {return state_;} void state(cell_state value) { if (state_ != value) { state_ = value; invalidate(); } } void clear() { has_mine_ = false; neighbors_ = 0; if (state_ != cell_state::unchecked) { state_ = cell_state::unchecked; invalidate(); } } protected: void on_paint(xtd::forms::paint_event_args& e) override { using namespace xtd; using namespace xtd::forms; std::map<cell_state, delegate<void(paint_event_args&)>> draw_state {{cell_state::unchecked, {*this, &cell::do_draw_unchecked}}, {cell_state::checked, {*this, &cell::do_draw_checked}}, {cell_state::flag, {*this, &cell::do_draw_flag}}, {cell_state::question, {*this, &cell::do_draw_question}}, {cell_state::mine, {*this, &cell::do_draw_mine}}, {cell_state::exploded_mine, {*this, &cell::do_draw_exploded_mine}}, {cell_state::error, {*this, &cell::do_draw_error}}}; draw_state[state_](e); user_control::on_paint(e); } private: void do_draw_unchecked(xtd::forms::paint_event_args& e) { draw_border_unchecked(e); } void do_draw_checked(xtd::forms::paint_event_args& e) { using namespace xtd::drawing; draw_border_checked(e); color text_color = system_colors::control_text(); if (neighbors_ == 8) text_color = color::dark_gray; if (neighbors_ == 7) text_color = color::black; if (neighbors_ == 6) text_color = color::dark_green; if (neighbors_ == 5) text_color = color::dark_red; if (neighbors_ == 4) text_color = color::dark_blue; if (neighbors_ == 3) text_color = color::red; if (neighbors_ == 2) text_color = color::green; if (neighbors_ == 1) text_color = color::blue; if (neighbors_ != 0) { std::string text = std::to_string(neighbors_); auto x = (e.clip_rectangle().width() - e.graphics().measure_string(text, font()).width()) / 2; auto y = (e.clip_rectangle().height() - e.graphics().measure_string(text, font()).height()) / 2; if (back_color().get_brightness() < 0.5f) { e.graphics().draw_string(text, font(), solid_brush(color::light(color::light(text_color))), x - 1, y - 1); e.graphics().draw_string(text, font(), solid_brush(color::dark(color::dark(text_color))), x + 1, y + 1); } e.graphics().draw_string(text, font(), solid_brush(text_color), x, y); } } void do_draw_flag(xtd::forms::paint_event_args& e) { using namespace xtd::drawing; draw_border_unchecked(e); static image flag = bitmap(properties::resources::flag(), {16, 16}); auto x = (e.clip_rectangle().width() - flag.width()) / 2; auto y = (e.clip_rectangle().height() - flag.height()) / 2; e.graphics().draw_image(flag, x, y); } void do_draw_question(xtd::forms::paint_event_args& e) { using namespace xtd::drawing; draw_border_unchecked(e); auto x = (e.clip_rectangle().width() - e.graphics().measure_string("?", font()).width()) / 2; auto y = (e.clip_rectangle().height() - e.graphics().measure_string("?", font()).height()) / 2; e.graphics().draw_string("?", font(), solid_brush(fore_color()), x, y); } void do_draw_mine(xtd::forms::paint_event_args& e) { using namespace xtd::drawing; draw_border_checked(e); static image mine = bitmap(properties::resources::mine(), {16, 16}); auto x = (e.clip_rectangle().width() - mine.width()) / 2; auto y = (e.clip_rectangle().height() - mine.height()) / 2; e.graphics().draw_image(mine, x, y); } void do_draw_exploded_mine(xtd::forms::paint_event_args& e) { using namespace xtd::drawing; e.graphics().clear(color::red); draw_border_checked(e); static image mine = bitmap(properties::resources::mine(), {16, 16}); auto x = (e.clip_rectangle().width() - mine.width()) / 2; auto y = (e.clip_rectangle().height() - mine.height()) / 2; e.graphics().draw_image(mine, x, y); } void do_draw_error(xtd::forms::paint_event_args& e) { using namespace xtd::drawing; draw_border_checked(e); static image mine = bitmap(properties::resources::mine(), {16, 16}); auto x = (e.clip_rectangle().width() - mine.width()) / 2; auto y = (e.clip_rectangle().height() - mine.height()) / 2; e.graphics().draw_image(mine, x, y); e.graphics().draw_line(pen(color::red, 2), 0, 0, e.clip_rectangle().width(), e.clip_rectangle().height()); e.graphics().draw_line(pen(color::red, 2), e.clip_rectangle().width(), 0, 0, e.clip_rectangle().height()); } void draw_border_unchecked(xtd::forms::paint_event_args& e) { using namespace xtd::drawing; e.graphics().draw_line(pen(color::light(color::light(color::light(back_color())))), 0, 0, e.clip_rectangle().width(), 0); e.graphics().draw_line(pen(color::light(color::light(back_color()))), 0, 1, e.clip_rectangle().width(), 1); e.graphics().draw_line(pen(color::light(back_color())), 1, 2, e.clip_rectangle().width(), 2); e.graphics().draw_line(pen(color::light(color::light(color::light(back_color())))), 0, 0, 0, e.clip_rectangle().height()); e.graphics().draw_line(pen(color::light(color::light(back_color()))), 1, 1, 1, e.clip_rectangle().height()); e.graphics().draw_line(pen(color::light(back_color())), 2, 2, 2, e.clip_rectangle().height()); e.graphics().draw_line(pen(color::dark(back_color())), 2, e.clip_rectangle().height() - 3, e.clip_rectangle().width(), e.clip_rectangle().height() - 3); e.graphics().draw_line(pen(color::dark(color::dark(back_color()))), 1, e.clip_rectangle().height() - 2, e.clip_rectangle().width(), e.clip_rectangle().height() - 2); e.graphics().draw_line(pen(color::dark(color::dark(color::dark(back_color())))), 0, e.clip_rectangle().height() - 1, e.clip_rectangle().width(), e.clip_rectangle().height() - 1); e.graphics().draw_line(pen(color::dark(back_color())), e.clip_rectangle().width() - 3, 2, e.clip_rectangle().width() - 3, e.clip_rectangle().height() - 3); e.graphics().draw_line(pen(color::dark(color::dark(back_color()))), e.clip_rectangle().width() - 2, 1, e.clip_rectangle().width() - 2, e.clip_rectangle().height() - 2); e.graphics().draw_line(pen(color::dark(color::dark(color::dark(back_color())))), e.clip_rectangle().width() - 1, 0, e.clip_rectangle().width() - 1, e.clip_rectangle().height() - 1); } void draw_border_checked(xtd::forms::paint_event_args& e) { using namespace xtd::drawing; e.graphics().draw_line(pen(color::dark(back_color())), 0, 0, e.clip_rectangle().width(), 0); e.graphics().draw_line(pen(color::dark(back_color())), 0, 0, 0, e.clip_rectangle().height()); e.graphics().draw_line(pen(color::light(back_color())), 1, e.clip_rectangle().height() - 1, e.clip_rectangle().width(), e.clip_rectangle().height() - 1); e.graphics().draw_line(pen(color::light(back_color())), e.clip_rectangle().width() - 1, 1, e.clip_rectangle().width() - 1, e.clip_rectangle().height() - 1); } cell_state state_ = cell_state::unchecked; bool has_mine_ = false; int neighbors_ = 0; xtd::drawing::point cell_location_; }; }
[ "gammasoft71@gmail.com" ]
gammasoft71@gmail.com
cdeb1288c2a5b30fd0311eda37a1a0f35dc9b905
ad572d5ce0be185edc0e4066f55eac78c8970d2c
/src/common/Paddle.cpp
d39f786a760242fbb0b6a578c479db98c8a44d8f
[ "MIT" ]
permissive
AzariasB/MultiPlayerPong
086f4b1292d482b851c31457a42ff189c1af9326
4b9af38198945b31b05ca83acadccef333e32284
refs/heads/master
2021-06-23T13:41:55.204845
2019-05-09T04:35:55
2019-05-09T04:35:55
108,720,391
0
0
null
null
null
null
UTF-8
C++
false
false
3,527
cpp
/* * The MIT License * * Copyright 2017-2019 azarias. * * 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. */ /* * File: Paddle.cpp * Author: azarias * * Created on 8 octobre 2017, 19:10 */ #include <SFML/Graphics/RectangleShape.hpp> #include <SFML/Graphics/RenderTarget.hpp> #include <math.h> #include <limits> #include "Ball.hpp" #include "Paddle.hpp" #include "Game.hpp" #include "Jay.hpp" namespace mp { Paddle::Paddle(const Game &game, std::size_t pNumber) : PhysicObject(game, this, declareBody(game, pNumber)), m_num(pNumber), m_startPos(toPosition(pNumber)) { } void Paddle::reset() { mBody->SetTransform(m_startPos, mBody->GetAngle()); mBody->SetLinearVelocity(b2Vec2()); m_velocity.y = 0; } b2Body *Paddle::declareBody(const Game &game, std::size_t pNumber) { return Jay::define(game, toPosition(pNumber), b2_dynamicBody, true) .addBoxFixture(PADDLE_WIDTH / 2.f, PADDLE_HEIGHT / 2.f, 0.f, 0.f, 100000.f) .body(); } b2Vec2 Paddle::toPosition(std::size_t pNumber) { return pNumber == 1 ? b2Vec2(PADDLE_WIDTH/2.f, ARENA_HEIGHT/2.f) : b2Vec2(ARENA_WIDTH - PADDLE_WIDTH/2.f, ARENA_HEIGHT/2.f); } Paddle::~Paddle() { } void Paddle::extend() { //m_widthBoost = PADDLE_WIDTH_POWERUP; } void Paddle::retract() { //m_widthBoost = -PADDLE_WIDTH_POWERUP; } void Paddle::setYVelocity(float32 yVelocity) { m_velocity.y = yVelocity * PADDLE_SPEED; mBody->SetLinearVelocity(m_velocity); } std::size_t Paddle::getNum() const { return m_num; } void Paddle::setIsAI(bool isAI) { m_isAI = isAI; } bool Paddle::isAi() const { return m_isAI; } void Paddle::update(const sf::Time &elapsed) { B2_NOT_USED(elapsed); if(!m_isAI)return; float ballYPosition = mGame.getBall().getPosition().y; float mYPosition = mBody->GetPosition().y; if(mYPosition < ballYPosition){ setYVelocity(1); }else if(mYPosition > ballYPosition){ setYVelocity(-1); }else{ setYVelocity(0); } } sf::Packet &operator<<(sf::Packet &packet, const Paddle &paddle) { return packet << paddle.mBody->GetPosition() << paddle.mBody->GetLinearVelocity(); } sf::Packet &operator>>(sf::Packet &packet, Paddle &paddle) { b2Vec2 position; b2Vec2 velocity; packet >> position >> velocity; paddle.mBody->SetTransform(position, paddle.mBody->GetAngle()); paddle.mBody->SetLinearVelocity(velocity); return packet; } }
[ "azarias.boutin@gmail.com" ]
azarias.boutin@gmail.com
038718d331844b269b28ae84ae5cc012253d1c21
4352b5c9e6719d762e6a80e7a7799630d819bca3
/tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/3.04/rho
8e25fa410f0c773bdb3a087795dd6926e9eb9e03
[]
no_license
dashqua/epicProject
d6214b57c545110d08ad053e68bc095f1d4dc725
54afca50a61c20c541ef43e3d96408ef72f0bcbc
refs/heads/master
2022-02-28T17:20:20.291864
2019-10-28T13:33:16
2019-10-28T13:33:16
184,294,390
1
0
null
null
null
null
UTF-8
C++
false
false
161,207
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "3.04"; object rho; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -3 0 0 0 0 0]; internalField nonuniform List<scalar> 22500 ( 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39999 1.39999 1.39999 1.39999 1.4 1.4 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40003 1.40003 1.40003 1.40003 1.40003 1.40003 1.40003 1.40003 1.40003 1.40002 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.40001 1.40001 1.40002 1.40002 1.40003 1.40003 1.40004 1.40004 1.40004 1.40004 1.40004 1.40004 1.40004 1.40003 1.40003 1.40003 1.40003 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.39998 1.39998 1.39998 1.39997 1.39997 1.39997 1.39997 1.39997 1.39997 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.40001 1.40001 1.40002 1.40003 1.40003 1.40004 1.40004 1.40005 1.40005 1.40005 1.40005 1.40005 1.40005 1.40005 1.40004 1.40004 1.40004 1.40003 1.40003 1.40003 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39998 1.39998 1.39998 1.39997 1.39997 1.39997 1.39996 1.39996 1.39996 1.39996 1.39997 1.39997 1.39997 1.39998 1.39999 1.4 1.4 1.40001 1.40002 1.40003 1.40004 1.40005 1.40005 1.40006 1.40006 1.40006 1.40007 1.40007 1.40006 1.40006 1.40006 1.40006 1.40005 1.40005 1.40004 1.40004 1.40003 1.40003 1.40003 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39998 1.39998 1.39997 1.39997 1.39997 1.39996 1.39996 1.39996 1.39996 1.39996 1.39996 1.39996 1.39997 1.39997 1.39998 1.39999 1.4 1.40001 1.40002 1.40004 1.40005 1.40006 1.40007 1.40007 1.40008 1.40008 1.40009 1.40009 1.40009 1.40008 1.40008 1.40008 1.40007 1.40007 1.40006 1.40005 1.40005 1.40004 1.40004 1.40003 1.40003 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39998 1.39998 1.39997 1.39997 1.39996 1.39996 1.39995 1.39995 1.39995 1.39995 1.39995 1.39995 1.39996 1.39997 1.39998 1.39999 1.4 1.40002 1.40003 1.40005 1.40006 1.40007 1.40008 1.40009 1.4001 1.40011 1.40011 1.40011 1.40012 1.40011 1.40011 1.40011 1.4001 1.40009 1.40008 1.40008 1.40007 1.40006 1.40005 1.40004 1.40004 1.40003 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39998 1.39997 1.39997 1.39996 1.39995 1.39995 1.39995 1.39994 1.39994 1.39994 1.39995 1.39996 1.39997 1.39998 1.39999 1.40001 1.40002 1.40004 1.40006 1.40008 1.4001 1.40011 1.40013 1.40014 1.40015 1.40015 1.40016 1.40016 1.40016 1.40015 1.40015 1.40014 1.40013 1.40012 1.40011 1.4001 1.40009 1.40008 1.40006 1.40006 1.40005 1.40004 1.40003 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39998 1.39997 1.39997 1.39996 1.39995 1.39995 1.39994 1.39994 1.39994 1.39994 1.39995 1.39995 1.39997 1.39998 1.4 1.40002 1.40004 1.40007 1.40009 1.40011 1.40014 1.40016 1.40018 1.40019 1.4002 1.40021 1.40022 1.40022 1.40022 1.40021 1.4002 1.40019 1.40018 1.40017 1.40015 1.40014 1.40012 1.40011 1.40009 1.40008 1.40007 1.40006 1.40005 1.40004 1.40003 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39997 1.39996 1.39995 1.39995 1.39994 1.39994 1.39994 1.39994 1.39995 1.39996 1.39997 1.39999 1.40001 1.40004 1.40007 1.4001 1.40013 1.40017 1.4002 1.40023 1.40025 1.40028 1.40029 1.4003 1.40031 1.40031 1.40031 1.4003 1.40029 1.40028 1.40026 1.40024 1.40022 1.4002 1.40018 1.40016 1.40014 1.40012 1.4001 1.40009 1.40007 1.40006 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39995 1.39995 1.39994 1.39994 1.39994 1.39994 1.39995 1.39996 1.39998 1.40001 1.40004 1.40007 1.40011 1.40015 1.4002 1.40025 1.40029 1.40033 1.40037 1.4004 1.40042 1.40044 1.40045 1.40046 1.40045 1.40044 1.40043 1.40041 1.40038 1.40036 1.40033 1.4003 1.40026 1.40023 1.40021 1.40018 1.40015 1.40013 1.40011 1.40009 1.40007 1.40006 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39997 1.39996 1.39995 1.39995 1.39994 1.39994 1.39995 1.39996 1.39997 1.4 1.40003 1.40007 1.40012 1.40017 1.40023 1.40029 1.40036 1.40042 1.40048 1.40053 1.40058 1.40062 1.40065 1.40067 1.40067 1.40067 1.40066 1.40064 1.40061 1.40057 1.40053 1.40049 1.40044 1.4004 1.40035 1.40031 1.40027 1.40023 1.4002 1.40016 1.40014 1.40011 1.40009 1.40007 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39997 1.39996 1.39995 1.39995 1.39995 1.39996 1.39997 1.39999 1.40002 1.40007 1.40012 1.40018 1.40025 1.40033 1.40042 1.40051 1.4006 1.40068 1.40076 1.40084 1.4009 1.40095 1.40098 1.401 1.401 1.40098 1.40096 1.40092 1.40087 1.40081 1.40074 1.40068 1.40061 1.40054 1.40048 1.40041 1.40035 1.4003 1.40025 1.40021 1.40017 1.40014 1.40011 1.40009 1.40007 1.40005 1.40004 1.40003 1.40002 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39997 1.39996 1.39996 1.39996 1.39997 1.39999 1.40002 1.40006 1.40011 1.40018 1.40026 1.40035 1.40046 1.40058 1.4007 1.40083 1.40096 1.40108 1.40119 1.40128 1.40136 1.40142 1.40146 1.40147 1.40146 1.40143 1.40138 1.40131 1.40123 1.40114 1.40105 1.40094 1.40084 1.40074 1.40065 1.40056 1.40047 1.4004 1.40033 1.40027 1.40022 1.40018 1.40014 1.40011 1.40008 1.40006 1.40004 1.40003 1.40002 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.39999 1.39998 1.39998 1.39997 1.39997 1.39998 1.39999 1.40001 1.40004 1.40009 1.40016 1.40025 1.40035 1.40048 1.40062 1.40078 1.40095 1.40113 1.40131 1.40148 1.40165 1.40179 1.40192 1.40202 1.40209 1.40214 1.40214 1.40212 1.40207 1.40198 1.40188 1.40176 1.40162 1.40147 1.40132 1.40117 1.40102 1.40089 1.40076 1.40064 1.40053 1.40044 1.40036 1.40029 1.40023 1.40018 1.40013 1.4001 1.40007 1.40005 1.40004 1.40003 1.40002 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.39999 1.39999 1.39999 1.39998 1.39999 1.40001 1.40003 1.40007 1.40013 1.40022 1.40033 1.40046 1.40062 1.40081 1.40102 1.40125 1.40149 1.40174 1.40199 1.40223 1.40245 1.40265 1.40282 1.40295 1.40304 1.40309 1.40309 1.40304 1.40295 1.40283 1.40267 1.40248 1.40228 1.40207 1.40185 1.40163 1.40142 1.40122 1.40103 1.40087 1.40072 1.40059 1.40047 1.40038 1.40029 1.40023 1.40017 1.40013 1.40009 1.40006 1.40004 1.40003 1.40002 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40003 1.40006 1.40011 1.40018 1.40028 1.40041 1.40058 1.40078 1.40101 1.40129 1.40159 1.40191 1.40225 1.4026 1.40294 1.40327 1.40357 1.40384 1.40406 1.40423 1.40434 1.40439 1.40438 1.4043 1.40417 1.40398 1.40375 1.40349 1.4032 1.40289 1.40257 1.40226 1.40196 1.40168 1.40142 1.40118 1.40097 1.40079 1.40063 1.4005 1.40039 1.4003 1.40022 1.40016 1.40012 1.40008 1.40005 1.40003 1.40002 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40002 1.40003 1.40005 1.40009 1.40014 1.40023 1.40034 1.4005 1.4007 1.40094 1.40124 1.40158 1.40196 1.40239 1.40284 1.40331 1.40379 1.40425 1.40469 1.4051 1.40545 1.40574 1.40596 1.4061 1.40615 1.40612 1.40601 1.40581 1.40555 1.40522 1.40485 1.40444 1.40401 1.40357 1.40313 1.40271 1.40232 1.40195 1.40162 1.40133 1.40107 1.40085 1.40067 1.40051 1.40039 1.40029 1.40021 1.40015 1.4001 1.40007 1.40004 1.40002 1.40001 1.4 1.4 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40003 1.40003 1.40003 1.40003 1.40003 1.40003 1.40003 1.40004 1.40005 1.40007 1.40011 1.40018 1.40027 1.4004 1.40058 1.40082 1.40111 1.40146 1.40189 1.40237 1.40291 1.40349 1.40411 1.40475 1.40539 1.40601 1.4066 1.40713 1.40759 1.40797 1.40825 1.40842 1.40848 1.40842 1.40826 1.40799 1.40763 1.40718 1.40667 1.40611 1.40552 1.40491 1.40431 1.40373 1.40318 1.40267 1.40222 1.40181 1.40145 1.40115 1.4009 1.40069 1.40052 1.40038 1.40028 1.40019 1.40013 1.40008 1.40005 1.40003 1.40001 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40003 1.40003 1.40003 1.40003 1.40004 1.40004 1.40004 1.40005 1.40005 1.40007 1.40009 1.40014 1.40021 1.40031 1.40046 1.40066 1.40093 1.40127 1.40169 1.40219 1.40278 1.40345 1.40418 1.40498 1.40581 1.40666 1.40751 1.40833 1.40909 1.40978 1.41037 1.41085 1.4112 1.41142 1.41148 1.4114 1.41118 1.41082 1.41033 1.40974 1.40905 1.4083 1.40751 1.40669 1.40588 1.40509 1.40434 1.40365 1.40302 1.40246 1.40198 1.40156 1.40122 1.40093 1.4007 1.40051 1.40037 1.40026 1.40017 1.40011 1.40006 1.40003 1.40001 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40003 1.40003 1.40004 1.40004 1.40004 1.40005 1.40005 1.40006 1.40007 1.40009 1.40011 1.40016 1.40023 1.40035 1.4005 1.40073 1.40102 1.40141 1.40189 1.40248 1.40318 1.40399 1.40489 1.40588 1.40694 1.40804 1.40915 1.41025 1.4113 1.41228 1.41315 1.4139 1.4145 1.41494 1.4152 1.41527 1.41516 1.41487 1.4144 1.41377 1.413 1.41212 1.41113 1.41009 1.40901 1.40793 1.40688 1.40588 1.40495 1.4041 1.40334 1.40268 1.40212 1.40165 1.40126 1.40094 1.40069 1.40049 1.40034 1.40023 1.40014 1.40008 1.40004 1.40001 1.4 1.39999 1.39998 1.39998 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40003 1.40003 1.40004 1.40005 1.40005 1.40006 1.40006 1.40007 1.40008 1.4001 1.40013 1.40018 1.40026 1.40037 1.40054 1.40078 1.4011 1.40153 1.40207 1.40275 1.40356 1.40451 1.40559 1.40679 1.4081 1.40947 1.41089 1.41231 1.4137 1.41503 1.41625 1.41733 1.41825 1.41898 1.41951 1.41982 1.41991 1.41977 1.41941 1.41883 1.41804 1.41708 1.41595 1.41471 1.41337 1.41198 1.41058 1.40921 1.40789 1.40665 1.40552 1.40451 1.40363 1.40286 1.40223 1.4017 1.40127 1.40093 1.40066 1.40046 1.40031 1.40019 1.40011 1.40006 1.40002 1.4 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40003 1.40003 1.40004 1.40005 1.40006 1.40006 1.40007 1.40008 1.4001 1.40012 1.40015 1.4002 1.40027 1.40039 1.40057 1.40081 1.40116 1.40162 1.40221 1.40296 1.40388 1.40497 1.40624 1.40767 1.40924 1.41092 1.41267 1.41446 1.41624 1.41795 1.41957 1.42105 1.42235 1.42345 1.42432 1.42495 1.42531 1.42541 1.42525 1.42481 1.42412 1.42318 1.42201 1.42064 1.4191 1.41744 1.4157 1.41392 1.41216 1.41046 1.40885 1.40737 1.40604 1.40486 1.40385 1.40299 1.40229 1.40171 1.40125 1.4009 1.40062 1.40042 1.40027 1.40016 1.40008 1.40003 1.4 1.39998 1.39997 1.39997 1.39997 1.39997 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40003 1.40004 1.40005 1.40006 1.40007 1.40008 1.40009 1.40011 1.40013 1.40016 1.40021 1.40029 1.4004 1.40058 1.40083 1.40119 1.40167 1.40231 1.40312 1.40414 1.40537 1.40681 1.40847 1.41031 1.41231 1.41443 1.41661 1.41881 1.42097 1.42303 1.42494 1.42668 1.42819 1.42945 1.43044 1.43115 1.43157 1.43168 1.43149 1.431 1.43021 1.42913 1.42778 1.42617 1.42435 1.42235 1.42022 1.41803 1.41583 1.41368 1.41163 1.40972 1.408 1.40646 1.40513 1.404 1.40307 1.4023 1.40169 1.40121 1.40084 1.40057 1.40037 1.40022 1.40012 1.40005 1.40001 1.39998 1.39997 1.39996 1.39996 1.39997 1.39997 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40003 1.40004 1.40005 1.40006 1.40007 1.40008 1.4001 1.40012 1.40014 1.40017 1.40022 1.40029 1.40041 1.40058 1.40083 1.40119 1.40168 1.40235 1.40322 1.40431 1.40566 1.40728 1.40915 1.41127 1.4136 1.41609 1.41869 1.42133 1.42395 1.42648 1.42887 1.43105 1.433 1.43467 1.43606 1.43713 1.4379 1.43835 1.43847 1.43828 1.43775 1.43691 1.43573 1.43424 1.43245 1.43038 1.42807 1.42557 1.42295 1.42028 1.41763 1.41508 1.41268 1.41047 1.4085 1.40678 1.40531 1.40408 1.40307 1.40226 1.40163 1.40114 1.40077 1.4005 1.40031 1.40017 1.40008 1.40002 1.39999 1.39997 1.39996 1.39996 1.39996 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40006 1.40007 1.40009 1.4001 1.40012 1.40015 1.40018 1.40023 1.4003 1.40041 1.40057 1.40081 1.40117 1.40166 1.40234 1.40324 1.4044 1.40585 1.40761 1.40968 1.41206 1.41471 1.41758 1.42061 1.42371 1.42681 1.42982 1.43268 1.43532 1.43768 1.43975 1.4415 1.44293 1.44402 1.44479 1.44524 1.44537 1.44518 1.44467 1.44383 1.44265 1.44111 1.43923 1.43701 1.43447 1.43166 1.42865 1.42552 1.42236 1.41925 1.41629 1.41354 1.41106 1.40886 1.40697 1.40538 1.40407 1.40301 1.40218 1.40153 1.40105 1.40069 1.40043 1.40025 1.40012 1.40004 1.39999 1.39996 1.39995 1.39995 1.39995 1.39996 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40003 1.40004 1.40006 1.40007 1.40008 1.4001 1.40012 1.40015 1.40018 1.40023 1.4003 1.4004 1.40055 1.40078 1.40112 1.40161 1.40228 1.40319 1.40438 1.4059 1.40778 1.41003 1.41265 1.41561 1.41885 1.4223 1.42586 1.42944 1.43293 1.43624 1.43931 1.44206 1.44447 1.44652 1.44821 1.44955 1.45056 1.45125 1.45165 1.45177 1.45162 1.45117 1.45042 1.44934 1.44791 1.44609 1.44388 1.44126 1.43828 1.43499 1.43147 1.42782 1.42417 1.42062 1.41727 1.41419 1.41144 1.40905 1.40703 1.40534 1.40398 1.40289 1.40205 1.40141 1.40093 1.40059 1.40035 1.40018 1.40007 1.40001 1.39997 1.39995 1.39994 1.39994 1.39995 1.39996 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40003 1.40004 1.40005 1.40007 1.40008 1.4001 1.40012 1.40015 1.40018 1.40023 1.40029 1.40039 1.40053 1.40074 1.40106 1.40152 1.40218 1.40308 1.40428 1.40584 1.40779 1.41018 1.41301 1.41624 1.41983 1.42369 1.4277 1.43174 1.4357 1.43945 1.4429 1.44598 1.44865 1.4509 1.45272 1.45417 1.45526 1.45605 1.45658 1.45687 1.45696 1.45685 1.45653 1.45598 1.45514 1.45398 1.45244 1.45046 1.448 1.44507 1.44169 1.43794 1.43392 1.42977 1.42565 1.42167 1.41795 1.41458 1.41161 1.40907 1.40693 1.40519 1.4038 1.40271 1.40188 1.40126 1.40081 1.40049 1.40027 1.40012 1.40003 1.39998 1.39995 1.39993 1.39993 1.39994 1.39995 1.39996 1.39997 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40006 1.40008 1.4001 1.40012 1.40015 1.40018 1.40022 1.40028 1.40037 1.4005 1.4007 1.40099 1.40142 1.40204 1.40291 1.40409 1.40565 1.40764 1.41012 1.41311 1.41657 1.42048 1.42471 1.42916 1.43366 1.43806 1.44222 1.44601 1.44934 1.45218 1.45449 1.45631 1.45768 1.45867 1.45934 1.45977 1.46002 1.46014 1.46017 1.46012 1.45998 1.45972 1.45928 1.45859 1.45755 1.45608 1.45407 1.45149 1.44831 1.44459 1.44041 1.43592 1.4313 1.42672 1.42235 1.41831 1.4147 1.41156 1.4089 1.40671 1.40494 1.40355 1.40248 1.40168 1.40109 1.40068 1.40039 1.40019 1.40007 1.39999 1.39995 1.39993 1.39993 1.39993 1.39994 1.39995 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40003 1.40003 1.40004 1.40006 1.40007 1.40009 1.40011 1.40014 1.40017 1.40021 1.40027 1.40035 1.40047 1.40064 1.40091 1.4013 1.40187 1.40269 1.40382 1.40535 1.40734 1.40986 1.41294 1.41659 1.42076 1.42534 1.43019 1.43513 1.43995 1.44449 1.44858 1.4521 1.45501 1.45727 1.45893 1.46005 1.46071 1.46103 1.46111 1.46104 1.46092 1.46081 1.46075 1.46077 1.46086 1.46097 1.46105 1.461 1.46069 1.46 1.45878 1.4569 1.4543 1.45095 1.44692 1.44234 1.43741 1.43234 1.42736 1.42264 1.41834 1.41454 1.41128 1.40856 1.40635 1.4046 1.40324 1.40222 1.40146 1.40092 1.40054 1.40029 1.40012 1.40002 1.39996 1.39993 1.39992 1.39992 1.39993 1.39994 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40006 1.40008 1.4001 1.40013 1.40016 1.4002 1.40026 1.40033 1.40043 1.40059 1.40082 1.40117 1.40169 1.40244 1.4035 1.40496 1.4069 1.4094 1.41252 1.41629 1.42066 1.42554 1.43075 1.4361 1.44134 1.44624 1.45059 1.45427 1.45716 1.45928 1.46064 1.46134 1.4615 1.46125 1.46073 1.46009 1.45943 1.45887 1.45848 1.45831 1.4584 1.45872 1.45926 1.45994 1.46064 1.46124 1.46157 1.46142 1.46061 1.45898 1.45643 1.45296 1.44865 1.44369 1.43834 1.43286 1.42752 1.42253 1.41802 1.4141 1.41079 1.40806 1.40589 1.40419 1.40289 1.40193 1.40124 1.40075 1.40041 1.40019 1.40005 1.39997 1.39993 1.39992 1.39991 1.39992 1.39993 1.39994 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40003 1.40003 1.40004 1.40006 1.40007 1.40009 1.40012 1.40015 1.40019 1.40024 1.4003 1.4004 1.40053 1.40074 1.40104 1.4015 1.40218 1.40315 1.40451 1.40635 1.40878 1.41187 1.41568 1.42018 1.42528 1.43082 1.43655 1.44219 1.44745 1.45207 1.45586 1.45872 1.46061 1.46159 1.46175 1.46126 1.46027 1.45897 1.45752 1.45609 1.45481 1.45378 1.45309 1.4528 1.45294 1.45351 1.45446 1.45575 1.45726 1.45885 1.46033 1.46148 1.46203 1.46174 1.46042 1.45795 1.45435 1.44976 1.44444 1.43869 1.43285 1.42722 1.42201 1.41739 1.41342 1.41011 1.40744 1.40534 1.40372 1.40251 1.40163 1.40101 1.40058 1.40029 1.40011 1.4 1.39994 1.39991 1.39991 1.39991 1.39992 1.39994 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40006 1.40008 1.40011 1.40014 1.40017 1.40022 1.40028 1.40036 1.40048 1.40065 1.40092 1.40132 1.40191 1.40277 1.40401 1.40572 1.40802 1.41102 1.41478 1.41933 1.42458 1.43039 1.43647 1.4425 1.44812 1.45302 1.45696 1.45977 1.46143 1.46198 1.46154 1.4603 1.45846 1.45625 1.45385 1.45147 1.44926 1.44737 1.4459 1.44493 1.44452 1.4447 1.44547 1.44682 1.44867 1.45095 1.45351 1.45617 1.45869 1.46077 1.4621 1.46237 1.46135 1.45893 1.45517 1.45027 1.44457 1.43846 1.43231 1.42645 1.42112 1.41646 1.41252 1.40929 1.40672 1.40473 1.40323 1.40213 1.40134 1.40079 1.40042 1.40019 1.40004 1.39996 1.39992 1.3999 1.3999 1.39991 1.39993 1.39994 1.39995 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40007 1.40009 1.40012 1.40016 1.4002 1.40025 1.40032 1.40043 1.40058 1.4008 1.40114 1.40165 1.4024 1.4035 1.40505 1.40718 1.41002 1.41365 1.41815 1.42346 1.42945 1.43583 1.44223 1.44825 1.45348 1.4576 1.46042 1.46187 1.462 1.46096 1.45895 1.45622 1.45303 1.4496 1.44617 1.44293 1.44003 1.4376 1.43574 1.43453 1.43401 1.43422 1.43516 1.43682 1.43916 1.44211 1.44554 1.44929 1.45313 1.45675 1.45981 1.4619 1.46268 1.46188 1.45942 1.45542 1.45018 1.4441 1.43765 1.43126 1.42527 1.4199 1.41528 1.41144 1.40835 1.40594 1.40409 1.40273 1.40175 1.40106 1.40059 1.40029 1.4001 1.39998 1.39993 1.3999 1.3999 1.39991 1.39992 1.39993 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40006 1.40008 1.40011 1.40014 1.40018 1.40022 1.40029 1.40038 1.4005 1.40069 1.40097 1.4014 1.40205 1.403 1.40437 1.4063 1.40891 1.41234 1.41669 1.42195 1.42802 1.43464 1.4414 1.44782 1.45343 1.45783 1.46074 1.46207 1.46186 1.46027 1.45752 1.45392 1.44974 1.44527 1.44076 1.43643 1.43245 1.42897 1.42611 1.42394 1.42253 1.42192 1.42215 1.42322 1.42513 1.42785 1.43133 1.43547 1.44015 1.44515 1.45021 1.45494 1.45892 1.46168 1.46283 1.46211 1.45947 1.45513 1.44948 1.44303 1.4363 1.42975 1.42371 1.4184 1.41391 1.41025 1.40735 1.40512 1.40346 1.40224 1.40139 1.4008 1.40041 1.40017 1.40002 1.39994 1.39991 1.3999 1.3999 1.39991 1.39993 1.39994 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40007 1.40009 1.40012 1.40015 1.4002 1.40025 1.40033 1.40044 1.40059 1.40083 1.40118 1.40172 1.40253 1.40371 1.40541 1.40776 1.41092 1.41502 1.42012 1.42616 1.43291 1.43998 1.44682 1.45288 1.45765 1.46079 1.46214 1.4617 1.45966 1.45627 1.45185 1.44673 1.44125 1.43567 1.43025 1.42519 1.42064 1.41672 1.41352 1.41112 1.40957 1.40889 1.40913 1.41028 1.41237 1.41536 1.41924 1.42394 1.42935 1.4353 1.44157 1.44781 1.45357 1.45834 1.4616 1.46291 1.46206 1.45908 1.45429 1.44819 1.44139 1.43444 1.42782 1.42185 1.41669 1.41242 1.40899 1.40632 1.40431 1.40284 1.40179 1.40106 1.40058 1.40027 1.40008 1.39997 1.39991 1.39989 1.39989 1.3999 1.39992 1.39994 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40008 1.4001 1.40013 1.40017 1.40022 1.40029 1.40038 1.40051 1.4007 1.40099 1.40143 1.4021 1.40309 1.40455 1.40661 1.40946 1.41323 1.41805 1.42393 1.43069 1.43798 1.44523 1.45179 1.45706 1.46058 1.46211 1.46162 1.45928 1.45537 1.45025 1.44429 1.43785 1.43126 1.42478 1.41865 1.41302 1.40804 1.40379 1.40036 1.39779 1.39613 1.39539 1.39562 1.39683 1.39903 1.40222 1.40639 1.41149 1.41745 1.42415 1.43139 1.43888 1.44622 1.45286 1.45822 1.46172 1.46294 1.46171 1.45821 1.45287 1.44632 1.43921 1.43214 1.42556 1.41975 1.41484 1.41085 1.40771 1.40531 1.40354 1.40227 1.40138 1.40078 1.40039 1.40014 1.4 1.39993 1.3999 1.39989 1.3999 1.39991 1.39993 1.39994 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40005 1.40006 1.40008 1.40011 1.40015 1.40019 1.40025 1.40032 1.40043 1.40058 1.40082 1.40117 1.40171 1.40254 1.40376 1.40552 1.40801 1.4114 1.41584 1.42142 1.42805 1.43543 1.44302 1.45012 1.456 1.46007 1.46198 1.46165 1.45921 1.45496 1.44929 1.4426 1.4353 1.42776 1.42027 1.4131 1.40642 1.40038 1.39508 1.39059 1.38698 1.38427 1.38251 1.38173 1.38194 1.38318 1.38545 1.38878 1.39314 1.39854 1.40491 1.41217 1.42017 1.42867 1.43731 1.4456 1.45292 1.45859 1.46202 1.46284 1.461 1.45681 1.45087 1.44388 1.43655 1.42947 1.42305 1.41751 1.41293 1.40928 1.40646 1.40435 1.40283 1.40175 1.40102 1.40053 1.40023 1.40005 1.39995 1.39991 1.39989 1.39989 1.39991 1.39992 1.39994 1.39995 1.39997 1.39998 1.39998 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40007 1.40009 1.40012 1.40016 1.40021 1.40027 1.40036 1.40049 1.40067 1.40095 1.40139 1.40205 1.40305 1.40452 1.40664 1.4096 1.41359 1.41874 1.42507 1.43239 1.44021 1.44782 1.45438 1.45917 1.46169 1.46176 1.45946 1.45509 1.44904 1.44177 1.43373 1.42533 1.4169 1.40873 1.40102 1.39393 1.38757 1.38202 1.37733 1.37355 1.37071 1.36886 1.36802 1.36821 1.36946 1.37179 1.37521 1.37974 1.38535 1.39204 1.39973 1.40831 1.4176 1.4273 1.43697 1.44601 1.45372 1.45937 1.46238 1.46248 1.45981 1.45483 1.44827 1.44092 1.4335 1.42654 1.42039 1.41521 1.41102 1.40775 1.40528 1.40347 1.40219 1.4013 1.40072 1.40034 1.40011 1.39998 1.39992 1.39989 1.39989 1.3999 1.39992 1.39993 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40007 1.4001 1.40013 1.40017 1.40023 1.4003 1.4004 1.40055 1.40077 1.40111 1.40163 1.40243 1.40363 1.4054 1.40791 1.41139 1.41602 1.4219 1.42896 1.43683 1.44485 1.45213 1.45778 1.46113 1.46186 1.45998 1.45573 1.44953 1.44186 1.43322 1.42406 1.41477 1.40565 1.39695 1.38883 1.3814 1.37475 1.36895 1.36404 1.36008 1.35709 1.35513 1.35422 1.3544 1.35568 1.35807 1.3616 1.36627 1.37208 1.37902 1.38706 1.3961 1.40602 1.41656 1.42736 1.43787 1.4474 1.45515 1.46038 1.4626 1.46171 1.45803 1.45222 1.44511 1.43752 1.43014 1.42344 1.41767 1.41293 1.40919 1.40632 1.40421 1.40269 1.40164 1.40093 1.40047 1.40019 1.40002 1.39994 1.3999 1.39989 1.3999 1.39991 1.39993 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40008 1.40011 1.40014 1.40019 1.40025 1.40033 1.40045 1.40062 1.40089 1.40129 1.40191 1.40287 1.4043 1.40638 1.40934 1.41338 1.41868 1.42529 1.43298 1.44123 1.44915 1.45574 1.46013 1.46181 1.46063 1.45679 1.45069 1.44285 1.43378 1.424 1.41393 1.40395 1.39429 1.38515 1.37666 1.3689 1.36194 1.35583 1.35064 1.34642 1.34324 1.34114 1.34016 1.34034 1.34169 1.34422 1.34791 1.35277 1.35879 1.36598 1.37431 1.38374 1.39416 1.40538 1.4171 1.42884 1.43995 1.4496 1.45697 1.46137 1.46246 1.46035 1.45559 1.44899 1.44145 1.43378 1.4266 1.42028 1.415 1.41076 1.40748 1.40503 1.40326 1.40202 1.40118 1.40062 1.40028 1.40008 1.39997 1.39991 1.3999 1.3999 1.39991 1.39993 1.39994 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40003 1.40003 1.40005 1.40006 1.40009 1.40011 1.40015 1.4002 1.40027 1.40036 1.4005 1.4007 1.40101 1.40149 1.40223 1.40336 1.40504 1.40748 1.41091 1.41555 1.42153 1.42883 1.43705 1.44543 1.45294 1.45851 1.46138 1.46122 1.45812 1.45243 1.44466 1.43537 1.42513 1.41441 1.40363 1.39308 1.38297 1.37343 1.36455 1.35639 1.34901 1.34248 1.33688 1.3323 1.32883 1.32655 1.32551 1.32575 1.32726 1.33002 1.334 1.33917 1.3455 1.35298 1.36162 1.37139 1.38222 1.394 1.40646 1.41921 1.43165 1.443 1.45236 1.4589 1.46206 1.46172 1.45826 1.45243 1.44516 1.43738 1.42983 1.42301 1.41719 1.41245 1.40874 1.40594 1.40389 1.40245 1.40146 1.4008 1.40039 1.40014 1.4 1.39993 1.3999 1.3999 1.39991 1.39992 1.39994 1.39995 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40007 1.40009 1.40012 1.40016 1.40022 1.40029 1.4004 1.40055 1.40078 1.40114 1.40171 1.40258 1.4039 1.40586 1.40869 1.41262 1.41788 1.42455 1.43245 1.44102 1.44928 1.45606 1.46034 1.46152 1.4595 1.45455 1.44715 1.4379 1.42739 1.41617 1.40471 1.39334 1.38231 1.37177 1.3618 1.35243 1.34372 1.33573 1.32858 1.32238 1.31727 1.3134 1.31087 1.30977 1.31013 1.31193 1.31511 1.3196 1.32528 1.33211 1.34003 1.34904 1.35916 1.37037 1.38259 1.39565 1.40923 1.42279 1.43561 1.44677 1.45533 1.46057 1.46213 1.46017 1.45535 1.44858 1.44085 1.43305 1.42579 1.41947 1.41424 1.41009 1.40693 1.40459 1.40293 1.40178 1.40101 1.40052 1.40022 1.40004 1.39995 1.39991 1.3999 1.39991 1.39992 1.39994 1.39995 1.39996 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40007 1.4001 1.40013 1.40017 1.40023 1.40031 1.40043 1.4006 1.40087 1.40129 1.40195 1.40297 1.4045 1.40676 1.41 1.41446 1.42035 1.42766 1.43607 1.44479 1.45266 1.45843 1.46122 1.46064 1.4568 1.45013 1.44121 1.43069 1.41915 1.40714 1.39506 1.3832 1.37172 1.3607 1.35017 1.34013 1.33063 1.32177 1.31371 1.30662 1.30074 1.29626 1.29338 1.29219 1.29276 1.29504 1.29892 1.30422 1.31076 1.31839 1.32701 1.33658 1.34714 1.35872 1.37133 1.38488 1.39911 1.41359 1.42766 1.44041 1.45086 1.45811 1.46161 1.46131 1.45769 1.45161 1.44412 1.4362 1.4286 1.42182 1.41611 1.41152 1.40798 1.40535 1.40345 1.40213 1.40124 1.40066 1.4003 1.40009 1.39998 1.39993 1.39991 1.39991 1.39992 1.39994 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40007 1.4001 1.40013 1.40018 1.40024 1.40033 1.40046 1.40066 1.40097 1.40146 1.40221 1.40339 1.40515 1.40774 1.41141 1.41642 1.42292 1.43082 1.4396 1.44825 1.45546 1.46002 1.46122 1.45888 1.45332 1.44509 1.43484 1.42323 1.41085 1.39818 1.38559 1.37327 1.3613 1.34969 1.3384 1.32742 1.31679 1.30667 1.29729 1.28892 1.2819 1.27655 1.27313 1.27183 1.27271 1.27571 1.28062 1.28718 1.29505 1.30395 1.31367 1.32411 1.33532 1.34738 1.36037 1.37431 1.38906 1.40427 1.41937 1.4335 1.44565 1.45481 1.46025 1.46168 1.45941 1.45422 1.44713 1.43922 1.43137 1.42419 1.41804 1.41302 1.4091 1.40615 1.40401 1.40251 1.40149 1.40082 1.4004 1.40015 1.40001 1.39994 1.39992 1.39991 1.39992 1.39994 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40008 1.4001 1.40014 1.40019 1.40026 1.40035 1.4005 1.40072 1.40107 1.40163 1.4025 1.40384 1.40585 1.40877 1.4129 1.41845 1.42555 1.43395 1.44294 1.4513 1.45764 1.46085 1.46042 1.4564 1.44926 1.43964 1.42824 1.41572 1.40264 1.38943 1.37637 1.36357 1.35102 1.33862 1.32629 1.31398 1.30177 1.28988 1.27863 1.26844 1.25981 1.25321 1.24903 1.24755 1.24886 1.25286 1.25926 1.26762 1.27744 1.28823 1.29961 1.3114 1.32359 1.33632 1.34978 1.36409 1.37924 1.39503 1.41096 1.42625 1.4399 1.45083 1.45814 1.46134 1.46053 1.45636 1.44984 1.44207 1.43407 1.42656 1.41999 1.41456 1.41026 1.407 1.40461 1.40292 1.40177 1.401 1.40052 1.40022 1.40005 1.39997 1.39993 1.39992 1.39992 1.39994 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40008 1.40011 1.40014 1.4002 1.40027 1.40038 1.40054 1.40079 1.40119 1.40182 1.40281 1.40432 1.40659 1.40987 1.41445 1.42055 1.42819 1.43699 1.44602 1.4539 1.4592 1.46099 1.45895 1.45336 1.44479 1.43396 1.42158 1.4083 1.39463 1.38095 1.36743 1.35408 1.34078 1.32734 1.31358 1.29947 1.2851 1.27077 1.25695 1.24428 1.23345 1.22515 1.21995 1.21823 1.2201 1.22544 1.23383 1.24466 1.25716 1.27059 1.28435 1.29809 1.31175 1.32548 1.33957 1.3543 1.3698 1.38602 1.4026 1.41885 1.4338 1.44633 1.4554 1.46034 1.46105 1.45802 1.4522 1.44471 1.43666 1.42889 1.42195 1.41612 1.41146 1.40789 1.40524 1.40336 1.40206 1.40119 1.40064 1.4003 1.4001 1.39999 1.39994 1.39993 1.39993 1.39994 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40008 1.40011 1.40015 1.4002 1.40028 1.40039 1.40057 1.40085 1.4013 1.40201 1.40313 1.40482 1.40736 1.411 1.41604 1.42266 1.4308 1.43989 1.44879 1.45601 1.46017 1.46052 1.45696 1.44992 1.44008 1.4282 1.41499 1.40107 1.38692 1.3728 1.35878 1.34476 1.33048 1.31565 1.30002 1.2835 1.26625 1.24868 1.23149 1.21555 1.20188 1.19142 1.18494 1.18291 1.1855 1.19254 1.20348 1.21748 1.23349 1.25043 1.2674 1.28384 1.29955 1.31472 1.32971 1.34497 1.36082 1.37739 1.39446 1.41147 1.42752 1.44146 1.45217 1.4588 1.46104 1.45922 1.4542 1.4471 1.4391 1.43114 1.42388 1.41769 1.41267 1.40879 1.4059 1.40382 1.40237 1.4014 1.40077 1.40038 1.40015 1.40002 1.39996 1.39994 1.39993 1.39994 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40008 1.40011 1.40015 1.40021 1.40029 1.40041 1.40061 1.40092 1.40142 1.40221 1.40346 1.40535 1.40816 1.41216 1.41765 1.42477 1.43333 1.44258 1.45121 1.45765 1.46062 1.45955 1.45457 1.44623 1.43528 1.42248 1.40857 1.39413 1.37954 1.36498 1.35039 1.33554 1.32002 1.30341 1.28535 1.26574 1.24478 1.22308 1.20161 1.18162 1.16448 1.15142 1.1434 1.14102 1.14448 1.15358 1.16763 1.18553 1.20589 1.22725 1.24834 1.26829 1.28675 1.30387 1.32011 1.3361 1.35236 1.36922 1.38666 1.40426 1.42121 1.43637 1.44857 1.45679 1.46055 1.45998 1.45584 1.44923 1.44136 1.43328 1.42576 1.41924 1.41389 1.4097 1.40656 1.40428 1.40269 1.40161 1.40091 1.40047 1.4002 1.40006 1.39998 1.39995 1.39994 1.39994 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40008 1.40011 1.40015 1.40021 1.4003 1.40043 1.40064 1.40098 1.40154 1.40242 1.4038 1.40588 1.40896 1.41333 1.41926 1.42683 1.43573 1.44504 1.45327 1.45885 1.46062 1.45821 1.45192 1.44241 1.43049 1.41692 1.40243 1.38754 1.37255 1.35751 1.34225 1.32636 1.3093 1.29046 1.26939 1.24592 1.22038 1.19362 1.16699 1.14222 1.12105 1.10502 1.09526 1.09248 1.09693 1.1084 1.12607 1.14857 1.17409 1.20075 1.22685 1.25117 1.27314 1.2928 1.31071 1.32766 1.34443 1.36158 1.3793 1.39735 1.41501 1.43122 1.44473 1.45443 1.45965 1.46034 1.45713 1.45108 1.44343 1.4353 1.42756 1.42074 1.41508 1.41061 1.40723 1.40476 1.40302 1.40184 1.40106 1.40056 1.40027 1.40009 1.4 1.39996 1.39995 1.39995 1.39995 1.39996 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40008 1.40011 1.40015 1.40021 1.4003 1.40045 1.40068 1.40105 1.40166 1.40263 1.40414 1.40642 1.40977 1.41449 1.42083 1.42882 1.43799 1.44724 1.45498 1.45965 1.46024 1.45658 1.44911 1.43859 1.42582 1.41159 1.3966 1.38133 1.36595 1.35039 1.33433 1.31719 1.29826 1.27674 1.25203 1.22396 1.19297 1.16028 1.12775 1.09759 1.07198 1.0527 1.04102 1.03777 1.04328 1.05736 1.07908 1.10676 1.13817 1.17092 1.20284 1.23234 1.25854 1.28137 1.30141 1.31963 1.33705 1.35452 1.37246 1.39082 1.40905 1.42612 1.44078 1.45183 1.45842 1.46035 1.4581 1.45266 1.44529 1.43718 1.42927 1.42219 1.41625 1.41151 1.40789 1.40524 1.40335 1.40206 1.40121 1.40066 1.40033 1.40013 1.40003 1.39998 1.39996 1.39995 1.39996 1.39997 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40008 1.40011 1.40015 1.40021 1.40031 1.40046 1.40071 1.40112 1.40178 1.40283 1.40447 1.40695 1.41057 1.41563 1.42235 1.43069 1.44005 1.44917 1.45636 1.46011 1.4596 1.45478 1.44626 1.43484 1.42135 1.40657 1.39115 1.37553 1.35976 1.34362 1.32661 1.30801 1.2869 1.26227 1.23336 1.19998 1.1628 1.1235 1.0845 1.04857 1.01825 0.995524 0.98179 0.977964 0.984528 1.00135 1.02741 1.06072 1.09858 1.13806 1.17648 1.21183 1.24292 1.2695 1.29214 1.31195 1.33022 1.34806 1.36619 1.38477 1.40341 1.42118 1.43683 1.44908 1.45695 1.46007 1.45877 1.45398 1.44694 1.43889 1.43087 1.42357 1.41737 1.41238 1.40854 1.40571 1.40368 1.40229 1.40136 1.40076 1.4004 1.40018 1.40006 1.39999 1.39997 1.39996 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40005 1.40007 1.4001 1.40015 1.40021 1.40031 1.40047 1.40074 1.40118 1.40189 1.40303 1.4048 1.40747 1.41134 1.41672 1.42379 1.43244 1.44192 1.45083 1.45743 1.4603 1.45875 1.4529 1.44345 1.43125 1.41715 1.40189 1.38611 1.37016 1.35399 1.33719 1.3191 1.29884 1.27529 1.24719 1.21362 1.1744 1.1305 1.08413 1.03837 0.996494 0.961377 0.935139 0.919246 0.914744 0.922281 0.941843 0.972361 1.01155 1.05622 1.10284 1.14822 1.1899 1.22638 1.25721 1.28288 1.3046 1.3239 1.3422 1.36051 1.37924 1.39817 1.41649 1.43297 1.44628 1.45531 1.45955 1.45918 1.45505 1.44837 1.44043 1.43233 1.42485 1.41842 1.4132 1.40916 1.40616 1.40401 1.40251 1.40151 1.40087 1.40046 1.40022 1.40008 1.40001 1.39998 1.39997 1.39997 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40003 1.40004 1.40005 1.40007 1.4001 1.40014 1.40021 1.40031 1.40048 1.40076 1.40123 1.402 1.40322 1.40512 1.40796 1.41207 1.41775 1.42514 1.43402 1.44358 1.45224 1.45825 1.46027 1.45779 1.45102 1.44075 1.42789 1.41328 1.39761 1.3815 1.36524 1.34866 1.33114 1.31186 1.28978 1.26358 1.23178 1.19328 1.14793 1.09705 1.04347 0.990912 0.943172 0.903356 0.873665 0.855622 0.85039 0.858793 0.880951 0.91579 0.960805 1.01233 1.06625 1.11879 1.16704 1.20921 1.24461 1.27364 1.29756 1.3181 1.33696 1.35545 1.37427 1.3934 1.41213 1.4293 1.44352 1.4536 1.45887 1.45938 1.45589 1.4496 1.4418 1.43366 1.42603 1.4194 1.41398 1.40975 1.40659 1.40432 1.40273 1.40166 1.40097 1.40053 1.40027 1.40012 1.40003 1.39999 1.39998 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40003 1.40003 1.40005 1.40007 1.40009 1.40013 1.4002 1.40031 1.40048 1.40078 1.40128 1.40209 1.4034 1.40541 1.40842 1.41274 1.41869 1.42636 1.43545 1.44502 1.45341 1.45885 1.46009 1.45678 1.44922 1.43823 1.42481 1.40976 1.39375 1.37734 1.36078 1.34377 1.32551 1.30496 1.28094 1.252 1.21644 1.17297 1.12149 1.06371 1.00309 0.944013 0.89071 0.846489 0.813601 0.793598 0.787725 0.79692 0.821412 0.860162 0.910553 0.968582 1.02958 1.08916 1.14396 1.19185 1.23195 1.26454 1.29086 1.31279 1.33231 1.35102 1.3699 1.38913 1.40816 1.42588 1.44087 1.45187 1.45807 1.45941 1.45654 1.45062 1.44299 1.43484 1.42709 1.4203 1.41469 1.4103 1.407 1.40461 1.40294 1.40181 1.40107 1.4006 1.40031 1.40015 1.40005 1.40001 1.39999 1.39998 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40006 1.40009 1.40012 1.40019 1.4003 1.40048 1.40079 1.40132 1.40218 1.40355 1.40568 1.40883 1.41336 1.41954 1.42745 1.4367 1.44624 1.45438 1.45927 1.45982 1.45577 1.44754 1.43595 1.42203 1.40663 1.39034 1.37366 1.3568 1.33936 1.32034 1.29849 1.27252 1.24084 1.20163 1.15342 1.09616 1.03192 0.964773 0.899703 0.841358 0.793237 0.757634 0.736074 0.7298 0.739777 0.766263 0.808276 0.863221 0.926943 0.994347 1.06049 1.12149 1.17489 1.2196 1.25575 1.28457 1.308 1.32825 1.3472 1.36611 1.38539 1.40463 1.42277 1.43841 1.45019 1.45722 1.4593 1.45701 1.45147 1.444 1.43587 1.42803 1.42109 1.41533 1.41079 1.40737 1.40488 1.40313 1.40194 1.40116 1.40066 1.40036 1.40018 1.40008 1.40002 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40003 1.40004 1.40005 1.40008 1.40012 1.40018 1.40029 1.40048 1.4008 1.40136 1.40226 1.40369 1.40591 1.4092 1.41389 1.42028 1.4284 1.43776 1.44726 1.45514 1.45957 1.4595 1.45483 1.44604 1.43395 1.41962 1.40392 1.38741 1.37046 1.3533 1.33545 1.31571 1.29261 1.26471 1.23043 1.18786 1.13542 1.07307 1.00316 0.930284 0.859986 0.797307 0.745966 0.708284 0.6857 0.679359 0.690134 0.718232 0.762722 0.821149 0.889413 0.962186 1.03404 1.10058 1.15899 1.20797 1.24753 1.2788 1.30377 1.32478 1.344 1.36293 1.3822 1.40156 1.42002 1.43617 1.44862 1.45636 1.45911 1.45734 1.45214 1.44484 1.43674 1.42884 1.42179 1.4159 1.41123 1.4077 1.40512 1.4033 1.40207 1.40125 1.40073 1.4004 1.40021 1.4001 1.40004 1.40001 1.4 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40005 1.40007 1.40011 1.40017 1.40028 1.40047 1.40081 1.40138 1.40231 1.4038 1.4061 1.40951 1.41434 1.4209 1.42919 1.43864 1.44808 1.45574 1.45978 1.45918 1.45399 1.44475 1.43227 1.41758 1.40164 1.38495 1.36779 1.35031 1.33206 1.31169 1.28746 1.25778 1.2211 1.1756 1.11966 1.05319 0.978726 0.90121 0.826637 0.76046 0.706643 0.667525 0.644409 0.63827 0.649818 0.679151 0.725352 0.786151 0.857657 0.934525 1.01097 1.08214 1.14484 1.19755 1.24016 1.27369 1.30013 1.32192 1.3414 1.36034 1.37957 1.39897 1.41766 1.43422 1.44722 1.45555 1.45886 1.45755 1.45265 1.44552 1.43745 1.42951 1.42236 1.41637 1.4116 1.40798 1.40533 1.40346 1.40218 1.40133 1.40078 1.40044 1.40024 1.40012 1.40005 1.40002 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40003 1.40004 1.40006 1.40009 1.40016 1.40027 1.40046 1.4008 1.40139 1.40235 1.40388 1.40624 1.40975 1.41471 1.42139 1.42981 1.43934 1.44872 1.45618 1.45991 1.45891 1.45328 1.4437 1.43094 1.41597 1.3998 1.38297 1.36565 1.34787 1.32923 1.30834 1.28319 1.25197 1.2132 1.16526 1.10666 1.03726 0.959594 0.878743 0.801005 0.732214 0.676601 0.636534 0.613179 0.607332 0.619542 0.649775 0.697073 0.759292 0.832808 0.912435 0.992233 1.06696 1.13305 1.18879 1.23393 1.26942 1.29717 1.31966 1.3394 1.35833 1.37749 1.39689 1.41572 1.43259 1.44601 1.45483 1.4586 1.45766 1.45303 1.44603 1.43801 1.43004 1.42283 1.41675 1.41191 1.40821 1.4055 1.40359 1.40227 1.4014 1.40084 1.40048 1.40027 1.40014 1.40007 1.40003 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40005 1.40008 1.40014 1.40025 1.40045 1.40079 1.40139 1.40237 1.40393 1.40634 1.40992 1.41497 1.42175 1.43025 1.43984 1.44918 1.45648 1.46 1.45871 1.45275 1.44291 1.42996 1.41479 1.39842 1.38148 1.36405 1.34602 1.32701 1.30571 1.27991 1.24753 1.20706 1.1572 1.09675 1.02565 0.946251 0.863515 0.783823 0.713297 0.656446 0.615721 0.592205 0.586558 0.599223 0.630063 0.678017 0.740951 0.815455 0.896601 0.978476 1.05559 1.12409 1.18205 1.22911 1.26614 1.29495 1.31804 1.33799 1.3569 1.37596 1.39532 1.41422 1.4313 1.44503 1.45421 1.45834 1.4577 1.45327 1.44639 1.43841 1.43042 1.42317 1.41704 1.41214 1.40839 1.40564 1.40369 1.40235 1.40146 1.40088 1.40052 1.40029 1.40016 1.40009 1.40004 1.40002 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40004 1.40007 1.40013 1.40023 1.40043 1.40077 1.40137 1.40237 1.40395 1.40639 1.41001 1.41513 1.42196 1.43052 1.44015 1.44947 1.45667 1.46005 1.4586 1.45242 1.44239 1.42935 1.41407 1.39753 1.38048 1.36301 1.3448 1.32546 1.30383 1.2777 1.24464 1.20299 1.15174 1.09016 1.01841 0.938651 0.855484 0.775098 0.703737 0.646154 0.604971 0.581276 0.575649 0.588491 0.619637 0.667896 0.731035 0.805735 0.887336 0.970097 1.04845 1.11831 1.17761 1.22592 1.26398 1.29356 1.31708 1.33717 1.35603 1.37497 1.39426 1.41318 1.43038 1.44431 1.45374 1.45811 1.45767 1.45339 1.4466 1.43865 1.43066 1.42339 1.41722 1.41229 1.40852 1.40574 1.40377 1.40242 1.40151 1.40092 1.40055 1.40032 1.40018 1.4001 1.40005 1.40003 1.40002 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40003 1.40005 1.40011 1.40021 1.4004 1.40075 1.40135 1.40234 1.40394 1.40639 1.41002 1.41517 1.42204 1.43062 1.44026 1.44959 1.45675 1.46007 1.45857 1.4523 1.44216 1.42909 1.41381 1.39715 1.37998 1.3625 1.34424 1.32465 1.30276 1.27655 1.24337 1.20124 1.14922 1.0871 1.01546 0.936404 0.854064 0.774194 0.702938 0.645222 0.603887 0.580092 0.574352 0.587083 0.618168 0.666352 0.729234 0.803479 0.88464 0.967221 1.0457 1.11591 1.17566 1.22448 1.26305 1.29303 1.31679 1.33692 1.3557 1.37452 1.3937 1.41259 1.42983 1.44386 1.45343 1.45793 1.45761 1.45341 1.44666 1.43874 1.43076 1.42348 1.41731 1.41236 1.40858 1.4058 1.40382 1.40246 1.40155 1.40095 1.40057 1.40034 1.4002 1.40011 1.40006 1.40004 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40002 1.40004 1.40009 1.40019 1.40037 1.40072 1.40131 1.4023 1.40389 1.40634 1.40996 1.4151 1.42198 1.43053 1.44019 1.44954 1.45674 1.46008 1.45864 1.45241 1.44224 1.42919 1.414 1.39732 1.38002 1.36251 1.34431 1.32464 1.30259 1.27646 1.24367 1.20187 1.1499 1.08786 1.01686 0.93916 0.85853 0.780205 0.710028 0.652964 0.612031 0.588433 0.582609 0.594993 0.625602 0.673212 0.735291 0.808438 0.888348 0.969781 1.04736 1.11693 1.17627 1.22487 1.2634 1.29342 1.31718 1.33726 1.35591 1.37459 1.39365 1.41246 1.42967 1.4437 1.45328 1.4578 1.4575 1.45331 1.44658 1.43867 1.43071 1.42344 1.41729 1.41236 1.40859 1.40582 1.40384 1.40248 1.40157 1.40098 1.4006 1.40036 1.40021 1.40013 1.40007 1.40005 1.40003 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40002 1.40007 1.40016 1.40034 1.40068 1.40126 1.40223 1.4038 1.40623 1.40982 1.41492 1.42176 1.43028 1.43991 1.44932 1.45661 1.46009 1.45879 1.45272 1.44264 1.42965 1.41459 1.39802 1.38065 1.36306 1.34497 1.32545 1.30341 1.27748 1.24542 1.20473 1.15382 1.09274 1.02293 0.946982 0.868577 0.792545 0.724361 0.668876 0.629117 0.606216 0.600487 0.612379 0.642088 0.688528 0.749137 0.820454 0.898288 0.977633 1.05333 1.12132 1.1794 1.2271 1.26505 1.29472 1.31827 1.33817 1.35666 1.37517 1.3941 1.41279 1.42989 1.44383 1.45331 1.45774 1.45735 1.45312 1.44636 1.43845 1.43051 1.42328 1.41717 1.41228 1.40854 1.40579 1.40384 1.40249 1.40158 1.40099 1.40061 1.40037 1.40023 1.40014 1.40008 1.40005 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.40001 1.40005 1.40013 1.40031 1.40063 1.4012 1.40215 1.40368 1.40608 1.40961 1.41464 1.4214 1.42986 1.43946 1.44891 1.45637 1.46007 1.45903 1.45321 1.44335 1.43049 1.41559 1.39922 1.38189 1.36421 1.34621 1.32698 1.30526 1.2797 1.24854 1.20949 1.16066 1.10167 1.03394 0.960299 0.884537 0.811343 0.745932 0.692919 0.655116 0.633422 0.627989 0.639279 0.667692 0.712349 0.770745 0.83941 0.914275 0.990589 1.06343 1.12891 1.18495 1.23109 1.26795 1.29692 1.32003 1.33965 1.35793 1.37627 1.39504 1.41358 1.4305 1.44424 1.4535 1.45772 1.45717 1.45281 1.446 1.43808 1.43017 1.423 1.41695 1.41212 1.40843 1.40572 1.4038 1.40248 1.40158 1.401 1.40062 1.40039 1.40024 1.40015 1.40009 1.40006 1.40004 1.40003 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39998 1.39998 1.39999 1.40003 1.40011 1.40027 1.40058 1.40112 1.40205 1.40354 1.40587 1.40933 1.41425 1.4209 1.42926 1.43881 1.44832 1.45599 1.46002 1.45933 1.45387 1.44433 1.43171 1.417 1.40086 1.38372 1.36603 1.34805 1.32917 1.30803 1.28318 1.25309 1.21593 1.16988 1.11413 1.0497 0.979314 0.906878 0.837143 0.775204 0.725366 0.690051 0.669845 0.664772 0.675331 0.702094 0.744402 0.79986 0.865038 0.936012 1.00833 1.07738 1.13949 1.19272 1.2367 1.27202 1.29998 1.32245 1.34168 1.35971 1.37788 1.39648 1.41481 1.43149 1.44492 1.45385 1.45775 1.45693 1.45239 1.44548 1.43756 1.42969 1.4226 1.41663 1.41188 1.40827 1.40562 1.40374 1.40244 1.40157 1.401 1.40063 1.4004 1.40025 1.40016 1.4001 1.40007 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39998 1.39998 1.39997 1.39997 1.39998 1.40001 1.40008 1.40023 1.40052 1.40104 1.40193 1.40337 1.40562 1.40898 1.41377 1.42026 1.42849 1.43798 1.44754 1.45545 1.45989 1.45969 1.45469 1.44556 1.43328 1.41883 1.40294 1.38607 1.36853 1.35059 1.33198 1.31157 1.28778 1.25908 1.22399 1.18102 1.12928 1.06932 1.00344 0.935395 0.870012 0.812289 0.766131 0.733486 0.714739 0.709924 0.719594 0.744423 0.783906 0.835786 0.896716 0.962942 1.03034 1.09471 1.15267 1.20247 1.24378 1.27717 1.30383 1.3255 1.34426 1.36201 1.37999 1.3984 1.41649 1.43284 1.44585 1.45433 1.4578 1.45663 1.45185 1.44482 1.43688 1.42907 1.42207 1.41622 1.41158 1.40805 1.40548 1.40365 1.40239 1.40155 1.40099 1.40063 1.4004 1.40026 1.40016 1.40011 1.40007 1.40005 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39997 1.39996 1.39996 1.39999 1.40005 1.40019 1.40046 1.40095 1.4018 1.40317 1.40533 1.40857 1.4132 1.41951 1.42755 1.43695 1.44657 1.45474 1.45965 1.46005 1.45564 1.447 1.43515 1.42105 1.40547 1.38889 1.37163 1.35386 1.33549 1.31576 1.29324 1.26631 1.23358 1.19388 1.14649 1.09171 1.03136 0.968876 0.908926 0.856212 0.814057 0.784028 0.766573 0.761895 0.770568 0.793263 0.829569 0.877342 0.933375 0.994138 1.05587 1.11482 1.16798 1.21382 1.25206 1.28323 1.3084 1.32914 1.34736 1.36482 1.3826 1.4008 1.4186 1.43452 1.44702 1.45492 1.45785 1.45624 1.45117 1.44401 1.43605 1.42832 1.42144 1.41572 1.4112 1.40779 1.4053 1.40354 1.40233 1.40151 1.40097 1.40063 1.4004 1.40026 1.40017 1.40011 1.40008 1.40005 1.40004 1.40003 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39995 1.39995 1.39997 1.40002 1.40015 1.4004 1.40086 1.40165 1.40296 1.40501 1.4081 1.41256 1.41864 1.42647 1.43573 1.4454 1.45385 1.45928 1.46037 1.45667 1.44865 1.4373 1.42364 1.40842 1.39219 1.37527 1.35781 1.33976 1.32065 1.29937 1.27443 1.24442 1.20824 1.16536 1.11603 1.06176 1.00565 0.952034 0.904937 0.866943 0.83945 0.82323 0.818691 0.826335 0.846775 0.879654 0.922942 0.973587 1.02835 1.0839 1.13692 1.18485 1.22637 1.26129 1.29006 1.3136 1.33333 1.35099 1.36814 1.38571 1.40367 1.4211 1.43651 1.44837 1.45558 1.45787 1.45575 1.45034 1.44303 1.43507 1.42743 1.4207 1.41514 1.41077 1.40748 1.40509 1.40341 1.40225 1.40147 1.40095 1.40062 1.4004 1.40026 1.40017 1.40012 1.40008 1.40006 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39998 1.39998 1.39997 1.39995 1.39994 1.39994 1.39995 1.4 1.40011 1.40033 1.40076 1.4015 1.40273 1.40466 1.40759 1.41183 1.41768 1.42525 1.43432 1.44401 1.45275 1.45874 1.46059 1.45773 1.45046 1.4397 1.42653 1.41176 1.39595 1.37941 1.36235 1.34475 1.32628 1.30614 1.28315 1.25599 1.2236 1.18541 1.14164 1.09363 1.0443 0.997429 0.956121 0.922256 0.89732 0.882462 0.87816 0.884781 0.90289 0.932196 0.970766 1.01574 1.0642 1.11328 1.16015 1.20265 1.23971 1.27119 1.29747 1.31933 1.33803 1.35511 1.37196 1.38931 1.407 1.42399 1.43878 1.44987 1.45627 1.45782 1.45512 1.44936 1.44189 1.43395 1.42643 1.41986 1.41449 1.41029 1.40714 1.40486 1.40326 1.40215 1.40141 1.40092 1.4006 1.4004 1.40026 1.40018 1.40012 1.40008 1.40006 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39995 1.39993 1.39993 1.39993 1.39997 1.40007 1.40027 1.40066 1.40134 1.40248 1.40429 1.40704 1.41105 1.41662 1.4239 1.43274 1.4424 1.45141 1.45799 1.46066 1.45874 1.45236 1.44233 1.42971 1.41544 1.4001 1.38403 1.36744 1.35036 1.33259 1.31355 1.29235 1.26794 1.23932 1.20589 1.16772 1.12607 1.0836 1.0434 1.00762 0.977741 0.95547 0.94216 0.938171 0.943762 0.959537 0.985239 1.01901 1.05822 1.10034 1.14293 1.18366 1.22076 1.25341 1.2815 1.30532 1.32552 1.34321 1.35973 1.37628 1.3934 1.41075 1.42722 1.44126 1.45145 1.45693 1.45765 1.45433 1.4482 1.44059 1.43268 1.4253 1.41894 1.41377 1.40976 1.40676 1.4046 1.40309 1.40205 1.40135 1.40089 1.40059 1.40039 1.40026 1.40018 1.40012 1.40009 1.40006 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39998 1.39997 1.39996 1.39994 1.39993 1.39992 1.39992 1.39994 1.40003 1.40021 1.40056 1.40118 1.40223 1.40391 1.40647 1.41023 1.41549 1.42245 1.43101 1.44057 1.44982 1.45699 1.46054 1.45964 1.45428 1.44511 1.43316 1.41942 1.4046 1.38906 1.373 1.35651 1.33948 1.32152 1.30199 1.28009 1.25498 1.22606 1.19335 1.15796 1.12216 1.0882 1.0575 1.03146 1.012 1.00035 0.996664 1.00125 1.0148 1.03702 1.06607 1.09961 1.13554 1.17187 1.20672 1.23867 1.26713 1.29199 1.31347 1.3321 1.34883 1.36483 1.38109 1.39795 1.41491 1.43073 1.4439 1.45307 1.45751 1.45733 1.45336 1.44685 1.43911 1.43127 1.42407 1.41794 1.413 1.40919 1.40636 1.40433 1.40291 1.40194 1.40128 1.40085 1.40057 1.40038 1.40026 1.40018 1.40012 1.40009 1.40006 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39994 1.39992 1.39991 1.39991 1.39992 1.39999 1.40015 1.40046 1.40103 1.40198 1.40352 1.40589 1.40938 1.41431 1.4209 1.42914 1.43853 1.44795 1.45571 1.46017 1.46035 1.45611 1.44797 1.43683 1.4237 1.4094 1.39441 1.37896 1.36313 1.34687 1.32996 1.31197 1.29232 1.27033 1.24551 1.21787 1.18832 1.15858 1.13016 1.10408 1.08183 1.06526 1.05526 1.05188 1.05559 1.06713 1.08606 1.1106 1.13873 1.16883 1.19934 1.22876 1.25598 1.28059 1.3025 1.32184 1.33903 1.35488 1.37041 1.38639 1.40295 1.41941 1.43448 1.44662 1.45463 1.45794 1.4568 1.45216 1.44529 1.43747 1.42973 1.42275 1.41687 1.41218 1.40859 1.40594 1.40405 1.40272 1.40182 1.40121 1.40081 1.40054 1.40037 1.40025 1.40018 1.40012 1.40009 1.40006 1.40005 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39994 1.39992 1.3999 1.39989 1.39991 1.39996 1.4001 1.40037 1.40087 1.40174 1.40313 1.4053 1.40852 1.4131 1.41929 1.42714 1.43631 1.44581 1.45409 1.45947 1.46082 1.4578 1.4508 1.44061 1.42822 1.4145 1.40005 1.38521 1.37009 1.35464 1.33876 1.32218 1.3045 1.28524 1.26404 1.24089 1.21645 1.19191 1.16828 1.14644 1.12786 1.11409 1.10564 1.1026 1.10565 1.11543 1.13131 1.15161 1.17475 1.19954 1.22481 1.24937 1.27241 1.29362 1.31291 1.33035 1.34627 1.36135 1.37646 1.39216 1.40835 1.42421 1.43836 1.44934 1.45605 1.45814 1.45603 1.45073 1.44354 1.43567 1.42808 1.42135 1.41575 1.41133 1.40797 1.40551 1.40375 1.40253 1.4017 1.40114 1.40077 1.40052 1.40036 1.40025 1.40017 1.40012 1.40009 1.40006 1.40005 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39995 1.39994 1.39992 1.3999 1.39989 1.39989 1.39993 1.40004 1.40028 1.40072 1.4015 1.40275 1.40471 1.40765 1.41187 1.41763 1.42506 1.43392 1.44341 1.45212 1.45841 1.46095 1.45924 1.4535 1.44442 1.43291 1.41986 1.40597 1.39171 1.37727 1.36265 1.34778 1.33249 1.31656 1.29966 1.28155 1.26217 1.24198 1.22182 1.20235 1.18435 1.16918 1.15792 1.15085 1.14822 1.15083 1.15906 1.17207 1.18846 1.20714 1.22729 1.24801 1.26838 1.28783 1.30613 1.32318 1.33899 1.3538 1.36824 1.38297 1.39835 1.4141 1.42921 1.44229 1.45194 1.45725 1.45806 1.45495 1.44903 1.44157 1.43373 1.42633 1.41989 1.4146 1.41046 1.40734 1.40507 1.40345 1.40233 1.40157 1.40106 1.40072 1.40049 1.40034 1.40024 1.40017 1.40012 1.40009 1.40006 1.40005 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39998 1.39997 1.39995 1.39994 1.39992 1.39989 1.39988 1.39987 1.39991 1.4 1.4002 1.40059 1.40126 1.40238 1.40414 1.4068 1.41065 1.41596 1.42291 1.43138 1.44075 1.4498 1.45691 1.46067 1.46034 1.45597 1.44813 1.43765 1.42541 1.41216 1.39846 1.38463 1.37078 1.35686 1.34278 1.3284 1.31353 1.29795 1.28164 1.26498 1.24847 1.23255 1.21794 1.20573 1.1966 1.19073 1.18857 1.19086 1.19763 1.20798 1.22088 1.23572 1.25197 1.26889 1.28576 1.30223 1.31812 1.3333 1.34774 1.36164 1.37552 1.38991 1.40494 1.42011 1.43432 1.44614 1.45432 1.45813 1.45763 1.45355 1.44707 1.43941 1.43165 1.4245 1.41838 1.41342 1.40958 1.40671 1.40462 1.40315 1.40214 1.40145 1.40098 1.40067 1.40046 1.40032 1.40023 1.40016 1.40012 1.40009 1.40006 1.40005 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39994 1.39992 1.39989 1.39988 1.39987 1.39989 1.39996 1.40013 1.40046 1.40105 1.40204 1.40359 1.40597 1.40945 1.41429 1.42073 1.42875 1.43788 1.44711 1.45495 1.45989 1.46099 1.4581 1.45163 1.44233 1.43104 1.41853 1.40544 1.39219 1.37899 1.36591 1.35291 1.33989 1.32669 1.31319 1.29942 1.28565 1.27214 1.25917 1.24741 1.23763 1.23022 1.2254 1.22373 1.22569 1.23104 1.23898 1.24893 1.26064 1.27373 1.28757 1.30164 1.31571 1.32966 1.34333 1.35663 1.36977 1.38319 1.39723 1.41183 1.42629 1.43941 1.44979 1.45635 1.45859 1.45678 1.4518 1.44483 1.43707 1.42945 1.42261 1.41685 1.41224 1.4087 1.40608 1.40419 1.40286 1.40195 1.40132 1.4009 1.40062 1.40044 1.40031 1.40022 1.40016 1.40011 1.40008 1.40006 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39994 1.39992 1.39989 1.39987 1.39986 1.39986 1.39992 1.40006 1.40034 1.40085 1.40171 1.40308 1.40519 1.40829 1.41267 1.41856 1.42605 1.43484 1.4441 1.45251 1.45855 1.46111 1.45977 1.4548 1.44682 1.43662 1.42499 1.4126 1.39993 1.38732 1.37494 1.36282 1.35091 1.3391 1.32733 1.31565 1.30417 1.29301 1.28245 1.273 1.26515 1.25913 1.25522 1.25393 1.25545 1.25943 1.26534 1.27298 1.28227 1.29289 1.30432 1.31621 1.32843 1.34085 1.3533 1.3657 1.37822 1.39123 1.40489 1.41894 1.4325 1.44432 1.45309 1.45791 1.45855 1.45547 1.44967 1.44234 1.43456 1.42718 1.42069 1.41531 1.41107 1.40784 1.40547 1.40377 1.40258 1.40176 1.4012 1.40083 1.40058 1.40041 1.40029 1.40021 1.40015 1.40011 1.40008 1.40006 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39998 1.39997 1.39996 1.39994 1.39992 1.39989 1.39987 1.39986 1.39985 1.3999 1.40001 1.40023 1.40067 1.40141 1.4026 1.40445 1.40719 1.4111 1.41644 1.42334 1.43167 1.44081 1.4496 1.45661 1.46058 1.46086 1.45749 1.45097 1.44203 1.43142 1.41983 1.40782 1.39579 1.38401 1.37257 1.36151 1.3508 1.34043 1.33036 1.32061 1.3113 1.30267 1.29504 1.28866 1.28373 1.28057 1.27949 1.2805 1.28329 1.28766 1.29363 1.30116 1.30991 1.31951 1.32975 1.34055 1.3518 1.36329 1.37496 1.38697 1.39958 1.41279 1.42613 1.43858 1.44888 1.45587 1.45888 1.45793 1.45368 1.44718 1.4396 1.43193 1.42485 1.41876 1.41379 1.40992 1.40701 1.40488 1.40336 1.40231 1.40158 1.40109 1.40076 1.40053 1.40038 1.40027 1.4002 1.40014 1.4001 1.40008 1.40006 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39994 1.39992 1.3999 1.39987 1.39985 1.39985 1.39987 1.39996 1.40015 1.4005 1.40114 1.40216 1.40376 1.40616 1.40961 1.41439 1.42067 1.42844 1.43728 1.44627 1.45406 1.45934 1.46124 1.45956 1.45464 1.44709 1.43766 1.42702 1.41576 1.40435 1.39313 1.38226 1.37187 1.362 1.35263 1.3437 1.33525 1.32739 1.32023 1.31392 1.30864 1.30457 1.30196 1.30096 1.30149 1.30342 1.30675 1.3116 1.31787 1.32525 1.33349 1.34252 1.35228 1.36262 1.37334 1.38441 1.39598 1.40817 1.42081 1.43323 1.44434 1.45291 1.45799 1.45915 1.45668 1.45138 1.44436 1.43667 1.4292 1.4225 1.41685 1.41231 1.40882 1.40621 1.40432 1.40298 1.40205 1.40141 1.40098 1.40068 1.40048 1.40035 1.40025 1.40018 1.40013 1.4001 1.40007 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.39999 1.39998 1.39998 1.39996 1.39994 1.39993 1.3999 1.39987 1.39986 1.39984 1.39985 1.39992 1.40007 1.40036 1.40089 1.40176 1.40314 1.40521 1.40823 1.41244 1.41808 1.42522 1.43361 1.44256 1.45091 1.45734 1.46081 1.46087 1.45766 1.45166 1.44355 1.43401 1.42363 1.41293 1.40227 1.39194 1.3821 1.37284 1.36414 1.35604 1.34857 1.34174 1.33559 1.33021 1.32576 1.32235 1.3201 1.31911 1.31932 1.32073 1.32345 1.32756 1.33294 1.33933 1.34661 1.35478 1.36377 1.37339 1.38349 1.39405 1.40518 1.41687 1.42877 1.44004 1.44955 1.45621 1.45929 1.45864 1.45478 1.44861 1.44123 1.43359 1.42642 1.42016 1.41498 1.41089 1.40776 1.40545 1.40379 1.40262 1.40181 1.40125 1.40087 1.40062 1.40044 1.40032 1.40023 1.40017 1.40013 1.40009 1.40007 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39995 1.39993 1.39991 1.39988 1.39985 1.39984 1.39984 1.39989 1.4 1.40025 1.40068 1.40141 1.40258 1.40435 1.40696 1.41064 1.41562 1.42206 1.42988 1.43858 1.44723 1.45457 1.45949 1.46128 1.45986 1.45555 1.44893 1.44063 1.43127 1.42139 1.41139 1.40161 1.39226 1.38346 1.37527 1.36778 1.36097 1.35481 1.34933 1.34463 1.34078 1.33781 1.33581 1.33484 1.33491 1.33608 1.33847 1.34211 1.34685 1.35254 1.35915 1.36671 1.37512 1.38417 1.39372 1.40381 1.41446 1.42552 1.43645 1.4463 1.45399 1.45859 1.45965 1.4573 1.45223 1.44541 1.43786 1.43041 1.42365 1.41788 1.41319 1.40953 1.40677 1.40475 1.4033 1.40229 1.40158 1.4011 1.40078 1.40055 1.4004 1.40029 1.40021 1.40016 1.40012 1.40009 1.40006 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39995 1.39993 1.39991 1.39989 1.39986 1.39984 1.39984 1.39987 1.39995 1.40014 1.4005 1.4011 1.40208 1.40359 1.40581 1.40898 1.41333 1.41905 1.42618 1.43443 1.4431 1.45108 1.45723 1.46068 1.46109 1.45857 1.45358 1.4467 1.43853 1.42959 1.42036 1.41119 1.40234 1.39397 1.38622 1.37915 1.37276 1.36704 1.36204 1.35783 1.35437 1.3517 1.34989 1.34901 1.34907 1.35016 1.35237 1.35569 1.35998 1.36519 1.37136 1.37847 1.38639 1.39493 1.404 1.4136 1.42367 1.4339 1.44359 1.45176 1.45743 1.45989 1.45899 1.45512 1.44908 1.44185 1.43432 1.42721 1.42093 1.41569 1.41149 1.40826 1.40585 1.4041 1.40285 1.40198 1.40138 1.40097 1.40069 1.4005 1.40036 1.40027 1.4002 1.40015 1.40011 1.40008 1.40006 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39994 1.39991 1.39989 1.39987 1.39984 1.39984 1.39985 1.39991 1.40006 1.40034 1.40084 1.40165 1.40291 1.40478 1.40748 1.41123 1.41624 1.42261 1.43023 1.43866 1.44697 1.45408 1.45901 1.46119 1.46053 1.4573 1.452 1.44516 1.43735 1.42902 1.42056 1.41227 1.40436 1.39702 1.3903 1.38421 1.37883 1.3742 1.37028 1.36707 1.36462 1.36301 1.36224 1.36235 1.36344 1.36556 1.36864 1.37262 1.37751 1.38336 1.3901 1.39758 1.40564 1.41421 1.42325 1.43258 1.44173 1.44989 1.45613 1.45964 1.45999 1.4573 1.45215 1.44542 1.43802 1.43071 1.42404 1.4183 1.41361 1.40991 1.40709 1.40501 1.40351 1.40244 1.4017 1.4012 1.40085 1.40061 1.40044 1.40032 1.40024 1.40018 1.40013 1.4001 1.40008 1.40006 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.39999 1.39998 1.39997 1.39996 1.39995 1.39992 1.3999 1.39988 1.39985 1.39984 1.39984 1.39988 1.4 1.40022 1.40062 1.40128 1.40232 1.40388 1.40616 1.40935 1.41365 1.41925 1.42614 1.43405 1.44236 1.4501 1.45626 1.46009 1.46127 1.45989 1.45629 1.45096 1.44443 1.43715 1.42954 1.42193 1.41457 1.40765 1.40126 1.39548 1.39039 1.38601 1.3823 1.37929 1.37705 1.37561 1.37495 1.37513 1.37623 1.37828 1.38119 1.38496 1.38962 1.3952 1.40159 1.40863 1.41619 1.42419 1.43254 1.4409 1.44868 1.45504 1.45916 1.46046 1.45882 1.4546 1.44849 1.44137 1.43403 1.4271 1.42096 1.41581 1.41167 1.40845 1.40603 1.40425 1.40298 1.40208 1.40146 1.40103 1.40073 1.40053 1.40039 1.40029 1.40022 1.40016 1.40012 1.40009 1.40007 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39997 1.39996 1.39995 1.39993 1.39991 1.39988 1.39986 1.39984 1.39984 1.39986 1.39995 1.40012 1.40043 1.40097 1.40182 1.40311 1.405 1.40768 1.41134 1.41616 1.42224 1.42948 1.43746 1.44544 1.45249 1.45774 1.46067 1.46115 1.45936 1.45568 1.45059 1.44453 1.43792 1.43112 1.42441 1.41799 1.41201 1.40657 1.40176 1.39759 1.39407 1.39127 1.38921 1.38789 1.38732 1.38758 1.3887 1.39068 1.39346 1.39706 1.40154 1.40684 1.41285 1.4194 1.42639 1.43371 1.44115 1.44827 1.45438 1.45872 1.46063 1.45982 1.45644 1.45101 1.44428 1.43706 1.43 1.42358 1.41805 1.4135 1.40989 1.40713 1.40507 1.40357 1.4025 1.40176 1.40124 1.40088 1.40063 1.40046 1.40034 1.40026 1.40019 1.40015 1.40011 1.40008 1.40006 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39995 1.39994 1.39992 1.39989 1.39987 1.39985 1.39984 1.39986 1.39991 1.40004 1.40029 1.40071 1.40139 1.40245 1.404 1.40622 1.40929 1.41338 1.41864 1.42508 1.43248 1.44032 1.44784 1.45418 1.45866 1.46093 1.46098 1.45907 1.45556 1.45089 1.44545 1.43962 1.43369 1.42788 1.42238 1.41735 1.41285 1.40893 1.40563 1.40303 1.40113 1.39992 1.39944 1.39977 1.4009 1.40279 1.40545 1.40891 1.41317 1.41814 1.42369 1.42968 1.43598 1.44243 1.44872 1.4543 1.4585 1.46068 1.46044 1.45774 1.45294 1.44669 1.4397 1.43264 1.42605 1.42023 1.41533 1.41138 1.40829 1.40595 1.40422 1.40297 1.40209 1.40147 1.40104 1.40075 1.40055 1.4004 1.4003 1.40023 1.40017 1.40013 1.4001 1.40008 1.40006 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39994 1.39993 1.3999 1.39988 1.39986 1.39984 1.39985 1.39989 1.39998 1.40017 1.4005 1.40104 1.40189 1.40316 1.40498 1.40751 1.41094 1.4154 1.42099 1.42762 1.43502 1.44259 1.44958 1.45527 1.45914 1.461 1.46089 1.45909 1.45594 1.45183 1.44712 1.4421 1.43706 1.43218 1.42764 1.42352 1.41991 1.41689 1.41449 1.41274 1.41164 1.41127 1.41164 1.41274 1.41455 1.41707 1.42035 1.42433 1.42888 1.43388 1.43917 1.44461 1.44997 1.45482 1.4586 1.46073 1.46077 1.45857 1.45433 1.44855 1.44187 1.43493 1.42827 1.42227 1.41711 1.41285 1.40948 1.40687 1.40491 1.40348 1.40245 1.40173 1.40123 1.40088 1.40064 1.40047 1.40035 1.40026 1.4002 1.40015 1.40012 1.40009 1.40007 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.39999 1.39998 1.39998 1.39996 1.39995 1.39993 1.39991 1.39989 1.39987 1.39985 1.39985 1.39987 1.39994 1.40008 1.40034 1.40076 1.40143 1.40245 1.40393 1.406 1.40883 1.41255 1.4173 1.42309 1.42979 1.43702 1.4442 1.45068 1.45583 1.45929 1.46095 1.4609 1.4594 1.45675 1.45332 1.44939 1.44525 1.44112 1.43717 1.43353 1.43031 1.42761 1.42544 1.42386 1.42291 1.42263 1.42302 1.42407 1.42577 1.42813 1.43115 1.43473 1.43875 1.44305 1.44749 1.45187 1.45587 1.45903 1.46086 1.46092 1.459 1.45519 1.44985 1.44352 1.43678 1.43017 1.42408 1.41874 1.41426 1.41063 1.40779 1.40562 1.40401 1.40284 1.40201 1.40142 1.40101 1.40073 1.40054 1.4004 1.4003 1.40023 1.40018 1.40014 1.4001 1.40008 1.40006 1.40005 1.40003 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39994 1.39992 1.3999 1.39988 1.39987 1.39986 1.39987 1.39991 1.40002 1.40021 1.40054 1.40107 1.40187 1.40305 1.40472 1.40702 1.41009 1.41405 1.41898 1.42485 1.43146 1.43841 1.44518 1.45118 1.45594 1.45916 1.46079 1.46097 1.4599 1.45788 1.45518 1.45209 1.44884 1.44561 1.44256 1.43983 1.4375 1.43562 1.43426 1.43346 1.43326 1.43364 1.43461 1.43617 1.4383 1.44096 1.44402 1.44735 1.4508 1.45419 1.45728 1.4597 1.46103 1.46091 1.45908 1.45555 1.45058 1.4446 1.43814 1.43167 1.4256 1.42017 1.41554 1.41172 1.40868 1.40633 1.40455 1.40324 1.4023 1.40163 1.40116 1.40083 1.40061 1.40045 1.40034 1.40026 1.4002 1.40015 1.40012 1.40009 1.40007 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39995 1.39993 1.39991 1.39989 1.39987 1.39986 1.39987 1.3999 1.39997 1.40012 1.40037 1.40077 1.40141 1.40233 1.40367 1.40552 1.40801 1.41126 1.41537 1.42036 1.42618 1.43259 1.4392 1.44554 1.45113 1.45559 1.45871 1.46048 1.46099 1.46045 1.45911 1.4572 1.45496 1.45258 1.45024 1.44808 1.44619 1.44466 1.44356 1.44294 1.4428 1.44315 1.444 1.44534 1.44714 1.44931 1.45171 1.45421 1.45664 1.4588 1.46041 1.46114 1.46067 1.45877 1.45541 1.45074 1.44511 1.43895 1.4327 1.42674 1.42133 1.41662 1.41269 1.4095 1.40699 1.40507 1.40364 1.40259 1.40184 1.40131 1.40094 1.40068 1.4005 1.40038 1.40029 1.40022 1.40017 1.40013 1.4001 1.40008 1.40006 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39998 1.39997 1.39996 1.39994 1.39992 1.39991 1.39989 1.39988 1.39987 1.39989 1.39994 1.40005 1.40024 1.40055 1.40103 1.40176 1.40281 1.40428 1.40627 1.4089 1.41226 1.41642 1.42138 1.42704 1.43316 1.43938 1.44529 1.45053 1.45478 1.45789 1.45987 1.46079 1.46083 1.46018 1.45905 1.45764 1.45611 1.4546 1.45324 1.45212 1.45131 1.45086 1.45077 1.45108 1.45177 1.45282 1.45417 1.45571 1.45732 1.45884 1.46011 1.46092 1.46101 1.46011 1.45805 1.45475 1.45032 1.44501 1.43919 1.43323 1.42746 1.42215 1.41747 1.41348 1.41021 1.40759 1.40556 1.40402 1.40287 1.40205 1.40146 1.40104 1.40075 1.40055 1.40041 1.40031 1.40024 1.40019 1.40015 1.40012 1.40009 1.40007 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39997 1.39995 1.39993 1.39992 1.3999 1.39989 1.39988 1.39989 1.39992 1.4 1.40014 1.40037 1.40074 1.40131 1.40212 1.40328 1.40485 1.40694 1.40965 1.41305 1.41717 1.42199 1.4274 1.43315 1.43895 1.44445 1.44937 1.45345 1.4566 1.45881 1.46015 1.46075 1.46076 1.46036 1.4597 1.45893 1.45816 1.45749 1.45699 1.45672 1.45668 1.4569 1.45737 1.45805 1.45885 1.45967 1.46039 1.46087 1.46094 1.46041 1.45908 1.45681 1.45352 1.44929 1.4443 1.43884 1.43321 1.42772 1.4226 1.41802 1.41406 1.41076 1.40809 1.40598 1.40436 1.40314 1.40224 1.4016 1.40114 1.40082 1.4006 1.40045 1.40034 1.40026 1.4002 1.40016 1.40013 1.4001 1.40008 1.40006 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39997 1.39997 1.39996 1.39994 1.39993 1.39991 1.3999 1.39989 1.39989 1.39991 1.39997 1.40007 1.40024 1.40052 1.40095 1.40158 1.40247 1.4037 1.40535 1.4075 1.41022 1.41358 1.41758 1.42217 1.42725 1.43258 1.43793 1.44302 1.44762 1.45156 1.45473 1.45714 1.45884 1.45991 1.46049 1.46071 1.46068 1.46053 1.46032 1.46014 1.46004 1.46004 1.46015 1.46035 1.46059 1.4608 1.46087 1.46069 1.46015 1.4591 1.4574 1.45495 1.45168 1.44764 1.44298 1.4379 1.43265 1.42749 1.42264 1.41824 1.41439 1.41114 1.40846 1.40631 1.40464 1.40337 1.40242 1.40173 1.40124 1.40089 1.40065 1.40048 1.40036 1.40028 1.40022 1.40017 1.40013 1.40011 1.40008 1.40007 1.40005 1.40004 1.40003 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39995 1.39994 1.39993 1.39991 1.3999 1.3999 1.39991 1.39995 1.40002 1.40015 1.40036 1.40068 1.40116 1.40184 1.40279 1.40407 1.40575 1.40791 1.41059 1.41383 1.41763 1.42192 1.4266 1.43148 1.43636 1.44102 1.4453 1.44904 1.45217 1.45469 1.45663 1.45806 1.45905 1.45971 1.46012 1.46036 1.46049 1.46055 1.46056 1.46054 1.46046 1.46026 1.45989 1.45926 1.45828 1.45687 1.45492 1.45237 1.44917 1.44536 1.44104 1.43637 1.43155 1.42679 1.42227 1.41812 1.41445 1.4113 1.40867 1.40654 1.40485 1.40355 1.40257 1.40184 1.40132 1.40094 1.40068 1.4005 1.40038 1.40029 1.40022 1.40018 1.40014 1.40011 1.40009 1.40007 1.40006 1.40004 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39997 1.39996 1.39995 1.39993 1.39993 1.39992 1.39991 1.39992 1.39994 1.39999 1.40009 1.40024 1.40048 1.40084 1.40136 1.40208 1.40306 1.40437 1.40604 1.40815 1.41072 1.41379 1.41732 1.42125 1.42549 1.42989 1.43427 1.43848 1.44238 1.44586 1.44887 1.45137 1.4534 1.455 1.4562 1.45708 1.45768 1.45807 1.45826 1.45829 1.45814 1.4578 1.45722 1.45636 1.45517 1.45359 1.45156 1.44903 1.44599 1.44246 1.43853 1.43431 1.42996 1.42563 1.4215 1.41766 1.41423 1.41125 1.40872 1.40664 1.40497 1.40367 1.40267 1.40193 1.40138 1.40099 1.40071 1.40052 1.40039 1.40029 1.40023 1.40018 1.40015 1.40012 1.40009 1.40008 1.40006 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39998 1.39997 1.39996 1.39995 1.39994 1.39993 1.39992 1.39992 1.39994 1.39997 1.40004 1.40015 1.40033 1.4006 1.40099 1.40154 1.40228 1.40327 1.40456 1.40619 1.40821 1.41063 1.41346 1.41667 1.42021 1.42398 1.42786 1.43173 1.43545 1.43893 1.44207 1.44483 1.44719 1.44913 1.45069 1.45188 1.45275 1.45332 1.45361 1.45363 1.45338 1.45284 1.45199 1.45081 1.44926 1.44731 1.44495 1.44217 1.439 1.4355 1.43176 1.4279 1.42406 1.42035 1.41688 1.41374 1.41097 1.40859 1.40661 1.405 1.40372 1.40273 1.40198 1.40142 1.40102 1.40073 1.40053 1.40039 1.4003 1.40023 1.40018 1.40015 1.40012 1.4001 1.40008 1.40006 1.40005 1.40004 1.40003 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.4 1.39998 1.39998 1.39998 1.39996 1.39996 1.39995 1.39994 1.39994 1.39993 1.39994 1.39997 1.40002 1.4001 1.40023 1.40042 1.40072 1.40112 1.40168 1.40243 1.40341 1.40465 1.4062 1.40808 1.41031 1.41287 1.41573 1.41884 1.42212 1.42548 1.42882 1.43203 1.43504 1.43776 1.44017 1.44223 1.44394 1.44529 1.44629 1.44695 1.44729 1.4473 1.44699 1.44634 1.44535 1.444 1.4423 1.44023 1.43781 1.43507 1.43204 1.42881 1.42548 1.42214 1.41888 1.41581 1.41299 1.41048 1.40829 1.40645 1.40492 1.40369 1.40273 1.40199 1.40144 1.40103 1.40074 1.40054 1.40039 1.40029 1.40023 1.40018 1.40014 1.40012 1.4001 1.40008 1.40007 1.40005 1.40004 1.40003 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.4 1.39998 1.39998 1.39998 1.39996 1.39996 1.39995 1.39994 1.39994 1.39995 1.39996 1.4 1.40006 1.40015 1.4003 1.40051 1.40081 1.40123 1.40179 1.40252 1.40346 1.40464 1.40608 1.40779 1.40978 1.41204 1.41454 1.41721 1.42001 1.42285 1.42564 1.42832 1.43082 1.43309 1.43507 1.43674 1.4381 1.43912 1.4398 1.44014 1.44015 1.43981 1.43914 1.43812 1.43676 1.43508 1.43309 1.43081 1.42829 1.42559 1.42278 1.41994 1.41716 1.4145 1.41203 1.4098 1.40784 1.40615 1.40474 1.40359 1.40268 1.40196 1.40142 1.40102 1.40073 1.40053 1.40038 1.40028 1.40022 1.40017 1.40014 1.40011 1.40009 1.40008 1.40006 1.40005 1.40004 1.40004 1.40003 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39998 1.39997 1.39997 1.39996 1.39995 1.39995 1.39995 1.39997 1.39999 1.40003 1.4001 1.40021 1.40036 1.40059 1.40089 1.40131 1.40186 1.40256 1.40344 1.40452 1.40582 1.40735 1.40909 1.41104 1.41316 1.4154 1.41772 1.42005 1.42232 1.42448 1.42647 1.42825 1.42977 1.43102 1.43197 1.43261 1.43293 1.43292 1.43259 1.43195 1.43099 1.42974 1.4282 1.4264 1.42439 1.42221 1.41992 1.41758 1.41526 1.41301 1.4109 1.40897 1.40725 1.40575 1.40447 1.40342 1.40257 1.4019 1.40138 1.40099 1.40071 1.40051 1.40037 1.40027 1.4002 1.40016 1.40013 1.4001 1.40009 1.40007 1.40006 1.40005 1.40004 1.40004 1.40003 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39998 1.39997 1.39997 1.39996 1.39996 1.39996 1.39997 1.39999 1.40002 1.40007 1.40015 1.40026 1.40042 1.40065 1.40095 1.40135 1.40187 1.40253 1.40333 1.40431 1.40545 1.40678 1.40827 1.40991 1.41166 1.4135 1.41536 1.41721 1.41899 1.42065 1.42215 1.42346 1.42454 1.42537 1.42592 1.4262 1.42619 1.4259 1.42532 1.42447 1.42337 1.42205 1.42052 1.41882 1.41702 1.41515 1.41326 1.41142 1.40966 1.40803 1.40655 1.40524 1.40412 1.40318 1.40241 1.40179 1.40131 1.40094 1.40067 1.40048 1.40034 1.40025 1.40019 1.40014 1.40011 1.40009 1.40008 1.40007 1.40006 1.40005 1.40004 1.40004 1.40003 1.40003 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.39999 1.39999 1.39998 1.39998 1.39998 1.39997 1.39997 1.39997 1.39998 1.39999 1.40001 1.40005 1.4001 1.40019 1.40031 1.40047 1.40069 1.40099 1.40137 1.40185 1.40244 1.40316 1.40401 1.405 1.40612 1.40736 1.4087 1.41011 1.41156 1.41302 1.41443 1.41576 1.41698 1.41805 1.41894 1.41962 1.42008 1.4203 1.42029 1.42004 1.41955 1.41883 1.41791 1.41681 1.41555 1.41419 1.41274 1.41126 1.40979 1.40836 1.40702 1.40578 1.40468 1.40371 1.40289 1.4022 1.40165 1.40121 1.40087 1.40062 1.40044 1.40031 1.40022 1.40016 1.40012 1.4001 1.40008 1.40007 1.40006 1.40005 1.40005 1.40004 1.40003 1.40003 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39998 1.39998 1.39998 1.39997 1.39998 1.39998 1.39999 1.4 1.40004 1.40008 1.40014 1.40023 1.40034 1.40051 1.40072 1.40099 1.40135 1.40178 1.4023 1.40293 1.40366 1.40448 1.4054 1.40641 1.40747 1.40857 1.40968 1.41077 1.41181 1.41276 1.4136 1.4143 1.41484 1.4152 1.41537 1.41535 1.41513 1.41473 1.41415 1.41341 1.41253 1.41153 1.41045 1.40933 1.40819 1.40707 1.40599 1.40498 1.40407 1.40326 1.40256 1.40197 1.40148 1.40109 1.40079 1.40056 1.40039 1.40027 1.40019 1.40014 1.4001 1.40008 1.40007 1.40006 1.40005 1.40004 1.40004 1.40004 1.40003 1.40003 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39998 1.39998 1.39998 1.39998 1.39999 1.39999 1.40001 1.40002 1.40006 1.40011 1.40017 1.40025 1.40037 1.40053 1.40073 1.40098 1.4013 1.40168 1.40212 1.40265 1.40326 1.40393 1.40466 1.40545 1.40627 1.4071 1.40792 1.4087 1.40942 1.41006 1.41059 1.41099 1.41127 1.41139 1.41137 1.41119 1.41086 1.4104 1.40982 1.40913 1.40836 1.40754 1.40668 1.40583 1.40499 1.40419 1.40345 1.40279 1.40221 1.40171 1.4013 1.40096 1.40069 1.40049 1.40034 1.40023 1.40016 1.40011 1.40008 1.40006 1.40005 1.40004 1.40004 1.40004 1.40003 1.40003 1.40003 1.40003 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.40003 1.40005 1.40008 1.40013 1.4002 1.40028 1.40039 1.40054 1.40072 1.40094 1.40121 1.40154 1.40192 1.40235 1.40284 1.40337 1.40394 1.40453 1.40514 1.40574 1.40631 1.40684 1.40731 1.4077 1.408 1.4082 1.40828 1.40825 1.40811 1.40785 1.40749 1.40704 1.40651 1.40593 1.40531 1.40468 1.40404 1.40343 1.40286 1.40233 1.40186 1.40145 1.4011 1.40082 1.40059 1.40041 1.40028 1.40019 1.40012 1.40008 1.40005 1.40004 1.40003 1.40003 1.40003 1.40003 1.40003 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.40001 1.40001 1.40004 1.40007 1.4001 1.40015 1.40022 1.4003 1.4004 1.40053 1.40069 1.40089 1.40111 1.40138 1.40169 1.40204 1.40242 1.40282 1.40325 1.40368 1.40411 1.40452 1.4049 1.40524 1.40552 1.40573 1.40586 1.40591 1.40588 1.40576 1.40556 1.40528 1.40494 1.40455 1.40412 1.40366 1.4032 1.40274 1.4023 1.40189 1.40152 1.40119 1.40091 1.40067 1.40048 1.40034 1.40022 1.40014 1.40009 1.40005 1.40003 1.40002 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.4 1.4 1.4 1.4 1.40001 1.40002 1.40003 1.40005 1.40008 1.40012 1.40016 1.40023 1.4003 1.4004 1.40051 1.40065 1.40081 1.401 1.40122 1.40146 1.40173 1.40201 1.40231 1.40261 1.40291 1.4032 1.40347 1.4037 1.40389 1.40403 1.40412 1.40415 1.40411 1.40401 1.40385 1.40364 1.40339 1.4031 1.40279 1.40246 1.40212 1.4018 1.40149 1.4012 1.40095 1.40072 1.40053 1.40038 1.40026 1.40017 1.4001 1.40005 1.40002 1.40001 1.4 1.39999 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40002 1.40003 1.40004 1.40006 1.4001 1.40013 1.40017 1.40023 1.4003 1.40038 1.40048 1.40059 1.40073 1.40088 1.40105 1.40123 1.40143 1.40163 1.40184 1.40205 1.40225 1.40243 1.40258 1.40271 1.4028 1.40285 1.40286 1.40282 1.40275 1.40263 1.40247 1.40228 1.40206 1.40184 1.4016 1.40137 1.40114 1.40092 1.40073 1.40055 1.40041 1.40029 1.40019 1.40011 1.40006 1.40002 1.39999 1.39998 1.39998 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40002 1.40002 1.40004 1.40006 1.40007 1.4001 1.40014 1.40018 1.40023 1.40029 1.40036 1.40044 1.40054 1.40064 1.40075 1.40089 1.40102 1.40116 1.4013 1.40143 1.40157 1.40169 1.40179 1.40186 1.40192 1.40195 1.40194 1.40191 1.40184 1.40175 1.40163 1.40149 1.40134 1.40117 1.401 1.40084 1.40069 1.40054 1.40041 1.40029 1.4002 1.40012 1.40006 1.40002 1.39999 1.39997 1.39996 1.39996 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40002 1.40003 1.40005 1.40006 1.40008 1.40011 1.40014 1.40018 1.40022 1.40028 1.40033 1.4004 1.40047 1.40055 1.40063 1.40072 1.40082 1.40091 1.401 1.40109 1.40116 1.40123 1.40127 1.4013 1.40131 1.4013 1.40126 1.40121 1.40114 1.40105 1.40095 1.40084 1.40072 1.4006 1.40049 1.40038 1.40029 1.4002 1.40013 1.40007 1.40002 1.39999 1.39997 1.39995 1.39995 1.39995 1.39995 1.39996 1.39997 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40002 1.40003 1.40004 1.40005 1.40007 1.40009 1.40012 1.40014 1.40017 1.40021 1.40026 1.4003 1.40035 1.4004 1.40047 1.40052 1.40058 1.40065 1.4007 1.40075 1.4008 1.40084 1.40086 1.40087 1.40087 1.40085 1.40082 1.40078 1.40072 1.40065 1.40058 1.4005 1.40042 1.40034 1.40026 1.40019 1.40013 1.40007 1.40003 1.39999 1.39997 1.39995 1.39994 1.39994 1.39994 1.39994 1.39995 1.39996 1.39997 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40005 1.40006 1.40007 1.40009 1.40011 1.40014 1.40016 1.40019 1.40023 1.40027 1.4003 1.40034 1.40038 1.40042 1.40046 1.40049 1.40053 1.40055 1.40057 1.40058 1.40058 1.40057 1.40055 1.40053 1.40049 1.40045 1.4004 1.40034 1.40028 1.40022 1.40017 1.40012 1.40007 1.40003 1.4 1.39997 1.39995 1.39994 1.39993 1.39993 1.39993 1.39994 1.39994 1.39995 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40003 1.40004 1.40007 1.40008 1.40009 1.40011 1.40013 1.40015 1.40017 1.4002 1.40023 1.40026 1.40028 1.40031 1.40033 1.40035 1.40037 1.40038 1.40039 1.40039 1.40039 1.40037 1.40036 1.40033 1.4003 1.40027 1.40023 1.40019 1.40015 1.40011 1.40007 1.40003 1.4 1.39998 1.39996 1.39994 1.39993 1.39993 1.39993 1.39993 1.39993 1.39994 1.39995 1.39996 1.39997 1.39997 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40004 1.40004 1.40006 1.40008 1.40009 1.4001 1.40012 1.40014 1.40016 1.40017 1.40019 1.40021 1.40023 1.40024 1.40025 1.40026 1.40027 1.40027 1.40026 1.40026 1.40024 1.40023 1.4002 1.40018 1.40015 1.40012 1.40009 1.40006 1.40003 1.40001 1.39999 1.39997 1.39995 1.39994 1.39993 1.39993 1.39993 1.39993 1.39993 1.39994 1.39995 1.39995 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40003 1.40004 1.40005 1.40006 1.40007 1.40008 1.40009 1.40011 1.40012 1.40014 1.40015 1.40016 1.40017 1.40018 1.40018 1.40019 1.40019 1.40019 1.40018 1.40017 1.40016 1.40014 1.40013 1.40011 1.40008 1.40006 1.40004 1.40002 1.4 1.39998 1.39996 1.39995 1.39994 1.39993 1.39993 1.39993 1.39993 1.39994 1.39994 1.39995 1.39996 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40003 1.40004 1.40005 1.40005 1.40007 1.40008 1.40009 1.40009 1.4001 1.40011 1.40012 1.40013 1.40013 1.40014 1.40014 1.40014 1.40013 1.40013 1.40012 1.4001 1.40009 1.40007 1.40006 1.40004 1.40002 1.40001 1.39999 1.39998 1.39996 1.39995 1.39994 1.39994 1.39994 1.39994 1.39994 1.39994 1.39995 1.39995 1.39996 1.39996 1.39997 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40003 1.40003 1.40004 1.40005 1.40005 1.40006 1.40007 1.40008 1.40008 1.40009 1.40009 1.4001 1.4001 1.4001 1.4001 1.4001 1.40009 1.40009 1.40008 1.40007 1.40006 1.40005 1.40003 1.40002 1.40001 1.39999 1.39998 1.39997 1.39996 1.39996 1.39995 1.39995 1.39994 1.39994 1.39995 1.39995 1.39995 1.39996 1.39997 1.39997 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40003 1.40003 1.40004 1.40004 1.40005 1.40006 1.40006 1.40006 1.40007 1.40007 1.40008 1.40008 1.40008 1.40008 1.40008 1.40007 1.40006 1.40006 1.40005 1.40004 1.40003 1.40002 1.4 1.39999 1.39998 1.39998 1.39997 1.39996 1.39996 1.39996 1.39995 1.39995 1.39996 1.39996 1.39996 1.39996 1.39997 1.39997 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40003 1.40003 1.40004 1.40004 1.40005 1.40005 1.40005 1.40006 1.40006 1.40006 1.40006 1.40006 1.40005 1.40005 1.40005 1.40004 1.40003 1.40002 1.40002 1.40001 1.4 1.39999 1.39999 1.39998 1.39997 1.39997 1.39996 1.39996 1.39996 1.39996 1.39996 1.39997 1.39997 1.39997 1.39998 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40003 1.40003 1.40003 1.40004 1.40004 1.40004 1.40005 1.40005 1.40005 1.40005 1.40005 1.40004 1.40004 1.40003 1.40003 1.40003 1.40002 1.40001 1.4 1.4 1.39999 1.39999 1.39998 1.39998 1.39997 1.39997 1.39997 1.39997 1.39997 1.39997 1.39997 1.39998 1.39998 1.39998 1.39998 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40003 1.40003 1.40003 1.40003 1.40003 1.40004 1.40004 1.40004 1.40004 1.40003 1.40003 1.40003 1.40003 1.40002 1.40002 1.40001 1.40001 1.4 1.4 1.39999 1.39999 1.39999 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39998 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40003 1.40003 1.40003 1.40003 1.40003 1.40003 1.40003 1.40003 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.39998 1.39998 1.39998 1.39998 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40001 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.40001 1.40001 1.40001 1.4 1.40001 1.40001 1.4 1.40001 1.4 1.40001 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.39999 1.4 1.4 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40002 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.4 1.4 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 1.40001 ) ; boundaryField { emptyPatches_empt { type empty; } top_cyc { type cyclic; } bottom_cyc { type cyclic; } inlet_cyc { type cyclic; } outlet_cyc { type cyclic; } } // ************************************************************************* //
[ "tdg@debian" ]
tdg@debian
fe5fc0f86cadd3abce5cb7fe0703252181299ef3
b4af26ef6994f4cbb738cdfd182e0a992d2e5baa
/source/leetcode/2267/hyo.cpp
b536ca9ef700f14deeab62e5e5f9c034f61baa50
[]
no_license
wisest30/AlgoStudy
6819b193c8e9245104fc52df5852cd487ae7a26e
112de912fc10933445c2ad36ce30fd404c493ddf
refs/heads/master
2023-08-08T17:01:12.324470
2023-08-06T11:54:15
2023-08-06T11:54:15
246,302,438
10
17
null
2021-09-26T13:52:18
2020-03-10T13:02:56
C++
UTF-8
C++
false
false
1,028
cpp
static bool dp[101][101][101]; class Solution { public: bool hasValidPath(vector<vector<char>>& grid) { if(grid[0][0] == ')') return false; int r = grid.size(), c = grid[0].size(); for(auto y = 0; y < r; ++y) for(auto x = 0; x < c; ++x) grid[y][x] = grid[y][x] == '(' ? 1 : -1; memset(dp, 0, sizeof(dp)); dp[0][0][1] = true; for(auto y = 0; y < r; ++y) { for(auto x = 0; x < c; ++x) { for(auto p = 0; p <= 100; ++p) { if(dp[y][x][p]) { if(y + 1 < r && p + grid[y+1][x] >= 0 && p + grid[y+1][x] <= 100) dp[y+1][x][p + grid[y+1][x]] = true; if(x + 1 < c && p + grid[y][x+1] >= 0 && p + grid[y][x+1] <= 100) dp[y][x+1][p + grid[y][x+1]] = true; } } } } return dp[r-1][c-1][0]; } };
[ "noreply@github.com" ]
noreply@github.com
c7e03b8139b86765dfc23d33e75caea826c1b386
28995464f24af69bae5c4539b8e9f71c6c3e065c
/AudioFrameReceiver.h
bc88ba94cb558e989a9ab5d42cd17a8aa8ef39c0
[ "BSD-2-Clause" ]
permissive
ke6jjj/r-dat
8977a899c3db96ada222f3483e395f294547ba5f
1e0b55af5f3f71b7a843835804330de0152258e1
refs/heads/master
2020-03-11T21:47:05.365510
2019-06-22T01:37:36
2019-06-22T01:37:36
130,274,812
4
0
null
null
null
null
UTF-8
C++
false
false
2,891
h
// // Copyright 2018, Jeremy Cooper // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY 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. // #ifndef RDAT_AUDIO_FRAME_RECEIVER_H #define RDAT_AUDIO_FRAME_RECEIVER_H #include <stdio.h> #include <stdint.h> #include "DATFrameReceiver.h" #include "DATFrame.h" class AudioFrameReceiver : public DATFrameReceiver { public: AudioFrameReceiver(); ~AudioFrameReceiver(); // // Check if two tracks pair into a valid frame. // bool IsFrame(const Track& a, const Track& b); // // Receive a full DAT frame (two tracks, A & B) // void ReceiveFrame(const Track& a, const Track& b); // // Dump received audio to the specified file. // bool SetDumpFile(const char *path); // // Mark that all processing is stopping. // void Stop(); protected: // // Handle any Date/Time subcodes present in a frame // and try to synchronize with the real-time clock that made // them. // void HandleDateTime(const uint8_t *item, uint32_t absoluteFrame); // // File handle to dump the sound to, if asked. // FILE *mFile; // // Number of sample frames written to dump file, if asked to dump. // size_t mFramesWritten; // // The data. // DATFrame mFrame; bool mHaveLastAbsoluteFrameNumber; uint32_t mLastAbsoluteFrameNumber; uint32_t mNextSessionFrameNumber; // // Date and time sub-frame computation. // bool mHaveLastDateTime; bool mHaveLastChangeFrame; uint32_t mLastChangeFrame; uint64_t mLastDateTimeSeconds; bool mHaveDateTimeSync; int mCurrentDateTimeMilliseconds; uint64_t mCurrentDateTimeSeconds; }; #endif
[ "jeremy.gthb@baymoo.org" ]
jeremy.gthb@baymoo.org
0370fc9a0f810e3827f9c5b694ab3c55a192317d
460f981dfe1a05f14d2a4cdc6cc71e9ad798b785
/3/amd64/envs/navigator/include/qt/QtScript/qscriptextensioninterface.h
8707b45d95d24ed40b1af0f1ba0a5833a6e8b7a6
[ "MIT", "Zlib", "BSD-2-Clause", "GPL-2.0-only", "GPL-1.0-or-later", "LGPL-2.0-or-later", "LicenseRef-scancode-mit-old-style", "dtoa", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain-disclaimer", "LicenseRef-scancode-public-domain", "BSD-3-Clause", "LicenseR...
permissive
DFO-Ocean-Navigator/navigator-toolchain
d8c7351b477e66d674b50da54ec6ddc0f3a325ee
930d26886fdf8591b51da9d53e2aca743bf128ba
refs/heads/master
2022-11-05T18:57:30.938372
2021-04-22T02:02:45
2021-04-22T02:02:45
234,445,230
0
1
BSD-3-Clause
2022-10-25T06:46:23
2020-01-17T01:26:49
C++
UTF-8
C++
false
false
1,545
h
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtScript module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL-ONLY$ ** GNU Lesser General Public License Usage ** This file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** If you have questions regarding the use of this file, please contact ** us via http://www.qt.io/contact-us/. ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #ifndef QSCRIPTEXTENSIONINTERFACE_H #define QSCRIPTEXTENSIONINTERFACE_H #include <QtCore/qfactoryinterface.h> #include <QtCore/qobject.h> #include <QtScript/qtscriptglobal.h> QT_BEGIN_NAMESPACE class QScriptEngine; struct Q_SCRIPT_EXPORT QScriptExtensionInterface : public QFactoryInterface { virtual void initialize(const QString &key, QScriptEngine *engine) = 0; }; #define QScriptExtensionInterface_iid "org.qt-project.Qt.QScriptExtensionInterface" Q_DECLARE_INTERFACE(QScriptExtensionInterface, QScriptExtensionInterface_iid) QT_END_NAMESPACE #endif // QSCRIPTEXTENSIONINTERFACE_H
[ "dwayne.hart@gmail.com" ]
dwayne.hart@gmail.com
43b1307b348ddc2fe35d67f2a2141ef879e21ba2
54f62e14405fb25bae9c88e4767944a1d75dec2e
/files/asobiba/youjyo/YBBSManager.cpp
86bb4c8c4b9538324a6d4f72c40ebdebf9b85c58
[]
no_license
Susuo/rtilabs
408975914dde59f44c1670ce3db663ed785d00b2
822a39d1605de7ea2639bdffdc016d8cc46b0875
refs/heads/master
2020-12-11T01:48:08.562065
2012-04-10T14:22:37
2012-04-10T14:22:37
null
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
6,017
cpp
// YBBSManager.cpp: YBBSManager クラスのインプリメンテーション // ////////////////////////////////////////////////////////////////////// #include "YBBSManager.h" #include "RStreamMemory.h" ////////////////////////////////////////////////////////////////////// // 構築/消滅 ////////////////////////////////////////////////////////////////////// YBBSManager::YBBSManager() { } YBBSManager::~YBBSManager() { ClearBBS(); } void YBBSManager::Read(char* outShareBuffer,const RHTTPHeader* inRHTTPHeader , const YRequestPath* inRequestPath, RStreamUtil * outBuffer ) throw(RNotFoundException,RIOCannotOpenException) { this->getBBS( inRequestPath->getBoardName() )->Read( outShareBuffer , inRHTTPHeader, inRequestPath , outBuffer ); } void YBBSManager::Write(char* outShareBuffer,const RHTTPHeader* inRHTTPHeader ,POST& ioPost, RStreamUtil * outBuffer ) throw(RNotFoundException,RIOCannotOpenException) { YBBS* bbs = this->getBBS( ioPost["bbs"] ); const string submit = ioPost["submit"]; if (submit == "書き込む" ) { bbs->Write( outShareBuffer , inRHTTPHeader, ioPost , outBuffer ); } else if (submit == "新規スレッド作成画面へ") { bbs->NewThread( outShareBuffer , ioPost , outBuffer ); } else if (submit == "新規スレッド作成") { bbs->New( outShareBuffer , inRHTTPHeader, ioPost , outBuffer ); } else if (!ioPost["saku"].empty() ) { //削除依頼へ bbs->NewSakujyoIrai(outShareBuffer , inRHTTPHeader ,ioPost, outBuffer); } else {//とりあえず書き込み. bbs->Write( outShareBuffer , inRHTTPHeader, ioPost , outBuffer ); } } /** * SystemWrite: システムからのメッセージ * * @param outShareBuffer TLSバッファ. * @param ioPost 書き込む内容 * @return void */ void YBBSManager::SystemWrite(char* outShareBuffer,POST& ioPost) throw(RNotFoundException,RIOCannotOpenException,RNotFoundException) { this->getBBS( ioPost["bbs"] )->SystemWrite(outShareBuffer , ioPost); } //削除 void YBBSManager::Aborn(const string inTargetIta ,DATNUMBER inDeleteTarget ,int inDeleteSize ,const int * inDelete) throw(RIOCannotOpenException,RIOCannotWriteException,RNotFoundException) { this->getBBS(inTargetIta)->Aborn(inDeleteTarget , inDeleteSize , inDelete); } //特定の板の特定のスレッドのタイトルの取得. const string YBBSManager::getSubject(const string inBoardName , DATNUMBER inDatNumber) throw(RNotFoundException) { return this->getBBS(inBoardName)->getSubject(inDatNumber); } YBBSManager* YBBSManager::getInstance() { static YBBSManager ybbsmanager; return &ybbsmanager; } //削除人タスク. void YBBSManager::KillerTask(char* outShareBuffer) { //削除依頼の状態を見て、 //削除するべきであれば削除する. for(BBSS::const_iterator i = AllBBS.begin() ; i != AllBBS.end() ; ++i) { YBBS* bbs = (*i).second; bbs->KillerTask(outShareBuffer); } } //DATガページコレクタ void YBBSManager::GCTask() { //削除依頼の状態を見て、 //削除するべきであれば削除する. for(BBSS::const_iterator i = AllBBS.begin() ; i != AllBBS.end() ; ++i) { YBBS* bbs = (*i).second; bbs->GCTask(); } } //情報を出力. void YBBSManager::Dump() { for(BBSS::const_iterator i = AllBBS.begin() ; i != AllBBS.end() ; ++i) { YBBS* bbs = (*i).second; bbs->Dump(); } } ///すべての情報をディスクにフラッシュする. void YBBSManager::Flush() { puts("★Flush開始"); for(BBSS::const_iterator i = AllBBS.begin() ; i != AllBBS.end() ; ++i) { YBBS* bbs = (*i).second; bbs->Flush(); } puts("★Flush終了"); } //BBSを再読み込み void YBBSManager::ReloadBBS() throw(RException) { ClearBBS(); const string htdocs = YHttpdConf::getInstance()->getDocumentRoot() + "/"; const string findpath = htdocs + "*"; WIN32_FIND_DATA data; HANDLE p = ::FindFirstFile( findpath.c_str() , &data); if (p == INVALID_HANDLE_VALUE) { throw RNotFoundException("指定されたディレクトリ(%s)には、掲示板らしきディレクトリがありません" , htdocs.c_str() ); } do { //ディレクトリでなければ没. if ( !(data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ) continue; // . または .. のファイルは無視. if (data.cFileName[0] == '.' && (data.cFileName[1] == '\0' || (data.cFileName[1] == '.' && data.cFileName[2] == '\0') )) continue; //掲示板ディレクトリかどうかは、 SETTING.TXT で判断します(手抜き) const string fullname = htdocs + data.cFileName + "/SETTING.TXT"; if (! FILE_EXIST(fullname.c_str() ) ) continue; YBBS* bbs = NULL; try { //登録. bbs = new YBBS( string(data.cFileName) ); this->AllBBS[ string(data.cFileName) ] = bbs; } catch(RException e) { delete bbs; throw ; } //登録メッセージ. printf("掲示板登録... %s\r\n",data.cFileName); } while( ::FindNextFile( p , &data) ); ::FindClose(p); } //BBSをすべて破棄する. void YBBSManager::ClearBBS() { //すべて解放. for(BBSS::iterator i = AllBBS.begin() ; i != AllBBS.end() ; ++i) { delete (*i).second; } AllBBS.clear(); } //削除依頼された書き込みのやばい単語をマスクする. void YBBSManager::MaskReWrite(const string inTargetIta ,DATNUMBER inDatNumber ,const string & password , int inDeleteSize ,const int * inDelete , int inMaskSize ,const string *inMask ) throw(RIOCannotOpenException,RIOCannotWriteException,RNotFoundException) { this->getBBS(inTargetIta)->MaskReWrite(inDatNumber , password , inDeleteSize , inDelete , inMaskSize , inMask); } /** * getBBS: 指定された板に対するBBSを取得. * * @param inTargetIta * @return YBBS* */ YBBS* YBBSManager::getBBS(const string &inTargetIta) throw(RNotFoundException) { BBSS::const_iterator i = AllBBS.find( inTargetIta ); if (i == AllBBS.end() ) { throw RNotFoundException(EXCEPTIONTRACE + inTargetIta + "という名前の掲示板はありません"); } return (*i).second; }
[ "super.rti@gmail.com" ]
super.rti@gmail.com
89fd98817b865df97552693d78599255193a1239
7bbcdcae18d4f8cc1e2db04cd70094ae66daee57
/BlockMass.cpp
c71baf23dfc9fa18c68a04f27a53a7691b607854
[]
no_license
nikitych1/cpluplus-yellow-belt
4b4027bcd6d275b5ce69422aaae1ae896a3a0f23
fa90d36a38ca3db1aa23fd40a8df27ec613dd202
refs/heads/master
2021-03-22T07:52:17.466241
2020-03-17T11:21:19
2020-03-17T11:21:19
247,345,146
0
0
null
null
null
null
UTF-8
C++
false
false
511
cpp
#include <iostream> #include <vector> #include <limits> int main() { uint64_t n = 0; uint64_t r = 0; uint64_t w = 0, h = 0, d = 0; uint64_t mass = 0; std::cin >> n >> r; for (size_t i = 0; i < n; ++i) { std::cin >> w >> h >> d; mass += w * h * d * r; } std::cout << mass << std::endl; std::vector<int> one {2017, 6, 8}, two {2017, 1, 26}; std::cout << (std::vector<int> qw {2017, 6, 8} < std::vector<int> twon {2017, 1, 26}); return 0; }
[ "smirnoff.779@gmail.com" ]
smirnoff.779@gmail.com
34b8257549ffebd5da79a367b0464438d6e92f37
ee3985cd045102c1fa65083fb7f7a873df284236
/menyederhanakan bilangan.cpp
ebeda0587652d9132d43a09c8d2b4f3edf9139ea
[]
no_license
adityastama/Programming
6021244771847e2b6562797af64242aefec6fef6
34c9a7b2c832116f6d14595cdb57a8214593a041
refs/heads/master
2020-04-09T16:31:03.659673
2018-12-05T04:12:02
2018-12-05T04:12:02
160,455,213
1
0
null
null
null
null
UTF-8
C++
false
false
401
cpp
#include <stdio.h> void pecahan(); int main() { pecahan(); } void pecahan() { int a,b,c,t; printf("masukan pembilang : "); scanf ("%d",&a); printf("masukan penyebut : "); scanf ("%d",&b); t = a/b; c = a%b; if (a%b == 0) printf("bilangan (%d/%d) \ndi sederhanakan menjadi %d ",a,b,t); else if (a%b != 0) printf("bilangan (%d/%d) \ndi sederhanakan menjadi (%d %d/%d)",a,b,t,c,b); }
[ "noreply@github.com" ]
noreply@github.com
133892a8883d697098961a3fea5a0cb33516a45d
6c791f734525495793e82ffd591ad3efbd874042
/libraryreclamation/mainwindow.cpp
35202966af7ac77fa03f1328991f4ee9526ca3ac
[]
no_license
myriamkhachlouf/LibroDevo
11868f13c4ce95c5f08769782d77b4b9260fdd4d
94a6b30e06859af59247d43128152987d22f0967
refs/heads/master
2020-09-20T13:47:26.059188
2019-12-13T10:02:05
2019-12-13T10:02:05
224,500,673
1
0
null
null
null
null
UTF-8
C++
false
false
2,945
cpp
#include "mainwindow.h" #include <QString> #include "ui_mainwindow.h" #include<QDateTime> #include<QPixmap> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); QPixmap pix("C:/Users/ZIZOU/Desktop/lib.jpg"); son=new QSound("C:/Utilisateurs/ZIZOU/Téléchargements/pssst-1.wav"); monTimer=new QTimer(this); connect(monTimer,SIGNAL(timeout()),this,SLOT(mytimer())); monTimer->start(1000); } MainWindow::~MainWindow() { delete ui; } void MainWindow::mytimer() { QTime time=QTime ::currentTime(); QString time_text=time.toString("hh:mm:ss"); ui->label_time->setText(time_text); } void MainWindow::on_pushButton_clicked() { QSound::play("C:/Users/ZIZOU/Desktop/click.wav"); QString username= ui->lineEdit->text(); QString password=ui->lineEdit_2->text(); if (username == "aziz" && password == "157842") { QMessageBox::information(this, "login", "login done successfully"); hide(); recl= new reclamation(this); recl->show(); } else if (username == "samar" && password == "123456") { QMessageBox::information(this, "login", "login done successfully"); // hide(); intermediaire *i=new intermediaire(); i->show(); } else if (username == "shaba" && password == "shaba") { QMessageBox::information(this, "login", "login done successfully"); // hide(); Dialog *i=new Dialog(); i->show(); } else if (username == "kais" && password == "kais") { QMessageBox::information(this, "login", "login done successfully"); // hide(); gestion *i=new gestion(); i->show(); } else QMessageBox::warning(this, "login", "login failed"); } void MainWindow::on_pushButton_2_clicked() {QSound::play("C:/Users/ZIZOU/Desktop/click.wav"); close(); } QString MainWindow::id_return() { QString res="non traitée"; QString d1; QSqlQuery query; query.prepare("select RECLAMATION.ID from RECLAMATION where ETAT='"+res+"'"); while (query.next()) { d1= query.value(0).toString(); return d1; } } bool MainWindow::traitment_en_retard() { bool test=true; QString res=id_return(); QDate d1; QDate dated1 = QDate::currentDate(); QSqlQuery query; query.prepare("select RECLAMATION.DATED from RECLAMATION where ID='"+res+"'"); while (query.next()) { d1= query.value(0).toDate(); } if(dated1.day()-d1.day()<2 ) {test =false;} return test; }
[ "noreply@github.com" ]
noreply@github.com
3dc7861434f70e509e42cb87c613f6b1f6f6d635
eb4b01837aeeb21cc5ed536e43c99ab3eb1546e0
/SeqAn-1.1/seqan/sequence/sequence_generated_forwards.h
3edea414bc19784f6ae645b3908384fef8779031
[ "Artistic-2.0", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only", "LGPL-3.0-only" ]
permissive
bmwiedemann/bowtie
c6f4957838f0d3ff9a2ab3cad6ed1a44d7e29ecc
68e2264a7fb2a6f8259eaf3ead1527750ff22beb
refs/heads/master
2020-09-22T21:04:55.790234
2019-12-02T08:16:34
2019-12-02T08:16:34
225,321,494
0
0
Artistic-2.0
2019-12-02T08:18:21
2019-12-02T08:18:20
null
UTF-8
C++
false
false
175,794
h
/*========================================================================== SeqAn - The Library for Sequence Analysis http://www.seqan.de ============================================================================ Copyright (C) 2007 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 3 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. ==========================================================================*/ #ifndef SEQAN_HEADER_SEQUENCE_GENERATED_FORWARDS_H #define SEQAN_HEADER_SEQUENCE_GENERATED_FORWARDS_H ////////////////////////////////////////////////////////////////////////////// // NOTE: This file is automatically generated by build_forwards.py // Do not edit this file manually! ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CLASSES ////////////////////////////////////////////////////////////////////////////// namespace SEQAN_NAMESPACE_MAIN { //____________________________________________________________________________ // Alloc template <typename TSpec > struct Alloc; // "projects/library/seqan/sequence/string_base.h"(34) //____________________________________________________________________________ // AllowsFastRandomAccess template <typename T> struct AllowsFastRandomAccess; // "projects/library/seqan/sequence/sequence_interface.h"(172) //____________________________________________________________________________ // Array template <unsigned int ISize> struct Array; // "projects/library/seqan/sequence/string_array.h"(42) //____________________________________________________________________________ // Block template <unsigned int SPACE > struct Block; // "projects/library/seqan/sequence/string_stack.h"(47) //____________________________________________________________________________ // CStyle struct CStyle; // "projects/library/seqan/sequence/string_cstyle.h"(67) //____________________________________________________________________________ // Comparator template <typename T> struct Comparator; // "projects/library/seqan/sequence/lexical.h"(180) //____________________________________________________________________________ // ConcatDirect template <typename TDelimiter > struct ConcatDirect; // "projects/library/seqan/sequence/sequence_multiple.h"(67) //____________________________________________________________________________ // ConcatVirtual template <typename TDelimiter > struct ConcatVirtual; // "projects/library/seqan/sequence/sequence_multiple.h"(1871) //____________________________________________________________________________ // Concatenator template <typename TObject> struct Concatenator; // "projects/library/seqan/sequence/sequence_multiple.h"(95) //____________________________________________________________________________ // ConcatenatorNto1 template <typename TStringSet> struct ConcatenatorNto1; // "projects/library/seqan/sequence/sequence_multiple.h"(1711) //____________________________________________________________________________ // DefaultOverflowExplicit template <typename TValue> struct DefaultOverflowExplicit; // "projects/library/seqan/sequence/string_pointer.h"(69) template <typename T> struct DefaultOverflowExplicit; // "projects/library/seqan/sequence/sequence_interface.h"(109) //____________________________________________________________________________ // DefaultOverflowImplicit template <typename TValue> struct DefaultOverflowImplicit; // "projects/library/seqan/sequence/string_pointer.h"(44) template <typename T> struct DefaultOverflowImplicit; // "projects/library/seqan/sequence/sequence_interface.h"(89) //____________________________________________________________________________ // DefaultPrefixOrder template <typename T> struct DefaultPrefixOrder; // "projects/library/seqan/sequence/lexical.h"(58) //____________________________________________________________________________ // Dependent template <typename TSpec > struct Dependent; // "projects/library/seqan/sequence/sequence_multiple.h"(50) //____________________________________________________________________________ // Infix template <typename THost> struct Infix; // "projects/library/seqan/sequence/segment_infix.h"(427) //____________________________________________________________________________ // InfixSegment struct InfixSegment; // "projects/library/seqan/sequence/segment_base.h"(45) struct InfixSegment; // "projects/library/seqan/sequence/segment_prefix.h"(334) struct InfixSegment; // "projects/library/seqan/sequence/segment_suffix.h"(325) //____________________________________________________________________________ // IsContiguous template <typename TValue> struct IsContiguous; // "projects/library/seqan/sequence/string_pointer.h"(97) template <typename T> struct IsContiguous; // "projects/library/seqan/sequence/sequence_interface.h"(130) //____________________________________________________________________________ // IsSequence template <typename T> struct IsSequence; // "projects/library/seqan/sequence/sequence_interface.h"(151) //____________________________________________________________________________ // Lexical template <typename TSpec > struct Lexical; // "projects/library/seqan/sequence/lexical.h"(117) //____________________________________________________________________________ // MapType template <typename T> struct MapType; // "projects/library/seqan/sequence/string_value_expand.h"(211) //____________________________________________________________________________ // Owner template <typename TSpec > struct Owner; // "projects/library/seqan/sequence/sequence_multiple.h"(84) //____________________________________________________________________________ // Packed template <typename THostspec > struct Packed; // "projects/library/seqan/sequence/string_packed.h"(33) //____________________________________________________________________________ // Prefix template <typename THost> struct Prefix; // "projects/library/seqan/sequence/segment_prefix.h"(339) //____________________________________________________________________________ // PrefixSegment struct PrefixSegment; // "projects/library/seqan/sequence/segment_prefix.h"(50) struct PrefixSegment; // "projects/library/seqan/sequence/segment_suffix.h"(324) //____________________________________________________________________________ // Segment template <typename THost, typename TSpec > class Segment; // "projects/library/seqan/sequence/segment_base.h"(49) //____________________________________________________________________________ // String template <typename TValue, typename TSpec > class String; // "projects/library/seqan/sequence/string_base.h"(54) //____________________________________________________________________________ // StringSet template <typename TString, typename TSpec > class StringSet; // "projects/library/seqan/sequence/sequence_multiple.h"(92) //____________________________________________________________________________ // StringSetLimits template <typename TString> struct StringSetLimits; // "projects/library/seqan/sequence/sequence_multiple.h"(110) //____________________________________________________________________________ // StringSetPosition template <typename TString> struct StringSetPosition; // "projects/library/seqan/sequence/sequence_multiple.h"(120) //____________________________________________________________________________ // Suffix template <typename THost> struct Suffix; // "projects/library/seqan/sequence/segment_suffix.h"(329) //____________________________________________________________________________ // SuffixSegment struct SuffixSegment; // "projects/library/seqan/sequence/segment_prefix.h"(335) struct SuffixSegment; // "projects/library/seqan/sequence/segment_suffix.h"(49) //____________________________________________________________________________ // TagExact_ struct TagExact_; // "projects/library/seqan/sequence/sequence_interface.h"(69) //____________________________________________________________________________ // TagGenerous_ struct TagGenerous_; // "projects/library/seqan/sequence/sequence_interface.h"(65) //____________________________________________________________________________ // TagInsist_ struct TagInsist_; // "projects/library/seqan/sequence/sequence_interface.h"(56) //____________________________________________________________________________ // TagLimit_ struct TagLimit_; // "projects/library/seqan/sequence/sequence_interface.h"(61) //____________________________________________________________________________ // TagPrefixGreater_ struct TagPrefixGreater_; // "projects/library/seqan/sequence/lexical.h"(43) //____________________________________________________________________________ // TagPrefixLess_ struct TagPrefixLess_; // "projects/library/seqan/sequence/lexical.h"(40) //____________________________________________________________________________ // ValueExpand template <typename THost, typename TMap, typename TSpec > struct ValueExpand; // "projects/library/seqan/sequence/string_value_expand.h"(31) //____________________________________________________________________________ // ValueExpandIter struct ValueExpandIter; // "projects/library/seqan/sequence/string_value_expand.h"(33) //____________________________________________________________________________ // _Append_Sequence_2_Segment template <typename TExpand> struct _Append_Sequence_2_Segment; // "projects/library/seqan/sequence/segment_base.h"(543) //____________________________________________________________________________ // _Append_String template <typename TExpand> struct _Append_String; // "projects/library/seqan/sequence/string_base.h"(977) //____________________________________________________________________________ // _Append_Value_2_Segment template <typename TExpand> struct _Append_Value_2_Segment; // "projects/library/seqan/sequence/segment_base.h"(697) //____________________________________________________________________________ // _Append_Value_2_String template <typename TExpand> struct _Append_Value_2_String; // "projects/library/seqan/sequence/string_base.h"(1094) //____________________________________________________________________________ // _Assign_Segment template <typename TExpand> struct _Assign_Segment; // "projects/library/seqan/sequence/segment_base.h"(333) //____________________________________________________________________________ // _Assign_String template <typename TExpand> struct _Assign_String; // "projects/library/seqan/sequence/string_base.h"(753) //____________________________________________________________________________ // _Assign_String_2_StringArray template <typename TExpand, bool IS_CONTIGUOUS> struct _Assign_String_2_StringArray; // "projects/library/seqan/sequence/string_cstyle.h"(457) //____________________________________________________________________________ // _ClearSpace_Expand_String_Base_ template <typename TExpand> struct _ClearSpace_Expand_String_Base_; // "projects/library/seqan/sequence/string_base.h"(426) //____________________________________________________________________________ // _ClearSpace_String_Base_ template <typename TExpand> struct _ClearSpace_String_Base_; // "projects/library/seqan/sequence/string_base.h"(214) //____________________________________________________________________________ // _ClearSpace_String_Packed_ template <typename TExpand> struct _ClearSpace_String_Packed_; // "projects/library/seqan/sequence/string_packed.h"(533) //____________________________________________________________________________ // _Create_ArrayString template <typename TExpand> struct _Create_ArrayString; // "projects/library/seqan/sequence/string_cstyle.h"(600) //____________________________________________________________________________ // _Create_ArrayString_Expand template <typename TExpand> struct _Create_ArrayString_Expand; // "projects/library/seqan/sequence/string_cstyle.h"(547) //____________________________________________________________________________ // _Fill_String template <typename TExpand> struct _Fill_String; // "projects/library/seqan/sequence/string_base.h"(1468) //____________________________________________________________________________ // _Insert_Value_2_Segment template <typename TExpand> struct _Insert_Value_2_Segment; // "projects/library/seqan/sequence/segment_base.h"(739) //____________________________________________________________________________ // _Insert_Value_2_String template <typename TExpand> struct _Insert_Value_2_String; // "projects/library/seqan/sequence/string_base.h"(1140) //____________________________________________________________________________ // _PackedConsts template <typename TPackedContainer> struct _PackedConsts; // "projects/library/seqan/sequence/string_packed.h"(285) //____________________________________________________________________________ // _Replace_Sequence_2_Segment template <typename TExpand> struct _Replace_Sequence_2_Segment; // "projects/library/seqan/sequence/segment_base.h"(792) //____________________________________________________________________________ // _Replace_String template <typename TExpand> struct _Replace_String; // "projects/library/seqan/sequence/string_base.h"(1179) //____________________________________________________________________________ // _Resize_String template <typename TExpand> struct _Resize_String; // "projects/library/seqan/sequence/string_base.h"(1413) //____________________________________________________________________________ // _TempCopy template <typename T> struct _TempCopy; // "projects/library/seqan/sequence/string_base.h"(108) } //namespace SEQAN_NAMESPACE_MAIN ////////////////////////////////////////////////////////////////////////////// // TYPEDEFS ////////////////////////////////////////////////////////////////////////////// namespace SEQAN_NAMESPACE_MAIN { //____________________________________________________________________________ // CharString typedef String<char, Alloc<void> > CharString; // "projects/library/seqan/sequence/sequence_shortcuts.h"(37) //____________________________________________________________________________ // Dna5String typedef String<Dna5, Alloc<void> > Dna5String; // "projects/library/seqan/sequence/sequence_shortcuts.h"(119) //____________________________________________________________________________ // DnaString typedef String<Dna, Alloc<void> > DnaString; // "projects/library/seqan/sequence/sequence_shortcuts.h"(90) //____________________________________________________________________________ // Exact typedef Tag<TagExact_> const Exact; // "projects/library/seqan/sequence/sequence_interface.h"(70) //____________________________________________________________________________ // Generous typedef Tag<TagGenerous_> const Generous; // "projects/library/seqan/sequence/sequence_interface.h"(66) //____________________________________________________________________________ // Insist typedef Tag<TagInsist_> const Insist; // "projects/library/seqan/sequence/sequence_interface.h"(57) //____________________________________________________________________________ // IupacString typedef String<Iupac, Alloc<void> > IupacString; // "projects/library/seqan/sequence/sequence_shortcuts.h"(148) //____________________________________________________________________________ // Limit typedef Tag<TagLimit_> const Limit; // "projects/library/seqan/sequence/sequence_interface.h"(62) //____________________________________________________________________________ // Peptide typedef String<AminoAcid, Alloc<void> > Peptide; // "projects/library/seqan/sequence/sequence_shortcuts.h"(176) //____________________________________________________________________________ // TagPrefixGreater typedef Tag<TagPrefixGreater_> const TagPrefixGreater; // "projects/library/seqan/sequence/lexical.h"(44) //____________________________________________________________________________ // TagPrefixLess typedef Tag<TagPrefixLess_> const TagPrefixLess; // "projects/library/seqan/sequence/lexical.h"(41) //____________________________________________________________________________ // Tight typedef Tag<TagInsist_> const Tight; // "projects/library/seqan/sequence/sequence_interface.h"(58) //____________________________________________________________________________ // UnicodeString typedef String<wchar_t, Alloc<void> > UnicodeString; // "projects/library/seqan/sequence/sequence_shortcuts.h"(63) } //namespace SEQAN_NAMESPACE_MAIN ////////////////////////////////////////////////////////////////////////////// // FUNCTIONS ////////////////////////////////////////////////////////////////////////////// namespace SEQAN_NAMESPACE_MAIN { //____________________________________________________________________________ // _assignValue_packed_string_iterator template <typename TIter, typename TValue> inline void _assignValue_packed_string_iterator(TIter & me, TValue & _value); // "projects/library/seqan/sequence/string_packed.h"(969) //____________________________________________________________________________ // _assign_copy_packed_string template <typename TTarget, typename TSource, typename TTag> inline void _assign_copy_packed_string(TTarget & target, TSource & source, Tag<TTag> const tag); // "projects/library/seqan/sequence/string_packed.h"(327) template <typename TTarget, typename TSource, typename TSize, typename TTag> inline void _assign_copy_packed_string(TTarget & target, TSource & source, TSize limit, Tag<TTag> const tag); // "projects/library/seqan/sequence/string_packed.h"(345) //____________________________________________________________________________ // _begin_default template <typename T> inline typename Iterator<T, Standard>::Type _begin_default(T & me, Standard); // "projects/library/seqan/sequence/sequence_interface.h"(278) template <typename T> inline typename Iterator<T const, Standard>::Type _begin_default(T const & me, Standard); // "projects/library/seqan/sequence/sequence_interface.h"(286) template <typename T> inline typename Iterator<T, Rooted>::Type _begin_default(T & me, Rooted); // "projects/library/seqan/sequence/sequence_interface.h"(298) template <typename T> inline typename Iterator<T const, Rooted>::Type _begin_default(T const & me, Rooted); // "projects/library/seqan/sequence/sequence_interface.h"(307) //____________________________________________________________________________ // _clearSpace template <typename TValue, typename TExpand> inline size_t _clearSpace(TValue * me, size_t size, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(390) template <typename TValue, typename TExpand> inline size_t _clearSpace(TValue * me, size_t size, size_t limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(401) template <typename TValue, typename TPosition, typename TExpand> inline size_t _clearSpace(TValue * me, size_t size, TPosition pos_begin, TPosition pos_end, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(413) template <typename TValue, typename TPosition, typename TExpand> inline size_t _clearSpace(TValue * me, size_t size, TPosition pos_begin, TPosition pos_end, size_t limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(426) template <typename TValue, typename THostspec, typename TExpand> inline typename Size< String<TValue, Packed<THostspec> > >::Type _clearSpace(String<TValue, Packed<THostspec> > & me, typename Size< String<TValue, Packed<THostspec> > >::Type size, Tag<TExpand> const); // "projects/library/seqan/sequence/string_packed.h"(673) template <typename TValue, typename THostspec, typename TExpand> inline typename Size< String<TValue, Packed<THostspec> > >::Type _clearSpace(String<TValue, Packed<THostspec> > & me, typename Size< String<TValue, Packed<THostspec> > >::Type size, typename Size< String<TValue, Packed<THostspec> > >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_packed.h"(684) template <typename TValue, typename THostspec, typename TPosition, typename TExpand> inline typename Size< String<TValue, Packed<THostspec> > >::Type _clearSpace(String<TValue, Packed<THostspec> > & me, typename Size< String<TValue, Packed<THostspec> > >::Type size, TPosition pos_begin, TPosition pos_end, Tag<TExpand> const); // "projects/library/seqan/sequence/string_packed.h"(696) template <typename TValue, typename THostspec, typename TPosition, typename TExpand> inline typename Size< String<TValue, Packed<THostspec> > >::Type _clearSpace(String<TValue, Packed<THostspec> > & me, typename Size< String<TValue, Packed<THostspec> > >::Type size, TPosition pos_begin, TPosition pos_end, typename Size< String<TValue, Packed<THostspec> > >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_packed.h"(709) template <typename TValue, typename TSpec, typename TSize, typename TExpand> inline typename Size< String<TValue, TSpec> >::Type _clearSpace(String<TValue, TSpec> & me, TSize size, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(631) template <typename TValue, typename TSpec, typename TSize, typename TExpand> inline typename Size< String<TValue, TSpec> >::Type _clearSpace(String<TValue, TSpec> & me, TSize size, TSize limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(642) template <typename TValue, typename TSpec, typename TSize, typename TPosition, typename TExpand> inline typename Size< String<TValue, TSpec> >::Type _clearSpace(String<TValue, TSpec> & me, TSize size, TPosition pos_begin, TPosition pos_end, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(654) template <typename TValue, typename TSpec, typename TSize, typename TPosition, typename TExpand> inline typename Size< String<TValue, TSpec> >::Type _clearSpace(String<TValue, TSpec> & me, TSize size, TPosition pos_begin, TPosition pos_end, TSize limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(667) //____________________________________________________________________________ // _computeSize4Capacity template <typename T, typename TSize> inline TSize _computeSize4Capacity(T const & , TSize capacity); // "projects/library/seqan/sequence/sequence_interface.h"(900) //____________________________________________________________________________ // _countNonZeroValues template <typename TValue, typename TSpec, typename TPos > inline typename Size< String<TValue, TSpec> >::Type _countNonZeroValues(String<TValue, TSpec> const &me, TPos i); // "projects/library/seqan/sequence/sequence_multiple.h"(1009) //____________________________________________________________________________ // _end_default template <typename T> inline typename Iterator<T, Standard>::Type _end_default(T & me, Standard); // "projects/library/seqan/sequence/sequence_interface.h"(461) template <typename T> inline typename Iterator<T const, Standard>::Type _end_default(T const & me, Standard); // "projects/library/seqan/sequence/sequence_interface.h"(469) template <typename T> inline typename Iterator<T, Rooted>::Type _end_default(T & me, Rooted); // "projects/library/seqan/sequence/sequence_interface.h"(481) template <typename T> inline typename Iterator<T const, Rooted>::Type _end_default(T const & me, Rooted); // "projects/library/seqan/sequence/sequence_interface.h"(490) //____________________________________________________________________________ // _findIthNonZeroValue template <typename TValue, typename TSpec, typename TPos > inline typename Size< String<TValue, TSpec> >::Type _findIthNonZeroValue(String<TValue, TSpec> const &me, TPos i); // "projects/library/seqan/sequence/sequence_multiple.h"(990) //____________________________________________________________________________ // _getMap template <typename TValue, typename THost, typename TMap, typename TSpec> inline TMap & _getMap(String< TValue, ValueExpand<THost, TMap, TSpec> > & me); // "projects/library/seqan/sequence/string_value_expand.h"(230) template <typename TValue, typename THost, typename TMap, typename TSpec> inline TMap & _getMap(String< TValue, ValueExpand<THost, TMap, TSpec> > const & me); // "projects/library/seqan/sequence/string_value_expand.h"(236) //____________________________________________________________________________ // _getValueExpandFlagValue template <typename TValue, typename THost, typename TMap, typename TSpec> inline typename Value<THost>::Type _getValueExpandFlagValue(String< TValue, ValueExpand<THost, TMap, TSpec> > const & me); // "projects/library/seqan/sequence/string_value_expand.h"(245) //____________________________________________________________________________ // _moveContiguous template <typename TTarget, typename TSource> void _moveContiguous(TTarget & target, TSource & source); // "projects/library/seqan/sequence/string_base.h"(862) //____________________________________________________________________________ // _reallocateStorage template <typename TValue, typename TSpec> inline typename Value<String<TValue, TSpec> >::Type * _reallocateStorage( String<TValue, TSpec> & me, typename Size< String<TValue, TSpec> >::Type new_capacity, Exact); // "projects/library/seqan/sequence/string_base.h"(1348) template <typename TValue, typename TSpec> inline typename Value<String<TValue, TSpec> >::Type * _reallocateStorage( String<TValue, TSpec> & me, typename Size< String<TValue, TSpec> >::Type new_capacity, typename Size< String<TValue, TSpec> >::Type limit, Exact); // "projects/library/seqan/sequence/string_base.h"(1364) template <typename TValue, typename TSpec> inline typename Value<String<TValue, TSpec> >::Type * _reallocateStorage( String<TValue, TSpec> & me, typename Size< String<TValue, TSpec> >::Type new_capacity, Generous); // "projects/library/seqan/sequence/string_base.h"(1380) template <typename TValue, typename TSpec> inline typename Value<String<TValue, TSpec> >::Type * _reallocateStorage( String<TValue, TSpec> & me, typename Size< String<TValue, TSpec> >::Type new_capacity, typename Size< String<TValue, TSpec> >::Type limit, Generous); // "projects/library/seqan/sequence/string_base.h"(1397) //____________________________________________________________________________ // _refreshStringSetLimits template <typename T > inline void _refreshStringSetLimits(T &); // "projects/library/seqan/sequence/sequence_multiple.h"(959) template <typename TString, typename TSpec > inline void _refreshStringSetLimits(StringSet< TString, Owner<ConcatDirect<TSpec> > > &); // "projects/library/seqan/sequence/sequence_multiple.h"(962) template <typename TString, typename TSpec > inline void _refreshStringSetLimits(StringSet< TString, TSpec > &me); // "projects/library/seqan/sequence/sequence_multiple.h"(966) //____________________________________________________________________________ // _setLength template <typename TValue> inline void _setLength(TValue * me, size_t new_length); // "projects/library/seqan/sequence/string_pointer.h"(352) //____________________________________________________________________________ // _validStringSetLimits template <typename T > inline bool _validStringSetLimits(T const &); // "projects/library/seqan/sequence/sequence_multiple.h"(941) template <typename TString, typename TSpec > inline bool _validStringSetLimits(StringSet< TString, TSpec > const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(946) template <typename TString, typename TSpec > inline bool _validStringSetLimits(StringSet< TString, Owner<ConcatDirect<TSpec> > > const &); // "projects/library/seqan/sequence/sequence_multiple.h"(951) //____________________________________________________________________________ // append template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void append( Segment<THost, TSpec> & target, TSource & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(609) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void append( Segment<THost, TSpec> & target, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(619) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void append( Segment<THost, TSpec> & target, TSource & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(631) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void append( Segment<THost, TSpec> & target, TSource const & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(642) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void append( Segment<THost, TSpec> const & target, TSource & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(653) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void append( Segment<THost, TSpec> const & target, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(663) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void append( Segment<THost, TSpec> const & target, TSource & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(675) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void append( Segment<THost, TSpec> const & target, TSource const & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(686) template <typename TTargetValue, typename TSource, typename TExpand> inline void append(TTargetValue * target, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(542) template <typename TTargetValue, typename TSource, typename TExpand> inline void append(TTargetValue * target, TSource const & source, size_t limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(553) template <typename TTargetValue, typename TSourceValue, typename TExpand> inline void append(TTargetValue * target, TSourceValue const * source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(566) template <typename TTargetValue, typename TSourceValue, typename TExpand> inline void append(TTargetValue * target, TSourceValue const * source, size_t limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(577) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void append(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource const & source, Generous); // "projects/library/seqan/sequence/std_string.h"(425) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void append(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource const & source, typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type limit, Generous); // "projects/library/seqan/sequence/std_string.h"(436) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void append(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource const & source, Limit); // "projects/library/seqan/sequence/std_string.h"(463) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void append(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource const & source, typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type limit, Limit); // "projects/library/seqan/sequence/std_string.h"(474) template <typename TTarget, typename TSource> inline void append(TTarget & target, TSource & source); // "projects/library/seqan/sequence/sequence_interface.h"(1025) template <typename TTarget, typename TSource> inline void append(TTarget const & target, TSource & source); // "projects/library/seqan/sequence/sequence_interface.h"(1033) template <typename TTarget, typename TSource> inline void append(TTarget & target, TSource const & source); // "projects/library/seqan/sequence/sequence_interface.h"(1041) template <typename TTarget, typename TSource> inline void append(TTarget const & target, TSource const & source); // "projects/library/seqan/sequence/sequence_interface.h"(1049) template <typename TTarget, typename TSource> inline void append(TTarget & target, TSource & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(1061) template <typename TTarget, typename TSource> inline void append(TTarget const & target, TSource & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(1070) template <typename TTarget, typename TSource> inline void append(TTarget & target, TSource const & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(1079) template <typename TTarget, typename TSource> inline void append(TTarget const & target, TSource const & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(1088) template <typename TValue, unsigned int SPACE, typename TSource, typename TExpand> inline void append( String<TValue, Block<SPACE> >& me, TSource const& source, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_stack.h"(368) template <typename TTargetValue, typename TTargetSpec, typename TSource, typename TExpand> inline void append(String<TTargetValue, TTargetSpec> & target, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1042) template <typename TTargetValue, typename TTargetSpec, typename TSource, typename TExpand> inline void append(String<TTargetValue, TTargetSpec> & target, TSource const & source, typename Size< String<TTargetValue, TTargetSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1054) template <typename TTargetValue, typename TTargetSpec, typename TSourceValue, typename TExpand> inline void append(String<TTargetValue, TTargetSpec> & target, TSourceValue * source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1068) template <typename TTargetValue, typename TTargetSpec, typename TSourceValue, typename TExpand> inline void append(String<TTargetValue, TTargetSpec> & target, TSourceValue * source, typename Size< String<TTargetValue, TTargetSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1080) //____________________________________________________________________________ // appendValue template <typename THost, typename TSpec, typename TValue, typename TExpand> inline void appendValue(Segment<THost, TSpec> & me, TValue const & _value, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(719) template <typename THost, typename TSpec, typename TValue, typename TExpand> inline void appendValue(Segment<THost, TSpec> const & me, TValue const & _value, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(728) template <typename TChar, typename TCharTraits, typename TAlloc, typename TValue, typename TTag> inline void appendValue(::std::basic_string<TChar, TCharTraits, TAlloc> & me, TValue const & _value, TTag); // "projects/library/seqan/sequence/std_string.h"(492) template <typename TChar, typename TCharTraits, typename TAlloc, typename TValue> inline void appendValue(::std::basic_string<TChar, TCharTraits, TAlloc> & me, TValue const & _value, Limit); // "projects/library/seqan/sequence/std_string.h"(502) template <typename TString, typename TString2, typename TExpand > inline void appendValue( StringSet< TString, Owner<Default> > &me, TString2 const &obj, Tag<TExpand> const); // "projects/library/seqan/sequence/sequence_multiple.h"(1042) template <typename TString, typename TString2, typename TExpand > inline void appendValue( StringSet< TString, Owner<ConcatDirect<void> > > &me, TString2 const &obj, Tag<TExpand> const); // "projects/library/seqan/sequence/sequence_multiple.h"(1053) template <typename TString, typename TDelimiter, typename TString2, typename TExpand > inline void appendValue( StringSet< TString, Owner<ConcatDirect<TDelimiter> > > &me, TString2 const &obj, Tag<TExpand> const); // "projects/library/seqan/sequence/sequence_multiple.h"(1063) template <typename TString, typename TExpand > inline void appendValue( StringSet<TString, Dependent<Generous> > &me, TString const &obj, Tag<TExpand> const); // "projects/library/seqan/sequence/sequence_multiple.h"(1075) template <typename TString, typename TExpand > inline void appendValue( StringSet<TString, Dependent<Tight> > &me, TString const &obj, Tag<TExpand> const); // "projects/library/seqan/sequence/sequence_multiple.h"(1087) template <typename T, typename TValue> inline void appendValue(T & me, TValue const & _value); // "projects/library/seqan/sequence/sequence_interface.h"(1114) template <typename T, typename TValue> inline void appendValue(T const & me, TValue const & _value); // "projects/library/seqan/sequence/sequence_interface.h"(1122) template <typename TValue, unsigned int SPACE, typename TVal, typename TExpand> inline void appendValue( String<TValue, Block<SPACE> >& me, TVal const& source, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_stack.h"(384) template <typename TTargetValue, typename TTargetSpec, typename TValue, typename TExpand> inline void appendValue(String<TTargetValue, TTargetSpec> & me, TValue const & _value, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1126) //____________________________________________________________________________ // assign template <typename TTargetValue, typename TSource, typename TExpand> inline void assign(String<TTargetValue, CStyle> & target, TSource & source, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_cstyle.h"(389) template <typename TTargetValue, typename TSource, typename TExpand> inline void assign(String<TTargetValue, CStyle> & target, TSource const & source, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_cstyle.h"(399) template <typename TTargetValue, typename TSource, typename TSize, typename TExpand> inline void assign(String<TTargetValue, CStyle> & target, TSource & source, TSize limit, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_cstyle.h"(410) template <typename TTargetValue, typename TSource, typename TSize, typename TExpand> inline void assign(String<TTargetValue, CStyle> & target, TSource const & source, TSize limit, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_cstyle.h"(421) template <typename TTargetValue, typename TSourceValue, typename TExpand> inline void assign(String<TTargetValue, CStyle> & target, TSourceValue const * source, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_cstyle.h"(435) template <typename TTargetValue, typename TSourceValue, typename TSize, typename TExpand> inline void assign(String<TTargetValue, CStyle> & target, TSourceValue const * source, TSize limit, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_cstyle.h"(446) template <typename TValue, typename TSourceSpec, typename TExpand> inline void assign(String<TValue, CStyle> & target, String<TValue, TSourceSpec> & source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_cstyle.h"(520) template <typename THost, typename TSpec, typename TSource> inline void assign(Segment<THost, TSpec> & target, TSource & source); // "projects/library/seqan/sequence/segment_base.h"(293) template <typename THost, typename TSpec, typename TSource> inline void assign(Segment<THost, TSpec> & target, TSource const & source); // "projects/library/seqan/sequence/segment_base.h"(302) template <typename THost, typename TSpec, typename TSource> inline void assign(Segment<THost, TSpec> const & target, TSource & source); // "projects/library/seqan/sequence/segment_base.h"(314) template <typename THost, typename TSpec, typename TSource> inline void assign(Segment<THost, TSpec> const & target, TSource const & source); // "projects/library/seqan/sequence/segment_base.h"(323) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void assign(Segment<THost, TSpec> & target, TSource & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(403) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void assign(Segment<THost, TSpec> & target, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(412) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void assign(Segment<THost, TSpec> & target, TSource & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(423) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void assign(Segment<THost, TSpec> & target, TSource const & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(433) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void assign(Segment<THost, TSpec> const & target, TSource & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(445) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void assign(Segment<THost, TSpec> const & target, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(454) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void assign(Segment<THost, TSpec> const & target, TSource & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(465) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void assign(Segment<THost, TSpec> const & target, TSource const & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(475) template <typename TTargetValue, typename TSource> inline void assign(TTargetValue * target, TSource & source); // "projects/library/seqan/sequence/string_pointer.h"(444) template <typename TTargetValue, typename TSource> inline void assign(TTargetValue * target, TSource const & source); // "projects/library/seqan/sequence/string_pointer.h"(453) template <typename TTargetValue, typename TSource, typename TExpand> inline void assign(TTargetValue * target, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(466) template <typename TTargetValue, typename TSource, typename TExpand> inline void assign(TTargetValue * target, TSource const & source, size_t limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(477) template <typename TTargetValue, typename TSourceValue, typename TExpand> inline void assign(TTargetValue * target, TSourceValue const * source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(490) template <typename TTargetValue, typename TSourceValue, typename TExpand> inline void assign(TTargetValue * target, TSourceValue const * source, size_t limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(501) template <typename TValue, typename THostspec, typename TTag> inline void assign(String<TValue, Packed<THostspec> > & target, String<TValue, Packed<THostspec> > & source, Tag<TTag> const tag); // "projects/library/seqan/sequence/string_packed.h"(369) template <typename TValue, typename THostspec, typename TTag> inline void assign(String<TValue, Packed<THostspec> > & target, String<TValue, Packed<THostspec> > const & source, Tag<TTag> const tag); // "projects/library/seqan/sequence/string_packed.h"(377) template <typename TValue, typename THostspec, typename TSize, typename TTag> void assign(String<TValue, Packed<THostspec> > & target, String<TValue, Packed<THostspec> > & source, TSize limit, Tag<TTag> const tag); // "projects/library/seqan/sequence/string_packed.h"(386) template <typename TValue, typename THostspec, typename TSize, typename TTag> void assign(String<TValue, Packed<THostspec> > & target, String<TValue, Packed<THostspec> > const & source, TSize limit, Tag<TTag> const tag); // "projects/library/seqan/sequence/string_packed.h"(394) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource & source); // "projects/library/seqan/sequence/std_string.h"(272) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource const & source); // "projects/library/seqan/sequence/std_string.h"(280) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource, typename TSize> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource & source, TSize limit); // "projects/library/seqan/sequence/std_string.h"(290) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource, typename TSize> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource const & source, TSize limit); // "projects/library/seqan/sequence/std_string.h"(299) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource & source, Generous); // "projects/library/seqan/sequence/std_string.h"(311) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource const & source, Generous); // "projects/library/seqan/sequence/std_string.h"(320) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource & source, typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type limit, Generous); // "projects/library/seqan/sequence/std_string.h"(347) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource const & source, typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type limit, Generous); // "projects/library/seqan/sequence/std_string.h"(357) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource & source, Limit); // "projects/library/seqan/sequence/std_string.h"(369) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource const & source, Limit); // "projects/library/seqan/sequence/std_string.h"(378) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource & source, typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type limit, Limit); // "projects/library/seqan/sequence/std_string.h"(389) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource const & source, typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type limit, Limit); // "projects/library/seqan/sequence/std_string.h"(404) template <typename TTarget, typename TSource> inline void assign(TTarget & target, TSource & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(970) template <typename TTarget, typename TSource> inline void assign(TTarget const & target, TSource & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(979) template <typename TTarget, typename TSource> inline void assign(TTarget & target, TSource const & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(988) template <typename TTarget, typename TSource> inline void assign(TTarget const & target, TSource const & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(997) template <typename TValue, unsigned int SPACE, typename TSource> inline void assign( String<TValue, Block<SPACE> >& target, TSource const& source); // "projects/library/seqan/sequence/string_stack.h"(226) template <typename TTargetValue, typename TTargetSpec, typename TSource> inline void assign(String<TTargetValue, TTargetSpec> & target, TSource & source); // "projects/library/seqan/sequence/string_base.h"(734) template <typename TTargetValue, typename TTargetSpec, typename TSource> inline void assign(String<TTargetValue, TTargetSpec> & target, TSource const & source); // "projects/library/seqan/sequence/string_base.h"(743) template <typename TTargetValue, typename TTargetSpec, typename TSource, typename TExpand> inline void assign(String<TTargetValue, TTargetSpec> & target, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(810) template <typename TTargetValue, typename TTargetSpec, typename TSource, typename TSize, typename TExpand> inline void assign(String<TTargetValue, TTargetSpec> & target, TSource const & source, TSize limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(820) template <typename TTargetValue, typename TTargetSpec, typename TSourceValue, typename TExpand> inline void assign(String<TTargetValue, TTargetSpec> & target, TSourceValue const * source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(833) template <typename TTargetValue, typename TTargetSpec, typename TSourceValue, typename TSize, typename TExpand> inline void assign(String<TTargetValue, TTargetSpec> & target, TSourceValue const * source, TSize limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(843) //____________________________________________________________________________ // assignValue template <typename TContainer, typename TIterator, typename TValue> inline void assignValue(Iter<TContainer, AdaptorIterator<TIterator, ValueExpandIter> > & me, TValue const & _value); // "projects/library/seqan/sequence/string_value_expand.h"(453) template <typename TContainer, typename TIterator, typename TValue> inline void assignValue(Iter<TContainer, AdaptorIterator<TIterator, ValueExpandIter> > const & me, TValue const & _value); // "projects/library/seqan/sequence/string_value_expand.h"(473) template <typename TValue, typename TPos> inline void assignValue(TValue * me, TPos pos, TValue const & _value); // "projects/library/seqan/sequence/string_pointer.h"(266) template <typename TContainer, typename THostspec, typename TValue> inline void assignValue(Iter<TContainer, Packed<THostspec> > & me, TValue const & _value); // "projects/library/seqan/sequence/string_packed.h"(985) template <typename TContainer, typename THostspec, typename TValue> inline void assignValue(Iter<TContainer, Packed<THostspec> > const & me, TValue const & _value); // "projects/library/seqan/sequence/string_packed.h"(995) template <typename T, typename TValue, typename TPos> inline void assignValue(T & me, TPos pos, TValue const & _value); // "projects/library/seqan/sequence/sequence_interface.h"(775) template <typename TValue, typename TSpec, typename TValue2> inline void assignValue(String<TValue, TSpec> & me, TValue2 const & _value); // "projects/library/seqan/sequence/string_base.h"(715) //____________________________________________________________________________ // assignValueById template <typename TString, typename TSpec, typename TString2> inline typename Id<StringSet<TString, TSpec> >::Type assignValueById(StringSet<TString, TSpec>& me, TString2& obj); // "projects/library/seqan/sequence/sequence_multiple.h"(1366) template <typename TString, typename TSpec, typename TId> inline typename Id<StringSet<TString, Owner<TSpec> > >::Type assignValueById(StringSet<TString, Owner<TSpec> >& me, TString& obj, TId id); // "projects/library/seqan/sequence/sequence_multiple.h"(1378) template <typename TString, typename TId> inline typename Id<StringSet<TString, Dependent<Generous> > >::Type assignValueById(StringSet<TString, Dependent<Generous> >& me, TString& obj, TId id); // "projects/library/seqan/sequence/sequence_multiple.h"(1394) template <typename TString, typename TId> inline typename Id<StringSet<TString, Dependent<Tight> > >::Type assignValueById(StringSet<TString, Dependent<Tight> >& me, TString& obj, TId id); // "projects/library/seqan/sequence/sequence_multiple.h"(1413) template <typename TString, typename TSpec1, typename TSpec2, typename TId> inline typename Id<StringSet<TString, TSpec1> >::Type assignValueById(StringSet<TString, TSpec1>& dest, StringSet<TString, TSpec2>& source, TId id); // "projects/library/seqan/sequence/sequence_multiple.h"(1434) //____________________________________________________________________________ // assign_std_string_Generous_impl template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void assign_std_string_Generous_impl(::std::basic_string<TChar, TCharTraits, TAlloc> & target, TSource & source, typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type limit); // "projects/library/seqan/sequence/std_string.h"(331) //____________________________________________________________________________ // atBegin template <typename THost> inline bool atBegin(Segment<THost, InfixSegment> & segment); // "projects/library/seqan/sequence/segment_infix.h"(506) template <typename THost> inline bool atBegin(Segment<THost, InfixSegment> const & segment); // "projects/library/seqan/sequence/segment_infix.h"(513) template <typename THost> inline bool atBegin(Segment<THost, PrefixSegment> const & segment); // "projects/library/seqan/sequence/segment_prefix.h"(415) template <typename TSSet, typename TSpec> inline bool atBegin(Iter<TSSet, ConcatVirtual<TSpec> > &me); // "projects/library/seqan/sequence/sequence_multiple.h"(2227) template <typename TSSet, typename TSpec> inline bool atBegin(Iter<TSSet, ConcatVirtual<TSpec> > const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(2234) template <typename THost> inline bool atBegin(Segment<THost, SuffixSegment> const & segment); // "projects/library/seqan/sequence/segment_suffix.h"(404) //____________________________________________________________________________ // atEnd template <typename THost> inline bool atEnd(Segment<THost, InfixSegment> & segment); // "projects/library/seqan/sequence/segment_infix.h"(523) template <typename THost> inline bool atEnd(Segment<THost, InfixSegment> const & segment); // "projects/library/seqan/sequence/segment_infix.h"(530) template <typename TValue> inline bool atEnd(TValue * pos); // "projects/library/seqan/sequence/string_pointer.h"(290) template <typename TValue> inline bool atEnd(TValue * pos, TValue const * container); // "projects/library/seqan/sequence/string_pointer.h"(301) template <typename THost> inline bool atEnd(Segment<THost, PrefixSegment> const & segment); // "projects/library/seqan/sequence/segment_prefix.h"(425) template <typename TSSet, typename TSpec> inline bool atEnd(Iter<TSSet, ConcatVirtual<TSpec> > &me); // "projects/library/seqan/sequence/sequence_multiple.h"(2245) template <typename TSSet, typename TSpec> inline bool atEnd(Iter<TSSet, ConcatVirtual<TSpec> > const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(2252) template <typename THost> inline bool atEnd(Segment<THost, SuffixSegment> const & segment); // "projects/library/seqan/sequence/segment_suffix.h"(414) template <typename TValue, unsigned int SPACE, typename TIteratorSpec> inline bool atEnd( Iter<String<TValue, Block<SPACE> >, TIteratorSpec>& it, String<TValue, Block<SPACE> >& container); // "projects/library/seqan/sequence/string_stack.h"(260) //____________________________________________________________________________ // atEndOfSequence template <typename TIterator> inline bool atEndOfSequence(TIterator const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(2263) template <typename TSSet, typename TSpec> inline bool atEndOfSequence(Iter<TSSet, ConcatVirtual<TSpec> > const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(2270) template <typename TIterator> inline bool atEndOfSequence(TIterator &me); // "projects/library/seqan/sequence/sequence_multiple.h"(2277) //____________________________________________________________________________ // back template <typename T> inline typename Reference<T const>::Type back(T const & me); // "projects/library/seqan/sequence/sequence_interface.h"(679) template <typename T> inline typename Reference<T>::Type back(T & me); // "projects/library/seqan/sequence/sequence_interface.h"(687) //____________________________________________________________________________ // begin template <typename TValue, typename THost, typename TMap, typename TSpec, typename TTag> inline typename Iterator<String< TValue, ValueExpand<THost, TMap, TSpec> >, Tag<TTag> const>::Type begin(String< TValue, ValueExpand<THost, TMap, TSpec> > & me, Tag<TTag> const tag_); // "projects/library/seqan/sequence/string_value_expand.h"(293) template <typename TValue, typename THost, typename TMap, typename TSpec, typename TTag> inline typename Iterator<String< TValue, ValueExpand<THost, TMap, TSpec> > const, Tag<TTag> const>::Type begin(String< TValue, ValueExpand<THost, TMap, TSpec> > const & me, Tag<TTag> const tag_); // "projects/library/seqan/sequence/string_value_expand.h"(301) template <typename T> inline typename Iterator<T *, typename DefaultGetIteratorSpec<T>::Type>::Type begin(T * me); // "projects/library/seqan/sequence/string_pointer.h"(147) template <typename TValue> inline typename Iterator<TValue *, Standard>::Type begin(TValue * me, Standard); // "projects/library/seqan/sequence/string_pointer.h"(158) template <typename TValue> inline typename Iterator<TValue const *, Standard>::Type begin(TValue const * me, Standard); // "projects/library/seqan/sequence/string_pointer.h"(168) template <typename TValue, typename TSpec> inline typename Iterator<TValue *, Tag<TSpec> const>::Type begin(TValue * me, Tag<TSpec> const); // "projects/library/seqan/sequence/string_pointer.h"(177) template <typename TValue, typename TSpec> inline typename Iterator<TValue const *, Tag<TSpec> const>::Type begin(TValue const * me, Tag<TSpec> const); // "projects/library/seqan/sequence/string_pointer.h"(187) template <typename TValue, typename THostspec, typename TTag> inline typename Iterator<String<TValue, Packed<THostspec> >, Tag<TTag> const>::Type begin(String<TValue, Packed<THostspec> > & me, Tag<TTag> const tag_); // "projects/library/seqan/sequence/string_packed.h"(440) template <typename TValue, typename THostspec, typename TTag> inline typename Iterator<String<TValue, Packed<THostspec> > const, Tag<TTag> const>::Type begin(String<TValue, Packed<THostspec> > const & me, Tag<TTag> const tag_); // "projects/library/seqan/sequence/string_packed.h"(448) template <typename TChar, typename TCharTraits, typename TAlloc> inline typename Iterator< ::std::basic_string<TChar, TCharTraits, TAlloc>, Standard>::Type begin(::std::basic_string<TChar, TCharTraits, TAlloc> & me, Standard); // "projects/library/seqan/sequence/std_string.h"(159) template <typename TChar, typename TCharTraits, typename TAlloc> inline typename Iterator< ::std::basic_string<TChar, TCharTraits, TAlloc> const, Standard>::Type begin(::std::basic_string<TChar, TCharTraits, TAlloc> const & me, Standard); // "projects/library/seqan/sequence/std_string.h"(167) template <typename TStringSet, typename TSpec > inline typename Iterator< ConcatenatorNto1<TStringSet const>, Tag<TSpec> const >::Type begin(ConcatenatorNto1<TStringSet const> concat, Tag<TSpec> const); // "projects/library/seqan/sequence/sequence_multiple.h"(1800) template <typename TStringSet, typename TSpec > inline typename Iterator< ConcatenatorNto1<TStringSet>, Tag<TSpec> const >::Type begin(ConcatenatorNto1<TStringSet> concat, Tag<TSpec> const); // "projects/library/seqan/sequence/sequence_multiple.h"(1807) template <typename T> inline typename Iterator<T, typename DefaultGetIteratorSpec<T>::Type>::Type begin(T & me); // "projects/library/seqan/sequence/sequence_interface.h"(259) template <typename T> inline typename Iterator<T const, typename DefaultGetIteratorSpec<T>::Type>::Type begin(T const & me); // "projects/library/seqan/sequence/sequence_interface.h"(266) template <typename T, typename TSpec> inline typename Iterator<T, Tag<TSpec> const>::Type begin(T & me, Tag<TSpec> const tag_); // "projects/library/seqan/sequence/sequence_interface.h"(327) template <typename T, typename TSpec> inline typename Iterator<T const, Tag<TSpec> const>::Type begin(T const & me, Tag<TSpec> const tag_); // "projects/library/seqan/sequence/sequence_interface.h"(335) template <typename TValue, unsigned int SPACE, typename TSpec> inline typename Iterator<String<TValue, Block<SPACE> >, Tag<TSpec> const >::Type begin(String<TValue, Block<SPACE> > &me, Tag<TSpec> const); // "projects/library/seqan/sequence/string_stack.h"(191) template <typename TValue, unsigned int SPACE, typename TSpec> inline typename Iterator<String<TValue, Block<SPACE> > const, Tag<TSpec> const>::Type begin(String<TValue, Block<SPACE> > const &me, Tag<TSpec> const); // "projects/library/seqan/sequence/string_stack.h"(199) //____________________________________________________________________________ // beginPosition template <typename T> inline typename Position<T>::Type beginPosition(T &); // "projects/library/seqan/sequence/sequence_interface.h"(406) template <typename T> inline typename Position<T>::Type beginPosition(T const &); // "projects/library/seqan/sequence/sequence_interface.h"(413) //____________________________________________________________________________ // capacity template <typename THost, typename TSpec> inline typename Size< Segment<THost, TSpec> const>::Type capacity(Segment<THost, TSpec> const & me); // "projects/library/seqan/sequence/segment_base.h"(270) template <typename TValue, typename THost, typename TMap, typename TSpec> inline typename Size<String< TValue, ValueExpand<THost, TMap, TSpec> > const>::Type capacity(String< TValue, ValueExpand<THost, TMap, TSpec> > const & me); // "projects/library/seqan/sequence/string_value_expand.h"(361) template <typename TValue, typename THostspec> inline typename Size<String<TValue, Packed<THostspec> > const>::Type capacity(String<TValue, Packed<THostspec> > const & me); // "projects/library/seqan/sequence/string_packed.h"(505) template <typename TChar, typename TCharTraits, typename TAlloc> inline typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type capacity(::std::basic_string<TChar, TCharTraits, TAlloc> const & me); // "projects/library/seqan/sequence/std_string.h"(233) template <typename T> inline typename Size<T const>::Type capacity(T const & me); // "projects/library/seqan/sequence/sequence_interface.h"(856) template <typename TValue, unsigned int SPACE> inline typename Size<String<TValue, Block<SPACE> > >::Type capacity(String<TValue, Block<SPACE> > const & me); // "projects/library/seqan/sequence/string_stack.h"(522) //____________________________________________________________________________ // clear template <typename THost, typename TSpec> inline void clear(Segment<THost, TSpec> & target); // "projects/library/seqan/sequence/segment_base.h"(1055) template <typename TValue> inline void clear(TValue * me); // "projects/library/seqan/sequence/string_pointer.h"(364) template <typename TValue, typename THostspec> inline void clear(String<TValue, Packed<THostspec> > & me); // "projects/library/seqan/sequence/string_packed.h"(520) template <typename TChar, typename TCharTraits, typename TAlloc> inline void clear(::std::basic_string<TChar, TCharTraits, TAlloc> & me); // "projects/library/seqan/sequence/std_string.h"(257) template <typename TString > inline void clear(StringSet< TString, Owner<Default> > &me); // "projects/library/seqan/sequence/sequence_multiple.h"(1107) template <typename TString, typename TDelimiter > inline void clear(StringSet< TString, Owner<ConcatDirect<TDelimiter> > > &me); // "projects/library/seqan/sequence/sequence_multiple.h"(1116) template <typename TString > inline void clear(StringSet< TString, Dependent<Generous> > & me); // "projects/library/seqan/sequence/sequence_multiple.h"(1124) template <typename TString > inline void clear(StringSet<TString, Dependent<Tight> >& me); // "projects/library/seqan/sequence/sequence_multiple.h"(1133) template <typename TValue, unsigned int SPACE> inline void clear(String<TValue, Block<SPACE> >& me); // "projects/library/seqan/sequence/string_stack.h"(271) template <typename TValue, typename TSpec> inline void clear(String<TValue, TSpec> & me); // "projects/library/seqan/sequence/string_base.h"(204) //____________________________________________________________________________ // compare template <typename TSpec, typename TLeft, typename TRight> inline void compare(Lexical<TSpec> & lexical, TLeft const & left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(278) template <typename TSpec, typename TLeftValue, typename TRight> inline void compare(Lexical<TSpec> & lexical, TLeftValue const * left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(288) template <typename TSpec, typename TLeftValue, typename TRightValue> inline void compare(Lexical<TSpec> & lexical, TLeftValue const * left, TRightValue const * right); // "projects/library/seqan/sequence/lexical.h"(296) template <typename TSpec, typename TLeft, typename TRightValue> inline void compare(Lexical<TSpec> & lexical, TLeft const & left, TRightValue const * right); // "projects/library/seqan/sequence/lexical.h"(304) //____________________________________________________________________________ // compare_ template <typename TSpec, typename TLeft, typename TRight> inline void compare_(Lexical<TSpec> & lexical, TLeft & left, TRight & right); // "projects/library/seqan/sequence/lexical.h"(237) //____________________________________________________________________________ // computeGenerousCapacity template <typename T, typename TSize> inline TSize computeGenerousCapacity(T const & , TSize capacity); // "projects/library/seqan/sequence/sequence_interface.h"(927) //____________________________________________________________________________ // concat template <typename TString> inline typename Concatenator<TString>::Type & concat(TString &string); // "projects/library/seqan/sequence/sequence_multiple.h"(1848) template <typename TString, typename TSpec> inline typename Concatenator< StringSet<TString, TSpec> >::Type & concat(StringSet<TString, TSpec> &set); // "projects/library/seqan/sequence/sequence_multiple.h"(1854) template <typename TString, typename TSpec> inline typename Concatenator< StringSet<TString, TSpec> const>::Type & concat(StringSet<TString, TSpec> const &set); // "projects/library/seqan/sequence/sequence_multiple.h"(1860) //____________________________________________________________________________ // container template <typename TSSet, typename TSpec> inline typename Concatenator<TSSet>::Type container(Iter<TSSet, ConcatVirtual<TSpec> > &me); // "projects/library/seqan/sequence/sequence_multiple.h"(2209) template <typename TSSet, typename TSpec> inline typename Concatenator<TSSet>::Type container(Iter<TSSet, ConcatVirtual<TSpec> > const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(2216) //____________________________________________________________________________ // countSequences template <typename TString> inline unsigned countSequences(TString const &); // "projects/library/seqan/sequence/sequence_multiple.h"(620) template <typename TString, typename TSpec> inline typename Size<StringSet<TString, TSpec> >::Type countSequences(StringSet<TString, TSpec> const &stringSet); // "projects/library/seqan/sequence/sequence_multiple.h"(626) //____________________________________________________________________________ // create template <typename TTargetValue, typename TSource> inline void create(String<TTargetValue, CStyle> & target, TSource & source); // "projects/library/seqan/sequence/string_cstyle.h"(693) template <typename TTargetValue, typename TSource, typename TSize> inline void create(String<TTargetValue, CStyle> & target, TSource & source, TSize limit); // "projects/library/seqan/sequence/string_cstyle.h"(704) template <typename TTargetValue, typename TSource, typename TExpand> inline void create(String<TTargetValue, CStyle> & target, TSource & source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_cstyle.h"(717) template <typename TTargetValue, typename TSource, typename TSize, typename TExpand> inline void create(String<TTargetValue, CStyle> & target, TSource & source, TSize limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_cstyle.h"(728) template <typename TTargetValue, typename TSource, typename TExpand> inline void create(String<TTargetValue, CStyle> & target, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_cstyle.h"(738) template <typename TTargetValue, typename TSource, typename TSize, typename TExpand> inline void create(String<TTargetValue, CStyle> & target, TSource const & source, TSize limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_cstyle.h"(749) template <typename TTargetValue, typename TSourceValue, typename TExpand> inline void create(String<TTargetValue, CStyle> & target, TSourceValue const * source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_cstyle.h"(762) template <typename TTargetValue, typename TSourceValue, typename TSize, typename TExpand> inline void create(String<TTargetValue, CStyle> & target, TSourceValue const * source, TSize limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_cstyle.h"(773) //____________________________________________________________________________ // empty template <typename TValue> inline bool empty(TValue * me); // "projects/library/seqan/sequence/string_pointer.h"(377) template <typename TChar, typename TCharTraits, typename TAlloc> inline bool empty(::std::basic_string<TChar, TCharTraits, TAlloc> const & me); // "projects/library/seqan/sequence/std_string.h"(245) template <typename T> inline bool empty(T const & me); // "projects/library/seqan/sequence/sequence_interface.h"(879) template <typename TValue, unsigned int SPACE> inline bool empty(String<TValue, Block<SPACE> > const& me); // "projects/library/seqan/sequence/string_stack.h"(503) //____________________________________________________________________________ // end template <typename TValue, typename THost, typename TMap, typename TSpec, typename TTag> inline typename Iterator<String< TValue, ValueExpand<THost, TMap, TSpec> >, Tag<TTag> const>::Type end(String< TValue, ValueExpand<THost, TMap, TSpec> > & me, Tag<TTag> const tag_); // "projects/library/seqan/sequence/string_value_expand.h"(312) template <typename TValue, typename THost, typename TMap, typename TSpec, typename TTag> inline typename Iterator<String< TValue, ValueExpand<THost, TMap, TSpec> > const, Tag<TTag> const>::Type end(String< TValue, ValueExpand<THost, TMap, TSpec> > const & me, Tag<TTag> const tag_); // "projects/library/seqan/sequence/string_value_expand.h"(320) template <typename TValue> inline typename Iterator<TValue *, Standard>::Type end(TValue * me, Standard); // "projects/library/seqan/sequence/string_pointer.h"(201) template <typename TValue> inline typename Iterator<TValue const *, Standard>::Type end(TValue const * me, Standard); // "projects/library/seqan/sequence/string_pointer.h"(211) template <typename TValue, typename TSpec> inline typename Iterator<TValue *, Tag<TSpec> const>::Type end(TValue * me, Tag<TSpec> const tag_); // "projects/library/seqan/sequence/string_pointer.h"(220) template <typename TValue, typename TSpec> inline typename Iterator<TValue const *, Tag<TSpec> const>::Type end(TValue const * me, Tag<TSpec> const tag_); // "projects/library/seqan/sequence/string_pointer.h"(229) template <typename TValue, typename THostspec, typename TTag> inline typename Iterator<String<TValue, Packed<THostspec> >, Tag<TTag> const>::Type end(String<TValue, Packed<THostspec> > & me, Tag<TTag> const tag_); // "projects/library/seqan/sequence/string_packed.h"(461) template <typename TValue, typename THostspec, typename TTag> inline typename Iterator<String<TValue, Packed<THostspec> > const, Tag<TTag> const>::Type end(String<TValue, Packed<THostspec> > const & me, Tag<TTag> const tag_); // "projects/library/seqan/sequence/string_packed.h"(469) template <typename TChar, typename TCharTraits, typename TAlloc> inline typename Iterator< ::std::basic_string<TChar, TCharTraits, TAlloc>, Standard>::Type end(::std::basic_string<TChar, TCharTraits, TAlloc> & me, Standard); // "projects/library/seqan/sequence/std_string.h"(180) template <typename TChar, typename TCharTraits, typename TAlloc> inline typename Iterator< ::std::basic_string<TChar, TCharTraits, TAlloc> const, Standard>::Type end(::std::basic_string<TChar, TCharTraits, TAlloc> const & me, Standard); // "projects/library/seqan/sequence/std_string.h"(188) template <typename TStringSet, typename TSpec > inline typename Iterator< ConcatenatorNto1<TStringSet const>, Tag<TSpec> const >::Type end(ConcatenatorNto1<TStringSet const> concat, Tag<TSpec> const); // "projects/library/seqan/sequence/sequence_multiple.h"(1817) template <typename TStringSet, typename TSpec > inline typename Iterator< ConcatenatorNto1<TStringSet>, Tag<TSpec> const >::Type end(ConcatenatorNto1<TStringSet> concat, Tag<TSpec> const); // "projects/library/seqan/sequence/sequence_multiple.h"(1825) template <typename T> inline typename Iterator<T, typename DefaultGetIteratorSpec<T>::Type>::Type end(T & me); // "projects/library/seqan/sequence/sequence_interface.h"(442) template <typename T> inline typename Iterator<T const, typename DefaultGetIteratorSpec<T>::Type>::Type end(T const & me); // "projects/library/seqan/sequence/sequence_interface.h"(449) template <typename T, typename TSpec> inline typename Iterator<T, Tag<TSpec> const>::Type end(T & me, Tag<TSpec> const tag_); // "projects/library/seqan/sequence/sequence_interface.h"(502) template <typename T, typename TSpec> inline typename Iterator<T const, Tag<TSpec> const>::Type end(T const & me, Tag<TSpec> const tag_); // "projects/library/seqan/sequence/sequence_interface.h"(510) template <typename TValue, unsigned int SPACE, typename TSpec> inline typename Iterator<String<TValue, Block<SPACE> >, Tag<TSpec> const >::Type end(String<TValue, Block<SPACE> > &me, Tag<TSpec> const); // "projects/library/seqan/sequence/string_stack.h"(208) template <typename TValue, unsigned int SPACE, typename TSpec> inline typename Iterator<String<TValue, Block<SPACE> > const, Tag<TSpec> const>::Type end(String<TValue, Block<SPACE> > const &me, Tag<TSpec> const); // "projects/library/seqan/sequence/string_stack.h"(216) //____________________________________________________________________________ // endPosition template <typename T> inline typename Position<T>::Type endPosition(T & me); // "projects/library/seqan/sequence/sequence_interface.h"(535) template <typename T> inline typename Position<T>::Type endPosition(T const & me); // "projects/library/seqan/sequence/sequence_interface.h"(542) //____________________________________________________________________________ // erase template <typename T, typename TPosition> inline void erase(T & me, TPosition pos, TPosition pos_end); // "projects/library/seqan/sequence/sequence_interface.h"(1433) template <typename T, typename TPosition> inline void erase(T & me, TPosition pos); // "projects/library/seqan/sequence/sequence_interface.h"(1442) //____________________________________________________________________________ // fill template <typename TValue, typename TExpand> inline size_t fill( TValue * me, size_t new_length, TValue const & val, Tag<TExpand> const &); // "projects/library/seqan/sequence/string_pointer.h"(690) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSize, typename TExpand> inline typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type fill( ::std::basic_string<TChar, TCharTraits, TAlloc> & me, TSize new_length, TChar const & val, Tag<TExpand> const &); // "projects/library/seqan/sequence/std_string.h"(667) template <typename T, typename TSize, typename TValue> inline typename Size<T>::Type fill( T & me, TSize new_length, TValue const & val); // "projects/library/seqan/sequence/sequence_interface.h"(1483) template <typename TValue, typename TSpec, typename TSize, typename TValue2, typename TExpand> inline TSize fill(String<TValue, TSpec> & me, TSize new_length, TValue2 const & val, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1508) //____________________________________________________________________________ // front template <typename T> inline typename Reference<T>::Type front(T & me); // "projects/library/seqan/sequence/sequence_interface.h"(645) template <typename T> inline typename Reference<T const>::Type front(T const & me); // "projects/library/seqan/sequence/sequence_interface.h"(652) //____________________________________________________________________________ // getSeqNo template <typename TPosition> inline TPosition getSeqNo(TPosition const &, Nothing const &); // "projects/library/seqan/sequence/sequence_multiple.h"(214) template <typename TPosition> inline TPosition getSeqNo(TPosition const &); // "projects/library/seqan/sequence/sequence_multiple.h"(225) template <typename T1, typename T2, typename TCompression, typename TLimitsString> inline T1 getSeqNo(Pair<T1, T2, TCompression> const &pos, TLimitsString const &); // "projects/library/seqan/sequence/sequence_multiple.h"(239) template <typename T1, typename T2, typename TCompression> inline T1 getSeqNo(Pair<T1, T2, TCompression> const &pos); // "projects/library/seqan/sequence/sequence_multiple.h"(244) template <typename TPos, typename TLimitsString> inline TPos getSeqNo(TPos const &pos, TLimitsString const &limits); // "projects/library/seqan/sequence/sequence_multiple.h"(264) //____________________________________________________________________________ // getSeqOffset template <typename TPosition> inline TPosition getSeqOffset(TPosition const &pos, Nothing const &); // "projects/library/seqan/sequence/sequence_multiple.h"(219) template <typename TPosition> inline TPosition getSeqOffset(TPosition const &pos); // "projects/library/seqan/sequence/sequence_multiple.h"(230) template <typename T1, typename T2, typename TCompression, typename TLimitsString> inline T2 getSeqOffset(Pair<T1, T2, TCompression> const &pos, TLimitsString const &); // "projects/library/seqan/sequence/sequence_multiple.h"(250) template <typename T1, typename T2, typename TCompression> inline T1 getSeqOffset(Pair<T1, T2, TCompression> const &pos); // "projects/library/seqan/sequence/sequence_multiple.h"(255) template <typename TPos, typename TLimitsString> inline TPos getSeqOffset(TPos const &pos, TLimitsString const &limits); // "projects/library/seqan/sequence/sequence_multiple.h"(273) //____________________________________________________________________________ // getValue template <typename TContainer, typename TIterator> inline typename Value<TContainer>::Type getValue(Iter<TContainer, AdaptorIterator<TIterator, ValueExpandIter> > & me); // "projects/library/seqan/sequence/string_value_expand.h"(396) template <typename TContainer, typename TIterator> inline void getValue(Iter<TContainer, AdaptorIterator<TIterator, ValueExpandIter> > const & me); // "projects/library/seqan/sequence/string_value_expand.h"(413) template <typename TContainer, typename THostspec> inline typename GetValue<Iter<TContainer, Packed<THostspec> > >::Type getValue(Iter<TContainer, Packed<THostspec> > & me); // "projects/library/seqan/sequence/string_packed.h"(949) template <typename TContainer, typename THostspec> inline typename GetValue<Iter<TContainer, Packed<THostspec> > const>::Type getValue(Iter<TContainer, Packed<THostspec> > const & me); // "projects/library/seqan/sequence/string_packed.h"(956) template <typename T, typename TPos> inline typename GetValue<T>::Type getValue(T & me, TPos pos); // "projects/library/seqan/sequence/sequence_interface.h"(610) template <typename T, typename TPos> inline typename GetValue<T const>::Type getValue(T const & me, TPos pos); // "projects/library/seqan/sequence/sequence_interface.h"(618) //____________________________________________________________________________ // getValueById template <typename TString, typename TSpec, typename TId> inline typename Reference<StringSet<TString, Owner<TSpec> > >::Type getValueById(StringSet<TString, Owner<TSpec> >& me, TId const id); // "projects/library/seqan/sequence/sequence_multiple.h"(1279) template <typename TString, typename TId> inline typename Reference<StringSet<TString, Dependent<Generous> > >::Type getValueById(StringSet<TString, Dependent<Generous> >& me, TId const id); // "projects/library/seqan/sequence/sequence_multiple.h"(1290) template <typename TString, typename TId> inline typename Reference<StringSet<TString, Dependent<Tight> > >::Type getValueById(StringSet<TString, Dependent<Tight> >&me, TId const id); // "projects/library/seqan/sequence/sequence_multiple.h"(1302) //____________________________________________________________________________ // goBegin template <typename THost> inline void goBegin(Segment<THost, InfixSegment> & segment); // "projects/library/seqan/sequence/segment_infix.h"(541) template <typename THost, typename THost2> inline void goBegin(Segment<THost, InfixSegment> & segment, THost2 &); // "projects/library/seqan/sequence/segment_infix.h"(550) template <typename THost, typename THost2> inline void goBegin(Segment<THost, InfixSegment> & segment, THost2 const &); // "projects/library/seqan/sequence/segment_infix.h"(557) template <typename THost> inline void goBegin(Segment<THost, PrefixSegment> & segment, THost &); // "projects/library/seqan/sequence/segment_prefix.h"(436) template <typename THost> inline void goBegin(Segment<THost, PrefixSegment> & segment); // "projects/library/seqan/sequence/segment_prefix.h"(444) template <typename THost> inline void goBegin(Segment<THost, SuffixSegment> & segment, THost &); // "projects/library/seqan/sequence/segment_suffix.h"(425) template <typename THost> inline void goBegin(Segment<THost, SuffixSegment> & segment); // "projects/library/seqan/sequence/segment_suffix.h"(433) //____________________________________________________________________________ // goEnd template <typename THost> inline void goEnd(Segment<THost, InfixSegment> & segment); // "projects/library/seqan/sequence/segment_infix.h"(567) template <typename THost, typename THost2> inline void goEnd(Segment<THost, InfixSegment> & segment, THost2 &); // "projects/library/seqan/sequence/segment_infix.h"(576) template <typename THost, typename THost2> inline void goEnd(Segment<THost, InfixSegment> & segment, THost2 const &); // "projects/library/seqan/sequence/segment_infix.h"(583) template <typename THost> inline void goEnd(Segment<THost, PrefixSegment> & segment, THost &); // "projects/library/seqan/sequence/segment_prefix.h"(454) template <typename THost> inline void goEnd(Segment<THost, PrefixSegment> & segment); // "projects/library/seqan/sequence/segment_prefix.h"(462) template <typename THost> inline void goEnd(Segment<THost, SuffixSegment> & segment, THost &); // "projects/library/seqan/sequence/segment_suffix.h"(443) template <typename THost> inline void goEnd(Segment<THost, SuffixSegment> & segment); // "projects/library/seqan/sequence/segment_suffix.h"(451) //____________________________________________________________________________ // goNext template <typename TContainer, typename THostspec> inline void goNext(Iter<TContainer, Packed<THostspec> > & me); // "projects/library/seqan/sequence/string_packed.h"(1144) template <typename TStringSet, typename TSpec> inline void goNext(Iter<TStringSet, ConcatVirtual<TSpec> > & me); // "projects/library/seqan/sequence/sequence_multiple.h"(2067) //____________________________________________________________________________ // goPrevious template <typename TContainer, typename THostspec> inline void goPrevious(Iter<TContainer, Packed<THostspec> > & me); // "projects/library/seqan/sequence/string_packed.h"(1165) template <typename TStringSet, typename TSpec> inline void goPrevious(Iter<TStringSet, ConcatVirtual<TSpec> > & me); // "projects/library/seqan/sequence/sequence_multiple.h"(2093) //____________________________________________________________________________ // hasPrefix template <typename TLeft, typename TRight > inline bool hasPrefix(TLeft const & left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(707) template <typename TSpec> inline bool hasPrefix(Lexical<TSpec> const & _lex); // "projects/library/seqan/sequence/lexical.h"(715) //____________________________________________________________________________ // id template <typename THost, typename TSpec> inline void const * id(Segment<THost, TSpec> const & me); // "projects/library/seqan/sequence/segment_base.h"(246) template <typename TValue, typename THost, typename TMap, typename TSpec> inline void const * id(String< TValue, ValueExpand<THost, TMap, TSpec> > const & me); // "projects/library/seqan/sequence/string_value_expand.h"(257) template <typename TValue, typename THostspec> inline void const * id(String<TValue, Packed<THostspec> > const & me); // "projects/library/seqan/sequence/string_packed.h"(406) template <typename TChar, typename TCharTraits, typename TAlloc> inline void const * id(::std::basic_string<TChar, TCharTraits, TAlloc> const & me); // "projects/library/seqan/sequence/std_string.h"(147) template <typename T> inline void const * id(T const & me); // "projects/library/seqan/sequence/sequence_interface.h"(208) //____________________________________________________________________________ // idToPosition template <typename TString, typename TSpec, typename TId> inline typename Id<StringSet<TString, Owner<TSpec> > >::Type idToPosition(StringSet<TString, Owner<TSpec> >&, TId const id); // "projects/library/seqan/sequence/sequence_multiple.h"(1578) template <typename TString, typename TId> inline typename Id<StringSet<TString, Dependent<Generous> > >::Type idToPosition(StringSet<TString, Dependent<Generous> >& me, TId const id); // "projects/library/seqan/sequence/sequence_multiple.h"(1587) template <typename TString, typename TId> inline typename Id<StringSet<TString, Dependent<Tight> > >::Type idToPosition(StringSet<TString, Dependent<Tight> >&me, TId const id); // "projects/library/seqan/sequence/sequence_multiple.h"(1596) //____________________________________________________________________________ // infix template <typename T, typename TPosBegin, typename TPosEnd> inline typename Infix<T>::Type infix(T & t, TPosBegin pos_begin, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_infix.h"(673) template <typename T, typename TPosBegin, typename TPosEnd> inline typename Infix<T *>::Type infix(T * t, TPosBegin pos_begin, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_infix.h"(681) template <typename T, typename TSpec, typename TPosBegin, typename TPosEnd> inline typename Infix<Segment<T, TSpec> >::Type infix(Segment<T, TSpec> & t, TPosBegin pos_begin, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_infix.h"(689) template <typename T, typename TSpec, typename TPosBegin, typename TPosEnd> inline typename Infix<Segment<T, TSpec> const>::Type infix(Segment<T, TSpec> const & t, TPosBegin pos_begin, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_infix.h"(700) //____________________________________________________________________________ // infixWithLength template <typename T, typename TPosBegin, typename TSize> inline typename Infix<T>::Type infixWithLength(T & t, TPosBegin pos_begin, TSize length); // "projects/library/seqan/sequence/segment_infix.h"(731) template <typename T, typename TPosBegin, typename TSize> inline typename Infix<T *>::Type infixWithLength(T * t, TPosBegin pos_begin, TSize length); // "projects/library/seqan/sequence/segment_infix.h"(739) template <typename T, typename TSpec, typename TPosBegin, typename TSize> inline typename Infix<Segment<T, TSpec> >::Type infixWithLength(Segment<T, TSpec> & t, TPosBegin pos_begin, TSize length); // "projects/library/seqan/sequence/segment_infix.h"(747) template <typename T, typename TSpec, typename TPosBegin, typename TSize> inline typename Infix<Segment<T, TSpec> const>::Type infixWithLength(Segment<T, TSpec> const & t, TPosBegin pos_begin, TSize length); // "projects/library/seqan/sequence/segment_infix.h"(758) template <typename TString, typename TSpec, typename TPosition, typename TSize > inline typename Infix<TString>::Type infixWithLength(StringSet< TString, TSpec > &me, TPosition pos, TSize length); // "projects/library/seqan/sequence/sequence_multiple.h"(468) template <typename TString, typename TSpec, typename TPosition, typename TSize > inline typename Infix<TString const>::Type infixWithLength(StringSet< TString, TSpec > const &me, TPosition pos, TSize length); // "projects/library/seqan/sequence/sequence_multiple.h"(482) template <typename TString, typename TDelimiter, typename TPosition, typename TSize > inline typename Infix<TString>::Type infixWithLength(StringSet< TString, Owner<ConcatDirect<TDelimiter> > > &me, TPosition pos, TSize length); // "projects/library/seqan/sequence/sequence_multiple.h"(496) template <typename TString, typename TDelimiter, typename TPosition, typename TSize > inline typename Infix<TString const>::Type infixWithLength(StringSet< TString, Owner<ConcatDirect<TDelimiter> > > const &me, TPosition pos, TSize length); // "projects/library/seqan/sequence/sequence_multiple.h"(503) //____________________________________________________________________________ // insertValue template <typename THost, typename TSpec, typename TPosition, typename TValue, typename TExpand> inline void insertValue(Segment<THost, TSpec> & me, TPosition pos, TValue const & _value, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(763) template <typename THost, typename TSpec, typename TPosition, typename TValue, typename TExpand> inline void insertValue(Segment<THost, TSpec> const & me, TPosition pos, TValue const & _value, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(773) template <typename T, typename TPosition, typename TValue> inline void insertValue(T & me, TPosition pos, TValue const & _value); // "projects/library/seqan/sequence/sequence_interface.h"(1149) template <typename T, typename TPosition, typename TValue> inline void insertValue(T const & me, TPosition pos, TValue const & _value); // "projects/library/seqan/sequence/sequence_interface.h"(1158) template <typename TTargetValue, typename TTargetSpec, typename TPosition, typename TValue, typename TExpand> inline void insertValue(String<TTargetValue, TTargetSpec> & me, TPosition pos, TValue const & _value, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1165) //____________________________________________________________________________ // isEqual template <typename TLeftValue, typename TRight > inline bool isEqual(TLeftValue * left, TRight const & right); // "projects/library/seqan/sequence/string_pointer.h"(715) template <typename TLeft, typename TRight > inline bool isEqual(TLeft const & left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(329) template <typename TSpec> inline bool isEqual(Lexical<TSpec> const & _lex); // "projects/library/seqan/sequence/lexical.h"(337) //____________________________________________________________________________ // isGreater template <typename TLeftValue, typename TRight> inline bool isGreater(TLeftValue * left, TRight const & right); // "projects/library/seqan/sequence/string_pointer.h"(800) template <typename TLeft, typename TRight, typename TPrefixOrder > inline bool isGreater(TLeft const & left, TRight const & right, Tag<TPrefixOrder> const tag); // "projects/library/seqan/sequence/lexical.h"(540) template <typename TLeft, typename TRight> inline bool isGreater(TLeft const & left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(549) template <typename TSpec> inline bool isGreater(Lexical<TSpec> const & _lex, TagPrefixLess); // "projects/library/seqan/sequence/lexical.h"(558) template <typename TSpec> inline bool isGreater(Lexical<TSpec> const & _lex, TagPrefixGreater); // "projects/library/seqan/sequence/lexical.h"(566) template <typename TSpec> inline bool isGreater(Lexical<TSpec> const & _lex); // "projects/library/seqan/sequence/lexical.h"(573) //____________________________________________________________________________ // isGreaterOrEqual template <typename TLeftValue, typename TRight> inline bool isGreaterOrEqual(TLeftValue * left, TRight const & right); // "projects/library/seqan/sequence/string_pointer.h"(820) template <typename TLeft, typename TRight, typename TPrefixOrder > inline bool isGreaterOrEqual(TLeft const & left, TRight const & right, Tag<TPrefixOrder> const tag); // "projects/library/seqan/sequence/lexical.h"(608) template <typename TLeft, typename TRight> inline bool isGreaterOrEqual(TLeft const & left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(617) template <typename TSpec> inline bool isGreaterOrEqual(Lexical<TSpec> const & _lex, TagPrefixLess); // "projects/library/seqan/sequence/lexical.h"(626) template <typename TSpec> inline bool isGreaterOrEqual(Lexical<TSpec> const & _lex, TagPrefixGreater); // "projects/library/seqan/sequence/lexical.h"(634) template <typename TSpec> inline bool isGreaterOrEqual(Lexical<TSpec> const & _lex); // "projects/library/seqan/sequence/lexical.h"(641) //____________________________________________________________________________ // isLess template <typename TLeftValue, typename TRight> inline bool isLess(TLeftValue * left, TRight const & right); // "projects/library/seqan/sequence/string_pointer.h"(760) template <typename TLeft, typename TRight, typename TPrefixOrder > inline bool isLess(TLeft const & left, TRight const & right, Tag<TPrefixOrder> const tag); // "projects/library/seqan/sequence/lexical.h"(405) template <typename TLeft, typename TRight> inline bool isLess(TLeft const & left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(414) template <typename TSpec> inline bool isLess(Lexical<TSpec> const & _lex, TagPrefixLess); // "projects/library/seqan/sequence/lexical.h"(423) template <typename TSpec> inline bool isLess(Lexical<TSpec> const & _lex, TagPrefixGreater); // "projects/library/seqan/sequence/lexical.h"(431) template <typename TSpec> inline bool isLess(Lexical<TSpec> const & _lex); // "projects/library/seqan/sequence/lexical.h"(438) //____________________________________________________________________________ // isLessOrEqual template <typename TLeftValue, typename TRight> inline bool isLessOrEqual(TLeftValue * left, TRight const & right); // "projects/library/seqan/sequence/string_pointer.h"(780) template <typename TLeft, typename TRight, typename TPrefixOrder > inline bool isLessOrEqual(TLeft const & left, TRight const & right, Tag<TPrefixOrder> const tag); // "projects/library/seqan/sequence/lexical.h"(473) template <typename TLeft, typename TRight> inline bool isLessOrEqual(TLeft const & left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(482) template <typename TSpec> inline bool isLessOrEqual(Lexical<TSpec> const & _lex, TagPrefixLess); // "projects/library/seqan/sequence/lexical.h"(491) template <typename TSpec> inline bool isLessOrEqual(Lexical<TSpec> const & _lex, TagPrefixGreater); // "projects/library/seqan/sequence/lexical.h"(499) template <typename TSpec> inline bool isLessOrEqual(Lexical<TSpec> const & _lex); // "projects/library/seqan/sequence/lexical.h"(506) //____________________________________________________________________________ // isNotEqual template <typename TLeftValue, typename TRight > inline bool isNotEqual(TLeftValue * left, TRight const & right); // "projects/library/seqan/sequence/string_pointer.h"(737) template <typename TLeft, typename TRight > inline bool isNotEqual(TLeft const & left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(363) template <typename TSpec> inline bool isNotEqual(Lexical<TSpec> const & _lex); // "projects/library/seqan/sequence/lexical.h"(371) //____________________________________________________________________________ // isPrefix template <typename TLeft, typename TRight > inline bool isPrefix(TLeft const & left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(669) template <typename TSpec> inline bool isPrefix(Lexical<TSpec> const & _lex); // "projects/library/seqan/sequence/lexical.h"(677) //____________________________________________________________________________ // iter template <typename TValue, typename THost, typename TMap, typename TPos, typename TSpec, typename TTag> inline typename Iterator<String< TValue, ValueExpand<THost, TMap, TSpec> >, Tag<TTag> const>::Type iter(String< TValue, ValueExpand<THost, TMap, TSpec> > & me, TPos pos_, Tag<TTag> const tag_); // "projects/library/seqan/sequence/string_value_expand.h"(269) template <typename TValue, typename THost, typename TMap, typename TPos, typename TSpec, typename TTag> inline typename Iterator<String< TValue, ValueExpand<THost, TMap, TSpec> > const, Tag<TTag> const>::Type iter(String< TValue, ValueExpand<THost, TMap, TSpec> > const & me, TPos pos_, Tag<TTag> const tag_ ); // "projects/library/seqan/sequence/string_value_expand.h"(280) template <typename TValue, typename THostspec, typename TPos, typename TTag> inline typename Iterator<String<TValue, Packed<THostspec> >, Tag<TTag> const>::Type iter(String<TValue, Packed<THostspec> > & me, TPos pos_, Tag<TTag> const); // "projects/library/seqan/sequence/string_packed.h"(418) template <typename TValue, typename THostspec, typename TPos, typename TTag> inline typename Iterator<String<TValue, Packed<THostspec> > const, Tag<TTag> const>::Type iter(String<TValue, Packed<THostspec> > const & me, TPos pos_, Tag<TTag> const); // "projects/library/seqan/sequence/string_packed.h"(428) template <typename T, typename TPos> inline typename Iterator<T, typename DefaultGetIteratorSpec<T>::Type>::Type iter(T & me, TPos pos); // "projects/library/seqan/sequence/sequence_interface.h"(720) template <typename T, typename TPos> inline typename Iterator<T const, typename DefaultGetIteratorSpec<T>::Type>::Type iter(T const & me, TPos pos); // "projects/library/seqan/sequence/sequence_interface.h"(728) template <typename T, typename TPos, typename TTag> inline typename Iterator<T, Tag<TTag> const>::Type iter(T & me, TPos pos, Tag<TTag> const tag_); // "projects/library/seqan/sequence/sequence_interface.h"(739) template <typename T, typename TPos, typename TTag> inline typename Iterator<T const, Tag<TTag> const>::Type iter(T const & me, TPos pos, Tag<TTag> const tag_); // "projects/library/seqan/sequence/sequence_interface.h"(748) //____________________________________________________________________________ // lcpLength template <typename TLeft, typename TRight > inline typename Size<TLeft>::Type lcpLength(TLeft const & left, TRight const & right); // "projects/library/seqan/sequence/lexical.h"(739) template <typename TSpec> inline typename Size< Lexical<TSpec> >::Type lcpLength(Lexical<TSpec> const & _lex); // "projects/library/seqan/sequence/lexical.h"(748) //____________________________________________________________________________ // length template <typename THost, typename TSpec> inline typename Size<Segment<THost, TSpec> const>::Type length(Segment<THost, TSpec> const & me); // "projects/library/seqan/sequence/segment_base.h"(258) template <typename TValue, typename THost, typename TMap, typename TSpec> inline typename Size<String< TValue, ValueExpand<THost, TMap, TSpec> > const>::Type length(String< TValue, ValueExpand<THost, TMap, TSpec> > const & me); // "projects/library/seqan/sequence/string_value_expand.h"(351) template <typename TValue> inline size_t length(TValue * me); // "projects/library/seqan/sequence/string_pointer.h"(313) template <typename TValue> inline size_t length(TValue const * me); // "projects/library/seqan/sequence/string_pointer.h"(324) inline size_t length(char * me); // "projects/library/seqan/sequence/string_pointer.h"(334) inline size_t length(char const * me); // "projects/library/seqan/sequence/string_pointer.h"(341) template <typename TChar, typename TCharTraits, typename TAlloc> inline typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type length(::std::basic_string<TChar, TCharTraits, TAlloc> const & me); // "projects/library/seqan/sequence/std_string.h"(221) template <typename TString, typename TSpec > inline typename Size< StringSet< TString, TSpec > >::Type length(StringSet< TString, TSpec > const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(1148) template <typename TString> inline typename Size<StringSet<TString, Dependent<Tight> > >::Type length(StringSet<TString, Dependent<Tight> > const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(1155) template <typename TStringSet > inline typename Size< ConcatenatorNto1<TStringSet> >::Type length(ConcatenatorNto1<TStringSet> const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(1790) template <typename T> inline typename Size<T const>::Type length(T const & ); // "projects/library/seqan/sequence/sequence_interface.h"(829) template <typename TValue, unsigned int SPACE> inline typename Size<String<TValue, Block<SPACE> > >::Type length(String<TValue, Block<SPACE> > const & me); // "projects/library/seqan/sequence/string_stack.h"(511) template <typename TValue, typename TSpec> inline typename Size< String<TValue, TSpec> const>::Type length(String<TValue, TSpec> const & me); // "projects/library/seqan/sequence/string_base.h"(179) //____________________________________________________________________________ // lengthSum template <typename TString > inline typename Size<TString>::Type lengthSum(TString const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(1023) template <typename TString, typename TSpec > inline typename Size<TString>::Type lengthSum(StringSet< TString, TSpec > const &me); // "projects/library/seqan/sequence/sequence_multiple.h"(1028) //____________________________________________________________________________ // move template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void move(Segment<THost, TSpec> & target, TSource & source); // "projects/library/seqan/sequence/segment_base.h"(490) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void move(Segment<THost, TSpec> & target, TSource const & source); // "projects/library/seqan/sequence/segment_base.h"(499) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void move(Segment<THost, TSpec> const & target, TSource & source); // "projects/library/seqan/sequence/segment_base.h"(511) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void move(Segment<THost, TSpec> const & target, TSource const & source); // "projects/library/seqan/sequence/segment_base.h"(520) template <typename TTargetValue, typename TSource> inline void move(TTargetValue * & target, TSource & source); // "projects/library/seqan/sequence/string_pointer.h"(516) template <typename TTargetValue, typename TSource> inline void move(TTargetValue * & target, TSource const & source); // "projects/library/seqan/sequence/string_pointer.h"(524) template <typename TTargetValue, typename TSourceValue, typename TSpec> inline void move(String<TTargetValue, Alloc<TSpec> > & target, String<TSourceValue, Alloc<TSpec> > & source); // "projects/library/seqan/sequence/string_alloc.h"(360) template <typename TTargetValue, typename TSourceValue, typename TSpec> inline void move(String<TTargetValue, Alloc<TSpec> > & target, String<TSourceValue, Alloc<TSpec> > const & source); // "projects/library/seqan/sequence/string_alloc.h"(367) template <typename TValue, typename TSpec> inline void move(String<TValue, Alloc<TSpec> > & target, String<TValue, Alloc<TSpec> > & source); // "projects/library/seqan/sequence/string_alloc.h"(375) template <typename TValue, typename TSpec> inline void move(String<TValue, Alloc<TSpec> > & target, String<TValue, Alloc<TSpec> > const & source); // "projects/library/seqan/sequence/string_alloc.h"(389) template <typename TTargetValue, typename TTargetSpec, typename TSource> inline void move(String<TTargetValue, TTargetSpec> & target, TSource & source); // "projects/library/seqan/sequence/string_base.h"(915) template <typename TTargetValue, typename TTargetSpec, typename TSource> inline void move(String<TTargetValue, TTargetSpec> & target, TSource const & source); // "projects/library/seqan/sequence/string_base.h"(924) template <typename TTargetValue, typename TTargetSpec, typename TSource, typename TTag> inline void move(String<TTargetValue, TTargetSpec> & target, TSource & source, Tag<TTag> const tag); // "projects/library/seqan/sequence/string_base.h"(937) template <typename TTargetValue, typename TTargetSpec, typename TSource, typename TTag> inline void move(String<TTargetValue, TTargetSpec> & target, TSource const & source, Tag<TTag> const tag); // "projects/library/seqan/sequence/string_base.h"(947) //____________________________________________________________________________ // moveValue template <typename TContainer, typename TIterator, typename TValue> inline void moveValue(Iter<TContainer, AdaptorIterator<TIterator, ValueExpandIter> > & me, TValue const & _value); // "projects/library/seqan/sequence/string_value_expand.h"(496) template <typename TContainer, typename TIterator, typename TValue> inline void moveValue(Iter<TContainer, AdaptorIterator<TIterator, ValueExpandIter> > const & me, TValue const & _value); // "projects/library/seqan/sequence/string_value_expand.h"(504) template <typename TValue, typename TPos> inline void moveValue(TValue * me, TPos pos, TValue const & _value); // "projects/library/seqan/sequence/string_pointer.h"(280) template <typename TContainer, typename THostspec, typename TValue> inline void moveValue(Iter<TContainer, Packed<THostspec> > & me, TValue const & _value); // "projects/library/seqan/sequence/string_packed.h"(1010) template <typename TContainer, typename THostspec, typename TValue> inline void moveValue(Iter<TContainer, Packed<THostspec> > const & me, TValue const & _value); // "projects/library/seqan/sequence/string_packed.h"(1018) template <typename T, typename TValue, typename TPos> inline void moveValue(T & me, TPos pos, TValue const & _value); // "projects/library/seqan/sequence/sequence_interface.h"(804) //____________________________________________________________________________ // operator!= template <typename TLeftHost, typename TLeftSpec, typename TRight > inline bool operator!= (Segment<TLeftHost, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/segment_base.h"(1091) template <typename TContainer, typename THostspec> inline bool operator!= (Iter<TContainer, Packed<THostspec> > const & left, Iter<TContainer, Packed<THostspec> > const & right); // "projects/library/seqan/sequence/string_packed.h"(1080) template <typename TSSetL, typename TSpecL, typename TSSetR, typename TSpecR> inline bool operator!= ( Iter<TSSetL, ConcatVirtual<TSpecL> > const &L, Iter<TSSetR, ConcatVirtual<TSpecR> > const &R); // "projects/library/seqan/sequence/sequence_multiple.h"(2173) template <typename TLeftValue, typename TLeftSpec, typename TRight > inline bool operator!=(String<TLeftValue, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/string_base.h"(1572) //____________________________________________________________________________ // operator* template <typename TStringSet, typename TSpec> inline typename Reference< Iter< TStringSet, ConcatVirtual<TSpec> > const>::Type operator* (Iter<TStringSet, ConcatVirtual<TSpec> > const & me); // "projects/library/seqan/sequence/sequence_multiple.h"(2051) template <typename TStringSet, typename TSpec> inline typename Reference< Iter< TStringSet, ConcatVirtual<TSpec> > >::Type operator* (Iter<TStringSet, ConcatVirtual<TSpec> > & me); // "projects/library/seqan/sequence/sequence_multiple.h"(2057) //____________________________________________________________________________ // operator+ template <typename TContainer, typename THostspec, typename TIntegral> inline Iter<TContainer, Packed<THostspec> > operator+ (Iter<TContainer, Packed<THostspec> > const & left, TIntegral right); // "projects/library/seqan/sequence/string_packed.h"(1189) template <typename TContainer, typename THostspec, typename TIntegral> inline Iter<TContainer, Packed<THostspec> > operator+ (TIntegral left, Iter<TContainer, Packed<THostspec> > const & right); // "projects/library/seqan/sequence/string_packed.h"(1197) template <typename TStringSet, typename TSpec, typename TDelta> inline Iter<TStringSet, ConcatVirtual<TSpec> > operator+ (Iter<TStringSet, ConcatVirtual<TSpec> > const & me, TDelta delta); // "projects/library/seqan/sequence/sequence_multiple.h"(2119) template <typename TStringSet, typename TSpec, typename T1, typename T2, typename TCompression> inline Iter<TStringSet, ConcatVirtual<TSpec> > operator+ (Iter<TStringSet, ConcatVirtual<TSpec> > const & me, Pair<T1, T2, TCompression> delta); // "projects/library/seqan/sequence/sequence_multiple.h"(2127) //____________________________________________________________________________ // operator++ template <typename THost> inline Segment<THost, InfixSegment> & operator++(Segment<THost, InfixSegment> & segment); // "projects/library/seqan/sequence/segment_infix.h"(592) template <typename THost> inline Segment<THost, PrefixSegment> & operator++(Segment<THost, PrefixSegment> & segment); // "projects/library/seqan/sequence/segment_prefix.h"(471) template <typename TStringSet, typename TSpec> inline Iter<TStringSet, ConcatVirtual<TSpec> > const & operator++ (Iter<TStringSet, ConcatVirtual<TSpec> > & me); // "projects/library/seqan/sequence/sequence_multiple.h"(2074) template <typename TStringSet, typename TSpec> inline Iter<TStringSet, ConcatVirtual<TSpec> > const & operator++ (Iter<TStringSet, ConcatVirtual<TSpec> > & me, int); // "projects/library/seqan/sequence/sequence_multiple.h"(2081) template <typename THost> inline Segment<THost, SuffixSegment> & operator++(Segment<THost, SuffixSegment> & segment); // "projects/library/seqan/sequence/segment_suffix.h"(460) //____________________________________________________________________________ // operator+= template <typename TLeftValue, typename TLeftSpec, typename TRight> Segment<TLeftValue, TLeftSpec> const & operator+= (Segment<TLeftValue, TLeftSpec> & left, TRight const & right); // "projects/library/seqan/sequence/segment_base.h"(1066) template <typename TContainer, typename THostspec, typename TIntegral> inline Iter<TContainer, Packed<THostspec> > & operator+= (Iter<TContainer, Packed<THostspec> > & left, TIntegral right); // "projects/library/seqan/sequence/string_packed.h"(1210) template <typename TLeftValue, typename TLeftSpec, typename TRight > String<TLeftValue, TLeftSpec> const & operator+= (String<TLeftValue, TLeftSpec> & left, TRight const & right); // "projects/library/seqan/sequence/string_base.h"(1548) //____________________________________________________________________________ // operator- template <typename TContainer, typename THostspec, typename TIntegral> inline Iter<TContainer, Packed<THostspec> > operator- (Iter<TContainer, Packed<THostspec> > const & left, TIntegral right); // "projects/library/seqan/sequence/string_packed.h"(1224) template <typename TContainer, typename THostspec> inline typename Difference<Iter<TContainer, Packed<THostspec> > >::Type operator- (Iter<TContainer, Packed<THostspec> > const & left, Iter<TContainer, Packed<THostspec> > const & right); // "projects/library/seqan/sequence/string_packed.h"(1235) template <typename TSSetL, typename TSpecL, typename TSSetR, typename TSpecR> typename Difference<Iter<TSSetL, ConcatVirtual<TSpecL> > >::Type operator- ( Iter<TSSetL, ConcatVirtual<TSpecL> > const &L, Iter<TSSetR, ConcatVirtual<TSpecR> > const &R); // "projects/library/seqan/sequence/sequence_multiple.h"(2142) template <typename TStringSet, typename TSpec, typename TDelta> inline Iter<TStringSet, ConcatVirtual<TSpec> > operator- (Iter<TStringSet, ConcatVirtual<TSpec> > const & me, TDelta delta); // "projects/library/seqan/sequence/sequence_multiple.h"(2148) //____________________________________________________________________________ // operator-- template <typename THost> inline Segment<THost, InfixSegment> & operator--(Segment<THost, InfixSegment> & segment); // "projects/library/seqan/sequence/segment_infix.h"(612) template <typename THost> inline Segment<THost, PrefixSegment> & operator--(Segment<THost, PrefixSegment> & segment); // "projects/library/seqan/sequence/segment_prefix.h"(481) template <typename TStringSet, typename TSpec> inline Iter<TStringSet, ConcatVirtual<TSpec> > const & operator-- (Iter<TStringSet, ConcatVirtual<TSpec> > & me); // "projects/library/seqan/sequence/sequence_multiple.h"(2100) template <typename TStringSet, typename TSpec> inline Iter<TStringSet, ConcatVirtual<TSpec> > const & operator-- (Iter<TStringSet, ConcatVirtual<TSpec> > & me, int); // "projects/library/seqan/sequence/sequence_multiple.h"(2107) template <typename THost> inline Segment<THost, SuffixSegment> & operator--(Segment<THost, SuffixSegment> & segment); // "projects/library/seqan/sequence/segment_suffix.h"(470) //____________________________________________________________________________ // operator-= template <typename TContainer, typename THostspec, typename TIntegral> inline Iter<TContainer, Packed<THostspec> > & operator-= (Iter<TContainer, Packed<THostspec> > & left, TIntegral right); // "projects/library/seqan/sequence/string_packed.h"(1248) //____________________________________________________________________________ // operator< template <typename TLeftHost, typename TLeftSpec, typename TRight> inline bool operator< (Segment<TLeftHost, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/segment_base.h"(1103) template <typename TContainer, typename THostspec> inline bool operator< (Iter<TContainer, Packed<THostspec> > const & left, Iter<TContainer, Packed<THostspec> > const & right); // "projects/library/seqan/sequence/string_packed.h"(1119) template <typename TSSetL, typename TSpecL, typename TSSetR, typename TSpecR> inline bool operator< ( Iter<TSSetL, ConcatVirtual<TSpecL> > const &L, Iter<TSSetR, ConcatVirtual<TSpecR> > const &R); // "projects/library/seqan/sequence/sequence_multiple.h"(2187) template <typename TLeftValue, typename TLeftSpec, typename TRight> inline bool operator< (String<TLeftValue, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/string_base.h"(1584) //____________________________________________________________________________ // operator<< template <typename TStream, typename THost, typename TSpec> inline TStream & operator<< (TStream & target, Segment<THost, TSpec> const & source); // "projects/library/seqan/sequence/segment_base.h"(1149) template <typename TStream, typename TValue, typename TSpec> inline TStream & operator<< (TStream & target, String<TValue, TSpec> const & source); // "projects/library/seqan/sequence/string_base.h"(1629) //____________________________________________________________________________ // operator<= template <typename TLeftHost, typename TLeftSpec, typename TRight> inline bool operator<= (Segment<TLeftHost, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/segment_base.h"(1114) template <typename TContainer, typename THostspec> inline bool operator<= (Iter<TContainer, Packed<THostspec> > const & left, Iter<TContainer, Packed<THostspec> > const & right); // "projects/library/seqan/sequence/string_packed.h"(1132) template <typename TLeftValue, typename TLeftSpec, typename TRight> inline bool operator<= (String<TLeftValue, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/string_base.h"(1595) //____________________________________________________________________________ // operator== template <typename TLeftHost, typename TLeftSpec, typename TRight > inline bool operator== (Segment<TLeftHost, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/segment_base.h"(1079) template <typename TContainer, typename THostspec> inline bool operator== (Iter<TContainer, Packed<THostspec> > const & left, Iter<TContainer, Packed<THostspec> > const & right); // "projects/library/seqan/sequence/string_packed.h"(1067) template <typename TSSetL, typename TSpecL, typename TSSetR, typename TSpecR> inline bool operator== ( Iter<TSSetL, ConcatVirtual<TSpecL> > const &L, Iter<TSSetR, ConcatVirtual<TSpecR> > const &R); // "projects/library/seqan/sequence/sequence_multiple.h"(2163) template <typename TLeftValue, typename TLeftSpec, typename TRight > inline bool operator== (String<TLeftValue, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/string_base.h"(1560) //____________________________________________________________________________ // operator> template <typename TLeftHost, typename TLeftSpec, typename TRight> inline bool operator> (Segment<TLeftHost, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/segment_base.h"(1124) template <typename TContainer, typename THostspec> inline bool operator> (Iter<TContainer, Packed<THostspec> > const & left, Iter<TContainer, Packed<THostspec> > const & right); // "projects/library/seqan/sequence/string_packed.h"(1093) template <typename TSSetL, typename TSpecL, typename TSSetR, typename TSpecR> inline bool operator> ( Iter<TSSetL, ConcatVirtual<TSpecL> > const &L, Iter<TSSetR, ConcatVirtual<TSpecR> > const &R); // "projects/library/seqan/sequence/sequence_multiple.h"(2197) template <typename TLeftValue, typename TLeftSpec, typename TRight> inline bool operator> (String<TLeftValue, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/string_base.h"(1605) //____________________________________________________________________________ // operator>= template <typename TLeftHost, typename TLeftSpec, typename TRight> inline bool operator>= (Segment<TLeftHost, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/segment_base.h"(1135) template <typename TContainer, typename THostspec> inline bool operator>= (Iter<TContainer, Packed<THostspec> > const & left, Iter<TContainer, Packed<THostspec> > const & right); // "projects/library/seqan/sequence/string_packed.h"(1106) template <typename TLeftValue, typename TLeftSpec, typename TRight> inline bool operator>= (String<TLeftValue, TLeftSpec> const & left, TRight const & right); // "projects/library/seqan/sequence/string_base.h"(1616) //____________________________________________________________________________ // operator>> template <typename TStream, typename THost, typename TSpec> inline TStream & operator>> (TStream & source, Segment<THost, TSpec> & target); // "projects/library/seqan/sequence/segment_base.h"(1161) template <typename TStream, typename THost, typename TSpec> inline TStream & operator>> (TStream & source, Segment<THost, TSpec> const & target); // "projects/library/seqan/sequence/segment_base.h"(1170) template <typename TStream, typename TValue, typename TSpec> inline TStream & operator>> (TStream & source, String<TValue, TSpec> & target); // "projects/library/seqan/sequence/string_base.h"(1641) //____________________________________________________________________________ // ordValue template <typename TValue> inline unsigned ordValue(TValue const &c); // "projects/library/seqan/sequence/lexical.h"(770) template <typename TValue, typename TSpec> inline unsigned ordValue(SimpleType<TValue,TSpec> const &c); // "projects/library/seqan/sequence/lexical.h"(776) //____________________________________________________________________________ // pop template <typename TValue, unsigned int SPACE> inline void pop(String<TValue, Block<SPACE> >& me); // "projects/library/seqan/sequence/string_stack.h"(474) //____________________________________________________________________________ // pop_back template <typename TValue, unsigned int SPACE> inline void pop_back(String<TValue, Block<SPACE> >& me); // "projects/library/seqan/sequence/string_stack.h"(496) //____________________________________________________________________________ // posAdd template <typename TPos, typename TDelta> inline TPos posAdd(TPos pos, TDelta delta); // "projects/library/seqan/sequence/sequence_multiple.h"(547) template <typename T1, typename T2, typename TCompression, typename TDelta> inline Pair<T1, T2, TCompression> posAdd(Pair<T1, T2, TCompression> const &pos, TDelta delta); // "projects/library/seqan/sequence/sequence_multiple.h"(553) //____________________________________________________________________________ // posAtFirstLocal template <typename TPos, typename TLimitsString> inline bool posAtFirstLocal(TPos pos, TLimitsString const &limits); // "projects/library/seqan/sequence/sequence_multiple.h"(513) template <typename TPos> inline bool posAtFirstLocal(TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(517) //____________________________________________________________________________ // posCompare template <typename TPos> inline int posCompare(TPos const &a, TPos const &b); // "projects/library/seqan/sequence/sequence_multiple.h"(589) template <typename T1, typename T2, typename TCompression> inline int posCompare(Pair<T1, T2, TCompression> const &a, Pair<T1, T2, TCompression> const &b); // "projects/library/seqan/sequence/sequence_multiple.h"(596) //____________________________________________________________________________ // posGlobalize template <typename TPosition> inline TPosition posGlobalize(TPosition const &pos, Nothing const &); // "projects/library/seqan/sequence/sequence_multiple.h"(300) template <typename T1, typename T2, typename TCompression> inline T2 posGlobalize(Pair<T1, T2, TCompression> const &pos, Nothing const &); // "projects/library/seqan/sequence/sequence_multiple.h"(306) template <typename TLimitsString, typename TPosition> inline TPosition posGlobalize(TPosition const &pos, TLimitsString const &); // "projects/library/seqan/sequence/sequence_multiple.h"(312) template <typename TLimitsString, typename T1, typename T2, typename TCompression> inline typename Value<TLimitsString>::Type posGlobalize(Pair<T1, T2, TCompression> const &pos, TLimitsString const &limits); // "projects/library/seqan/sequence/sequence_multiple.h"(319) //____________________________________________________________________________ // posLess template <typename TPos> inline bool posLess(TPos const &a, TPos const &b); // "projects/library/seqan/sequence/sequence_multiple.h"(577) template <typename T1, typename T2, typename TCompression> inline bool posLess(Pair<T1, T2, TCompression> const &a, Pair<T1, T2, TCompression> const &b); // "projects/library/seqan/sequence/sequence_multiple.h"(582) //____________________________________________________________________________ // posLocalize template <typename TResult, typename TPosition> inline void posLocalize(TResult &result, TPosition const &pos, Nothing const &); // "projects/library/seqan/sequence/sequence_multiple.h"(343) template <typename T1, typename T2, typename TCompression, typename TPosition> inline void posLocalize(Pair<T1, T2, TCompression> &result, TPosition const &pos, Nothing const &); // "projects/library/seqan/sequence/sequence_multiple.h"(348) template <typename TResult, typename TSize, typename TSpec, typename TPosition> inline void posLocalize(TResult &result, TPosition const &pos, String<TSize, TSpec> const &limits); // "projects/library/seqan/sequence/sequence_multiple.h"(355) template <typename TResult, typename TSize, typename TSpec, typename T1, typename T2, typename TCompression> inline void posLocalize(TResult &result, Pair<T1, T2, TCompression> const &pos, String<TSize, TSpec> const & ); // "projects/library/seqan/sequence/sequence_multiple.h"(365) //____________________________________________________________________________ // posNext template <typename TPos> inline TPos posNext(TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(535) template <typename T1, typename T2, typename TCompression> inline Pair<T1, T2, TCompression> posNext(Pair<T1, T2, TCompression> const &pos); // "projects/library/seqan/sequence/sequence_multiple.h"(541) //____________________________________________________________________________ // posPrev template <typename TPos> inline TPos posPrev(TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(524) template <typename T1, typename T2, typename TCompression> inline Pair<T1, T2, TCompression> posPrev(Pair<T1, T2, TCompression> const &pos); // "projects/library/seqan/sequence/sequence_multiple.h"(529) //____________________________________________________________________________ // posSub template <typename TA, typename TB> inline TA posSub(TA a, TB b); // "projects/library/seqan/sequence/sequence_multiple.h"(559) template <typename TA1, typename TA2, typename TACompression, typename TB1, typename TB2, typename TBCompression > inline TA2 posSub(Pair<TA1, TA2, TACompression> const &a, Pair<TB1, TB2, TBCompression> const &b); // "projects/library/seqan/sequence/sequence_multiple.h"(568) //____________________________________________________________________________ // position template <typename TContainer, typename THostspec> inline typename Position<Iter<TContainer, Packed<THostspec> > const>::Type position(Iter<TContainer, Packed<THostspec> > const & me); // "projects/library/seqan/sequence/string_packed.h"(902) //____________________________________________________________________________ // positionToId template <typename TString, typename TSpec, typename TPos> inline typename Id<StringSet<TString, Owner<TSpec> > >::Type positionToId(StringSet<TString, Owner<TSpec> >&, TPos const pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1518) template <typename TString, typename TPos> inline typename Id<StringSet<TString, Dependent<Generous> > >::Type positionToId(StringSet<TString, Dependent<Generous> >& me, TPos const pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1527) template <typename TString, typename TPos> inline typename Id<StringSet<TString, Dependent<Generous> > >::Type positionToId(StringSet<TString, Dependent<Generous> > const& me, TPos const pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1536) template <typename TString, typename TPos> inline typename Id<StringSet<TString, Dependent<Tight> > >::Type positionToId(StringSet<TString, Dependent<Tight> >&me, TPos const pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1545) template <typename TString, typename TPos> inline typename Id<StringSet<TString, Dependent<Tight> > >::Type positionToId(StringSet<TString, Dependent<Tight> > const&me, TPos const pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1554) //____________________________________________________________________________ // prefix template <typename T, typename TPosEnd> inline typename Prefix<T>::Type prefix(T & t, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_prefix.h"(510) template <typename T, typename TPosEnd> inline typename Prefix<T *>::Type prefix(T * t, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_prefix.h"(518) template <typename T, typename TPosEnd> inline typename Prefix<Segment<T, PrefixSegment> >::Type prefix(Segment<T, PrefixSegment> & t, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_prefix.h"(528) template <typename T, typename TPosEnd> inline typename Prefix<Segment<T, PrefixSegment> const>::Type prefix(Segment<T, PrefixSegment> const & t, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_prefix.h"(537) template <typename T, typename TPosEnd> inline typename Prefix<Segment<T, InfixSegment> >::Type prefix(Segment<T, InfixSegment> & t, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_prefix.h"(549) template <typename T, typename TPosEnd> inline typename Prefix<Segment<T, InfixSegment> const>::Type prefix(Segment<T, InfixSegment> const & t, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_prefix.h"(559) template <typename T, typename TPosEnd> inline typename Prefix<Segment<T, SuffixSegment> >::Type prefix(Segment<T, SuffixSegment> & t, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_prefix.h"(573) template <typename T, typename TPosEnd> inline typename Prefix<Segment<T, SuffixSegment> const>::Type prefix(Segment<T, SuffixSegment> const & t, TPosEnd pos_end); // "projects/library/seqan/sequence/segment_prefix.h"(583) template <typename TString, typename TSpec, typename TPosition > inline typename Prefix<TString>::Type prefix(StringSet< TString, TSpec > &me, TPosition pos); // "projects/library/seqan/sequence/sequence_multiple.h"(376) template <typename TString, typename TSpec, typename TPosition > inline typename Prefix<TString const>::Type prefix(StringSet< TString, TSpec > const &me, TPosition pos); // "projects/library/seqan/sequence/sequence_multiple.h"(390) template <typename TString, typename TDelimiter, typename TPosition > inline typename Infix<TString>::Type prefix(StringSet< TString, Owner<ConcatDirect<TDelimiter> > > &me, TPosition pos); // "projects/library/seqan/sequence/sequence_multiple.h"(404) template <typename TString, typename TDelimiter, typename TPosition > inline typename Infix<TString const>::Type prefix(StringSet< TString, Owner<ConcatDirect<TDelimiter> > > const &me, TPosition pos); // "projects/library/seqan/sequence/sequence_multiple.h"(411) //____________________________________________________________________________ // push template <typename TValue, unsigned int SPACE, typename TVal> inline void push( String<TValue, Block<SPACE> >& me, TVal const& source); // "projects/library/seqan/sequence/string_stack.h"(403) template <typename TValue, unsigned int SPACE> inline void push(String<TValue, Block<SPACE> >& me); // "projects/library/seqan/sequence/string_stack.h"(410) //____________________________________________________________________________ // push_back template <typename TValue, unsigned int SPACE, typename TVal> inline void push_back( String<TValue, Block<SPACE> >& me, TVal const& source); // "projects/library/seqan/sequence/string_stack.h"(429) //____________________________________________________________________________ // removeValueById template <typename TString, typename TSpec, typename TId> inline void removeValueById(StringSet<TString, Owner<TSpec> >& me, TId const id); // "projects/library/seqan/sequence/sequence_multiple.h"(1458) template <typename TString, typename TId> inline void removeValueById(StringSet<TString, Dependent<Generous> >& me, TId const id); // "projects/library/seqan/sequence/sequence_multiple.h"(1468) template <typename TString, typename TId> inline void removeValueById(StringSet<TString, Dependent<Tight> >& me, TId const id); // "projects/library/seqan/sequence/sequence_multiple.h"(1482) //____________________________________________________________________________ // replace template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void replace( Segment<THost, TSpec> & target, typename Position< Segment<THost, TSpec> >::Type pos_begin, typename Position< Segment<THost, TSpec> >::Type pos_end, TSource & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(869) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void replace( Segment<THost, TSpec> & target, typename Position< Segment<THost, TSpec> >::Type pos_begin, typename Position< Segment<THost, TSpec> >::Type pos_end, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(881) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void replace( Segment<THost, TSpec> & target, typename Position< Segment<THost, TSpec> >::Type pos_begin, typename Position< Segment<THost, TSpec> >::Type pos_end, TSource & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(895) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void replace( Segment<THost, TSpec> & target, typename Position< Segment<THost, TSpec> >::Type pos_begin, typename Position< Segment<THost, TSpec> >::Type pos_end, TSource const & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(908) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void replace( Segment<THost, TSpec> const & target, typename Position< Segment<THost, TSpec> const>::Type pos_begin, typename Position< Segment<THost, TSpec> const>::Type pos_end, TSource & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(921) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void replace( Segment<THost, TSpec> const & target, typename Position< Segment<THost, TSpec> const>::Type pos_begin, typename Position< Segment<THost, TSpec> const>::Type pos_end, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(933) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void replace( Segment<THost, TSpec> const & target, typename Position< Segment<THost, TSpec> const>::Type pos_begin, typename Position< Segment<THost, TSpec> const>::Type pos_end, TSource & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const ); // "projects/library/seqan/sequence/segment_base.h"(947) template <typename THost, typename TSpec, typename TSource, typename TExpand> inline void replace( Segment<THost, TSpec> const & target, typename Position< Segment<THost, TSpec> const>::Type pos_begin, typename Position< Segment<THost, TSpec> const>::Type pos_end, TSource const & source, typename Size< Segment<THost, TSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/segment_base.h"(960) template <typename TTargetValue, typename TSource, typename TExpand> inline void replace(TTargetValue * target, size_t pos_begin, size_t pos_end, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(596) template <typename TTargetValue, typename TSource, typename TExpand> inline void replace(TTargetValue * target, size_t pos_begin, size_t pos_end, TSource const & source, size_t limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(609) template <typename TTargetValue, typename TSourceValue, typename TExpand> inline void replace(TTargetValue * target, size_t pos_begin, size_t pos_end, TSourceValue const * source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(623) template <typename TTargetValue, typename TSourceValue, typename TExpand> inline void replace(TTargetValue * target, size_t pos_begin, size_t pos_end, TSourceValue const * source, size_t limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_pointer.h"(636) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void replace(::std::basic_string<TChar, TCharTraits, TAlloc> & target, typename Position< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type pos_begin, typename Position< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type pos_end, TSource const & source, Generous); // "projects/library/seqan/sequence/std_string.h"(520) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void replace(::std::basic_string<TChar, TCharTraits, TAlloc> & target, typename Position< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type pos_begin, typename Position< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type pos_end, TSource const & source, typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type limit, Generous); // "projects/library/seqan/sequence/std_string.h"(533) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void replace(::std::basic_string<TChar, TCharTraits, TAlloc> & target, typename Position< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type pos_begin, typename Position< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type pos_end, TSource const & source, Limit); // "projects/library/seqan/sequence/std_string.h"(569) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSource> inline void replace(::std::basic_string<TChar, TCharTraits, TAlloc> & target, typename Position< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type pos_begin, typename Position< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type pos_end, TSource const & source, typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type limit, Limit); // "projects/library/seqan/sequence/std_string.h"(582) template <typename TTarget, typename TPositionBegin, typename TPositionEnd, typename TSource> inline void replace(TTarget & target, TPositionBegin pos_begin, TPositionEnd pos_end, TSource & source); // "projects/library/seqan/sequence/sequence_interface.h"(1195) template <typename TTarget, typename TPositionBegin, typename TPositionEnd, typename TSource> inline void replace(TTarget const & target, TPositionBegin pos_begin, TPositionEnd pos_end, TSource & source); // "projects/library/seqan/sequence/sequence_interface.h"(1204) template <typename TTarget, typename TPositionBegin, typename TPositionEnd, typename TSource> inline void replace(TTarget & target, TPositionBegin pos_begin, TPositionEnd pos_end, TSource const & source); // "projects/library/seqan/sequence/sequence_interface.h"(1213) template <typename TTarget, typename TPositionBegin, typename TPositionEnd, typename TSource> inline void replace(TTarget const & target, TPositionBegin pos_begin, TPositionEnd pos_end, TSource const & source); // "projects/library/seqan/sequence/sequence_interface.h"(1222) template <typename TTarget, typename TPositionBegin, typename TPositionEnd, typename TSource> inline void replace(TTarget & target, TPositionBegin pos_begin, TPositionEnd pos_end, TSource & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(1235) template <typename TTarget, typename TPositionBegin, typename TPositionEnd, typename TSource> inline void replace(TTarget const & target, TPositionBegin pos_begin, TPositionEnd pos_end, TSource & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(1245) template <typename TTarget, typename TPositionBegin, typename TPositionEnd, typename TSource> inline void replace(TTarget & target, TPositionBegin pos_begin, TPositionEnd pos_end, TSource const & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(1255) template <typename TTarget, typename TPositionBegin, typename TPositionEnd, typename TSource> inline void replace(TTarget const & target, TPositionBegin pos_begin, TPositionEnd pos_end, TSource const & source, typename Size<TTarget>::Type limit); // "projects/library/seqan/sequence/sequence_interface.h"(1265) template <typename TTargetValue, typename TTargetSpec, typename TSource, typename TExpand> inline void replace(String<TTargetValue, TTargetSpec> & target, typename Size< String<TTargetValue, TTargetSpec> >::Type pos_begin, typename Size< String<TTargetValue, TTargetSpec> >::Type pos_end, TSource const & source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1247) template <typename TTargetValue, typename TTargetSpec, typename TSource, typename TExpand> inline void replace(String<TTargetValue, TTargetSpec> & target, typename Size< String<TTargetValue, TTargetSpec> >::Type pos_begin, typename Size< String<TTargetValue, TTargetSpec> >::Type pos_end, TSource const & source, typename Size< String<TTargetValue, TTargetSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1261) template <typename TTargetValue, typename TTargetSpec, typename TSourceValue, typename TExpand> inline void replace(String<TTargetValue, TTargetSpec> & target, typename Size< String<TTargetValue, TTargetSpec> >::Type pos_begin, typename Size< String<TTargetValue, TTargetSpec> >::Type pos_end, TSourceValue const * source, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1277) template <typename TTargetValue, typename TTargetSpec, typename TSourceValue, typename TExpand> inline void replace(String<TTargetValue, TTargetSpec> & target, typename Size< String<TTargetValue, TTargetSpec> >::Type pos_begin, typename Size< String<TTargetValue, TTargetSpec> >::Type pos_end, TSourceValue const * source, typename Size< String<TTargetValue, TTargetSpec> >::Type limit, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1291) //____________________________________________________________________________ // reserve template <typename TValue, typename THost, typename TMap, typename TSpec, typename TSize, typename TExpand> inline TSize reserve(String< TValue, ValueExpand<THost, TMap, TSpec> > & me, TSize new_length, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_value_expand.h"(384) template <typename TValue, typename TSpec, typename _TSize, typename TExpand> inline typename Size< String<TValue, Packed<TSpec> > >::Type reserve( String<TValue, Packed<TSpec> > & seq, _TSize new_capacity, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_packed.h"(726) template <typename TValue, typename TSpec, typename _TSize> inline typename Size< String<TValue, Alloc<TSpec> > >::Type reserve( String<TValue, Packed<TSpec> > & me, _TSize new_capacity, Limit); // "projects/library/seqan/sequence/string_packed.h"(741) template <typename TValue, typename TSpec, typename _TSize> inline typename Size< String<TValue, Alloc<TSpec> > >::Type reserve( String<TValue, Packed<TSpec> > & me, _TSize new_capacity, Insist); // "projects/library/seqan/sequence/string_packed.h"(756) template <typename TValue, typename TSpec, typename _TSize, typename TExpand> inline typename Size< String<TValue, Alloc<TSpec> > >::Type reserve( String<TValue, Alloc<TSpec> > & seq, _TSize new_capacity, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_alloc.h"(410) template <typename TValue, typename TSpec, typename _TSize> inline typename Size< String<TValue, Alloc<TSpec> > >::Type reserve( String<TValue, Alloc<TSpec> > & me, _TSize new_capacity, Limit); // "projects/library/seqan/sequence/string_alloc.h"(439) template <typename TValue, typename TSpec, typename _TSize> inline typename Size< String<TValue, Alloc<TSpec> > >::Type reserve( String<TValue, Alloc<TSpec> > & , _TSize new_capacity, Insist); // "projects/library/seqan/sequence/string_alloc.h"(454) template <typename TChar, typename TCharTraits, typename TAlloc, typename TExpand> inline typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type reserve( ::std::basic_string<TChar, TCharTraits, TAlloc> & seq, typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type new_capacity, Tag<TExpand> const &); // "projects/library/seqan/sequence/std_string.h"(630) template <typename T, typename TSize> inline typename Size<T>::Type reserve( T & , TSize new_capacity, Insist); // "projects/library/seqan/sequence/sequence_interface.h"(1300) template <typename T, typename TSize> inline typename Size<T>::Type reserve( T & me, TSize new_capacity, Limit); // "projects/library/seqan/sequence/sequence_interface.h"(1311) template <typename T, typename TSize> inline typename Size<T>::Type reserve( T & me, TSize new_capacity); // "projects/library/seqan/sequence/sequence_interface.h"(1323) template <typename TValue, unsigned int SPACE, typename TSize, typename TExpand> inline typename Size< String<TValue, Block<SPACE> > >::Type reserve(String<TValue, Block<SPACE> > & me, TSize new_capacity, Tag<TExpand> const); // "projects/library/seqan/sequence/string_stack.h"(356) //____________________________________________________________________________ // resize template <typename THost, typename TSpec, typename TExpand> inline typename Size< Segment<THost, TSpec> >::Type resize( Segment<THost, TSpec> & me, typename Size< Segment<THost, TSpec> >::Type new_length, Tag<TExpand> const tag); // "projects/library/seqan/sequence/segment_base.h"(1029) template <typename TValue, typename THost, typename TMap, typename TSpec, typename TSize> inline TSize resize(String< TValue, ValueExpand<THost, TMap, TSpec> > & me, TSize new_length); // "projects/library/seqan/sequence/string_value_expand.h"(372) template <typename TValue, typename TExpand> inline size_t resize( TValue * me, size_t new_length, Tag<TExpand> const &); // "projects/library/seqan/sequence/string_pointer.h"(675) template <typename TChar, typename TCharTraits, typename TAlloc, typename TSize, typename TExpand> inline typename Size< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type resize( ::std::basic_string<TChar, TCharTraits, TAlloc> & me, TSize new_length, Tag<TExpand> const &); // "projects/library/seqan/sequence/std_string.h"(650) template <typename TString, typename TSpec, typename TSize > inline typename Size< StringSet< TString, TSpec > >::Type resize(StringSet< TString, TSpec > &me, TSize new_size); // "projects/library/seqan/sequence/sequence_multiple.h"(1165) template <typename TString, typename TSpec, typename TSize > inline typename Size< StringSet< TString, Owner<ConcatDirect<TSpec> > > >::Type resize(StringSet< TString, Owner<ConcatDirect<TSpec> > > &me, TSize new_size); // "projects/library/seqan/sequence/sequence_multiple.h"(1173) template <typename T, typename TSize> inline typename Size<T>::Type resize( T & me, TSize new_length); // "projects/library/seqan/sequence/sequence_interface.h"(1358) template <typename TValue, unsigned int SPACE, typename TSize2, typename TExpand> inline typename Size< String<TValue, Block<SPACE> > >::Type resize(String<TValue, Block<SPACE> > & me, TSize2 new_length, Tag<TExpand> const); // "projects/library/seqan/sequence/string_stack.h"(308) template <typename TValue, unsigned int SPACE, typename TSize2> inline typename Size< String<TValue, Block<SPACE> > >::Type resize(String<TValue, Block<SPACE> > & me, TSize2 new_length, Limit); // "projects/library/seqan/sequence/string_stack.h"(329) template <typename TValue, typename TSpec, typename TSize, typename TExpand> inline typename Size< String<TValue, TSpec> >::Type resize( String<TValue, TSpec> & me, TSize new_length, Tag<TExpand> const); // "projects/library/seqan/sequence/string_base.h"(1457) //____________________________________________________________________________ // resizeSpace template <typename T, typename TSize, typename TPosition> inline TSize resizeSpace(T & me, TSize size, TPosition pos_begin, TPosition pos_end); // "projects/library/seqan/sequence/sequence_interface.h"(1393) template <typename T, typename TSize, typename TPosition> inline TSize resizeSpace(T & me, TSize size, TPosition pos_begin, TPosition pos_end, TSize limit); // "projects/library/seqan/sequence/sequence_interface.h"(1405) template <typename TValue, typename TSpec, typename TPosition, typename TExpand> inline typename Size< String<TValue, TSpec> >::Type resizeSpace(String<TValue, TSpec> & me, typename Size< String<TValue, TSpec> >::Type size, TPosition pos_begin, TPosition pos_end, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_base.h"(685) template <typename TValue, typename TSpec, typename TPosition, typename TExpand> inline typename Size< String<TValue, TSpec> >::Type resizeSpace(String<TValue, TSpec> & me, typename Size< String<TValue, TSpec> >::Type size, TPosition pos_begin, TPosition pos_end, typename Size< String<TValue, TSpec> >::Type limit, Tag<TExpand> const tag); // "projects/library/seqan/sequence/string_base.h"(700) //____________________________________________________________________________ // sequenceLength template <typename TSeqNo, typename TString> inline typename Size<TString>::Type sequenceLength(TSeqNo , TString const &string); // "projects/library/seqan/sequence/sequence_multiple.h"(634) template <typename TSeqNo, typename TString, typename TSpec> inline typename Size<StringSet<TString, TSpec> >::Type sequenceLength(TSeqNo seqNo, StringSet<TString, TSpec> const &stringSet); // "projects/library/seqan/sequence/sequence_multiple.h"(640) //____________________________________________________________________________ // set template <typename THost, typename TPosition1, typename TPosition2> inline void set(Segment<THost, InfixSegment> & me, THost & host_, TPosition1 begin_, TPosition2 end_); // "projects/library/seqan/sequence/segment_infix.h"(449) template <typename THost> inline void set(Segment<THost, InfixSegment> & me, THost & host_); // "projects/library/seqan/sequence/segment_infix.h"(461) template <typename THost> inline void set(Segment<THost, InfixSegment> & me, THost const & host_); // "projects/library/seqan/sequence/segment_infix.h"(471) template <typename THost, typename TSpec> inline void set(Segment<THost, InfixSegment> & me, Segment<THost, TSpec> & source); // "projects/library/seqan/sequence/segment_infix.h"(484) template <typename THost, typename TSpec> inline void set(Segment<THost, InfixSegment> & me, Segment<THost, TSpec> const & source); // "projects/library/seqan/sequence/segment_infix.h"(494) template <typename THost, typename TPosition> inline void set(Segment<THost, PrefixSegment> & me, THost & host_, TPosition end_); // "projects/library/seqan/sequence/segment_prefix.h"(371) template <typename THost> inline void set(Segment<THost, PrefixSegment> & me, THost & host_); // "projects/library/seqan/sequence/segment_prefix.h"(382) template <typename THost, typename TSpec> inline void set(Segment<THost, PrefixSegment> & me, Segment<THost, TSpec> & source); // "projects/library/seqan/sequence/segment_prefix.h"(394) template <typename THost, typename TSpec> inline void set(Segment<THost, PrefixSegment> & me, Segment<THost, TSpec> const & source); // "projects/library/seqan/sequence/segment_prefix.h"(404) template <typename THost, typename TPosition> inline void set(Segment<THost, SuffixSegment> & me, THost & host_, TPosition begin_); // "projects/library/seqan/sequence/segment_suffix.h"(360) template <typename THost> inline void set(Segment<THost, SuffixSegment> & me, THost & host_); // "projects/library/seqan/sequence/segment_suffix.h"(371) template <typename THost, typename TSpec> inline void set(Segment<THost, SuffixSegment> & me, Segment<THost, TSpec> & source); // "projects/library/seqan/sequence/segment_suffix.h"(383) template <typename THost, typename TSpec> inline void set(Segment<THost, SuffixSegment> & me, Segment<THost, TSpec> const & source); // "projects/library/seqan/sequence/segment_suffix.h"(393) //____________________________________________________________________________ // setBegin template <typename TIterator> inline void setBegin(TIterator new_begin); // "projects/library/seqan/sequence/segment_infix.h"(773) //____________________________________________________________________________ // setEnd template <typename TIterator> inline void setEnd(TIterator new_end); // "projects/library/seqan/sequence/segment_infix.h"(785) //____________________________________________________________________________ // setPosition template <typename TContainer, typename THostspec, typename TPosition> inline void setPosition(Iter<TContainer, Packed<THostspec> > & me, TPosition pos_); // "projects/library/seqan/sequence/string_packed.h"(917) //____________________________________________________________________________ // shareResources template <typename T1, typename T2> inline bool shareResources(T1 const & obj1, T2 const & obj2); // "projects/library/seqan/sequence/sequence_interface.h"(230) template <typename TValue, typename TSpec> inline bool shareResources(String<TValue, TSpec> const & obj1, TValue const & obj2); // "projects/library/seqan/sequence/string_base.h"(132) template <typename TValue, typename TSpec> inline bool shareResources(TValue const & obj1, String<TValue, TSpec> const & obj2); // "projects/library/seqan/sequence/string_base.h"(141) //____________________________________________________________________________ // shrinkToFit template <typename T, typename TSize, typename TValue> inline void shrinkToFit(T & me); // "projects/library/seqan/sequence/sequence_interface.h"(1508) //____________________________________________________________________________ // stringSetLimits template <typename TStringSet> inline typename StringSetLimits<TStringSet>::Type stringSetLimits(TStringSet &); // "projects/library/seqan/sequence/sequence_multiple.h"(157) template <typename TString, typename TSpec> inline typename StringSetLimits< StringSet<TString, TSpec> >::Type & stringSetLimits(StringSet<TString, TSpec> &stringSet); // "projects/library/seqan/sequence/sequence_multiple.h"(163) template <typename TString, typename TSpec> inline typename StringSetLimits< StringSet<TString, TSpec> const>::Type & stringSetLimits(StringSet<TString, TSpec> const &stringSet); // "projects/library/seqan/sequence/sequence_multiple.h"(171) //____________________________________________________________________________ // subset template <typename TString, typename TSpec, typename TDestSpec, typename TIds, typename TLength> inline void subset(StringSet<TString, Owner<TSpec> >& source, StringSet<TString, TDestSpec>& dest, TIds ids, TLength len); // "projects/library/seqan/sequence/sequence_multiple.h"(1631) template <typename TString, typename TIds, typename TLength> inline void subset(StringSet<TString, Dependent<Generous> >& source, StringSet<TString, Dependent<Generous> >& dest, TIds ids, TLength len); // "projects/library/seqan/sequence/sequence_multiple.h"(1641) template <typename TString, typename TIds, typename TLength> inline void subset(StringSet<TString, Dependent<Tight> >& source, StringSet<TString, Dependent<Tight> >& dest, TIds ids, TLength len); // "projects/library/seqan/sequence/sequence_multiple.h"(1661) template <typename TString, typename TSpec, typename TIds> inline void subset(StringSet<TString, TSpec>& source, StringSet<TString, TSpec>& dest, TIds ids); // "projects/library/seqan/sequence/sequence_multiple.h"(1696) //____________________________________________________________________________ // suffix template <typename TString, typename TSpec, typename TPosition > inline typename Suffix<TString>::Type suffix(StringSet< TString, TSpec > &me, TPosition pos); // "projects/library/seqan/sequence/sequence_multiple.h"(422) template <typename TString, typename TSpec, typename TPosition > inline typename Suffix<TString const>::Type suffix(StringSet< TString, TSpec > const &me, TPosition pos); // "projects/library/seqan/sequence/sequence_multiple.h"(436) template <typename TString, typename TDelimiter, typename TPosition > inline typename Infix<TString>::Type suffix(StringSet< TString, Owner<ConcatDirect<TDelimiter> > > &me, TPosition pos); // "projects/library/seqan/sequence/sequence_multiple.h"(450) template <typename TString, typename TDelimiter, typename TPosition > inline typename Infix<TString const>::Type suffix(StringSet< TString, Owner<ConcatDirect<TDelimiter> > > const &me, TPosition pos); // "projects/library/seqan/sequence/sequence_multiple.h"(457) template <typename T, typename TPosBegin> inline typename Suffix<T>::Type suffix(T & t, TPosBegin pos_begin); // "projects/library/seqan/sequence/segment_suffix.h"(498) template <typename T, typename TPosBegin> inline typename Suffix<T *>::Type suffix(T * t, TPosBegin pos_begin); // "projects/library/seqan/sequence/segment_suffix.h"(506) template <typename T, typename TPosBegin> inline typename Suffix<Segment<T, PrefixSegment> >::Type suffix(Segment<T, PrefixSegment> & t, TPosBegin pos_begin); // "projects/library/seqan/sequence/segment_suffix.h"(516) template <typename T, typename TPosBegin> inline typename Suffix<Segment<T, PrefixSegment> const>::Type suffix(Segment<T, PrefixSegment> const & t, TPosBegin pos_begin); // "projects/library/seqan/sequence/segment_suffix.h"(526) template <typename T, typename TPosBegin> inline typename Suffix<Segment<T, InfixSegment> >::Type suffix(Segment<T, InfixSegment> & t, TPosBegin pos_begin); // "projects/library/seqan/sequence/segment_suffix.h"(539) template <typename T, typename TPosBegin> inline typename Suffix<Segment<T, InfixSegment> const>::Type suffix(Segment<T, InfixSegment> const & t, TPosBegin pos_begin); // "projects/library/seqan/sequence/segment_suffix.h"(549) template <typename T, typename TPosBegin> inline typename Suffix<Segment<T, SuffixSegment> >::Type suffix(Segment<T, SuffixSegment> & t, TPosBegin pos_begin); // "projects/library/seqan/sequence/segment_suffix.h"(563) template <typename T, typename TPosBegin> inline typename Suffix<Segment<T, SuffixSegment> const>::Type suffix(Segment<T, SuffixSegment> const & t, TPosBegin pos_begin); // "projects/library/seqan/sequence/segment_suffix.h"(572) //____________________________________________________________________________ // suffixLength template <typename TPos, typename TString> inline typename Size<TString>::Type suffixLength(TPos pos, TString const &string); // "projects/library/seqan/sequence/sequence_multiple.h"(606) template <typename TPos, typename TString, typename TSpec> inline typename Size<TString>::Type suffixLength(TPos pos, StringSet<TString, TSpec> const &stringSet); // "projects/library/seqan/sequence/sequence_multiple.h"(612) //____________________________________________________________________________ // toCString template <typename T> inline typename Value<T>::Type * toCString(T & me); // "projects/library/seqan/sequence/string_cstyle.h"(796) //____________________________________________________________________________ // top template <typename TValue, unsigned int SPACE> inline TValue & top(String<TValue, Block<SPACE> > & me); // "projects/library/seqan/sequence/string_stack.h"(436) template <typename TValue, unsigned int SPACE> inline TValue const & top(String<TValue, Block<SPACE> > const& me); // "projects/library/seqan/sequence/string_stack.h"(444) //____________________________________________________________________________ // topPrev template <typename TValue, unsigned int SPACE> inline TValue & topPrev(String<TValue, Block<SPACE> > & me); // "projects/library/seqan/sequence/string_stack.h"(452) template <typename TValue, unsigned int SPACE> inline TValue const & topPrev(String<TValue, Block<SPACE> > const& me); // "projects/library/seqan/sequence/string_stack.h"(463) //____________________________________________________________________________ // value template <typename THost, typename TSpec, typename TPos> inline typename Reference< Segment<THost, TSpec> >::Type value(Segment<THost, TSpec> & me, TPos pos); // "projects/library/seqan/sequence/segment_infix.h"(635) template <typename THost, typename TSpec, typename TPos> inline typename Reference< Segment<THost, TSpec> const >::Type value(Segment<THost, TSpec> const & me, TPos pos); // "projects/library/seqan/sequence/segment_infix.h"(644) template <typename TValue, typename THost, typename TMap, typename TSpec, typename TPos> inline typename Reference<String< TValue, ValueExpand<THost, TMap, TSpec> > >::Type value(String< TValue, ValueExpand<THost, TMap, TSpec> > & me, TPos pos); // "projects/library/seqan/sequence/string_value_expand.h"(331) template <typename TValue, typename THost, typename TMap, typename TSpec, typename TPos> inline typename Reference<String< TValue, ValueExpand<THost, TMap, TSpec> > const>::Type value(String< TValue, ValueExpand<THost, TMap, TSpec> > const & me, TPos pos); // "projects/library/seqan/sequence/string_value_expand.h"(340) template <typename TContainer, typename TIterator> inline typename Reference<Iter<TContainer, AdaptorIterator<TIterator, ValueExpandIter> > >::Type value(Iter<TContainer, AdaptorIterator<TIterator, ValueExpandIter> > & me); // "projects/library/seqan/sequence/string_value_expand.h"(433) template <typename TContainer, typename TIterator> inline typename Reference<Iter<TContainer, AdaptorIterator<TIterator, ValueExpandIter> > >::Type value(Iter<TContainer, AdaptorIterator<TIterator, ValueExpandIter> > const & me); // "projects/library/seqan/sequence/string_value_expand.h"(441) template <typename TValue, typename TPos> inline TValue & value(TValue * me, TPos pos); // "projects/library/seqan/sequence/string_pointer.h"(243) template <typename TValue, typename TPos> inline TValue const & value(TValue const * me, TPos pos); // "projects/library/seqan/sequence/string_pointer.h"(252) template <typename TValue, typename THostspec, typename TPos> inline typename Reference<String<TValue, Packed<THostspec> > >::Type value(String<TValue, Packed<THostspec> > & me, TPos pos); // "projects/library/seqan/sequence/string_packed.h"(482) template <typename TValue, typename THostspec, typename TPos> inline typename Reference<String<TValue, Packed<THostspec> > const>::Type value(String<TValue, Packed<THostspec> > const & me, TPos pos); // "projects/library/seqan/sequence/string_packed.h"(491) template <typename TContainer, typename THostspec> inline typename Reference<Iter<TContainer, Packed<THostspec> > >::Type value(Iter<TContainer, Packed<THostspec> > & me); // "projects/library/seqan/sequence/string_packed.h"(930) template <typename TContainer, typename THostspec> inline typename Reference<Iter<TContainer, Packed<THostspec> > const>::Type value(Iter<TContainer, Packed<THostspec> > const & me); // "projects/library/seqan/sequence/string_packed.h"(937) template <typename TChar, typename TCharTraits, typename TAlloc, typename TPos> inline typename GetValue< ::std::basic_string<TChar, TCharTraits, TAlloc> >::Type value(::std::basic_string<TChar, TCharTraits, TAlloc> & me, TPos pos); // "projects/library/seqan/sequence/std_string.h"(201) template <typename TChar, typename TCharTraits, typename TAlloc, typename TPos> inline typename GetValue< ::std::basic_string<TChar, TCharTraits, TAlloc> const>::Type value(::std::basic_string<TChar, TCharTraits, TAlloc> const & me, TPos pos); // "projects/library/seqan/sequence/std_string.h"(209) template <typename TString, typename TPos > inline typename Reference< StringSet< TString, Owner<Default> > >::Type value(StringSet< TString, Owner<Default> > & me, TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1185) template <typename TString, typename TPos > inline typename Reference< StringSet< TString, Owner<Default> > const >::Type value(StringSet< TString, Owner<Default> > const & me, TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1192) template <typename TString, typename TSpec, typename TPos > inline typename Infix<TString>::Type value(StringSet< TString, Owner<ConcatDirect<TSpec> > > & me, TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1200) template <typename TString, typename TSpec, typename TPos > inline typename Infix<TString const>::Type value(StringSet< TString, Owner<ConcatDirect<TSpec> > > const & me, TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1207) template <typename TString, typename TPos > inline typename Reference<StringSet< TString, Dependent<Tight> > >::Type value(StringSet< TString, Dependent<Tight> >& me, TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1215) template <typename TString, typename TPos > inline typename Reference<StringSet< TString, Dependent<Tight> > const >::Type value(StringSet< TString, Dependent<Tight> >const & me, TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1226) template <typename TString, typename TPos > inline typename Reference<StringSet< TString, Dependent<Generous> > >::Type value(StringSet< TString, Dependent<Generous> >& me, TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1237) template <typename TString, typename TPos > inline typename Reference< StringSet< TString, Dependent<Generous> > const >::Type value(StringSet< TString, Dependent<Generous> > const & me, TPos pos); // "projects/library/seqan/sequence/sequence_multiple.h"(1249) template <typename TStringSet, typename TPos > inline typename Reference< ConcatenatorNto1<TStringSet> >::Type value(ConcatenatorNto1<TStringSet> &me, TPos globalPos); // "projects/library/seqan/sequence/sequence_multiple.h"(1769) template <typename TStringSet, typename TPos > inline typename Reference< ConcatenatorNto1<TStringSet> const >::Type value(ConcatenatorNto1<TStringSet> const &me, TPos globalPos); // "projects/library/seqan/sequence/sequence_multiple.h"(1778) template <typename TStringSet, typename TSpec> inline typename Reference< Iter< TStringSet, ConcatVirtual<TSpec> > const>::Type value(Iter<TStringSet, ConcatVirtual<TSpec> > const & me); // "projects/library/seqan/sequence/sequence_multiple.h"(2039) template <typename TStringSet, typename TSpec> inline typename Reference< Iter< TStringSet, ConcatVirtual<TSpec> > >::Type value(Iter<TStringSet, ConcatVirtual<TSpec> > & me); // "projects/library/seqan/sequence/sequence_multiple.h"(2045) template <typename T, typename TPos> inline typename Reference<T>::Type value(T & me, TPos ); // "projects/library/seqan/sequence/sequence_interface.h"(568) template <typename T, typename TPos> inline typename Reference<T const>::Type value(T const & me, TPos ); // "projects/library/seqan/sequence/sequence_interface.h"(576) template <typename TValue, unsigned int SPACE, typename TPos> inline typename Reference<String<TValue, Block<SPACE> > >::Type value( String<TValue, Block<SPACE> >& stack, TPos const pos); // "projects/library/seqan/sequence/string_stack.h"(240) template <typename TValue, unsigned int SPACE, typename TPos> inline typename Reference<String<TValue, Block<SPACE> > >::Type value( String<TValue, Block<SPACE> > const& stack, TPos const pos); // "projects/library/seqan/sequence/string_stack.h"(250) template <typename TValue, typename TSpec, typename TPos> inline typename Reference< String<TValue, TSpec> >::Type value(String<TValue, TSpec> & me, TPos pos); // "projects/library/seqan/sequence/string_base.h"(158) template <typename TValue, typename TSpec, typename TPos> inline typename Reference< String<TValue, TSpec> const >::Type value(String<TValue, TSpec> const & me, TPos pos); // "projects/library/seqan/sequence/string_base.h"(167) //____________________________________________________________________________ // valueById template <typename TString, typename TSpec, typename TId> inline typename Reference<StringSet<TString, TSpec> >::Type valueById(StringSet<TString, TSpec>& me, TId const id); // "projects/library/seqan/sequence/sequence_multiple.h"(1333) //____________________________________________________________________________ // valueConstruct template <typename TContainer, typename THostspec> inline void valueConstruct(Iter<TContainer, Packed<THostspec> > const & ); // "projects/library/seqan/sequence/string_packed.h"(1031) template <typename TContainer, typename THostspec, typename TParam> inline void valueConstruct(Iter<TContainer, Packed<THostspec> > const & it, TParam const & param_); // "projects/library/seqan/sequence/string_packed.h"(1037) template <typename TContainer, typename THostspec, typename TParam> inline void valueConstruct(Iter<TContainer, Packed<THostspec> > const & it, TParam const & param_, Move tag); // "projects/library/seqan/sequence/string_packed.h"(1045) //____________________________________________________________________________ // valueDestruct template <typename TContainer, typename THostspec> inline void valueDestruct(Iter<TContainer, Packed<THostspec> > const & ); // "projects/library/seqan/sequence/string_packed.h"(1056) } //namespace SEQAN_NAMESPACE_MAIN #endif
[ "langmead" ]
langmead
8684798d9c00057bbef87618ad9e5c92d6d404d3
f057cde91456807885825fe4dc168d3f7b4907e3
/src/server2012/projectdb.cpp
ea85a09c5b9f681d346e9304a0f39482c5b769ce
[]
no_license
fridex/petrinet-simulator
f3083e561f6402051c823837501ccaf26d6aa3f0
5522f60d5b68665d116f272f3cd3710239258d22
refs/heads/master
2021-01-20T02:46:41.930325
2016-06-30T07:51:00
2016-06-30T07:51:00
62,289,360
1
0
null
null
null
null
UTF-8
C++
false
false
11,683
cpp
/** * \file projectdb.cpp * \brief Implementacia databazy projektov. * \author Fridolin Pokorny <fridex.devel@gmail.com> * \author Miroslav Lisik <xlisik00@stud.fit.vutbr.cz> * \date feb 26 2012 */ #include <QString> #include <QStringList> #include <QFile> #include <QDir> #include <QTextStream> #include <QDateTime> #include <pn/server/projectdb.h> const char * PROJECTDB_ERR_UNVER = "Unknown version"; const char * PROJECTDB_ERR_UNPROJ = "Unknown project"; const char * PROJECTDB_ERR_ROPEN = "Unable to open file for reading"; const char * PROJECTDB_ERR_WOPEN = "Unable to open file for writing"; const char * PROJECTDB_ERR_MKDIR_PROJ = "Failed to create directory for project"; const char * PROJECTDB_ERR_MKDIR_VER = "Failed to create directory for project"; const char * PROJECTDB_XML_FILE = "project.xml"; const char * PROJECTDB_DESC_FILE = "desc.txt"; const char * PROJECTDB_USER_FILE = "author.txt"; const char * PROJECTDB_SLOG_FILE = "simlog.txt"; const char * PROJECTDB_SLOG_SEPARATOR = ":"; /** * \brief Konstruktor pre databazu projektov. * \param dir Umiestnenie adresara databazy projektov. * \throws const char * Pokial zadany adresar nie je platny. */ ProjectDB::ProjectDB(const QString & dir) { my_pdir = dir; my_error = 0; if (! my_pdir.exists()) throw "Bad direcotry for projectdb"; } /** * \brief Destruktor pre databazu projektov. */ ProjectDB::~ProjectDB() { } /** * \brief Predikat pre zistenie, ci zadany projekt existuje. * \param pname Meno projektu pre zistenie existencie * \return Informacia o existencii. * \retval true v pripade projekt existuje. */ bool ProjectDB::exist(const QString & pname) { my_error = 0; QDir proj(my_pdir.path()); if (! proj.cd(pname)) return false; else return true; } /** * \brief Predikat pre zistenie, ci zadany projekt existuje v danej verzii. * \param pname Meno projektu pre zistenie existencie * \param version Cislo verzie projektu. * \return Informacia o existencii. * \retval true v pripade projekt existuje v danej verzii. */ bool ProjectDB::exist(const QString & pname, unsigned version) { my_error = 0; QDir proj(my_pdir.path()); if (! proj.cd(pname)) return false; if (! proj.cd(QString::number(version))) return false; return true; } /** * \brief Spristupnenie ulozenych XML dat projektu v danej verzii. * \param xml Spristupnene XML data. * \param pname Nazov projektu pre spristupnenie dat. * \param version Cislo verzie projektu. * \return Informacia o uspesnosti prevedenia poziadavku. * \retval V pripade uspechu true, v opacnom pripade false. */ bool ProjectDB::xml_data(QString & xml, const QString & pname, unsigned version) { my_error = 0; my_error = PROJECTDB_ERR_MKDIR_PROJ; xml.clear(); QDir proj(my_pdir.path()); if (! proj.cd(pname)) { my_error = PROJECTDB_ERR_UNPROJ; return false; } if (! proj.cd(QString::number(version))) { my_error = PROJECTDB_ERR_UNVER; return false; } QFile data(proj.absoluteFilePath(PROJECTDB_XML_FILE)); if (! data.open(QIODevice::ReadOnly)) { my_error = PROJECTDB_ERR_ROPEN; return false; } xml = data.readAll(); data.close(); return true; } /** * \brief Spristupnenie popisu danej verzie projektu. * \param desc Spristupneny popis projektu. * \param pname Nazov projektu pre spristupnenie dat. * \param version Cislo verzie projektu. * \return Informacia o uspesnosti prevedenia poziadavku. * \retval V pripade uspechu true, v opacnom pripade false. */ bool ProjectDB::desc(QString & desc, const QString & pname, unsigned version) { my_error = 0; desc.clear(); QDir proj(my_pdir.path()); if (! proj.cd(pname)) { my_error = PROJECTDB_ERR_UNPROJ; return false; } if (! proj.cd(QString::number(version))) { my_error = PROJECTDB_ERR_UNVER; return false; } QFile data(proj.absoluteFilePath(PROJECTDB_DESC_FILE)); if (! data.open(QIODevice::ReadOnly)) { my_error = PROJECTDB_ERR_ROPEN; return false; } char buf; while (data.getChar(&buf) && buf != '\n') desc.append(buf); data.close(); return true; } /** * \brief Spristupnenie mena uzivatela, ktory pridal danu verziu projektu. * \param username Spristupnene meno pouzivatela. * \param time Cas vytvorenia danej verzie (vystupny parameter). * \param pname Nazov projektu pre spristupnenie dat. * \param version Cislo verzie projektu. * \return Informacia o uspesnosti prevedenia poziadavku. * \retval V pripade uspechu true, v opacnom pripade false. */ bool ProjectDB::user(QString & username, unsigned & time, const QString & pname, unsigned version) { my_error = 0; username.clear(); QDir proj(my_pdir.path()); if (! proj.cd(pname)) { my_error = PROJECTDB_ERR_UNPROJ; return false; } if (! proj.cd(QString::number(version))) { my_error = PROJECTDB_ERR_UNVER; return false; } QFile data(proj.absoluteFilePath(PROJECTDB_USER_FILE)); if (! data.open(QIODevice::ReadOnly)) { my_error = PROJECTDB_ERR_ROPEN; return false; } char buf; while (data.getChar(&buf) && buf != '\n') username.append(buf); time = username.mid(username.indexOf(PROJECTDB_SLOG_SEPARATOR) + 1).toUInt(); username = username.mid(0, username.indexOf(PROJECTDB_SLOG_SEPARATOR)); data.close(); return true; } /** * \brief Vytvorenie novej verzie projektu. Pokial zadany projekt este * neexistuje, je vytvoreny aj zaznam o projekte. * \param pname Nazov projektu, pre ktory ma byt vytvorena nova verzia. * \param user Nazov uzivatela, ktory zadanu verziu vytvoril. * \param desc Popis novej verzie. * \param xml XML data danej verzie. * \return Informacia o uspesnosti prevedenia poziadavku. * \retval V pripade uspechu cislo novej verzie, v opacnom pripade 0. */ unsigned ProjectDB::add_project(const QString & pname, const QString & user, const QString & desc, const QString & xml) { my_error = 0; QDir proj(my_pdir.path()); unsigned version = this->version_count(pname) + 1; QString version_file = QString::number(version); if (! proj.cd(pname)) { if (! proj.mkdir(pname)) { my_error = PROJECTDB_ERR_MKDIR_PROJ; return 0; } if (! proj.cd(pname)) { my_error = PROJECTDB_ERR_UNPROJ; return 0; } } if (! proj.mkdir(version_file)) { my_error = PROJECTDB_ERR_MKDIR_VER; return 0; } if (! proj.cd(version_file)) { my_error = PROJECTDB_ERR_UNVER; return 0; } QFile f_desc(proj.absoluteFilePath(PROJECTDB_DESC_FILE)); QFile f_user(proj.absoluteFilePath(PROJECTDB_USER_FILE)); QFile f_xml(proj.absoluteFilePath(PROJECTDB_XML_FILE)); QFile f_slog(proj.absoluteFilePath(PROJECTDB_SLOG_FILE)); if (! f_desc.open(QIODevice::WriteOnly) || ! f_user.open(QIODevice::WriteOnly) || ! f_slog.open(QIODevice::WriteOnly) || ! f_xml.open(QIODevice::WriteOnly)) { my_error = PROJECTDB_ERR_WOPEN; return 0; } QString time = QString::number(QDateTime::currentDateTime().toTime_t()); f_desc.write(desc.toAscii().data(), desc.length()); f_desc.putChar('\n'); f_user.write(user.toAscii().data(), user.length()); f_user.write(PROJECTDB_SLOG_SEPARATOR, qstrlen(PROJECTDB_SLOG_SEPARATOR)); f_user.write(time.toAscii().data(), time.length()); f_user.putChar('\n'); f_xml.write(xml.toAscii().data(), xml.length()); f_xml.putChar('\n'); f_desc.close(); f_user.close(); f_xml.close(); f_slog.close(); return version; } /** * \brief Spristupnie chyby, ktora sa vyskytla v pripade vratenia akejkolvek * funkcie false. * \return Spristupnena chybova hlaska. * \retval const QString Spristupnena chybova hlaska. */ const QString ProjectDB::error() const { return my_error; } /** * \brief Spristupnenie zoznamu dostupnych projektov. * \param projects Zoznam spristupnenych projektov. * \return Informacia o uspesnosti prevedenia poziadavku. * \retval V pripade uspechu true, v opacnom pripade false. */ bool ProjectDB::projects(QStringList & projects) { my_error = 0; projects = my_pdir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); return true; } /** * \brief Zaznamenianie simulacie na strane servru. * \param username Meno pouzivatela, ktory odsimuloval projekt. * \param pname Nazov projektu, ktory bol odsimulovany. * \param version Cislo verzie, ktora bola simulovana. * \return Pokial pozadovany projekt v danej verzii neexistuje false ako aj v * pripade, ze nebolo mozne pridat zaznam do logu. * \retval false v pripade chyby, inac true. */ bool ProjectDB::update_simlog(const QString & username, const QString & pname, unsigned version) { QDir proj(my_pdir.path()); if (! proj.cd(pname)) { my_error = PROJECTDB_ERR_UNPROJ; return false; } if (! proj.cd(QString::number(version))) { my_error = PROJECTDB_ERR_UNVER; return false; } QFile f_slog(proj.absoluteFilePath(PROJECTDB_SLOG_FILE)); if (! f_slog.open(QIODevice::Append)) { my_error = PROJECTDB_ERR_WOPEN; return false; } QTextStream log(&f_slog); log << QDateTime::currentDateTime().toTime_t() << PROJECTDB_SLOG_SEPARATOR << username << '\n'; f_slog.close(); return true; } /** * \brief Rozparsovanie suboru s informaciami o simulaciach do zoznamu. * \param log Vystupny parameter - naplneny zoznam TIME, USER pre kazdy * zaznam * \param pname Nazov projektu, pre ktory sa ma subor s informaciami o simulacii * rozparsovat * \param version Verzia projektu projektu. * \retval false v pripade, ze projekt v danej verzii neexistuje alebo nie je * mozne citat data. * \return Informacia o uspesnom otvoreni suboru a rozparsovani. */ bool ProjectDB::simlog(QStringList & log, const QString & pname, unsigned & version) { QDir proj(my_pdir.path()); if (! proj.cd(pname)) { my_error = PROJECTDB_ERR_UNPROJ; return false; } if (! proj.cd(QString::number(version))) { my_error = PROJECTDB_ERR_UNVER; return false; } QFile f_slog(proj.absoluteFilePath(PROJECTDB_SLOG_FILE)); if (! f_slog.open(QIODevice::ReadOnly)) { my_error = PROJECTDB_ERR_WOPEN; return false; } int pos; QByteArray line; while (! f_slog.atEnd()) { line = f_slog.readLine(); pos = line.lastIndexOf(PROJECTDB_SLOG_SEPARATOR); log << line.mid(0, pos); // Musi sa odstranit znak noveho riadku. log << line.mid(pos + 1, qstrlen(line.data()) - pos - 2); } f_slog.close(); return true; } /** * \brief Spristupnenie poctu verzii zadaneho projektu. * \param pname Projekt pre ktory ma byt zisteny pocet verzii. * \return Pocet verzii pre zadany projekt. * \retval unsigned Pocet verzii pre zadany projekt. */ unsigned ProjectDB::version_count(const QString & pname) { my_error = 0; QDir ver(my_pdir.path()); if (! ver.cd(pname)) return 0; return ver.entryList(QDir::Dirs | QDir::NoDotAndDotDot).count(); }
[ "fridex.devel@gmail.com" ]
fridex.devel@gmail.com
b0d4c2ec7dded8583f2dd5711a3c47bbcc833de7
92ccee08d1acfaa18a2415fff948b65bdee2f957
/src/qt/moc_optionsdialog.cpp
17cf22fdda72260c10f873fa5f2573b2ba329819
[ "MIT" ]
permissive
cubex-network/cubex
af131a5201f0189e2313b3f32ec017547eed521e
ed935e27cbaf9a781be57a48f7ca6d5bb1ba138a
refs/heads/master
2020-03-20T07:23:09.108987
2018-07-06T11:00:02
2018-07-06T11:00:02
137,279,350
2
5
MIT
2018-06-29T13:44:27
2018-06-13T22:44:00
C++
UTF-8
C++
false
false
6,612
cpp
/**************************************************************************** ** Meta object code from reading C++ file 'optionsdialog.h' ** ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "qt/optionsdialog.h" #include <QtCore/qbytearray.h> #include <QtCore/qmetatype.h> #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'optionsdialog.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 67 #error "This file was generated using the moc from 5.5.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE struct qt_meta_stringdata_OptionsDialog_t { QByteArrayData data[17]; char stringdata0[257]; }; #define QT_MOC_LITERAL(idx, ofs, len) \ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(qt_meta_stringdata_OptionsDialog_t, stringdata0) + ofs \ - idx * sizeof(QByteArrayData)) \ ) static const qt_meta_stringdata_OptionsDialog_t qt_meta_stringdata_OptionsDialog = { { QT_MOC_LITERAL(0, 0, 13), // "OptionsDialog" QT_MOC_LITERAL(1, 14, 13), // "proxyIpChecks" QT_MOC_LITERAL(2, 28, 0), // "" QT_MOC_LITERAL(3, 29, 19), // "QValidatedLineEdit*" QT_MOC_LITERAL(4, 49, 10), // "pUiProxyIp" QT_MOC_LITERAL(5, 60, 10), // "nProxyPort" QT_MOC_LITERAL(6, 71, 14), // "enableOkButton" QT_MOC_LITERAL(7, 86, 15), // "disableOkButton" QT_MOC_LITERAL(8, 102, 16), // "setOkButtonState" QT_MOC_LITERAL(9, 119, 6), // "fState" QT_MOC_LITERAL(10, 126, 22), // "on_resetButton_clicked" QT_MOC_LITERAL(11, 149, 19), // "on_okButton_clicked" QT_MOC_LITERAL(12, 169, 23), // "on_cancelButton_clicked" QT_MOC_LITERAL(13, 193, 18), // "showRestartWarning" QT_MOC_LITERAL(14, 212, 11), // "fPersistent" QT_MOC_LITERAL(15, 224, 16), // "clearStatusLabel" QT_MOC_LITERAL(16, 241, 15) // "doProxyIpChecks" }, "OptionsDialog\0proxyIpChecks\0\0" "QValidatedLineEdit*\0pUiProxyIp\0" "nProxyPort\0enableOkButton\0disableOkButton\0" "setOkButtonState\0fState\0on_resetButton_clicked\0" "on_okButton_clicked\0on_cancelButton_clicked\0" "showRestartWarning\0fPersistent\0" "clearStatusLabel\0doProxyIpChecks" }; #undef QT_MOC_LITERAL static const uint qt_meta_data_OptionsDialog[] = { // content: 7, // revision 0, // classname 0, 0, // classinfo 11, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 1, // signalCount // signals: name, argc, parameters, tag, flags 1, 2, 69, 2, 0x06 /* Public */, // slots: name, argc, parameters, tag, flags 6, 0, 74, 2, 0x08 /* Private */, 7, 0, 75, 2, 0x08 /* Private */, 8, 1, 76, 2, 0x08 /* Private */, 10, 0, 79, 2, 0x08 /* Private */, 11, 0, 80, 2, 0x08 /* Private */, 12, 0, 81, 2, 0x08 /* Private */, 13, 1, 82, 2, 0x08 /* Private */, 13, 0, 85, 2, 0x28 /* Private | MethodCloned */, 15, 0, 86, 2, 0x08 /* Private */, 16, 2, 87, 2, 0x08 /* Private */, // signals: parameters QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 4, 5, // slots: parameters QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Bool, 9, QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Bool, 14, QMetaType::Void, QMetaType::Void, QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 4, 5, 0 // eod }; void OptionsDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { OptionsDialog *_t = static_cast<OptionsDialog *>(_o); Q_UNUSED(_t) switch (_id) { case 0: _t->proxyIpChecks((*reinterpret_cast< QValidatedLineEdit*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 1: _t->enableOkButton(); break; case 2: _t->disableOkButton(); break; case 3: _t->setOkButtonState((*reinterpret_cast< bool(*)>(_a[1]))); break; case 4: _t->on_resetButton_clicked(); break; case 5: _t->on_okButton_clicked(); break; case 6: _t->on_cancelButton_clicked(); break; case 7: _t->showRestartWarning((*reinterpret_cast< bool(*)>(_a[1]))); break; case 8: _t->showRestartWarning(); break; case 9: _t->clearStatusLabel(); break; case 10: _t->doProxyIpChecks((*reinterpret_cast< QValidatedLineEdit*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; default: ; } } else if (_c == QMetaObject::IndexOfMethod) { int *result = reinterpret_cast<int *>(_a[0]); void **func = reinterpret_cast<void **>(_a[1]); { typedef void (OptionsDialog::*_t)(QValidatedLineEdit * , int ); if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&OptionsDialog::proxyIpChecks)) { *result = 0; } } } } const QMetaObject OptionsDialog::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_OptionsDialog.data, qt_meta_data_OptionsDialog, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} }; const QMetaObject *OptionsDialog::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *OptionsDialog::qt_metacast(const char *_clname) { if (!_clname) return Q_NULLPTR; if (!strcmp(_clname, qt_meta_stringdata_OptionsDialog.stringdata0)) return static_cast<void*>(const_cast< OptionsDialog*>(this)); return QDialog::qt_metacast(_clname); } int OptionsDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 11) qt_static_metacall(this, _c, _id, _a); _id -= 11; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 11) *reinterpret_cast<int*>(_a[0]) = -1; _id -= 11; } return _id; } // SIGNAL 0 void OptionsDialog::proxyIpChecks(QValidatedLineEdit * _t1, int _t2) { void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) }; QMetaObject::activate(this, &staticMetaObject, 0, _a); } QT_END_MOC_NAMESPACE
[ "dr4ge@mail.com" ]
dr4ge@mail.com
ad90afbe420ef2956183f3d96695cd960c6453bd
4675eae4a82ffe6a9672fd1a30d02c60a8ac4051
/ComputerGraphics/View/glwidget.h
ea21e82f8e2975470dee440671da5639e8e8fa06
[]
no_license
surajmunale/ComputerGraphics
c41d8e6f8daf9ad98f5270ba24102fa959f3ab33
17a642a12e304fb0e9fc1ef8813b7ca0aeb3aedc
refs/heads/master
2020-06-06T08:32:57.440032
2015-07-11T22:08:49
2015-07-11T22:08:49
29,292,890
0
0
null
null
null
null
UTF-8
C++
false
false
479
h
#ifndef GLWIDGET_H #define GLWIDGET_H #include <QTimer> #include <QGLWidget> class GLWidget : public QGLWidget { Q_OBJECT public: explicit GLWidget(QWidget *parent = 0); void initilizedGL(); void paintGL(); void resizeGL(int w,int h); void stopTimer(); void startTimer(); int clientWidth,clientHeight; int currentShape; public slots: private: QTimer timer; QPoint m_lastPoint; bool m_mouseClick; }; #endif // GLWIDGET_H
[ "surajmunale@gmail.com" ]
surajmunale@gmail.com
7b19ffa5189141824f67f1df4fe7dcab0593f6d0
e27bb38f003cd096ad4df0612391f7494c989b80
/小狗跑酷/ExperimentFinal--2017153009/Mesh_Painter.cpp
f926fd80d39b0a1501c60fd259b8f9c3064d7a1c
[]
no_license
wwwenb/Portfolio
d16dd9fc74adb143872b35708099ea8a04064bd4
37c308dbb578ef2e1bca37080212adb7125f7d40
refs/heads/master
2022-04-10T11:54:10.410255
2020-03-11T14:28:14
2020-03-11T14:28:14
null
0
0
null
null
null
null
GB18030
C++
false
false
13,186
cpp
#include "Mesh_Painter.h" #include "FreeImage.h" #include "Const_Head.h" using namespace std; Mesh_Painter::Mesh_Painter() { } Mesh_Painter::~Mesh_Painter() { } extern mat4 projection; void Mesh_Painter::drawLight(int i) { GLuint is_texture = glGetUniformLocation(this->program_all[i], "is_texture"); glUniform1i(is_texture, 1); //计算投影矩阵 float lx = lightPos[0]; float ly = lightPos[1]; float lz = lightPos[2]; mat4 shadowMatrix = mat4(-ly, 0, 0, 0, lx, 0, lz, 1, 0, 0, -ly, 0, 0, 0, 0, -ly); // 请阅读顶点着色器的内容,对照实验1的异同 mat4 shadowPMatrix = shadowMatrix; GLuint ModelView = glGetUniformLocation(this->program_all[i], "ModelView"); GLuint Projection = glGetUniformLocation(this->program_all[i], "Projection"); GLuint draw_color = glGetUniformLocation(this->program_all[i], "draw_color"); GLuint viewMatrix= glGetUniformLocation(this->program_all[i], "draw_color"); glUniformMatrix4fv(ModelView, 1, GL_TRUE, shadowPMatrix * this->m_my_meshes_[i]->modelMatrix); glUniformMatrix4fv(viewMatrix, 1, GL_TRUE, this->m_my_meshes_[i]->viewMatrix); mat4 proMatrix = projection; glUniformMatrix4fv(Projection, 1, GL_TRUE, proMatrix); // 将光源位置传入顶点着色器 GLuint lightPosID = glGetUniformLocation(this->program_all[i], "lightPos"); glUniform3fv(lightPosID, 1, lightPos); //将距离传入顶点着色器 GLuint distToLightID = glGetUniformLocation(this->program_all[i], "distToLight"); glUniform1f(distToLightID, distTL); glUniform4fv(draw_color, 1, BLACK); glDrawArrays(GL_TRIANGLES, 0, this->m_my_meshes_[i]->num_faces() * 3); } void Mesh_Painter::draw_meshes() { for (unsigned int i = 0; i < this->m_my_meshes_.size(); i++) { glUseProgram(this->program_all[i]);//指定使用渲染器,不同的模型可以指定不同的渲染器,这里我们使用的渲染器来自相同的文件,学生可以根据自己的爱好对不同的模型设定不同的渲染器 glBindVertexArray(this->vao_all[i]); //drawLight(i); glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, this->textures_all[i]);//该语句必须,否则将只使用同一个纹理进行绘制 GLuint is_texture = glGetUniformLocation(this->program_all[i], "is_texture"); glUniform1i(is_texture, 1); GLuint viewMatrixID = glGetUniformLocation(this->program_all[i], "viewMatrix"); glUniformMatrix4fv(viewMatrixID, 1, GL_TRUE, this->m_my_meshes_[i]->viewMatrix); GLuint modelMatrixID = glGetUniformLocation(this->program_all[i], "modelMatrix"); glUniformMatrix4fv(modelMatrixID, 1, GL_TRUE, this->m_my_meshes_[i]->modelMatrix); GLuint proMatrixID = glGetUniformLocation(this->program_all[i], "proMatrix"); glUniformMatrix4fv(proMatrixID, 1, GL_TRUE, this->m_my_meshes_[i]->proMatrix); glDrawArrays(GL_TRIANGLES, 0, this->m_my_meshes_[i]->num_faces() * 3); glUseProgram(0); } }; void Mesh_Painter::update_texture() { this->textures_all.clear(); for (unsigned int i = 0; i < this->m_my_meshes_.size(); i++) { GLuint temp; this->textures_all.push_back(temp); update_texture(i); } }; void Mesh_Painter::update_texture(int i) { GLuint textures; glGenTextures(1, &textures); //调用FreeImage生成纹理 load_texture_FreeImage(this->m_my_meshes_[i]->get_texture_file(), textures); //指定最大最小过滤方法,此两行代码必须添加,否则将无法显示纹理 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); //将生成的纹理传给shader glBindTexture(GL_TEXTURE_2D, textures); glUniform1i(glGetUniformLocation(this->program_all[i], "texture"), 0); this->textures_all[i]= textures; }; void Mesh_Painter::load_texture_FreeImage(std::string file_name, GLuint& m_texName) { //1 获取图片格式 FREE_IMAGE_FORMAT fifmt = FreeImage_GetFileType(file_name.c_str(), 0); //2 加载图片 FIBITMAP *dib = FreeImage_Load(fifmt, file_name.c_str(), 0); //3 转化为rgb 24色; dib = FreeImage_ConvertTo24Bits(dib); //4 获取数据指针 BYTE *pixels = (BYTE*)FreeImage_GetBits(dib); int width = FreeImage_GetWidth(dib); int height = FreeImage_GetHeight(dib); /** * 产生一个纹理Id,可以认为是纹理句柄,后面的操作将书用这个纹理id */ /** * 使用这个纹理id,或者叫绑定(关联) */ glBindTexture(GL_TEXTURE_2D, m_texName); /** * 指定纹理的放大,缩小滤波,使用线性方式,即当图片放大的时候插值方式 */ /** * 将图片的rgb数据上传给opengl. */ glTexImage2D( GL_TEXTURE_2D, //! 指定是二维图片 0, //! 指定为第一级别,纹理可以做mipmap,即lod,离近的就采用级别大的,远则使用较小的纹理 GL_RGB, //! 纹理的使用的存储格式 width, //! 宽度,老一点的显卡,不支持不规则的纹理,即宽度和高度不是2^n。 height, //! 宽度,老一点的显卡,不支持不规则的纹理,即宽度和高度不是2^n。 0, //! 是否的边 GL_BGR_EXT, //! 数据的格式,bmp中,windows,操作系统中存储的数据是bgr格式 GL_UNSIGNED_BYTE, //! 数据是8bit数据 pixels ); /** * 释放内存 */ FreeImage_Unload(dib); }; void Mesh_Painter::update_vertex_buffer() { this->vao_all.clear(); this->buffer_all.clear(); this->vPosition_all.clear(); this->vColor_all.clear(); this->vTexCoord_all.clear(); this->vNormal_all.clear(); for (unsigned int m_i = 0; m_i < this->m_my_meshes_.size(); m_i++) { GLuint temp; this->vao_all.push_back(temp); this->buffer_all.push_back(temp); this->vPosition_all.push_back(temp); this->vColor_all.push_back(temp); this->vTexCoord_all.push_back(temp); this->vNormal_all.push_back(temp); update_vertex_buffer(m_i); } }; void Mesh_Painter::update_vertex_buffer(int m_i) { int num_face = this->m_my_meshes_[m_i]->num_faces(); int num_vertex = this->m_my_meshes_[m_i]->num_vertices(); const VertexList& vertex_list = this->m_my_meshes_[m_i]->get_vertices(); const NormalList& normal_list = this->m_my_meshes_[m_i]->get_normals(); const FaceList& face_list = this->m_my_meshes_[m_i]->get_faces(); const STLVectorf& color_list = this->m_my_meshes_[m_i]->get_colors(); const VtList& vt_list = this->m_my_meshes_[m_i]->get_vts(); // Create a vertex array object GLuint vao; glGenVertexArrays(1, &vao); glBindVertexArray(vao); GLuint buffer; glGenBuffers(1, &buffer); glBindBuffer(GL_ARRAY_BUFFER, buffer); glBufferData(GL_ARRAY_BUFFER, sizeof(vec3) * num_face * 3 + sizeof(vec3) * num_face * 3 + sizeof(vec3) * num_face * 3 + sizeof(vec2) * num_face * 3 , NULL, GL_STATIC_DRAW) ; //获得足够的空间存储坐标,颜色,法线以及纹理坐标等等 vec3* points = new vec3[num_face * 3]; for (int i = 0; i < num_face; i++) { int index = face_list[3 * i]; points[3 * i] = vec3( (vertex_list[index * 3 + 0]), (vertex_list[index * 3 + 1]), (vertex_list[index * 3 + 2]) ); index = face_list[3 * i + 1]; points[3 * i + 1] = vec3( (vertex_list[index * 3 + 0]), (vertex_list[index * 3 + 1]), (vertex_list[index * 3 + 2]) ); index = face_list[3 * i + 2]; points[3 * i + 2] = vec3( (vertex_list[index * 3 + 0]), (vertex_list[index * 3 + 1]), (vertex_list[index * 3 + 2]) ); } GLintptr offset = 0; glBufferSubData(GL_ARRAY_BUFFER, offset, sizeof(vec3) * num_face * 3, points); //顶点坐标传给shader offset += sizeof(vec3) * num_face * 3; delete[] points; /************************************************************************/ /* */ /************************************************************************/ points = new vec3[num_face * 3]; for (int i = 0; i < num_face; i++) { int index = face_list[3 * i]; points[3 * i] = vec3( (normal_list[index * 3 + 0]), (normal_list[index * 3 + 1]), (normal_list[index * 3 + 2]) ); index = face_list[3 * i + 1]; points[3 * i + 1] = vec3( (normal_list[index * 3 + 0]), (normal_list[index * 3 + 1]), (normal_list[index * 3 + 2]) ); index = face_list[3 * i + 2]; points[3 * i + 2] = vec3( (normal_list[index * 3 + 0]), (normal_list[index * 3 + 1]), (normal_list[index * 3 + 2]) ); } glBufferSubData(GL_ARRAY_BUFFER, offset, sizeof(vec3) * num_face * 3, points); offset += sizeof(vec3) * num_face * 3; delete[] points; //法线传给shader /************************************************************************/ /* */ /************************************************************************/ points = new vec3[num_face * 3]; for (int i = 0; i < num_face; i++) { int index = face_list[3 * i]; points[3 * i] = vec3( (color_list[index * 3 + 0]), (color_list[index * 3 + 1]), (color_list[index * 3 + 2]) ); index = face_list[3 * i + 1]; points[3 * i + 1] = vec3( (color_list[index * 3 + 0]), (color_list[index * 3 + 1]), (color_list[index * 3 + 2]) ); index = face_list[3 * i + 2]; points[3 * i + 2] = vec3( (color_list[index * 3 + 0]), (color_list[index * 3 + 1]), (color_list[index * 3 + 2]) ); } glBufferSubData(GL_ARRAY_BUFFER, offset, sizeof(vec3) * num_face * 3, points); //颜色传给shader offset += sizeof(vec3) * num_face * 3; delete[] points; /************************************************************************/ /* */ /************************************************************************/ vec2* points_2 = new vec2[num_face * 3]; for (int i = 0; i < num_face; i++) { points_2[i * 3] = vec2(vt_list[i * 6 + 0], vt_list[i * 6 + 1]); points_2[i * 3 + 1] = vec2(vt_list[i * 6 + 2], vt_list[i * 6 + 3]); points_2[i * 3 + 2] = vec2(vt_list[i * 6 + 4], vt_list[i * 6 + 5]); } glBufferSubData(GL_ARRAY_BUFFER, offset, sizeof(vec2) * num_face * 3, points_2); offset += sizeof(vec2) * num_face * 3; delete points_2; //纹理坐标传给shader /************************************************************************/ /* */ /************************************************************************/ // Load shaders and use the resulting shader program // set up vertex arrays offset = 0; GLuint vPosition; vPosition = glGetAttribLocation(this->program_all[m_i], "vPosition"); glEnableVertexAttribArray(vPosition); glVertexAttribPointer(vPosition, 3, GL_FLOAT, GL_FALSE, 0, BUFFER_OFFSET(offset)); offset += sizeof(vec3) * num_face * 3; //指定vPosition在shader中使用时的位置 GLuint vNormal; vNormal = glGetAttribLocation(this->program_all[m_i], "vNormal"); glEnableVertexAttribArray(vNormal); glVertexAttribPointer(vNormal, 3, GL_FLOAT, GL_FALSE, 0, BUFFER_OFFSET(offset)); offset += sizeof(vec3) * num_face * 3; //指定vNormal在shader中使用时的位置 GLuint vColor; vColor = glGetAttribLocation(this->program_all[m_i], "vColor"); glEnableVertexAttribArray(vColor); glVertexAttribPointer(vColor, 3, GL_FLOAT, GL_FALSE, 0, BUFFER_OFFSET(offset)); offset += sizeof(vec3) * num_face * 3; //指定vColor在shader中使用时的位置 GLuint vTexCoord; vTexCoord = glGetAttribLocation(this->program_all[m_i], "vTexCoord"); glEnableVertexAttribArray(vTexCoord); glVertexAttribPointer(vTexCoord, 2, GL_FLOAT, GL_FALSE, 0, BUFFER_OFFSET(offset)); //指定vTexCoord在shader中使用时的位置 /************************************************************************/ /* */ /************************************************************************/ this->vao_all[m_i]= vao; this->buffer_all[m_i]= buffer; this->vPosition_all[m_i]= vPosition; this->vColor_all[m_i]= vColor; this->vTexCoord_all[m_i]= vTexCoord; this->vNormal_all[m_i]= vNormal; }; void Mesh_Painter::init_shaders(std::string vs, std::string fs) { this->program_all.clear(); for (unsigned int i = 0; i < this->m_my_meshes_.size(); i++) { GLuint program = InitShader(vs.c_str(), fs.c_str()); //指定使用的渲染器,不同的模型可以指定不同的渲染器,这里我们使用的渲染器来自相同的文件,学生可以根据自己的爱好对不同的模型设定不同的渲染器 this->program_all.push_back(program); } }; void Mesh_Painter::add_mesh(My_Mesh* m) { this->m_my_meshes_.push_back(m); //添加的同时分配空间 GLuint temp; this->textures_all.push_back(temp); this->program_all.push_back(temp); this->vao_all.push_back(temp); this->buffer_all.push_back(temp); this->vPosition_all.push_back(temp); this->vColor_all.push_back(temp); this->vTexCoord_all.push_back(temp); this->vNormal_all.push_back(temp); }; void Mesh_Painter::clear_mehs() { this->m_my_meshes_.clear(); this->textures_all.clear(); this->program_all.clear(); this->vao_all.clear(); this->buffer_all.clear(); this->vPosition_all.clear(); this->vColor_all.clear(); this->vTexCoord_all.clear(); this->vNormal_all.clear(); };
[ "2949588484@qq.com" ]
2949588484@qq.com
a4e304c5f745659b60b08ef5a47b7e624653c26d
c5690b5c463c1aa885fc517a729bf718b9cc1408
/295 Elevame/295 Elevame/Source.cpp
c01f334aa0d85ac54d518dde07d9d3be011ffbe2
[]
no_license
Alfon-III/FAL
94a32c13d3f8de4a6d89a3108953c6896016c706
3f56098f5a3494963272546717b91226b03e27a8
refs/heads/master
2020-12-23T16:03:34.834300
2020-02-07T23:20:45
2020-02-07T23:20:45
237,198,672
0
0
null
null
null
null
UTF-8
C++
false
false
604
cpp
#include <iostream> using namespace std; const int PRIME = 31543; long long int power(unsigned long long x, unsigned long long n); int main() { unsigned long long x, n;//x^n % PRIME cin >> x >> n; while (x != 0 && n != 0) { cout << power(x, n) << endl; cin >> x >> n; } return 0; } long long int power(unsigned long long x, unsigned long long n) { //x^10 = x ^5 * x^5 if (n == 0) { return 1; } //para asegurarse unsigned long long aux = power(x, n/2); unsigned long long ret = aux * aux; ret = ret % PRIME; if (n % 2 == 1){ ret = ret * x; ret = ret % PRIME; } return ret; }
[ "alfonsotercer@gmail.com" ]
alfonsotercer@gmail.com
2a391ad97e648f357b542eed66e9ff37b1b53fa4
1866597568ffbdbde41eafc27e66490620c1dc51
/Siv3D/Source/Siv3D/Script/Bind/Script_RectF.cpp
bd60b68ff4ad222957346b1e432296dc0c4f6591
[ "MIT" ]
permissive
mugwort-rc/OpenSiv3D
d670957067f2b6389b8e6428ad0243a93d165042
9f8a0a0682e5fd9bf5daea3c20895f83451f3355
refs/heads/master
2021-07-14T22:08:38.113124
2017-10-17T14:08:31
2017-10-17T14:08:31
107,277,360
0
0
null
2017-10-17T14:08:39
2017-10-17T14:08:38
null
UTF-8
C++
false
false
12,520
cpp
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2017 Ryo Suzuki // Copyright (c) 2016-2017 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D.hpp> # include "ScriptBind.hpp" namespace s3d { using namespace AngelScript; using ShapeType = RectF; static void ConstructD(double size, ShapeType* self) { new(self) ShapeType(size); } static void ConstructDD(double w, double h, ShapeType* self) { new(self) ShapeType(w, h); } static void ConstructDDD(double x, double y, double size, ShapeType* self) { new(self) ShapeType(x, y, size); } static void ConstructDDDD(double x, double y, double w, double h, ShapeType* self) { new(self) ShapeType(x, y, w, h); } static void ConstructV(const Vec2& size, ShapeType* self) { new(self) ShapeType(size); } static void ConstructVD(const Vec2& pos, double size, ShapeType* self) { new(self) ShapeType(pos, size); } static void ConstructVDD(const Vec2& pos, double w, double h, ShapeType* self) { new(self) ShapeType(pos, w, h); } static void ConstructVV(const Vec2& pos, const Vec2& size, ShapeType* self) { new(self) ShapeType(pos, size); } static void ConstructDDV(double x, double y, const Vec2& size, ShapeType* self) { new(self) ShapeType(x, y, size); } static const RectF& RectF_DrawCC(const ColorF& c0, const ColorF& c1, const RectF* thisPointer) { return thisPointer->draw(Arg::top = c0, Arg::bottom = c1); } void RegisterRectF(asIScriptEngine *engine) { const char TypeName[] = "RectF"; int32 r = 0; r = engine->RegisterObjectProperty(TypeName, "double x", asOFFSET(ShapeType, x)); assert(r >= 0); r = engine->RegisterObjectProperty(TypeName, "double y", asOFFSET(ShapeType, y)); assert(r >= 0); r = engine->RegisterObjectProperty(TypeName, "double w", asOFFSET(ShapeType, w)); assert(r >= 0); r = engine->RegisterObjectProperty(TypeName, "double h", asOFFSET(ShapeType, h)); assert(r >= 0); r = engine->RegisterObjectProperty(TypeName, "Vec2 pos", asOFFSET(ShapeType, pos)); assert(r >= 0); r = engine->RegisterObjectProperty(TypeName, "Vec2 size", asOFFSET(ShapeType, size)); assert(r >= 0); r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(double size)", asFUNCTION(ConstructD), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(double w, double h)", asFUNCTION(ConstructDD), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(double x, double y, double size)", asFUNCTION(ConstructDDD), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(double x, double y, double w, double h)", asFUNCTION(ConstructDDDD), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(const Vec2 &in)", asFUNCTION(ConstructV), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(const Vec2 &in, double size)", asFUNCTION(ConstructVD), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(const Vec2 &in, double w, double h)", asFUNCTION(ConstructVDD), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(const Vec2 &in, const Vec2 &in)", asFUNCTION(ConstructVV), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectBehaviour(TypeName, asBEHAVE_CONSTRUCT, "void f(double x, double y, const Vec2 &in)", asFUNCTION(ConstructDDV), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "Vec2 center() const", asMETHOD(ShapeType, center), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "Line top() const", asMETHOD(ShapeType, top), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "Line bottom() const", asMETHOD(ShapeType, bottom), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "Line left() const", asMETHOD(ShapeType, left), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "Line right() const", asMETHOD(ShapeType, right), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool opEquals(const RectF &in) const", asMETHOD(ShapeType, operator==), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF& setPos(double, double)", asMETHODPR(ShapeType, setPos, (double, double), ShapeType&), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF& setPos(const Vec2 &in)", asMETHODPR(ShapeType, setPos, (const Vec2&), ShapeType&), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF& setSize(double, double)", asMETHODPR(ShapeType, setSize, (double, double), ShapeType&), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF& setSize(const Vec2 &in)", asMETHODPR(ShapeType, setSize, (const Vec2&), ShapeType&), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF& setCenter(double, double)", asMETHODPR(ShapeType, setCenter, (double, double), ShapeType&), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF& setCenter(const Vec2 &in)", asMETHODPR(ShapeType, setCenter, (const Vec2&), ShapeType&), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF stretched(double) const", asMETHODPR(ShapeType, stretched, (double) const, ShapeType), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF stretched(double, double) const", asMETHODPR(ShapeType, stretched, (double, double) const, ShapeType), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF stretched(double, double, double, double) const", asMETHODPR(ShapeType, stretched, (double, double, double, double) const, ShapeType), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF movedBy(double, double) const", asMETHODPR(ShapeType, movedBy, (double, double) const, ShapeType), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF movedBy(const Vec2 &in) const", asMETHODPR(ShapeType, movedBy, (const Vec2&) const, ShapeType), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF& moveBy(double, double)", asMETHODPR(ShapeType, moveBy, (double, double), ShapeType&), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "RectF& moveBy(const Vec2 &in)", asMETHODPR(ShapeType, moveBy, (const Vec2&), ShapeType&), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool intersects(const Point& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<Point>)), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool intersects(const Vec2& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<Vec2>)), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool intersects(const Rect& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<Rect>)), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool intersects(const RectF& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<RectF>)), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool intersects(const Circle& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<Circle>)), asCALL_THISCALL); assert(r >= 0); //r = engine->RegisterObjectMethod(TypeName, "bool intersects(const Ellipse& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<Ellipse>)), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool intersects(const Line& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<Line>)), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool intersects(const Triangle& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<Triangle>)), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool intersects(const Quad& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<Quad>)), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool intersects(const RoundRect& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<RoundRect>)), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool intersects(const Polygon& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<Polygon>)), asCALL_THISCALL); assert(r >= 0); //r = engine->RegisterObjectMethod(TypeName, "bool intersects(const LineString& in) const", asSMethodPtr<sizeof(void (ShapeType::*)())>::Convert((void (ShapeType::*)())(&ShapeType::intersects<LineString>)), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool leftClicked() const", asMETHOD(ShapeType, leftClicked), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool leftPressed() const", asMETHOD(ShapeType, leftPressed), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool leftReleased() const", asMETHOD(ShapeType, leftReleased), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool rightClicked() const", asMETHOD(ShapeType, rightClicked), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool rightPressed() const", asMETHOD(ShapeType, rightPressed), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool rightReleased() const", asMETHOD(ShapeType, rightReleased), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "bool mouseOver() const", asMETHOD(ShapeType, mouseOver), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "const RectF& draw(const ColorF& in = Palette::White) const", asMETHODPR(ShapeType, draw, (const ColorF&) const, const ShapeType&), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "const RectF& draw(const ColorF& in, const ColorF& in) const", asFUNCTION(RectF_DrawCC), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "const RectF& drawFrame(double inner = 1.0, double outer = 0.0, const ColorF& in = Palette::White) const", asMETHODPR(ShapeType, drawFrame, (double, double, const ColorF&) const, const RectF&), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "void drawShadow(const Vec2&in offset, double blurRadius, double spread = 0.0, const ColorF&in color = ColorF(0.0, 0.5)) const", asMETHOD(ShapeType, drawShadow), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "Quad rotated(double angle) const", asMETHODPR(ShapeType, rotated, (double) const, Quad), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "Quad rotatedAt(double x, double y, double angle) const", asMETHODPR(ShapeType, rotatedAt, (double, double, double) const, Quad), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "Quad rotatedAt(const Vec2&in pos, double angle) const", asMETHODPR(ShapeType, rotatedAt, (const Vec2&, double) const, Quad), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "Quad shearedX(double vx) const", asMETHOD(ShapeType, shearedX), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod(TypeName, "Quad shearedY(double vy) const", asMETHOD(ShapeType, shearedY), asCALL_THISCALL); assert(r >= 0); } }
[ "reputeless@gmail.com" ]
reputeless@gmail.com
fe1f120df8b4aae17816c25a1a779ecac264f081
cd484c21d9d412d81ee3039072365fbb32947fce
/WBoard/Source/gui/WBDocumentNavigator.h
fd6833181b0b0ee5eab29945d2a70b63836dadc4
[]
no_license
drivestudy/WBoard
8c97fc4f01f58540718cd2c082562f9eab5761de
18959203a234944fb402b444462db76c6dd5b3c6
refs/heads/main
2023-08-01T01:41:04.303780
2021-09-09T04:56:46
2021-09-09T04:56:46
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,183
h
#ifndef WBDOCUMENTNAVIGATOR_H #define WBDOCUMENTNAVIGATOR_H #include <QResizeEvent> #include <QGraphicsView> #include <QGraphicsScene> #include <QMouseEvent> #include <QThread> #include "document/WBDocumentProxy.h" #include "document/WBDocumentContainer.h" #include "WBThumbnailWidget.h" #define NO_PAGESELECTED -1 class WBDocumentNavigator : public QGraphicsView { Q_OBJECT public: WBDocumentNavigator(QWidget* parent=0, const char* name="documentNavigator"); ~WBDocumentNavigator(); void setNbColumns(int nbColumns); int nbColumns(); void setThumbnailMinWidth(int width); int thumbnailMinWidth(); WBSceneThumbnailNavigPixmap* clickedThumbnail(const QPoint pos) const; public slots: void onScrollToSelectedPage(int index); void generateThumbnails(WBDocumentContainer* source); void updateSpecificThumbnail(int iPage); void longPressTimeout(); void mousePressAndHoldEvent(); protected: virtual void resizeEvent(QResizeEvent *event); virtual void mousePressEvent(QMouseEvent *event); virtual void mouseReleaseEvent(QMouseEvent *event); virtual void dragEnterEvent(QDragEnterEvent* event); virtual void dragMoveEvent(QDragMoveEvent* event); virtual void dropEvent(QDropEvent* event); signals: void mousePressAndHoldEventRequired(); void moveThumbnailRequired(int from, int to); private: void refreshScene(); int border(); /** The scene */ QGraphicsScene* mScene; /** The list of current thumbnails with labels*/ QList<WBImgTextThumbnailElement> mThumbsWithLabels; /** The current number of columns */ int mNbColumns; /** The current thumbnails width */ int mThumbnailWidth; /** The current thumbnails minimum width */ int mThumbnailMinWidth; /** The selected thumbnail */ WBSceneThumbnailNavigPixmap* mSelectedThumbnail; WBSceneThumbnailNavigPixmap* mLastClickedThumbnail; WBSceneThumbnailNavigPixmap* mDropSource; WBSceneThumbnailNavigPixmap* mDropTarget; QGraphicsRectItem *mDropBar; int mLongPressInterval; QTimer mLongPressTimer; QPoint mLastPressedMousePos; }; #endif // WBDOCUMENTNAVIGATOR_H
[ "574226409@qq.com" ]
574226409@qq.com
4cb62744b756854714c827dd55ab9ef8e5a73bbc
d5e05480b0a75cb130daa0d6e8a2d97020044775
/PC/Final/userpage.cpp
654716b73c9a13789cf8d51e058df2c2cf8ce732
[]
no_license
EmbeddedSoftwareCaiShuPeng/EquipmentManager
1b001549366fd1dd11044424a4af4d3e06e82ef0
a121dda927cfd52a9dd1771530a8a09832d0947b
refs/heads/master
2016-09-06T10:28:34.922570
2015-07-18T12:23:26
2015-07-18T12:23:26
39,287,392
1
5
null
2015-07-18T08:16:06
2015-07-18T05:07:57
C++
UTF-8
C++
false
false
6,080
cpp
#include "userpage.h" #include "userinfodialog.h" #include <QMessageBox> #include <QFont> #include <string> using std::string; UserPage::UserPage(QWidget *parent) : QWidget(parent) { userManager_ = new UserManager(); search_line = new QLineEdit(this); search_line->setGeometry(QRect(QPoint(30, 10), QSize(320, 30))); search_button = new QPushButton("搜索", this); search_button->setGeometry(QRect(QPoint(360, 10), QSize(90, 28))); search_button->setIcon(QIcon("image/search.jpg")); search_button->setStyleSheet("border:2px groove gray;border-radius:10px;padding:2px 4px;"); connect(search_button, SIGNAL(clicked()), this, SLOT(search_clicked())); add_button = new QPushButton("添加", this); add_button->setGeometry(QRect(QPoint(510, 100), QSize(100, 61))); //add_button->setIcon(QIcon("image/add.jpg")); add_button->setFont(QFont("Times",18,QFont::Bold)); add_button->setStyleSheet("border:2px groove gray;border-radius:10px;padding:2px 4px;"); connect(add_button, SIGNAL(clicked()), this, SLOT(add_clicked())); delete_button = new QPushButton("删除", this); delete_button->setGeometry(QRect(QPoint(510, 200), QSize(100, 61))); delete_button->setStyleSheet("border:2px groove gray;border-radius:10px;padding:2px 4px;"); //delete_button->setIcon(QIcon("image/delete.jpg")); delete_button->setFont(QFont("Times",18,QFont::Bold)); connect(delete_button, SIGNAL(clicked()), this, SLOT(delete_clicked())); edit_button = new QPushButton("编辑", this); edit_button->setGeometry(QRect(QPoint(510, 300), QSize(100, 61))); edit_button->setStyleSheet("border:2px groove gray;border-radius:10px;padding:2px 4px;"); //edit_button->setIcon(QIcon("image/edit.jpg")); edit_button->setFont(QFont("Times",18,QFont::Bold)); connect(edit_button, SIGNAL(clicked()), this, SLOT(edit_clicked())); info = new QTableWidget(this); info->setColumnCount(4); info->setRowCount(5); info->setGeometry(QRect(QPoint(30, 50), QSize(435, 370))); info->setEditTriggers(QAbstractItemView::NoEditTriggers); info->setSelectionBehavior(QAbstractItemView::SelectRows); info->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); QStringList headers; headers << "用户名" << "密码" << "学生Id" << "手机"; info->setHorizontalHeaderLabels(headers); table_init(); //info->setItem(0, 0, new QTableWidgetItem(QString("1"))); //info->setItem(0, 1, new QTableWidgetItem(tr("20100112"))); } void UserPage::table_init() { list<User> userList; int size, i; userList = userManager_->getAllUser(); size = userList.size(); info->setRowCount(size); for (i = 0; i < size; i++) { info->setItem(i, 0, new QTableWidgetItem(tr(userList.front().getName().data()))); info->setItem(i, 1, new QTableWidgetItem(tr(userList.front().getPassword().data()))); info->setItem(i, 2, new QTableWidgetItem(tr(userList.front().getStudentId().data()))); info->setItem(i, 3, new QTableWidgetItem(tr(userList.front().getStudentPhone().data()))); userList.pop_front(); } } void UserPage::add_clicked() { UserInfoDialog *dialog = new UserInfoDialog; User user; dialog->exec(); user.setName(dialog->getName()); user.setPassword(dialog->getPassword()); user.setStudentId(dialog->getStudentId()); user.setStudentPhone(dialog->getStudentPhone()); if (userManager_->addUser(user)) { QMessageBox::information(this,tr("hello"),tr("添加成功!")); table_init(); } else { QMessageBox::information(this,tr("hello"),tr("添加失败!\n")); } delete dialog; } void UserPage::delete_clicked() { User user; int row; row = info->currentRow(); if (row == -1) { QMessageBox::information(this,tr("hello"),tr("请选择一个目标行!\n")); return; } user.setName(info->item(row, 0)->text().toStdString()); user.setPassword(info->item(row, 1)->text().toStdString()); user.setStudentId(info->item(row, 2)->text().toStdString()); user.setStudentPhone(info->item(row, 3)->text().toStdString()); if (userManager_->deleteUser(user) ) { QMessageBox::information(this,tr("hello"),tr("删除成功!")); table_init(); }else { QMessageBox::information(this,tr("hello"),tr("删除失败!\n")); } } void UserPage::edit_clicked() { User user; UserInfoDialog *dialog = new UserInfoDialog; int row; row = info->currentRow(); if (row == -1) { QMessageBox::information(this,tr("hello"),tr("请选择一个目标行!\n")); return; } dialog->setName(info->item(row, 0)->text().toStdString()); dialog->setPassword(info->item(row, 1)->text().toStdString()); dialog->setStudentId(info->item(row, 2)->text().toStdString()); dialog->setStudentPhone(info->item(row, 3)->text().toStdString()); dialog->init(); dialog->exec(); user.setName(dialog->getName()); user.setPassword(dialog->getPassword()); user.setStudentId(dialog->getStudentId()); user.setStudentPhone(dialog->getStudentPhone()); if (userManager_->editUser(user) ) { QMessageBox::information(this,tr("hello"),tr("编辑成功!")); table_init(); }else { QMessageBox::information(this,tr("hello"),tr("编辑失败!")); } delete dialog; } void UserPage::search_clicked() { list<User> userList; int size, i; userList = userManager_->searchUser(search_line->text().toStdString()); size = userList.size(); info->setRowCount(size); for (i = 0; i < size; i++) { info->setItem(i, 0, new QTableWidgetItem(tr(userList.front().getName().data()))); info->setItem(i, 1, new QTableWidgetItem(tr(userList.front().getPassword().data()))); info->setItem(i, 2, new QTableWidgetItem(tr(userList.front().getStudentId().data()))); info->setItem(i, 3, new QTableWidgetItem(tr(userList.front().getStudentPhone().data()))); userList.pop_front(); } }
[ "631286250@qq.com" ]
631286250@qq.com
92002b729d278db42fdf27cbb3d23a030609a77e
53337a542cdacc0d3a1b6480f4fabdcdce274b21
/src/lib/common/Singleton.h
d1760af025a6a84ac4af5a2b1dd7b176df38155c
[]
no_license
kalineh/tiger
7bd4026c6c6bdb17aa17f198f140e839aa53ec92
211f41744132b6ed3c49a595945934bebed83449
refs/heads/master
2016-09-06T05:13:16.043459
2013-01-27T04:35:24
2013-01-27T04:35:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
898
h
#ifndef _INCLUDE_SINGLETON_H_ #define _INCLUDE_SINGLETON_H_ #include <cassert> /* Template class for all Singleton classes */ template <class T> class Singleton { public: static void CreateInst(); static void DestroyInst(); inline static bool InstExists(); inline static T *Get( void ); inline static T &Ref( void ); protected: static T *s_pInst; }; template <class T> void Singleton<T>::CreateInst() { if (!s_pInst) s_pInst = new T(); } template <class T> T & Singleton<T>::Ref( void ) { // Not instantiated yet! ASSERT( s_pInst != 0 ); return *s_pInst; } template <class T> void Singleton<T>::DestroyInst() { if (s_pInst != 0) { delete s_pInst; s_pInst = 0; } } template <class T> T *Singleton<T>::Get(void) { return s_pInst; } template <class T> bool Singleton<T>::InstExists() { return s_pInst != NULL; } template <class T> T *Singleton<T>::s_pInst = 0; #endif
[ "kalin.eh@gmail.com" ]
kalin.eh@gmail.com
33a8b13f6240558735c308d73e14ae21795bcb7c
7bce5384084790ef97f5295a60868b8ff0626381
/IRobot/IRobot/SZ_LOF_Vistor.cpp
ce23a4a0f376291675421fb4130821e3c9ae1e35
[]
no_license
spectrum968/iRobot
71c28ae548127f9d6b76686d412a6dd07754a5ad
fabb5bf06627eec1efb97868a12a4d0bc12fa68e
refs/heads/master
2022-06-19T15:06:36.962960
2014-01-06T05:18:24
2014-01-06T05:18:24
null
0
0
null
null
null
null
GB18030
C++
false
false
19,614
cpp
#include "StdAfx.h" #include "SZ_LOF_Vistor.h" #include "Cfg.h" #include "MidConn.h" #include "KcxpConn.h" #include "loginterface.h" #include "DBConnect.h" #include "public.h" extern CCfg *g_pCfg; extern CMidConn *g_pMidConn; extern CKcxpConn *g_pKcxpConn; extern CLoginterface *g_pLog; extern CDBConnect *g_pDBConn; CSZLOFVistor::CSZLOFVistor(void) { m_pMsg = NULL; m_nRowNum = 0; m_fOrder_RltFrzAmt = m_fOrder_RltFrzQty = 0; m_nShareBln_Old = m_nShareAvl_Old = m_nShareTrdFrz_Old = m_nShareOtd_Old = 0; m_fCptlBln_Old = m_fCptlAvl_Old = m_fCptlTrdFrz_Old = m_fCptlOutstanding_Old = m_fCptlOtdAvl_Old = 0; m_nShareBln_New = m_nShareAvl_New = m_nShareTrdFrz_New = m_nShareOtd_New = 0; m_fCptlBln_New = m_fCptlAvl_New = m_fCptlTrdFrz_New = m_fCptlOutstanding_New = m_fCptlOtdAvl_New = 0; strcpy_s(m_szServiceName, "深圳场内基金业务"); strcpy_s(m_szSecu_Code, "163406"); strcpy_s(m_szSecu_Intl, "163406"); strcpy_s(m_szQty, "10000"); strcpy_s(m_szPrice, "1"); // 沪A strcpy_s(m_szMarket_Board, "00"); strcpy_s(m_szTrdId, "7M"); // 申购 strcpy_s(m_szCurrency, "0"); } CSZLOFVistor::~CSZLOFVistor(void) { DELCLS(m_pMsg); m_nRowNum = 0; } BOOL CSZLOFVistor::Vistor() { BOOL bRet = TRUE; // 获取当前价格 GetSecuCurPrice(m_szSecu_Intl, m_szPrice); ExecTestCase(TestCase_1, "申购 7M"); ExecTestCase(TestCase_2, "赎回 7N"); ExecTestCase(TestCase_3, "认购 7J"); return bRet; } BOOL CSZLOFVistor::ResultStrToTable(char *pRetStr) { m_nRowNum = m_pKDGateWay->GetRecNum(); m_pMsg = new MID_403_ORDER_RET_MSG[m_nRowNum]; memset(m_pMsg, 0x00, sizeof(MID_403_ORDER_RET_MSG)*m_nRowNum); int nLen = strlen(pRetStr); char *p = new char[nLen+1]; strncpy(p, pRetStr, nLen); p[nLen] = '\0'; // 获得第二行,即数据开始行 char *q = m_pKDGateWay->GetNextLine(p); char *tmp = q; // 获取每行的数据 for (DWORD nRow=0; nRow<m_nRowNum; nRow++) { // 获取每列的长度 for (DWORD nCol=0; nCol<m_pKDGateWay->GetFieldNum(); nCol++) { while(tmp++) { if (*tmp == '|') { *tmp = '\0'; switch (nCol) { case 0: SERVICE_STRNCPY(szBizNo); break; case 1: SERVICE_STRNCPY(szOrderID); break; case 2: SERVICE_STRNCPY(szAccount); break; case 3: SERVICE_STRNCPY(szPrice); break; case 4: SERVICE_STRNCPY(szQty); break; case 5: SERVICE_STRNCPY(szOrderAmt); break; case 6: SERVICE_STRNCPY(szOrderFrzAmt); break; case 7: SERVICE_STRNCPY(szSeat); break; case 8: SERVICE_STRNCPY(szExtInst); break; case 9: SERVICE_STRNCPY(szExtAcc); break; case 10: SERVICE_STRNCPY(szExtSubAcc); break; case 11: SERVICE_STRNCPY(szExtFrzAmt); break; } q = tmp +1; break; } } } } return TRUE; } // 申购 BOOL CSZLOFVistor::TestCase_1() { BOOL bRet = TRUE; strcpy_s(m_szTrdId, "7M"); SaveCapital(); bRet = InitUserData(); if (bRet == FALSE) { return FALSE; } // 发送数据 char szTemp[2048] = {0}; if (g_pCfg->GetTestMode() == USE_MID) { sprintf_s(szTemp,"403|%s|%s|%s|%s||%s|%s|%s|%s||||||||||||", g_pCfg->GetCustID(), m_szMarket_Board, g_pCfg->GetSecu_Acc_SZA(), g_pCfg->GetAccount(), m_szSecu_Code, m_szTrdId, m_szPrice, m_szQty); bRet = SendMidMsg(&szTemp[0]); } else { // 拼接发送给KCXP的命令字符串 sprintf_s(szTemp,"BEGIN:L0303001:23-11:00:22-576498 [_CA=2.3&_ENDIAN=0&F_OP_USER=%s&F_OP_ROLE=2&F_SESSION=%s&F_OP_SITE=999999999999999&F_OP_BRANCH=%s&F_CHANNEL=0" "&CUSTOMER=%s&MARKET=%c&BOARD=%c&SECU_ACC=%s&ACCOUNT=%s&SECU_INTL=%s&SERIAL_NO=-1&DELIST_CHANNEL=0&TRD_ID=%s&PRICE=%s&QTY=%s&SEAT=%s]", g_pCfg->GetOpId().GetBuffer(), g_pKcxpConn->GetSession(), g_pCfg->GetBranch().GetBuffer(), g_pCfg->GetCustID().GetBuffer(), m_szMarket_Board[0], m_szMarket_Board[1], g_pCfg->GetSecu_Acc_SZA(), g_pCfg->GetAccount().GetBuffer(), m_szSecu_Intl, m_szTrdId, m_szPrice, m_szQty, g_pCfg->GetSZA_BIND_SEAT()); if (TRUE == (bRet = SendKcxpMsg(&szTemp[0])) && m_nRowNum > 0) { ParseKcxpRetMsg(); } } if (bRet == FALSE) { return FALSE; } // 休眠,等待数据库更新 Sleep(g_pCfg->GetRefreshDBGap()); bRet = ChkData(); return bRet; } // 市价买入: 五档即时成交剩余撤销 VB BOOL CSZLOFVistor::TestCase_2() { BOOL bRet = TRUE; strcpy_s(m_szTrdId, "7N"); SaveShares(); bRet = InitUserData(); if (bRet == FALSE) { return FALSE; } // 发送数据 char szTemp[2048] = {0}; if (g_pCfg->GetTestMode() == USE_MID) { sprintf_s(szTemp,"403|%s|%s|%s|%s||%s|%s|%s|%s||||||||||||", g_pCfg->GetCustID(), m_szMarket_Board, g_pCfg->GetSecu_Acc_SZA(), g_pCfg->GetAccount(), m_szSecu_Intl, m_szTrdId, m_szPrice, m_szQty); bRet = SendMidMsg(&szTemp[0]); } else { // 拼接发送给KCXP的命令字符串 sprintf_s(szTemp,"BEGIN:L0303001:23-11:00:22-576498 [_CA=2.3&_ENDIAN=0&F_OP_USER=%s&F_OP_ROLE=2&F_SESSION=%s&F_OP_SITE=999999999999999&F_OP_BRANCH=%s&F_CHANNEL=0" "&CUSTOMER=%s&MARKET=%c&BOARD=%c&SECU_ACC=%s&ACCOUNT=%s&SECU_INTL=%s&SERIAL_NO=-1&DELIST_CHANNEL=0&TRD_ID=%s&PRICE=%s&QTY=%s&SEAT=%s]", g_pCfg->GetOpId().GetBuffer(), g_pKcxpConn->GetSession(), g_pCfg->GetBranch().GetBuffer(), g_pCfg->GetCustID().GetBuffer(), m_szMarket_Board[0], m_szMarket_Board[1], g_pCfg->GetSecu_Acc_SZA(), g_pCfg->GetAccount().GetBuffer(), m_szSecu_Intl, m_szTrdId, m_szPrice, m_szQty, g_pCfg->GetSZA_BIND_SEAT()); if (TRUE == (bRet = SendKcxpMsg(&szTemp[0])) && m_nRowNum > 0) { ParseKcxpRetMsg(); } } if (bRet == FALSE) { return FALSE; } // 休眠,等待数据库更新 Sleep(g_pCfg->GetRefreshDBGap()); bRet = ChkData(); return bRet; } // 市价买入: 五档即时成交剩余转限 UB BOOL CSZLOFVistor::TestCase_3() { BOOL bRet = TRUE; strcpy_s(m_szTrdId, "UB"); SaveCapital(); bRet = InitUserData(); if (bRet == FALSE) { return FALSE; } // 发送数据 char szTemp[2048] = {0}; if (g_pCfg->GetTestMode() == USE_MID) { sprintf_s(szTemp,"403|%s|%s|%s|%s||%s|%s|%s|%s||||||||||||", g_pCfg->GetCustID(), m_szMarket_Board, g_pCfg->GetSecu_Acc_SHA(), g_pCfg->GetAccount(), m_szSecu_Code, m_szTrdId, m_szPrice, m_szQty); bRet = SendMidMsg(&szTemp[0]); } else { // 拼接发送给KCXP的命令字符串 sprintf_s(szTemp,"BEGIN:L0303001:23-11:00:22-576498 [_CA=2.3&_ENDIAN=0&F_OP_USER=%s&F_OP_ROLE=2&F_SESSION=%s&F_OP_SITE=999999999999999&F_OP_BRANCH=%s&F_CHANNEL=0" "&CUSTOMER=%s&MARKET=%c&BOARD=%c&SECU_ACC=%s&ACCOUNT=%s&SECU_INTL=%s&SERIAL_NO=-1&DELIST_CHANNEL=0&TRD_ID=%s&PRICE=%s&QTY=%s&SEAT=%s]", g_pCfg->GetOpId().GetBuffer(), g_pKcxpConn->GetSession(), g_pCfg->GetBranch().GetBuffer(), g_pCfg->GetCustID().GetBuffer(), m_szMarket_Board[0], m_szMarket_Board[1], g_pCfg->GetSecu_Acc_SHA(), g_pCfg->GetAccount().GetBuffer(), m_szSecu_Intl, m_szTrdId, m_szPrice, m_szQty, g_pCfg->GetSHA_BIND_SEAT()); if (TRUE == (bRet = SendKcxpMsg(&szTemp[0])) && m_nRowNum > 0) { ParseKcxpRetMsg(); } } if (bRet == FALSE) { return FALSE; } // 休眠,等待数据库更新 Sleep(g_pCfg->GetRefreshDBGap()); bRet = ChkData(); return bRet; } /* * 获取以下数据 1. Shares表 1.1 股份余额 1.2 股份可用 1.3 交易冻结 1.4 在途数量 2. Capitals表 2.1 资金余额 2.2 资金可用 2.3 交易冻结 2.4 在途资金 2.5 在途可用 */ BOOL CSZLOFVistor::InitUserData() { _variant_t TheValue; //VARIANT数据类型 char szTmp[100] = {0}; // 1. 获取Shares表 CString strSql; strSql.Format("select * from shares where account = %s and secu_intl = %s", g_pCfg->GetAccount().GetBuffer(), m_szSecu_Intl); BSTR bstrSQL = strSql.AllocSysString(); try { _RecordsetPtr pRecordSet; pRecordSet.CreateInstance(__uuidof(Recordset)); if (!g_pDBConn->QueryData(bstrSQL, pRecordSet)) return FALSE; // 客户当前没有持仓此股票 if (pRecordSet->adoEOF) { m_nShareBln_Old = m_nShareAvl_Old = m_nShareTrdFrz_Old = m_nShareOtd_Old = 0; } while(!pRecordSet->adoEOF) { // 1.1 股份余额 DB_GET_VALUE_INT("SHARE_BLN", m_nShareBln_Old); // 1.2 股份可用 DB_GET_VALUE_INT("SHARE_AVL", m_nShareAvl_Old); // 1.3 交易冻结 DB_GET_VALUE_INT("SHARE_TRD_FRZ", m_nShareTrdFrz_Old); // 1.4 在途数量 DB_GET_VALUE_INT("SHARE_OTD", m_nShareOtd_Old); pRecordSet->MoveNext(); } pRecordSet->Close(); } catch(_com_error &e) { CString strMsg; strMsg.Format(_T("错误描述:%s\n错误消息%s"), (LPCTSTR)e.Description(), (LPCTSTR)e.ErrorMessage()); g_pLog->WriteRunLogEx(__FILE__,__LINE__,strMsg.GetBuffer()); return FALSE; } // 2. 获取Capitals表 try { strSql.Format("select * from capital where account = %s and currency = %s", g_pCfg->GetAccount().GetBuffer(), m_szCurrency); bstrSQL = strSql.AllocSysString(); _RecordsetPtr pRecordSet; pRecordSet.CreateInstance(__uuidof(Recordset)); if (!g_pDBConn->QueryData(bstrSQL, pRecordSet)) return FALSE; if (pRecordSet->adoEOF) { // 数据库返回的结果为空 pRecordSet->Close(); g_pLog->WriteRunLogEx(__FILE__,__LINE__, "获取Capitals表数据失败!"); return FALSE; } while(!pRecordSet->adoEOF) { // 2.1 资金余额 DB_GET_VALUE_FLOAT("BALANCE", m_fCptlBln_Old); // 2.2 资金可用 DB_GET_VALUE_FLOAT("AVAILABLE", m_fCptlAvl_Old); // 2.3 交易冻结 DB_GET_VALUE_FLOAT("TRD_FRZ", m_fCptlTrdFrz_Old); // 2.4 在途资金 DB_GET_VALUE_FLOAT("OUTSTANDING", m_fCptlOutstanding_Old); // 2.5 在途可用 DB_GET_VALUE_FLOAT("OTD_AVL", m_fCptlOtdAvl_Old); pRecordSet->MoveNext(); } pRecordSet->Close(); } catch(_com_error &e) { CString strMsg; strMsg.Format(_T("错误描述:%s\n错误消息%s"), (LPCTSTR)e.Description(), (LPCTSTR)e.ErrorMessage()); g_pLog->WriteRunLogEx(__FILE__,__LINE__,strMsg.GetBuffer()); return FALSE; } return TRUE; } BOOL CSZLOFVistor::UpdateUserData() { _variant_t TheValue; //VARIANT数据类型 char szTmp[100] = {0}; // 1. 获取Shares表 CString strSql; strSql.Format("select * from shares where account = %s and secu_intl = %s", g_pCfg->GetAccount().GetBuffer(), m_szSecu_Intl); BSTR bstrSQL = strSql.AllocSysString(); try { _RecordsetPtr pRecordSet; pRecordSet.CreateInstance(__uuidof(Recordset)); if (!g_pDBConn->QueryData(bstrSQL, pRecordSet)) return FALSE; while(!pRecordSet->adoEOF) { // 1.1 股份余额 DB_GET_VALUE_INT("SHARE_BLN", m_nShareBln_New); // 1.2 股份可用 DB_GET_VALUE_INT("SHARE_AVL", m_nShareAvl_New); // 1.3 交易冻结 DB_GET_VALUE_INT("SHARE_TRD_FRZ", m_nShareTrdFrz_New); // 1.4 在途数量 DB_GET_VALUE_INT("SHARE_OTD", m_nShareOtd_New); pRecordSet->MoveNext(); } pRecordSet->Close(); } catch(_com_error &e) { CString strMsg; strMsg.Format(_T("错误描述:%s\n错误消息%s"), (LPCTSTR)e.Description(), (LPCTSTR)e.ErrorMessage()); g_pLog->WriteRunLogEx(__FILE__,__LINE__,strMsg.GetBuffer()); return FALSE; } // 2. 获取Capitals表 try { strSql.Format("select * from capital where account = %s and currency = %s", g_pCfg->GetAccount().GetBuffer(), m_szCurrency); bstrSQL = strSql.AllocSysString(); _RecordsetPtr pRecordSet; pRecordSet.CreateInstance(__uuidof(Recordset)); if (!g_pDBConn->QueryData(bstrSQL, pRecordSet)) return FALSE; if (pRecordSet->adoEOF) { // 数据库返回的结果为空 pRecordSet->Close(); g_pLog->WriteRunLogEx(__FILE__,__LINE__,"获取Capitals表数据失败!"); return FALSE; } while(!pRecordSet->adoEOF) { // 2.1 资金余额 DB_GET_VALUE_FLOAT("BALANCE", m_fCptlBln_New); // 2.2 资金可用 DB_GET_VALUE_FLOAT("AVAILABLE", m_fCptlAvl_New); // 2.3 交易冻结 DB_GET_VALUE_FLOAT("TRD_FRZ", m_fCptlTrdFrz_New); // 2.4 在途资金 DB_GET_VALUE_FLOAT("OUTSTANDING", m_fCptlOutstanding_New); // 2.5 在途可用 DB_GET_VALUE_FLOAT("OTD_AVL", m_fCptlOtdAvl_New); pRecordSet->MoveNext(); } pRecordSet->Close(); } catch(_com_error &e) { CString strMsg; strMsg.Format(_T("错误描述:%s\n错误消息%s"), (LPCTSTR)e.Description(), (LPCTSTR)e.ErrorMessage()); g_pLog->WriteRunLogEx(__FILE__,__LINE__,strMsg.GetBuffer()); return FALSE; } return TRUE; } BOOL CSZLOFVistor::GetOrderData() { CTime tm=CTime::GetCurrentTime(); CString strDate = tm.Format("%Y%m%d"); BOOL bRet = TRUE; try { // 1.1 检查柜台Orders表中的数据是否与委托一致 CString strSql; if (strcmp(m_szTrdId, "7M") == 0) { strSql.Format("select * from orders where trd_date = %s and trd_id = '%s'and order_id = '%s'" " and account = %s and secu_intl = %s and order_qty = %s and order_amt = %s and order_frz_amt = %s and rlt_frz_amt = %s", strDate, m_szTrdId, m_pMsg[0].szOrderID, m_pMsg[0].szAccount, m_szSecu_Intl, m_szQty, m_szQty, m_szQty, m_szQty); } else if (strcmp(m_szTrdId, "7N") == 0) { strSql.Format("select * from orders where trd_date = %s and trd_id = '%s'and order_id = '%s'" " and account = %s and secu_intl = %s and order_qty = %s and order_amt = %s and order_frz_amt = 0 and rlt_frz_qty = %s", strDate, m_szTrdId, m_pMsg[0].szOrderID, m_pMsg[0].szAccount, m_szSecu_Intl, m_szQty, m_szQty, m_szQty, m_szQty); } BSTR bstrSQL = strSql.AllocSysString(); _RecordsetPtr pRecordSet; pRecordSet.CreateInstance(__uuidof(Recordset)); if (!g_pDBConn->QueryData(bstrSQL, pRecordSet)) return FALSE; _variant_t TheValue; //VARIANT数据类型 char szTmp[100] = {0}; if (pRecordSet->adoEOF) { // 数据库返回的结果为空 g_pLog->WriteRunLog(CHKPNT_MODE, LOG_WARN, "Chk 1.1 Fail!"); pRecordSet->Close(); return FALSE; } while(!pRecordSet->adoEOF) { DB_GET_VALUE_FLOAT("RLT_FRZ_AMT", m_fOrder_RltFrzAmt); DB_GET_VALUE_FLOAT("RLT_FRZ_QTY", m_fOrder_RltFrzQty); pRecordSet->MoveNext(); } pRecordSet->Close(); } catch(_com_error &e) { CString strMsg; strMsg.Format(_T("错误描述:%s\n错误消息%s"), (LPCTSTR)e.Description(), (LPCTSTR)e.ErrorMessage()); g_pLog->WriteRunLogEx(__FILE__,__LINE__,strMsg.GetBuffer()); bRet = FALSE; } return bRet; } BOOL CSZLOFVistor::ChkData() { BOOL bRet = TRUE; // 1.1.检查柜台Orders表中的数据是否与委托一致 if (!(bRet = GetOrderData())) { // 获取Matcing表数据失败 return bRet; } // 获取客户最新的股份和资金数据 if (!UpdateUserData()) { g_pLog->WriteRunLog(CHKPNT_MODE, LOG_WARN, "更新测试数据失败!"); bRet = FALSE; } else { // 1.2.检查captial表中【资金余额】不变 if (m_fCptlBln_Old != m_fCptlBln_New) { bRet = FALSE; g_pLog->WriteRunLog(CHKPNT_MODE, LOG_WARN, "Chk 1.2 Fail!"); } if (strcmp(m_szTrdId, "7M") == 0) { /* 申购 检查以下信息 1.1.检查柜台Orders表中的数据是否与委托一致 1.2.检查captial表中【资金余额】 1.3.检查captial表中【资金可用】 1.4.检查captial表中【交易冻结】 */ // 1.3.检查captial表中【资金可用 AVAILABLE】减少 应该等于 冻结金额 // 由于精度问题,允许1以内的差异 if (abs(CutFloatPnt(m_fCptlAvl_Old - m_fCptlAvl_New) - m_fOrder_RltFrzAmt) > 1) { bRet = FALSE; g_pLog->WriteRunLog(CHKPNT_MODE, LOG_WARN, "Chk 1.3 Fail!"); } // 1.4.检查captial表中【交易冻结 TRD_FRZ】增加 应该等于 冻结金额 if (abs(CutFloatPnt( m_fCptlTrdFrz_New - m_fCptlTrdFrz_Old) - m_fOrder_RltFrzAmt) > 1) { bRet = FALSE; g_pLog->WriteRunLog(CHKPNT_MODE, LOG_WARN, "Chk 1.4 Fail!"); } } else if (strcmp(m_szTrdId, "7N") == 0) { /* 赎回 检查以下信息 1.3.检查Shares表中【股份余额】不变 1.4.检查Shares表中【股份可用】减少 委托数量 1.5.检查Shares表中【股份冻结】增加 委托数量 */ if (m_nShareBln_New != m_nShareBln_Old) { bRet = FALSE; g_pLog->WriteRunLog(CHKPNT_MODE, LOG_WARN, "Chk 1.3 Fail!"); } if (abs(m_nShareAvl_New - m_nShareAvl_Old) != m_fOrder_RltFrzQty) { bRet = FALSE; g_pLog->WriteRunLog(CHKPNT_MODE, LOG_WARN, "Chk 1.4 Fail!"); } if (abs(m_nShareTrdFrz_New - m_nShareTrdFrz_Old) != m_fOrder_RltFrzQty) { bRet = FALSE; g_pLog->WriteRunLog(CHKPNT_MODE, LOG_WARN, "Chk 1.5 Fail!"); } } else if (strcmp(m_szTrdId, "7J") == 0) { // 认购 } } return bRet; } // 客户资金蓝补 BOOL CSZLOFVistor::SaveCapital() { // 资金余额蓝补1W, 资金可用蓝补1W // 发送数据 char szTemp[2048] = {0}; BOOL bRet = TRUE; // 拼接发送给KCXP的命令字符串 sprintf_s(szTemp,"BEGIN:L0107022:04-14:42:45-051781 [_CA=2.3&_ENDIAN=0&F_OP_USER=%s&F_OP_ROLE=2&F_SESSION=%s&F_OP_SITE=00256497d99e&F_OP_BRANCH=%s&F_CHANNEL=0" "&ACC_USER=%s&ACC_USER_ROLE=1&ACCOUNT=%s&CURRENCY=%s&BLN_ADJUST_AMT=10000.00&AVL_ADJUST_AMT=10000.00&OP_REMARK=]", g_pCfg->GetOpId().GetBuffer(), g_pKcxpConn->GetSession(), g_pCfg->GetBranch().GetBuffer(), g_pCfg->GetCustID().GetBuffer(), g_pCfg->GetAccount().GetBuffer(), m_szCurrency); if (TRUE == (bRet = SendKcxpMsg(&szTemp[0])) && m_nRowNum > 0) { ParseKcxpRetMsg(); } // 休眠,等待数据库更新 Sleep(g_pCfg->GetRefreshDBGap()); return bRet; } BOOL CSZLOFVistor::SaveShares() { // 发送数据 char szTemp[2048] = {0}; BOOL bRet = TRUE; // 拼接发送给KCXP的命令字符串 sprintf_s(szTemp,"BEGIN:L0301009:04-10:03:27-577242 [_CA=2.3&_ENDIAN=0&F_OP_USER=%s&F_OP_ROLE=2&F_SESSION=%s&F_OP_SITE=00256497d99e&F_OP_BRANCH=%s&F_CHANNEL=0" "&OPER_FLAG=1&CUSTOMER=%s&MARKET=%c&BOARD=%c&SECU_ACC=%s&ACCOUNT=%s&SECU_INTL=%s&SEAT=%s&EXT_INST=0&CQLB=0--存入股份&QTY=%s&AVG_PRICE=%s&OP_REMARK=]", g_pCfg->GetOpId().GetBuffer(), g_pKcxpConn->GetSession(), g_pCfg->GetBranch().GetBuffer(), g_pCfg->GetCustID().GetBuffer(), m_szMarket_Board[0], m_szMarket_Board[1], g_pCfg->GetSecu_Acc_SZA(), g_pCfg->GetAccount().GetBuffer(), m_szSecu_Intl, g_pCfg->GetSZA_BIND_SEAT(), m_szQty, m_szPrice); // TODO:由于L0301009 执行成功,也返回FALSE,因此返回值无效, 此函数永远返回TRUE if (TRUE == (bRet = SendKcxpMsg(&szTemp[0])) && m_nRowNum > 0) { ParseKcxpRetMsg(); } // 休眠,等待数据库更新 Sleep(g_pCfg->GetRefreshDBGap()); return bRet; } void CSZLOFVistor::ParseKcxpRetMsg() { m_pMsg = new MID_403_ORDER_RET_MSG[m_nRowNum]; memset(m_pMsg, 0x00, sizeof(MID_403_ORDER_RET_MSG)*m_nRowNum); //取结果集数据 int iRetCode = KCBP_MSG_OK; char szTemp[512] = {0}; if (iRetCode = m_pKcxpConn->RsMore() == KCBP_MSG_OK) { int nRow = 0; while(nRow < m_nRowNum) { if(m_pKcxpConn->RsFetchRow() != KCBP_MSG_OK) { break; } SERVICE_KCXP_STRNCPY("BIZ_NO", szBizNo); SERVICE_KCXP_STRNCPY("ORDER_ID", szOrderID); SERVICE_KCXP_STRNCPY("ACCOUNT", szAccount); SERVICE_KCXP_STRNCPY("PRICE", szPrice); SERVICE_KCXP_STRNCPY("QTY", szQty); SERVICE_KCXP_STRNCPY("ORDER_AMT", szOrderAmt); SERVICE_KCXP_STRNCPY("ORDER_FRZ_AMT", szOrderFrzAmt); SERVICE_KCXP_STRNCPY("SEAT", szSeat); SERVICE_KCXP_STRNCPY("EXT_INST", szExtInst); SERVICE_KCXP_STRNCPY("EXT_ACC", szExtAcc); SERVICE_KCXP_STRNCPY("EXT_SUB_ACC", szExtSubAcc); SERVICE_KCXP_STRNCPY("EXT_FRZ_AMT", szExtFrzAmt); nRow++; } } }
[ "e_kxc@hotmail.com" ]
e_kxc@hotmail.com
3ddb26dc9ddcc95a629193b79b701b22b46ab73c
50cdafece59f39df98500720a3f2ad16feed6c16
/source/NanairoCore/Material/SurfaceModel/fresnel-inl.hpp
b3dad879475894f25cab4ba3ee3ecfe181a46711
[ "MIT" ]
permissive
alexptss/Nanairo
9b0dc41b3bac04e71c404c98d15b0c0f3a3c83ad
b96c0fd18078015bccc56ac636bcdfe00bcd4a0c
refs/heads/master
2021-07-23T08:03:22.167231
2017-07-17T10:17:12
2017-07-17T10:17:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,913
hpp
/*! \file fresnel-inl.hpp \author Sho Ikeda Copyright (c) 2015-2016 Sho Ikeda This software is released under the MIT License. http://opensource.org/licenses/mit-license.php */ #ifndef NANAIRO_FRESNEL_INL_HPP #define NANAIRO_FRESNEL_INL_HPP #include "fresnel.hpp" // Standard C++ library #include <tuple> #include <utility> // Zisc #include "zisc/error.hpp" #include "zisc/math.hpp" #include "zisc/utility.hpp" // Nanairo #include "NanairoCore/nanairo_core_config.hpp" #include "NanairoCore/Color/spectral_distribution.hpp" #include "NanairoCore/Geometry/vector.hpp" #include "NanairoCore/Sampling/sampled_spectra.hpp" namespace nanairo { /*! \details No detailed. */ inline Vector3 Fresnel::calcReflectionDirection(const Vector3& vin, const Vector3& normal) noexcept { const Float cos_ni = -zisc::dot(normal, vin); const auto vout = vin + (2.0 * cos_ni) * normal; ZISC_ASSERT(isUnitVector(vout), "The vout isn't unit vector."); return vout; } /*! \details No detailed. */ inline Vector3 Fresnel::calcRefractionDirection(const Vector3& vin, const Vector3& normal, const Float n, const Float g) noexcept { const Float cos_ni = -zisc::dot(normal, vin); const auto vout = (vin + (cos_ni - g) * normal) * zisc::invert(n); ZISC_ASSERT(isUnitVector(vout), "The vout isn't unit vector."); return vout; } /*! \details No detailed. */ inline std::tuple<bool, Float> Fresnel::evalG(const Float n, const Float cos_theta) noexcept { const Float g2 = zisc::power<2>(n) + zisc::power<2>(cos_theta) - 1.0; return (0.0 < g2) ? std::make_tuple(true, zisc::sqrt(g2)) : std::make_tuple(false, 0.0); } /*! */ inline Float Fresnel::evalFresnel(const Float n, const Float cos_theta) noexcept { const auto g_result = evalG(n, cos_theta); const bool is_perfect_reflection = !std::get<0>(g_result); const Float g = std::get<1>(g_result); const Float fresnel = (!is_perfect_reflection) ? evalFresnelFromG(cos_theta, g) : 1.0; // Perfect reflection ZISC_ASSERT(zisc::isInClosedBounds(fresnel, 0.0, 1.0), "The fresnel isn't [0, 1]."); return fresnel; } /*! \details No detailed. */ inline Float Fresnel::evalFresnelFromG(const Float cos_theta, const Float g) noexcept { const Float a = g + cos_theta, b = g - cos_theta; const Float tmp1 = b / a, tmp2 = (cos_theta * a - 1.0) / (cos_theta * b + 1.0); const Float fresnel = (0.5 * zisc::power<2>(tmp1)) * (1.0 + zisc::power<2>(tmp2)); ZISC_ASSERT(zisc::isInClosedBounds(fresnel, 0.0, 1.0), "The fresnel isn't [0, 1]."); return fresnel; } } // namespace refelct #endif // NANAIRO_FRESNEL_INL_HPP
[ "zin.kosmos.1190@gmail.com" ]
zin.kosmos.1190@gmail.com
6e4d690668f62e4b73fe1846b6a0e568058b2418
3f940c0ee29d2749c56e6fd9f3e6d6ba5905f72e
/src/compiler/effect-control-linearizer.h
a290fd41e267c4e0723c35a8a3a8df0186f3ffde
[ "BSD-3-Clause", "bzip2-1.0.6", "SunPro" ]
permissive
gidgreen/v8
2599750c042dee32f83a93b8ee93acad59adc47a
c7c3571956fd02e94e441448e298f0822ef54266
refs/heads/master
2020-03-29T05:30:47.025138
2018-09-19T17:41:30
2018-09-20T09:14:25
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,564
h
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_ #define V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_ #include "src/compiler/common-operator.h" #include "src/compiler/graph-assembler.h" #include "src/compiler/node.h" #include "src/compiler/simplified-operator.h" #include "src/globals.h" namespace v8 { namespace internal { // Forward declarations. class Callable; class Zone; namespace compiler { class CommonOperatorBuilder; class SimplifiedOperatorBuilder; class MachineOperatorBuilder; class JSGraph; class Graph; class Schedule; class SourcePositionTable; class NodeOriginTable; class V8_EXPORT_PRIVATE EffectControlLinearizer { public: enum MaskArrayIndexEnable { kDoNotMaskArrayIndex, kMaskArrayIndex }; EffectControlLinearizer(JSGraph* graph, Schedule* schedule, Zone* temp_zone, SourcePositionTable* source_positions, NodeOriginTable* node_origins, MaskArrayIndexEnable mask_array_index); void Run(); private: void ProcessNode(Node* node, Node** frame_state, Node** effect, Node** control); bool TryWireInStateEffect(Node* node, Node* frame_state, Node** effect, Node** control); Node* LowerChangeBitToTagged(Node* node); Node* LowerChangeInt31ToTaggedSigned(Node* node); Node* LowerChangeInt32ToTagged(Node* node); Node* LowerChangeInt64ToTagged(Node* node); Node* LowerChangeUint32ToTagged(Node* node); Node* LowerChangeUint64ToTagged(Node* node); Node* LowerChangeFloat64ToTagged(Node* node); Node* LowerChangeFloat64ToTaggedPointer(Node* node); Node* LowerChangeTaggedSignedToInt32(Node* node); Node* LowerChangeTaggedSignedToInt64(Node* node); Node* LowerChangeTaggedToBit(Node* node); Node* LowerChangeTaggedToInt32(Node* node); Node* LowerChangeTaggedToUint32(Node* node); Node* LowerChangeTaggedToInt64(Node* node); Node* LowerChangeTaggedToTaggedSigned(Node* node); Node* LowerCheckBounds(Node* node, Node* frame_state); Node* LowerPoisonIndex(Node* node); Node* LowerCheckInternalizedString(Node* node, Node* frame_state); void LowerCheckMaps(Node* node, Node* frame_state); Node* LowerCompareMaps(Node* node); Node* LowerCheckNumber(Node* node, Node* frame_state); Node* LowerCheckReceiver(Node* node, Node* frame_state); Node* LowerCheckString(Node* node, Node* frame_state); Node* LowerCheckSymbol(Node* node, Node* frame_state); void LowerCheckIf(Node* node, Node* frame_state); Node* LowerCheckedInt32Add(Node* node, Node* frame_state); Node* LowerCheckedInt32Sub(Node* node, Node* frame_state); Node* LowerCheckedInt32Div(Node* node, Node* frame_state); Node* LowerCheckedInt32Mod(Node* node, Node* frame_state); Node* LowerCheckedUint32Div(Node* node, Node* frame_state); Node* LowerCheckedUint32Mod(Node* node, Node* frame_state); Node* LowerCheckedInt32Mul(Node* node, Node* frame_state); Node* LowerCheckedInt32ToTaggedSigned(Node* node, Node* frame_state); Node* LowerCheckedInt64ToInt32(Node* node, Node* frame_state); Node* LowerCheckedInt64ToTaggedSigned(Node* node, Node* frame_state); Node* LowerCheckedUint32ToInt32(Node* node, Node* frame_state); Node* LowerCheckedUint32ToTaggedSigned(Node* node, Node* frame_state); Node* LowerCheckedUint64ToInt32(Node* node, Node* frame_state); Node* LowerCheckedUint64ToTaggedSigned(Node* node, Node* frame_state); Node* LowerCheckedFloat64ToInt32(Node* node, Node* frame_state); Node* LowerCheckedTaggedSignedToInt32(Node* node, Node* frame_state); Node* LowerCheckedTaggedToInt32(Node* node, Node* frame_state); Node* LowerCheckedTaggedToFloat64(Node* node, Node* frame_state); Node* LowerCheckedTaggedToTaggedSigned(Node* node, Node* frame_state); Node* LowerCheckedTaggedToTaggedPointer(Node* node, Node* frame_state); Node* LowerChangeTaggedToFloat64(Node* node); void TruncateTaggedPointerToBit(Node* node, GraphAssemblerLabel<1>* done); Node* LowerTruncateTaggedToBit(Node* node); Node* LowerTruncateTaggedPointerToBit(Node* node); Node* LowerTruncateTaggedToFloat64(Node* node); Node* LowerTruncateTaggedToWord32(Node* node); Node* LowerCheckedTruncateTaggedToWord32(Node* node, Node* frame_state); Node* LowerAllocate(Node* node); Node* LowerNumberToString(Node* node); Node* LowerObjectIsArrayBufferView(Node* node); Node* LowerObjectIsBigInt(Node* node); Node* LowerObjectIsCallable(Node* node); Node* LowerObjectIsConstructor(Node* node); Node* LowerObjectIsDetectableCallable(Node* node); Node* LowerObjectIsMinusZero(Node* node); Node* LowerObjectIsNaN(Node* node); Node* LowerNumberIsNaN(Node* node); Node* LowerObjectIsNonCallable(Node* node); Node* LowerObjectIsNumber(Node* node); Node* LowerObjectIsReceiver(Node* node); Node* LowerObjectIsSmi(Node* node); Node* LowerObjectIsString(Node* node); Node* LowerObjectIsSymbol(Node* node); Node* LowerObjectIsUndetectable(Node* node); Node* LowerNumberIsFloat64Hole(Node* node); Node* LowerNumberIsFinite(Node* node); Node* LowerObjectIsFiniteNumber(Node* node); Node* LowerNumberIsInteger(Node* node); Node* LowerObjectIsInteger(Node* node); Node* LowerNumberIsSafeInteger(Node* node); Node* LowerObjectIsSafeInteger(Node* node); Node* LowerArgumentsFrame(Node* node); Node* LowerArgumentsLength(Node* node); Node* LowerNewDoubleElements(Node* node); Node* LowerNewSmiOrObjectElements(Node* node); Node* LowerNewArgumentsElements(Node* node); Node* LowerNewConsString(Node* node); Node* LowerSameValue(Node* node); Node* LowerDeadValue(Node* node); Node* LowerStringConcat(Node* node); Node* LowerStringToNumber(Node* node); Node* LowerStringCharCodeAt(Node* node); Node* LowerStringCodePointAt(Node* node, UnicodeEncoding encoding); Node* LowerStringToLowerCaseIntl(Node* node); Node* LowerStringToUpperCaseIntl(Node* node); Node* LowerStringFromSingleCharCode(Node* node); Node* LowerStringFromSingleCodePoint(Node* node); Node* LowerStringIndexOf(Node* node); Node* LowerStringSubstring(Node* node); Node* LowerStringLength(Node* node); Node* LowerStringEqual(Node* node); Node* LowerStringLessThan(Node* node); Node* LowerStringLessThanOrEqual(Node* node); Node* LowerCheckFloat64Hole(Node* node, Node* frame_state); Node* LowerCheckNotTaggedHole(Node* node, Node* frame_state); Node* LowerConvertTaggedHoleToUndefined(Node* node); void LowerCheckEqualsInternalizedString(Node* node, Node* frame_state); void LowerCheckEqualsSymbol(Node* node, Node* frame_state); Node* LowerTypeOf(Node* node); Node* LowerToBoolean(Node* node); Node* LowerPlainPrimitiveToNumber(Node* node); Node* LowerPlainPrimitiveToWord32(Node* node); Node* LowerPlainPrimitiveToFloat64(Node* node); Node* LowerEnsureWritableFastElements(Node* node); Node* LowerMaybeGrowFastElements(Node* node, Node* frame_state); void LowerTransitionElementsKind(Node* node); Node* LowerLoadFieldByIndex(Node* node); Node* LowerLoadTypedElement(Node* node); Node* LowerLoadDataViewElement(Node* node); void LowerStoreTypedElement(Node* node); void LowerStoreDataViewElement(Node* node); void LowerStoreSignedSmallElement(Node* node); Node* LowerFindOrderedHashMapEntry(Node* node); Node* LowerFindOrderedHashMapEntryForInt32Key(Node* node); void LowerTransitionAndStoreElement(Node* node); void LowerTransitionAndStoreNumberElement(Node* node); void LowerTransitionAndStoreNonNumberElement(Node* node); void LowerRuntimeAbort(Node* node); Node* LowerConvertReceiver(Node* node); Node* LowerDateNow(Node* node); // Lowering of optional operators. Maybe<Node*> LowerFloat64RoundUp(Node* node); Maybe<Node*> LowerFloat64RoundDown(Node* node); Maybe<Node*> LowerFloat64RoundTiesEven(Node* node); Maybe<Node*> LowerFloat64RoundTruncate(Node* node); Node* AllocateHeapNumberWithValue(Node* node); Node* BuildCheckedFloat64ToInt32(CheckForMinusZeroMode mode, const VectorSlotPair& feedback, Node* value, Node* frame_state); Node* BuildCheckedHeapNumberOrOddballToFloat64(CheckTaggedInputMode mode, const VectorSlotPair& feedback, Node* value, Node* frame_state); Node* BuildReverseBytes(ExternalArrayType type, Node* value); Node* BuildFloat64RoundDown(Node* value); Node* BuildFloat64RoundTruncate(Node* input); Node* BuildUint32Mod(Node* lhs, Node* rhs); Node* ComputeIntegerHash(Node* value); Node* LowerStringComparison(Callable const& callable, Node* node); Node* IsElementsKindGreaterThan(Node* kind, ElementsKind reference_kind); Node* ChangeInt32ToSmi(Node* value); Node* ChangeInt32ToIntPtr(Node* value); Node* ChangeInt64ToSmi(Node* value); Node* ChangeIntPtrToInt32(Node* value); Node* ChangeIntPtrToSmi(Node* value); Node* ChangeUint32ToUintPtr(Node* value); Node* ChangeUint32ToSmi(Node* value); Node* ChangeSmiToIntPtr(Node* value); Node* ChangeSmiToInt32(Node* value); Node* ChangeSmiToInt64(Node* value); Node* ObjectIsSmi(Node* value); Node* LoadFromSeqString(Node* receiver, Node* position, Node* is_one_byte); Node* SmiMaxValueConstant(); Node* SmiShiftBitsConstant(); void TransitionElementsTo(Node* node, Node* array, ElementsKind from, ElementsKind to); Factory* factory() const; Isolate* isolate() const; JSGraph* jsgraph() const { return js_graph_; } Graph* graph() const; Schedule* schedule() const { return schedule_; } Zone* temp_zone() const { return temp_zone_; } CommonOperatorBuilder* common() const; SimplifiedOperatorBuilder* simplified() const; MachineOperatorBuilder* machine() const; GraphAssembler* gasm() { return &graph_assembler_; } JSGraph* js_graph_; Schedule* schedule_; Zone* temp_zone_; MaskArrayIndexEnable mask_array_index_; RegionObservability region_observability_ = RegionObservability::kObservable; SourcePositionTable* source_positions_; NodeOriginTable* node_origins_; GraphAssembler graph_assembler_; Node* frame_state_zapper_; // For tracking down compiler::Node::New crashes. }; } // namespace compiler } // namespace internal } // namespace v8 #endif // V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
c2ec7611548451ad68f94bffc4bb1fc27fff4cea
cdd9e74aea352b76d8f8b23924dd7d77251a8ab6
/ConsoleApplication1.cpp
c45e1210743af5000a84af75249de163021f6562
[]
no_license
YMC2ATiberius/LeetCode_Repositories
db585c445bae66731faa6356e95d72cc0fab637a
8211109491ed5c8a15bd82e55e3788fe53297d03
refs/heads/master
2023-02-13T07:24:55.139885
2021-01-15T22:18:58
2021-01-15T22:18:58
314,900,717
0
0
null
null
null
null
UTF-8
C++
false
false
4,879
cpp
// ConsoleApplication1.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 #include <Top100.h> #include <Cp8Search.h> using namespace std; int main() { //vector<vector<char>> test = { {'A','B','C','E'},{'S','F','C','S'},{'A','D','E','E'} }; //vector<vector<char>> test = { {'A'} }; //vector<int> test = { 2,1,5,6,2,3 }; //vector<vector<char>> test = { {'1','0','1','0','0'},{'1','0','1','1','1'},{'1','1','1','1','1'},{'1','0','0','1','0'} }; /* test.push_back(6); test.push_back(2); test.push_back(1); test.push_back(5); test.push_back(4); test.push_back(3); test.push_back(0);*/ //test.push_back(7); //TreeNode a(10); //TreeNode b(5); //TreeNode c(15); //TreeNode d(6); //TreeNode e(20); TreeNode a(1); TreeNode b(-2); TreeNode c(-3); a.left = &b; a.right = &c; /*a.left = &b; a.right = &c; c.left = &d; c.right = &e; vector<int> preoder = { 3,9,20,15,7 }; vector<int> inorder = { 9,3,15,20,7 };*/ //bool result = isValidBST(&a); //TreeNode* result = buildTree(preoder, inorder); /*vector<vector<char>> board = { {'o','a','a','n'},{'e','t','a','e'},{'i','h','k','r'},{'i','f','l','v'} }; vector<string> words = { "oath", "pea", "eat", "rain" }; vector<string> result = findWords(board, words);*/ /*vector<vector<char>> matrix = { {'1','0'} }; int result = maximalSquare(matrix);*/ /*int a = 0, b = 5; int c = a ^ b;*/ //int result = longestConsecutiveN(nums); /*vector<vector<char>> board = { {'5', '3', '.', '.', '7', '.', '.', '.', '.'} , {'6', '.', '3', '1', '9', '5', '.', '.', '.'} , {'.', '9', '8', '.', '.', '.', '.', '6', '.'} , {'8', '.', '.', '.', '6', '.', '.', '.', '3'} , {'4', '.', '.', '8', '.', '3', '.', '.', '1'} , {'7', '.', '.', '.', '2', '.', '.', '.', '6'} , {'.', '6', '.', '.', '.', '.', '2', '8', '.'} , {'.', '.', '.', '4', '1', '9', '.', '.', '5'} , {'.', '.', '.', '.', '8', '.', '.', '7', '9'} }; bool result = isValidSudoku(board);*/ vector<vector<int>> matrix = { {1,2,3, 4},{5,6,7,8},{9,10,11,12} }; vector<int> result = spiralOrder(matrix); cout << "endl" << endl; /*string test = ")()())"; int result = longestValidParentheses(test); cout << "result is:" << result << endl;*/ /*vector<string> test; test.push_back("flower"); test.push_back("flow"); test.push_back("flight"); string result = longestCommonPrefix(test);*/ /*ListNode a(1); ListNode b(2); ListNode c(3); ListNode d(4); ListNode e(5); a.next = &b; b.next = &c; c.next = &d; d.next = &e; ListNode* result = reverseKGroup(&a, 3);*/ //cout << detectCapitalUse("FlaG") << endl; //string s = "()[[[]]]"; //letterCombinations(digits); //cout << isValid(s) << endl; /*int target = 0; vector<int> nums; nums.push_back(1); nums.push_back(0); nums.push_back(-1); nums.push_back(0); nums.push_back(-2); nums.push_back(2); cout << "Build is done!" << endl; vector<vector<int>> result = fourSum(nums, target); cout << "Work is done!" << endl;*/ /*int s = -64; cout << isPowerOfFour(s) << endl;*/ /*vector<int> test; test.push_back(0); test.push_back(2); test.push_back(1); test.push_back(2); test.push_back(5); test.push_back(4); test.push_back(8); test.push_back(3); test.push_back(7); cout << maxArea(test) << endl;*/ /*string beginWord = "hit"; string endWord = "cog"; vector<string> word_map; word_map.push_back("hot"); word_map.push_back("dot"); word_map.push_back("dog"); word_map.push_back("lot"); word_map.push_back("log"); word_map.push_back("cog"); cout << "Ladder length is:" << ladderLength(beginWord, endWord, word_map)<<endl;*/ //vector<string> test_result = findRepeatedDnaSequences(s); ////int i = 14; //1110 111000 8+16+32 //std::cout << "process end: " << endl; ////std::cout << "test result is: " << findRepeatedDnaSequences(s) << endl; } // 运行程序: Ctrl + F5 或调试 >“开始执行(不调试)”菜单 // 调试程序: F5 或调试 >“开始调试”菜单 // 入门使用技巧: // 1. 使用解决方案资源管理器窗口添加/管理文件 // 2. 使用团队资源管理器窗口连接到源代码管理 // 3. 使用输出窗口查看生成输出和其他消息 // 4. 使用错误列表窗口查看错误 // 5. 转到“项目”>“添加新项”以创建新的代码文件,或转到“项目”>“添加现有项”以将现有代码文件添加到项目 // 6. 将来,若要再次打开此项目,请转到“文件”>“打开”>“项目”并选择 .sln 文件
[ "shuyuanWang" ]
shuyuanWang